(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{"+Gs+":function(t,e,r){var n=e;n.bignum=r("8kJ5"),n.define=r("uH4/").define,n.base=r("45vN"),n.constants=r("Xr9Y"),n.decoders=r("uaRH"),n.encoders=r("5wZK")},"+MGR":function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},"+krU":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=s(r("Zf0h")),i=s(r("uLrD")),o=s(r("w+CG")),a=s(r("plIT"));function s(t){return t&&t.__esModule?t:{default:t}}var u=function(){var t=new Uint32Array(10),e=new Uint32Array(10),r=new Uint32Array(2);return function(s){for(var u=0;u<24;u++)(0,a.default)({A:s,C:t,D:e,W:r}),(0,o.default)({A:s,C:t,W:r}),(0,n.default)({A:s,C:t}),(0,i.default)({A:s,roundIndex:u});t.fill(0),e.fill(0),r.fill(0)}};e.default=u},"+oaW":function(t,e,r){"use strict";var n=r("wfEq"),i=r("cq1r"),o=r("Olfb"),a=r("thXI"),s=r("ql4I");function u(t){s.call(this,"digest"),this._hash=t}n(u,s),u.prototype._update=function(t){this._hash.update(t)},u.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new i:"rmd160"===t||"ripemd160"===t?new o:new u(a(t))}},"+t3Y":function(t,e,r){"use strict";t.exports=a;var n=r("A/eZ"),i=Object.create(r("nrnY"));function o(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length=h&&(s(d,l),u(l),f=0);return e},this.squeeze=function(){var t={queue:i.Buffer.allocUnsafe(h),state:new Uint32Array(50)};d.copy(t.queue);for(var e=0;e>>8,r[n+2]=t[o+1]>>>16,r[n+3]=t[o+1]>>>24,r[n+4]=t[o],r[n+5]=t[o]>>>8,r[n+6]=t[o]>>>16,r[n+7]=t[o]>>>24}return r}(t.state,c)},this.reset=function(){return d.fill(0),l.fill(0),f=0,e},this};e.default=u},"0tkI":function(t,e,r){"use strict";function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e} /*! * GSAP 3.3.0 * https://greensock.com * * @license Copyright 2008-2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */r.d(e,"a",(function(){return ke})),r.d(e,"b",(function(){return ar})),r.d(e,"y",(function(){return hr})),r.d(e,"d",(function(){return Ye})),r.d(e,"c",(function(){return Be})),r.d(e,"x",(function(){return Jt})),r.d(e,"j",(function(){return _t})),r.d(e,"o",(function(){return K})),r.d(e,"p",(function(){return $})),r.d(e,"l",(function(){return F})),r.d(e,"m",(function(){return X})),r.d(e,"s",(function(){return tr})),r.d(e,"r",(function(){return Q})),r.d(e,"h",(function(){return bt})),r.d(e,"v",(function(){return or})),r.d(e,"f",(function(){return we})),r.d(e,"t",(function(){return ue})),r.d(e,"e",(function(){return Ge})),r.d(e,"q",(function(){return ft})),r.d(e,"w",(function(){return Ee})),r.d(e,"g",(function(){return M})),r.d(e,"u",(function(){return gt})),r.d(e,"n",(function(){return it})),r.d(e,"k",(function(){return Je})),r.d(e,"i",(function(){return mt}));var o,a,s,u,c,h,f,l,d,p,v,y,m,_,b,g,w,E,x,T,S,A,O,I,R,M={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},P={duration:.5,overwrite:!1,delay:0},C=1e8,D=2*Math.PI,N=D/4,k=0,L=Math.sqrt,B=Math.cos,U=Math.sin,F=function(t){return"string"==typeof t},j=function(t){return"function"==typeof t},G=function(t){return"number"==typeof t},X=function(t){return void 0===t},H=function(t){return"object"==typeof t},z=function(t){return!1!==t},V=function(){return"undefined"!=typeof window},Y=function(t){return j(t)||F(t)},W=Array.isArray,q=/(?:-?\.?\d|\.)+/gi,K=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,$=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,J=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,Z=/\(([^()]+)\)/i,Q=/[+-]=-?[\.\d]+/,tt=/[#\-+.]*\b[a-z\d-=+%.]+/gi,et={},rt={},nt=function(t){return(rt=Rt(t,et))&&hr},it=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ot=function(t,e){return!e&&console.warn(t)},at=function(t,e){return t&&(et[t]=e)&&rt&&(rt[t]=e)||et},st=function(){return 0},ut={},ct=[],ht={},ft={},lt={},dt=30,pt=[],vt="",yt=function(t){var e,r,n=t[0];if(H(n)||j(n)||(t=[t]),!(e=(n._gsap||{}).harness)){for(r=pt.length;r--&&!pt[r].targetTest(n););e=pt[r]}for(r=t.length;r--;)t[r]&&(t[r]._gsap||(t[r]._gsap=new ke(t[r],e)))||t.splice(r,1);return t},mt=function(t){return t._gsap||yt(ee(t))[0]._gsap},_t=function(t,e){var r=t[e];return j(r)?t[e]():X(r)&&t.getAttribute(e)||r},bt=function(t,e){return(t=t.split(",")).forEach(e)||t},gt=function(t){return Math.round(1e5*t)/1e5||0},wt=function(t,e){for(var r=e.length,n=0;t.indexOf(e[n])<0&&++n=0?0:e._dirty?e.totalDuration():e._tDur)},jt=function(t){return t._end=gt(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},Gt=function(t,e){var r;if((e._time||e._initted&&!e._dur)&&(r=Ft(t.rawTime(),e),(!e._dur||$t(0,e.totalDuration(),r)-e._tTime>1e-8)&&e.render(r,!0)),kt(t)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-1e-8}},Xt=function(t,e,r,n){return e.parent&&Nt(e),e._start=gt(r+e._delay),e._end=gt(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),function(t,e,r,n,i){void 0===r&&(r="_first"),void 0===n&&(n="_last");var o,a=t[n];if(i)for(o=e[i];a&&a[i]>o;)a=a._prev;a?(e._next=a._next,a._next=e):(e._next=t[r],t[r]=e),e._next?e._next._prev=e:t[n]=e,e._prev=a,e.parent=e._dp=t}(t,e,"_first","_last",t._sort?"_start":0),t._recent=e,n||Gt(t,e),t},Ht=function(t,e){return(et.ScrollTrigger||it("scrollTrigger",e))&&et.ScrollTrigger.create(e,t)},zt=function(t,e,r,n){return Xe(t,e),t._initted?!r&&t._pt&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&h!==Ee.frame?(ct.push(t),t._lazy=[e,n],1):void 0:1},Vt=function(t,e,r){var n=t._repeat,i=gt(e)||0;return t._dur=i,t._tDur=n?n<0?1e10:gt(i*(n+1)+t._rDelay*n):i,t._time>i&&(t._time=i,t._tTime=Math.min(t._tTime,t._tDur)),!r&&kt(t.parent),t.parent&&jt(t),t},Yt=function(t){return t instanceof Be?kt(t):Vt(t,t._dur)},Wt={_start:0,endTime:st},qt=function t(e,r){var n,i,o=e.labels,a=e._recent||Wt,s=e.duration()>=C?a.endTime(!1):e._dur;return F(r)&&(isNaN(r)||r in o)?"<"===(n=r.charAt(0))||">"===n?("<"===n?a._start:a.endTime(a._repeat>=0))+(parseFloat(r.substr(1))||0):(n=r.indexOf("="))<0?(r in o||(o[r]=s),o[r]):(i=+(r.charAt(n-1)+r.substr(n+1)),n>1?t(e,r.substr(0,n-1))+i:s+i):null==r?s:+r},Kt=function(t,e){return t||0===t?e(t):e},$t=function(t,e,r){return re?e:r},Jt=function(t){return(t+"").substr((parseFloat(t)+"").length)},Zt=[].slice,Qt=function(t,e){return t&&H(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&H(t[0]))&&!t.nodeType&&t!==a},te=function(t,e,r){return void 0===r&&(r=[]),t.forEach((function(t){var n;return F(t)&&!e||Qt(t,1)?(n=r).push.apply(n,ee(t)):r.push(t)}))||r},ee=function(t,e){return!F(t)||e||!s&&xe()?W(t)?te(t,e):Qt(t)?Zt.call(t,0):t?[t]:[]:Zt.call(u.querySelectorAll(t),0)},re=function(t){return t.sort((function(){return.5-Math.random()}))},ne=function(t){if(j(t))return t;var e=H(t)?t:{each:t},r=Me(e.ease),n=e.from||0,i=parseFloat(e.base)||0,o={},a=n>0&&n<1,s=isNaN(n)||a,u=e.axis,c=n,h=n;return F(n)?c=h={center:.5,edges:.5,end:1}[n]||0:!a&&s&&(c=n[0],h=n[1]),function(t,a,f){var l,d,p,v,y,m,_,b,g,w=(f||e).length,E=o[w];if(!E){if(!(g="auto"===e.grid?0:(e.grid||[1,C])[1])){for(_=-C;_<(_=f[g++].getBoundingClientRect().left)&&g_&&(_=y),yw?w-1:u?"y"===u?w/g:g:Math.max(g,w/g))||0)*("edges"===n?-1:1),E.b=w<0?i-w:i,E.u=Jt(e.amount||e.each)||0,r=r&&w<0?Ie(r):r}return w=(E[t]-E.min)/E.max||0,gt(E.b+(r?r(w):w)*E.v)+E.u}},ie=function(t){var e=t<1?Math.pow(10,(t+"").length-2):1;return function(r){return Math.floor(Math.round(parseFloat(r)/t)*t*e)/e+(G(r)?0:Jt(r))}},oe=function(t,e){var r,n,i=W(t);return!i&&H(t)&&(r=i=t.radius||C,t.values?(t=ee(t.values),(n=!G(t[0]))&&(r*=r)):t=ie(t.increment)),Kt(e,i?j(t)?function(e){return n=t(e),Math.abs(n-e)<=r?n:e}:function(e){for(var i,o,a=parseFloat(n?e.x:e),s=parseFloat(n?e.y:0),u=C,c=0,h=t.length;h--;)(i=n?(i=t[h].x-a)*i+(o=t[h].y-s)*o:Math.abs(t[h]-a))(i=Math.abs(i))&&(o=n,s=i);return o},fe=function(t,e,r){var n,i,o=t.vars,a=o[e];if(a)return n=o[e+"Params"],i=o.callbackScope||t,r&&ct.length&&xt(),n?a.apply(i,n):a.call(i)},le=function(t){return Nt(t),t.progress()<1&&fe(t,"onInterrupt"),t},de=function(t){var e=(t=!t.name&&t.default||t).name,r=j(t),n=e&&!r&&t.init?function(){this._props=[]}:t,i={init:st,render:er,add:je,kill:nr,modifier:rr,rawVars:0},o={targetTest:0,get:0,getSetter:Je,aliases:{},register:0};if(xe(),t!==n){if(ft[e])return;Ot(n,Ot(Pt(t,i),o)),Rt(n.prototype,Rt(i,Pt(t,o))),ft[n.prop=e]=n,t.targetTest&&(pt.push(n),ut[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}at(e,n),t.register&&t.register(hr,n,ar)},pe={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ve=function(t,e,r){return 255*(6*(t=t<0?t+1:t>1?t-1:t)<1?e+(r-e)*t*6:t<.5?r:3*t<2?e+(r-e)*(2/3-t)*6:e)+.5|0},ye=function(t,e,r){var n,i,o,a,s,u,c,h,f,l,d=t?G(t)?[t>>16,t>>8&255,255&t]:0:pe.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),pe[t])d=pe[t];else if("#"===t.charAt(0))4===t.length&&(n=t.charAt(1),i=t.charAt(2),o=t.charAt(3),t="#"+n+n+i+i+o+o),d=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(d=l=t.match(q),e){if(~t.indexOf("="))return d=t.match(K),r&&d.length<4&&(d[3]=1),d}else a=+d[0]%360/360,s=+d[1]/100,n=2*(u=+d[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),d.length>3&&(d[3]*=1),d[0]=ve(a+1/3,n,i),d[1]=ve(a,n,i),d[2]=ve(a-1/3,n,i);else d=t.match(q)||pe.transparent;d=d.map(Number)}return e&&!l&&(n=d[0]/255,i=d[1]/255,o=d[2]/255,u=((c=Math.max(n,i,o))+(h=Math.min(n,i,o)))/2,c===h?a=s=0:(f=c-h,s=u>.5?f/(2-c-h):f/(c+h),a=c===n?(i-o)/f+(i_&&(g+=i-b),w+=i,y.time=(w-g)/1e3,((r=y.time-x)>0||o)&&(y.frame++,x+=r+(r>=E?.004:E-r),n=1),o||(d=p(t)),n&&T.forEach((function(t){return t(y.time,i,y.frame,e)}))},y={time:0,frame:0,tick:function(){S(!0)},wake:function(){c&&(!s&&V()&&(a=s=window,u=a.document||{},et.gsap=hr,(a.gsapVersions||(a.gsapVersions=[])).push(hr.version),nt(rt||a.GreenSockGlobals||!a.gsap&&a||{}),v=a.requestAnimationFrame),d&&y.sleep(),p=v||function(t){return setTimeout(t,1e3*(x-y.time)+1|0)},l=1,S(2))},sleep:function(){(v?a.cancelAnimationFrame:clearTimeout)(d),l=0,p=st},lagSmoothing:function(t,e){_=t||1/1e-8,b=Math.min(e,_,0)},fps:function(t){E=1/(t||240),x=y.time+E},add:function(t){T.indexOf(t)<0&&T.push(t),xe()},remove:function(t){var e;~(e=T.indexOf(t))&&T.splice(e,1)},_listeners:T=[]}),xe=function(){return!l&&Ee.wake()},Te={},Se=/^[\d.\-M][\d.\-,\s]/,Ae=/["']/g,Oe=function(t){for(var e,r,n,i={},o=t.substr(1,t.length-3).split(":"),a=o[0],s=1,u=o.length;s1&&r.config?r.config.apply(null,~t.indexOf("{")?[Oe(e[1])]:Z.exec(t)[1].split(",").map(St)):Te._CE&&Se.test(t)?Te._CE("",t):r}(t))||e},Pe=function(t,e,r,n){void 0===r&&(r=function(t){return 1-e(1-t)}),void 0===n&&(n=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,o={easeIn:e,easeOut:r,easeInOut:n};return bt(t,(function(t){for(var e in Te[t]=et[t]=o,Te[i=t.toLowerCase()]=r,o)Te[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Te[t+"."+e]=o[e]})),o},Ce=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},De=function t(e,r,n){var i=r>=1?r:1,o=(n||(e?.3:.45))/(r<1?r:1),a=o/D*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*U((t-a)*o)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:Ce(s);return o=D/o,u.config=function(r,n){return t(e,r,n)},u},Ne=function t(e,r){void 0===r&&(r=1.70158);var n=function(t){return t?--t*t*((r+1)*t+r)+1:0},i="out"===e?n:"in"===e?function(t){return 1-n(1-t)}:Ce(n);return i.config=function(r){return t(e,r)},i};bt("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var r=e<5?e+1:e;Pe(t+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},(function(t){return 1-Math.pow(1-t,r)}),(function(t){return t<.5?Math.pow(2*t,r)/2:1-Math.pow(2*(1-t),r)/2}))})),Te.Linear.easeNone=Te.none=Te.Linear.easeIn,Pe("Elastic",De("in"),De("out"),De()),A=7.5625,I=1/(O=2.75),Pe("Bounce",(function(t){return 1-R(1-t)}),R=function(t){return t0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Vt(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(xe(),!arguments.length)return this._tTime;var r=this.parent||this._dp;if(r&&r.smoothChildTiming&&this._ts){for(this._start=gt(r._time-(this._ts>0?t/this._ts:((this._dirty?this.totalDuration():this._tDur)-t)/-this._ts)),jt(this),r._dirty||kt(r);r.parent;)r.parent._time!==r._start+(r._ts>=0?r._tTime/r._ts:(r.totalDuration()-r._tTime)/-r._ts)&&r.totalTime(r._tTime,!0),r=r.parent;!this.parent&&this._dp.autoRemoveChildren&&Xt(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted)&&(this._ts||(this._pTime=t),Tt(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Bt(this))%this._dur||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Bt(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var r=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*r,e):this._repeat?Ut(this._tTime,r)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Ft(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,Lt(this.totalTime($t(0,this._tDur,e),!0))},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(xe(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=1e-8)&&1e-8!==Math.abs(this._zTime)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Xt(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(z(t)?this.totalDuration():this.duration())/Math.abs(this._ts)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ft(e.rawTime(t),this):this._tTime:this._tTime},e.repeat=function(t){return arguments.length?(this._repeat=t,Yt(this)):this._repeat},e.repeatDelay=function(t){return arguments.length?(this._rDelay=t,Yt(this)):this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(qt(this,t),z(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,z(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=0,this._zTime=-1e-8,this},e.isActive=function(t){var e,r=this.parent||this._dp,n=this._start;return!(r&&!(this._ts&&(this._initted||!t)&&r.isActive(t)&&(e=r.rawTime(!0))>=n&&e1?(e?(n[t]=e,r&&(n[t+"Params"]=r),"onUpdate"===t&&(this._onUpdate=e)):delete n[t],this):n[t]},e.then=function(t){var e=this;return new Promise((function(r){var n=j(t)?t:At,i=function(){var t=e.then;e.then=null,j(n)&&(n=n(e))&&(n.then||n===e)&&(e.then=t),r(n),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){le(this)},t}();Ot(Le.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Be=function(t){function e(e,r){var i;return void 0===e&&(e={}),(i=t.call(this,e,r)||this).labels={},i.smoothChildTiming=!!e.smoothChildTiming,i.autoRemoveChildren=!!e.autoRemoveChildren,i._sort=z(e.sortChildren),i.parent&&Gt(i.parent,n(i)),e.scrollTrigger&&Ht(n(i),e.scrollTrigger),i}i(e,t);var r=e.prototype;return r.to=function(t,e,r){return new Ye(t,Et(arguments,0,this),qt(this,G(e)?arguments[3]:r)),this},r.from=function(t,e,r){return new Ye(t,Et(arguments,1,this),qt(this,G(e)?arguments[3]:r)),this},r.fromTo=function(t,e,r,n){return new Ye(t,Et(arguments,2,this),qt(this,G(e)?arguments[4]:n)),this},r.set=function(t,e,r){return e.duration=0,e.parent=this,Ct(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ye(t,e,qt(this,r),1),this},r.call=function(t,e,r){return Xt(this,Ye.delayedCall(0,t,e),qt(this,r))},r.staggerTo=function(t,e,r,n,i,o,a){return r.duration=e,r.stagger=r.stagger||n,r.onComplete=o,r.onCompleteParams=a,r.parent=this,new Ye(t,r,qt(this,i)),this},r.staggerFrom=function(t,e,r,n,i,o,a){return r.runBackwards=1,Ct(r).immediateRender=z(r.immediateRender),this.staggerTo(t,e,r,n,i,o,a)},r.staggerFromTo=function(t,e,r,n,i,o,a,s){return n.startAt=r,Ct(n).immediateRender=z(n.immediateRender),this.staggerTo(t,e,n,i,o,a,s)},r.render=function(t,e,r){var n,i,a,s,u,c,h,f,l,d,p,v,y=this._time,m=this._dirty?this.totalDuration():this._tDur,_=this._dur,b=this!==o&&t>m-1e-8&&t>=0?m:t<1e-8?0:t,g=this._zTime<0!=t<0&&(this._initted||!_);if(b!==this._tTime||r||g){if(y!==this._time&&_&&(b+=this._time-y,t+=this._time-y),n=b,l=this._start,c=!(f=this._ts),g&&(_||(y=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat&&(p=this._yoyo,u=_+this._rDelay,((n=gt(b%u))>_||m===b)&&(n=_),(s=~~(b/u))&&s===b/u&&(n=_,s--),d=Ut(this._tTime,u),!y&&this._tTime&&d!==s&&(d=s),p&&1&s&&(n=_-n,v=1),s!==d&&!this._lock)){var w=p&&1&d,E=w===(p&&1&s);if(se)for(n=t._first;n&&n._start<=r;){if(!n._dur&&"isPause"===n.data&&n._start>e)return n;n=n._next}else for(n=t._last;n&&n._start>=r;){if(!n._dur&&"isPause"===n.data&&n._start=y&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||n>=i._start)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(n-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(n-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var x=t<0?t:n;i;){if(a=i._prev,(i._act||x<=i._end)&&i._ts&&h!==i){if(i.parent!==this)return this.render(t,e,r);if(i.render(i._ts>0?(x-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(x-i._start)*i._ts,e,r),n!==this._time||!this._ts&&!c){h=0,a&&(b+=this._zTime=x?-1e-8:1e-8);break}}i=a}}if(h&&!e&&(this.pause(),h.render(n>=y?0:-1e-8)._zTime=n>=y?1:-1,this._ts))return this._start=l,jt(this),this.render(t,e,r);this._onUpdate&&!e&&fe(this,"onUpdate",!0),(b===m&&m>=this.totalDuration()||!b&&y)&&(l!==this._start&&Math.abs(f)===Math.abs(this._ts)||this._lock||((t||!_)&&(b===m&&this._ts>0||!b&&this._ts<0)&&Nt(this,1),e||t<0&&!y||!b&&!y||(fe(this,b===m?"onComplete":"onReverseComplete",!0),this._prom&&!(b0)&&this._prom())))}return this},r.add=function(t,e){var r=this;if(G(e)||(e=qt(this,e)),!(t instanceof Le)){if(W(t))return t.forEach((function(t){return r.add(t,e)})),kt(this);if(F(t))return this.addLabel(t,e);if(!j(t))return this;t=Ye.delayedCall(0,t)}return this!==t?Xt(this,t,e):this},r.getChildren=function(t,e,r,n){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),void 0===n&&(n=-C);for(var i=[],o=this._first;o;)o._start>=n&&(o instanceof Ye?e&&i.push(o):(r&&i.push(o),t&&i.push.apply(i,o.getChildren(!0,e,r)))),o=o._next;return i},r.getById=function(t){for(var e=this.getChildren(1,1,1),r=e.length;r--;)if(e[r].vars.id===t)return e[r]},r.remove=function(t){return F(t)?this.removeLabel(t):j(t)?this.killTweensOf(t):(Dt(this,t),t===this._recent&&(this._recent=this._last),kt(this))},r.totalTime=function(e,r){return arguments.length?(this._forcing=1,this.parent||this._dp||!this._ts||(this._start=gt(Ee.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,r),this._forcing=0,this):this._tTime},r.addLabel=function(t,e){return this.labels[t]=qt(this,e),this},r.removeLabel=function(t){return delete this.labels[t],this},r.addPause=function(t,e,r){var n=Ye.delayedCall(0,e||st,r);return n.data="isPause",this._hasPause=1,Xt(this,n,qt(this,t))},r.removePause=function(t){var e=this._first;for(t=qt(this,t);e;)e._start===t&&"isPause"===e.data&&Nt(e),e=e._next},r.killTweensOf=function(t,e,r){for(var n=this.getTweensOf(t,r),i=n.length;i--;)Ue!==n[i]&&n[i].kill(t,e);return this},r.getTweensOf=function(t,e){for(var r,n=[],i=ee(t),o=this._first;o;)o instanceof Ye?!wt(o._targets,i)||e&&!o.isActive("started"===e)||n.push(o):(r=o.getTweensOf(i,e)).length&&n.push.apply(n,r),o=o._next;return n},r.tweenTo=function(t,e){e=e||{};var r=this,n=qt(r,t),i=e,o=i.startAt,a=i.onStart,s=i.onStartParams,u=Ye.to(r,Ot(e,{ease:"none",lazy:!1,time:n,duration:e.duration||Math.abs((n-(o&&"time"in o?o.time:r._time))/r.timeScale())||1e-8,onStart:function(){r.pause();var t=e.duration||Math.abs((n-r._time)/r.timeScale());u._dur!==t&&Vt(u,t).render(u._time,!0,!0),a&&a.apply(u,s||[])}}));return u},r.tweenFromTo=function(t,e,r){return this.tweenTo(e,Ot({startAt:{time:qt(this,t)}},r))},r.recent=function(){return this._recent},r.nextLabel=function(t){return void 0===t&&(t=this._time),he(this,qt(this,t))},r.previousLabel=function(t){return void 0===t&&(t=this._time),he(this,qt(this,t),1)},r.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},r.shiftChildren=function(t,e,r){void 0===r&&(r=0);for(var n,i=this._first,o=this.labels;i;)i._start>=r&&(i._start+=t),i=i._next;if(e)for(n in o)o[n]>=r&&(o[n]+=t);return kt(this)},r.invalidate=function(){var e=this._first;for(this._lock=0;e;)e.invalidate(),e=e._next;return t.prototype.invalidate.call(this)},r.clear=function(t){void 0===t&&(t=!0);for(var e,r=this._first;r;)e=r._next,this.remove(r),r=e;return this._time=this._tTime=this._pTime=0,t&&(this.labels={}),kt(this)},r.totalDuration=function(t){var e,r,n,i,a=0,s=this,u=s._last,c=C;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(i=s.parent;u;)e=u._prev,u._dirty&&u.totalDuration(),(n=u._start)>c&&s._sort&&u._ts&&!s._lock?(s._lock=1,Xt(s,u,n-u._delay,1)._lock=0):c=n,n<0&&u._ts&&(a-=n,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=n/s._ts,s._time-=n,s._tTime-=n),s.shiftChildren(-n,!1,-Infinity),c=0),(r=jt(u))>a&&u._ts&&(a=r),u=e;Vt(s,s===o&&s._time>a?s._time:a,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(o._ts&&(Tt(o,Ft(t,o)),h=Ee.frame),Ee.frame>=dt){dt+=M.autoSleep||120;var e=o._first;if((!e||!e._ts)&&M.autoSleep&&Ee._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ee.sleep()}}},e}(Le);Ot(Be.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ue,Fe=function(t,e,r,n,i,o,a){var s,u,c,h,f,l,d,p,v=new ar(this._pt,t,e,0,1,tr,null,i),y=0,m=0;for(v.b=r,v.e=n,r+="",(d=~(n+="").indexOf("random("))&&(n=ue(n)),o&&(o(p=[r,n],t,e),r=p[0],n=p[1]),u=r.match(J)||[];s=J.exec(n);)h=s[0],f=n.substring(y,s.index),c?c=(c+1)%5:"rgba("===f.substr(-5)&&(c=1),h!==u[m++]&&(l=parseFloat(u[m-1])||0,v._pt={_next:v._pt,p:f||1===m?f:",",s:l,c:"="===h.charAt(1)?parseFloat(h.substr(2))*("-"===h.charAt(0)?-1:1):parseFloat(h)-l,m:c&&c<4?Math.round:0},y=J.lastIndex);return v.c=y0)!O&&(e._startAt=0);else if(I)return}else if(T&&I)if(R)!O&&(e._startAt=0);else if(r&&(b=!1),a=Rt(n,{overwrite:!1,data:"isFromStart",lazy:b&&z(g),immediateRender:b,stagger:0,parent:C}),v&&(a[f.prop]=v),Nt(e._startAt=Ye.set(M,a)),b){if(!r)return}else t(e._startAt,1e-8);for(e._pt=0,g=I&&z(g)||g&&!I,i=0;i")}));else{if(f=O.length,p=g?ne(g):st,H(g))for(l in g)~ze.indexOf(l)&&(v||(v={}),v[l]=g[l]);for(c=0;cd-1e-8&&t>=0?d:t<1e-8?0:t;if(p){if(v!==this._tTime||!t||r||this._startAt&&this._zTime<0!=t<0){if(n=v,h=this.timeline,this._repeat){if(a=p+this._rDelay,((n=gt(v%a))>p||d===v)&&(n=p),(o=~~(v/a))&&o===v/a&&(n=p,o--),(u=this._yoyo&&1&o)&&(f=this._yEase,n=p-n),s=Ut(this._tTime,a),n===l&&!r&&this._initted)return this;o!==s&&(h&&this._yEase&&Re(h,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=r=1,this.render(gt(a*o),!0).invalidate()._lock=0))}if(!this._initted){if(zt(this,n,r,e))return this._tTime=0,this;if(p!==this._dur)return this.render(t,e,r)}for(this._tTime=v,this._time=n,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(f||this._ease)(n/p),this._from&&(this.ratio=c=1-c),n&&!l&&!e&&fe(this,"onStart"),i=this._pt;i;)i.r(c,i.d),i=i._next;h&&h.render(t<0?t:!n&&u?-1e-8:h._dur*c,e,r)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(t<0&&this._startAt&&this._startAt.render(t,!0,r),fe(this,"onUpdate")),this._repeat&&o!==s&&this.vars.onRepeat&&!e&&this.parent&&fe(this,"onRepeat"),v!==this._tDur&&v||this._tTime!==v||(t<0&&this._startAt&&!this._onUpdate&&this._startAt.render(t,!0,r),(t||!p)&&(v===this._tDur&&this._ts>0||!v&&this._ts<0)&&Nt(this,1),e||t<0&&!l||!v&&!l||(fe(this,v===d?"onComplete":"onReverseComplete",!0),this._prom&&!(v0)&&this._prom()))}}else!function(t,e,r,n){var i,o,a=t.ratio,s=e<0||a&&!e&&!t._start&&!t._dp._lock?0:1,u=t._rDelay,c=0;if(u&&t._repeat&&(c=$t(0,t._tDur,e),Ut(c,u)!==(o=Ut(t._tTime,u))&&(a=1-s,t.vars.repeatRefresh&&t._initted&&t.invalidate())),t._initted||!zt(t,e,n,r))if(s!==a||n||1e-8===t._zTime||!e&&t._zTime){for(o=t._zTime,t._zTime=e||(r?1e-8:0),r||(r=e&&!o),t.ratio=s,t._from&&(s=1-s),t._time=0,t._tTime=c,r||fe(t,"onStart"),i=t._pt;i;)i.r(s,i.d),i=i._next;!s&&t._startAt&&!t._onUpdate&&t._start&&t._startAt.render(e,!0,n),t._onUpdate&&!r&&fe(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&fe(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===s&&(s&&Nt(t,1),r||(fe(t,s?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,r);return this},r.targets=function(){return this._targets},r.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),t.prototype.invalidate.call(this)},r.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e)&&(this._lazy=0,this.parent))return le(this);if(this.timeline)return this.timeline.killTweensOf(t,e,Ue&&!0!==Ue.vars.overwrite)._first||le(this),this;var r,n,i,o,a,s,u,c=this._targets,h=t?ee(t):c,f=this._ptLookup,l=this._pt;if((!e||"all"===e)&&function(t,e){for(var r=t.length,n=r===e.length;n&&r--&&t[r]===e[r];);return r<0}(c,h))return le(this);for(r=this._op=this._op||[],"all"!==e&&(F(e)&&(a={},bt(e,(function(t){return a[t]=1})),e=a),e=function(t,e){var r,n,i,o,a=t[0]?mt(t[0]).harness:0,s=a&&a.aliases;if(!s)return e;for(n in r=Rt({},e),s)if(n in r)for(i=(o=s[n].split(",")).length;i--;)r[o[i]]=r[n];return r}(c,e)),u=c.length;u--;)if(~h.indexOf(c[u]))for(a in n=f[u],"all"===e?(r[u]=e,o=n,i={}):(i=r[u]=r[u]||{},o=e),o)(s=n&&n[a])&&("kill"in s.d&&!0!==s.d.kill(a)||Dt(this,s,"_pt"),delete n[a]),"all"!==i&&(i[a]=1);return this._initted&&!this._pt&&l&&le(this),this},e.to=function(t,r){return new e(t,r,arguments[2])},e.from=function(t,r){return new e(t,Et(arguments,1))},e.delayedCall=function(t,r,n,i){return new e(r,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:r,onReverseComplete:r,onCompleteParams:n,onReverseCompleteParams:n,callbackScope:i})},e.fromTo=function(t,r,n){return new e(t,Et(arguments,2))},e.set=function(t,r){return r.duration=0,r.repeatDelay||(r.repeat=0),new e(t,r)},e.killTweensOf=function(t,e,r){return o.killTweensOf(t,e,r)},e}(Le);Ot(Ye.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),bt("staggerTo,staggerFrom,staggerFromTo",(function(t){Ye[t]=function(){var e=new Be,r=Zt.call(arguments,0);return r.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,r)}}));var We=function(t,e,r){return t[e]=r},qe=function(t,e,r){return t[e](r)},Ke=function(t,e,r,n){return t[e](n.fp,r)},$e=function(t,e,r){return t.setAttribute(e,r)},Je=function(t,e){return j(t[e])?qe:X(t[e])&&t.setAttribute?$e:We},Ze=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4,e)},Qe=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},tr=function(t,e){var r=e._pt,n="";if(!t&&e.b)n=e.b;else if(1===t&&e.e)n=e.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*t):Math.round(1e4*(r.s+r.c*t))/1e4)+n,r=r._next;n+=e.c}e.set(e.t,e.p,n,e)},er=function(t,e){for(var r=e._pt;r;)r.r(t,r.d),r=r._next},rr=function(t,e,r,n){for(var i,o=this._pt;o;)i=o._next,o.p===n&&o.modifier(t,e,r),o=i},nr=function(t){for(var e,r,n=this._pt;n;)r=n._next,n.p===t&&!n.op||n.op===t?Dt(this,n,"_pt"):n.dep||(e=1),n=r;return!e},ir=function(t,e,r,n){n.mSet(t,e,n.m.call(n.tween,r,n.mt),n)},or=function(t){for(var e,r,n,i,o=t._pt;o;){for(e=o._next,r=n;r&&r.pr>o.pr;)r=r._next;(o._prev=r?r._prev:i)?o._prev._next=o:n=o,(o._next=r)?r._prev=o:i=o,o=e}t._pt=n},ar=function(){function t(t,e,r,n,i,o,a,s,u){this.t=e,this.s=n,this.c=i,this.p=r,this.r=o||Ze,this.d=a||this,this.set=s||We,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,r){this.mSet=this.mSet||this.set,this.set=ir,this.m=t,this.mt=r,this.tween=e},t}();bt(vt+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return ut[t]=1})),et.TweenMax=et.TweenLite=Ye,et.TimelineLite=et.TimelineMax=Be,o=new Be({sortChildren:!1,defaults:P,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),M.stringFilter=we;var sr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),r=0;r1){var n=t.map((function(t){return hr.quickSetter(t,e,r)})),i=n.length;return function(t){for(var e=i;e--;)n[e](t)}}t=t[0]||{};var o=ft[e],a=mt(t),s=a.harness&&(a.harness.aliases||{})[e]||e,u=o?function(e){var n=new o;f._pt=0,n.init(t,r?e+r:e,f,0,[t]),n.render(1,n),f._pt&&er(1,f)}:a.set(t,s);return o?u:function(e){return u(t,s,r?e+r:e,a,1)}},isTweening:function(t){return o.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Me(t.ease,P.ease)),Mt(P,t||{})},config:function(t){return Mt(M,t||{})},registerEffect:function(t){var e=t.name,r=t.effect,n=t.plugins,i=t.defaults,o=t.extendTimeline;(n||"").split(",").forEach((function(t){return t&&!ft[t]&&!et[t]&&ot(e+" effect requires "+t+" plugin.")})),lt[e]=function(t,e,n){return r(ee(t),Ot(e||{},i),n)},o&&(Be.prototype[e]=function(t,r,n){return this.add(lt[e](t,H(r)?r:(n=r)&&{},this),n)})},registerEase:function(t,e){Te[t]=Me(e)},parseEase:function(t,e){return arguments.length?Me(t,e):Te},getById:function(t){return o.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var r,n,i=new Be(t);for(i.smoothChildTiming=z(t.smoothChildTiming),o.remove(i),i._dp=0,i._time=i._tTime=o._time,r=o._first;r;)n=r._next,!e&&!r._dur&&r instanceof Ye&&r.vars.onComplete===r._targets[0]||Xt(i,r,r._start-r._delay),r=n;return Xt(o,i,0),i},utils:{wrap:function t(e,r,n){var i=r-e;return W(e)?se(e,t(0,e.length),r):Kt(n,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,r,n){var i=r-e,o=2*i;return W(e)?se(e,t(0,e.length-1),r):Kt(n,(function(t){return e+((t=(o+(t-e)%o)%o)>i?o-t:t)}))},distribute:ne,random:ae,snap:oe,normalize:function(t,e,r){return ce(t,e,0,1,r)},getUnit:Jt,clamp:function(t,e,r){return Kt(r,(function(r){return $t(t,e,r)}))},splitColor:ye,toArray:ee,mapRange:ce,pipe:function(){for(var t=arguments.length,e=new Array(t),r=0;r>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function l(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function d(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function v(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function m(t,e){return t>>>0>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(t){for(var e=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,_=0|this._gh,b=0|this._hh,g=0|this._al,w=0|this._bl,E=0|this._cl,x=0|this._dl,T=0|this._el,S=0|this._fl,A=0|this._gl,O=0|this._hl,I=0;I<32;I+=2)e[I]=t.readInt32BE(4*I),e[I+1]=t.readInt32BE(4*I+4);for(;I<160;I+=2){var R=e[I-30],M=e[I-30+1],P=d(R,M),C=p(M,R),D=v(R=e[I-4],M=e[I-4+1]),N=y(M,R),k=e[I-14],L=e[I-14+1],B=e[I-32],U=e[I-32+1],F=C+L|0,j=P+k+m(F,C)|0;j=(j=j+D+m(F=F+N|0,N)|0)+B+m(F=F+U|0,U)|0,e[I]=j,e[I+1]=F}for(var G=0;G<160;G+=2){j=e[G],F=e[G+1];var X=h(r,n,i),H=h(g,w,E),z=f(r,g),V=f(g,r),Y=l(s,T),W=l(T,s),q=a[G],K=a[G+1],$=c(s,u,_),J=c(T,S,A),Z=O+W|0,Q=b+Y+m(Z,O)|0;Q=(Q=(Q=Q+$+m(Z=Z+J|0,J)|0)+q+m(Z=Z+K|0,K)|0)+j+m(Z=Z+F|0,F)|0;var tt=V+H|0,et=z+X+m(tt,V)|0;b=_,O=A,_=u,A=S,u=s,S=T,s=o+Q+m(T=x+Z|0,x)|0,o=i,x=E,i=n,E=w,n=r,w=g,r=Q+et+m(g=Z+tt|0,Z)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+x|0,this._el=this._el+T|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+O|0,this._ah=this._ah+r+m(this._al,g)|0,this._bh=this._bh+n+m(this._bl,w)|0,this._ch=this._ch+i+m(this._cl,E)|0,this._dh=this._dh+o+m(this._dl,x)|0,this._eh=this._eh+s+m(this._el,T)|0,this._fh=this._fh+u+m(this._fl,S)|0,this._gh=this._gh+_+m(this._gl,A)|0,this._hh=this._hh+b+m(this._hl,O)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},"3MSx":function(t,e,r){var n=r("LER9"),i=r("bPso"),o=r("+oaW"),a=r("CsW6"),s=r("F1mQ"),u=r("8kJ5"),c=r("HfSF"),h=r("5Wkw"),f=r("pRMk").Buffer;t.exports=function(t,e,r){var l;l=t.padding?t.padding:r?1:4;var d,p=n(t);if(4===l)d=function(t,e){var r=t.modulus.byteLength(),n=e.length,c=o("sha1").update(f.alloc(0)).digest(),h=c.length,l=2*h;if(n>r-l-2)throw new Error("message too long");var d=f.alloc(r-n-l-2),p=r-h-1,v=i(h),y=s(f.concat([c,d,f.alloc(1,1),e],p),a(v,p)),m=s(v,a(y,h));return new u(f.concat([f.alloc(1),m,y],r))}(p,e);else if(1===l)d=function(t,e,r){var n,o=e.length,a=t.modulus.byteLength();if(o>a-11)throw new Error("message too long");n=r?f.alloc(a-o-3,255):function(t){var e,r=f.allocUnsafe(t),n=0,o=i(2*t),a=0;for(;n=0)throw new Error("data too long for modulus")}return r?h(d,p):c(d,p)}},"3Wkq":function(t,e,r){(function(e){var n=r("8kJ5"),i=new(r("y9a5")),o=new n(24),a=new n(11),s=new n(10),u=new n(3),c=new n(7),h=r("cyIN"),f=r("bPso");function l(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._pub=new n(t),this}function d(t,r){return r=r||"utf8",e.isBuffer(t)||(t=new e(t,r)),this._priv=new n(t),this}t.exports=v;var p={};function v(t,e,r){this.setGenerator(e),this.__prime=new n(t),this._prime=n.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=l,this.setPrivateKey=d):this._primeCode=8}function y(t,r){var n=new e(t.toArray());return r?n.toString(r):n}Object.defineProperty(v.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var r=e.toString("hex"),n=[r,t.toString(16)].join("_");if(n in p)return p[n];var f,l=0;if(t.isEven()||!h.simpleSieve||!h.fermatTest(t)||!i.test(t))return l+=1,l+="02"===r||"05"===r?8:4,p[n]=l,l;switch(i.test(t.shrn(1))||(l+=2),r){case"02":t.mod(o).cmp(a)&&(l+=8);break;case"05":(f=t.mod(s)).cmp(u)&&f.cmp(c)&&(l+=8);break;default:l+=4}return p[n]=l,l}(this.__prime,this.__gen)),this._primeCode}}),v.prototype.generateKeys=function(){return this._priv||(this._priv=new n(f(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},v.prototype.computeSecret=function(t){var r=(t=(t=new n(t)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new e(r.toArray()),o=this.getPrime();if(i.length",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(c),f=["%","/","?",";","#"].concat(h),l=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},_=r("UKnr");function b(t,e,r){if(t&&i.isObject(t)&&t instanceof o)return t;var n=new o;return n.parse(t,e,r),n}o.prototype.parse=function(t,e,r){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?D+="x":D+=C[N];if(!D.match(d)){var L=M.slice(0,O),B=M.slice(O+1),U=C.match(p);U&&(L.push(U[1]),B.unshift(U[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),R||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",j=this.hostname||"";this.host=j+F,this.href+=this.host,R&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[E])for(O=0,P=h.length;O0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift());return r.search=t.search,r.query=t.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!x.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=x.slice(-1)[0],A=(r.host||t.host||x.length>1)&&("."===S||".."===S)||""===S,O=0,I=x.length;I>=0;I--)"."===(S=x[I])?x.splice(I,1):".."===S?(x.splice(I,1),O++):O&&(x.splice(I,1),O--);if(!w&&!E)for(;O--;O)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),A&&"/"!==x.join("/").substr(-1)&&x.push("");var R,M=""===x[0]||x[0]&&"/"===x[0].charAt(0);T&&(r.hostname=r.host=M?"":x.length?x.shift():"",(R=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=R.shift(),r.host=r.hostname=R.shift()));return(w=w||r.host&&x.length)&&!M&&x.unshift(""),x.length?r.pathname=x.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=t.auth||r.auth,r.slashes=r.slashes||t.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},"3qw6":function(t,e){t.exports=function(t){for(var e,r=t.length;r--;){if(255!==(e=t.readUInt8(r))){e++,t.writeUInt8(e,r);break}t.writeUInt8(0,r)}}},"45vN":function(t,e,r){var n=e;n.Reporter=r("E9s0").Reporter,n.DecoderBuffer=r("Imh/").DecoderBuffer,n.EncoderBuffer=r("Imh/").EncoderBuffer,n.Node=r("soaT")},"48B7":function(t,e,r){"use strict";var n=r("fOyB"),i=r("8kJ5"),o=r("wfEq"),a=r("7ZyU"),s=n.assert;function u(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new i(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function c(t,e,r,n,o){a.BasePoint.call(this,t,"projective"),null===e&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(e,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,a),t.exports=u,u.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},u.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},u.prototype.jpoint=function(t,e,r,n){return this.point(t,e,r,n)},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var u=s.fromRed().isOdd();return(e&&!u||!e&&u)&&(s=s.redNeg()),this.point(t,s)},u.prototype.pointFromY=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},u.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),r=t.y.redSqr(),n=e.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(r)));return 0===n.cmp(i)},o(c,a.BasePoint),u.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},u.prototype.point=function(t,e,r,n){return new c(this,t,e,r,n)},c.fromJSON=function(t,e){return new c(t,e[0],e[1],e[2])},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},c.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(t),i=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),o=n.redAdd(e),a=o.redSub(r),s=n.redSub(e),u=i.redMul(a),c=o.redMul(s),h=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,h)},c.prototype._projDbl=function(){var t,e,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)t=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),e=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);t=n.redSub(i).redISub(o).redMul(u),e=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.z).redSqr(),u=c.redSub(s).redSub(s);t=this.curve._mulC(n.redISub(c)).redMul(u),e=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(t,e,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),r=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),n=this.t.redMul(this.curve.dd).redMul(t.t),i=this.z.redMul(t.z.redAdd(t.z)),o=r.redSub(e),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(e),c=o.redMul(a),h=s.redMul(u),f=o.redMul(u),l=a.redMul(s);return this.curve.point(c,h,l,f)},c.prototype._projAdd=function(t){var e,r,n=this.z.redMul(t.z),i=n.redSqr(),o=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),h=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(h);return this.curve.twisted?(e=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),r=u.redMul(c)):(e=n.redMul(c).redMul(a.redSub(o)),r=this.curve._mulC(u).redMul(c)),this.curve.point(f,e,r)},c.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},c.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!1)},c.prototype.jmulAdd=function(t,e,r){return this.curve._wnafMulAdd(1,[this,e],[t,r],2,!0)},c.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},c.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var r=t.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(n),0===this.x.cmp(e))return!0}},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.prototype.add},"4OlW":function(t,e,r){"use strict";var n=r("ovh1");t.exports=function(t,e,r){return n.forEach(r,(function(r){t=r(t,e)})),t}},"5+HP":function(t,e,r){"use strict";(function(t){var n=r("Z3s7"),i=r("AIuu"),o=setTimeout;function a(t){return Boolean(t&&void 0!==t.length)}function s(){}function u(t){if(!(this instanceof u))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,u._immediateFn((function(){var r=1===t._state?e.onFulfilled:e.onRejected;if(null!==r){var n;try{n=r(t._value)}catch(t){return void f(e.promise,t)}h(e.promise,n)}else(1===t._state?h:f)(e.promise,t._value)}))):t._deferreds.push(e)}function h(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var r=e.then;if(e instanceof u)return t._state=3,t._value=e,void l(t);if("function"==typeof r)return void p((n=r,i=e,function(){n.apply(i,arguments)}),t)}t._state=1,t._value=e,l(t)}catch(e){f(t,e)}var n,i}function f(t,e){t._state=2,t._value=e,l(t)}function l(t){2===t._state&&0===t._deferreds.length&&u._immediateFn((function(){t._handled||u._unhandledRejectionFn(t._value)}));for(var e=0,r=t._deferreds.length;e1)for(var r=1;r=0||!r.umod(t.prime1)||!r.umod(t.prime2);)r=new n(i(e));return r}t.exports=o,o.getr=a}).call(this,r("qykS").Buffer)},"5wZK":function(t,e,r){var n=e;n.der=r("LpNI"),n.pem=r("wQuK")},"63Ad":function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}}},"6DIm":function(t,e,r){"use strict";(function(t,r){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ var n=Object.freeze({});function i(t){return null==t}function o(t){return null!=t}function a(t){return!0===t}function s(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function u(t){return null!==t&&"object"==typeof t}var c=Object.prototype.toString;function h(t){return"[object Object]"===c.call(t)}function f(t){return"[object RegExp]"===c.call(t)}function l(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||h(t)&&t.toString===c?JSON.stringify(t,null,2):String(t)}function v(t){var e=parseFloat(t);return isNaN(e)?t:e}function y(t,e){for(var r=Object.create(null),n=t.split(","),i=0;i-1)return t.splice(r,1)}}var b=Object.prototype.hasOwnProperty;function g(t,e){return b.call(t,e)}function w(t){var e=Object.create(null);return function(r){return e[r]||(e[r]=t(r))}}var E=/-(\w)/g,x=w((function(t){return t.replace(E,(function(t,e){return e?e.toUpperCase():""}))})),T=w((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),S=/\B([A-Z])/g,A=w((function(t){return t.replace(S,"-$1").toLowerCase()}));var O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function r(r){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,r):t.call(e)}return r._length=t.length,r};function I(t,e){e=e||0;for(var r=t.length-e,n=new Array(r);r--;)n[r]=t[r+e];return n}function R(t,e){for(var r in e)t[r]=e[r];return t}function M(t){for(var e={},r=0;r0,J=q&&q.indexOf("edge/")>0,Z=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===W),Q=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(V)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,rt)}catch(t){}var nt=function(){return void 0===H&&(H=!V&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),H},it=V&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=P,ct=0,ht=function(){this.id=ct++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){_(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){var t=this.subs.slice();for(var e=0,r=t.length;e-1)if(o&&!g(i,"default"))a=!1;else if(""===a||a===A(t)){var u=Gt(String,i.type);(u<0||s0&&(he((u=t(u,(r||"")+"_"+n))[0])&&he(h)&&(f[c]=mt(h.text+u[0].text),u.shift()),f.push.apply(f,u)):s(u)?he(h)?f[c]=mt(h.text+u):""!==u&&f.push(mt(u)):he(u)&&he(h)?f[c]=mt(h.text+u.text):(a(e._isVList)&&o(u.tag)&&i(u.key)&&o(r)&&(u.key="__vlist"+r+"_"+n+"__"),f.push(u)));return f}(t):void 0}function he(t){return o(t)&&o(t.text)&&!1===t.isComment}function fe(t,e){if(t){for(var r=Object.create(null),n=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var u in i={},t)t[u]&&"$"!==u[0]&&(i[u]=ve(e,u,t[u]))}else i={};for(var c in e)c in i||(i[c]=ye(e,c));return t&&Object.isExtensible(t)&&(t._normalized=i),G(i,"$stable",a),G(i,"$key",s),G(i,"$hasNormal",o),i}function ve(t,e,r){var n=function(){var t=arguments.length?r.apply(null,arguments):r({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ce(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return r.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ye(t,e){return function(){return t[e]}}function me(t,e){var r,n,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(r=new Array(t.length),n=0,i=t.length;ndocument.createEvent("Event").timeStamp&&(sr=function(){return ur.now()})}function cr(){var t,e;for(ar=sr(),ir=!0,tr.sort((function(t,e){return t.id-e.id})),or=0;oror&&tr[r].id>t.id;)r--;tr.splice(r+1,0,t)}else tr.push(t);nr||(nr=!0,ee(cr))}}(this)},fr.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||u(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Xt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fr.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var lr={enumerable:!0,configurable:!0,get:P,set:P};function dr(t,e,r){lr.get=function(){return this[e][r]},lr.set=function(t){this[e][r]=t},Object.defineProperty(t,r,lr)}function pr(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var r=t.$options.propsData||{},n=t._props={},i=t.$options._propKeys=[];t.$parent&&xt(!1);var o=function(o){i.push(o);var a=Ut(o,e,r,t);At(n,o,a),o in t||dr(t,"_props",o)};for(var a in e)o(a);xt(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var r in e)t[r]="function"!=typeof e[r]?P:O(e[r],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;h(e=t._data="function"==typeof e?function(t,e){lt();try{return t.call(e,e)}catch(t){return Xt(t,e,"data()"),{}}finally{dt()}}(e,t):e||{})||(e={});var r=Object.keys(e),n=t.$options.props,i=(t.$options.methods,r.length);for(;i--;){var o=r[i];0,n&&g(n,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&dr(t,"_data",o))}var a;St(e,!0)}(t):St(t._data={},!0),e.computed&&function(t,e){var r=t._computedWatchers=Object.create(null),n=nt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,n||(r[i]=new fr(t,a||P,P,vr)),i in t||yr(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var r in e){var n=e[r];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!f(t)&&t.test(e)}function Ar(t,e){var r=t.cache,n=t.keys,i=t._vnode;for(var o in r){var a=r[o];if(a){var s=Tr(a.componentOptions);s&&!e(s)&&Or(r,o,n,i)}}}function Or(t,e,r,n){var i=t[e];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),t[e]=null,_(r,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=gr++,e._isVue=!0,t&&t._isComponent?function(t,e){var r=t.$options=Object.create(t.constructor.options),n=e._parentVnode;r.parent=e.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,e.render&&(r.render=e.render,r.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Lt(wr(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,r=e.parent;if(r&&!e.abstract){for(;r.$options.abstract&&r.$parent;)r=r.$parent;r.$children.push(t)}t.$parent=r,t.$root=r?r.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&qe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,r=t.$vnode=e._parentVnode,i=r&&r.context;t.$slots=le(e._renderChildren,i),t.$scopedSlots=n,t._c=function(e,r,n,i){return Fe(t,e,r,n,i,!1)},t.$createElement=function(e,r,n,i){return Fe(t,e,r,n,i,!0)};var o=r&&r.data;At(t,"$attrs",o&&o.attrs||n,null,!0),At(t,"$listeners",e._parentListeners||n,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=fe(t.$options.inject,t);e&&(xt(!1),Object.keys(e).forEach((function(r){At(t,r,e[r])})),xt(!0))}(e),pr(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Qe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(Er),function(t){var e={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",r),t.prototype.$set=Ot,t.prototype.$delete=It,t.prototype.$watch=function(t,e,r){if(h(e))return br(this,t,e,r);(r=r||{}).user=!0;var n=new fr(this,t,e,r);if(r.immediate)try{e.call(this,n.value)}catch(t){Xt(t,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(Er),function(t){var e=/^hook:/;t.prototype.$on=function(t,r){var n=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?I(r):r;for(var n=I(arguments,1),i='event handler for "'+t+'"',o=0,a=r.length;oparseInt(this.max)&&Or(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return F}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:R,mergeOptions:Lt,defineReactive:At},t.set=Ot,t.delete=It,t.nextTick=ee,t.observable=function(t){return St(t),t},t.options=Object.create(null),B.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,R(t.options.components,Rr),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var r=I(arguments,1);return r.unshift(this),"function"==typeof t.install?t.install.apply(t,r):"function"==typeof t&&t.apply(null,r),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Lt(this.options,t),this}}(t),xr(t),function(t){B.forEach((function(e){t[e]=function(t,r){return r?("component"===e&&h(r)&&(r.name=r.name||t,r=this.options._base.extend(r)),"directive"===e&&"function"==typeof r&&(r={bind:r,update:r}),this.options[e+"s"][t]=r,r):this.options[e+"s"][t]}}))}(t)}(Er),Object.defineProperty(Er.prototype,"$isServer",{get:nt}),Object.defineProperty(Er.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Er,"FunctionalRenderContext",{value:Ce}),Er.version="2.6.11";var Mr=y("style,class"),Pr=y("input,textarea,option,select,progress"),Cr=y("contenteditable,draggable,spellcheck"),Dr=y("events,caret,typing,plaintext-only"),Nr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),kr="http://www.w3.org/1999/xlink",Lr=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Br=function(t){return Lr(t)?t.slice(6,t.length):""},Ur=function(t){return null==t||!1===t};function Fr(t){for(var e=t.data,r=t,n=t;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=jr(n.data,e));for(;o(r=r.parent);)r&&r.data&&(e=jr(e,r.data));return function(t,e){if(o(t)||o(e))return Gr(t,Xr(e));return""}(e.staticClass,e.class)}function jr(t,e){return{staticClass:Gr(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Gr(t,e){return t?e?t+" "+e:t:e||""}function Xr(t){return Array.isArray(t)?function(t){for(var e,r="",n=0,i=t.length;n-1?ln(t,e,r):Nr(e)?Ur(r)?t.removeAttribute(e):(r="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,r)):Cr(e)?t.setAttribute(e,function(t,e){return Ur(e)||"false"===e?"false":"contenteditable"===t&&Dr(e)?e:"true"}(e,r)):Lr(e)?Ur(r)?t.removeAttributeNS(kr,Br(e)):t.setAttributeNS(kr,e,r):ln(t,e,r)}function ln(t,e,r){if(Ur(r))t.removeAttribute(e);else{if(K&&!$&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==r&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,r)}}var dn={create:hn,update:hn};function pn(t,e){var r=e.elm,n=e.data,a=t.data;if(!(i(n.staticClass)&&i(n.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=Fr(e),u=r._transitionClasses;o(u)&&(s=Gr(s,Xr(u))),s!==r._prevClass&&(r.setAttribute("class",s),r._prevClass=s)}}var vn,yn={create:pn,update:pn};function mn(t,e,r){var n=vn;return function i(){var o=e.apply(null,arguments);null!==o&&gn(t,i,r,n)}}var _n=Wt&&!(Q&&Number(Q[1])<=53);function bn(t,e,r,n){if(_n){var i=ar,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}vn.addEventListener(t,e,et?{capture:r,passive:n}:r)}function gn(t,e,r,n){(n||vn).removeEventListener(t,e._wrapper||e,r)}function wn(t,e){if(!i(t.data.on)||!i(e.data.on)){var r=e.data.on||{},n=t.data.on||{};vn=e.elm,function(t){if(o(t.__r)){var e=K?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(r),ae(r,n,bn,gn,mn,e.context),vn=void 0}}var En,xn={create:wn,update:wn};function Tn(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var r,n,a=e.elm,s=t.data.domProps||{},u=e.data.domProps||{};for(r in o(u.__ob__)&&(u=e.data.domProps=R({},u)),s)r in u||(a[r]="");for(r in u){if(n=u[r],"textContent"===r||"innerHTML"===r){if(e.children&&(e.children.length=0),n===s[r])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===r&&"PROGRESS"!==a.tagName){a._value=n;var c=i(n)?"":String(n);Sn(a,c)&&(a.value=c)}else if("innerHTML"===r&&Vr(a.tagName)&&i(a.innerHTML)){(En=En||document.createElement("div")).innerHTML=""+n+"";for(var h=En.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;h.firstChild;)a.appendChild(h.firstChild)}else if(n!==s[r])try{a[r]=n}catch(t){}}}}function Sn(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var r=!0;try{r=document.activeElement!==t}catch(t){}return r&&t.value!==e}(t,e)||function(t,e){var r=t.value,n=t._vModifiers;if(o(n)){if(n.number)return v(r)!==v(e);if(n.trim)return r.trim()!==e.trim()}return r!==e}(t,e))}var An={create:Tn,update:Tn},On=w((function(t){var e={},r=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function In(t){var e=Rn(t.style);return t.staticStyle?R(t.staticStyle,e):e}function Rn(t){return Array.isArray(t)?M(t):"string"==typeof t?On(t):t}var Mn,Pn=/^--/,Cn=/\s*!important$/,Dn=function(t,e,r){if(Pn.test(e))t.style.setProperty(e,r);else if(Cn.test(r))t.style.setProperty(A(e),r.replace(Cn,""),"important");else{var n=kn(e);if(Array.isArray(r))for(var i=0,o=r.length;i-1?e.split(Un).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var r=" "+(t.getAttribute("class")||"")+" ";r.indexOf(" "+e+" ")<0&&t.setAttribute("class",(r+e).trim())}}function jn(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Un).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var r=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";r.indexOf(n)>=0;)r=r.replace(n," ");(r=r.trim())?t.setAttribute("class",r):t.removeAttribute("class")}}function Gn(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&R(e,Xn(t.name||"v")),R(e,t),e}return"string"==typeof t?Xn(t):void 0}}var Xn=w((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Hn=V&&!$,zn="transition",Vn="transitionend",Yn="animation",Wn="animationend";Hn&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(zn="WebkitTransition",Vn="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yn="WebkitAnimation",Wn="webkitAnimationEnd"));var qn=V?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function Kn(t){qn((function(){qn(t)}))}function $n(t,e){var r=t._transitionClasses||(t._transitionClasses=[]);r.indexOf(e)<0&&(r.push(e),Fn(t,e))}function Jn(t,e){t._transitionClasses&&_(t._transitionClasses,e),jn(t,e)}function Zn(t,e,r){var n=ti(t,e),i=n.type,o=n.timeout,a=n.propCount;if(!i)return r();var s="transition"===i?Vn:Wn,u=0,c=function(){t.removeEventListener(s,h),r()},h=function(e){e.target===t&&++u>=a&&c()};setTimeout((function(){u0&&(r="transition",h=a,f=o.length):"animation"===e?c>0&&(r="animation",h=c,f=u.length):f=(r=(h=Math.max(a,c))>0?a>c?"transition":"animation":null)?"transition"===r?o.length:u.length:0,{type:r,timeout:h,propCount:f,hasTransform:"transition"===r&&Qn.test(n[zn+"Property"])}}function ei(t,e){for(;t.length1}function si(t,e){!0!==e.data.show&&ni(e)}var ui=function(t){var e,r,n={},u=t.modules,c=t.nodeOps;for(e=0;ep?b(t,i(r[m+1])?null:r[m+1].elm,r,d,m,n):d>m&&w(e,l,p)}(l,y,m,r,h):o(m)?(o(t.text)&&c.setTextContent(l,""),b(l,null,m,0,m.length-1,r)):o(y)?w(y,0,y.length-1):o(t.text)&&c.setTextContent(l,""):t.text!==e.text&&c.setTextContent(l,e.text),o(p)&&o(d=p.hook)&&o(d=d.postpatch)&&d(t,e)}}}function S(t,e,r){if(a(r)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n-1,a.selected!==o&&(a.selected=o);else if(N(di(a),n))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function li(t,e){return e.every((function(e){return!N(e,t)}))}function di(t){return"_value"in t?t._value:t.value}function pi(t){t.target.composing=!0}function vi(t){t.target.composing&&(t.target.composing=!1,yi(t.target,"input"))}function yi(t,e){var r=document.createEvent("HTMLEvents");r.initEvent(e,!0,!0),t.dispatchEvent(r)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var _i={model:ci,show:{bind:function(t,e,r){var n=e.value,i=(r=mi(r)).data&&r.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&i?(r.data.show=!0,ni(r,(function(){t.style.display=o}))):t.style.display=n?o:"none"},update:function(t,e,r){var n=e.value;!n!=!e.oldValue&&((r=mi(r)).data&&r.data.transition?(r.data.show=!0,n?ni(r,(function(){t.style.display=t.__vOriginalDisplay})):ii(r,(function(){t.style.display="none"}))):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,r,n,i){i||(t.style.display=t.__vOriginalDisplay)}}},bi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function gi(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?gi(ze(e.children)):t}function wi(t){var e={},r=t.$options;for(var n in r.propsData)e[n]=t[n];var i=r._parentListeners;for(var o in i)e[x(o)]=i[o];return e}function Ei(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var xi=function(t){return t.tag||He(t)},Ti=function(t){return"show"===t.name},Si={name:"transition",props:bi,abstract:!0,render:function(t){var e=this,r=this.$slots.default;if(r&&(r=r.filter(xi)).length){0;var n=this.mode;0;var i=r[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=gi(i);if(!o)return i;if(this._leaving)return Ei(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var u=(o.data||(o.data={})).transition=wi(this),c=this._vnode,h=gi(c);if(o.data.directives&&o.data.directives.some(Ti)&&(o.data.show=!0),h&&h.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,h)&&!He(h)&&(!h.componentInstance||!h.componentInstance._vnode.isComment)){var f=h.data.transition=R({},u);if("out-in"===n)return this._leaving=!0,se(f,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ei(t,i);if("in-out"===n){if(He(o))return c;var l,d=function(){l()};se(u,"afterEnter",d),se(u,"enterCancelled",d),se(f,"delayLeave",(function(t){l=t}))}}return i}}},Ai=R({tag:String,moveClass:String},bi);function Oi(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Ii(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ri(t){var e=t.data.pos,r=t.data.newPos,n=e.left-r.left,i=e.top-r.top;if(n||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ai.mode;var Mi={Transition:Si,TransitionGroup:{props:Ai,beforeMount:function(){var t=this,e=this._update;this._update=function(r,n){var i=$e(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,r,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",r=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=wi(this),s=0;s-1?Wr[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Wr[t]=/HTMLUnknownElement/.test(e.toString())},R(Er.options.directives,_i),R(Er.options.components,Mi),Er.prototype.__patch__=V?ui:P,Er.prototype.$mount=function(t,e){return function(t,e,r){var n;return t.$el=e,t.$options.render||(t.$options.render=yt),Qe(t,"beforeMount"),n=function(){t._update(t._render(),r)},new fr(t,n,P,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),r=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&V?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},V&&setTimeout((function(){F.devtools&&it&&it.emit("init",Er)}),0),e.a=Er}).call(this,r("pCvA"),r("oPUo").setImmediate)},"6MVH":function(t,e,r){"use strict";var n=e;n.version=r("cEa6").version,n.utils=r("fOyB"),n.rand=r("Wxe8"),n.curve=r("aAq9"),n.curves=r("cFST"),n.ec=r("t6uJ"),n.eddsa=r("dLON")},"6aAO":function(t,e,r){"use strict";function n(t,e,r){r=r||2;var n,s,u,c,h,d,p,y=e&&e.length,m=y?e[0]*r:t.length,_=i(t,0,m,r,!0),b=[];if(!_||_.next===_.prev)return b;if(y&&(_=function(t,e,r,n){var a,s,u,c,h,d=[];for(a=0,s=e.length;a80*r){n=u=t[0],s=c=t[1];for(var g=r;gu&&(u=h),d>c&&(c=d);p=0!==(p=Math.max(u-n,c-s))?1/p:0}return a(_,b,r,n,s,p),b}function i(t,e,r,n,i){var o,a;if(i===I(t,e,r,n)>0)for(o=e;o=e;o-=n)a=S(o,t[o],t[o+1],a);return a&&b(a,a.next)&&(A(a),a=a.next),a}function o(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!b(n,n.next)&&0!==_(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function a(t,e,r,n,i,f,l){if(t){!l&&f&&function(t,e,r,n){var i=t;do{null===i.z&&(i.z=p(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,o,a,s,u,c=1;do{for(r=t,t=null,o=null,a=0;r;){for(a++,n=r,s=0,e=0;e0||u>0&&n;)0!==s&&(0===u||!n||r.z<=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;r=n}o.nextZ=null,c*=2}while(a>1)}(i)}(t,n,i,f);for(var d,v,y=t;t.prev!==t.next;)if(d=t.prev,v=t.next,f?u(t,n,i,f):s(t))e.push(d.i/r),e.push(t.i/r),e.push(v.i/r),A(t),t=v.next,y=v.next;else if((t=v)===y){l?1===l?a(t=c(o(t),e,r),e,r,n,i,f,2):2===l&&h(t,e,r,n,i,f):a(o(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(_(e,r,n)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(y(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&&_(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function u(t,e,r,n){var i=t.prev,o=t,a=t.next;if(_(i,o,a)>=0)return!1;for(var s=i.xo.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,h=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=p(s,u,e,r,n),l=p(c,h,e,r,n),d=t.prevZ,v=t.nextZ;d&&d.z>=f&&v&&v.z<=l;){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;if(d=d.prevZ,v!==t.prev&&v!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&_(v.prev,v,v.next)>=0)return!1;v=v.nextZ}for(;d&&d.z>=f;){if(d!==t.prev&&d!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&_(d.prev,d,d.next)>=0)return!1;d=d.prevZ}for(;v&&v.z<=l;){if(v!==t.prev&&v!==t.next&&y(i.x,i.y,o.x,o.y,a.x,a.y,v.x,v.y)&&_(v.prev,v,v.next)>=0)return!1;v=v.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!b(i,a)&&g(i,n,n.next,a)&&x(i,a)&&x(a,i)&&(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),A(n),A(n.next),n=t=a),n=n.next}while(n!==t);return o(n)}function h(t,e,r,n,i,s){var u=t;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&m(u,c)){var h=T(u,c);return u=o(u,u.next),h=o(h,h.next),a(u,e,r,n,i,s),void a(h,e,r,n,i,s)}c=c.next}u=u.next}while(u!==t)}function f(t,e){return t.x-e.x}function l(t,e){var r=function(t,e){var r,n=e,i=t.x,o=t.y,a=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var s=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&s>a){if(a=s,s===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x=n.x&&n.x>=h&&i!==n.x&&y(or.x||n.x===r.x&&d(r,n)))&&(r=n,l=u)),n=n.next}while(n!==c);return r}(t,e);if(!r)return e;var n=T(r,t),i=o(r,r.next);return o(n,n.next),e===r?i:e}function d(t,e){return _(t.prev,t,e.prev)<0&&_(e.next,t,t.next)<0}function p(t,e,r,n,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-r)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function v(t){var e=t,r=t;do{(e.x=0&&(t-a)*(n-s)-(r-a)*(e-s)>=0&&(r-a)*(o-s)-(i-a)*(n-s)>=0}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var r=t;do{if(r.i!==t.i&&r.next.i!==t.i&&r.i!==e.i&&r.next.i!==e.i&&g(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&&(x(t,e)&&x(e,t)&&function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next}while(r!==t);return n}(t,e)&&(_(t.prev,t,e.prev)||_(t,e.prev,e))||b(t,e)&&_(t.prev,t,t.next)>0&&_(e.prev,e,e.next)>0)}function _(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function b(t,e){return t.x===e.x&&t.y===e.y}function g(t,e,r,n){var i=E(_(t,e,r)),o=E(_(t,e,n)),a=E(_(r,n,t)),s=E(_(r,n,e));return i!==o&&a!==s||(!(0!==i||!w(t,r,e))||(!(0!==o||!w(t,n,e))||(!(0!==a||!w(r,t,n))||!(0!==s||!w(r,e,n)))))}function w(t,e,r){return e.x<=Math.max(t.x,r.x)&&e.x>=Math.min(t.x,r.x)&&e.y<=Math.max(t.y,r.y)&&e.y>=Math.min(t.y,r.y)}function E(t){return t>0?1:t<0?-1:0}function x(t,e){return _(t.prev,t,t.next)<0?_(t,e,t.next)>=0&&_(t,t.prev,e)>=0:_(t,e,t.prev)<0||_(t,t.next,e)<0}function T(t,e){var r=new O(t.i,t.x,t.y),n=new O(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function S(t,e,r,n){var i=new O(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function O(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,r,n){for(var i=0,o=e,a=r-n;o0&&(n+=t[i-1].length,r.holes.push(n))}return r}},"6rtq":function(t,e,r){var n=r("8gph"),i=r("pRMk").Buffer,o=r("ql4I");function a(t,e,r,a){o.call(this),this._cipher=new n.AES(e),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=t}r("wfEq")(a,o),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},"6s8r":function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},"6yG2":function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getRandomBytes",{enumerable:!0,get:function(){return n.getRandomBytes}}),Object.defineProperty(e,"getRandomAsciiString",{enumerable:!0,get:function(){return n.getRandomAsciiString}}),Object.defineProperty(e,"getRandomString",{enumerable:!0,get:function(){return n.getRandomString}}),Object.defineProperty(e,"getRandomSampledString",{enumerable:!0,get:function(){return n.getRandomSampledString}}),e.default=void 0;var n=r("27bB"),i={getRandomBytes:n.getRandomBytes,getRandomAsciiString:n.getRandomAsciiString,getRandomString:n.getRandomString,getRandomSampledString:n.getRandomSampledString};e.default=i},"71kK":function(t,e,r){"use strict";var n=r("ovh1");t.exports=function(t,e){n.forEach(t,(function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])}))}},"7ZyU":function(t,e,r){"use strict";var n=r("8kJ5"),i=r("fOyB"),o=i.getNAF,a=i.getJSF,s=i.assert;function u(t,e){this.type=t,this.p=new n(e.p,16),this.red=e.prime?n.red(e.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=e.n&&new n(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(t,e){s(t.precomputed);var r=t._getDoubles(),n=o(e,1,this._bitLength),i=(1<=u;e--)c=(c<<1)+n[e];a.push(c)}for(var h=this.jpoint(null,null,null),f=this.jpoint(null,null,null),l=i;l>0;l--){for(u=0;u=0;c--){for(e=0;c>=0&&0===a[c];c--)e++;if(c>=0&&e++,u=u.dblp(e),c<0)break;var h=a[c];s(0!==h),u="affine"===t.type?h>0?u.mixedAdd(i[h-1>>1]):u.mixedAdd(i[-h-1>>1].neg()):h>0?u.add(i[h-1>>1]):u.add(i[-h-1>>1].neg())}return"affine"===t.type?u.toP():u},u.prototype._wnafMulAdd=function(t,e,r,n,i){for(var s=this._wnafT1,u=this._wnafT2,c=this._wnafT3,h=0,f=0;f=1;f-=2){var d=f-1,p=f;if(1===s[d]&&1===s[p]){var v=[e[d],null,null,e[p]];0===e[d].y.cmp(e[p].y)?(v[1]=e[d].add(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg())):0===e[d].y.cmp(e[p].y.redNeg())?(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].add(e[p].neg())):(v[1]=e[d].toJ().mixedAdd(e[p]),v[2]=e[d].toJ().mixedAdd(e[p].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],m=a(r[d],r[p]);h=Math.max(m[0].length,h),c[d]=new Array(h),c[p]=new Array(h);for(var _=0;_=0;f--){for(var x=0;f>=0;){var T=!0;for(_=0;_=0&&x++,w=w.dblp(x),f<0)break;for(_=0;_0?S=u[_][A-1>>1]:A<0&&(S=u[_][-A-1>>1].neg()),w="affine"===S.type?w.mixedAdd(S):w.add(S))}}for(f=0;f=Math.ceil((t.bitLength()+1)/e.step)},c.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i2&&void 0!==arguments[2]&&arguments[2];if(Object.keys(a.default.namedCurves).indexOf(t.crv)<0)throw new Error("UnsupportedCurve");var n=(0,s.fromJwk)(t,{outputFormat:"binary",outputPublic:!0,compact:r}),i=a.default.publicKeyAlgorithms.EC.oid,o={unused:0,data:Array.from(n)},h=u.encode({type:"namedCurve",value:a.default.namedCurves[t.crv].oid},"der"),f={algorithm:i,parameters:h},l={};if("public"===e)l.subjectPublicKey=o,l.algorithm=f;else if("private"===e){var d=(0,s.fromJwk)(t,{outputFormat:"binary",outputPublic:!1,compact:r});l.version=0,l.privateKeyAlgorithm=f,l.privateKey=c.encode({version:1,privateKey:Array.from(d),parameters:h,publicKey:o},"der")}return l};e.toJWK=function(t,e){if("public"===e){t.algorithm.parameters=u.decode(t.algorithm.parameters,"der");var r=new Uint8Array(t.subjectPublicKey.data),n=(0,a.getAlgorithmFromOid)(t.algorithm.parameters.value,a.default.namedCurves);if(n.length<1)throw new Error("UnsupportedCurve");return(0,s.toJwk)(r,n[0],{outputPublic:!0})}if("private"===e){t.privateKeyAlgorithm.parameters=u.decode(t.privateKeyAlgorithm.parameters,"der");try{t.privateKey=c.decode(t.privateKey,"der")}catch(e){t.privateKey=h.decode(t.privateKey,"der")}var i=new Uint8Array(t.privateKey.privateKey),o=(0,a.getAlgorithmFromOid)(t.privateKeyAlgorithm.parameters.value,a.default.namedCurves);if(o.length<1)throw new Error("UnsupportedCurve");return(0,s.toJwk)(i,o[0],{outputPublic:!1})}};var u=o.default.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})})),c=o.default.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())})),h=o.default.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("publicKey").explicit(1).optional().bitstr())}))},"8Sms":function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.toJwk=e.fromJwk=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=n(r("8ImE")),u=n(r("cQcr")),c=n(r("omOp")),h=i(r("SDgz")),f=i(r("qykS")),l=r("zYJ4"),d=r("yRLl"),p=r("srdS"),v=f.default.Buffer,y=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,c,f,v,y,m,_;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.outputPublic,a=n.compact,c=void 0!==a&&a,f=n.encOptions,v=(0,p.getJwkType)(e),y="boolean"==typeof i&&i?"public":v,"EC"===e.kty?m=s.fromJWK(e,y,c):"RSA"===e.kty&&(m=u.fromJwk(e,y)),"public"!==y){t.next=8;break}_=l.SubjectPublicKeyInfo.encode(m,"der"),t.next=14;break;case 8:if(_=l.OneAsymmetricKey.encode(m,"der"),!(void 0!==f.passphrase&&f.passphrase.length>0)){t.next=14;break}return t.next=12,(0,d.encryptEncryptedPrivateKeyInfo)(_,f);case 12:_=t.sent,y="encryptedPrivate";case 14:return _=new Uint8Array(_),t.abrupt("return","pem"===r?h.default.formatter.binToPem(_,y):_);case 16:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.fromJwk=y;var m=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,f,p,y,m;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=n.outputPublic,a=n.passphrase,f="pem"===r?h.default.formatter.pemToBin(e):e,t.prev=2,p=l.KeyStructure.decode(v.from(f),"der"),t.next=9;break;case 6:throw t.prev=6,t.t0=t.catch(2),new Error("FailedToDecodeKey");case 9:if("subjectPublicKeyInfo"!==p.type){t.next=14;break}y="public",p=p.value,t.next=26;break;case 14:if(y="boolean"==typeof i&&i?"public":"private","encryptedPrivateKeyInfo"!==p.type){t.next=21;break}return t.next=18,(0,d.decryptEncryptedPrivateKeyInfo)(p.value,a);case 18:p=t.sent,t.next=26;break;case 21:if("oneAsymmetricKey"!==p.type){t.next=25;break}p=p.value,t.next=26;break;case 25:throw new Error("UnsupportedKeyStructure");case 26:if(!((m=(0,c.getAlgorithmFromOid)("public"===y?p.algorithm.algorithm:p.privateKeyAlgorithm.algorithm,c.default.publicKeyAlgorithms)).length<1)){t.next=29;break}throw new Error("UnsupportedKey");case 29:if("EC"!==m[0]){t.next=33;break}return t.abrupt("return",s.toJWK(p,y));case 33:if("RSA"!==m[0]){t.next=37;break}return t.abrupt("return",u.toJwk(p,y));case 37:throw new Error("InvalidKeyType");case 38:case"end":return t.stop()}}),t,null,[[2,6]])})));return function(e,r,n){return t.apply(this,arguments)}}();e.toJwk=m},"8VmE":function(t,e){function r(){return t.exports=r=Object.assign||function(t){for(var e=1;e>>24]^h[p>>>16&255]^f[v>>>8&255]^l[255&y]^e[m++],a=c[p>>>24]^h[v>>>16&255]^f[y>>>8&255]^l[255&d]^e[m++],s=c[v>>>24]^h[y>>>16&255]^f[d>>>8&255]^l[255&p]^e[m++],u=c[y>>>24]^h[d>>>16&255]^f[p>>>8&255]^l[255&v]^e[m++],d=o,p=a,v=s,y=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[v>>>8&255]<<8|n[255&y])^e[m++],a=(n[p>>>24]<<24|n[v>>>16&255]<<16|n[y>>>8&255]<<8|n[255&d])^e[m++],s=(n[v>>>24]<<24|n[y>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^e[m++],u=(n[y>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&v])^e[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,r[a]=c,n[c]=a;var h=t[a],f=t[h],l=t[f],d=257*t[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*l^65537*f^257*h^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=h^t[t[t[l^h]]],s^=t[t[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function c(t){this._key=i(t),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var t=this._key,e=t.length,r=e+6,n=4*(r+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/e|0]<<24):e>6&&o%e==4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-e]^a}for(var c=[],h=0;h>>24]]^u.INV_SUB_MIX[1][u.SBOX[l>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[l>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(t){return a(t=i(t),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),r=n.allocUnsafe(16);return r.writeUInt32BE(e[0],0),r.writeUInt32BE(e[1],4),r.writeUInt32BE(e[2],8),r.writeUInt32BE(e[3],12),r},c.prototype.decryptBlock=function(t){var e=(t=i(t))[1];t[1]=t[3],t[3]=e;var r=a(t,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},t.exports.AES=c},"8kJ5":function(t,e,r){(function(t){!function(t,e){"use strict";function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function o(t,e,r){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(r=e,e=10),this._init(t||0,e||10,r||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a=r(3).Buffer}catch(t){}function s(t,e,r){for(var i=0,o=Math.min(t.length,r),a=0,s=e;s=49&&c<=54?c-49+10:c>=17&&c<=22?c-17+10:c,a|=u}return n(!(240&a),"Invalid character in "+t),i}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a"}o.isBN=function(t){return t instanceof o||null!==t&&"object"==typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},o.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=6)i=s(t,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==e&&(i=s(t,e,r+6),this.words[n]|=i<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=e)n++;n--,i=i/e|0;for(var o=t.length-r,a=o%n,s=Math.min(o,o-a)+r,c=0,h=r;h1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h:o.prototype.inspect=h;var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=l[t],h=d[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modrn(h).toString(t);r=(p=p.idivn(h)).isZero()?v+r:f[c-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c>>26,f=67108863&u,l=Math.min(c,e.length-1),d=Math.max(0,c-t.length+1);d<=l;d++){var p=c-d|0;h+=(a=(i=0|t.words[p])*(o=0|e.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|h}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(t[r--]=a>>8&255),r>=0&&(t[r--]=a>>16&255),6===o?(r>=0&&(t[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,r=0;return e>=4096&&(r+=13,e>>>=13),e>=64&&(r+=7,e>>>=7),e>=8&&(r+=4,e>>>=4),e>=2&&(r+=2,e>>>=2),r+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&e)&&(r+=13,e>>>=13),0==(127&e)&&(r+=7,e>>>=7),0==(15&e)&&(r+=4,e>>>=4),0==(3&e)&&(r+=2,e>>>=2),0==(1&e)&&r++,r},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,r;this.length>t.length?(e=this,r=t):(e=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(r=this,n=t):(r=t,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=t):(r=t,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,v=d>>>13,y=0|a[2],m=8191&y,_=y>>>13,b=0|a[3],g=8191&b,w=b>>>13,E=0|a[4],x=8191&E,T=E>>>13,S=0|a[5],A=8191&S,O=S>>>13,I=0|a[6],R=8191&I,M=I>>>13,P=0|a[7],C=8191&P,D=P>>>13,N=0|a[8],k=8191&N,L=N>>>13,B=0|a[9],U=8191&B,F=B>>>13,j=0|s[0],G=8191&j,X=j>>>13,H=0|s[1],z=8191&H,V=H>>>13,Y=0|s[2],W=8191&Y,q=Y>>>13,K=0|s[3],$=8191&K,J=K>>>13,Z=0|s[4],Q=8191&Z,tt=Z>>>13,et=0|s[5],rt=8191&et,nt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,ht=0|s[8],ft=8191&ht,lt=ht>>>13,dt=0|s[9],pt=8191&dt,vt=dt>>>13;r.negative=t.negative^e.negative,r.length=19;var yt=(c+(n=Math.imul(f,G))|0)+((8191&(i=(i=Math.imul(f,X))+Math.imul(l,G)|0))<<13)|0;c=((o=Math.imul(l,X))+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(p,G),i=(i=Math.imul(p,X))+Math.imul(v,G)|0,o=Math.imul(v,X);var mt=(c+(n=n+Math.imul(f,z)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(l,z)|0))<<13)|0;c=((o=o+Math.imul(l,V)|0)+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,n=Math.imul(m,G),i=(i=Math.imul(m,X))+Math.imul(_,G)|0,o=Math.imul(_,X),n=n+Math.imul(p,z)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(v,z)|0,o=o+Math.imul(v,V)|0;var _t=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,q)|0)+Math.imul(l,W)|0))<<13)|0;c=((o=o+Math.imul(l,q)|0)+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(g,G),i=(i=Math.imul(g,X))+Math.imul(w,G)|0,o=Math.imul(w,X),n=n+Math.imul(m,z)|0,i=(i=i+Math.imul(m,V)|0)+Math.imul(_,z)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,q)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(l,$)|0))<<13)|0;c=((o=o+Math.imul(l,J)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(x,G),i=(i=Math.imul(x,X))+Math.imul(T,G)|0,o=Math.imul(T,X),n=n+Math.imul(g,z)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(w,z)|0,o=o+Math.imul(w,V)|0,n=n+Math.imul(m,W)|0,i=(i=i+Math.imul(m,q)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,q)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,J)|0;var gt=(c+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,tt)|0)+Math.imul(l,Q)|0))<<13)|0;c=((o=o+Math.imul(l,tt)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(A,G),i=(i=Math.imul(A,X))+Math.imul(O,G)|0,o=Math.imul(O,X),n=n+Math.imul(x,z)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(T,z)|0,o=o+Math.imul(T,V)|0,n=n+Math.imul(g,W)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(w,W)|0,o=o+Math.imul(w,q)|0,n=n+Math.imul(m,$)|0,i=(i=i+Math.imul(m,J)|0)+Math.imul(_,$)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,tt)|0;var wt=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&(i=(i=i+Math.imul(f,nt)|0)+Math.imul(l,rt)|0))<<13)|0;c=((o=o+Math.imul(l,nt)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(R,G),i=(i=Math.imul(R,X))+Math.imul(M,G)|0,o=Math.imul(M,X),n=n+Math.imul(A,z)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(O,z)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(T,W)|0,o=o+Math.imul(T,q)|0,n=n+Math.imul(g,$)|0,i=(i=i+Math.imul(g,J)|0)+Math.imul(w,$)|0,o=o+Math.imul(w,J)|0,n=n+Math.imul(m,Q)|0,i=(i=i+Math.imul(m,tt)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,n=n+Math.imul(p,rt)|0,i=(i=i+Math.imul(p,nt)|0)+Math.imul(v,rt)|0,o=o+Math.imul(v,nt)|0;var Et=(c+(n=n+Math.imul(f,ot)|0)|0)+((8191&(i=(i=i+Math.imul(f,at)|0)+Math.imul(l,ot)|0))<<13)|0;c=((o=o+Math.imul(l,at)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,n=Math.imul(C,G),i=(i=Math.imul(C,X))+Math.imul(D,G)|0,o=Math.imul(D,X),n=n+Math.imul(R,z)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(M,z)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,q)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,q)|0,n=n+Math.imul(x,$)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(T,$)|0,o=o+Math.imul(T,J)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,tt)|0,n=n+Math.imul(m,rt)|0,i=(i=i+Math.imul(m,nt)|0)+Math.imul(_,rt)|0,o=o+Math.imul(_,nt)|0,n=n+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0;var xt=(c+(n=n+Math.imul(f,ut)|0)|0)+((8191&(i=(i=i+Math.imul(f,ct)|0)+Math.imul(l,ut)|0))<<13)|0;c=((o=o+Math.imul(l,ct)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(k,G),i=(i=Math.imul(k,X))+Math.imul(L,G)|0,o=Math.imul(L,X),n=n+Math.imul(C,z)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,z)|0,o=o+Math.imul(D,V)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,q)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,q)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(O,$)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,tt)|0,n=n+Math.imul(g,rt)|0,i=(i=i+Math.imul(g,nt)|0)+Math.imul(w,rt)|0,o=o+Math.imul(w,nt)|0,n=n+Math.imul(m,ot)|0,i=(i=i+Math.imul(m,at)|0)+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,n=n+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0;var Tt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&(i=(i=i+Math.imul(f,lt)|0)+Math.imul(l,ft)|0))<<13)|0;c=((o=o+Math.imul(l,lt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,n=Math.imul(U,G),i=(i=Math.imul(U,X))+Math.imul(F,G)|0,o=Math.imul(F,X),n=n+Math.imul(k,z)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(L,z)|0,o=o+Math.imul(L,V)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,W)|0,o=o+Math.imul(D,q)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,tt)|0,n=n+Math.imul(x,rt)|0,i=(i=i+Math.imul(x,nt)|0)+Math.imul(T,rt)|0,o=o+Math.imul(T,nt)|0,n=n+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(w,ot)|0,o=o+Math.imul(w,at)|0,n=n+Math.imul(m,ut)|0,i=(i=i+Math.imul(m,ct)|0)+Math.imul(_,ut)|0,o=o+Math.imul(_,ct)|0,n=n+Math.imul(p,ft)|0,i=(i=i+Math.imul(p,lt)|0)+Math.imul(v,ft)|0,o=o+Math.imul(v,lt)|0;var St=(c+(n=n+Math.imul(f,pt)|0)|0)+((8191&(i=(i=i+Math.imul(f,vt)|0)+Math.imul(l,pt)|0))<<13)|0;c=((o=o+Math.imul(l,vt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(U,z),i=(i=Math.imul(U,V))+Math.imul(F,z)|0,o=Math.imul(F,V),n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,q)|0)+Math.imul(L,W)|0,o=o+Math.imul(L,q)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,J)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,tt)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(O,rt)|0,o=o+Math.imul(O,nt)|0,n=n+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(T,ot)|0,o=o+Math.imul(T,at)|0,n=n+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(w,ut)|0,o=o+Math.imul(w,ct)|0,n=n+Math.imul(m,ft)|0,i=(i=i+Math.imul(m,lt)|0)+Math.imul(_,ft)|0,o=o+Math.imul(_,lt)|0;var At=(c+(n=n+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,vt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,vt)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(U,W),i=(i=Math.imul(U,q))+Math.imul(F,W)|0,o=Math.imul(F,q),n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(L,$)|0,o=o+Math.imul(L,J)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,Q)|0,o=o+Math.imul(D,tt)|0,n=n+Math.imul(R,rt)|0,i=(i=i+Math.imul(R,nt)|0)+Math.imul(M,rt)|0,o=o+Math.imul(M,nt)|0,n=n+Math.imul(A,ot)|0,i=(i=i+Math.imul(A,at)|0)+Math.imul(O,ot)|0,o=o+Math.imul(O,at)|0,n=n+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(T,ut)|0,o=o+Math.imul(T,ct)|0,n=n+Math.imul(g,ft)|0,i=(i=i+Math.imul(g,lt)|0)+Math.imul(w,ft)|0,o=o+Math.imul(w,lt)|0;var Ot=(c+(n=n+Math.imul(m,pt)|0)|0)+((8191&(i=(i=i+Math.imul(m,vt)|0)+Math.imul(_,pt)|0))<<13)|0;c=((o=o+Math.imul(_,vt)|0)+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,n=Math.imul(U,$),i=(i=Math.imul(U,J))+Math.imul(F,$)|0,o=Math.imul(F,J),n=n+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,tt)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(D,rt)|0,o=o+Math.imul(D,nt)|0,n=n+Math.imul(R,ot)|0,i=(i=i+Math.imul(R,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,n=n+Math.imul(A,ut)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(O,ut)|0,o=o+Math.imul(O,ct)|0,n=n+Math.imul(x,ft)|0,i=(i=i+Math.imul(x,lt)|0)+Math.imul(T,ft)|0,o=o+Math.imul(T,lt)|0;var It=(c+(n=n+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,vt)|0)+Math.imul(w,pt)|0))<<13)|0;c=((o=o+Math.imul(w,vt)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(U,Q),i=(i=Math.imul(U,tt))+Math.imul(F,Q)|0,o=Math.imul(F,tt),n=n+Math.imul(k,rt)|0,i=(i=i+Math.imul(k,nt)|0)+Math.imul(L,rt)|0,o=o+Math.imul(L,nt)|0,n=n+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,n=n+Math.imul(R,ut)|0,i=(i=i+Math.imul(R,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,lt)|0)+Math.imul(O,ft)|0,o=o+Math.imul(O,lt)|0;var Rt=(c+(n=n+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,vt)|0)+Math.imul(T,pt)|0))<<13)|0;c=((o=o+Math.imul(T,vt)|0)+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(U,rt),i=(i=Math.imul(U,nt))+Math.imul(F,rt)|0,o=Math.imul(F,nt),n=n+Math.imul(k,ot)|0,i=(i=i+Math.imul(k,at)|0)+Math.imul(L,ot)|0,o=o+Math.imul(L,at)|0,n=n+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,n=n+Math.imul(R,ft)|0,i=(i=i+Math.imul(R,lt)|0)+Math.imul(M,ft)|0,o=o+Math.imul(M,lt)|0;var Mt=(c+(n=n+Math.imul(A,pt)|0)|0)+((8191&(i=(i=i+Math.imul(A,vt)|0)+Math.imul(O,pt)|0))<<13)|0;c=((o=o+Math.imul(O,vt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,n=Math.imul(U,ot),i=(i=Math.imul(U,at))+Math.imul(F,ot)|0,o=Math.imul(F,at),n=n+Math.imul(k,ut)|0,i=(i=i+Math.imul(k,ct)|0)+Math.imul(L,ut)|0,o=o+Math.imul(L,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,lt)|0)+Math.imul(D,ft)|0,o=o+Math.imul(D,lt)|0;var Pt=(c+(n=n+Math.imul(R,pt)|0)|0)+((8191&(i=(i=i+Math.imul(R,vt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,vt)|0)+(i>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,n=Math.imul(U,ut),i=(i=Math.imul(U,ct))+Math.imul(F,ut)|0,o=Math.imul(F,ct),n=n+Math.imul(k,ft)|0,i=(i=i+Math.imul(k,lt)|0)+Math.imul(L,ft)|0,o=o+Math.imul(L,lt)|0;var Ct=(c+(n=n+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,vt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,vt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,n=Math.imul(U,ft),i=(i=Math.imul(U,lt))+Math.imul(F,ft)|0,o=Math.imul(F,lt);var Dt=(c+(n=n+Math.imul(k,pt)|0)|0)+((8191&(i=(i=i+Math.imul(k,vt)|0)+Math.imul(L,pt)|0))<<13)|0;c=((o=o+Math.imul(L,vt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Nt=(c+(n=Math.imul(U,pt))|0)+((8191&(i=(i=Math.imul(U,vt))+Math.imul(F,pt)|0))<<13)|0;return c=((o=Math.imul(F,vt))+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,u[0]=yt,u[1]=mt,u[2]=_t,u[3]=bt,u[4]=gt,u[5]=wt,u[6]=Et,u[7]=xt,u[8]=Tt,u[9]=St,u[10]=At,u[11]=Ot,u[12]=It,u[13]=Rt,u[14]=Mt,u[15]=Pt,u[16]=Ct,u[17]=Dt,u[18]=Nt,0!==c&&(u[19]=c,r.length++),r};function y(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(t,e,r){return y(t,e,r)}function _(t,e){this.x=t,this.y=e}Math.imul||(v=p),o.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&&10===t.length?v(this,t,e):r<63?p(this,t,e):r<1024?y(this,t,e):m(this,t,e)},_.prototype.makeRBT=function(t){for(var e=new Array(t),r=o.prototype._countBits(t)-1,n=0;n>=1;return n},_.prototype.permute=function(t,e,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r>>i&1}return e}(t);if(0===e.length)return new o(1);for(var r=this,n=0;n=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==h||c>=i);c--){var f=0|this.words[c];this.words[c]=h<<26-o|f>>>o,h=f&s}return u&&0!==h&&(u.words[u.length++]=h),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,a=0|i.words[i.length-1];0!==(r=26-this._countBits(a))&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var s,u=n.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var l=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(l=Math.min(l/a|0,67108863),n._ishlnsubmul(i,l,f);0!==n.negative;)l--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&&(s.words[f]=l)}return s&&s._strip(),n._strip(),"div"!==e&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},o.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var h=r.clone(),f=e.clone();!e.isZero();){for(var l=0,d=1;0==(e.words[0]&d)&&l<26;++l,d<<=1);if(l>0)for(e.iushrn(l);l-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(h),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0==(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(h),u.isub(f)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(s),a.isub(u)):(r.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},o.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,h=1;0==(e.words[0]&h)&&c<26;++c,h<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,l=1;0==(r.words[0]&l)&&f<26;++f,l<<=1);if(f>0)for(r.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&&r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i<0){var o=e;e=r,r=o}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){ni&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new S(t)},o.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function g(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function A(t){S.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},g.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e>this.n);var n=e0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},g.prototype.split=function(t,e){t.iushrn(this.n,0,e)},g.prototype.imulK=function(t){return t.imul(this.k)},i(w,g),w.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n>>22,i=o}i>>>=22,t.words[n-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r>>=26,t.words[r]=i,e=n}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new E;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new T}return b[t]=e,e},S.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},S.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},S.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},S.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},S.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},S.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)>=0&&r.isub(this.m),r},S.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},S.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)<0&&r.iadd(this.m),r},S.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},S.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},S.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},S.prototype.isqr=function(t){return this.imul(t,t.clone())},S.prototype.sqr=function(t){return this.mul(t,t)},S.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new o(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new o(2*h*h).toRed(this);0!==this.pow(h,c).cmp(u);)h.redIAdd(u);for(var f=this.pow(h,i),l=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;0!==d.cmp(s);){for(var v=d,y=0;0!==v.cmp(s);y++)v=v.redSqr();n(y=0;n--){for(var c=e.words[n],h=u-1;h>=0;h--){var f=c>>h&1;i!==r[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===n&&0===h)&&(i=this.mul(i,r[a]),s=0,a=0)):s=0}u=26}return i},S.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},S.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new A(t)},i(A,S),A.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},A.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},A.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},A.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},A.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,r("RoC8")(t))},"9dER":function(t,e,r){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=r("bPso"),e.createHash=e.Hash=r("+oaW"),e.createHmac=e.Hmac=r("cXWM");var n=r("G2uu"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);e.getHashes=function(){return o};var a=r("hnK/");e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=r("QEnC");e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var u=r("C1tN");e.DiffieHellmanGroup=u.DiffieHellmanGroup,e.createDiffieHellmanGroup=u.createDiffieHellmanGroup,e.getDiffieHellman=u.getDiffieHellman,e.createDiffieHellman=u.createDiffieHellman,e.DiffieHellman=u.DiffieHellman;var c=r("Z+yf");e.createSign=c.createSign,e.Sign=c.Sign,e.createVerify=c.createVerify,e.Verify=c.Verify,e.createECDH=r("Q6g+");var h=r("kmpK");e.publicEncrypt=h.publicEncrypt,e.privateEncrypt=h.privateEncrypt,e.publicDecrypt=h.publicDecrypt,e.privateDecrypt=h.privateDecrypt;var f=r("L2gJ");e.randomFill=f.randomFill,e.randomFillSync=f.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},"A/eZ":function(t,e,r){"use strict";var n=r("upWy"),i=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var o=Object.create(r("nrnY"));o.inherits=r("wfEq");var a=r("B0Cl"),s=r("g+31");o.inherits(f,a);for(var u=i(s.prototype),c=0;c0?("string"==typeof e||a.objectMode||Object.getPrototypeOf(e)===c.prototype||(e=function(t){return c.from(t)}(e)),n?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):S(t,a)):w(t,a,e,!1))):n||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function x(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(d("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(T,t):T(t))}function T(t){d("emit readable"),t.emit("readable"),R(t)}function S(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):r=function(t,e,r){var n;to.length?o.length:t;if(a===o.length?i+=o:i+=o.slice(0,t),0===(t-=a)){a===o.length?(++n,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(a));break}++n}return e.length-=n,i}(t,e):function(t,e){var r=c.allocUnsafe(t),n=e.head,i=1;n.data.copy(r),t-=n.data.length;for(;n=n.next;){var o=n.data,a=t>o.length?o.length:t;if(o.copy(r,r.length-t,0,a),0===(t-=a)){a===o.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(a));break}++i}return e.length-=i,r}(t,e);return n}(t,e.buffer,e.decoder),r);var r}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(C,e,t))}function C(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function D(t,e){for(var r=0,n=t.length;r=e.highWaterMark||e.ended))return d("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):x(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,i=e.needReadable;return d("need readable",i),(0===e.length||e.length-t0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,e);var u=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?h:b;function c(e,n){d("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),t.removeListener("close",m),t.removeListener("finish",_),t.removeListener("drain",f),t.removeListener("error",y),t.removeListener("unpipe",c),r.removeListener("end",h),r.removeListener("end",b),r.removeListener("data",v),l=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||f())}function h(){d("onend"),t.end()}o.endEmitted?i.nextTick(u):r.once("end",u),t.on("unpipe",c);var f=function(t){return function(){var e=t._readableState;d("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,R(t))}}(r);t.on("drain",f);var l=!1;var p=!1;function v(e){d("ondata"),p=!1,!1!==t.write(e)||p||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==D(o.pipes,t))&&!l&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function y(e){d("onerror",e),b(),t.removeListener("error",y),0===s(t,"error")&&t.emit("error",e)}function m(){t.removeListener("finish",_),b()}function _(){d("onfinish"),t.removeListener("close",m),b()}function b(){d("unpipe"),r.unpipe(t)}return r.on("data",v),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",y),t.once("close",m),t.once("finish",_),t.emit("pipe",r),o.flowing||(d("pipe resume"),r.resume()),t},b.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;op||new a(e).cmp(d.modulus)>=0)throw new Error("decryption error");l=r?c(new a(e),d):s(e,d);var v=h.alloc(p-l.length);if(l=h.concat([v,l],p),4===f)return function(t,e){var r=t.modulus.byteLength(),n=u("sha1").update(h.alloc(0)).digest(),a=n.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),c=e.slice(a+1),f=o(s,i(c,a)),l=o(c,i(f,r-a-1));if(function(t,e){t=h.from(t),e=h.from(e);var r=0,n=t.length;t.length!==e.length&&(r++,n=Math.min(t.length,e.length));var i=-1;for(;++i=e.length){o++;break}var a=e.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return e.slice(i)}(0,l,r);if(3===f)return l;throw new Error("unknown padding")}},BO39:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.toJwkFrom=e.fromJwkTo=void 0;var o=i(r("NthX")),a=i(r("e+GP")),s=i(r("fFdx")),u=n(r("8Sms")),c=n(r("kAr8")),h=function(){var t=(0,s.default)(o.default.mark((function t(){var e,r,n,i=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=i.length>0&&void 0!==i[0]?i[0]:"pem",r=i.length>1?i[1]:void 0,n=i.length>2&&void 0!==i[2]?i[2]:{},!(["pem","der","oct"].indexOf(e)<0)){t.next=5;break}throw new Error("InvalidOutputForm");case 5:if("object"===(0,a.default)(r)){t.next=7;break}throw new Error("InvalidJWKAsObject");case 7:if("EC"===r.kty||"RSA"===r.kty){t.next=9;break}throw new Error("UnsupportedKeyType");case 9:if(void 0===n.outputPublic||"boolean"==typeof n.outputPublic){t.next=11;break}throw new Error("outputPublicMustBeBoolean");case 11:if("EC"===r.key&&"boolean"!=typeof n.compact&&(n.compact=!1),"oct"===e&&"string"!==n.output&&(n.output="binary"),void 0===n.encryptParams&&(n.encryptParams={}),"der"!==e&&"pem"!==e||void 0!==n.encryptParams.passphrase||(n.encryptParams.passphrase=""),"der"!==e&&"pem"!==e){t.next=21;break}return t.next=18,u.fromJwk(r,e,{outputPublic:n.outputPublic,compact:n.compact,encOptions:n.encryptParams});case 18:return t.abrupt("return",t.sent);case 21:if("oct"!==e||"EC"!==r.kty){t.next=25;break}return t.abrupt("return",c.fromJwk(r,{outputPublic:n.outputPublic,outputFormat:n.output,compact:n.compact}));case 25:throw new Error("UnsupportedConversion");case 26:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();e.fromJwkTo=h;var f=function(){var t=(0,s.default)(o.default.mark((function t(e,r){var n,i=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=i.length>2&&void 0!==i[2]?i[2]:{},!(["pem","der","oct"].indexOf(e)<0)){t.next=3;break}throw new Error("InvalidInputForm");case 3:if("oct"!==e||n.namedCurve){t.next=5;break}throw new Error("InappropriateOptions");case 5:if(void 0===n.outputPublic||"boolean"==typeof n.outputPublic){t.next=7;break}throw new Error("outputPublicMustBeBoolean");case 7:if("der"!==e&&"pem"!==e||void 0!==n.passphrase||(n.passphrase=""),"der"!==e&&"pem"!==e){t.next=14;break}return t.next=11,u.toJwk(r,e,{outputPublic:n.outputPublic,passphrase:n.passphrase});case 11:return t.abrupt("return",t.sent);case 14:if("oct"!==e){t.next=18;break}return t.abrupt("return",c.toJwk(r,n.namedCurve,{outputPublic:n.outputPublic}));case 18:throw new Error("UnsupportedConversion");case 19:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.toJwkFrom=f},C1tN:function(t,e,r){(function(t){var n=r("cyIN"),i=r("+MGR"),o=r("3Wkq");var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var r=new t(i[e].prime,"hex"),n=new t(i[e].gen,"hex");return new o(r,n)},e.createDiffieHellman=e.DiffieHellman=function e(r,i,s,u){return t.isBuffer(i)||void 0===a[i]?e(r,"binary",i,s):(i=i||"binary",u=u||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,u)),"number"==typeof r?new o(n(r,s),s,!0):(t.isBuffer(r)||(r=new t(r,i)),new o(r,s,!0)))}}).call(this,r("qykS").Buffer)},C9xR:function(t,e,r){t.exports=r("5Ekh").Transform},CsW6:function(t,e,r){var n=r("+oaW"),i=r("pRMk").Buffer;function o(t){var e=i.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var r,a=i.alloc(0),s=0;a.length0&&void 0!==arguments[0]?arguments[0]:512;if(!this||this.constructor!==t)return new t(n);var a=new o.default({capacity:n,padding:e});return this.update=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"utf8";if(i.Buffer.isBuffer(t))return a.absorb(t),r;if("string"==typeof t)return r.update(i.Buffer.from(t,e));throw new TypeError("Not a string or buffer")},this.digest=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"binary",e=a.squeeze();return t&&"binary"!==t?e.toString(t):e},this.reset=function(){return a.reset(),r},this}},s=a({padding:1});e.Keccak=s;var u=a({padding:6});e.SHA3=u;var c=s;e.SHA3Hash=c,u.SHA3Hash=c;var h=u;e.default=h},DDMh:function(t,e,r){"use strict";var n=r("HpGB"),i=r("siiD");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=o,o.prototype.update=function(t,e){if(t=n.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var r=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-r,t.length),0===this.pending.length&&(this.pending=null),t=n.join32(t,0,t.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=t>>>16&255,n[i++]=t>>>8&255,n[i++]=255&t}else for(n[i++]=255&t,n[i++]=t>>>8&255,n[i++]=t>>>16&255,n[i++]=t>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var e=0;e0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],r=0,n=0;r>>5]|=t[r]<<24-n%32;return e},wordsToBytes:function(t){for(var e=[],r=0;r<32*t.length;r+=8)e.push(t[r>>>5]>>>24-r%32&255);return e},bytesToHex:function(t){for(var e=[],r=0;r>>4).toString(16)),e.push((15&t[r]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],r=0;r>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],n=0,i=0;n>>6-2*i);return e}},t.exports=n},DQGM:function(t,e,r){"use strict";var n=r("8kJ5"),i=r("fOyB"),o=i.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(o(t.r&&t.s,"Signature without r or s"),this.r=new n(t.r,16),this.s=new n(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function u(t,e){var r=t[e.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=e.place;o>>3);for(t.push(128|r);--r;)t.push(e>>>(r<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=i.toArray(t,e);var r=new s;if(48!==t[r.place++])return!1;if(u(t,r)+r.place!==t.length)return!1;if(2!==t[r.place++])return!1;var o=u(t,r),a=t.slice(r.place,o+r.place);if(r.place+=o,2!==t[r.place++])return!1;var c=u(t,r);if(t.length!==c+r.place)return!1;var h=t.slice(r.place,c+r.place);return 0===a[0]&&128&a[1]&&(a=a.slice(1)),0===h[0]&&128&h[1]&&(h=h.slice(1)),this.r=new n(a),this.s=new n(h),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),r=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&r[0]&&(r=[0].concat(r)),e=c(e),r=c(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];h(n,e.length),(n=n.concat(e)).push(2),h(n,r.length);var o=n.concat(r),a=[48];return h(a,o.length),a=a.concat(o),i.encode(a,t)}},E9s0:function(t,e,r){var n=r("wfEq");function i(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function o(t,e){this.path=t,this.rethrow(e)}e.Reporter=i,i.prototype.isError=function(t){return t instanceof o},i.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},i.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},i.prototype.enterKey=function(t){return this._reporterState.path.push(t)},i.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},i.prototype.leaveKey=function(t,e,r){var n=this._reporterState;this.exitKey(t),null!==n.obj&&(n.obj[e]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},i.prototype.leaveObject=function(t){var e=this._reporterState,r=e.obj;return e.obj=t,r},i.prototype.error=function(t){var e,r=this._reporterState,n=t instanceof o;if(e=n?t:new o(r.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!r.options.partial)throw e;return n||r.errors.push(e),e},i.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},n(o,Error),o.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},EO1s:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={namedCurves:{"P-256":{indutnyName:"p256",nodeName:"prime256v1",payloadSize:32},"P-384":{indutnyName:"p384",nodeName:"secp384r1",payloadSize:48},"P-521":{indutnyName:"p521",nodeName:"secp521r1",payloadSize:66},"P-256K":{indutnyName:"secp256k1",nodeName:"secp256k1",payloadSize:32}},hashes:{"SHA-256":{nodeName:"sha256"},"SHA-384":{nodeName:"sha384"},"SHA-512":{nodeName:"sha512"},"SHA-1":{nodeName:"sha1"}}}},EbX1:function(t,e){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)} /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ t.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},"Eg+Y":function(t,e,r){"use strict";var n=r("HpGB").rotr32;function i(t,e,r){return t&e^~t&r}function o(t,e,r){return t&e^t&r^e&r}function a(t,e,r){return t^e^r}e.ft_1=function(t,e,r,n){return 0===t?i(e,r,n):1===t||3===t?a(e,r,n):2===t?o(e,r,n):void 0},e.ch32=i,e.maj32=o,e.p32=a,e.s0_256=function(t){return n(t,2)^n(t,13)^n(t,22)},e.s1_256=function(t){return n(t,6)^n(t,11)^n(t,25)},e.g0_256=function(t){return n(t,7)^n(t,18)^t>>>3},e.g1_256=function(t){return n(t,17)^n(t,19)^t>>>10}},EvBf:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={ciphers:{"AES-GCM":{nodePrefix:"aes-",nodeSuffix:"-gcm",ivLength:12,tagLength:16,staticIvLength:!0},"AES-CBC":{nodePrefix:"aes-",nodeSuffix:"-cbc",ivLength:16,staticIvLength:!0},"AES-CTR":{nodePrefix:"aes-",nodeSuffix:"-ctr",ivLength:12,staticIvLength:!1}},wrapKeys:{"AES-KW":{nodePrefix:"id-aes",nodeSuffix:"-wrap",ivLength:8,staticIvLength:!0,defaultIV:new Uint8Array([166,166,166,166,166,166,166,166])}}};e.default=n},F1mQ:function(t,e){t.exports=function(t,e){for(var r=t.length,n=-1;++n>1,h=-7,f=r?i-1:0,l=r?-1:1,d=t[e+f];for(f+=l,o=d&(1<<-h)-1,d>>=-h,h+=s;h>0;o=256*o+t[e+f],f+=l,h-=8);for(a=o&(1<<-h)-1,o>>=-h,h+=n;h>0;a=256*a+t[e+f],f+=l,h-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,u,c=8*o-i-1,h=(1<>1,l=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=h):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+f>=1?l/u:l*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=h?(s=0,a=h):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[r+d]=255&a,d+=p,a/=256,c-=8);t[r+d-p]|=128*v}},G2uu:function(t,e,r){t.exports=r("2Mwr")},GNjU:function(t,e,r){"use strict";var n=r("siiD"),i=r("wfEq"),o={};function a(t){n.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e>>27}function h(t){return t<<30|t>>>2}function f(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=t.readInt32BE(4*l);for(;l<80;++l)r[l]=(e=r[l-3]^r[l-8]^r[l-14]^r[l-16])<<1|e>>>31;for(var d=0;d<80;++d){var p=~~(d/20),v=c(n)+f(p,i,o,s)+u+r[d]+a[p]|0;u=s,s=o,o=h(i),i=n,n=v}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},HbDv:function(t,e,r){"use strict";var n=r("HpGB"),i=r("DDMh"),o=r("siiD"),a=n.rotr64_hi,s=n.rotr64_lo,u=n.shr64_hi,c=n.shr64_lo,h=n.sum64,f=n.sum64_hi,l=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,v=n.sum64_5_hi,y=n.sum64_5_lo,m=i.BlockHash,_=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=_,this.W=new Array(160)}function g(t,e,r,n,i){var o=t&r^~t&i;return o<0&&(o+=4294967296),o}function w(t,e,r,n,i,o){var a=e&n^~e&o;return a<0&&(a+=4294967296),a}function E(t,e,r,n,i){var o=t&r^t&i^r&i;return o<0&&(o+=4294967296),o}function x(t,e,r,n,i,o){var a=e&n^e&o^n&o;return a<0&&(a+=4294967296),a}function T(t,e){var r=a(t,e,28)^a(e,t,2)^a(e,t,7);return r<0&&(r+=4294967296),r}function S(t,e){var r=s(t,e,28)^s(e,t,2)^s(e,t,7);return r<0&&(r+=4294967296),r}function A(t,e){var r=a(t,e,14)^a(t,e,18)^a(e,t,9);return r<0&&(r+=4294967296),r}function O(t,e){var r=s(t,e,14)^s(t,e,18)^s(e,t,9);return r<0&&(r+=4294967296),r}function I(t,e){var r=a(t,e,1)^a(t,e,8)^u(t,e,7);return r<0&&(r+=4294967296),r}function R(t,e){var r=s(t,e,1)^s(t,e,8)^c(t,e,7);return r<0&&(r+=4294967296),r}function M(t,e){var r=a(t,e,19)^a(e,t,29)^u(t,e,6);return r<0&&(r+=4294967296),r}function P(t,e){var r=s(t,e,19)^s(e,t,29)^c(t,e,6);return r<0&&(r+=4294967296),r}n.inherits(b,m),t.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(t,e){for(var r=this.W,n=0;n<32;n++)r[n]=t[e+n];for(;n=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function u(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=i,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var r=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,r[n++]=63&a|128):o(t,i)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>0}return a},e.split32=function(t,e){for(var r=new Array(4*t.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,r){return t+e+r>>>0},e.sum32_4=function(t,e,r,n){return t+e+r+n>>>0},e.sum32_5=function(t,e,r,n,i){return t+e+r+n+i>>>0},e.sum64=function(t,e,r,n){var i=t[e],o=n+t[e+1]>>>0,a=(o>>0,t[e+1]=o},e.sum64_hi=function(t,e,r,n){return(e+n>>>0>>0},e.sum64_lo=function(t,e,r,n){return e+n>>>0},e.sum64_4_hi=function(t,e,r,n,i,o,a,s){var u=0,c=e;return u+=(c=c+n>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,r,n,i,o,a,s){return e+n+o+s>>>0},e.sum64_5_hi=function(t,e,r,n,i,o,a,s,u,c){var h=0,f=e;return h+=(f=f+n>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,r,n,i,o,a,s,u,c){return e+n+o+s+c>>>0},e.rotr64_hi=function(t,e,r){return(e<<32-r|t>>>r)>>>0},e.rotr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0},e.shr64_hi=function(t,e,r){return t>>>r},e.shr64_lo=function(t,e,r){return(t<<32-r|e>>>r)>>>0}},IL7q:function(t,e,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r<10;r++)e["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(t){n[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,u=a(t),c=1;c0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r},t.prototype.concat=function(t){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var e,r,i,o=n.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,r=o,i=s,e.copy(r,i),s+=a.data.length,a=a.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},Igas:function(t,e,r){"use strict";r.r(e),r.d(e,"Headers",(function(){return p})),r.d(e,"Request",(function(){return w})),r.d(e,"Response",(function(){return x})),r.d(e,"DOMException",(function(){return S})),r.d(e,"fetch",(function(){return A}));var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n&&n,i="URLSearchParams"in n,o="Symbol"in n&&"iterator"in Symbol,a="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in n,u="ArrayBuffer"in n;if(u)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(t){return t&&c.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function l(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function v(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function y(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function m(t){var e=new FileReader,r=y(e);return e.readAsArrayBuffer(t),r}function _(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:a&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:i&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():u&&a&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=_(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(t)||h(t))?this._bodyArrayBuffer=_(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},a&&(this.blob=function(){var t=v(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=v(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(m)}),this.text=function(){var t,e,r,n=v(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=y(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var o=/([?&])_=[^&]*/;if(o.test(this.url))this.url=this.url.replace(o,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}})),e}function x(t,e){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},b.call(w.prototype),b.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},x.error=function(){var t=new x(null,{status:0,statusText:""});return t.type="error",t};var T=[301,302,303,307,308];x.redirect=function(t,e){if(-1===T.indexOf(e))throw new RangeError("Invalid status code");return new x(null,{status:e,headers:{location:t}})};var S=n.DOMException;try{new S}catch(t){(S=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack}).prototype=Object.create(Error.prototype),S.prototype.constructor=S}function A(t,e){return new Promise((function(r,i){var o=new w(t,e);if(o.signal&&o.signal.aborted)return i(new S("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,n={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new p,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}})),e)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;setTimeout((function(){r(new x(i,n))}),0)},s.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){i(new S("Aborted","AbortError"))}),0)},s.open(o.method,function(t){try{return""===t&&n.location.href?n.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(a?s.responseType="blob":u&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!e||"object"!=typeof e.headers||e.headers instanceof p?o.headers.forEach((function(t,e){s.setRequestHeader(e,t)})):Object.getOwnPropertyNames(e.headers).forEach((function(t){s.setRequestHeader(t,l(e.headers[t]))})),o.signal&&(o.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",c)}),s.send(void 0===o._bodyInit?null:o._bodyInit)}))}A.polyfill=!0,n.fetch||(n.fetch=A,n.Headers=p,n.Request=w,n.Response=x)},Ih9J:function(t,e,r){var n=r("MIvV"),i=r("Irje"),o=r("w8x0");e.createCipher=e.Cipher=n.createCipher,e.createCipheriv=e.Cipheriv=n.createCipheriv,e.createDecipher=e.Decipher=i.createDecipher,e.createDecipheriv=e.Decipheriv=i.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(o)}},"Imh/":function(t,e,r){var n=r("wfEq"),i=r("45vN").Reporter,o=r("qykS").Buffer;function a(t,e){i.call(this,e),o.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return t instanceof s||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"==typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"==typeof t)this.value=t,this.length=o.byteLength(t);else{if(!o.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}n(a,i),e.DecoderBuffer=a,a.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,i.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+t,this.offset+=t,r},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.prototype.join=function(t,e){return t||(t=new o(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(r){r.join(t,e),e+=r.length})):("number"==typeof this.value?t[e]=this.value:"string"==typeof this.value?t.write(this.value,e):o.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},Irje:function(t,e,r){var n=r("xeyG"),i=r("pRMk").Buffer,o=r("89XF"),a=r("6rtq"),s=r("ql4I"),u=r("8gph"),c=r("peDq");function h(t,e,r){s.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(e),this._prev=i.from(r),this._mode=t,this._autopadding=!0}function f(){this.cache=i.allocUnsafe(0)}function l(t,e,r){var s=o[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==s.mode&&r.length!==s.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof e&&(e=i.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,r,!0):"auth"===s.type?new n(s.module,e,r,!0):new h(s.module,e,r)}r("wfEq")(h,s),h.prototype._update=function(t){var e,r;this._cache.add(t);for(var n=[];e=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,e),n.push(r);return i.concat(n)},h.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var r=-1;for(;++r16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var r=o[t.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(e,!1,r.key,r.iv);return l(t,n.key,n.iv)},e.createDecipheriv=l},J6Gk:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.deriveSecret=e.verify=e.sign=e.generateKey=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=n(r("wQqr")),u=n(r("p8Dw")),c=n(r("jGT8")),h=n(r("YM0L")),f=function(){var t=(0,a.default)(o.default.mark((function t(){var e,r,n,i,a,f,l=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=l.length>0&&void 0!==l[0]?l[0]:"P-256",r=s.getWebCrypto(),n=s.getNodeCrypto(),i=!0,f={},void 0===r||"function"!=typeof r.generateKey||"function"!=typeof r.exportKey){t.next=11;break}return t.next=8,u.generateKey(e,r).catch((function(t){a=t.message,i=!1}));case 8:f=t.sent,t.next=18;break;case 11:if(void 0===n){t.next=17;break}return t.next=14,c.generateKey(e,n).catch((function(t){a=t.message,i=!1}));case 14:f=t.sent,t.next=18;break;case 17:i=!1;case 18:if(!1!==i){t.next=22;break}return t.next=21,h.generateKey(e).catch((function(t){throw a="".concat(a," => ").concat(t.message),new Error("UnsupportedEnvironment: ".concat(a))}));case 21:f=t.sent;case 22:return t.abrupt("return",f);case 23:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();e.generateKey=f;var l=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,f,l,d,p,v=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=v.length>2&&void 0!==v[2]?v[2]:"SHA-256","raw"===(i=v.length>3&&void 0!==v[3]?v[3]:"raw")||"der"===i){t.next=4;break}throw new Error("InvalidSignatureFormat");case 4:if(a=s.getWebCrypto(),f=s.getNodeCrypto(),l=!0,void 0===a||"function"!=typeof a.importKey||"function"!=typeof a.sign){t.next=13;break}return t.next=10,u.sign(e,r,n,i,a).catch((function(t){d=t.message,l=!1}));case 10:p=t.sent,t.next=20;break;case 13:if(void 0===f){t.next=19;break}return t.next=16,c.sign(e,r,n,i,f).catch((function(t){d=t.message,l=!1}));case 16:p=t.sent,t.next=20;break;case 19:l=!1;case 20:if(!1!==l){t.next=24;break}return t.next=23,h.sign(e,r,n,i).catch((function(t){throw d="".concat(d," => ").concat(t.message),new Error("UnsupportedEnvironment: ".concat(d))}));case 23:p=t.sent;case 24:return t.abrupt("return",p);case 25:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.sign=l;var d=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,f,l,d,p,v,y=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=y.length>3&&void 0!==y[3]?y[3]:"SHA-256","raw"===(a=y.length>4&&void 0!==y[4]?y[4]:"raw")||"der"===a){t.next=4;break}throw new Error("InvalidSignatureFormat");case 4:if(f=s.getWebCrypto(),l=s.getNodeCrypto(),d=!0,void 0===f||"function"!=typeof f.importKey||"function"!=typeof f.verify){t.next=13;break}return t.next=10,u.verify(e,r,n,i,a,f).catch((function(t){p=t.message,d=!1}));case 10:v=t.sent,t.next=20;break;case 13:if(void 0===l){t.next=19;break}return t.next=16,c.verify(e,r,n,i,a,l).catch((function(t){p=t.message,d=!1}));case 16:v=t.sent,t.next=20;break;case 19:d=!1;case 20:if(!1!==d){t.next=24;break}return t.next=23,h.verify(e,r,n,i,a).catch((function(t){throw p="".concat(p," => ").concat(t.message),new Error("UnsupportedEnvironment: ".concat(p))}));case 23:v=t.sent;case 24:return t.abrupt("return",v);case 25:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.verify=d;var p=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,f,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.crv===r.crv){t.next=2;break}throw new Error("UnmatchedCurveName");case 2:if(n=s.getWebCrypto(),i=s.getNodeCrypto(),a=!0,void 0===n||"function"!=typeof n.importKey||"function"!=typeof n.deriveBits){t.next=11;break}return t.next=8,u.deriveSecret(e,r,n).catch((function(t){f=t.message,a=!1}));case 8:l=t.sent,t.next=12;break;case 11:if(void 0!==i)try{l=c.deriveSecret(e,r,i)}catch(t){f=t.message,a=!1}else a=!1;case 12:if(!1!==a){t.next=23;break}return t.prev=13,t.next=16,h.deriveSecret(e,r);case 16:l=t.sent,t.next=23;break;case 19:throw t.prev=19,t.t0=t.catch(13),f="".concat(f," => ").concat(t.t0.message),new Error("UnsupportedEnvironment: ".concat(f));case 23:return t.abrupt("return",l);case 24:case"end":return t.stop()}}),t,null,[[13,19]])})));return function(e,r){return t.apply(this,arguments)}}();e.deriveSecret=p},JZuQ:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={hashes:{"SHA3-512":{hashSize:64},"SHA3-384":{hashSize:48},"SHA3-256":{hashSize:32},"SHA3-224":{hashSize:28},"SHA-256":{hashSize:32},"SHA-384":{hashSize:48},"SHA-512":{hashSize:64},"SHA-1":{hashSize:20},MD5:{hashSize:16}}}},Jhzd:function(t,e,r){var n=r("pRMk").Buffer;function i(t,e,r){var i=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=n.concat([t._prev.slice(1),n.from([r?e:i])]),i}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},KlUR:function(t,e,r){"use strict";e.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=c(t),a=n[0],s=n[1],u=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),h=0,f=s>0?a-4:a;for(r=0;r>16&255,u[h++]=e>>8&255,u[h++]=255&e;2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[h++]=255&e);1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[h++]=e>>8&255,u[h++]=255&e);return u},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;as?s:a+16383));1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t,e,r){for(var i,o,a=[],s=e;s>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},L2gJ:function(t,e,r){"use strict";(function(t,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r("pRMk"),a=r("bPso"),s=o.Buffer,u=o.kMaxLength,c=t.crypto||t.msCrypto,h=Math.pow(2,32)-1;function f(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>h||t<0)throw new TypeError("offset must be a uint32");if(t>u||t>e)throw new RangeError("offset out of range")}function l(t,e,r){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>h||t<0)throw new TypeError("size must be a uint32");if(t+e>r||t>u)throw new RangeError("buffer too small")}function d(t,e,r,i){if(n.browser){var o=t.buffer,s=new Uint8Array(o,e,r);return c.getRandomValues(s),i?void n.nextTick((function(){i(null,t)})):t}if(!i)return a(r).copy(t,e),t;a(r,(function(r,n){if(r)return i(r);n.copy(t,e),i(null,t)}))}c&&c.getRandomValues||!n.browser?(e.randomFill=function(e,r,n,i){if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=e.length;else if("function"==typeof n)i=n,n=e.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return f(r,e.length),l(n,r,e.length),d(e,r,n,i)},e.randomFillSync=function(e,r,n){void 0===r&&(r=0);if(!(s.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');f(r,e.length),void 0===n&&(n=e.length-r);return l(n,r,e.length),d(e,r,n)}):(e.randomFill=i,e.randomFillSync=i)}).call(this,r("pCvA"),r("5IsQ"))},LER9:function(t,e,r){var n=r("jnim"),i=r("1qNd"),o=r("wuJa"),a=r("Ih9J"),s=r("hnK/"),u=r("pRMk").Buffer;function c(t){var e;"object"!=typeof t||u.isBuffer(t)||(e=t.passphrase,t=t.key),"string"==typeof t&&(t=u.from(t));var r,c,h=o(t,e),f=h.tag,l=h.data;switch(f){case"CERTIFICATE":c=n.certificate.decode(l,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(c||(c=n.PublicKey.decode(l,"der")),r=c.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(c.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return c.subjectPrivateKey=c.subjectPublicKey,{type:"ec",data:c};case"1.2.840.10040.4.1":return c.algorithm.params.pub_key=n.DSAparam.decode(c.subjectPublicKey.data,"der"),{type:"dsa",data:c.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+f);case"ENCRYPTED PRIVATE KEY":l=function(t,e){var r=t.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[t.algorithm.decrypt.cipher.algo.join(".")],c=t.algorithm.decrypt.cipher.iv,h=t.subjectPrivateKey,f=parseInt(o.split("-")[1],10)/8,l=s.pbkdf2Sync(e,r,n,f,"sha1"),d=a.createDecipheriv(o,l,c),p=[];return p.push(d.update(h)),p.push(d.final()),u.concat(p)}(l=n.EncryptedPrivateKey.decode(l,"der"),e);case"PRIVATE KEY":switch(r=(c=n.PrivateKey.decode(l,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(c.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:c.algorithm.curve,privateKey:n.ECPrivateKey.decode(c.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return c.algorithm.params.priv_key=n.DSAparam.decode(c.subjectPrivateKey,"der"),{type:"dsa",params:c.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+f);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(l,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(l,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(l,"der")};case"EC PRIVATE KEY":return{curve:(l=n.ECPrivateKey.decode(l,"der")).parameters.value,privateKey:l.privateKey};default:throw new Error("unknown key type "+f)}}t.exports=c,c.signature=n.signature},LRLT:function(t,e,r){"use strict";var n=e;function i(t){return 1===t.length?"0"+t:t}function o(t){for(var e="",r=0;r>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(t,e){return"hex"===e?o(t):t}},LpNI:function(t,e,r){var n=r("wfEq"),i=r("qykS").Buffer,o=r("+Gs+"),a=o.base,s=o.constants.der;function u(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){a.Node.call(this,"der",t)}function h(t){return t<10?"0"+t:t}t.exports=u,u.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},n(c,a.Node),c.prototype._encodeComposite=function(t,e,r,n){var o,a=function(t,e,r,n){var i;"seqof"===t?t="seq":"setof"===t&&(t="set");if(s.tagByName.hasOwnProperty(t))i=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return n.error("Unknown tag: "+t);i=t}if(i>=31)return n.error("Multi-octet tag encoding unsupported");e||(i|=32);return i|=s.tagClassByName[r||"universal"]<<6}(t,e,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=a,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,c=n.length;c>=256;c>>=8)u++;(o=new i(2+u))[0]=a,o[1]=128|u;c=1+u;for(var h=n.length;h>0;c--,h>>=8)o[c]=255&h;return this._createEncoderBuffer([o,n])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var r=new i(2*t.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),u=s.length-1;for(n=t.length-1;n>=0;n--){a=t[n];for(s[u--]=127&a;(a>>=7)>0;)s[u--]=128|127&a}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(t,e){var r,n=new Date(t);return"gentime"===e?r=[h(n.getFullYear()),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):"utctime"===e?r=[h(n.getFullYear()%100),h(n.getUTCMonth()+1),h(n.getUTCDate()),h(n.getUTCHours()),h(n.getUTCMinutes()),h(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(r,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!i.isBuffer(t)){var r=t.toArray();!t.sign&&128&r[0]&&r.unshift(0),t=new i(r)}if(i.isBuffer(t)){var n=t.length;0===t.length&&n++;var o=new i(n);return t.copy(o),0===t.length&&(o[0]=0),this._createEncoderBuffer(o)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);n=1;for(var a=t;a>=256;a>>=8)n++;for(a=(o=new Array(n)).length-1;a>=0;a--)o[a]=255&t,t>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,r){var n,i=this._baseState;if(null===i.default)return!1;var o=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,t.keys,a)}},u.prototype._update=function(t,e,r,n){var i=this._desState,a=o.readUInt32BE(t,e),s=o.readUInt32BE(t,e+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},u.prototype._pad=function(t,e){for(var r=t.length-e,n=e;n>>0,a=l}o.rip(s,a,n,i)},u.prototype._decrypt=function(t,e,r,n,i){for(var a=r,s=e,u=t.keys.length-2;u>=0;u-=2){var c=t.keys[u],h=t.keys[u+1];o.expand(a,t.tmp,0),c^=t.tmp[0],h^=t.tmp[1];var f=o.substitute(c,h),l=a;a=(s^o.permute(f))>>>0,s=l}o.rip(a,s,n,i)}},LxOh:function(t,e,r){"use strict";t.exports=function(t,e){return function(r,n){var i=2*n,o=2*e;r[i]=t[o],r[i+1]=t[o+1]}}},MEmy:function(t,e,r){var n=r("pRMk").Buffer,i=r("cXWM"),o=r("5Wkw"),a=r("6MVH").ec,s=r("8kJ5"),u=r("LER9"),c=r("Jlhb");function h(t,e,r,o){if((t=n.from(t.toArray())).length0&&r.ishrn(n),r}function l(t,e,r){var o,a;do{for(o=n.alloc(0);8*o.length15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},l.prototype.flush=function(){for(var t=16-this.cache.length,e=o.allocUnsafe(t),r=-1;++r0&&c>u&&(c=u);for(var h=0;h=0?(f=v.substr(0,y),l=v.substr(y+1)):(f=v,l=""),d=decodeURIComponent(f),p=decodeURIComponent(l),n(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},"MV+h":function(t,e,r){var n=r("pRMk").Buffer;function i(t,e,r){for(var n,i,a=-1,s=0;++a<8;)n=e&1<<7-a?128:0,s+=(128&(i=t._cipher.encryptBlock(t._prev)[0]^n))>>a%8,t._prev=o(t._prev,r?n:i);return s}function o(t,e){var r=t.length,i=-1,o=n.allocUnsafe(t.length);for(t=n.concat([t,n.from([e])]);++i>7;return o}e.encrypt=function(t,e,r){for(var o=e.length,a=n.allocUnsafe(o),s=-1;++s(Math.pow(2,32)-1)*l)){t.next=5;break}throw new Error("DerivedKeyTooLong");case 5:for(p=Math.ceil(s/l),v=s-(p-1)*l,y=function(){var t=(0,o.default)(i.default.mark((function t(o){var a,s,c,l;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(a=new Uint8Array(r.length+4)).set(r),a.set(f(o+1,4),r.length),t.next=5,u.default.compute(e,a,h);case 5:s=t.sent,c=new Uint8Array(s),l=1;case 8:if(!(l>8*(e-n-1);return r},l=function(){var t=(0,o.default)(i.default.mark((function t(e,r,n,o,u){var h,f;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d(e,r,n,o,u),"string"==typeof e&&(e=a.default.encoder.stringToArrayBuffer(e)),!(o>c.default.hashes[u].hashSize)){t.next=4;break}throw new Error("DerivedKeyTooLong");case 4:(h=new Uint8Array(e.length+r.length)).set(e),h.set(r,e.length),f=0;case 8:if(!(f2&&void 0!==_[2]?_[2]:"SHA-256",i=u.getWebCryptoAll(),a=u.getNodeCrypto(),c=!0,void 0===i||"function"!=typeof i.importKey||"function"!=typeof i.sign){t.next=38;break}if(void 0!==window.msCrypto){t.next=21;break}return t.prev=6,t.next=9,i.importKey("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"]);case 9:return h=t.sent,t.next=12,i.sign({name:"HMAC",hash:{name:n}},h,r);case 12:return l=t.sent,t.abrupt("return",new Uint8Array(l));case 16:t.prev=16,t.t0=t.catch(6),c=!1;case 19:t.next=36;break;case 21:return t.prev=21,d=function(t,e,r,n,o){return new Promise((function(a,s){var u=i.importKey(t,e,r,n,o);u.oncomplete=function(t){a(t.target.result)},u.onerror=function(){s("KeyImportingFailed")}}))},p=function(t,e,r){return new Promise((function(n,o){var a=i.sign({name:"HMAC",hash:{name:t}},e,r);a.oncomplete=function(t){n(new Uint8Array(t.target.result))},a.onerror=function(){o("ComputingHMACFailed")}}))},t.next=26,d("raw",e,{name:"HMAC",hash:{name:n}},!1,["sign","verify"]);case 26:return v=t.sent,t.next=29,p(n,v,r);case 29:return y=t.sent,t.abrupt("return",new Uint8Array(y));case 33:t.prev=33,t.t1=t.catch(21),c=!1;case 36:t.next=50;break;case 38:if(void 0===a){t.next=49;break}return t.prev=39,m=a.createHmac(s.default.hashes[n].nodeName,e),t.abrupt("return",new Uint8Array(m.update(r).digest()));case 44:t.prev=44,t.t2=t.catch(39),c=!1;case 47:t.next=50;break;case 49:c=!1;case 50:if(c){t.next=60;break}return t.prev=51,t.next=54,f(e,r,n);case 54:return t.abrupt("return",t.sent);case 57:throw t.prev=57,t.t3=t.catch(51),new Error("UnsupportedEnvironments");case 60:case"end":return t.stop()}}),t,null,[[6,16],[21,33],[39,44],[51,57]])})));return function(e,r){return t.apply(this,arguments)}}();e.compute=h;var f=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,u,h,f,l,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=s.default.hashes[n].blockSize,a=s.default.hashes[n].hashSize,!(e.length>i)){t.next=6;break}return t.next=5,c.default.compute(e,n);case 5:e=t.sent;case 6:return(u=new Uint8Array(i)).set(e),h=u.map((function(t){return 255&(54^t)})),f=u.map((function(t){return 255&(92^t)})),(l=new Uint8Array(i+r.length)).set(h),l.set(r,i),t.next=15,c.default.compute(l,n);case 15:return d=t.sent,(p=new Uint8Array(i+a)).set(f),p.set(d,i),t.abrupt("return",c.default.compute(p,n));case 20:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),l=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,s=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=s.length>3&&void 0!==s[3]?s[3]:"SHA-256",n instanceof Uint8Array){t.next=3;break}throw new Error("InvalidInputMac");case 3:return t.next=5,h(e,r,i);case 5:return a=t.sent,t.abrupt("return",n.toString()===a.toString());case 7:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.verify=l},NToG:function(t,e){function r(t,e){for(var r=0;r=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,r,n)}t.exports=a,a.prototype._init=function(t,e,r){var n=t.concat(e).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(r||[])),this._reseed=1},a.prototype.generate=function(t,e,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(n=r,r=e,e=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length>>32-e}function v(t,e,r,n,i,o,a,s){return p(t+(e^r^n)+o+a|0,s)+i|0}function y(t,e,r,n,i,o,a,s){return p(t+(e&r|~e&n)+o+a|0,s)+i|0}function m(t,e,r,n,i,o,a,s){return p(t+((e|~r)^n)+o+a|0,s)+i|0}function _(t,e,r,n,i,o,a,s){return p(t+(e&n|r&~n)+o+a|0,s)+i|0}function b(t,e,r,n,i,o,a,s){return p(t+(e^(r|~n))+o+a|0,s)+i|0}i(d,o),d.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,d=0|this._e,g=0|this._a,w=0|this._b,E=0|this._c,x=0|this._d,T=0|this._e,S=0;S<80;S+=1){var A,O;S<16?(A=v(r,n,i,o,d,t[s[S]],f[0],c[S]),O=b(g,w,E,x,T,t[u[S]],l[0],h[S])):S<32?(A=y(r,n,i,o,d,t[s[S]],f[1],c[S]),O=_(g,w,E,x,T,t[u[S]],l[1],h[S])):S<48?(A=m(r,n,i,o,d,t[s[S]],f[2],c[S]),O=m(g,w,E,x,T,t[u[S]],l[2],h[S])):S<64?(A=_(r,n,i,o,d,t[s[S]],f[3],c[S]),O=y(g,w,E,x,T,t[u[S]],l[3],h[S])):(A=b(r,n,i,o,d,t[s[S]],f[4],c[S]),O=v(g,w,E,x,T,t[u[S]],l[4],h[S])),r=d,d=o,o=p(i,10),i=n,n=A,g=T,T=x,x=p(E,10),E=w,w=O}var I=this._b+i+x|0;this._b=this._c+o+T|0,this._c=this._d+d+g|0,this._d=this._e+r+w|0,this._e=this._a+n+E|0,this._a=I},d.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=n.alloc?n.alloc(20):new n(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=d},OmE2:function(t,e,r){"use strict";t.exports=function(t,e,r,n,i){return t.config=e,r&&(t.code=r),t.request=n,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},PXYQ:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compute",{enumerable:!0,get:function(){return n.compute}}),Object.defineProperty(e,"verify",{enumerable:!0,get:function(){return n.verify}}),e.default=void 0;var n=r("N7sV"),i={compute:n.compute,verify:n.verify};e.default=i},PunD:function(t,e){var r=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!=typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!=typeof e)throw new TypeError("Key length not a number");if(e<0||e>r||e!=e)throw new TypeError("Bad key length")}},"Q6g+":function(t,e,r){(function(e){var n=r("6MVH"),i=r("8kJ5");t.exports=function(t){return new a(t)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=o[t],this.curveType||(this.curveType={name:t}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(t,r,n){Array.isArray(t)||(t=t.toArray());var i=new e(t);if(n&&i.length4&&void 0!==arguments[4]&&arguments[4],v=s(h,e.byteLength,p?i.default.wrapKeys:i.default.ciphers);switch(h){case"AES-GCM":(o=n.createCipheriv(v,e,f,{authTagLength:d})).setAAD(l);break;case"AES-CTR":if(0===f.length||f.length>16)throw new Error("InvalidIVLength");var y=new Uint8Array(16);y.set(f),y[15]+=1,o=n.createCipheriv(v,e,y);break;default:o=n.createCipheriv(v,e,f)}try{a=new Uint8Array(o.update(t)),u=new Uint8Array(o.final()),c=new Uint8Array([]),"AES-GCM"===h&&(c=new Uint8Array(o.getAuthTag()))}catch(t){throw new Error("NodeCrypto_EncryptionFailure")}var m=new Uint8Array(a.length+u.length+c.length);return m.set(a),m.set(u,a.length),m.set(c,a.length+u.length),m};e.encrypt=o;var a=function(t,e,r,n){var o,a,u,c,h=r.name,f=r.iv,l=r.additionalData,d=r.tagLength,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],v=s(h,e.byteLength,p?i.default.wrapKeys:i.default.ciphers);switch(h){case"AES-GCM":(o=n.createDecipheriv(v,e,f,{authTagLength:d})).setAAD(l),a=t.slice(0,t.length-d);var y=t.slice(t.length-d);o.setAuthTag(y);break;case"AES-CTR":if(0===f.length||f.length>16)throw new Error("InvalidIVLength");var m=new Uint8Array(16);m.set(f),m[15]+=1,o=n.createDecipheriv(v,e,m),a=t;break;default:o=n.createDecipheriv(v,e,f),a=t}try{u=o.update(a),c=o.final()}catch(t){throw new Error("NodeCrypto_DecryptionFailure")}var _=new Uint8Array(c.length+u.length);return _.set(u),_.set(c,u.length),_};e.decrypt=a;var s=function(t,e,r){var n=r[t].nodePrefix;return(n="".concat(n).concat((8*e).toString()))+r[t].nodeSuffix}},Rvex:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Key",{enumerable:!0,get:function(){return n.Key}}),e.default=void 0;var n=r("dIx8"),i={Key:n.Key};e.default=i},Rzld:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},S2bg:function(t,e,r){var n=r("pRMk").Buffer,i=n.alloc(16,0);function o(t){var e=n.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=o(i)},a.prototype.update=function(t){var e;for(this.cache=n.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,t,0,e])),this.state},t.exports=a},SDJZ:function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},SDgz:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r("X9FS"));e.encoder=i;var o=n(r("WFt6"));e.formatter=o,e.default={encoder:i,formatter:o}},SPmb:function(t,e,r){"use strict";var n=r("+Gs+"),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),c=n.define("RDNSequence",(function(){this.seqof(u)})),h=n.define("Name",(function(){this.choice({rdnSequence:this.use(c)})})),f=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),l=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),d=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(h),this.key("validity").use(f),this.key("subject").use(h),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(l).optional())})),p=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},SUNt:function(t,e,r){var n=r("nIf0"),i=r("Olfb"),o=r("thXI"),a=r("pRMk").Buffer,s=r("PunD"),u=r("cDjl"),c=r("h07j"),h=a.alloc(128),f={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(t,e,r){var s=function(t){function e(e){return o(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new i).update(t).digest()}:"md5"===t?n:e}(t),u="sha512"===t||"sha384"===t?128:64;e.length>u?e=s(e):e.length-1}function i(t,e){return n(t)&&t._isRouter&&(null==e||t.type===e)}function o(t,e){for(var r in e)t[r]=e[r];return t}var a={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var r=e.props,n=e.children,i=e.parent,a=e.data;a.routerView=!0;for(var u=i.$createElement,c=r.name,h=i.$route,f=i._routerViewCache||(i._routerViewCache={}),l=0,d=!1;i&&i._routerRoot!==i;){var p=i.$vnode?i.$vnode.data:{};p.routerView&&l++,p.keepAlive&&i._directInactive&&i._inactive&&(d=!0),i=i.$parent}if(a.routerViewDepth=l,d){var v=f[c],y=v&&v.component;return y?(v.configProps&&s(y,a,v.route,v.configProps),u(y,a,n)):u()}var m=h.matched[l],_=m&&m.components[c];if(!m||!_)return f[c]=null,u();f[c]={component:_},a.registerRouteInstance=function(t,e){var r=m.instances[c];(e&&r!==t||!e&&r===t)&&(m.instances[c]=e)},(a.hook||(a.hook={})).prepatch=function(t,e){m.instances[c]=e.componentInstance},a.hook.init=function(t){t.data.keepAlive&&t.componentInstance&&t.componentInstance!==m.instances[c]&&(m.instances[c]=t.componentInstance)};var b=m.props&&m.props[c];return b&&(o(f[c],{route:h,configProps:b}),s(_,a,h,b)),u(_,a,n)}};function s(t,e,r,n){var i=e.props=function(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}(r,n);if(i){i=e.props=o({},i);var a=e.attrs=e.attrs||{};for(var s in i)t.props&&s in t.props||(a[s]=i[s],delete i[s])}}var u=/[!'()*]/g,c=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,f=function(t){return encodeURIComponent(t).replace(u,c).replace(h,",")},l=decodeURIComponent;function d(t){var e={};return(t=t.trim().replace(/^(\?|#|&)/,""))?(t.split("&").forEach((function(t){var r=t.replace(/\+/g," ").split("="),n=l(r.shift()),i=r.length>0?l(r.join("=")):null;void 0===e[n]?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]})),e):e}function p(t){var e=t?Object.keys(t).map((function(e){var r=t[e];if(void 0===r)return"";if(null===r)return f(e);if(Array.isArray(r)){var n=[];return r.forEach((function(t){void 0!==t&&(null===t?n.push(f(e)):n.push(f(e)+"="+f(t)))})),n.join("&")}return f(e)+"="+f(r)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var v=/\/?$/;function y(t,e,r,n){var i=n&&n.options.stringifyQuery,o=e.query||{};try{o=m(o)}catch(t){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:g(e,i),matched:t?b(t):[]};return r&&(a.redirectedFrom=g(r,i)),Object.freeze(a)}function m(t){if(Array.isArray(t))return t.map(m);if(t&&"object"==typeof t){var e={};for(var r in t)e[r]=m(t[r]);return e}return t}var _=y(null,{path:"/"});function b(t){for(var e=[];t;)e.unshift(t),t=t.parent;return e}function g(t,e){var r=t.path,n=t.query;void 0===n&&(n={});var i=t.hash;return void 0===i&&(i=""),(r||"/")+(e||p)(n)+i}function w(t,e){return e===_?t===e:!!e&&(t.path&&e.path?t.path.replace(v,"")===e.path.replace(v,"")&&t.hash===e.hash&&E(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&E(t.query,e.query)&&E(t.params,e.params)))}function E(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var r=Object.keys(t),n=Object.keys(e);return r.length===n.length&&r.every((function(r){var n=t[r],i=e[r];return"object"==typeof n&&"object"==typeof i?E(n,i):String(n)===String(i)}))}function x(t,e,r){var n=t.charAt(0);if("/"===n)return t;if("?"===n||"#"===n)return e+t;var i=e.split("/");r&&i[i.length-1]||i.pop();for(var o=t.replace(/^\//,"").split("/"),a=0;a=0&&(e=t.slice(n),t=t.slice(0,n));var i=t.indexOf("?");return i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),{path:t,query:r,hash:e}}(i.path||""),h=e&&e.path||"/",f=c.path?x(c.path,h,r||i.append):h,l=function(t,e,r){void 0===e&&(e={});var n,i=r||d;try{n=i(t||"")}catch(t){n={}}for(var o in e)n[o]=e[o];return n}(c.query,i.query,n&&n.options.parseQuery),p=i.hash||c.hash;return p&&"#"!==p.charAt(0)&&(p="#"+p),{_normalized:!0,path:f,query:l,hash:p}}var z,V=function(){},Y={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(t){var e=this,r=this.$router,n=this.$route,i=r.resolve(this.to,n,this.append),a=i.location,s=i.route,u=i.href,c={},h=r.options.linkActiveClass,f=r.options.linkExactActiveClass,l=null==h?"router-link-active":h,d=null==f?"router-link-exact-active":f,p=null==this.activeClass?l:this.activeClass,m=null==this.exactActiveClass?d:this.exactActiveClass,_=s.redirectedFrom?y(null,H(s.redirectedFrom),null,r):s;c[m]=w(n,_),c[p]=this.exact?c[m]:function(t,e){return 0===t.path.replace(v,"/").indexOf(e.path.replace(v,"/"))&&(!e.hash||t.hash===e.hash)&&function(t,e){for(var r in e)if(!(r in t))return!1;return!0}(t.query,e.query)}(n,_);var b=c[m]?this.ariaCurrentValue:null,g=function(t){W(t)&&(e.replace?r.replace(a,V):r.push(a,V))},E={click:W};Array.isArray(this.event)?this.event.forEach((function(t){E[t]=g})):E[this.event]=g;var x={class:c},T=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:u,route:s,navigate:g,isActive:c[p],isExactActive:c[m]});if(T){if(1===T.length)return T[0];if(T.length>1||!T.length)return 0===T.length?t():t("span",{},T)}if("a"===this.tag)x.on=E,x.attrs={href:u,"aria-current":b};else{var S=function t(e){var r;if(e)for(var n=0;n-1&&(s.params[l]=r.params[l]);return s.path=X(h.path,s.params),u(h,s,a)}if(s.path){s.params={};for(var d=0;d=t.length?r():t[i]?e(t[i],(function(){n(i+1)})):n(i+1)};n(0)}function bt(t){return function(e,r,i){var o=!1,a=0,s=null;gt(t,(function(t,e,r,u){if("function"==typeof t&&void 0===t.cid){o=!0,a++;var c,h=xt((function(e){var n;((n=e).__esModule||Et&&"Module"===n[Symbol.toStringTag])&&(e=e.default),t.resolved="function"==typeof e?e:z.extend(e),r.components[u]=e,--a<=0&&i()})),f=xt((function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=n(t)?t:new Error(e),i(s))}));try{c=t(h,f)}catch(t){f(t)}if(c)if("function"==typeof c.then)c.then(h,f);else{var l=c.component;l&&"function"==typeof l.then&&l.then(h,f)}}})),o||i()}}function gt(t,e){return wt(t.map((function(t){return Object.keys(t.components).map((function(r){return e(t.components[r],t.instances[r],t,r)}))})))}function wt(t){return Array.prototype.concat.apply([],t)}var Et="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function xt(t){var e=!1;return function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];if(!e)return e=!0,t.apply(this,r)}}var Tt=1,St=2,At=3,Ot=4;function It(t,e){return Mt(t,e,Tt,'Redirected from "'+t.fullPath+'" to "'+function(t){if("string"==typeof t)return t;if("path"in t)return t.path;var e={};return Pt.forEach((function(r){r in t&&(e[r]=t[r])})),JSON.stringify(e,null,2)}(e)+'" via a navigation guard.')}function Rt(t,e){return Mt(t,e,At,'Navigation cancelled from "'+t.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function Mt(t,e,r,n){var i=new Error(n);return i._isRouter=!0,i.from=t,i.to=e,i.type=r,i}var Pt=["params","query","hash"];var Ct=function(t,e){this.router=t,this.base=function(t){if(!t)if(q){var e=document.querySelector("base");t=(t=e&&e.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else t="/";"/"!==t.charAt(0)&&(t="/"+t);return t.replace(/\/$/,"")}(e),this.current=_,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Dt(t,e,r,n){var i=gt(t,(function(t,n,i,o){var a=function(t,e){"function"!=typeof t&&(t=z.extend(t));return t.options[e]}(t,e);if(a)return Array.isArray(a)?a.map((function(t){return r(t,n,i,o)})):r(a,n,i,o)}));return wt(n?i.reverse():i)}function Nt(t,e){if(e)return function(){return t.apply(e,arguments)}}Ct.prototype.listen=function(t){this.cb=t},Ct.prototype.onReady=function(t,e){this.ready?t():(this.readyCbs.push(t),e&&this.readyErrorCbs.push(e))},Ct.prototype.onError=function(t){this.errorCbs.push(t)},Ct.prototype.transitionTo=function(t,e,r){var n=this,i=this.router.match(t,this.current);this.confirmTransition(i,(function(){var t=n.current;n.updateRoute(i),e&&e(i),n.ensureURL(),n.router.afterHooks.forEach((function(e){e&&e(i,t)})),n.ready||(n.ready=!0,n.readyCbs.forEach((function(t){t(i)})))}),(function(t){r&&r(t),t&&!n.ready&&(n.ready=!0,n.readyErrorCbs.forEach((function(e){e(t)})))}))},Ct.prototype.confirmTransition=function(t,e,r){var o,a=this,s=this.current,u=function(t){!i(t)&&n(t)&&(a.errorCbs.length?a.errorCbs.forEach((function(e){e(t)})):console.error(t)),r&&r(t)};if(w(t,s)&&t.matched.length===s.matched.length)return this.ensureURL(),u(Mt(o=s,t,Ot,'Avoided redundant navigation to current location: "'+o.fullPath+'".'));var c=function(t,e){var r,n=Math.max(t.length,e.length);for(r=0;r0)){var e=this.router,r=e.options.scrollBehavior,n=vt&&r;n&&this.listeners.push(ot());var i=function(){var r=t.current,i=Lt(t.base);t.current===_&&i===t._startLocation||t.transitionTo(i,(function(t){n&&at(e,t,r,!0)}))};window.addEventListener("popstate",i),this.listeners.push((function(){window.removeEventListener("popstate",i)}))}},e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,r){var n=this,i=this.current;this.transitionTo(t,(function(t){yt(T(n.base+t.fullPath)),at(n.router,t,i,!1),e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this,i=this.current;this.transitionTo(t,(function(t){mt(T(n.base+t.fullPath)),at(n.router,t,i,!1),e&&e(t)}),r)},e.prototype.ensureURL=function(t){if(Lt(this.base)!==this.current.fullPath){var e=T(this.base+this.current.fullPath);t?yt(e):mt(e)}},e.prototype.getCurrentLocation=function(){return Lt(this.base)},e}(Ct);function Lt(t){var e=decodeURI(window.location.pathname);return t&&0===e.toLowerCase().indexOf(t.toLowerCase())&&(e=e.slice(t.length)),(e||"/")+window.location.search+window.location.hash}var Bt=function(t){function e(e,r,n){t.call(this,e,r),n&&function(t){var e=Lt(t);if(!/^\/#/.test(e))return window.location.replace(T(t+"/#"+e)),!0}(this.base)||Ut()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;if(!(this.listeners.length>0)){var e=this.router.options.scrollBehavior,r=vt&&e;r&&this.listeners.push(ot());var n=function(){var e=t.current;Ut()&&t.transitionTo(Ft(),(function(n){r&&at(t.router,n,e,!0),vt||Xt(n.fullPath)}))},i=vt?"popstate":"hashchange";window.addEventListener(i,n),this.listeners.push((function(){window.removeEventListener(i,n)}))}},e.prototype.push=function(t,e,r){var n=this,i=this.current;this.transitionTo(t,(function(t){Gt(t.fullPath),at(n.router,t,i,!1),e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this,i=this.current;this.transitionTo(t,(function(t){Xt(t.fullPath),at(n.router,t,i,!1),e&&e(t)}),r)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;Ft()!==e&&(t?Gt(e):Xt(e))},e.prototype.getCurrentLocation=function(){return Ft()},e}(Ct);function Ut(){var t=Ft();return"/"===t.charAt(0)||(Xt("/"+t),!1)}function Ft(){var t=window.location.href,e=t.indexOf("#");if(e<0)return"";var r=(t=t.slice(e+1)).indexOf("?");if(r<0){var n=t.indexOf("#");t=n>-1?decodeURI(t.slice(0,n))+t.slice(n):decodeURI(t)}else t=decodeURI(t.slice(0,r))+t.slice(r);return t}function jt(t){var e=window.location.href,r=e.indexOf("#");return(r>=0?e.slice(0,r):e)+"#"+t}function Gt(t){vt?yt(jt(t)):window.location.hash=t}function Xt(t){vt?mt(jt(t)):window.location.replace(jt(t))}var Ht=function(t){function e(e,r){t.call(this,e,r),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,r){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index+1).concat(t),n.index++,e&&e(t)}),r)},e.prototype.replace=function(t,e,r){var n=this;this.transitionTo(t,(function(t){n.stack=n.stack.slice(0,n.index).concat(t),e&&e(t)}),r)},e.prototype.go=function(t){var e=this,r=this.index+t;if(!(r<0||r>=this.stack.length)){var n=this.stack[r];this.confirmTransition(n,(function(){e.index=r,e.updateRoute(n)}),(function(t){i(t,Ot)&&(e.index=r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Ct),zt=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=J(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!vt&&!1!==t.fallback,this.fallback&&(e="hash"),q||(e="abstract"),this.mode=e,e){case"history":this.history=new kt(this,t.base);break;case"hash":this.history=new Bt(this,t.base,this.fallback);break;case"abstract":this.history=new Ht(this,t.base);break;default:0}},Vt={currentRoute:{configurable:!0}};function Yt(t,e){return t.push(e),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}zt.prototype.match=function(t,e,r){return this.matcher.match(t,e,r)},Vt.currentRoute.get=function(){return this.history&&this.history.current},zt.prototype.init=function(t){var e=this;if(this.apps.push(t),t.$once("hook:destroyed",(function(){var r=e.apps.indexOf(t);r>-1&&e.apps.splice(r,1),e.app===t&&(e.app=e.apps[0]||null),e.app||e.history.teardownListeners()})),!this.app){this.app=t;var r=this.history;if(r instanceof kt||r instanceof Bt){var n=function(){r.setupListeners()};r.transitionTo(r.getCurrentLocation(),n,n)}r.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},zt.prototype.beforeEach=function(t){return Yt(this.beforeHooks,t)},zt.prototype.beforeResolve=function(t){return Yt(this.resolveHooks,t)},zt.prototype.afterEach=function(t){return Yt(this.afterHooks,t)},zt.prototype.onReady=function(t,e){this.history.onReady(t,e)},zt.prototype.onError=function(t){this.history.onError(t)},zt.prototype.push=function(t,e,r){var n=this;if(!e&&!r&&"undefined"!=typeof Promise)return new Promise((function(e,r){n.history.push(t,e,r)}));this.history.push(t,e,r)},zt.prototype.replace=function(t,e,r){var n=this;if(!e&&!r&&"undefined"!=typeof Promise)return new Promise((function(e,r){n.history.replace(t,e,r)}));this.history.replace(t,e,r)},zt.prototype.go=function(t){this.history.go(t)},zt.prototype.back=function(){this.go(-1)},zt.prototype.forward=function(){this.go(1)},zt.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},zt.prototype.resolve=function(t,e,r){var n=H(t,e=e||this.history.current,r,this),i=this.match(n,e),o=i.redirectedFrom||i.fullPath;return{location:n,route:i,href:function(t,e,r){var n="hash"===r?"#"+e:e;return t?T(t+"/"+n):n}(this.history.base,o,this.mode),normalizedTo:n,resolved:i}},zt.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==_&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(zt.prototype,Vt),zt.install=function t(e){if(!t.installed||z!==e){t.installed=!0,z=e;var r=function(t){return void 0!==t},n=function(t,e){var n=t.$options._parentVnode;r(n)&&r(n=n.data)&&r(n=n.registerRouteInstance)&&n(t,e)};e.mixin({beforeCreate:function(){r(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),e.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,n(this,this)},destroyed:function(){n(this)}}),Object.defineProperty(e.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(e.prototype,"$route",{get:function(){return this._routerRoot._route}}),e.component("RouterView",a),e.component("RouterLink",Y);var i=e.config.optionMergeStrategies;i.beforeRouteEnter=i.beforeRouteLeave=i.beforeRouteUpdate=i.created}},zt.version="3.3.2",q&&window.Vue&&window.Vue.use(zt),e.a=zt},T1e2: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}},TDIH:function(t,e,r){"use strict";var n=r("ovh1"),i=r("5QbJ"),o=r("uahg"),a=r("Zrjs");function s(t){var e=new o(t),r=i(o.prototype.request,e);return n.extend(r,o.prototype,e),n.extend(r,e),r}var u=s(r("bRtl"));u.Axios=o,u.create=function(t){return s(a(u.defaults,t))},u.Cancel=r("tImM"),u.CancelToken=r("OHXD"),u.isCancel=r("e5jZ"),u.all=function(t){return Promise.all(t)},u.spread=r("6s8r"),t.exports=u,t.exports.default=u},THQi:function(t,e,r){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,s){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?o(a(t),(function(a){var s=encodeURIComponent(n(a))+r;return i(t[a])?o(t[a],(function(t){return s+encodeURIComponent(n(t))})).join(e):s+encodeURIComponent(n(t[a]))})).join(e):s?encodeURIComponent(n(s))+r+encodeURIComponent(n(t)):""};var i=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function o(t,e){if(t.map)return t.map(e);for(var r=[],n=0;n=this._blockSize;){for(var o=this._blockOffset;o0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return e},o.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=o},UKnr:function(t,e,r){"use strict";e.decode=e.parse=r("MNOf"),e.encode=e.stringify=r("THQi")},Ux2S:function(t,e,r){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getEnvBtoa=function(){return"undefined"!=typeof window?window.btoa:r},e.getEnvAtob=function(){return"undefined"!=typeof window?window.atob:n};var r=function(e){if(void 0===t)throw new Error("UnsupportedEnvironment");var r=Object.prototype.toString.call(e).slice(8,-1);return(t.isBuffer(e)?e:["ArrayBuffer","TypedArray","Uint8Array","Int8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].indexOf(r)>=0?t.from(e):t.from(e.toString(),"binary")).toString("base64")},n=function(e){if(void 0===t)throw new Error("UnsupportedEnvironment");return t.from(e,"base64").toString("binary")}}).call(this,r("qykS").Buffer)},WFt6:function(t,e,r){"use strict";var n=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r("X9FS")),o={public:"PUBLIC KEY",private:"PRIVATE KEY",encryptedPrivate:"ENCRYPTED PRIVATE KEY",certificate:"CERTIFICATE",certRequest:"CERTIFICATE REQUEST"};e.pemToBin=function(t){var e=s(t);return i.decodeBase64(e)},e.binToPem=function(t,e){var r=i.encodeBase64(t);return a(r,e)};var a=function(t,e){if(Object.keys(o).indexOf(e)<0)throw new Error("Unsupported type");for(var r=o[e],n="-----BEGIN "+r+"-----\n";t.length>0;)n+=t.substring(0,64)+"\n",t=t.substring(64);return n=n+"-----END "+r+"-----"},s=function(t){var e=RegExp("^-----[s]*BEGIN[^-]*-----$","gm"),r=RegExp("^-----[s]*END[^-]*-----$","gm");try{var n=t.split(e)[1].split(r)[0];return n=n.replace(/\r?\n/g,"")}catch(t){throw new Error("Invalid format as PEM")}}},WeoI:function(t,e,r){var n=r("smmp"),i=r("pRMk").Buffer,o=r("3qw6");function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return o(t._prev),e}e.encrypt=function(t,e){var r=Math.ceil(e.length/16),o=t._cache.length;t._cache=i.concat([t._cache,i.allocUnsafe(16*r)]);for(var s=0;s126||t[r]<32&&13!==t[r]&&10!==t[r]){e=!1;break}var n=null;if(e){n="";for(r=0;r=0?L[i]:"")+t},U=function(){"undefined"!=typeof window&&window.document&&(n=window,i=n.document,o=i.documentElement,s=N("div")||{style:{}},u=N("div"),C=B(C),D=B(D),s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",h=!!B("perspective"),a=1)},F=function t(e){var r,n=N("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(o.appendChild(n),n.appendChild(this),this.style.display="block",e)try{r=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(r=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),o.removeChild(n),this.style.cssText=s,r},j=function(t,e){for(var r=e.length;r--;)if(t.hasAttribute(e[r]))return t.getAttribute(e[r])},G=function(t){var e;try{e=t.getBBox()}catch(r){e=F.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===F||(e=F.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+j(t,["x","cx","x1"])||0,y:+j(t,["y","cy","y1"])||0,width:0,height:0}},X=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!G(t))},H=function(t,e){if(e){var r=t.style;e in l&&(e=C),r.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty(e.replace(y,"-$1").toLowerCase())):r.removeAttribute(e)}},z=function(t,e,r,n,i,o){var a=new f.b(t._pt,e,r,0,1,o?S:T);return t._pt=a,a.b=n,a.e=i,t._props.push(r),a},V={deg:1,rad:1,turn:1},Y=function t(e,r,n,o){var a,u,c,h,d=parseFloat(n)||0,p=(n+"").trim().substr((d+"").length)||"px",v=s.style,y=m.test(r),_="svg"===e.tagName.toLowerCase(),b=(_?"client":"offset")+(y?"Width":"Height"),g="px"===o,w="%"===o;return o===p||!d||V[o]||V[p]?d:("px"!==p&&!g&&(d=t(e,r,n,"px")),h=e.getCTM&&X(e),w&&(l[r]||~r.indexOf("adius"))?Object(f.u)(d/(h?e.getBBox()[y?"width":"height"]:e[b])*100):(v[y?"width":"height"]=100+(g?p:o),u=~r.indexOf("adius")||"em"===o&&e.appendChild&&!_?e:e.parentNode,h&&(u=(e.ownerSVGElement||{}).parentNode),u&&u!==i&&u.appendChild||(u=i.body),(c=u._gsap)&&w&&c.width&&y&&c.time===f.w.time?Object(f.u)(d/c.width*100):((w||"%"===p)&&(v.position=k(e,"position")),u===e&&(v.position="static"),u.appendChild(s),a=s[b],u.removeChild(s),v.position="absolute",y&&w&&((c=Object(f.i)(u)).time=f.w.time,c.width=u[b]),Object(f.u)(g?a*d/100:a&&d?100/a*d:0))))},W=function(t,e,r,n){var i;return a||U(),e in b&&"transform"!==e&&~(e=b[e]).indexOf(",")&&(e=e.split(",")[0]),l[e]&&"transform"!==e?(i=it(t,n),i="transformOrigin"!==e?i[e]:ot(k(t,D))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||n||~(i+"").indexOf("calc("))&&(i=J[e]&&J[e](t,e,r)||k(t,e)||Object(f.j)(t,e)||("opacity"===e?1:0)),r&&!~(i+"").indexOf(" ")?Y(t,e,i,r)+r:i},q=function(t,e,r,n){if(!r||"none"===r){var i=B(e,t,1),o=i&&k(t,i,1);o&&o!==r&&(e=i,r=o)}var a,s,u,c,h,l,d,p,v,y,m,_,b=new f.b(this._pt,t.style,e,0,1,f.s),g=0,w=0;if(b.b=r,b.e=n,r+="","auto"===(n+="")&&(t.style[e]=n,n=k(t,e)||n,t.style[e]=r),a=[r,n],Object(f.f)(a),n=a[1],u=(r=a[0]).match(f.p)||[],(n.match(f.p)||[]).length){for(;s=f.p.exec(n);)d=s[0],v=n.substring(g,s.index),h?h=(h+1)%5:"rgba("!==v.substr(-5)&&"hsla("!==v.substr(-5)||(h=1),d!==(l=u[w++]||"")&&(c=parseFloat(l)||0,m=l.substr((c+"").length),(_="="===d.charAt(1)?+(d.charAt(0)+"1"):0)&&(d=d.substr(2)),p=parseFloat(d),y=d.substr((p+"").length),g=f.p.lastIndex-y.length,y||(y=y||f.g.units[e]||m,g===n.length&&(n+=y,b.e+=y)),m!==y&&(c=Y(t,e,l,y)||0),b._pt={_next:b._pt,p:v||1===w?v:",",s:c,c:_?_*p:p-c,m:h&&h<4?Math.round:0});b.c=g-1;)r=s[i],l[r]&&(n=1,r="transformOrigin"===r?D:C),H(o,r);n&&(H(o,C),u&&(u.svg&&o.removeAttribute("transform"),it(o,1),u.uncache=1))}},J={clearProps:function(t,e,r,n,i){if("isFromStart"!==i.data){var o=t._pt=new f.b(t._pt,e,r,0,0,$);return o.u=n,o.pr=-10,o.tween=i,t._props.push(r),1}}},Z=[1,0,0,1,0,0],Q={},tt=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},et=function(t){var e=k(t,C);return tt(e)?Z:e.substr(7).match(f.o).map(f.u)},rt=function(t,e){var r,n,a,s,u=t._gsap||Object(f.i)(t),c=t.style,h=et(t);return u.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(h=[(a=t.transform.baseVal.consolidate().matrix).a,a.b,a.c,a.d,a.e,a.f]).join(",")?Z:h:(h!==Z||t.offsetParent||t===o||u.svg||(a=c.display,c.display="block",(r=t.parentNode)&&i.body.contains(t)||(s=1,n=t.nextSibling,o.appendChild(t)),h=et(t),a?c.display=a:H(t,"display"),s&&(n?r.insertBefore(t,n):r?r.appendChild(t):o.removeChild(t))),e&&h.length>6?[h[0],h[1],h[4],h[5],h[12],h[13]]:h)},nt=function(t,e,r,n,i,o){var a,s,u,c=t._gsap,h=i||rt(t,!0),f=c.xOrigin||0,l=c.yOrigin||0,d=c.xOffset||0,p=c.yOffset||0,v=h[0],y=h[1],m=h[2],_=h[3],b=h[4],g=h[5],w=e.split(" "),E=parseFloat(w[0])||0,x=parseFloat(w[1])||0;r?h!==Z&&(s=v*_-y*m)&&(u=E*(-y/s)+x*(v/s)-(v*g-y*b)/s,E=E*(_/s)+x*(-m/s)+(m*g-_*b)/s,x=u):(E=(a=G(t)).x+(~w[0].indexOf("%")?E/100*a.width:E),x=a.y+(~(w[1]||w[0]).indexOf("%")?x/100*a.height:x)),n||!1!==n&&c.smooth?(b=E-f,g=x-l,c.xOffset=d+(b*v+g*m)-b,c.yOffset=p+(b*y+g*_)-g):c.xOffset=c.yOffset=0,c.xOrigin=E,c.yOrigin=x,c.smooth=!!n,c.origin=e,c.originIsAbsolute=!!r,t.style[D]="0px 0px",o&&(z(o,c,"xOrigin",f,E),z(o,c,"yOrigin",l,x),z(o,c,"xOffset",d,c.xOffset),z(o,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",E+" "+x)},it=function(t,e){var r=t._gsap||new f.a(t);if("x"in r&&!e&&!r.uncache)return r;var n,i,o,a,s,u,c,l,y,m,_,b,g,w,E,x,T,S,A,O,I,R,M,P,N,L,B,U,F,j,G,H,z=t.style,V=r.scaleX<0,Y=k(t,D)||"0";return n=i=o=u=c=l=y=m=_=0,a=s=1,r.svg=!(!t.getCTM||!X(t)),w=rt(t,r.svg),r.svg&&(P=!r.uncache&&t.getAttribute("data-svg-origin"),nt(t,P||Y,!!P||r.originIsAbsolute,!1!==r.smooth,w)),b=r.xOrigin||0,g=r.yOrigin||0,w!==Z&&(S=w[0],A=w[1],O=w[2],I=w[3],n=R=w[4],i=M=w[5],6===w.length?(a=Math.sqrt(S*S+A*A),s=Math.sqrt(I*I+O*O),u=S||A?v(A,S)*d:0,(y=O||I?v(O,I)*d+u:0)&&(s*=Math.cos(y*p)),r.svg&&(n-=b-(b*S+g*O),i-=g-(b*A+g*I))):(H=w[6],j=w[7],B=w[8],U=w[9],F=w[10],G=w[11],n=w[12],i=w[13],o=w[14],c=(E=v(H,F))*d,E&&(P=R*(x=Math.cos(-E))+B*(T=Math.sin(-E)),N=M*x+U*T,L=H*x+F*T,B=R*-T+B*x,U=M*-T+U*x,F=H*-T+F*x,G=j*-T+G*x,R=P,M=N,H=L),l=(E=v(-O,F))*d,E&&(x=Math.cos(-E),G=I*(T=Math.sin(-E))+G*x,S=P=S*x-B*T,A=N=A*x-U*T,O=L=O*x-F*T),u=(E=v(A,S))*d,E&&(P=S*(x=Math.cos(E))+A*(T=Math.sin(E)),N=R*x+M*T,A=A*x-S*T,M=M*x-R*T,S=P,R=N),c&&Math.abs(c)+Math.abs(u)>359.9&&(c=u=0,l=180-l),a=Object(f.u)(Math.sqrt(S*S+A*A+O*O)),s=Object(f.u)(Math.sqrt(M*M+H*H)),E=v(R,M),y=Math.abs(E)>2e-4?E*d:0,_=G?1/(G<0?-G:G):0),r.svg&&(P=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!tt(k(t,C)),P&&t.setAttribute("transform",P))),Math.abs(y)>90&&Math.abs(y)<270&&(V?(a*=-1,y+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-1,y+=y<=0?180:-180)),r.x=((r.xPercent=n&&Math.round(t.offsetWidth/2)===Math.round(-n)?-50:0)?0:n)+"px",r.y=((r.yPercent=i&&Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)?0:i)+"px",r.z=o+"px",r.scaleX=Object(f.u)(a),r.scaleY=Object(f.u)(s),r.rotation=Object(f.u)(u)+"deg",r.rotationX=Object(f.u)(c)+"deg",r.rotationY=Object(f.u)(l)+"deg",r.skewX=y+"deg",r.skewY=m+"deg",r.transformPerspective=_+"px",(r.zOrigin=parseFloat(Y.split(" ")[2])||0)&&(z[D]=ot(Y)),r.xOffset=r.yOffset=0,r.force3D=f.g.force3D,r.renderTransform=r.svg?ct:h?ut:st,r.uncache=0,r},ot=function(t){return(t=t.split(" "))[0]+" "+t[1]},at=function(t,e,r){var n=Object(f.x)(e);return Object(f.u)(parseFloat(e)+parseFloat(Y(t,"x",r+"px",n)))+n},st=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ut(t,e)},ut=function(t,e){var r=e||this,n=r.xPercent,i=r.yPercent,o=r.x,a=r.y,s=r.z,u=r.rotation,c=r.rotationY,h=r.rotationX,f=r.skewX,l=r.skewY,d=r.scaleX,v=r.scaleY,y=r.transformPerspective,m=r.force3D,_=r.target,b=r.zOrigin,g="",w="auto"===m&&t&&1!==t||!0===m;if(b&&("0deg"!==h||"0deg"!==c)){var E,x=parseFloat(c)*p,T=Math.sin(x),S=Math.cos(x);x=parseFloat(h)*p,E=Math.cos(x),o=at(_,o,T*E*-b),a=at(_,a,-Math.sin(x)*-b),s=at(_,s,S*E*-b+b)}"0px"!==y&&(g+="perspective("+y+") "),(n||i)&&(g+="translate("+n+"%, "+i+"%) "),(w||"0px"!==o||"0px"!==a||"0px"!==s)&&(g+="0px"!==s||w?"translate3d("+o+", "+a+", "+s+") ":"translate("+o+", "+a+") "),"0deg"!==u&&(g+="rotate("+u+") "),"0deg"!==c&&(g+="rotateY("+c+") "),"0deg"!==h&&(g+="rotateX("+h+") "),"0deg"===f&&"0deg"===l||(g+="skew("+f+", "+l+") "),1===d&&1===v||(g+="scale("+d+", "+v+") "),_.style[C]=g||"translate(0, 0)"},ct=function(t,e){var r,n,i,o,a,s=e||this,u=s.xPercent,c=s.yPercent,h=s.x,l=s.y,d=s.rotation,v=s.skewX,y=s.skewY,m=s.scaleX,_=s.scaleY,b=s.target,g=s.xOrigin,w=s.yOrigin,E=s.xOffset,x=s.yOffset,T=s.forceCSS,S=parseFloat(h),A=parseFloat(l);d=parseFloat(d),v=parseFloat(v),(y=parseFloat(y))&&(v+=y=parseFloat(y),d+=y),d||v?(d*=p,v*=p,r=Math.cos(d)*m,n=Math.sin(d)*m,i=Math.sin(d-v)*-_,o=Math.cos(d-v)*_,v&&(y*=p,a=Math.tan(v-y),i*=a=Math.sqrt(1+a*a),o*=a,y&&(a=Math.tan(y),r*=a=Math.sqrt(1+a*a),n*=a)),r=Object(f.u)(r),n=Object(f.u)(n),i=Object(f.u)(i),o=Object(f.u)(o)):(r=m,o=_,n=i=0),(S&&!~(h+"").indexOf("px")||A&&!~(l+"").indexOf("px"))&&(S=Y(b,"x",h,"px"),A=Y(b,"y",l,"px")),(g||w||E||x)&&(S=Object(f.u)(S+g-(g*r+w*i)+E),A=Object(f.u)(A+w-(g*n+w*o)+x)),(u||c)&&(a=b.getBBox(),S=Object(f.u)(S+u/100*a.width),A=Object(f.u)(A+c/100*a.height)),a="matrix("+r+","+n+","+i+","+o+","+S+","+A+")",b.setAttribute("transform",a),T&&(b.style[C]=a)},ht=function(t,e,r,n,i,o){var a,s,u=Object(f.l)(i),c=parseFloat(i)*(u&&~i.indexOf("rad")?d:1),h=o?c*o:c-n,l=n+h+"deg";return u&&("short"===(a=i.split("_")[1])&&(h%=360)!==h%180&&(h+=h<0?360:-360),"cw"===a&&h<0?h=(h+36e9)%360-360*~~(h/360):"ccw"===a&&h>0&&(h=(h-36e9)%360-360*~~(h/360))),t._pt=s=new f.b(t._pt,e,r,n,h,w),s.e=l,s.u="deg",t._props.push(r),s},ft=function(t,e,r){var n,o,a,s,c,h,d,p=u.style,v=r._gsap;for(o in p.cssText=getComputedStyle(r).cssText+";position:absolute;display:block;",p[C]=e,i.body.appendChild(u),n=it(u,1),l)(a=v[o])!==(s=n[o])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(o)<0&&(c=Object(f.x)(a)!==(d=Object(f.x)(s))?Y(r,o,a,d):parseFloat(a),h=parseFloat(s),t._pt=new f.b(t._pt,v,o,c,h-c,g),t._pt.u=d||0,t._props.push(o));i.body.removeChild(u)}; /*! * CSSPlugin 3.3.0 * https://greensock.com * * Copyright 2008-2020, GreenSock. All rights reserved. * Subject to the terms at https://greensock.com/standard-license or for * Club GreenSock members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */Object(f.h)("padding,margin,Width,Radius",(function(t,e){var r="Top",n="Right",i="Bottom",o="Left",a=(e<3?[r,n,i,o]:[r+o,r+n,i+n,i+o]).map((function(r){return e<2?t+r:"border"+r+t}));J[e>1?"border"+t:t]=function(t,e,r,n,i){var o,s;if(arguments.length<4)return o=a.map((function(e){return W(t,e,r)})),5===(s=o.join(" ")).split(o[0]).length?o[0]:s;o=(n+"").split(" "),s={},a.forEach((function(t,e){return s[t]=o[e]=o[e]||o[(e-1)/2|0]})),t.init(e,s,i)}}));var lt,dt,pt={name:"css",register:U,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,r,n,i){var o,s,u,c,h,d,p,v,y,m,w,T,S,A,O,I,R,M,P,D=this._props,N=t.style;for(p in a||U(),e)if("autoRound"!==p&&(s=e[p],!f.q[p]||!Object(f.e)(p,e,r,n,t,i)))if(h=typeof s,d=J[p],"function"===h&&(h=typeof(s=s.call(r,n,t,i))),"string"===h&&~s.indexOf("random(")&&(s=Object(f.t)(s)),d)d(this,t,p,s,r)&&(O=1);else if("--"===p.substr(0,2))this.add(N,"setProperty",getComputedStyle(t).getPropertyValue(p)+"",s+"",n,i,0,0,p);else{if(o=W(t,p),c=parseFloat(o),(m="string"===h&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),u=parseFloat(s),p in b&&("autoAlpha"===p&&(1===c&&"hidden"===W(t,"visibility")&&u&&(c=0),z(this,N,"visibility",c?"inherit":"hidden",u?"inherit":"hidden",!u)),"scale"!==p&&"transform"!==p&&~(p=b[p]).indexOf(",")&&(p=p.split(",")[0])),w=p in l)if(T||((S=t._gsap).renderTransform||it(t),A=!1!==e.smoothOrigin&&S.smooth,(T=this._pt=new f.b(this._pt,N,C,0,1,S.renderTransform,S,0,-1)).dep=1),"scale"===p)this._pt=new f.b(this._pt,S,"scaleY",S.scaleY,m?m*u:u-S.scaleY),D.push("scaleY",p),p+="X";else{if("transformOrigin"===p){R=void 0,M=void 0,P=void 0,R=(I=s).split(" "),M=R[0],P=R[1]||"50%","top"!==M&&"bottom"!==M&&"left"!==P&&"right"!==P||(I=M,M=P,P=I),R[0]=K[M]||M,R[1]=K[P]||P,s=R.join(" "),S.svg?nt(t,s,0,A,0,this):((y=parseFloat(s.split(" ")[2])||0)!==S.zOrigin&&z(this,S,"zOrigin",S.zOrigin,y),z(this,N,p,ot(o),ot(s)));continue}if("svgOrigin"===p){nt(t,s,1,A,0,this);continue}if(p in Q){ht(this,S,p,c,s,m);continue}if("smoothOrigin"===p){z(this,S,"smooth",S.smooth,s);continue}if("force3D"===p){S[p]=s;continue}if("transform"===p){ft(this,s,t);continue}}else p in N||(p=B(p)||p);if(w||(u||0===u)&&(c||0===c)&&!_.test(s)&&p in N)u||(u=0),(v=(o+"").substr((c+"").length))!==(y=(s+"").substr((u+"").length)||(p in f.g.units?f.g.units[p]:v))&&(c=Y(t,p,o,y)),this._pt=new f.b(this._pt,w?S:N,p,c,m?m*u:u-c,"px"!==y||!1===e.autoRound||w?g:x),this._pt.u=y||0,v!==y&&(this._pt.b=o,this._pt.r=E);else if(p in N)q.call(this,t,p,o,s);else{if(!(p in t)){Object(f.n)(p,s);continue}this.add(t,p,t[p],s,n,i)}D.push(p)}O&&Object(f.v)(this)},get:W,aliases:b,getSetter:function(t,e,r){var n=b[e];return n&&n.indexOf(",")<0&&(e=n),e in l&&e!==D&&(t._gsap.x||W(t,"x"))?r&&c===r?"scale"===e?R:I:(c=r||{})&&("scale"===e?M:P):t.style&&!Object(f.m)(t.style[e])?A:~e.indexOf("-")?O:Object(f.k)(t,e)},core:{_removeProperty:H,_getMatrix:rt}};f.y.utils.checkPrefix=B,lt="rotation,rotationX,rotationY,skewX,skewY",dt=Object(f.h)("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+lt+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){l[t]=1})),Object(f.h)(lt,(function(t){f.g.units[t]="deg",Q[t]=1})),b[dt[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+lt,Object(f.h)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");b[e[1]]=dt[e[0]]})),Object(f.h)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){f.g.units[t]="px"})),f.y.registerPlugin(pt);var vt=f.y.registerPlugin(pt)||f.y;vt.core.Tween},Xr9Y:function(t,e,r){var n=e;n._reverse=function(t){var e={};return Object.keys(t).forEach((function(r){(0|r)==r&&(r|=0);var n=t[r];e[n]=r})),e},n.der=r("RfOT")},Y9G6:function(t,e,r){var n=r("wfEq"),i=r("2ozp"),o=r("KSsY"),a=r("pRMk").Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,r,n){t.writeInt32BE(e,n),t.writeInt32BE(r,n+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},YM0L:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.deriveSecret=e.verify=e.sign=e.generateKey=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=i(r("EO1s")),u=n(r("B3sb")),c=i(r("6yG2")),h=i(r("cO3T")),f=r("Rvex"),l=i(r("SDgz")),d=i(r("6MVH")).default.ec,p=function(){var t=(0,a.default)(o.default.mark((function t(e){var r,n,i,a,u,h,p,v,y,m;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=s.default.namedCurves[e].indutnyName,n=new d(r),t.t0=n,t.t1=l.default.encoder,t.next=6,c.default.getRandomBytes(32);case 6:if(t.t2=t.sent,t.t3=t.t1.arrayBufferToString.call(t.t1,t.t2),t.t4={entropy:t.t3},i=t.t0.genKeyPair.call(t.t0,t.t4),a=s.default.namedCurves[e].payloadSize,u=new Uint8Array(i.getPublic("array")),h=new Uint8Array(i.getPrivate().toArray("be",a)),!(p=new f.Key("oct",u,{namedCurve:e})).isPrivate){t.next=16;break}throw new Error("NotPublicKeyForECCKeyGenPureJS");case 16:return t.next=18,p.export("jwk",{outputPublic:!0});case 18:if(v=t.sent,(y=new f.Key("oct",h,{namedCurve:e})).isPrivate){t.next=22;break}throw new Error("NotPrivateKeyForECCKeyGenPureJS");case 22:return t.next=24,y.export("jwk");case 24:return m=t.sent,t.abrupt("return",{publicKey:v,privateKey:m});case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.generateKey=p;var v=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i){var a,c,l,p,v,y,m,_,b,g,w,E;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=r.crv,c=s.default.namedCurves[a].indutnyName,l=new d(c),(p=new f.Key("jwk",r)).isPrivate){t.next=6;break}throw new Error("NotPrivateKeyForECCSignPureJS");case 6:return t.next=8,p.export("oct");case 8:return v=t.sent,y=l.keyFromPrivate(v),t.next=12,h.default.compute(e,n);case 12:return m=t.sent,_=y.sign(m),b=s.default.namedCurves[a].payloadSize,g=new Uint8Array(_.r.toArray("be",b)),w=new Uint8Array(_.s.toArray("be",b)),(E=new Uint8Array(g.length+w.length)).set(g),E.set(w,g.length),t.abrupt("return","raw"===i?E:u.encodeAsn1Signature(E,a));case 21:case"end":return t.stop()}}),t)})));return function(e,r,n,i){return t.apply(this,arguments)}}();e.sign=v;var y=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i,a){var c,l,p,v,y,m,_,b,g,w;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c=n.crv,l=s.default.namedCurves[c].indutnyName,p=new d(l),!(v=new f.Key("jwk",n)).isPrivate){t.next=6;break}throw new Error("NotPublicKeyForECCVerifyPureJS");case 6:return t.next=8,v.export("oct",{compact:!1,outputPublic:!0});case 8:return y=t.sent,m=p.keyFromPublic(y),_=s.default.namedCurves[c].payloadSize,r instanceof Uint8Array||(r=new Uint8Array(r)),r="raw"===a?r:u.decodeAsn1Signature(r,c),b=r.slice(0,_),g=r.slice(_,_+b.length),t.next=17,h.default.compute(e,i);case 17:return w=t.sent,t.next=20,m.verify(w,{s:g,r:b});case 20:return t.abrupt("return",t.sent);case 21:case"end":return t.stop()}}),t)})));return function(e,r,n,i,o){return t.apply(this,arguments)}}();e.verify=y;var m=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,u,c,h,l,p,v,y;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.crv,i=s.default.namedCurves[n].indutnyName,a=new d(i),(u=new f.Key("jwk",r)).isPrivate){t.next=6;break}throw new Error("NotPrivateKeyForECCSDeriveKeyPureJS");case 6:return t.next=8,u.export("oct");case 8:if(c=t.sent,!(h=new f.Key("jwk",e)).isPrivate){t.next=12;break}throw new Error("NotPublicKeyForECCDeriveKeyPureJS");case 12:return t.next=14,h.export("oct",{compact:!1,outputPublic:!0});case 14:return l=t.sent,p=a.keyFromPrivate(c),v=a.keyFromPublic(l),y=s.default.namedCurves[n].payloadSize,t.abrupt("return",new Uint8Array(p.derive(v.getPublic()).toArray("be",y)));case 19:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.deriveSecret=m},"Z+yf":function(t,e,r){var n=r("pRMk").Buffer,i=r("+oaW"),o=r("5Ekh"),a=r("wfEq"),s=r("MEmy"),u=r("qXhl"),c=r("2Mwr");function h(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function f(t){o.Writable.call(this);var e=c[t];if(!e)throw new Error("Unknown message digest");this._hash=i(e.hash),this._tag=e.id,this._signType=e.sign}function l(t){return new h(t)}function d(t){return new f(t)}Object.keys(c).forEach((function(t){c[t].id=n.from(c[t].id,"hex"),c[t.toLowerCase()]=c[t]})),a(h,o.Writable),h.prototype._write=function(t,e,r){this._hash.update(t),r()},h.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},h.prototype.sign=function(t,e){this.end();var r=this._hash.digest(),n=s(r,t,this._hashType,this._signType,this._tag);return e?n.toString(e):n},a(f,o.Writable),f.prototype._write=function(t,e,r){this._hash.update(t),r()},f.prototype.update=function(t,e){return"string"==typeof t&&(t=n.from(t,e)),this._hash.update(t),this},f.prototype.verify=function(t,e,r){"string"==typeof e&&(e=n.from(e,r)),this.end();var i=this._hash.digest();return u(e,i,t,this._signType,this._tag)},t.exports={Sign:l,Verify:d,createSign:l,createVerify:d}},Z3s7:function(t,e,r){"use strict";e.a=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(){return e.reject(r)}))}))}},Z4ft:function(t,e,r){"use strict";var n=r("8kJ5"),i=r("wfEq"),o=r("7ZyU"),a=r("fOyB");function s(t){o.call(this,"mont",t),this.a=new n(t.a,16).toRed(this.red),this.b=new n(t.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(t,e,r){o.BasePoint.call(this,t,"projective"),null===e&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(e,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,r=e.redSqr(),n=r.redMul(e).redAdd(r.redMul(this.a)).redAdd(e);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new u(this,t,e)},s.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(t,e){return new u(t,e[0],e[1]||t.one)},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),r=t.redSub(e),n=t.redMul(e),i=r.redMul(e.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(t,e){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=t.x.redAdd(t.z),o=t.x.redSub(t.z).redMul(r),a=i.redMul(n),s=e.z.redMul(o.redAdd(a).redSqr()),u=e.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},u.prototype.mul=function(t){for(var e=t.clone(),r=this,n=this.curve.point(null,null),i=[];0!==e.cmpn(0);e.iushrn(1))i.push(e.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},ZG6w:function(t,e,r){t.exports=i;var n=r("hBZP").EventEmitter;function i(){n.call(this)}r("wfEq")(i,n),i.Readable=r("5Ekh"),i.Writable=r("hmUS"),i.Duplex=r("yuDq"),i.Transform=r("C9xR"),i.PassThrough=r("t5Qd"),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(r.on("end",s),r.on("close",u));var a=!1;function s(){a||(a=!0,t.end())}function u(){a||(a=!0,"function"==typeof t.destroy&&t.destroy())}function c(t){if(h(),0===n.listenerCount(this,"error"))throw t}function h(){r.removeListener("data",i),t.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",u),r.removeListener("error",c),t.removeListener("error",c),r.removeListener("end",h),r.removeListener("close",h),t.removeListener("close",h)}return r.on("error",c),t.on("error",c),r.on("end",h),r.on("close",h),t.on("close",h),t.emit("pipe",r),t}},Zf0h:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r("LxOh"))&&n.__esModule?n:{default:n};var o=function(t){for(var e=t.A,r=t.C,n=0;n<25;n+=5){for(var o=0;o<5;o++)(0,i.default)(e,n+o)(r,o);for(var a=0;a<5;a++){var s=2*(n+a),u=(a+1)%5*2,c=(a+2)%5*2;e[s]^=~r[u]&r[c],e[s+1]^=~r[u+1]&r[c+1]}}};e.default=o},Zrjs:function(t,e,r){"use strict";var n=r("ovh1");t.exports=function(t,e){e=e||{};var r={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(i,(function(t){void 0!==e[t]&&(r[t]=e[t])})),n.forEach(o,(function(i){n.isObject(e[i])?r[i]=n.deepMerge(t[i],e[i]):void 0!==e[i]?r[i]=e[i]:n.isObject(t[i])?r[i]=n.deepMerge(t[i]):void 0!==t[i]&&(r[i]=t[i])})),n.forEach(a,(function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])}));var s=i.concat(o).concat(a),u=Object.keys(e).filter((function(t){return-1===s.indexOf(t)}));return n.forEach(u,(function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])})),r}},"a/Al":function(t,e,r){var n=r("wfEq"),i=r("qykS").Buffer,o=r("eIKn");function a(t){o.call(this,t),this.enc="pem"}n(a,o),t.exports=a,a.prototype.decode=function(t,e){for(var r=t.toString().split(/[\r\n]+/g),n=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,u=-1,c=0;c4294967295)throw new RangeError("requested too many random bytes");var r=i.allocUnsafe(t);if(t>0)if(t>65536)for(var a=0;a=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),n.forEach(["post","put","patch"],(function(t){u.headers[t]=n.merge(o)})),t.exports=u}).call(this,r("5IsQ"))},bb6g:function(t,e,r){"use strict";r.r(e),r.d(e,"__extends",(function(){return i})),r.d(e,"__assign",(function(){return o})),r.d(e,"__rest",(function(){return a})),r.d(e,"__decorate",(function(){return s})),r.d(e,"__param",(function(){return u})),r.d(e,"__metadata",(function(){return c})),r.d(e,"__awaiter",(function(){return h})),r.d(e,"__generator",(function(){return f})),r.d(e,"__createBinding",(function(){return l})),r.d(e,"__exportStar",(function(){return d})),r.d(e,"__values",(function(){return p})),r.d(e,"__read",(function(){return v})),r.d(e,"__spread",(function(){return y})),r.d(e,"__spreadArrays",(function(){return m})),r.d(e,"__await",(function(){return _})),r.d(e,"__asyncGenerator",(function(){return b})),r.d(e,"__asyncDelegator",(function(){return g})),r.d(e,"__asyncValues",(function(){return w})),r.d(e,"__makeTemplateObject",(function(){return E})),r.d(e,"__importStar",(function(){return x})),r.d(e,"__importDefault",(function(){return T})),r.d(e,"__classPrivateFieldGet",(function(){return S})),r.d(e,"__classPrivateFieldSet",(function(){return A})); /*! ***************************************************************************** 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 n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(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=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a}function u(t,e){return function(r,n){e(r,n,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function h(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(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(a,s)}u((n=n.apply(t,e||[])).next())}))}function f(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)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 a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=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,o=r.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(r=i[t](e)).value instanceof _?Promise.resolve(r.value.v).then(u,c):h(o[0][2],r)}catch(t){h(o[0][3],t)}var r}function u(t){s("next",t)}function c(t){s("throw",t)}function h(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(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:_(t[n](e)),done:"return"===n}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=p(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}function x(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function T(t){return t&&t.__esModule?t:{default:t}}function S(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function A(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}},cDjl:function(t,e,r){(function(e){var r;if(e.browser)r="utf-8";else if(e.version){r=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";t.exports=r}).call(this,r("5IsQ"))},cEa6:function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.2","/Users/viccg.lin/Documents/projects/2021-08-taiwanpay-fishing"]],"_from":"elliptic@6.5.2","_id":"elliptic@6.5.2","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.2","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh","/js-crypto-ec","/js-crypto-key-utils"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"/Users/viccg.lin/Documents/projects/2021-08-taiwanpay-fishing","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},cFST:function(t,e,r){"use strict";var n,i=e,o=r("tFbo"),a=r("aAq9"),s=r("fOyB").assert;function u(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,e){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var r=new u(e);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r("GYWQ")}catch(t){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},cO3T:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"compute",{enumerable:!0,get:function(){return n.compute}}),e.default=void 0;var n=r("pkQU"),i={compute:n.compute};e.default=i},cON5:function(t,e,r){"use strict";var n=r("ovh1");t.exports=n.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function i(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return t=i(window.location.href),function(e){var r=n.isString(e)?i(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0}},cQcr:function(t,e,r){"use strict";var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.toJwk=e.fromJwk=void 0;var i=n(r("+Gs+")),o=n(r("SDgz")),a=n(r("qykS")),s=n(r("omOp")),u=r("srdS"),c=a.default.Buffer;e.fromJwk=function(t,e){var r={algorithm:s.default.publicKeyAlgorithms.RSA.oid,parameters:c.from([5,0])},n=o.default.encoder.decodeBase64Url(t.n),a=n.length,l=a%128==0?a:a+(128-a%128),d=new i.default.bignum((0,u.appendLeadingZeros)(n,l)),p=new i.default.bignum(o.default.encoder.decodeBase64Url(t.e)),v={};return"public"===e?(v.subjectPublicKey={unused:0,data:h.encode({modulus:d,publicExponent:p},"der")},v.algorithm=r):"private"===e&&(v.version=0,v.privateKeyAlgorithm=r,v.privateKey=f.encode({version:0,modulus:d,publicExponent:p,privateExponent:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.d),l)),prime1:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.p),l)),prime2:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.q),l)),exponent1:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.dp),l)),exponent2:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.dq),l)),coefficient:new i.default.bignum((0,u.appendLeadingZeros)(o.default.encoder.decodeBase64Url(t.qi),l))},"der")),v};e.toJwk=function(t,e){if("public"===e){t.subjectPublicKey.data=h.decode(t.subjectPublicKey.data,"der");var r=t.subjectPublicKey.data.modulus,n=t.subjectPublicKey.data.publicExponent,i=r.byteLength(),a=i%128==0?i:i+(128-i%128);return r=new Uint8Array(r.toArray("be",a)),n=new Uint8Array(n.toArray("be",n.byteLength())),{kty:"RSA",n:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(r)),e:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(n))}}if("private"===e){t.privateKey=f.decode(t.privateKey,"der");var s={};s.modulus=t.privateKey.modulus;var c=s.modulus.byteLength(),l=c%128==0?c:c+(128-c%128);s.modulus=new Uint8Array(s.modulus.toArray("be",l)),s.publicExponent=new Uint8Array(t.privateKey.publicExponent.toArray("be",t.privateKey.publicExponent.byteLength())),s.privateExponent=new Uint8Array(t.privateKey.privateExponent.toArray("be",l));return["prime1","prime2","exponent1","exponent2","coefficient"].forEach((function(e){s[e]=new Uint8Array(t.privateKey[e].toArray("be",l>>1))})),{kty:"RSA",n:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.modulus)),e:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.publicExponent)),d:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.privateExponent)),p:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.prime1)),q:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.prime2)),dp:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.exponent1)),dq:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.exponent2)),qi:o.default.encoder.encodeBase64Url((0,u.pruneLeadingZeros)(s.coefficient))}}};var h=i.default.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())})),f=i.default.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int(),this.key("otherPrimeInfos").optional().use(l))})),l=i.default.define("OtherPrimeInfos",(function(){this.seqof(d)})),d=i.default.define("OtherPrimeInfo",(function(){this.seq().obj(this.key("prime").int(),this.key("exponent").int(),this.key("coefficient").int())}))},cXWM:function(t,e,r){"use strict";var n=r("wfEq"),i=r("zn3x"),o=r("ql4I"),a=r("pRMk").Buffer,s=r("nIf0"),u=r("Olfb"),c=r("thXI"),h=a.alloc(128);function f(t,e){o.call(this,"digest"),"string"==typeof e&&(e=a.from(e));var r="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>r)?e=("rmd160"===t?new u:c(t)).update(e).digest():e.length=0&&(a=e,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},u.prototype._endoSplit=function(t){var e=this.endo.basis,r=e[0],n=e[1],i=n.b.mul(t).divRound(this.n),o=r.b.neg().mul(t).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(t,e){(t=new i(t,16)).red||(t=t.toRed(this.red));var r=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},u.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,r=t.y,n=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(t,e,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var r=e.redSqr().redISub(this.x).redISub(t.x),n=e.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,r=this.x.redSqr(),n=t.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(e).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(t){return t=new i(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},c.prototype.mulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(t,e,r){var n=[this,e],i=[t,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},c.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var r=this.precomputed,n=function(t){return t.neg()};e.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return e},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(h,a.BasePoint),u.prototype.jpoint=function(t,e,r){return new h(this,t,e,r)},h.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),r=this.x.redMul(e),n=this.y.redMul(e).redMul(t);return this.curve.point(r,n)},h.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},h.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(e),i=t.x.redMul(r),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),h=c.redMul(s),f=n.redMul(c),l=u.redSqr().redIAdd(h).redISub(f).redISub(f),d=u.redMul(f.redISub(l)).redISub(o.redMul(h)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(l,d,p)},h.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),r=this.x,n=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),h=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(h).redISub(h),l=s.redMul(h.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,l,d)},h.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},h.prototype.inspect=function(){return this.isInfinity()?"":""},h.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},cq1r:function(t,e,r){"use strict";var n=r("wfEq"),i=r("ThzV"),o=r("pRMk").Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(t,e){return t<>>32-e}function c(t,e,r,n,i,o,a){return u(t+(e&r|~e&n)+i+o|0,a)+e|0}function h(t,e,r,n,i,o,a){return u(t+(e&n|r&~n)+i+o|0,a)+e|0}function f(t,e,r,n,i,o,a){return u(t+(e^r^n)+i+o|0,a)+e|0}function l(t,e,r,n,i,o,a){return u(t+(r^(e|~n))+i+o|0,a)+e|0}n(s,i),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var r=this._a,n=this._b,i=this._c,o=this._d;r=c(r,n,i,o,t[0],3614090360,7),o=c(o,r,n,i,t[1],3905402710,12),i=c(i,o,r,n,t[2],606105819,17),n=c(n,i,o,r,t[3],3250441966,22),r=c(r,n,i,o,t[4],4118548399,7),o=c(o,r,n,i,t[5],1200080426,12),i=c(i,o,r,n,t[6],2821735955,17),n=c(n,i,o,r,t[7],4249261313,22),r=c(r,n,i,o,t[8],1770035416,7),o=c(o,r,n,i,t[9],2336552879,12),i=c(i,o,r,n,t[10],4294925233,17),n=c(n,i,o,r,t[11],2304563134,22),r=c(r,n,i,o,t[12],1804603682,7),o=c(o,r,n,i,t[13],4254626195,12),i=c(i,o,r,n,t[14],2792965006,17),r=h(r,n=c(n,i,o,r,t[15],1236535329,22),i,o,t[1],4129170786,5),o=h(o,r,n,i,t[6],3225465664,9),i=h(i,o,r,n,t[11],643717713,14),n=h(n,i,o,r,t[0],3921069994,20),r=h(r,n,i,o,t[5],3593408605,5),o=h(o,r,n,i,t[10],38016083,9),i=h(i,o,r,n,t[15],3634488961,14),n=h(n,i,o,r,t[4],3889429448,20),r=h(r,n,i,o,t[9],568446438,5),o=h(o,r,n,i,t[14],3275163606,9),i=h(i,o,r,n,t[3],4107603335,14),n=h(n,i,o,r,t[8],1163531501,20),r=h(r,n,i,o,t[13],2850285829,5),o=h(o,r,n,i,t[2],4243563512,9),i=h(i,o,r,n,t[7],1735328473,14),r=f(r,n=h(n,i,o,r,t[12],2368359562,20),i,o,t[5],4294588738,4),o=f(o,r,n,i,t[8],2272392833,11),i=f(i,o,r,n,t[11],1839030562,16),n=f(n,i,o,r,t[14],4259657740,23),r=f(r,n,i,o,t[1],2763975236,4),o=f(o,r,n,i,t[4],1272893353,11),i=f(i,o,r,n,t[7],4139469664,16),n=f(n,i,o,r,t[10],3200236656,23),r=f(r,n,i,o,t[13],681279174,4),o=f(o,r,n,i,t[0],3936430074,11),i=f(i,o,r,n,t[3],3572445317,16),n=f(n,i,o,r,t[6],76029189,23),r=f(r,n,i,o,t[9],3654602809,4),o=f(o,r,n,i,t[12],3873151461,11),i=f(i,o,r,n,t[15],530742520,16),r=l(r,n=f(n,i,o,r,t[2],3299628645,23),i,o,t[0],4096336452,6),o=l(o,r,n,i,t[7],1126891415,10),i=l(i,o,r,n,t[14],2878612391,15),n=l(n,i,o,r,t[5],4237533241,21),r=l(r,n,i,o,t[12],1700485571,6),o=l(o,r,n,i,t[3],2399980690,10),i=l(i,o,r,n,t[10],4293915773,15),n=l(n,i,o,r,t[1],2240044497,21),r=l(r,n,i,o,t[8],1873313359,6),o=l(o,r,n,i,t[15],4264355552,10),i=l(i,o,r,n,t[6],2734768916,15),n=l(n,i,o,r,t[13],1309151649,21),r=l(r,n,i,o,t[4],4149444226,6),o=l(o,r,n,i,t[11],3174756917,10),i=l(i,o,r,n,t[2],718787259,15),n=l(n,i,o,r,t[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=o.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},ct8n:function(t,e,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(t,e){if(r("noDeprecation"))return t;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this,r("pCvA"))},cyIN:function(t,e,r){var n=r("bPso");t.exports=_,_.simpleSieve=y,_.fermatTest=m;var i=r("8kJ5"),o=new i(24),a=new(r("y9a5")),s=new i(1),u=new i(2),c=new i(5),h=(new i(16),new i(8),new i(10)),f=new i(3),l=(new i(7),new i(11)),d=new i(4),p=(new i(12),null);function v(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;it;)r.ishrn(1);if(r.isEven()&&r.iadd(s),r.testn(1)||r.iadd(u),e.cmp(u)){if(!e.cmp(c))for(;r.mod(h).cmp(f);)r.iadd(d)}else for(;r.mod(o).cmp(l);)r.iadd(d);if(y(p=r.shrn(1))&&y(r)&&m(p)&&m(r)&&a.test(p)&&a.test(r))return r}}},czhI:function(t,e,r){t.exports=r("TDIH")},dIx8:function(t,e,r){"use strict";var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.Key=void 0;var i=n(r("NthX")),o=n(r("fFdx")),a=n(r("SDJZ")),s=n(r("NToG")),u=r("BO39"),c=r("k/4n"),h=n(r("hjl+")),f=n(r("SDgz")),l=r("srdS"),d=function(){function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(0,a.default)(this,t);var i=(0,h.default)(r),o=(0,h.default)(n);if(this._jwk={},this._der=null,this._oct={},this._current={jwk:!1,der:!1,oct:!1},"jwk"===e)this._setJwk(i);else if("der"===e||"pem"===e){if("der"===e&&!(i instanceof Uint8Array))throw new Error("DerKeyMustBeUint8Array");if("pem"===e&&"string"!=typeof i)throw new Error("PemKeyMustBeString");this._setAsn1(i,e)}else{if("oct"!==e)throw new Error("UnsupportedType");if("string"!=typeof o.namedCurve)throw new Error("namedCurveMustBeSpecified");if(!(i instanceof Uint8Array))throw new Error("OctetKeyMustBeUint8Array");this._setSec1(i,o.namedCurve)}}var e,r,n,d;return(0,s.default)(t,[{key:"_setJwk",value:function(t){this._type=(0,l.getJwkType)(t),this._jwk=t,this._isEncrypted&&(this._der=null),this._isEncrypted=!1,this._setCurrentStatus()}},{key:"_setAsn1",value:function(t,e){this._type=(0,l.isAsn1Public)(t,e)?"public":"private",this._isEncrypted=(0,l.isAsn1Encrypted)(t,e),this._der="pem"===e?f.default.formatter.pemToBin(t):t,this._isEncrypted&&(this._jwk={},this._oct={}),this._setCurrentStatus()}},{key:"_setSec1",value:function(t,e){this._type=(0,l.getSec1KeyType)(t,e),this._oct={namedCurve:e,key:t},this._isEncrypted&&(this._der=null),this._isEncrypted=!1,this._setCurrentStatus()}},{key:"_setCurrentStatus",value:function(){this._current.jwk="string"==typeof this._jwk.kty&&("RSA"===this._jwk.kty||"EC"===this._jwk.kty),this._current.der=void 0!==this._der&&this._der instanceof Uint8Array&&this._der.length>0,this._current.oct=void 0!==this._oct.key&&this._oct.key instanceof Uint8Array&&this._oct.key.length>0&&"string"==typeof this._oct.namedCurve}},{key:"export",value:(d=(0,o.default)(i.default.mark((function t(){var e,r,n,o=arguments;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=o.length>0&&void 0!==o[0]?o[0]:"jwk",r=o.length>1&&void 0!==o[1]?o[1]:{},!(["pem","der","jwk","oct"].indexOf(e)<0)){t.next=4;break}throw new Error("UnsupportedFormat");case 4:if(!this._isEncrypted||"private"!==this._type){t.next=10;break}if("der"!==e&&"pem"!==e||0!==Object.keys(r).length||!this._current.der){t.next=9;break}return t.abrupt("return","pem"===e?f.default.formatter.binToPem(this._der,"encryptedPrivate"):this._der);case 9:throw new Error("DecryptionRequired");case 10:if(!this._current.jwk){t.next=14;break}n=this._jwk,t.next=27;break;case 14:if(!this._current.oct){t.next=20;break}return t.next=17,(0,u.toJwkFrom)("oct",this._oct.key,{namedCurve:this._oct.namedCurve});case 17:n=t.sent,t.next=27;break;case 20:if(!this._current.der){t.next=26;break}return t.next=23,(0,u.toJwkFrom)("der",this._der);case 23:n=t.sent,t.next=27;break;case 26:throw new Error("InvalidStatus");case 27:if(this._setJwk(n),"der"!==e&&"pem"!==e){t.next=35;break}return void 0===r.encryptParams&&(r.encryptParams={}),t.next=32,(0,u.fromJwkTo)(e,n,{outputPublic:r.outputPublic,compact:r.compact,encryptParams:r.encryptParams});case 32:return t.abrupt("return",t.sent);case 35:if("oct"!==e){t.next=41;break}return t.next=38,(0,u.fromJwkTo)(e,n,{outputPublic:r.outputPublic,output:r.output,compact:r.compact});case 38:return t.abrupt("return",t.sent);case 41:return t.abrupt("return",n);case 42:case"end":return t.stop()}}),t,this)}))),function(){return d.apply(this,arguments)})},{key:"encrypt",value:(n=(0,o.default)(i.default.mark((function t(e){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._isEncrypted){t.next=2;break}throw new Error("AlreadyEncrypted");case 2:return r={encryptParams:{passphrase:e}},t.t0=this,t.next=6,this.export("der",r);case 6:return t.t1=t.sent,t.t0._setAsn1.call(t.t0,t.t1,"der"),t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"decrypt",value:(r=(0,o.default)(i.default.mark((function t(e){var r;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this._isEncrypted){t.next=2;break}throw new Error("NotEncrypted");case 2:if(!this._current.der||"string"!=typeof e){t.next=8;break}return t.next=5,(0,u.toJwkFrom)("der",this._der,{passphrase:e});case 5:r=t.sent,t.next=9;break;case 8:throw new Error("FailedToDecrypt");case 9:return this._setJwk(r),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t,this)}))),function(t){return r.apply(this,arguments)})},{key:"getJwkThumbprint",value:(e=(0,o.default)(i.default.mark((function t(){var e,r,n=arguments;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.length>0&&void 0!==n[0]?n[0]:"SHA-256",r=n.length>1&&void 0!==n[1]?n[1]:"binary",!this._isEncrypted){t.next=4;break}throw new Error("DecryptionRequired");case 4:return t.t0=c.getJwkThumbprint,t.next=7,this.export("jwk");case 7:return t.t1=t.sent,t.t2=e,t.t3=r,t.next=12,(0,t.t0)(t.t1,t.t2,t.t3);case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t,this)}))),function(){return e.apply(this,arguments)})},{key:"keyType",get:function(){var t=this;if(this._isEncrypted)throw new Error("DecryptionRequired");return new Promise(function(){var e=(0,o.default)(i.default.mark((function e(r,n){var o;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.export("jwk").catch((function(t){n(t)}));case 2:o=e.sent,r(o.kty);case 4:case"end":return e.stop()}}),e)})));return function(t,r){return e.apply(this,arguments)}}())}},{key:"jwkThumbprint",get:function(){return this.getJwkThumbprint()}},{key:"isEncrypted",get:function(){return this._isEncrypted}},{key:"isPrivate",get:function(){return"private"===this._type}},{key:"der",get:function(){return this.export("der")}},{key:"pem",get:function(){return this.export("pem")}},{key:"jwk",get:function(){return this.export("jwk")}},{key:"oct",get:function(){return this.export("oct",{output:"string"})}}]),t}();e.Key=d},dLON:function(t,e,r){"use strict";var n=r("tFbo"),i=r("cFST"),o=r("fOyB"),a=o.assert,s=o.parseBytes,u=r("7wEA"),c=r("FPgC");function h(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof h))return new h(t);t=i[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=n.sha512}t.exports=h,h.prototype.sign=function(t,e){t=s(t);var r=this.keyFromSecret(e),n=this.hashInt(r.messagePrefix(),t),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),t).mul(r.priv()),u=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},h.prototype.verify=function(t,e,r){t=s(t),e=this.makeSignature(e);var n=this.keyFromPublic(r),i=this.hashInt(e.Rencoded(),n.pubBytes(),t),o=this.g.mul(e.S());return e.R().add(n.pub().mul(i)).eq(o)},h.prototype.hashInt=function(){for(var t=this.hash(),e=0;e>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=t.readUInt8(e),t.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(t,e,r){var n=t.readUInt8(r);if(t.isError(n))return n;if(!e&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return t.error("length octect is too long");n=0;for(var o=0;o(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n},n.getJSF=function(t,e){var r=[[],[]];t=t.clone(),e=e.clone();for(var n=0,i=0;t.cmpn(-n)>0||e.cmpn(-i)>0;){var o,a,s,u=t.andln(3)+n&3,c=e.andln(3)+i&3;if(3===u&&(u=-1),3===c&&(c=-1),0==(1&u))o=0;else o=3!==(s=t.andln(7)+n&7)&&5!==s||2!==c?u:-u;if(r[0].push(o),0==(1&c))a=0;else a=3!==(s=e.andln(7)+i&7)&&5!==s||2!==u?c:-c;r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),t.iushrn(1),e.iushrn(1)}return r},n.cachedProperty=function(t,e,r){var n="_"+e;t.prototype[e]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new i(t,"hex","le")}},"fwl+":function(t,e,r){"use strict";var n=r("ovh1");function i(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,"]")}t.exports=function(t,e,r){if(!e)return t;var o;if(r)o=r(e);else if(n.isURLSearchParams(e))o=e.toString();else{var a=[];n.forEach(e,(function(t,e){null!=t&&(n.isArray(t)?e+="[]":t=[t],n.forEach(t,(function(t){n.isDate(t)?t=t.toISOString():n.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},"g+31":function(t,e,r){"use strict";(function(e,n,i){var o=r("upWy");function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=_;var s,u=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?n:o.nextTick;_.WritableState=m;var c=Object.create(r("nrnY"));c.inherits=r("wfEq");var h={deprecate:r("ct8n")},f=r("n428"),l=r("pRMk").Buffer,d=i.Uint8Array||function(){};var p,v=r("xTpk");function y(){}function m(t,e){s=s||r("A/eZ"),t=t||{};var n=e instanceof s;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,c=t.writableHighWaterMark,h=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(c||0===c)?c:h,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(o.nextTick(i,n),o.nextTick(T,t,e),t._writableState.errorEmitted=!0,t.emit("error",n)):(i(n),t._writableState.errorEmitted=!0,t.emit("error",n),T(t,e))}(t,r,n,e,i);else{var a=E(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||w(t,r),n?u(g,t,r,a,i):g(t,r,a,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function _(t){if(s=s||r("A/eZ"),!(p.call(_,this)||this instanceof s))return new _(t);this._writableState=new m(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(t,e,r,n,i,o,a){e.writelen=n,e.writecb=a,e.writing=!0,e.sync=!0,r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function g(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),T(t,e)}function w(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var n=e.bufferedRequestCount,i=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,u=!0;r;)i[s]=r,r.isBuf||(u=!1),r=r.next,s+=1;i.allBuffers=u,b(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,h=r.encoding,f=r.callback;if(b(t,e,!1,e.objectMode?1:c.length,c,h,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function E(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final((function(r){e.pendingcb--,r&&t.emit("error",r),e.prefinished=!0,t.emit("prefinish"),T(t,e)}))}function T(t,e){var r=E(e);return r&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),r}c.inherits(_,f),m.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(m.prototype,"buffer",{get:h.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===_&&(t&&t._writableState instanceof m)}})):p=function(t){return t instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(t,e,r){var n,i=this._writableState,a=!1,s=!i.objectMode&&(n=t,l.isBuffer(n)||n instanceof d);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=y),i.ended?function(t,e){var r=new Error("write after end");t.emit("error",r),o.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),o.nextTick(n,a),i=!1),i}(this,i,t,r))&&(i.pendingcb++,a=function(t,e,r,n,i,o){if(!r){var a=function(t,e,r){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=e.objectMode?1:n.length;e.length+=s;var u=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(t,e,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(t,e,r){e.ending=!0,T(t,e),r&&(e.finished?o.nextTick(r):t.once("finish",r));e.ended=!0,t.writable=!1}(this,n,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),_.prototype.destroy=v.destroy,_.prototype._undestroy=v.undestroy,_.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,r("5IsQ"),r("oPUo").setImmediate,r("pCvA"))},gSrR:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"pbkdf2",{enumerable:!0,get:function(){return n.pbkdf2}}),Object.defineProperty(e,"pbkdf1",{enumerable:!0,get:function(){return n.pbkdf1}}),e.default=void 0;var n=r("MWI9"),i={pbkdf2:n.pbkdf2,pbkdf1:n.pbkdf1};e.default=i},guUT:function(t,e,r){"use strict";var n=r("ovh1"),i=r("4OlW"),o=r("e5jZ"),a=r("bRtl");function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=n.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},h07j:function(t,e,r){var n=r("pRMk").Buffer;t.exports=function(t,e,r){if(n.isBuffer(t))return t;if("string"==typeof t)return n.from(t,e);if(ArrayBuffer.isView(t))return n.from(t.buffer);throw new TypeError(r+" must be a string, a Buffer, a typed array or a DataView")}},h1Um:function(t,e,r){"use strict";var n=r("Rzld"),i=r("hUM7");t.exports=function(t,e){return t&&!n(e)?i(t,e):e}},hBZP:function(t,e,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function h(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,a,s;if(c(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),a=o[e]),void 0===a)a=o[e]=r,++t._eventsCount;else if("function"==typeof a?a=o[e]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(i=h(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var c=u.length,h=y(u,c);for(r=0;r=0;o--)if(r[o]===e||r[o].listener===e){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):v.call(t,e)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},hUM7:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},hVbd:function(t,e,r){(function(e,n){var i,o=r("pRMk").Buffer,a=r("PunD"),s=r("cDjl"),u=r("SUNt"),c=r("h07j"),h=e.crypto&&e.crypto.subtle,f={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function d(t,e,r,n,i){return h.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return h.deriveBits({name:"PBKDF2",salt:e,iterations:r,hash:{name:i}},t,n<<3)})).then((function(t){return o.from(t)}))}t.exports=function(t,r,p,v,y,m){"function"==typeof y&&(m=y,y=void 0);var _=f[(y=y||"sha1").toLowerCase()];if(!_||"function"!=typeof e.Promise)return n.nextTick((function(){var e;try{e=u(t,r,p,v,y)}catch(t){return m(t)}m(null,e)}));if(a(p,v),t=c(t,s,"Password"),r=c(r,s,"Salt"),"function"!=typeof m)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){n.nextTick((function(){e(null,t)}))}),(function(t){n.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!h||!h.importKey||!h.deriveBits)return Promise.resolve(!1);if(void 0!==l[t])return l[t];var r=d(i=i||o.alloc(8),i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return l[t]=r,r}(_).then((function(e){return e?d(t,r,p,v,_):u(t,r,p,v,y)})),m)}}).call(this,r("pCvA"),r("5IsQ"))},heVN:function(t,e,r){(function(t,e){!function(t,r){"use strict";if(!t.setImmediate){var n,i,o,a,s,u=1,c={},h=!1,f=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick((function(){p(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,r=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=r,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){o.port2.postMessage(t)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,n=function(t){var e=f.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,i.removeChild(e),e=null},i.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(a="setImmediate$"+Math.random()+"$",s=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(a)&&p(+e.data.slice(a.length))},t.addEventListener?t.addEventListener("message",s,!1):t.attachEvent("onmessage",s),n=function(e){t.postMessage(a+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),r=0;r-1},ot.prototype.set=function(t,e){var r=this.__data__,n=ht(r,t);return n<0?r.push([t,e]):r[n][1]=e,this},at.prototype.clear=function(){this.__data__={hash:new it,map:new(Y||ot),string:new it}},at.prototype.delete=function(t){return vt(this,t).delete(t)},at.prototype.get=function(t){return vt(this,t).get(t)},at.prototype.has=function(t){return vt(this,t).has(t)},at.prototype.set=function(t,e){return vt(this,t).set(t,e),this},st.prototype.clear=function(){this.__data__=new ot},st.prototype.delete=function(t){return this.__data__.delete(t)},st.prototype.get=function(t){return this.__data__.get(t)},st.prototype.has=function(t){return this.__data__.has(t)},st.prototype.set=function(t,e){var r=this.__data__;if(r instanceof ot){var n=r.__data__;if(!Y||n.length<199)return n.push([t,e]),this;r=this.__data__=new at(n)}return r.set(t,e),this};var mt=X?x(X,Object):function(){return[]},_t=function(t){return D.call(t)};function bt(t,e){return!!(e=null==e?9007199254740991:e)&&("number"==typeof t||h.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}(t.length)&&!At(t)}var St=H||function(){return!1};function At(t){var e=Ot(t)?D.call(t):"";return e==i||e==o}function Ot(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function It(t){return Tt(t)?ut(t):function(t){if(!gt(t))return z(t);var e=[];for(var r in Object(t))C.call(t,r)&&"constructor"!=r&&e.push(r);return e}(t)}r.exports=function(t){return ft(t,!0,!0)}}).call(this,r("pCvA"),r("RoC8")(t))},hmUS:function(t,e,r){t.exports=r("g+31")},"hnK/":function(t,e,r){e.pbkdf2=r("hVbd"),e.pbkdf2Sync=r("SUNt")},hwY2:function(t,e,r){"use strict";var n=r("HpGB"),i=r("DDMh"),o=r("Eg+Y"),a=n.rotl32,s=n.sum32,u=n.sum32_5,c=o.ft_1,h=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function l(){if(!(this instanceof l))return new l;h.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(l,h),t.exports=l,l.blockSize=512,l.outSize=160,l.hmacStrength=80,l.padLength=64,l.prototype._update=function(t,e){for(var r=this.W,n=0;n<16;n++)r[n]=t[e+n];for(;n>>2}function h(t,e,r,n){return 0===t?e&r|~e&n:2===t?e&r|e&n|r&n:e^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,f=0;f<16;++f)r[f]=t.readInt32BE(4*f);for(;f<80;++f)r[f]=r[f-3]^r[f-8]^r[f-14]^r[f-16];for(var l=0;l<80;++l){var d=~~(l/20),p=0|((e=n)<<5|e>>>27)+h(d,i,o,s)+u+r[l]+a[d];u=s,s=o,o=c(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},jGT8:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.deriveSecret=e.verify=e.sign=e.generateKey=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=i(r("EO1s")),u=n(r("B3sb")),c=r("Rvex"),h=i(r("SDgz")),f=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,u,h,f,l;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n=r.ECDH(s.default.namedCurves[e].nodeName)).generateKeys(),i=new Uint8Array(n.getPublicKey()),a=new Uint8Array(n.getPrivateKey()),!(u=new c.Key("oct",i,{namedCurve:e})).isPrivate){t.next=7;break}throw new Error("NotPublicKeyForECCKeyGenNode");case 7:return t.next=9,u.export("jwk",{outputPublic:!0});case 9:if(h=t.sent,(f=new c.Key("oct",a,{namedCurve:e})).isPrivate){t.next=13;break}throw new Error("NotPrivateKeyForECCKeyGenNode");case 13:return t.next=15,f.export("jwk");case 15:return l=t.sent,t.abrupt("return",{publicKey:h,privateKey:l});case 17:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.generateKey=f;var l=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i,a){var h,f,l,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((h=new c.Key("jwk",r)).isPrivate){t.next=3;break}throw new Error("NotPrivateKeyForECCSignNode");case 3:return t.next=5,h.export("pem");case 5:return f=t.sent,(l=a.createSign(s.default.hashes[n].nodeName)).update(e),d=l.sign(f),t.abrupt("return","raw"===i?u.decodeAsn1Signature(d,r.crv):d);case 10:case"end":return t.stop()}}),t)})));return function(e,r,n,i,o){return t.apply(this,arguments)}}();e.sign=l;var d=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i,a,h){var f,l,d,p;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((f=new c.Key("jwk",n)).isPrivate){t.next=3;break}throw new Error("NotPrivateKeyForECCVerifyNode");case 3:return t.next=5,f.export("pem",{outputPublic:!0,compact:!1});case 5:return l=t.sent,(d=h.createVerify(s.default.hashes[i].nodeName)).update(e),p="raw"===a?u.encodeAsn1Signature(r,n.crv):r,t.abrupt("return",d.verify(l,p));case 10:case"end":return t.stop()}}),t)})));return function(e,r,n,i,o,a){return t.apply(this,arguments)}}();e.verify=d;e.deriveSecret=function(t,e,r){var n=s.default.namedCurves[e.crv].nodeName,i=s.default.namedCurves[e.crv].payloadSize,o=r.createECDH(n),a=h.default.encoder.decodeBase64Url(e.d),u=new Uint8Array(2*i+1);return u[0]=4,u.set(h.default.encoder.decodeBase64Url(t.x),1),u.set(h.default.encoder.decodeBase64Url(t.y),i+1),o.setPrivateKey(a),new Uint8Array(o.computeSecret(u))}},jnim:function(t,e,r){"use strict";var n=r("+Gs+");e.certificate=r("SPmb");var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=c;var h=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=h,e.DSAparam=n.define("DSAparam",(function(){this.int()}));var f=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(l),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=f;var l=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},"k/4n":function(t,e,r){"use strict";var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.getJwkThumbprint=void 0;var i=n(r("NthX")),o=n(r("fFdx")),a=n(r("SDgz")),s=n(r("cO3T")),u=n(r("qykS")).default.Buffer,c=function(){var t=(0,o.default)(i.default.mark((function t(e){var r,n,o,c,h,f=arguments;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=f.length>1&&void 0!==f[1]?f[1]:"SHA-256",n=f.length>2&&void 0!==f[2]?f[2]:"binary",!(["hex","binary"].indexOf(n)<0)){t.next=4;break}throw new Error("UnsupportedOutputFormat");case 4:if("EC"!==e.kty){t.next=8;break}o=JSON.stringify({crv:e.crv,kty:e.kty,x:e.x,y:e.y}),t.next=13;break;case 8:if("RSA"!==e.kty){t.next=12;break}o=JSON.stringify({e:e.e,kty:e.kty,n:e.n}),t.next=13;break;case 12:throw new Error("UnsupportedKeyType");case 13:return c=new Uint8Array(u.from(o,"utf8")),t.next=16,s.default.compute(c,r);case 16:if(h=t.sent,"hex"!==n){t.next=21;break}return t.abrupt("return",a.default.encoder.arrayBufferToHexString(h));case 21:if("base64"!==n){t.next=25;break}return t.abrupt("return",a.default.encoder.encodeBase64(h));case 25:if("binary"!==n){t.next=27;break}return t.abrupt("return",h);case 27:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.getJwkThumbprint=c},kAr8:function(t,e,r){"use strict";var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.toJwk=e.fromJwk=void 0;var i=n(r("omOp")),o=n(r("SDgz")),a=n(r("6MVH")),s=r("srdS"),u=a.default.ec;e.fromJwk=function(t,e){var r=e.outputPublic,n=e.outputFormat,i=void 0===n?"binary":n,a=e.compact,u=void 0!==a&&a,c=(0,s.getJwkType)(t),h="boolean"==typeof r&&r?"public":c;if("public"===h){var f,l=o.default.encoder.decodeBase64Url(t.x),d=o.default.encoder.decodeBase64Url(t.y);return u?((f=new Uint8Array(l.length+1))[0]=255&2+(1&d.slice(-1)[0]),f.set(l,1)):((f=new Uint8Array(l.length+d.length+1))[0]=4,f.set(l,1),f.set(d,l.length+1)),"string"===i?o.default.encoder.arrayBufferToHexString(f):f}if("private"===h){if(!t.d)throw new Error("InvalidKey");var p=o.default.encoder.decodeBase64Url(t.d);return"string"===i?o.default.encoder.arrayBufferToHexString(p):p}};e.toJwk=function(t,e,r){var n=r.outputPublic;if(Object.keys(i.default.namedCurves).indexOf(e)<0)throw new Error("UnsupportedCurve");var a=(0,s.getSec1KeyType)(t,e),c="boolean"==typeof n&&n?"public":a,h="string"==typeof t?o.default.encoder.hexStringToArrayBuffer(t):t,f=i.default.namedCurves[e].indutnyName,l=new u(f),d="public"===a?l.keyFromPublic(h):l.keyFromPrivate(h),p=new Uint8Array(d.getPublic("array")),v=i.default.namedCurves[e].payloadSize,y=p.slice(1,v+1),m=p.slice(v+1,2*v+1),_={kty:"EC",crv:e,x:o.default.encoder.encodeBase64Url(y),y:o.default.encoder.encodeBase64Url(m)};return"private"===c&&(_.d=o.default.encoder.encodeBase64Url(h)),_}},kah5:function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},kmpK:function(t,e,r){e.publicEncrypt=r("3MSx"),e.privateDecrypt=r("B5O8"),e.privateEncrypt=function(t,r){return e.publicEncrypt(t,r,!0)},e.publicDecrypt=function(t,r){return e.privateDecrypt(t,r,!0)}},lOrp:function(t,e,r){"use strict";(function(t){var r=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function n(t,e){Object.keys(t).forEach((function(r){return e(t[r],r)}))}function i(t){return null!==t&&"object"==typeof t}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=("function"==typeof r?r():r)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.hasChild=function(t){return t in this._children},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){n(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&n(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&n(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&n(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,a);var s=function(t){this.register([],t,!1)};s.prototype.get=function(t){return t.reduce((function(t,e){return t.getChild(e)}),this.root)},s.prototype.getNamespace=function(t){var e=this.root;return t.reduce((function(t,r){return t+((e=e.getChild(r)).namespaced?r+"/":"")}),"")},s.prototype.update=function(t){!function t(e,r,n){0;if(r.update(n),n.modules)for(var i in n.modules){if(!r.getChild(i))return void 0;t(e.concat(i),r.getChild(i),n.modules[i])}}([],this.root,t)},s.prototype.register=function(t,e,r){var i=this;void 0===r&&(r=!0);var a=new o(e,r);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&n(e.modules,(function(e,n){i.register(t.concat(n),e,r)}))},s.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];e.getChild(r).runtime&&e.removeChild(r)},s.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),r=t[t.length-1];return e.hasChild(r)};var u;var c=function(t){var e=this;void 0===t&&(t={}),!u&&"undefined"!=typeof window&&window.Vue&&m(window.Vue);var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,c=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,r){return c.call(o,t,e,r)},this.strict=i;var h=this._modules.root.state;p(this,h,[],this._modules.root),d(this,h),n.forEach((function(t){return t(e)})),(void 0!==t.devtools?t.devtools:u.config.devtools)&&function(t){r&&(t._devtoolHook=r,r.emit("vuex:init",t),r.on("vuex:travel-to-state",(function(e){t.replaceState(e)})),t.subscribe((function(t,e){r.emit("vuex:mutation",t,e)}),{prepend:!0}),t.subscribeAction((function(t,e){r.emit("vuex:action",t,e)}),{prepend:!0}))}(this)},h={state:{configurable:!0}};function f(t,e,r){return e.indexOf(t)<0&&(r&&r.prepend?e.unshift(t):e.push(t)),function(){var r=e.indexOf(t);r>-1&&e.splice(r,1)}}function l(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var r=t.state;p(t,r,[],t._modules.root,!0),d(t,r,e)}function d(t,e,r){var i=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o=t._wrappedGetters,a={};n(o,(function(e,r){a[r]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,r,{get:function(){return t._vm[r]},enumerable:!0})}));var s=u.config.silent;u.config.silent=!0,t._vm=new u({data:{$$state:e},computed:a}),u.config.silent=s,t.strict&&function(t){t._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(t),i&&(r&&t._withCommit((function(){i._data.$$state=null})),u.nextTick((function(){return i.$destroy()})))}function p(t,e,r,n,i){var o=!r.length,a=t._modules.getNamespace(r);if(n.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=n),!o&&!i){var s=v(e,r.slice(0,-1)),c=r[r.length-1];t._withCommit((function(){u.set(s,c,n.state)}))}var h=n.context=function(t,e,r){var n=""===e,i={dispatch:n?t.dispatch:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,u=o.type;return s&&s.root||(u=e+u),t.dispatch(u,a)},commit:n?t.commit:function(r,n,i){var o=y(r,n,i),a=o.payload,s=o.options,u=o.type;s&&s.root||(u=e+u),t.commit(u,a,s)}};return Object.defineProperties(i,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var r={},n=e.length;Object.keys(t.getters).forEach((function(i){if(i.slice(0,n)===e){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return t.getters[i]},enumerable:!0})}})),t._makeLocalGettersCache[e]=r}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return v(t.state,r)}}}),i}(t,a,r);n.forEachMutation((function(e,r){!function(t,e,r,n){(t._mutations[e]||(t._mutations[e]=[])).push((function(e){r.call(t,n.state,e)}))}(t,a+r,e,h)})),n.forEachAction((function(e,r){var n=e.root?r:a+r,i=e.handler||e;!function(t,e,r,n){(t._actions[e]||(t._actions[e]=[])).push((function(e){var i,o=r.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(i=o)&&"function"==typeof i.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch((function(e){throw t._devtoolHook.emit("vuex:error",e),e})):o}))}(t,n,i,h)})),n.forEachGetter((function(e,r){!function(t,e,r,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return r(n.state,n.getters,t.state,t.getters)}}(t,a+r,e,h)})),n.forEachChild((function(n,o){p(t,e,r.concat(o),n,i)}))}function v(t,e){return e.reduce((function(t,e){return t[e]}),t)}function y(t,e,r){return i(t)&&t.type&&(r=e,e=t,t=t.type),{type:t,payload:e,options:r}}function m(t){u&&t===u|| /*! * vuex v3.4.0 * (c) 2020 Evan You * @license MIT */ function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:r});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[r].concat(t.init):r,e.call(this,t)}}function r(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(u=t)}h.state.get=function(){return this._vm._data.$$state},h.state.set=function(t){0},c.prototype.commit=function(t,e,r){var n=this,i=y(t,e,r),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(t){t(a)}))})),this._subscribers.slice().forEach((function(t){return t(s,n.state)})))},c.prototype.dispatch=function(t,e){var r=this,n=y(t,e),i=n.type,o=n.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(t){return t.before})).forEach((function(t){return t.before(a,r.state)}))}catch(t){0}var u=s.length>1?Promise.all(s.map((function(t){return t(o)}))):s[0](o);return new Promise((function(t,e){u.then((function(e){try{r._actionSubscribers.filter((function(t){return t.after})).forEach((function(t){return t.after(a,r.state)}))}catch(t){0}t(e)}),(function(t){try{r._actionSubscribers.filter((function(t){return t.error})).forEach((function(e){return e.error(a,r.state,t)}))}catch(t){0}e(t)}))}))}},c.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},c.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},c.prototype.watch=function(t,e,r){var n=this;return this._watcherVM.$watch((function(){return t(n.state,n.getters)}),e,r)},c.prototype.replaceState=function(t){var e=this;this._withCommit((function(){e._vm._data.$$state=t}))},c.prototype.registerModule=function(t,e,r){void 0===r&&(r={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),r.preserveState),d(this,this.state)},c.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit((function(){var r=v(e.state,t.slice(0,-1));u.delete(r,t[t.length-1])})),l(this)},c.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},c.prototype.hotUpdate=function(t){this._modules.update(t),l(this,!0)},c.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(c.prototype,h);var _=x((function(t,e){var r={};return E(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){var e=this.$store.state,r=this.$store.getters;if(t){var n=T(this.$store,"mapState",t);if(!n)return;e=n.context.state,r=n.context.getters}return"function"==typeof i?i.call(this,e,r):e[i]},r[n].vuex=!0})),r})),b=x((function(t,e){var r={};return E(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r})),g=x((function(t,e){var r={};return E(e).forEach((function(e){var n=e.key,i=e.val;i=t+i,r[n]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[i]},r[n].vuex=!0})),r})),w=x((function(t,e){var r={};return E(e).forEach((function(e){var n=e.key,i=e.val;r[n]=function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];var n=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(e)):n.apply(this.$store,[i].concat(e))}})),r}));function E(t){return function(t){return Array.isArray(t)||i(t)}(t)?Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}})):[]}function x(t){return function(e,r){return"string"!=typeof e?(r=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,r)}}function T(t,e,r){return t._modulesNamespaceMap[r]}var S={Store:c,install:m,version:"3.4.0",mapState:_,mapMutations:b,mapGetters:g,mapActions:w,createNamespacedHelpers:function(t){return{mapState:_.bind(null,t),mapGetters:g.bind(null,t),mapMutations:b.bind(null,t),mapActions:w.bind(null,t)}}};e.a=S}).call(this,r("pCvA"))},ldBe:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={hashes:{"SHA3-512":{nodeName:"sha3-512",hashSize:64},"SHA3-384":{nodeName:"sha3-384",hashSize:48},"SHA3-256":{nodeName:"sha3-256",hashSize:32},"SHA3-224":{nodeName:"sha3-224",hashSize:28},"SHA-256":{nodeName:"sha256",hashSize:32},"SHA-384":{nodeName:"sha384",hashSize:48},"SHA-512":{nodeName:"sha512",hashSize:64},"SHA-1":{nodeName:"sha1",hashSize:20},MD5:{nodeName:"md5",hashSize:16}}}},lphy:function(t,e,r){(function(t,n){var i;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof n&&n;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,c=/^xn--/,h=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,l={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,p=String.fromCharCode;function v(t){throw new RangeError(l[t])}function y(t,e){for(var r=t.length,n=[];r--;)n[r]=e(t[r]);return n}function m(t,e){var r=t.split("@"),n="";return r.length>1&&(n=r[0]+"@",t=r[1]),n+y((t=t.replace(f,".")).split("."),e).join(".")}function _(t){for(var e,r,n=[],i=0,o=t.length;i=55296&&e<=56319&&i65535&&(e+=p((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=p(t)})).join("")}function g(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function w(t,e,r){var n=0;for(t=r?d(t/700):t>>1,t+=d(t/e);t>455;n+=36)t=d(t/35);return d(n+36*t/(t+38))}function E(t){var e,r,n,i,o,a,s,c,h,f,l,p=[],y=t.length,m=0,_=128,g=72;for((r=t.lastIndexOf("-"))<0&&(r=0),n=0;n=128&&v("not-basic"),p.push(t.charCodeAt(n));for(i=r>0?r+1:0;i=y&&v("invalid-input"),((c=(l=t.charCodeAt(i++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||c>d((u-m)/a))&&v("overflow"),m+=c*a,!(c<(h=s<=g?1:s>=g+26?26:s-g));s+=36)a>d(u/(f=36-h))&&v("overflow"),a*=f;g=w(m-o,e=p.length+1,0==o),d(m/e)>u-_&&v("overflow"),_+=d(m/e),m%=e,p.splice(m++,0,_)}return b(p)}function x(t){var e,r,n,i,o,a,s,c,h,f,l,y,m,b,E,x=[];for(y=(t=_(t)).length,e=128,r=0,o=72,a=0;a=e&&ld((u-r)/(m=n+1))&&v("overflow"),r+=(s-e)*m,e=s,a=0;au&&v("overflow"),l==e){for(c=r,h=36;!(c<(f=h<=o?1:h>=o+26?26:h-o));h+=36)E=c-f,b=36-f,x.push(p(g(f+E%b,0))),c=d(E/b);x.push(p(g(c,0))),o=w(r,m,n==i),r=0,++n}++r,++e}return x.join("")}s={version:"1.4.1",ucs2:{decode:_,encode:b},decode:E,encode:x,toASCII:function(t){return m(t,(function(t){return h.test(t)?"xn--"+x(t):t}))},toUnicode:function(t){return m(t,(function(t){return c.test(t)?E(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,r,e,t))||(t.exports=i)}()}).call(this,r("RoC8")(t),r("pCvA"))},m036:function(t,e,r){(function(t){var n=r("smmp");function i(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,r){for(;e._cache.length0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),self.ArrayBuffer||(self.ArrayBuffer=Array),self.Float32Array||(self.Float32Array=Array),self.Uint32Array||(self.Uint32Array=Array),self.Uint16Array||(self.Uint16Array=Array),self.Uint8Array||(self.Uint8Array=Array),self.Int32Array||(self.Int32Array=Array);var f=/iPhone/i,l=/iPod/i,d=/iPad/i,p=/\biOS-universal(?:.+)Mac\b/i,v=/\bAndroid(?:.+)Mobile\b/i,y=/Android/i,m=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,_=/Silk/i,b=/Windows Phone/i,g=/\bWindows(?:.+)ARM\b/i,w=/BlackBerry/i,E=/BB10/i,x=/Opera Mini/i,T=/\b(CriOS|Chrome)(?:.+)Mobile/i,S=/Mobile(?:.+)Firefox\b/i,A=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream}; /*! * @pixi/settings - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/settings is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ var O,I,R,M,P,C,D,N,k,L,B,U,F,j,G,X,H,z,V,Y=function(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"==typeof navigator?"string"==typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var r=e.userAgent,n=r.split("[FBAN");void 0!==n[1]&&(r=n[0]),void 0!==(n=r.split("Twitter"))[1]&&(r=n[0]);var i=function(t){return function(e){return e.test(t)}}(r),o={apple:{phone:i(f)&&!i(b),ipod:i(l),tablet:!i(f)&&(i(d)||A(e))&&!i(b),universal:i(p),device:(i(f)||i(l)||i(d)||i(p)||A(e))&&!i(b)},amazon:{phone:i(m),tablet:!i(m)&&i(_),device:i(m)||i(_)},android:{phone:!i(b)&&i(m)||!i(b)&&i(v),tablet:!i(b)&&!i(m)&&!i(v)&&(i(_)||i(y)),device:!i(b)&&(i(m)||i(_)||i(v)||i(y))||i(/\bokhttp\b/i)},windows:{phone:i(b),tablet:i(g),device:i(b)||i(g)},other:{blackberry:i(w),blackberry10:i(E),opera:i(x),firefox:i(S),chrome:i(T),device:i(w)||i(E)||i(x)||i(S)||i(T)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}(self.navigator);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(O||(O={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(I||(I={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(R||(R={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(M||(M={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(P||(P={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(C||(C={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(D||(D={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(N||(N={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(k||(k={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(L||(L={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(B||(B={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(U||(U={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA"}(F||(F={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(j||(j={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(G||(G={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(X||(X={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(H||(H={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(z||(z={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(V||(V={}));var W,q,K,$,J,Z,Q,tt,et,rt,nt,it,ot,at,st,ut,ct,ht,ft,lt={MIPMAP_TEXTURES:U.POW2,ANISOTROPIC_LEVEL:0,RESOLUTION:1,FILTER_RESOLUTION:1,FILTER_MULTISAMPLE:z.NONE,SPRITE_MAX_TEXTURES:function(t){var e=!0;if(Y.tablet||Y.phone){var r;if(Y.apple.device)if(r=navigator.userAgent.match(/OS (\d+)_(\d+)?/))parseInt(r[1],10)<11&&(e=!1);if(Y.android.device)if(r=navigator.userAgent.match(/Android\s([0-9.]*)/))parseInt(r[1],10)<7&&(e=!1)}return e?t:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,autoDensity:!1,backgroundColor:0,backgroundAlpha:1,useContextAlpha:!0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:G.AUTO,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:B.CLAMP,SCALE_MODE:L.LINEAR,PRECISION_VERTEX:X.HIGH,PRECISION_FRAGMENT:Y.apple.device?X.HIGH:X.MEDIUM,CAN_UPLOAD_SAME_BUFFER:!Y.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},dt=r("/ieh"),pt=r.n(dt),vt=r("6aAO"),yt=r.n(vt),mt=r("3lCv");!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(W||(W={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(q||(q={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(K||(K={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}($||($={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(J||(J={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(Z||(Z={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(Q||(Q={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(tt||(tt={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(et||(et={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(rt||(rt={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(nt||(nt={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(it||(it={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA"}(ot||(ot={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(at||(at={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(st||(st={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(ut||(ut={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(ct||(ct={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(ht||(ht={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(ft||(ft={})); /*! * @pixi/utils - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/utils is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ var _t={parse:mt.parse,format:mt.format,resolve:mt.resolve};lt.RETINA_PREFIX=/@([0-9\.]+)x/,lt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var bt,gt=!1;var wt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Et(t,e){return void 0===e&&(e=[]),e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function xt(t){var e=t.toString(16);return"#"+(e="000000".substr(0,6-e.length)+e)}function Tt(t){return"string"==typeof t&&"#"===(t=wt[t.toLowerCase()]||t)[0]&&(t=t.substr(1)),parseInt(t,16)}var St=function(){for(var t=[],e=[],r=0;r<32;r++)t[r]=r,e[r]=r;t[$.NORMAL_NPM]=$.NORMAL,t[$.ADD_NPM]=$.ADD,t[$.SCREEN_NPM]=$.SCREEN,e[$.NORMAL]=$.NORMAL_NPM,e[$.ADD]=$.ADD_NPM,e[$.SCREEN]=$.SCREEN_NPM;var n=[];return n.push(e),n.push(t),n}();function At(t,e){return St[e?1:0][t]}function Ot(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var r=t>>16&255,n=t>>8&255,i=255&t;return(255*e<<24)+((r=r*e+.5|0)<<16)+((n=n*e+.5|0)<<8)+(i=i*e+.5|0)}function It(t,e,r,n){return(r=r||new Float32Array(4))[0]=(t>>16&255)/255,r[1]=(t>>8&255)/255,r[2]=(255&t)/255,(n||void 0===n)&&(r[0]*=e,r[1]*=e,r[2]*=e),r[3]=e,r}function Rt(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}Float32Array,Uint32Array,Int32Array,Uint8Array;function Mt(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function Pt(t){return!(t&t-1||!t)}function Ct(t){var e=(t>65535?1:0)<<4,r=((t>>>=e)>255?1:0)<<3;return e|=r,e|=r=((t>>>=r)>15?1:0)<<2,(e|=r=((t>>>=r)>3?1:0)<<1)|(t>>>=r)>>1}function Dt(t,e,r){var n,i=t.length;if(!(e>=i||0===r)){var o=i-(r=e+r>i?i-e:r);for(n=e;n=this.x&&t=this.y&&ee!=c>e&&t<(e-s)/(c-s)*(u-a)+a&&(r=!r)}return r},t.prototype.toString=function(){return"[@pixi/math:PolygoncloseStroke="+this.closeStroke+"points="+this.points.reduce((function(t,e){return t+", "+e}),"")+"]"},t}(),Qt=function(){function t(t,e,r,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=0),void 0===i&&(i=20),this.x=t,this.y=e,this.width=r,this.height=n,this.radius=i,this.type=Vt.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){if(e>=this.y+this.radius&&e<=this.y+this.height-this.radius||t>=this.x+this.radius&&t<=this.x+this.width-this.radius)return!0;var r=t-(this.x+this.radius),n=e-(this.y+this.radius),i=this.radius*this.radius;if(r*r+n*n<=i)return!0;if((r=t-(this.x+this.width-this.radius))*r+n*n<=i)return!0;if(r*r+(n=e-(this.y+this.height-this.radius))*n<=i)return!0;if((r=t-(this.x+this.radius))*r+n*n<=i)return!0}return!1},t.prototype.toString=function(){return"[@pixi/math:RoundedRectangle x="+this.x+" y="+this.y+"width="+this.width+" height="+this.height+" radius="+this.radius+"]"},t}(),te=function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(t){return this.set(t.x,t.y),this},t.prototype.copyTo=function(t){return t.set(this.x,this.y),t},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this},t.prototype.toString=function(){return"[@pixi/math:Point x="+this.x+" y="+this.y+"]"},t}(),ee=function(){function t(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0),this._x=r,this._y=n,this.cb=t,this.scope=e}return t.prototype.clone=function(e,r){return void 0===e&&(e=this.cb),void 0===r&&(r=this.scope),new t(e,r,this._x,this._y)},t.prototype.set=function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._x===t&&this._y===e||(this._x=t,this._y=e,this.cb.call(this.scope)),this},t.prototype.copyFrom=function(t){return this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this},t.prototype.copyTo=function(t){return t.set(this._x,this._y),t},t.prototype.equals=function(t){return t.x===this._x&&t.y===this._y},t.prototype.toString=function(){return"[@pixi/math:ObservablePoint x=0 y=0 scope="+this.scope+"]"},Object.defineProperty(t.prototype,"x",{get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))},enumerable:!1,configurable:!0}),t}(),re=function(){function t(t,e,r,n,i,o){void 0===t&&(t=1),void 0===e&&(e=0),void 0===r&&(r=0),void 0===n&&(n=1),void 0===i&&(i=0),void 0===o&&(o=0),this.array=null,this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o}return t.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},t.prototype.set=function(t,e,r,n,i,o){return this.a=t,this.b=e,this.c=r,this.d=n,this.tx=i,this.ty=o,this},t.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));var r=e||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},t.prototype.apply=function(t,e){e=e||new te;var r=t.x,n=t.y;return e.x=this.a*r+this.c*n+this.tx,e.y=this.b*r+this.d*n+this.ty,e},t.prototype.applyInverse=function(t,e){e=e||new te;var r=1/(this.a*this.d+this.c*-this.b),n=t.x,i=t.y;return e.x=this.d*r*n+-this.c*r*i+(this.ty*this.c-this.tx*this.d)*r,e.y=this.a*r*i+-this.b*r*n+(-this.ty*this.a+this.tx*this.b)*r,e},t.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},t.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},t.prototype.rotate=function(t){var e=Math.cos(t),r=Math.sin(t),n=this.a,i=this.c,o=this.tx;return this.a=n*e-this.b*r,this.b=n*r+this.b*e,this.c=i*e-this.d*r,this.d=i*r+this.d*e,this.tx=o*e-this.ty*r,this.ty=o*r+this.ty*e,this},t.prototype.append=function(t){var e=this.a,r=this.b,n=this.c,i=this.d;return this.a=t.a*e+t.b*n,this.b=t.a*r+t.b*i,this.c=t.c*e+t.d*n,this.d=t.c*r+t.d*i,this.tx=t.tx*e+t.ty*n+this.tx,this.ty=t.tx*r+t.ty*i+this.ty,this},t.prototype.setTransform=function(t,e,r,n,i,o,a,s,u){return this.a=Math.cos(a+u)*i,this.b=Math.sin(a+u)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=t-(r*this.a+n*this.c),this.ty=e-(r*this.b+n*this.d),this},t.prototype.prepend=function(t){var e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var r=this.a,n=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this},t.prototype.decompose=function(t){var e=this.a,r=this.b,n=this.c,i=this.d,o=t.pivot,a=-Math.atan2(-n,i),s=Math.atan2(r,e),u=Math.abs(a+s);return u<1e-5||Math.abs(Yt-u)<1e-5?(t.rotation=s,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=s),t.scale.x=Math.sqrt(e*e+r*r),t.scale.y=Math.sqrt(n*n+i*i),t.position.x=this.tx+(o.x*e+o.y*n),t.position.y=this.ty+(o.x*r+o.y*i),t},t.prototype.invert=function(){var t=this.a,e=this.b,r=this.c,n=this.d,i=this.tx,o=t*n-e*r;return this.a=n/o,this.b=-e/o,this.c=-r/o,this.d=t/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(t*this.ty-e*i)/o,this},t.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},t.prototype.clone=function(){var e=new t;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},t.prototype.copyTo=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t.prototype.copyFrom=function(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this},t.prototype.toString=function(){return"[@pixi/math:Matrix a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+"]"},Object.defineProperty(t,"IDENTITY",{get:function(){return new t},enumerable:!1,configurable:!0}),Object.defineProperty(t,"TEMP_MATRIX",{get:function(){return new t},enumerable:!1,configurable:!0}),t}(),ne=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ie=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],oe=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ae=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],se=[],ue=[],ce=Math.sign;!function(){for(var t=0;t<16;t++){var e=[];se.push(e);for(var r=0;r<16;r++)for(var n=ce(ne[t]*ne[r]+oe[t]*ie[r]),i=ce(ie[t]*ne[r]+ae[t]*ie[r]),o=ce(ne[t]*oe[r]+oe[t]*ae[r]),a=ce(ie[t]*oe[r]+ae[t]*ae[r]),s=0;s<16;s++)if(ne[s]===n&&ie[s]===i&&oe[s]===o&&ae[s]===a){e.push(s);break}}for(t=0;t<16;t++){var u=new re;u.set(ne[t],ie[t],oe[t],ae[t],0,0),ue.push(u)}}();var he={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:function(t){return ne[t]},uY:function(t){return ie[t]},vX:function(t){return oe[t]},vY:function(t){return ae[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return se[t][e]},sub:function(t,e){return se[t][he.inv(e)]},rotate180:function(t){return 4^t},isVertical:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?e>=0?he.S:he.N:2*Math.abs(e)<=Math.abs(t)?t>0?he.E:he.W:e>0?t>0?he.SE:he.SW:t>0?he.NE:he.NW},matrixAppendRotationInv:function(t,e,r,n){void 0===r&&(r=0),void 0===n&&(n=0);var i=ue[he.inv(e)];i.tx=r,i.ty=n,t.append(i)}},fe=function(){function t(){this.worldTransform=new re,this.localTransform=new re,this.position=new ee(this.onChange,this,0,0),this.scale=new ee(this.onChange,this,1,1),this.pivot=new ee(this.onChange,this,0,0),this.skew=new ee(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.toString=function(){return"[@pixi/math:Transform position=("+this.position.x+", "+this.position.y+") rotation="+this.rotation+" scale=("+this.scale.x+", "+this.scale.y+") skew=("+this.skew.x+", "+this.skew.y+") ]"},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var r=t.worldTransform,n=this.worldTransform;n.a=e.a*r.a+e.b*r.c,n.b=e.a*r.b+e.b*r.d,n.c=e.c*r.a+e.d*r.c,n.d=e.c*r.b+e.d*r.d,n.tx=e.tx*r.a+e.ty*r.c+r.tx,n.ty=e.tx*r.b+e.ty*r.d+r.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!1,configurable:!0}),t.IDENTITY=new t,t}(); /*! * @pixi/display - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/display is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ lt.SORTABLE_CHILDREN=!1;var le=function(){function t(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}return t.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},t.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},t.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?Kt.EMPTY:((t=t||new Kt(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},t.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},t.prototype.addPointMatrix=function(t,e){var r=t.a,n=t.b,i=t.c,o=t.d,a=t.tx,s=t.ty,u=r*e.x+i*e.y+a,c=n*e.x+o*e.y+s;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,c),this.maxY=Math.max(this.maxY,c)},t.prototype.addQuad=function(t){var e=this.minX,r=this.minY,n=this.maxX,i=this.maxY,o=t[0],a=t[1];e=on?o:n,i=a>i?a:i,e=(o=t[2])n?o:n,i=a>i?a:i,e=(o=t[4])n?o:n,i=a>i?a:i,e=(o=t[6])n?o:n,i=a>i?a:i,this.minX=e,this.minY=r,this.maxX=n,this.maxY=i},t.prototype.addFrame=function(t,e,r,n,i){this.addFrameMatrix(t.worldTransform,e,r,n,i)},t.prototype.addFrameMatrix=function(t,e,r,n,i){var o=t.a,a=t.b,s=t.c,u=t.d,c=t.tx,h=t.ty,f=this.minX,l=this.minY,d=this.maxX,p=this.maxY,v=o*e+s*r+c,y=a*e+u*r+h;f=vd?v:d,p=y>p?y:p,f=(v=o*n+s*r+c)d?v:d,p=y>p?y:p,f=(v=o*e+s*i+c)d?v:d,p=y>p?y:p,f=(v=o*n+s*i+c)d?v:d,p=y>p?y:p,this.minX=f,this.minY=l,this.maxX=d,this.maxY=p},t.prototype.addVertexData=function(t,e,r){for(var n=this.minX,i=this.minY,o=this.maxX,a=this.maxY,s=e;so?u:o,a=c>a?c:a}this.minX=n,this.minY=i,this.maxX=o,this.maxY=a},t.prototype.addVertices=function(t,e,r,n){this.addVerticesMatrix(t.worldTransform,e,r,n)},t.prototype.addVerticesMatrix=function(t,e,r,n,i,o){void 0===i&&(i=0),void 0===o&&(o=i);for(var a=t.a,s=t.b,u=t.c,c=t.d,h=t.tx,f=t.ty,l=this.minX,d=this.minY,p=this.maxX,v=this.maxY,y=r;yn?t.maxX:n,this.maxY=t.maxY>i?t.maxY:i},t.prototype.addBoundsMask=function(t,e){var r=t.minX>e.minX?t.minX:e.minX,n=t.minY>e.minY?t.minY:e.minY,i=t.maxXu?i:u,this.maxY=o>c?o:c}},t.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},t.prototype.addBoundsArea=function(t,e){var r=t.minX>e.x?t.minX:e.x,n=t.minY>e.y?t.minY:e.y,i=t.maxXu?i:u,this.maxY=o>c?o:c}},t.prototype.pad=function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},t.prototype.addFramePad=function(t,e,r,n,i,o){t-=i,e-=o,r+=i,n+=o,this.minX=this.minXr?this.maxX:r,this.minY=this.minYn?this.maxY:n},t}(),de=function(t,e){return(de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)}; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */function pe(t,e){function r(){this.constructor=t}de(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ve=function(t){function e(){var e=t.call(this)||this;return e.tempDisplayObjectParent=null,e.transform=new fe,e.alpha=1,e.visible=!0,e.renderable=!0,e.parent=null,e.worldAlpha=1,e._lastSortedIndex=0,e._zIndex=0,e.filterArea=null,e.filters=null,e._enabledFilters=null,e._bounds=new le,e._localBounds=null,e._boundsID=0,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._destroyed=!1,e.isSprite=!1,e.isMask=!1,e}return pe(e,t),e.mixin=function(t){for(var r=Object.keys(t),n=0;n1)for(var n=0;nthis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var r=this.getChildIndex(t),n=this.getChildIndex(e);this.children[r]=e,this.children[n]=t,this.onChildrenChange(r=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(t);Dt(this.children,r,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(){for(var t=arguments,e=[],r=0;r1)for(var n=0;n0&&i<=e){r=this.children.splice(n,i);for(var o=0;o1&&this.children.sort(me),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t title : "+t.title+"
tabIndex: "+t.tabIndex},t.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);var e=this.renderer,r=e.width,n=e.height;t.x+t.width>r&&(t.width=r-t.x),t.y+t.height>n&&(t.height=n-t.y)},t.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2..toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},t.prototype._onClick=function(t){var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"click",n),e.dispatchEvent(r,"pointertap",n),e.dispatchEvent(r,"tap",n)},t.prototype._onFocus=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseover",n)},t.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction,r=t.target.displayObject,n=e.eventData;e.dispatchEvent(r,"mouseout",n)},t.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},t.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},t.prototype.destroy=function(){this.destroyTouchHook(),this.div=null,self.document.removeEventListener("mousemove",this._onMouseMove,!0),self.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},t}(); /*! * @pixi/ticker - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/ticker is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ lt.TARGET_FPMS=.06,function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"}(be||(be={}));var we=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=0),void 0===n&&(n=!1),this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=r,this.once=n}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),Ee=function(){function t(){var t=this;this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new we(null,null,1/0),this.deltaMS=1/lt.TARGET_FPMS,this.elapsedMS=1/lt.TARGET_FPMS,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,r){return void 0===r&&(r=be.NORMAL),this._addListener(new we(t,e,r))},t.prototype.addOnce=function(t,e,r){return void 0===r&&(r=be.NORMAL),this._addListener(new we(t,e,r,!0))},t.prototype._addListener=function(t){var e=this._head.next,r=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(r);break}r=e,e=e.next}t.previous||t.connect(r)}else t.connect(r);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var r=this._head.next;r;)r=r.match(t,e)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!1,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var r=t-this._lastFrame|0;if(r=0;h--){var f=c[h],l=this.recursiveFindHit(t,f,r,n,s);if(l){if(!f.parent)continue;s=!1,l&&(t.target&&(n=!1),a=!0)}}return i&&(n&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(o)&&(a=!0),e.interactive&&(a&&!t.target&&(t.target=e),r&&r(t,e,!!a))),a},t.prototype.findHit=function(t,e,r,n){this.recursiveFindHit(t,e,r,n,!1)},t}(),Re={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};ve.mixin(Re);var Me={target:null,data:{global:null}},Pe=function(t){function e(e,r){var n=t.call(this)||this;return r=r||{},n.renderer=e,n.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,n.interactionFrequency=r.interactionFrequency||10,n.mouse=new Te,n.mouse.identifier=1,n.mouse.global.set(-999999),n.activeInteractionData={},n.activeInteractionData[1]=n.mouse,n.interactionDataPool=[],n.eventData=new Ae,n.interactionDOMElement=null,n.moveWhenInside=!1,n.eventsAdded=!1,n.tickerAdded=!1,n.mouseOverRenderer=!("PointerEvent"in self),n.supportsTouchEvents="ontouchstart"in self,n.supportsPointerEvents=!!self.PointerEvent,n.onPointerUp=n.onPointerUp.bind(n),n.processPointerUp=n.processPointerUp.bind(n),n.onPointerCancel=n.onPointerCancel.bind(n),n.processPointerCancel=n.processPointerCancel.bind(n),n.onPointerDown=n.onPointerDown.bind(n),n.processPointerDown=n.processPointerDown.bind(n),n.onPointerMove=n.onPointerMove.bind(n),n.processPointerMove=n.processPointerMove.bind(n),n.onPointerOut=n.onPointerOut.bind(n),n.processPointerOverOut=n.processPointerOverOut.bind(n),n.onPointerOver=n.onPointerOver.bind(n),n.cursorStyles={default:"inherit",pointer:"pointer"},n.currentCursorMode=null,n.cursor=null,n.resolution=1,n.delayedEvents=[],n.search=new Ie,n._tempDisplayObject=new ye,n._eventListenerOptions={capture:!0,passive:!1},n._useSystemTicker=void 0===r.useSystemTicker||r.useSystemTicker,n.setTargetElement(n.renderer.view,n.renderer.resolution),n}return function(t,e){function r(){this.constructor=t}Se(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),Object.defineProperty(e.prototype,"useSystemTicker",{get:function(){return this._useSystemTicker},set:function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastObjectRendered",{get:function(){return this.renderer._lastObjectRendered||this._tempDisplayObject},enumerable:!1,configurable:!0}),e.prototype.hitTest=function(t,e){return Me.target=null,Me.data.global=t,e||(e=this.lastObjectRendered),this.processInteractive(Me,e,null,!0),Me.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(Ee.system.add(this.tickerUpdate,this,be.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(Ee.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){if(!this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;self.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.touchAction="none"),this.supportsPointerEvents?(self.document.addEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),self.addEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),self.addEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(self.document.addEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),self.addEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.eventsAdded=!0}},e.prototype.removeEvents=function(){if(this.eventsAdded&&this.interactionDOMElement){var t=this.interactionDOMElement.style;self.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.touchAction=""),this.supportsPointerEvents?(self.document.removeEventListener("pointermove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,this._eventListenerOptions),self.removeEventListener("pointercancel",this.onPointerCancel,this._eventListenerOptions),self.removeEventListener("pointerup",this.onPointerUp,this._eventListenerOptions)):(self.document.removeEventListener("mousemove",this.onPointerMove,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,this._eventListenerOptions),self.removeEventListener("mouseup",this.onPointerUp,this._eventListenerOptions)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,this._eventListenerOptions),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,this._eventListenerOptions)),this.interactionDOMElement=null,this.eventsAdded=!1}},e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTime8)throw new Error("max arguments reached");var u=this,c=u.name,h=u.items;this._aliasCount++;for(var f=0,l=h.length;f0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),t}();Object.defineProperties(Ce.prototype,{dispatch:{value:Ce.prototype.emit},run:{value:Ce.prototype.emit}}), /*! * @pixi/core - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/core is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ lt.PREFER_ENV=Y.any?W.WEBGL:W.WEBGL2,lt.STRICT_TEXTURE_CACHE=!1;var De=[];function Ne(t,e){if(!t)return null;var r="";if("string"==typeof t){var n=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);n&&(r=n[1].toLowerCase())}for(var i=De.length-1;i>=0;--i){var o=De[i];if(o.test&&o.test(t,r))return new o(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */var ke=function(t,e){return(ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function Le(t,e){function r(){this.constructor=t}ke(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var Be=function(){return(Be=Object.assign||function(t){for(var e,r=arguments,n=1,i=arguments.length;n0&&c>0,n.textureCacheIds=[],n.destroyed=!1,n.resource=null,n._batchEnabled=0,n._batchLocation=0,n.parentTextureArray=null,n.setResource(e),n}return Le(e,t),Object.defineProperty(e.prototype,"realWidth",{get:function(){return Math.round(this.width*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"realHeight",{get:function(){return Math.round(this.height*this.resolution)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mipmap",{get:function(){return this._mipmap},set:function(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleMode",{get:function(){return this._scaleMode},set:function(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wrapMode",{get:function(){return this._wrapMode},set:function(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)},enumerable:!1,configurable:!0}),e.prototype.setStyle=function(t,e){var r;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,r=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,r=!0),r&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,r){return r=r||this.resolution,this.setRealSize(t*r,e*r,r)},e.prototype.setRealSize=function(t,e,r){return this.resolution=r||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=Pt(this.realWidth)&&Pt(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete Gt[this.cacheId],delete jt[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.prototype.castToBaseTexture=function(){return this},e.from=function(t,r,n){void 0===n&&(n=lt.STRICT_TEXTURE_CACHE);var i="string"==typeof t,o=null;if(i)o=t;else{if(!t._pixiId){var a=r&&r.pixiIdPrefix||"pixiid";t._pixiId=a+"_"+Lt()}o=t._pixiId}var s=Gt[o];if(i&&n&&!s)throw new Error('The cacheId "'+o+'" does not exist in BaseTextureCache.');return s||((s=new e(t,r)).cacheId=o,e.addToCache(s,o)),s},e.fromBuffer=function(t,r,n,i){t=t||new Float32Array(r*n*4);var o=new Fe(t,{width:r,height:n}),a=t instanceof Float32Array?tt.FLOAT:tt.UNSIGNED_BYTE;return new e(o,Object.assign(je,i||{width:r,height:n,type:a}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),Gt[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),Gt[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=Gt[t];if(e){var r=e.textureCacheIds.indexOf(t);return r>-1&&e.textureCacheIds.splice(r,1),delete Gt[t],e}}else if(t&&t.textureCacheIds){for(var n=0;n0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=Q.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this},e.prototype.upload=function(t,r,n){for(var i=this.itemDirtyIds,o=0;o)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e}(ze),Ke=function(t){function e(r,n){var i=this;if(n=n||{},!(r instanceof HTMLVideoElement)){var o=document.createElement("video");o.setAttribute("preload","auto"),o.setAttribute("webkit-playsinline",""),o.setAttribute("playsinline",""),"string"==typeof r&&(r=[r]);var a=r[0].src||r[0];ze.crossOrigin(o,a,n.crossorigin);for(var s=0;s0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){var t=this.source;return 3===t.readyState||4===t.readyState},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Ee.shared.add(this.update,this),this._isConnectedToTicker=!0)},e.prototype._onPlayStop=function(){this._isConnectedToTicker&&(Ee.shared.remove(this.update,this),this._isConnectedToTicker=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isConnectedToTicker&&(Ee.shared.remove(this.update,this),this._isConnectedToTicker=!1);var e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),t.prototype.dispose.call(this)},Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isConnectedToTicker?(Ee.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Ee.shared.add(this.update,this),this._isConnectedToTicker=!0))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"updateFPS",{get:function(){return this._updateFPS},set:function(t){t!==this._updateFPS&&(this._updateFPS=t)},enumerable:!1,configurable:!0}),e.test=function(t,r){return self.HTMLVideoElement&&t instanceof HTMLVideoElement||e.TYPES.indexOf(r)>-1},e.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],e.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"},e}(ze),$e=function(t){function e(e){return t.call(this,e)||this}return Le(e,t),e.test=function(t){return!!self.createImageBitmap&&t instanceof ImageBitmap},e}(ze);De.push(We,$e,Ve,Ke,qe,Fe,Ye,He);var Je={__proto__:null,Resource:Ue,BaseImageResource:ze,INSTALLED:De,autoDetectResource:Ne,AbstractMultiResource:Xe,ArrayResource:He,BufferResource:Fe,CanvasResource:Ve,CubeResource:Ye,ImageResource:We,SVGResource:qe,VideoResource:Ke,ImageBitmapResource:$e},Ze=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Le(e,t),e.prototype.upload=function(t,e,r){var n=t.gl;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===ot.UNPACK);var i=e.realWidth,o=e.realHeight;return r.width===i&&r.height===o?n.texSubImage2D(e.target,0,0,0,i,o,e.format,r.type,this.data):(r.width=i,r.height=o,n.texImage2D(e.target,0,r.internalFormat,i,o,0,e.format,r.type,this.data)),!0},e}(Fe),Qe=function(){function t(t,e){this.width=Math.round(t||100),this.height=Math.round(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Ce("disposeFramebuffer"),this.multisample=ht.NONE}return Object.defineProperty(t.prototype,"colorTexture",{get:function(){return this.colorTextures[0]},enumerable:!1,configurable:!0}),t.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new Ge(null,{scaleMode:rt.NEAREST,resolution:1,mipmap:it.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Ge(new Ze(null,{width:this.width,height:this.height}),{scaleMode:rt.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:it.OFF,format:Z.DEPTH_COMPONENT,type:tt.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},t.prototype.resize=function(t,e){if(t=Math.round(t),e=Math.round(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var r=0;r-1&&e.textureCacheIds.splice(r,1),delete jt[t],e}}else if(t&&t.textureCacheIds){for(var n=0;nthis.baseTexture.width,a=r+i>this.baseTexture.height;if(o||a){var s=o&&a?"and":"or",u="X: "+e+" + "+n+" = "+(e+n)+" > "+this.baseTexture.width,c="Y: "+r+" + "+i+" = "+(r+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+c)}this.valid=n&&i&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rotate",{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this.updateUvs()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.orig.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.orig.height},enumerable:!1,configurable:!0}),e.prototype.castToBaseTexture=function(){return this.baseTexture},e}(pt.a);function ir(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}nr.EMPTY=new nr(new Ge),ir(nr.EMPTY),ir(nr.EMPTY.baseTexture),nr.WHITE=function(){var t=document.createElement("canvas");t.width=16,t.height=16;var e=t.getContext("2d");return e.fillStyle="white",e.fillRect(0,0,16,16),new nr(new Ge(new Ve(t)))}(),ir(nr.WHITE),ir(nr.WHITE.baseTexture);var or=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.valid=!0,n.filterFrame=null,n.filterPoolKey=null,n.updateUvs(),n}return Le(e,t),Object.defineProperty(e.prototype,"framebuffer",{get:function(){return this.baseTexture.framebuffer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"multisample",{get:function(){return this.framebuffer.multisample},set:function(t){this.framebuffer.multisample=t},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e,r){void 0===r&&(r=!0);var n=this.baseTexture.resolution,i=Math.round(t*n)/n,o=Math.round(e*n)/n;this.valid=i>0&&o>0,this._frame.width=this.orig.width=i,this._frame.height=this.orig.height=o,r&&this.baseTexture.resize(i,o),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){for(var r=arguments,n=[],i=1;i1?-n:-1:(i=((65535&(t=Mt(t)))<<16|65535&(e=Mt(e)))>>>0,n>1&&(i+=4294967296*n)),this.texturePool[i]||(this.texturePool[i]=[]);var o=this.texturePool[i].pop();return o||(o=this.createTexture(t,e,n)),o.filterPoolKey=i,o.setResolution(r),o},t.prototype.getFilterTexture=function(t,e,r){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution,r||ht.NONE);return n.filterFrame=t.filterFrame,n},t.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},t.prototype.returnFilterTexture=function(t){this.returnTexture(t)},t.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var r=this.texturePool[e];if(r)for(var n=0;n0&&t.height>0,this.texturePool)if(Number(e)<0){var r=this.texturePool[e];if(r)for(var n=0;n1){for(var c=0;c1&&((h=this.getOptimalFilterTexture(c.width,c.height,e.resolution)).filterFrame=c.filterFrame),r[f].apply(this,c,h,at.CLEAR,e);var l=c;c=h,h=l}r[f].apply(this,c,u.renderTexture,at.BLEND,e),f>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(c),this.returnFilterTexture(h)}e.clear(),this.statePool.push(e)},t.prototype.bindAndClear=function(t,e){void 0===e&&(e=at.CLEAR);var r=this.renderer,n=r.renderTexture,i=r.state;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t&&t.filterFrame){var o=this.tempRect;o.x=0,o.y=0,o.width=t.filterFrame.width,o.height=t.filterFrame.height,n.bind(t,t.filterFrame,o)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?n.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);var a=1&i.stateId||this.forceClear;(e===at.CLEAR||e===at.BLIT&&a)&&this.renderer.framebuffer.clear(0,0,0,0)},t.prototype.applyFilter=function(t,e,r,n){var i=this.renderer;i.state.set(t.state),this.bindAndClear(r,n),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,i.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),i.geometry.bind(this.quadUv),i.geometry.draw(J.TRIANGLES)):(i.geometry.bind(this.quad),i.geometry.draw(J.TRIANGLE_STRIP))},t.prototype.calculateSpriteMatrix=function(t,e){var r=this.activeState,n=r.sourceFrame,i=r.destinationFrame,o=e._texture.orig,a=t.set(i.width,0,0,i.height,n.x,n.y),s=e.worldTransform.copyTo(re.TEMP_MATRIX);return s.invert(),a.prepend(s),a.scale(1/o.width,1/o.height),a.translate(e.anchor.x,e.anchor.y),a},t.prototype.destroy=function(){this.renderer=null,this.texturePool.clear(!1)},t.prototype.getOptimalFilterTexture=function(t,e,r,n){return void 0===r&&(r=1),void 0===n&&(n=ht.NONE),this.texturePool.getOptimalTexture(t,e,r,n)},t.prototype.getFilterTexture=function(t,e,r){if("number"==typeof t){var n=t;t=e,e=n}t=t||this.activeState.renderTexture;var i=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,r||ht.NONE);return i.filterFrame=t.filterFrame,i},t.prototype.returnFilterTexture=function(t){this.texturePool.returnTexture(t)},t.prototype.emptyPool=function(){this.texturePool.clear(!0)},t.prototype.resize=function(){this.texturePool.setScreenSize(this.renderer.view)},t.prototype.transformAABB=function(t,e){var r=gr[0],n=gr[1],i=gr[2],o=gr[3];r.set(e.left,e.top),n.set(e.left,e.bottom),i.set(e.right,e.top),o.set(e.right,e.bottom),t.apply(r,r),t.apply(n,n),t.apply(i,i),t.apply(o,o);var a=Math.min(r.x,n.x,i.x,o.x),s=Math.min(r.y,n.y,i.y,o.y),u=Math.max(r.x,n.x,i.x,o.x),c=Math.max(r.y,n.y,i.y,o.y);e.x=a,e.y=s,e.width=u-a,e.height=c-s},t.prototype.roundFrame=function(t,e,r,n,i){if(i){var o=i.a,a=i.b,s=i.c,u=i.d;if((Math.abs(a)>1e-4||Math.abs(s)>1e-4)&&(Math.abs(o)>1e-4||Math.abs(u)>1e-4))return}(i=i?wr.copyFrom(i):wr.identity()).translate(-r.x,-r.y).scale(n.width/r.width,n.height/r.height).translate(n.x,n.y),this.transformAABB(i,t),t.ceil(e),this.transformAABB(i.invert(),t)},t}(),xr=function(){function t(t){this.renderer=t}return t.prototype.flush=function(){},t.prototype.destroy=function(){this.renderer=null},t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.render=function(t){},t}(),Tr=function(){function t(t){this.renderer=t,this.emptyRenderer=new xr(t),this.currentRenderer=this.emptyRenderer}return t.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.copyBoundTextures=function(t,e){for(var r=this.renderer.texture.boundTextures,n=e-1;n>=0;--n)t[n]=r[n]||null,t[n]&&(t[n]._batchLocation=n)},t.prototype.boundArray=function(t,e,r,n){for(var i=t.elements,o=t.ids,a=t.count,s=0,u=0;u=0&&h=W.WEBGL2&&(r=t.getContext("webgl2",e)),r)this.webGLVersion=2;else if(this.webGLVersion=1,!(r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl},t.prototype.getExtensions=function(){var t=this.gl,e={anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})},t.prototype.handleContextLost=function(t){t.preventDefault()},t.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.emit(this.gl)},t.prototype.destroy=function(){var t=this.renderer.view;this.renderer=null,t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},t.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},t.prototype.validateContext=function(t){var e=t.getContextAttributes(),r="WebGL2RenderingContext"in self&&t instanceof self.WebGL2RenderingContext;r&&(this.webGLVersion=2),e.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");var n=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=n,n||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")},t}(),Or=function(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=ht.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0},Ir=new Kt,Rr=function(){function t(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Qe(10,10),this.msaaSamples=null}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Kt,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;lt.PREFER_ENV===W.WEBGL_LEGACY&&(e=null,r=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)},t.prototype.bind=function(t,e,r){void 0===r&&(r=0);var n=this.gl;if(t){var i=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,i.framebuffer)),i.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,i.mipLevel=r),i.dirtyId!==t.dirtyId&&(i.dirtyId=t.dirtyId,i.dirtyFormat!==t.dirtyFormat?(i.dirtyFormat=t.dirtyFormat,i.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):i.dirtySize!==t.dirtySize&&(i.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var o=0;o>r,u=e.height>>r,c=s/e.width;this.setViewport(e.x*c,e.y*c,s,u)}else{s=t.width>>r,u=t.height>>r;this.setViewport(0,0,s,u)}}else this.current&&(this.current=null,n.bindFramebuffer(n.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)},t.prototype.setViewport=function(t,e,r,n){var i=this.viewport;t=Math.round(t),e=Math.round(e),r=Math.round(r),n=Math.round(n),i.width===r&&i.height===n&&i.x===t&&i.y===e||(i.x=t,i.y=e,i.width=r,i.height=n,this.gl.viewport(t,e,r,n))},Object.defineProperty(t.prototype,"size",{get:function(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}},enumerable:!1,configurable:!0}),t.prototype.clear=function(t,e,r,n,i){void 0===i&&(i=K.COLOR|K.DEPTH);var o=this.gl;o.clearColor(t,e,r,n),o.clear(i)},t.prototype.initFramebuffer=function(t){var e=this.gl,r=new Or(e.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r},t.prototype.resizeFramebuffer=function(t){var e=this.gl,r=t.glFramebuffers[this.CONTEXT_UID];r.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,r.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.RGBA8,t.width,t.height)),r.stencil&&(e.bindRenderbuffer(e.RENDERBUFFER,r.stencil),r.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,r.multisample,e.DEPTH24_STENCIL8,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height));var n=t.colorTextures,i=n.length;e.drawBuffers||(i=Math.min(i,1));for(var o=0;o1&&this.canMultisampleFramebuffer(t)?(n.msaaBuffer=n.msaaBuffer||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.msaaBuffer),r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.RGBA8,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.RENDERBUFFER,n.msaaBuffer)):n.msaaBuffer&&(r.deleteRenderbuffer(n.msaaBuffer),n.msaaBuffer=null,n.blitFramebuffer&&(n.blitFramebuffer.dispose(),n.blitFramebuffer=null));for(var a=[],s=0;s1&&r.drawBuffers(a),t.depthTexture)&&this.writeDepthTexture){var h=t.depthTexture;this.renderer.texture.bind(h,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,h._glTextures[this.CONTEXT_UID].texture,e)}!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture?n.stencil&&(r.deleteRenderbuffer(n.stencil),n.stencil=null):(n.stencil=n.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,n.stencil),n.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,n.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,n.stencil))},t.prototype.canMultisampleFramebuffer=function(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture},t.prototype.detectSamples=function(t){var e=this.msaaSamples,r=ht.NONE;if(t<=1||null===e)return r;for(var n=0;n=0&&this.managedFramebuffers.splice(i,1),t.disposeRunner.remove(this),e||(n.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&n.deleteRenderbuffer(r.msaaBuffer),r.stencil&&n.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&r.blitFramebuffer.dispose()}},t.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var r=0;r=W.WEBGL2&&(e=t.getContext("webgl2",{})),e||((e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}))?e.getExtension("WEBGL_draw_buffers"):e=null),Fr=e}return Fr}();if(t&&t.getShaderPrecisionFormat){var e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);Br=e.precision?ut.HIGH:ut.MEDIUM}}return Br}function Gr(t,e,r){if("precision"!==t.substring(0,9)){var n=e;return e===ut.HIGH&&r!==ut.HIGH&&(n=ut.MEDIUM),"precision "+n+" float;\n"+t}return r!==ut.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var Xr={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Hr(t){return Xr[t]}var zr=null,Vr={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Yr(t,e){if(!zr){var r=Object.keys(Vr);zr={};for(var n=0;n0&&(e+="\nelse "),r0?this._useCurrent():t.disable(t.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t=this.maskStack[this.maskStack.length-1]._scissorRect,e=this.renderer.renderTexture.current,r=this.renderer.projection,n=r.transform,i=r.sourceFrame,o=r.destinationFrame,a=e?e.resolution:this.renderer.resolution,s=o.width/i.width,u=o.height/i.height,c=((t.x-i.x)*s+o.x)*a,h=((t.y-i.y)*u+o.y)*a,f=t.width*s*a,l=t.height*u*a;n&&(c+=n.tx*a,h+=n.ty*a),e||(h=this.renderer.height-l-h),c=Math.round(c),h=Math.round(h),f=Math.round(f),l=Math.round(l),this.renderer.gl.scissor(c,h,f,l)},e}(hn),ln=function(t){function e(e){var r=t.call(this,e)||this;return r.glConst=WebGLRenderingContext.STENCIL_TEST,r}return Le(e,t),e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,r=this.renderer.gl,n=t._stencilCounter;0===n&&(this.renderer.framebuffer.forceStencil(),r.enable(r.STENCIL_TEST)),t._stencilCounter++,r.colorMask(!1,!1,!1,!1),r.stencilFunc(r.EQUAL,n,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;0===this.getStackLength()?(e.disable(e.STENCIL_TEST),e.clearStencil(0),e.clear(e.STENCIL_BUFFER_BIT)):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent())},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e}(hn),dn=function(){function t(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new re,this.transform=null}return t.prototype.update=function(t,e,r,n){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,n),this.transform&&this.projectionMatrix.append(this.transform);var i=this.renderer;i.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,i.globalUniforms.update(),i.shader.shader&&i.shader.syncUniformGroup(i.shader.shader.uniforms.globals)},t.prototype.calculateProjection=function(t,e,r,n){var i=this.projectionMatrix,o=n?-1:1;i.identity(),i.a=1/e.width*2,i.d=o*(1/e.height*2),i.tx=-1-e.x*i.a,i.ty=-o-e.y*i.d},t.prototype.setTransform=function(t){},t.prototype.destroy=function(){this.renderer=null},t}(),pn=new Kt,vn=new Kt,yn=function(){function t(t){this.renderer=t,this.clearColor=t._backgroundColorRgba,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Kt,this.destinationFrame=new Kt,this.viewportFrame=new Kt}return t.prototype.bind=function(t,e,r){void 0===t&&(t=null);var n,i,o,a=this.renderer;this.current=t,t?(o=(n=t.baseTexture).resolution,e||(pn.width=t.frame.width,pn.height=t.frame.height,e=pn),r||(vn.x=t.frame.x,vn.y=t.frame.y,vn.width=e.width,vn.height=e.height,r=vn),i=n.framebuffer):(o=a.resolution,e||(pn.width=a.screen.width,pn.height=a.screen.height,e=pn),r||((r=pn).width=e.width,r.height=e.height));var s=this.viewportFrame;s.x=r.x*o,s.y=r.y*o,s.width=r.width*o,s.height=r.height*o,t||(s.y=a.view.height-(s.y+s.height)),s.ceil(),this.renderer.framebuffer.bind(i,s),this.renderer.projection.update(r,e,o,!i),t?this.renderer.mask.setMaskStack(n.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(r)},t.prototype.clear=function(t,e){t=this.current?t||this.current.baseTexture.clearColor:t||this.clearColor;var r=this.destinationFrame,n=this.current?this.current.baseTexture:this.renderer.screen,i=r.width!==n.width||r.height!==n.height;if(i){var o=this.viewportFrame,a=o.x,s=o.y,u=o.width,c=o.height;a=Math.round(a),s=Math.round(s),u=Math.round(u),c=Math.round(c),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(a,s,u,c)}this.renderer.framebuffer.clear(t[0],t[1],t[2],t[3],e),i&&this.renderer.scissor.pop()},t.prototype.resize=function(){this.bind(null)},t.prototype.reset=function(){this.bind(null)},t.prototype.destroy=function(){this.renderer=null},t}();function mn(t,e,r,n,i){r.buffer.update(i)}var _n={float:"\n data[offset] = v;\n ",vec2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n ",vec3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n ",vec4:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n data[offset+3] = v[3];\n ",mat2:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n\n data[offset+4] = v[2];\n data[offset+5] = v[3];\n ",mat3:"\n data[offset] = v[0];\n data[offset+1] = v[1];\n data[offset+2] = v[2];\n\n data[offset + 4] = v[3];\n data[offset + 5] = v[4];\n data[offset + 6] = v[5];\n\n data[offset + 8] = v[6];\n data[offset + 9] = v[7];\n data[offset + 10] = v[8];\n ",mat4:"\n for(var i = 0; i < 16; i++)\n {\n data[offset + i] = v[i];\n }\n "},bn={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};function gn(t,e){if(!t.autoManage)return{size:0,syncFunc:mn};for(var r=function(t){for(var e=t.map((function(t){return{data:t,offset:0,dataLen:0,dirty:0}})),r=0,n=0,i=0,o=0;o1&&(r=Math.max(r,16)*a.data.size),a.dataLen=r,n%r!=0&&n<16){var s=n%r%16;n+=s,i+=s}n+r>16?(i=16*Math.ceil(i/16),a.offset=i,i+=r,n=r):(a.offset=i,n+=r,i+=r)}return{uboElements:e,size:i=16*Math.ceil(i/16)}}(function(t,e){var r=[];for(var n in t)e[n]&&r.push(e[n]);return r.sort((function(t,e){return t.index-e.index})),r}(t.uniforms,e)),n=r.uboElements,i=r.size,o=["\n var v = null;\n var v2 = null;\n var cv = null;\n var t = 0;\n var gl = renderer.gl\n var index = 0;\n var data = buffer.data;\n "],a=0;a1){var d=Hr(s.data.type),p=Math.max(bn[s.data.type]/16,1),v=d/p,y=(4-v%4)%4;o.push("\n cv = ud."+c+".value;\n v = uv."+c+";\n offset = "+s.offset/4+";\n\n t = 0;\n\n for(var i=0; i < "+s.data.size*p+"; i++)\n {\n for(var j = 0; j < "+v+"; j++)\n {\n data[offset++] = v[t++];\n }\n offset += "+y+";\n }\n\n ")}else{var m=_n[s.data.type];o.push("\n cv = ud."+c+".value;\n v = uv."+c+";\n offset = "+s.offset/4+";\n "+m+";\n ")}}return o.push("\n renderer.buffer.update(buffer);\n "),{size:i,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join("\n"))}}var wn=function(){function t(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}return t.prototype.destroy=function(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null},t}();function En(t,e){var r=Dr(t,t.VERTEX_SHADER,e.vertexSrc),n=Dr(t,t.FRAGMENT_SHADER,e.fragmentSrc),i=t.createProgram();t.attachShader(i,r),t.attachShader(i,n),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||function(t,e,r,n){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(r,t.COMPILE_STATUS)||Nr(t,r),t.getShaderParameter(n,t.COMPILE_STATUS)||Nr(t,n),console.error("PixiJS Error: Could not initialize shader."),""!==t.getProgramInfoLog(e)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}(t,i,r,n),e.attributeData=function(t,e){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;ie?1:-1}));for(var a=0;a>=1,r++;this.stateId=t.data}for(r=0;rthis.checkCountMax&&(this.checkCount=0,this.run())))},t.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,r=!1,n=0;nthis.maxIdle&&(t.destroyTexture(i,!0),e[n]=null,r=!0)}if(r){var o=0;for(n=0;n=0;n--)this.unload(t.children[n])},t.prototype.destroy=function(){this.renderer=null},t}();var In=function(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=tt.UNSIGNED_BYTE,this.internalFormat=Z.RGBA,this.samplerType=0},Rn=function(){function t(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Ge,this.hasIntegerTextures=!1}return t.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=function(t){var e,r,n,i,o,a,s,u,c,h,f,l,d,p,v,y,m,_,b,g,w,E,x;return"WebGL2RenderingContext"in self&&t instanceof self.WebGL2RenderingContext?((e={})[tt.UNSIGNED_BYTE]=((r={})[Z.RGBA]=t.RGBA8,r[Z.RGB]=t.RGB8,r[Z.RG]=t.RG8,r[Z.RED]=t.R8,r[Z.RGBA_INTEGER]=t.RGBA8UI,r[Z.RGB_INTEGER]=t.RGB8UI,r[Z.RG_INTEGER]=t.RG8UI,r[Z.RED_INTEGER]=t.R8UI,r[Z.ALPHA]=t.ALPHA,r[Z.LUMINANCE]=t.LUMINANCE,r[Z.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,r),e[tt.BYTE]=((n={})[Z.RGBA]=t.RGBA8_SNORM,n[Z.RGB]=t.RGB8_SNORM,n[Z.RG]=t.RG8_SNORM,n[Z.RED]=t.R8_SNORM,n[Z.RGBA_INTEGER]=t.RGBA8I,n[Z.RGB_INTEGER]=t.RGB8I,n[Z.RG_INTEGER]=t.RG8I,n[Z.RED_INTEGER]=t.R8I,n),e[tt.UNSIGNED_SHORT]=((i={})[Z.RGBA_INTEGER]=t.RGBA16UI,i[Z.RGB_INTEGER]=t.RGB16UI,i[Z.RG_INTEGER]=t.RG16UI,i[Z.RED_INTEGER]=t.R16UI,i[Z.DEPTH_COMPONENT]=t.DEPTH_COMPONENT16,i),e[tt.SHORT]=((o={})[Z.RGBA_INTEGER]=t.RGBA16I,o[Z.RGB_INTEGER]=t.RGB16I,o[Z.RG_INTEGER]=t.RG16I,o[Z.RED_INTEGER]=t.R16I,o),e[tt.UNSIGNED_INT]=((a={})[Z.RGBA_INTEGER]=t.RGBA32UI,a[Z.RGB_INTEGER]=t.RGB32UI,a[Z.RG_INTEGER]=t.RG32UI,a[Z.RED_INTEGER]=t.R32UI,a[Z.DEPTH_COMPONENT]=t.DEPTH_COMPONENT24,a),e[tt.INT]=((s={})[Z.RGBA_INTEGER]=t.RGBA32I,s[Z.RGB_INTEGER]=t.RGB32I,s[Z.RG_INTEGER]=t.RG32I,s[Z.RED_INTEGER]=t.R32I,s),e[tt.FLOAT]=((u={})[Z.RGBA]=t.RGBA32F,u[Z.RGB]=t.RGB32F,u[Z.RG]=t.RG32F,u[Z.RED]=t.R32F,u[Z.DEPTH_COMPONENT]=t.DEPTH_COMPONENT32F,u),e[tt.HALF_FLOAT]=((c={})[Z.RGBA]=t.RGBA16F,c[Z.RGB]=t.RGB16F,c[Z.RG]=t.RG16F,c[Z.RED]=t.R16F,c),e[tt.UNSIGNED_SHORT_5_6_5]=((h={})[Z.RGB]=t.RGB565,h),e[tt.UNSIGNED_SHORT_4_4_4_4]=((f={})[Z.RGBA]=t.RGBA4,f),e[tt.UNSIGNED_SHORT_5_5_5_1]=((l={})[Z.RGBA]=t.RGB5_A1,l),e[tt.UNSIGNED_INT_2_10_10_10_REV]=((d={})[Z.RGBA]=t.RGB10_A2,d[Z.RGBA_INTEGER]=t.RGB10_A2UI,d),e[tt.UNSIGNED_INT_10F_11F_11F_REV]=((p={})[Z.RGB]=t.R11F_G11F_B10F,p),e[tt.UNSIGNED_INT_5_9_9_9_REV]=((v={})[Z.RGB]=t.RGB9_E5,v),e[tt.UNSIGNED_INT_24_8]=((y={})[Z.DEPTH_STENCIL]=t.DEPTH24_STENCIL8,y),e[tt.FLOAT_32_UNSIGNED_INT_24_8_REV]=((m={})[Z.DEPTH_STENCIL]=t.DEPTH32F_STENCIL8,m),x=e):((_={})[tt.UNSIGNED_BYTE]=((b={})[Z.RGBA]=t.RGBA,b[Z.RGB]=t.RGB,b[Z.ALPHA]=t.ALPHA,b[Z.LUMINANCE]=t.LUMINANCE,b[Z.LUMINANCE_ALPHA]=t.LUMINANCE_ALPHA,b),_[tt.UNSIGNED_SHORT_5_6_5]=((g={})[Z.RGB]=t.RGB,g),_[tt.UNSIGNED_SHORT_4_4_4_4]=((w={})[Z.RGBA]=t.RGBA,w),_[tt.UNSIGNED_SHORT_5_5_5_1]=((E={})[Z.RGBA]=t.RGBA,E),x=_),x}(t);var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var r=0;r=0;--i){var o=e[i];if(o)o._glTextures[n].samplerType!==et.FLOAT&&this.renderer.texture.unbind(o)}},t.prototype.initTexture=function(t){var e=new In(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e},t.prototype.initTextureType=function(t,e){var r,n;e.internalFormat=null!==(n=null===(r=this.internalFormats[t.type])||void 0===r?void 0:r[t.format])&&void 0!==n?n:t.format,2===this.webGLVersion&&t.type===tt.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type},t.prototype.updateTexture=function(t){var e=t._glTextures[this.CONTEXT_UID];if(e){var r=this.renderer;if(this.initTextureType(t,e),t.resource&&t.resource.upload(r,t,e))e.samplerType!==et.FLOAT&&(this.hasIntegerTextures=!0);else{var n=t.realWidth,i=t.realHeight,o=r.gl;(e.width!==n||e.height!==i||e.dirtyId<0)&&(e.width=n,e.height=i,o.texImage2D(t.target,0,e.internalFormat,n,i,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}},t.prototype.destroyTexture=function(t,e){var r=this.gl;if((t=t.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){var n=this.managedTextures.indexOf(t);-1!==n&&Dt(this.managedTextures,n,1)}},t.prototype.updateTextureStyle=function(t){var e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==it.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=nt.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},t.prototype.setStyle=function(t,e){var r=this.gl;if(e.mipmap&&t.mipmap!==it.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,e.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===rt.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);var n=this.renderer.context.extensions.anisotropicFiltering;if(n&&t.anisotropicLevel>0&&t.scaleMode===rt.LINEAR){var i=Math.min(t.anisotropicLevel,r.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,n.TEXTURE_MAX_ANISOTROPY_EXT,i)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===rt.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===rt.LINEAR?r.LINEAR:r.NEAREST)},t.prototype.destroy=function(){this.renderer=null},t}(),Mn={__proto__:null,FilterSystem:Er,BatchSystem:Tr,ContextSystem:Ar,FramebufferSystem:Rr,GeometrySystem:Pr,MaskSystem:cn,ScissorSystem:fn,StencilSystem:ln,ProjectionSystem:dn,RenderTextureSystem:yn,ShaderSystem:Sn,StateSystem:An,TextureGCSystem:On,TextureSystem:Rn},Pn=new re,Cn=function(t){function e(e,r){void 0===e&&(e=q.UNKNOWN);var n=t.call(this)||this;return r=Object.assign({},lt.RENDER_OPTIONS,r),n.options=r,n.type=e,n.screen=new Kt(0,0,r.width,r.height),n.view=r.view||document.createElement("canvas"),n.resolution=r.resolution||lt.RESOLUTION,n.useContextAlpha=r.useContextAlpha,n.autoDensity=!!r.autoDensity,n.preserveDrawingBuffer=r.preserveDrawingBuffer,n.clearBeforeRender=r.clearBeforeRender,n._backgroundColor=0,n._backgroundColorRgba=[0,0,0,1],n._backgroundColorString="#000000",n.backgroundColor=r.backgroundColor||n._backgroundColor,n.backgroundAlpha=r.backgroundAlpha,void 0!==r.transparent&&(Ut("6.0.0","Option transparent is deprecated, please use backgroundAlpha instead."),n.useContextAlpha=r.transparent,n.backgroundAlpha=r.transparent?0:1),n._lastObjectRendered=null,n.plugins={},n}return Le(e,t),e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},Object.defineProperty(e.prototype,"width",{get:function(){return this.view.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.view.height},enumerable:!1,configurable:!0}),e.prototype.resize=function(t,e){this.view.width=Math.round(t*this.resolution),this.view.height=Math.round(e*this.resolution);var r=this.view.width/this.resolution,n=this.view.height/this.resolution;this.screen.width=r,this.screen.height=n,this.autoDensity&&(this.view.style.width=r+"px",this.view.style.height=n+"px"),this.emit("resize",r,n)},e.prototype.generateTexture=function(t,e,r,n){void 0===e&&(e={}),"number"==typeof e&&(Ut("6.1.0","generateTexture options (scaleMode, resolution, region) are now object options."),e={scaleMode:e,resolution:r,region:n});var i=e.region,o=function(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=t.data.byteLength)e.bufferSubData(t.type,0,t.data);else{var i=t.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;n.byteLength=t.data.byteLength,e.bufferData(t.type,t.data,i)}},t.prototype.dispose=function(t,e){if(this.managedBuffers[t.id]){delete this.managedBuffers[t.id];var r=t._glBuffers[this.CONTEXT_UID],n=this.gl;t.disposeRunner.remove(this),r&&(e||n.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}},t.prototype.disposeAll=function(t){for(var e=Object.keys(this.managedBuffers),r=0;r-1){var r=["\n %c %c %c PixiJS 6.1.3 - ✰ "+t+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];(e=self.console).log.apply(e,r)}else self.console&&self.console.log("PixiJS 6.1.3 - "+t+" - http://www.pixijs.com/");gt=!0}}(2===n.context.webGLVersion?"WebGL 2":"WebGL 1"),n.resize(n.options.width,n.options.height),n}return Le(e,t),e.create=function(t){if(void 0===bt&&(bt=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:lt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!self.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),n=!(!r||!r.getContextAttributes().stencil);if(r){var i=r.getExtension("WEBGL_lose_context");i&&i.loseContext()}return r=null,n}catch(t){return!1}}()),bt)return new e(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},e.prototype.contextChange=function(){var t,e=this.gl;if(1===this.context.webGLVersion){var r=e.getParameter(e.FRAMEBUFFER_BINDING);e.bindFramebuffer(e.FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.FRAMEBUFFER,r)}else{r=e.getParameter(e.DRAW_FRAMEBUFFER_BINDING);e.bindFramebuffer(e.DRAW_FRAMEBUFFER,null),t=e.getParameter(e.SAMPLES),e.bindFramebuffer(e.DRAW_FRAMEBUFFER,r)}t>=ht.HIGH?this.multisample=ht.HIGH:t>=ht.MEDIUM?this.multisample=ht.MEDIUM:t>=ht.LOW?this.multisample=ht.LOW:this.multisample=ht.NONE},e.prototype.addSystem=function(t,e){var r=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var n in this[e]=r,this.runners)this.runners[n].add(r);return this},e.prototype.render=function(t,e){var r,n,i,o;if(e&&(e instanceof or?(Ut("6.0.0","Renderer#render arguments changed, use options instead."),r=e,n=arguments[2],i=arguments[3],o=arguments[4]):(r=e.renderTexture,n=e.clear,i=e.transform,o=e.skipUpdateTransform)),this.renderingToScreen=!r,this.runners.prerender.emit(),this.emit("prerender"),this.projection.transform=i,!this.context.isLost){if(r||(this._lastObjectRendered=t),!o){var a=t.enableTempParent();t.updateTransform(),t.disableTempParent(a)}this.renderTexture.bind(r),this.batch.currentRenderer.start(),(void 0!==n?n:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),r&&r.baseTexture.update(),this.runners.postrender.emit(),this.projection.transform=null,this.emit("postrender")}},e.prototype.generateTexture=function(e,r,n,i){void 0===r&&(r={});var o=t.prototype.generateTexture.call(this,e,r,n,i);return this.framebuffer.blit(),o},e.prototype.resize=function(e,r){t.prototype.resize.call(this,e,r),this.runners.resize.emit(this.screen.height,this.screen.width)},e.prototype.reset=function(){return this.runners.reset.emit(),this},e.prototype.clear=function(){this.renderTexture.bind(),this.renderTexture.clear()},e.prototype.destroy=function(e){for(var r in this.runners.destroy.emit(),this.runners)this.runners[r].destroy();t.prototype.destroy.call(this,e),this.gl=null},Object.defineProperty(e.prototype,"extract",{get:function(){return Ut("6.0.0","Renderer#extract has been deprecated, please use Renderer#plugins.extract instead."),this.plugins.extract},enumerable:!1,configurable:!0}),e.registerPlugin=function(t,r){e.__plugins=e.__plugins||{},e.__plugins[t]=r},e}(Cn);var Ln="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",Bn=(function(){function t(t){Ut("6.1.0","System class is deprecated, implemement ISystem interface instead."),this.renderer=t}t.prototype.destroy=function(){this.renderer=null}}(),function(){this.texArray=null,this.blend=0,this.type=J.TRIANGLES,this.start=0,this.size=0,this.data=null}),Un=function(){function t(){this.elements=[],this.ids=[],this.count=0}return t.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this._bufferedTextures,r=this.MAX_TEXTURES,n=e._textureArrayPool,i=this.renderer.batch,o=this._tempBoundTextures,a=this.renderer.textureGC.count,s=++Ge._globalBatch,u=0,c=n[0],h=0;i.copyBoundTextures(o,r);for(var f=0;f=r&&(i.boundArray(c,o,s,r),this.buildDrawCalls(c,h,f),h=f,c=n[++u],++s),l._batchEnabled=s,l.touched=a,c.elements[c.count++]=l)}c.count>0&&(i.boundArray(c,o,s,r),this.buildDrawCalls(c,h,this._bufferSize),++u,++s);for(f=0;f0&&(e+="\nelse "),r0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?n=200:1223===n&&(n=204),2===(n/100|0)){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=t.TYPE.JSON}catch(t){return void this.abort("Error trying to parse loaded json: "+t)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(self.DOMParser){var i=new DOMParser;this.data=i.parseFromString(r,"text/xml")}else{var o=document.createElement("div");o.innerHTML=r,this.data=o}this.type=t.TYPE.XML}catch(t){return void this.abort("Error trying to parse loaded xml: "+t)}else this.data=e.response||r;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},t.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(self.origin!==self.location.origin)return"anonymous";e=e||self.location,ai||(ai=document.createElement("a")),ai.href=t;var r=ii(ai.href,{strictMode:!0}),n=!r.port&&""===e.port||r.port===e.port,i=r.protocol?r.protocol+":":"";return r.host===e.hostname&&n&&i===e.protocol?"":"anonymous"},t.prototype._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},t.prototype._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},t.prototype._getExtension=function(t){void 0===t&&(t=this.url);var e="";if(this.isDataUrl){var r=t.indexOf("/");e=t.substring(r+1,t.indexOf(";",r))}else{var n=t.indexOf("?"),i=t.indexOf("#"),o=Math.min(n>-1?n:t.length,i>-1?i:t.length);e=(t=t.substring(0,o)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},t.prototype._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t}();function fi(){}function li(t){return function(){for(var e=arguments,r=[],n=0;n>2,i[1]=(3&n[0])<<4|n[1]>>4,i[2]=(15&n[1])<<2|n[2]>>6,i[3]=63&n[2],r-(t.length-1)){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64}for(o=0;o0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")},e._createLevelBuffers=function(t,e,r,n,i,o,a){for(var s=new Array(r),u=t.byteOffset,c=o,h=a,f=c+n-1&~(n-1),l=h+i-1&~(i-1),d=f*l*Ei[e],p=0;p1?c:f,levelHeight:r>1?h:l,levelBuffer:new Uint8Array(t.buffer,u,d)},u+=d,d=(f=(c=c>>1||1)+n-1&~(n-1))*(l=(h=h>>1||1)+i-1&~(i-1))*Ei[e];return s},e}(function(t){function e(e,r){void 0===r&&(r={width:1,height:1,autoLoad:!0});var n,i,o=this;return"string"==typeof e?(n=e,i=new Uint8Array):(n=null,i=e),(o=t.call(this,i,r)||this).origin=n,o.buffer=i?new Fn(i):null,o.origin&&!1!==r.autoLoad&&o.load(),i&&i.length&&(o.loaded=!0,o.onBlobLoaded(o.buffer.rawBinaryData)),o}return Ti(e,t),e.prototype.onBlobLoaded=function(t){},e.prototype.load=function(){return t=this,e=void 0,n=function(){var t;return Si(this,(function(e){switch(e.label){case 0:return[4,fetch(this.origin)];case 1:return[4,e.sent().blob()];case 2:return[4,e.sent().arrayBuffer()];case 3:return t=e.sent(),this.data=new Uint32Array(t),this.buffer=new Fn(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),[2,this]}}))},new((r=Promise)||(r=Promise))((function(i,o){function a(t){try{u(n.next(t))}catch(t){o(t)}}function s(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new r((function(e){e(t.value)})).then(a,s)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n},e}(Fe)),Ri=function(){function t(){}return t.use=function(e,r){var n=e.data;if(e.type===hi.TYPE.JSON&&n&&n.cacheID&&n.textures){for(var i=n.textures,o=void 0,a=void 0,s=0,u=i.length;s>>=1,w>>>=1}var x=148;for(E=0;E1?w:x,levelHeight:d>1?E:T,levelBuffer:new Uint8Array(r,I,g)},I+=g}S=(S+=O+4)%4!=0?S+4-S%4:S,g=(x=(w=w>>1||1)+4-1&-4)*(T=(E=E>>1||1)+4-1&-4)*v}if(0!==o)throw new Error("TODO: Uncompressed");return _.map((function(t){return new Ii(null,{format:s,width:u,height:c,levels:d,levelBuffers:t})}))},t.validate=function(t,e){for(var r=0;r16384&&(n=16384),o._properties=[!1,!0,!1,!1,!1],o._maxSize=e,o._batchSize=n,o._buffers=null,o._bufferUpdateIDs=[],o._updateID=0,o.interactiveChildren=!1,o.blendMode=$.NORMAL,o.autoResize=i,o.roundPixels=!0,o.baseTexture=null,o.setProperties(r),o._tint=0,o.tintRgb=new Float32Array(4),o.tint=16777215,o}fo(e,t),e.prototype.setProperties=function(t){t&&(this._properties[0]="vertices"in t||"scale"in t?!!t.vertices||!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="tint"in t||"alpha"in t?!!t.tint||!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},Object.defineProperty(e.prototype,"tint",{get:function(){return this._tint},set:function(t){this._tint=t,Et(t,this.tintRgb)},enumerable:!1,configurable:!0}),e.prototype.render=function(t){var e=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.valid||this.baseTexture.once("update",(function(){return e.onChildrenChange(0)}))),t.batch.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){for(var e=Math.floor(t/this._batchSize);this._bufferUpdateIDs.lengthr&&!t.autoResize&&(o=r);var a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));var s=e[0]._texture.baseTexture;this.state.blendMode=At(t.blendMode,s.alphaMode),i.state.set(this.state);var u,c,h,f,l=i.gl,d=t.worldTransform.copyTo(this.tempMatrix);d.prepend(i.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=d.toArray(!0),this.shader.uniforms.uColor=(u=t.tintRgb,c=t.worldAlpha,h=this.shader.uniforms.uColor,f=s.alphaMode,h=h||new Float32Array(4),f||void 0===f?(h[0]=u[0]*c,h[1]=u[1]*c,h[2]=u[2]*c):(h[0]=u[0],h[1]=u[1],h[2]=u[2]),h[3]=c,h),this.shader.uniforms.uSampler=s,this.renderer.shader.bind(this.shader);for(var p=!1,v=0,y=0;vn&&(m=n),y>=a.length&&a.push(this._generateOneMoreBuffer(t));var _=a[y];_.uploadDynamic(e,v,m);var b=t._bufferUpdateIDs[y]||0;(p=p||_._updateID0,c=s.alpha,h=c<1&&u?Ot(s._tintRGB,c):s._tintRGB+(255*c<<24);n[o]=h,n[o+i]=h,n[o+2*i]=h,n[o+3*i]=h,o+=4*i}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(xr);!function(t){t.MITER="miter",t.BEVEL="bevel",t.ROUND="round"}(lo||(lo={})),function(t){t.BUTT="butt",t.ROUND="round",t.SQUARE="square"}(po||(po={}));var mo={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount:function(t,e){if(void 0===e&&(e=20),!this.adaptive||!t||isNaN(t))return e;var r=Math.ceil(t/this.maxLength);return rthis.maxSegments&&(r=this.maxSegments),r}},_o=function(){function t(){this.color=16777215,this.alpha=1,this.texture=nr.WHITE,this.matrix=null,this.visible=!1,this.reset()}return t.prototype.clone=function(){var e=new t;return e.color=this.color,e.alpha=this.alpha,e.texture=this.texture,e.matrix=this.matrix,e.visible=this.visible,e},t.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=nr.WHITE,this.matrix=null,this.visible=!1},t.prototype.destroy=function(){this.texture=null,this.matrix=null},t}(),bo=function(t,e){return(bo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function go(t,e){function r(){this.constructor=t}bo(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var wo={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var r=t.points,n=t.holes,i=e.points,o=e.indices;if(r.length>=6){for(var a=[],s=0;sf&&(f+=2*Math.PI);var l=h,d=f-h,p=Math.abs(d),v=Math.sqrt(u*u+c*c),y=1+(15*p*Math.sqrt(v)/Math.PI>>0),m=d/y;if(l+=m,s){a.push(t,e),a.push(r,n);for(var _=1,b=l;__?(F?(l.push(V,Y),l.push(w+S*C,E+A*C),l.push(V,Y),l.push(w+O*C,E+I*C)):(l.push(w-S*P,E-A*P),l.push(W,q),l.push(w-O*P,E-I*P),l.push(W,q)),p+=2):o.join===lo.ROUND?F?(l.push(V,Y),l.push(w+S*C,E+A*C),p+=Io(w,E,w+S*C,E+A*C,w+O*C,E+I*C,l,!0)+4,l.push(V,Y),l.push(w+O*C,E+I*C)):(l.push(w-S*P,E-A*P),l.push(W,q),p+=Io(w,E,w-S*P,E-A*P,w-O*P,E-I*P,l,!1)+4,l.push(w-O*P,E-I*P),l.push(W,q)):(l.push(V,Y),l.push(W,q)):(l.push(w-S*P,E-A*P),l.push(w+S*C,E+A*C),o.join===lo.BEVEL||z/m>_||(o.join===lo.ROUND?p+=F?Io(w,E,w+S*C,E+A*C,w+O*C,E+I*C,l,!0)+2:Io(w,E,w-S*P,E-A*P,w-O*P,E-I*P,l,!1)+2:(F?(l.push(W,q),l.push(W,q)):(l.push(V,Y),l.push(V,Y)),p+=2)),l.push(w-O*P,E-I*P),l.push(w+O*C,E+I*C),p+=2)}}b=n[2*(d-2)],g=n[2*(d-2)+1],w=n[2*(d-1)],S=-(g-(E=n[2*(d-1)+1])),A=b-w,S/=R=Math.sqrt(S*S+A*A),A/=R,S*=y,A*=y,l.push(w-S*P,E-A*P),l.push(w+S*C,E+A*C),u||(o.cap===po.ROUND?p+=Io(w-S*(P-C)*.5,E-A*(P-C)*.5,w-S*P,E-A*P,w+S*C,E+A*C,l,!1)+2:o.cap===po.SQUARE&&(p+=Oo(w,E,S,A,P,C,!1,l)));var $=e.indices,J=mo.epsilon*mo.epsilon;for(D=v;Dh*s}},t.arc=function(t,e,r,n,i,o,a,s,u){for(var c=a-o,h=mo._segmentsCount(Math.abs(c)*i,40*Math.ceil(Math.abs(c)/Yt)),f=c/(2*h),l=2*f,d=Math.cos(f),p=Math.sin(f),v=h-1,y=v%1/v,m=0;m<=v;++m){var _=f+o+l*(m+y*m),b=Math.cos(_),g=-Math.sin(_);u.push((d*b+p*g)*i+r,(d*-g+p*b)*i+n)}},t}(),Co=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o,a,s){for(var u=0,c=0,h=0,f=0,l=0,d=0,p=0,v=0,y=0,m=0,_=0,b=t,g=e,w=1;w<=10;++w)m=b-(v=(p=(d=(l=1-(c=w/10))*l)*l)*t+3*d*c*r+3*l*(h=c*c)*i+(f=h*c)*a),_=g-(y=p*e+3*d*c*n+3*l*h*o+f*s),b=v,g=y,u+=Math.sqrt(m*m+_*_);return u},t.curveTo=function(e,r,n,i,o,a,s){var u=s[s.length-2],c=s[s.length-1];s.length-=2;var h=mo._segmentsCount(t.curveLength(u,c,e,r,n,i,o,a)),f=0,l=0,d=0,p=0,v=0;s.push(u,c);for(var y=1,m=0;y<=h;++y)d=(l=(f=1-(m=y/h))*f)*f,v=(p=m*m)*m,s.push(d*u+3*l*m*e+3*f*p*n+v*o,d*c+3*l*m*r+3*f*p*i+v*a)},t}(),Do=function(){function t(){}return t.curveLength=function(t,e,r,n,i,o){var a=t-2*r+i,s=e-2*n+o,u=2*r-2*t,c=2*n-2*e,h=4*(a*a+s*s),f=4*(a*u+s*c),l=u*u+c*c,d=2*Math.sqrt(h+f+l),p=Math.sqrt(h),v=2*h*p,y=2*Math.sqrt(l),m=f/p;return(v*d+p*f*(d-y)+(4*l*h-f*f)*Math.log((2*p+m+d)/(m+y)))/(4*v)},t.curveTo=function(e,r,n,i,o){for(var a=o[o.length-2],s=o[o.length-1],u=mo._segmentsCount(t.curveLength(a,s,e,r,n,i)),c=0,h=0,f=1;f<=u;++f){var l=f/u;c=a+(e-a)*l,h=s+(r-s)*l,o.push(c+(e+(n-e)*l-c)*l,h+(r+(i-r)*l-h)*l)}},t}(),No=function(){function t(){this.reset()}return t.prototype.begin=function(t,e,r){this.reset(),this.style=t,this.start=e,this.attribStart=r},t.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},t.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0},t}(),ko=((Mo={})[Vt.POLY]=wo,Mo[Vt.CIRC]=Eo,Mo[Vt.ELIP]=Eo,Mo[Vt.RECT]=xo,Mo[Vt.RREC]=Ao,Mo),Lo=[],Bo=[];function Uo(t){for(var e=t.points,r=0,n=0;n0}var Fo=function(){function t(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null),this.points=[],this.holes=[],this.shape=t,this.lineStyle=r,this.fillStyle=e,this.matrix=n,this.type=t.type}return t.prototype.clone=function(){return new t(this.shape,this.fillStyle,this.lineStyle,this.matrix)},t.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null},t}(),jo=new te,Go=new le,Xo=function(t){function e(){var e=t.call(this)||this;return e.closePointEps=1e-4,e.boundsPadding=0,e.uvsFloat32=null,e.indicesUint16=null,e.batchable=!1,e.points=[],e.colors=[],e.uvs=[],e.indices=[],e.textureIds=[],e.graphicsData=[],e.drawCalls=[],e.batchDirty=-1,e.batches=[],e.dirty=0,e.cacheDirty=-1,e.clearDirty=0,e.shapeIndex=0,e._bounds=new le,e.boundsDirty=-1,e}return go(e,t),Object.defineProperty(e.prototype,"bounds",{get:function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},enumerable:!1,configurable:!0}),e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,r,n){void 0===e&&(e=null),void 0===r&&(r=null),void 0===n&&(n=null);var i=new Fo(t,e,r,n);return this.graphicsData.push(i),this.dirty++,this},e.prototype.drawHole=function(t,e){if(void 0===e&&(e=null),!this.graphicsData.length)return null;var r=new Fo(t,null,null,e),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this},e.prototype.destroy=function(){t.prototype.destroy.call(this);for(var e=0;e0&&(i=(n=this.batches[this.batches.length-1]).style);for(var o=this.shapeIndex;o65535&&t;this.indicesUint16=m?new Uint32Array(this.indices):new Uint16Array(this.indices)}this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}else this.batchable=!0}}else this.batchable=!0},e.prototype._compareStyles=function(t,e){return!(!t||!e)&&(t.texture.baseTexture===e.texture.baseTexture&&(t.color+t.alpha===e.color+e.alpha&&!!t.native==!!e.native))},e.prototype.validateBatching=function(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(var t=0,e=this.graphicsData.length;t131070)return!1;for(var t=this.batches,r=0;r0&&((i=Bo.pop())||((i=new Bn).texArray=new Un),this.drawCalls.push(i)),i.start=h,i.size=0,i.texArray.count=0,i.type=c),d.touched=1,d._batchEnabled=t,d._batchLocation=o,d.wrapMode=nt.REPEAT,i.texArray.elements[i.texArray.count++]=d,o++)),i.size+=f.size,h+=f.size,s=d._batchLocation,this.addColors(r,l.color,l.alpha,f.attribSize,f.attribStart),this.addTextureIds(n,s,f.attribSize,f.attribStart)}Ge._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(3*t.length*4),o=new Float32Array(i),a=new Uint32Array(i),s=0,u=0;u>16)+(65280&e)+((255&e)<<16),r);t.length=Math.max(t.length,i+n);for(var a=0;a0&&t.alpha>0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:e},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new Zt,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new Zt,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return n===t&&i===e||r.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,r,n){this._initCurve();var i=this.currentPath.points;return 0===i.length&&this.moveTo(0,0),Do.curveTo(t,e,r,n,i),this},e.prototype.bezierCurveTo=function(t,e,r,n,i,o){return this._initCurve(),Co.curveTo(t,e,r,n,i,o,this.currentPath.points),this},e.prototype.arcTo=function(t,e,r,n,i){this._initCurve(t,e);var o=this.currentPath.points,a=Po.curveTo(t,e,r,n,i,o);if(a){var s=a.cx,u=a.cy,c=a.radius,h=a.startAngle,f=a.endAngle,l=a.anticlockwise;this.arc(s,u,c,h,f,l)}return this},e.prototype.arc=function(t,e,r,n,i,o){if(void 0===o&&(o=!1),n===i)return this;if(!o&&i<=n?i+=Yt:o&&n<=i&&(n+=Yt),0===i-n)return this;var a=t+Math.cos(n)*r,s=e+Math.sin(n)*r,u=this._geometry.closePointEps,c=this.currentPath?this.currentPath.points:null;if(c){var h=Math.abs(c[c.length-2]-a),f=Math.abs(c[c.length-1]-s);h0;return e?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:e},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,r,n){return this.drawShape(new Kt(t,e,r,n))},e.prototype.drawRoundedRect=function(t,e,r,n,i){return this.drawShape(new Qt(t,e,r,n,i))},e.prototype.drawCircle=function(t,e,r){return this.drawShape(new $t(t,e,r))},e.prototype.drawEllipse=function(t,e,r,n){return this.drawShape(new Jt(t,e,r,n))},e.prototype.drawPolygon=function(){for(var t,e=arguments,r=[],n=0;n>16&255)/255*i,o.tint[1]=(n>>8&255)/255*i,o.tint[2]=(255&n)/255*i,o.tint[3]=i,t.shader.bind(e),t.geometry.bind(r,e),t.state.set(this.state);for(var s=0,u=a.length;s>16)+(65280&i)+((255&i)<<16)}}},e.prototype.calculateVertices=function(){var t=this.transform._worldID;if(this._transformID!==t){this._transformID=t;for(var e=this.transform.worldTransform,r=e.a,n=e.b,i=e.c,o=e.d,a=e.tx,s=e.ty,u=this._geometry.points,c=this.vertexData,h=0,f=0;f=n&&Ko.x=i&&Ko.y>16)+(65280&t)+((255&t)<<16)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"texture",{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||nr.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},enumerable:!1,configurable:!0}),e}(_e),Zo=function(t,e){return(Zo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};!function(t){t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL"}(qo||(qo={}));var Qo={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:qo.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},ta=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],ea=function(){function t(t){this.styleID=0,this.reset(),ia(this,t,t)}return t.prototype.clone=function(){var e={};return ia(e,this,Qo),new t(e)},t.prototype.reset=function(){ia(this,Qo,Qo)},Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"breakWords",{get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadow",{get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAlpha",{get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowAngle",{get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowBlur",{get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowColor",{get:function(){return this._dropShadowColor},set:function(t){var e=na(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropShadowDistance",{get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fill",{get:function(){return this._fill},set:function(t){var e=na(t);this._fill!==e&&(this._fill=e,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientType",{get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fillGradientStops",{get:function(){return this._fillGradientStops},set:function(t){(function(t,e){if(!Array.isArray(t)||!Array.isArray(e))return!1;if(t.length!==e.length)return!1;for(var r=0;r=0;r--){var n=e[r].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&ta.indexOf(n)<0&&(n='"'+n+'"'),e[r]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},t}();function ra(t){return"number"==typeof t?xt(t):("string"==typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function na(t){if(Array.isArray(t)){for(var e=0;ep)if(""!==a&&(s+=t.addLine(a),a="",o=0),t.canBreakWords(m,r.breakWords))for(var w=t.wordWrapSplit(m),E=0;Ep&&(s+=t.addLine(a),d=!1,a="",o=0),a+=x,o+=O}else{a.length>0&&(s+=t.addLine(a),a="",o=0);var I=y===v.length-1;s+=t.addLine(m,!I),d=!1,a="",o=0}else g+o>p&&(d=!1,s+=t.addLine(a),a="",o=0),(a.length>0||!t.isBreakingSpace(m)||d)&&(a+=m,o+=g)}return s+=t.addLine(a,!1)},t.addLine=function(e,r){return void 0===r&&(r=!0),e=t.trimRight(e),e=r?e+"\n":e},t.getFromCache=function(t,e,r,n){var i=r[t];if("number"!=typeof i){var o=t.length*e;i=n.measureText(t).width+o,r[t]=i}return i},t.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},t.collapseNewlines=function(t){return"normal"===t},t.trimRight=function(e){if("string"!=typeof e)return"";for(var r=e.length-1;r>=0;r--){var n=e[r];if(!t.isBreakingSpace(n))break;e=e.slice(0,-1)}return e},t.isNewline=function(e){return"string"==typeof e&&t._newlines.indexOf(e.charCodeAt(0))>=0},t.isBreakingSpace=function(e,r){return"string"==typeof e&&t._breakingSpaces.indexOf(e.charCodeAt(0))>=0},t.tokenize=function(e){var r=[],n="";if("string"!=typeof e)return r;for(var i=0;is;--l){for(v=0;v0&&p>v&&(y=(v+p)/2);var m=v+d,_=r.lineHeight*(l+1),b=m;l+10},t}();function fa(t,e){var r=!1;if(t&&t._textures&&t._textures.length)for(var n=0;n=0;e--)this.add(t.children[e]);return this},t.prototype.destroy=function(){this.ticking&&Ee.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},t}()),Ea=(function(){function t(t){this.maxMilliseconds=t,this.frameStart=0}t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart=n&&Aa.x=i&&Aa.y>16)+(65280&t)+((255&t)<<16),this._colorDirty=!0)},enumerable:!1,configurable:!0}),e.prototype.update=function(){if(this._colorDirty){this._colorDirty=!1;var t=this.texture.baseTexture;It(this._tint,this._alpha,this.uniforms.uColor,t.alphaMode)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)},e}(rn),Ua=function(t){function e(e,r,n){var i=t.call(this)||this,o=new cr(e),a=new cr(r,!0),s=new cr(n,!0,!0);return i.addAttribute("aVertexPosition",o,2,!1,tt.FLOAT).addAttribute("aTextureCoord",a,2,!1,tt.FLOAT).addIndex(s),i._updateId=-1,i}return Ca(e,t),Object.defineProperty(e.prototype,"vertexDirtyId",{get:function(){return this.buffers[0]._updateID},enumerable:!1,configurable:!0}),e}(pr),Fa=function(t,e){return(Fa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var ja=function(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[]},Ga=function(){function t(){}return t.test=function(t){return"string"==typeof t&&0===t.indexOf("info face=")},t.parse=function(t){var e=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[]};for(var n in e){var i=e[n].match(/^[a-z]+/gm)[0],o=e[n].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),a={};for(var s in o){var u=o[s].split("="),c=u[0],h=u[1].replace(/"/gm,""),f=parseFloat(h),l=isNaN(f)?h:f;a[c]=l}r[i].push(a)}var d=new ja;return r.info.forEach((function(t){return d.info.push({face:t.face,size:parseInt(t.size,10)})})),r.common.forEach((function(t){return d.common.push({lineHeight:parseInt(t.lineHeight,10)})})),r.page.forEach((function(t){return d.page.push({id:parseInt(t.id,10),file:t.file})})),r.char.forEach((function(t){return d.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)})})),r.kerning.forEach((function(t){return d.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)})})),d},t}(),Xa=function(){function t(){}return t.test=function(t){return t instanceof XMLDocument&&t.getElementsByTagName("page").length&&null!==t.getElementsByTagName("info")[0].getAttribute("face")},t.parse=function(t){for(var e=new ja,r=t.getElementsByTagName("info"),n=t.getElementsByTagName("common"),i=t.getElementsByTagName("page"),o=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),s=0;s")>-1){var e=(new self.DOMParser).parseFromString(t,"text/xml");return Xa.test(e)}return!1},t.parse=function(t){var e=(new self.DOMParser).parseFromString(t,"text/xml");return Xa.parse(e)},t}(),za=[Ga,Xa,Ha];function Va(t){for(var e=0;e=c-T*s){if(0===_)throw new Error("[BitmapFont] textureHeight "+c+"px is too small for "+f.fontSize+"px fonts");--w,p=null,v=null,y=null,_=0,m=0,b=0}else if(b=Math.max(T+E.fontProperties.descent,b),S*s+m>=l)--w,_+=b*s,_=Math.ceil(_),m=0,b=0;else{Ya(p,v,E,m,_,s,f);var A=E.text.charCodeAt(0);d.char.push({id:A,page:g.length-1,x:m/s,y:_/s,width:S,height:T,xoffset:0,yoffset:0,xadvance:Math.ceil(x-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0))}),m+=(S+2*a)*s,m=Math.ceil(m)}}w=0;for(var O=h.length;w0&&n.x>c&&(Dt(i,1+p-++y,1+b-p),b=p,p=-1,o.push(v),a.push(i.length>0?i[i.length-1].prevSpaces:0),l=Math.max(l,v),d++,n.x=0,n.y+=e.lineHeight,h=null,_=0)}}else o.push(f),a.push(-1),l=Math.max(l,f),++d,++y,n.x=0,n.y+=e.lineHeight,h=null,_=0}var T=s.charAt(s.length-1);"\r"!==T&&"\n"!==T&&(/(?:\s)/.test(T)&&(f=v),o.push(f),l=Math.max(l,f),a.push(-1));var S=[];for(b=0;b<=d;b++){var A=0;"right"===this._align?A=l-o[b]:"center"===this._align?A=(l-o[b])/2:"justify"===this._align&&(A=a[b]<0?0:(l-o[b])/a[b]),S.push(A)}var O=i.length,I={},R=[],M=this._activePagesMeshData;for(b=0;b6*k)||W.vertices.length<2*La.BATCHABLE_SIZE)W.vertices=new Float32Array(8*k),W.uvs=new Float32Array(8*k),W.indices=new Uint16Array(6*k);else for(var L=W.total,B=W.vertices,U=4*L*2;U=n&&(e=t-a-1),o+=s=s.replace("%value%",r[e].toString()),o+="\n"}return i=(i=i.replace("%blur%",o)).replace("%size%",t.toString())} /*! * @pixi/constants - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/constants is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */(o);return(a=t.call(this,s,u)||this).horizontal=e,a.resolution=i,a._quality=0,a.quality=n,a.blur=r,a}return ts(e,t),e.prototype.apply=function(t,e,r,n){if(r?this.horizontal?this.uniforms.strength=1/r.width*(r.width/e.width):this.uniforms.strength=1/r.height*(r.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,r,n);else{var i=t.getFilterTexture(),o=t.renderer,a=e,s=i;this.state.blend=!1,t.applyFilter(this,a,s,ps.CLEAR);for(var u=1;u 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n",r)||this).alpha=1,e}return function(t,e){function r(){this.constructor=t}Ts(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype._loadMatrix=function(t,e){void 0===e&&(e=!1);var r=t;e&&(this._multiply(r,this.uniforms.m,t),r=this._colorMatrix(r)),this.uniforms.m=r},e.prototype._multiply=function(t,e,r){return t[0]=e[0]*r[0]+e[1]*r[5]+e[2]*r[10]+e[3]*r[15],t[1]=e[0]*r[1]+e[1]*r[6]+e[2]*r[11]+e[3]*r[16],t[2]=e[0]*r[2]+e[1]*r[7]+e[2]*r[12]+e[3]*r[17],t[3]=e[0]*r[3]+e[1]*r[8]+e[2]*r[13]+e[3]*r[18],t[4]=e[0]*r[4]+e[1]*r[9]+e[2]*r[14]+e[3]*r[19]+e[4],t[5]=e[5]*r[0]+e[6]*r[5]+e[7]*r[10]+e[8]*r[15],t[6]=e[5]*r[1]+e[6]*r[6]+e[7]*r[11]+e[8]*r[16],t[7]=e[5]*r[2]+e[6]*r[7]+e[7]*r[12]+e[8]*r[17],t[8]=e[5]*r[3]+e[6]*r[8]+e[7]*r[13]+e[8]*r[18],t[9]=e[5]*r[4]+e[6]*r[9]+e[7]*r[14]+e[8]*r[19]+e[9],t[10]=e[10]*r[0]+e[11]*r[5]+e[12]*r[10]+e[13]*r[15],t[11]=e[10]*r[1]+e[11]*r[6]+e[12]*r[11]+e[13]*r[16],t[12]=e[10]*r[2]+e[11]*r[7]+e[12]*r[12]+e[13]*r[17],t[13]=e[10]*r[3]+e[11]*r[8]+e[12]*r[13]+e[13]*r[18],t[14]=e[10]*r[4]+e[11]*r[9]+e[12]*r[14]+e[13]*r[19]+e[14],t[15]=e[15]*r[0]+e[16]*r[5]+e[17]*r[10]+e[18]*r[15],t[16]=e[15]*r[1]+e[16]*r[6]+e[17]*r[11]+e[18]*r[16],t[17]=e[15]*r[2]+e[16]*r[7]+e[17]*r[12]+e[18]*r[17],t[18]=e[15]*r[3]+e[16]*r[8]+e[17]*r[13]+e[18]*r[18],t[19]=e[15]*r[4]+e[16]*r[9]+e[17]*r[14]+e[18]*r[19]+e[19],t},e.prototype._colorMatrix=function(t){var e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},e.prototype.brightness=function(t,e){var r=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.tint=function(t,e){var r=[(t>>16&255)/255,0,0,0,0,0,(t>>8&255)/255,0,0,0,0,0,(255&t)/255,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.greyscale=function(t,e){var r=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var r=Math.cos(t),n=Math.sin(t),i=1/3,o=(0,Math.sqrt)(i),a=[r+(1-r)*i,i*(1-r)-o*n,i*(1-r)+o*n,0,0,i*(1-r)+o*n,r+i*(1-r),i*(1-r)-o*n,0,0,i*(1-r)-o*n,i*(1-r)+o*n,r+i*(1-r),0,0,0,0,0,1,0];this._loadMatrix(a,e)},e.prototype.contrast=function(t,e){var r=(t||0)+1,n=-.5*(r-1),i=[r,0,0,0,n,0,r,0,0,n,0,0,r,0,n,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var r=2*t/3+1,n=-.5*(r-1),i=[r,n,n,0,0,n,r,n,0,0,n,n,r,0,0,0,0,0,1,0];this._loadMatrix(i,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],t)},e.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},e.prototype.technicolor=function(t){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],t)},e.prototype.polaroid=function(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)},e.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},e.prototype.kodachrome=function(t){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],t)},e.prototype.browni=function(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)},e.prototype.vintage=function(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)},e.prototype.colorTone=function(t,e,r,n,i){var o=((r=r||16770432)>>16&255)/255,a=(r>>8&255)/255,s=(255&r)/255,u=((n=n||3375104)>>16&255)/255,c=(n>>8&255)/255,h=(255&n)/255,f=[.3,.59,.11,0,0,o,a,s,t=t||.2,0,u,c,h,e=e||.15,0,o-u,a-c,s-h,0,0];this._loadMatrix(f,i)},e.prototype.night=function(t,e){var r=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.predator=function(t,e){var r=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},e.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},Object.defineProperty(e.prototype,"matrix",{get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"alpha",{get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t},enumerable:!1,configurable:!0}),e}(on);Ss.prototype.grayscale=Ss.prototype.greyscale; /*! * @pixi/filter-displacement - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/filter-displacement is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var As=function(t,e){return(As=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var Os=function(t){function e(e,r){var n=this,i=new re;return e.renderable=!1,(n=t.call(this,"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:e._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])})||this).maskSprite=e,n.maskMatrix=i,null==r&&(r=20),n.scale=new te(r,r),n}return function(t,e){function r(){this.constructor=t}As(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.prototype.apply=function(t,e,r,n){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;var i=this.maskSprite.worldTransform,o=Math.sqrt(i.a*i.a+i.b*i.b),a=Math.sqrt(i.c*i.c+i.d*i.d);0!==o&&0!==a&&(this.uniforms.rotation[0]=i.a/o,this.uniforms.rotation[1]=i.b/o,this.uniforms.rotation[2]=i.c/a,this.uniforms.rotation[3]=i.d/a),t.applyFilter(this,e,r,n)},Object.defineProperty(e.prototype,"map",{get:function(){return this.uniforms.mapSampler},set:function(t){this.uniforms.mapSampler=t},enumerable:!1,configurable:!0}),e}(on),Is=function(t,e){return(Is=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var Rs=function(t){function e(){return t.call(this,"\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = filterVertexPosition();\n\n vFragCoord = aVertexPosition * outputFrame.zw;\n\n texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n\n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec4 color;\n\n color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n')||this}return function(t,e){function r(){this.constructor=t}Is(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e}(on),Ms=function(t,e){return(Ms=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};var Ps,Cs,Ds,Ns,ks,Ls,Bs,Us,Fs,js,Gs,Xs,Hs,zs,Vs,Ys,Ws,qs,Ks,$s=function(t){function e(e,r){void 0===e&&(e=.5),void 0===r&&(r=Math.random());var n=t.call(this,Ln,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n",{uNoise:0,uSeed:0})||this;return n.noise=e,n.seed=r,n}return function(t,e){function r(){this.constructor=t}Ms(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),Object.defineProperty(e.prototype,"noise",{get:function(){return this.uniforms.uNoise},set:function(t){this.uniforms.uNoise=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"seed",{get:function(){return this.uniforms.uSeed},set:function(t){this.uniforms.uSeed=t},enumerable:!1,configurable:!0}),e}(on);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(Ps||(Ps={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(Cs||(Cs={})),function(t){t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL"}(Ds||(Ds={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(Ns||(Ns={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(ks||(ks={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(Ls||(Ls={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(Bs||(Bs={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(Us||(Us={})),function(t){t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT"}(Fs||(Fs={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(js||(js={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(Gs||(Gs={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL"}(Xs||(Xs={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA"}(Hs||(Hs={})),function(t){t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT"}(zs||(zs={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(Vs||(Vs={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(Ys||(Ys={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}(Ws||(Ws={})),function(t){t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH"}(qs||(qs={})),function(t){t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER"}(Ks||(Ks={}));var Js=new re;ve.prototype._cacheAsBitmap=!1,ve.prototype._cacheData=null,ve.prototype._cacheAsBitmapResolution=null,ve.prototype._cacheAsBitmapMultisample=qs.NONE;var Zs=function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null};Object.defineProperties(ve.prototype,{cacheAsBitmapResolution:{get:function(){return this._cacheAsBitmapResolution},set:function(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get:function(){return this._cacheAsBitmapMultisample},set:function(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Zs),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),ve.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},ve.prototype._initCachedDisplayObject=function(t){var e;if(!this._cacheData||!this._cacheData.sprite){var r=this.alpha;this.alpha=1,t.batch.flush();var n=this.getLocalBounds(null,!0).clone();if(this.filters){var i=this.filters[0].padding;n.pad(i)}n.ceil(lt.RESOLUTION);var o=t.renderTexture.current,a=t.renderTexture.sourceFrame.clone(),s=t.renderTexture.destinationFrame.clone(),u=t.projection.transform,c=or.create({width:n.width,height:n.height,resolution:this.cacheAsBitmapResolution||t.resolution,multisample:null!==(e=this.cacheAsBitmapMultisample)&&void 0!==e?e:t.multisample}),h="cacheAsBitmap_"+Lt();this._cacheData.textureCacheId=h,Ge.addToCache(c.baseTexture,h),nr.addToCache(c,h);var f=this.transform.localTransform.copyTo(Js).invert().translate(-n.x,-n.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:c,clear:!0,transform:f,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=u,t.renderTexture.bind(o,a,s),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var l=new Jo(c);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-n.x/n.width,l.anchor.y=-n.y/n.height,l.alpha=r,l._bounds=this._bounds,this._cacheData.sprite=l,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=l.containsPoint.bind(l)}},ve.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},ve.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(null,!0),r=this.alpha;this.alpha=1;var n=t.context,i=t._projTransform;e.ceil(lt.RESOLUTION);var o=or.create({width:e.width,height:e.height}),a="cacheAsBitmap_"+Lt();this._cacheData.textureCacheId=a,Ge.addToCache(o.baseTexture,a),nr.addToCache(o,a);var s=Js;this.transform.localTransform.copyTo(s),s.invert(),s.tx-=e.x,s.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:o,clear:!0,transform:s,skipUpdateTransform:!1}),t.context=n,t._projTransform=i,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=r;var u=new Jo(o);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-e.x/e.width,u.anchor.y=-e.y/e.height,u.alpha=r,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=u.containsPoint.bind(u)}},ve.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},ve.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},ve.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Ge.removeFromCache(this._cacheData.textureCacheId),nr.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},ve.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)}, /*! * @pixi/mixin-get-child-by-name - v6.1.3 * Compiled Mon, 13 Sep 2021 15:29:31 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ ve.prototype.name=null,_e.prototype.getChildByName=function(t,e){for(var r=0,n=this.children.length;r0){var l=s.x-t[h].x,d=s.y-t[h].y,p=Math.sqrt(l*l+d*d);s=t[h],a+=p/u}else a=h/(c-1);i[f]=a,i[f+1]=0,i[f+2]=a,i[f+3]=1}var v=0;for(h=0;h0?this.textureScale*this._width/2:this._width/2;n/=h,i/=h,n*=f,i*=f,o[c]=u.x+n,o[c+1]=u.y+i,o[c+2]=u.x-n,o[c+3]=u.y-i,r=u}this.buffers[0].update()}},e.prototype.update=function(){this.textureScale>0?this.build():this.updateVertices()},e}(Ua),nu=(function(t){function e(e,r,n){void 0===n&&(n=0);var i=this,o=new ru(e.height,r,n),a=new Ba(e);return n>0&&(e.baseTexture.wrapMode=nt.REPEAT),(i=t.call(this,o,a)||this).autoUpdate=!0,i}tu(e,t),e.prototype._render=function(e){var r=this.geometry;(this.autoUpdate||r._width!==this.shader.texture.height)&&(r._width=this.shader.texture.height,r.update()),t.prototype._render.call(this,e)}}(La),function(t){function e(e,r,n){var i=this,o=new eu(e.width,e.height,r,n),a=new Ba(nr.WHITE);return(i=t.call(this,o,a)||this).texture=e,i.autoResize=!0,i}return tu(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID;var t=this.geometry,e=this.shader.texture,r=e.width,n=e.height;!this.autoResize||t.width===r&&t.height===n||(t.width=this.shader.texture.width,t.height=this.shader.texture.height,t.build())},Object.defineProperty(e.prototype,"texture",{get:function(){return this.shader.texture},set:function(t){this.shader.texture!==t&&(this.shader.texture=t,this._textureID=-1,t.baseTexture.valid?this.textureUpdated():t.once("update",this.textureUpdated,this))},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this._textureID!==this.shader.texture._updateID&&this.textureUpdated(),t.prototype._render.call(this,e)},e.prototype.destroy=function(e){this.shader.texture.off("update",this.textureUpdated,this),t.prototype.destroy.call(this,e)},e}(La)),iu=(function(t){function e(e,r,n,i,o){void 0===e&&(e=nr.EMPTY);var a=this,s=new Ua(r,n,i);s.getBuffer("aVertexPosition").static=!1;var u=new Ba(e);return(a=t.call(this,s,u,null,o)||this).autoUpdate=!0,a}tu(e,t),Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype._render=function(e){this.autoUpdate&&this.geometry.getBuffer("aVertexPosition").update(),t.prototype._render.call(this,e)}}(La),function(t){function e(e,r,n,i,o){void 0===r&&(r=10),void 0===n&&(n=10),void 0===i&&(i=10),void 0===o&&(o=10);var a=t.call(this,nr.WHITE,4,4)||this;return a._origWidth=e.orig.width,a._origHeight=e.orig.height,a._width=a._origWidth,a._height=a._origHeight,a._leftWidth=r,a._rightWidth=i,a._topHeight=n,a._bottomHeight=o,a.texture=e,a}tu(e,t),e.prototype.textureUpdated=function(){this._textureID=this.shader.texture._updateID,this._refresh()},Object.defineProperty(e.prototype,"vertices",{get:function(){return this.geometry.getBuffer("aVertexPosition").data},set:function(t){this.geometry.getBuffer("aVertexPosition").data=t},enumerable:!1,configurable:!0}),e.prototype.updateHorizontalVertices=function(){var t=this.vertices,e=this._getMinScale();t[9]=t[11]=t[13]=t[15]=this._topHeight*e,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight*e,t[25]=t[27]=t[29]=t[31]=this._height},e.prototype.updateVerticalVertices=function(){var t=this.vertices,e=this._getMinScale();t[2]=t[10]=t[18]=t[26]=this._leftWidth*e,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth*e,t[6]=t[14]=t[22]=t[30]=this._width},e.prototype._getMinScale=function(){var t=this._leftWidth+this._rightWidth,e=this._width>t?1:this._width/t,r=this._topHeight+this._bottomHeight,n=this._height>r?1:this._height/r;return Math.min(e,n)},Object.defineProperty(e.prototype,"width",{get:function(){return this._width},set:function(t){this._width=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._height},set:function(t){this._height=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"leftWidth",{get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rightWidth",{get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"topHeight",{get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottomHeight",{get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()},enumerable:!1,configurable:!0}),e.prototype._refresh=function(){var t=this.texture,e=this.geometry.buffers[1].data;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,n=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.geometry.buffers[0].update(),this.geometry.buffers[1].update()}}(nu),function(t,e){return(iu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)});!function(t){function e(e,r){void 0===r&&(r=!0);var n=t.call(this,e[0]instanceof nr?e[0]:e[0].texture)||this;return n._textures=null,n._durations=null,n._autoUpdate=r,n._isConnectedToTicker=!1,n.animationSpeed=1,n.loop=!0,n.updateAnchor=!1,n.onComplete=null,n.onFrameChange=null,n.onLoop=null,n._currentTime=0,n._playing=!1,n._previousFrame=null,n.textures=e,n}(function(t,e){function r(){this.constructor=t}iu(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)})(e,t),e.prototype.stop=function(){this._playing&&(this._playing=!1,this._autoUpdate&&this._isConnectedToTicker&&(Ee.shared.remove(this.update,this),this._isConnectedToTicker=!1))},e.prototype.play=function(){this._playing||(this._playing=!0,this._autoUpdate&&!this._isConnectedToTicker&&(Ee.shared.add(this.update,this,be.HIGH),this._isConnectedToTicker=!0))},e.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},e.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},e.prototype.update=function(t){if(this._playing){var e=this.animationSpeed*t,r=this.currentFrame;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];for(n+=e/60*1e3;n<0;)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);n>=this._durations[this.currentFrame];)n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramer)&&this.onLoop(),this.updateTexture())}},e.prototype.updateTexture=function(){var t=this.currentFrame;this._previousFrame!==t&&(this._previousFrame=t,this._texture=this._textures[t],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame))},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var r=[],n=0;n=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},r("heVN"),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,r("pCvA"))},oTRi:function(t,e,r){"use strict";var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=e.unwrapKey=e.wrapKey=void 0;var i=n(r("NthX")),o=n(r("fFdx")),a=function(){var t=(0,o.default)(i.default.mark((function t(e,r,n,o){var a,s,u,c,h,f;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.name,s=void 0===a?"AES-KW":a,u=n.iv,void 0!==window.msCrypto){t.next=20;break}return t.prev=2,t.next=5,o.importKey("raw",r,{name:s},!1,["wrapKey","unwrapKey"]);case 5:return c=t.sent,t.next=8,o.importKey("raw",e,{name:s},!0,["wrapKey","unwrapKey"]);case 8:return h=t.sent,t.next=11,o.wrapKey("raw",h,c,{name:s,iv:u});case 11:return f=t.sent,t.abrupt("return",new Uint8Array(f));case 15:throw t.prev=15,t.t0=t.catch(2),new Error("WebCrypto_FailedToWrapKey - ".concat(t.t0.message));case 18:t.next=21;break;case 20:throw new Error("ThrowAwayIeAsap");case 21:case"end":return t.stop()}}),t,null,[[2,15]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();e.wrapKey=a;var s=function(){var t=(0,o.default)(i.default.mark((function t(e,r,n,o){var a,s,u,c,h;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.name,s=void 0===a?"AES-KW":a,u=n.iv,void 0!==window.msCrypto){t.next=21;break}return t.prev=2,t.next=5,o.importKey("raw",r,{name:s},!1,["wrapKey","unwrapKey"]);case 5:return c=t.sent,t.next=8,o.unwrapKey("raw",e,c,{name:s,iv:u},{name:"AES-GCM"},!0,["encrypt","decrypt"]);case 8:return h=t.sent,t.t0=Uint8Array,t.next=12,o.exportKey("raw",h);case 12:return t.t1=t.sent,t.abrupt("return",new t.t0(t.t1));case 16:throw t.prev=16,t.t2=t.catch(2),new Error("WebCrypto_FailedToUnwrapKey - ".concat(t.t2.message));case 19:t.next=22;break;case 21:throw new Error("ThrowAwayMsIeAsap");case 22:case"end":return t.stop()}}),t,null,[[2,16]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();e.unwrapKey=s;var u=function(){var t=(0,o.default)(i.default.mark((function t(e,r,n,o){var a,s,u,c,d,p,v,y,m,_,b;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.name,s=void 0===a?"AES-GCM":a,u=n.iv,c=n.additionalData,d=n.tagLength,p=h({name:s,iv:u,additionalData:c,tagLength:d}),void 0!==window.msCrypto){t.next=18;break}return t.prev=3,t.next=6,o.importKey("raw",r,p,!1,["encrypt","decrypt"]);case 6:return v=t.sent,t.next=9,o.encrypt(p,v,e);case 9:return y=t.sent,t.abrupt("return",new Uint8Array(y));case 13:throw t.prev=13,t.t0=t.catch(3),new Error("WebCrypto_EncryptionFailure: ".concat(t.t0.message));case 16:t.next=38;break;case 18:return t.prev=18,t.next=21,f("raw",r,p,!1,["encrypt","decrypt"],o);case 21:return m=t.sent,t.next=24,l(p,m,e,o);case 24:if(_=t.sent,"AES-GCM"!==s){t.next=32;break}return(b=new Uint8Array(_.ciphertext.byteLength+_.tag.byteLength)).set(new Uint8Array(_.ciphertext)),b.set(new Uint8Array(_.tag),_.ciphertext.byteLength),t.abrupt("return",b);case 32:return t.abrupt("return",new Uint8Array(_));case 33:t.next=38;break;case 35:throw t.prev=35,t.t1=t.catch(18),new Error("ThrowAwayMsIeAsap: ".concat(t.t1.message));case 38:case"end":return t.stop()}}),t,null,[[3,13],[18,35]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();e.encrypt=u;var c=function(){var t=(0,o.default)(i.default.mark((function t(e,r,n,o){var a,s,u,c,l,p,v,y,m,_,b;return i.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.name,s=n.iv,u=n.additionalData,c=n.tagLength,l=h({name:a,iv:s,additionalData:u,tagLength:c}),window.msCrypto){t.next=18;break}return t.prev=3,t.next=6,o.importKey("raw",r,l,!1,["encrypt","decrypt"]);case 6:return p=t.sent,t.next=9,o.decrypt(l,p,e);case 9:return v=t.sent,t.abrupt("return",new Uint8Array(v));case 13:throw t.prev=13,t.t0=t.catch(3),new Error("WebCrypto_DecryptionFailure: ".concat(t.t0.message));case 16:t.next=39;break;case 18:return t.prev=18,t.next=21,f("raw",r,l,!1,["encrypt","decrypt"],o);case 21:if(y=t.sent,"AES-GCM"!==a){t.next=30;break}return _=e.slice(0,e.length-c),b=e.slice(e.length-c,e.length),t.next=27,d(Object.assign(l,{tag:b}),y,_,o);case 27:m=t.sent,t.next=33;break;case 30:return t.next=32,d(l,y,e,o);case 32:m=t.sent;case 33:return t.abrupt("return",new Uint8Array(m));case 36:throw t.prev=36,t.t1=t.catch(18),new Error("ThrowAwayMsIeAsap: ".concat(t.t1.message));case 39:case"end":return t.stop()}}),t,null,[[3,13],[18,36]])})));return function(e,r,n,i){return t.apply(this,arguments)}}();e.decrypt=c;var h=function(t){var e=t.name,r=t.iv,n=t.additionalData,i=t.tagLength,o={};switch(e){case"AES-GCM":Object.assign(o,{name:e,iv:r,tagLength:8*i}),Object.assign(o,n.length>0?{additionalData:n}:{});break;case"AES-CBC":o.name=e,o.iv=r;break;case"AES-CTR":if(0===r.length||r.length>16)throw new Error("InvalidIVLength");o.name=e,o.counter=new Uint8Array(16),o.counter.set(r),o.counter[15]+=1,o.length=128}return o},f=function(t,e,r,n,i,o){return new Promise((function(a,s){var u=o.importKey(t,e,r,n,i);u.oncomplete=function(t){a(t.target.result)},u.onerror=function(){s("KeyImportingFailed")}}))},l=function(t,e,r,n){return new Promise((function(i,o){var a=n.encrypt(t,e,r);a.oncomplete=function(t){i(t.target.result)},a.onerror=function(){o("EncryptionFailure")}}))},d=function(t,e,r,n){return new Promise((function(i,o){var a=n.decrypt(t,e,r);a.oncomplete=function(t){i(t.target.result)},a.onerror=function(){o("DecryptionFailure")}}))}},omOp:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAlgorithmFromOid=n,e.getAlgorithmFromOidStrict=e.default=void 0;function n(t,e){return Object.keys(e).filter((function(r){return e[r].oid.toString()===t.toString()}))}e.default={namedCurves:{"P-256":{indutnyName:"p256",payloadSize:32,oid:[1,2,840,10045,3,1,7]},"P-384":{indutnyName:"p384",payloadSize:48,oid:[1,3,132,0,34]},"P-521":{indutnyName:"p521",payloadSize:66,oid:[1,3,132,0,35]},"P-256K":{indutnyName:"secp256k1",payloadSize:32,oid:[1,3,132,0,10]}},publicKeyAlgorithms:{EC:{oid:[1,2,840,10045,2,1]},RSA:{oid:[1,2,840,113549,1,1,1]}},passwordBasedEncryptionSchemes:{"pbeWithMD5AndDES-CBC":{oid:[1,2,840,113549,1,5,3],hash:"MD5",encrypt:"DES-CBC"},"pbeWithSHA1AndDES-CBC":{oid:[1,2,840,113549,1,5,10],hash:"SHA-1",encrypt:"DES-CBC"},pbes2:{oid:[1,2,840,113549,1,5,13]}},keyDerivationFunctions:{pbkdf2:{oid:[1,2,840,113549,1,5,12],defaultSaltLen:8}},pbkdf2Prfs:{hmacWithSHA1:{oid:[1,2,840,113549,2,7],hash:"SHA-1"},hmacWithSHA256:{oid:[1,2,840,113549,2,9],hash:"SHA-256"},hmacWithSHA384:{oid:[1,2,840,113549,2,10],hash:"SHA-384"},hmacWithSHA512:{oid:[1,2,840,113549,2,11],hash:"SHA-512"}},encryptionSchemes:{"des-ede3-cbc":{oid:[1,2,840,113549,3,7],keyLength:24,ivLength:8},"aes128-cbc":{oid:[2,16,840,1,101,3,4,1,2],keyLength:16,ivLength:16},"aes192-cbc":{oid:[2,16,840,1,101,3,4,1,22],keyLength:24,ivLength:16},"aes256-cbc":{oid:[2,16,840,1,101,3,4,1,42],keyLength:32,ivLength:16}},hashes:{"SHA-256":{hashSize:32},"SHA-384":{hashSize:48},"SHA-512":{hashSize:64},"SHA-1":{hashSize:20},MD5:{hashSize:16}}};e.getAlgorithmFromOidStrict=function(t,e){var r=n(t,e);if(0===r.length)throw new Error("UnsupportedAlgorithm");return r[0]}},ovh1:function(t,e,r){"use strict";var n=r("5QbJ"),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var r=0,n=t.length;r0||o>0;){var h=new i;h.update(c),h.update(t),e&&h.update(e),c=h.digest();var f=0;if(a>0){var l=s.length-a;f=Math.min(a,c.length),c.copy(s,l,0,f),a-=f}if(f0){var d=u.length-o,p=Math.min(o,c.length-f);c.copy(u,d,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}},phCo:function(t,e,r){"use strict";var n=r("8kJ5"),i=r("fOyB").assert;function o(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=o,o.fromPublic=function(t,e,r){return e instanceof o?e:new o(t,{pub:e,pubEnc:r})},o.fromPrivate=function(t,e,r){return e instanceof o?e:new o(t,{priv:e,privEnc:r})},o.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(t,e){return"string"==typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},o.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(t,e){this.priv=new n(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?i(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},o.prototype.derive=function(t){return t.mul(this.priv).getX()},o.prototype.sign=function(t,e,r){return this.ec.sign(t,this,e,r)},o.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},o.prototype.inspect=function(){return""}},pkQU:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.compute=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=n(r("wQqr")),u=i(r("ldBe")),c=i(r("w1Rh")),h=r("DCHf"),f=i(r("tFbo")),l=function(){var t=(0,a.default)(o.default.mark((function t(e){var r,n,i,a,c,h,f,l=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=l.length>1&&void 0!==l[1]?l[1]:"SHA-256",!(Object.keys(u.default.hashes).indexOf(r)<0)){t.next=3;break}throw new Error("UnsupportedHashAlgorithm");case 3:if(e instanceof Uint8Array){t.next=5;break}throw new Error("UnsupportedMessageType");case 5:if(n=s.getWebCrypto(),i=s.getNodeCrypto(),a=s.getMsCrypto(),f=!0,void 0===n||"function"!=typeof n.digest||void 0!==a){t.next=15;break}return t.next=12,n.digest(r,e).catch((function(t){h=t.message,f=!1}));case 12:c=t.sent,t.next=26;break;case 15:if(void 0===i){t.next=19;break}try{c=p(r,e,i)}catch(t){h=t.message,f=!1}t.next=26;break;case 19:if(void 0===a||"function"!=typeof a.digest){t.next=25;break}return t.next=22,d(r,e,a).catch((function(t){h=t.message,f=!1}));case 22:c=t.sent,t.next=26;break;case 25:f=!1;case 26:if(f){t.next=35;break}t.prev=27,c=v(r,e),t.next=35;break;case 31:throw t.prev=31,t.t0=t.catch(27),h="".concat(h," => ").concat(t.t0.message),new Error("UnsupportedEnvironment: ".concat(h));case 35:return t.abrupt("return",new Uint8Array(c));case 36:case"end":return t.stop()}}),t,null,[[27,31]])})));return function(e){return t.apply(this,arguments)}}();e.compute=l;var d=function(t,e,r){return new Promise((function(n,i){var o=r.digest(t,e);o.oncomplete=function(t){n(t.target.result)},o.onerror=function(t){i(t)}}))},p=function(t,e,r){var n=u.default.hashes[t].nodeName,i=r.createHash(n);return i.update(e),i.digest()},v=function(t,e){var n;if("MD5"===t)n=(0,c.default)(Array.from(e),{asBytes:!0});else if(["SHA3-512","SHA3-384","SHA3-256","SHA3-224"].indexOf(t)>=0){var i=new h.SHA3(8*u.default.hashes[t].hashSize),o=r("qykS").Buffer;i.update(o.from(e)),n=i.digest("binary")}else n=f.default[u.default.hashes[t].nodeName]().update(e).digest();return new Uint8Array(n)}},plIT:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,i=(n=r("LxOh"))&&n.__esModule?n:{default:n};var o=function(t){for(var e=t.A,r=t.C,n=t.D,o=t.W,a=0,s=0,u=0;u<5;u++){var c=2*u,h=2*(u+5),f=2*(u+10),l=2*(u+15),d=2*(u+20);r[c]=e[c]^e[h]^e[f]^e[l]^e[d],r[c+1]=e[c+1]^e[h+1]^e[f+1]^e[l+1]^e[d+1]}for(var p=0;p<5;p++){(0,i.default)(r,(p+1)%5)(o,0),a=o[0],s=o[1],o[0]=a<<1|s>>>31,o[1]=s<<1|a>>>31,n[2*p]=r[(p+4)%5*2]^o[0],n[2*p+1]=r[(p+4)%5*2+1]^o[1];for(var v=0;v<25;v+=5)e[2*(v+p)]^=n[2*p],e[2*(v+p)+1]^=n[2*p+1]}};e.default=o},psIG:function(t,e,r){"use strict";function n(t,e,r,n,i,o,a,s){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),o&&(c._scopeId="data-v-"+o),a?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=u):i&&(u=s?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var h=c.render;c.render=function(t,e){return u.call(e),h(t,e)}}else{var f=c.beforeCreate;c.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:c}}r.d(e,"a",(function(){return n}))},qIg4:function(t,e,r){window,t.exports=function(t){function e(e){for(var r,i,o=e[0],a=e[1],s=0,c=[];s=0&&ot[t].splice(r,1)}}var ct=function(){function t(){}return t.prototype.invoke=function(){return void 0===t&&(t=window.navigator.userAgent),/LIFF\/SubWindow/.test(t);var t},t}(),ht=function(){function t(t){this.storage=t}return t.prototype.invoke=function(){return!!this.getInSubWindow()||!!new URLSearchParams(window.location.search).has("liff.subwindow")&&(this.setInSubWindow(!0),!0)},t.prototype.getInSubWindow=function(){var t=this.storage.getItem(c+":"+this.getLiffId()+":inSubWindow");return null!==t&&JSON.parse(t)},t.prototype.setInSubWindow=function(t){this.storage.setItem(c+":"+this.getLiffId()+":inSubWindow",String(t))},t.prototype.getLiffId=function(){var t=M().liffId;if(!t)throw g("INVALID_CONFIG","liffId is necessary for liff.init()");return t},t}(),ft=new(function(){function t(){v()?this.impl=new ct:this.impl=new ht(window.sessionStorage)}return Object.defineProperty(t.prototype,"name",{get:function(){return"isSubWindow"},enumerable:!0,configurable:!0}),t.prototype.install=function(){return this.impl.invoke.bind(this.impl)},t}()),lt=ft.install();function dt(){if(lt())throw g("UNAUTHORIZED","this api can be only called in parent window")}function pt(){if(!lt())throw g("UNAUTHORIZED","this api can be only called in child window")}function vt(t,e){return dt(),st(t,e)}function yt(t,e){return dt(),ut(t,e)}function mt(){var t=navigator.userAgent.match(/Line\/\d+(\.\d+)*/i);return t?t[0].slice(5):null}function _t(t,e){if(t===e)return 0;for(var r=t.split("."),n=e.split("."),i=Math.max(r.length,n.length),o=0;o0?1:-1}return 0}var bt=["subwindowOpen","shareTargetPicker","multipleLiffTransition","scanCode","getAdvertisingId","addToHomeScreen","bluetoothLeFunction","skipChannelVerificationScreen"];function gt(t){var e,r=X();return null===(e=null==r?void 0:r.availability)||void 0===e?void 0:e[t]}function wt(t,e){var r=mt();return!!r&&!(e&&_t(r,e)>0)&&_t(r,t)>=0}function Et(t){var e=gt(t);if(!e)return!1;var r=e.permission,n=e.minVer,i=e.unsupportedFromVer;return!!r&&!!v()&&wt(n,i)}var xt={shareTargetPicker:function(){if(!W())return!1;var t=gt("shareTargetPicker");if(!t)return!1;var e=t.permission,r=t.minVer;if(!e)return!1;if(v()){var n=mt();return null!==n&&_t(n,r)>=0}return!0},multipleLiffTransition:function(){var t=gt("multipleLiffTransition");if(!t)return!1;var e=t.permission;return v()&&e},subwindowOpen:function(){var t=gt("subwindowOpen");return!(!t||!t.permission)&&(!v()||wt(t.minVer,t.unsupportedFromVer))},scanCode:function(){return Et("scanCode")},getAdvertisingId:function(){return Et("getAdvertisingId")},addToHomeScreen:function(){return Et("addToHomeScreen")},bluetoothLeFunction:function(){return Et("bluetoothLeFunction")},skipChannelVerificationScreen:function(){return Et("skipChannelVerificationScreen")}},Tt=function(t){if(!bt.includes(t))throw g(s,"Unexpected API name.");var e=xt[t];return!e||e()};function St(t){var e=new URL(t),r=e.hash.slice(1).split("&").filter((function(t){return!f.some((function(e){return t.includes(e+"=")}))})).join("&");return e.hash=r,e.toString()}function At(t,e){if(!t)throw new Error("addParamsToUrl: invalid URL");var r=new URL(t);return Object.entries(e).forEach((function(t){var e=Object(m.__read)(t,2),n=e[0],i=e[1];r.searchParams.set(n,i)})),r.toString()}function Ot(t){var e=t.match(new RegExp("^https://liff.line.me/(\\d+-\\w+)"));return e&&e[1]}function It(t){return J(et("subWindowGetOrigin")(t))}var Rt,Mt,Pt,Ct,Dt=function(){function t(t){this.storage=t}return t.prototype.getItem=function(t){return this.storage.getItem(this.getKeyPrefix()+":"+t)},t.prototype.setItem=function(t,e){this.storage.setItem(this.getKeyPrefix()+":"+t,e)},t.prototype.removeItem=function(t){this.storage.removeItem(this.getKeyPrefix()+":"+t)},t.prototype.clear=function(){this.storage.clear()},t.prototype.getKeyPrefix=function(){return c+":"+this.getLiffId()},t.prototype.getLiffId=function(){var t=M().liffId;if(!t)throw g("INVALID_CONFIG","liffId is necessary for liff.init()");return t},t}(),Nt=new Dt(new(function(){function t(){this.map={}}return t.prototype.clear=function(){this.map={}},t.prototype.getItem=function(t){var e=this.map[t];return void 0===e?null:e},t.prototype.setItem=function(t,e){this.map[t]=e},t.prototype.removeItem=function(t){delete this.map[t]},t.prototype.key=function(t){var e=Object.keys(this.map)[t];return void 0===e?null:e},Object.defineProperty(t.prototype,"length",{get:function(){return Object.keys(this.map).length},enumerable:!0,configurable:!0}),t}()));function kt(){var t=Nt.getItem("subWindowStatusUpdated");return null!==t&&JSON.parse(t)}function Lt(t){Nt.setItem("subWindowStatusUpdated",String(t))}function Bt(t){Rt=t}function Ut(){return Rt}function Ft(){return Pt}var jt=new Dt(window.sessionStorage);function Gt(){return jt.getItem("mainWindowOrigin")}function Xt(t,e){return void 0===e&&(e={}),Object(m.__awaiter)(this,void 0,void 0,(function(){var r,n,i,o,a,s,u;return Object(m.__generator)(this,(function(c){switch(c.label){case 0:if(r=M().liffId,n=Gt(),!window.opener||!n||!r)throw g("EXCEPTION_IN_SUBWINDOW");i=!1,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,It(r)];case 2:return o=c.sent(),i=o.subwindowCommonModule,[3,4];case 3:throw a=c.sent(),T.debug(a),g("EXCEPTION_IN_SUBWINDOW");case 4:return s=JSON.stringify(e),u=i?n:location.origin,window.opener.postMessage({status:t,result:s},u),[2,{status:t,result:s}]}}))}))}function Ht(t){var e=Ct;if(t.origin===e){var r=t.data;if(r){var n,i=r.status,o=r.result;try{n=JSON.parse(o||"{}")}catch(t){n={}}switch(i){case"healthCheck":window.clearInterval(Ft());break;case"cancel":case"submit":Lt(!0),window.clearInterval(Ft()),window.removeEventListener("message",Ht),at(i,n);break;default:T.debug("unexpected message")}}}}function zt(){window.clearInterval(Mt),window.clearInterval(Ft()),window.removeEventListener("message",Ht)}function Vt(t){return Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r,n,i,o,a,u,c,h,f,l;return Object(m.__generator)(this,(function(d){switch(d.label){case 0:e=t.msit,r=t.mstChallenge,n=t.onSuccess,i=t.onError,o=t.reconnectCount,a=void 0===o?0:o,d.label=1;case 1:return d.trys.push([1,3,,6]),[4,Z(et("subWindowSubscribe"),{method:"POST",body:JSON.stringify({msit:e,mstChallenge:r})})];case 2:return u=d.sent(),[3,6];case 3:return d.sent(),[4,Yt()];case 4:return d.sent(),[4,qt(Vt,{msit:e,mstChallenge:r,onSuccess:n,onError:i,reconnectCount:a+=1})];case 5:return d.sent(),[2];case 6:return u.status>=500?[4,Yt()]:[3,9];case 7:return d.sent(),[4,qt(Vt,{msit:e,mstChallenge:r,onSuccess:n,onError:i,reconnectCount:a+=1})];case 8:return d.sent(),[3,20];case 9:return u.status>=400&&500>u.status?[4,Wt(u)]:[3,11];case 10:return(h=d.sent())?(c=h.errorDetail,i(g(s,c))):i(g("UNKNOWN","Some error happened in the server")),[3,20];case 11:return 200!==u.status?[3,19]:[4,Wt(u)];case 12:return(h=d.sent())?[3,13]:(i(g("UNKNOWN","Some error happened in the server")),[3,18]);case 13:switch(f=h.status,l=h.result,f){case"error":return[3,14];case"close":case"cancel":case"submit":return[3,16]}return[3,17];case 14:return[4,qt(Vt,{msit:e,mstChallenge:r,onSuccess:n,onError:i,reconnectCount:a})];case 15:return d.sent(),[3,18];case 16:return n(f,l),[3,18];case 17:i(g("UNKNOWN","Some error happened in the server")),d.label=18;case 18:return[3,20];case 19:i(g("UNKNOWN","Some error happened in the server")),d.label=20;case 20:return[2]}}))}))}function Yt(){return new Promise((function(t){return setTimeout(t,1e3)}))}function Wt(t){return Object(m.__awaiter)(this,void 0,void 0,(function(){return Object(m.__generator)(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,t.json()];case 1:return[2,e.sent()];case 2:return e.sent(),[2,null];case 3:return[2]}}))}))}function qt(t,e){return Object(m.__awaiter)(this,void 0,void 0,(function(){return Object(m.__generator)(this,(function(r){switch(r.label){case 0:return e.reconnectCount>=10?(e.onError(g("UNKNOWN","Failed to connect")),[3,3]):[3,1];case 1:return[4,t(e)];case 2:r.sent(),r.label=3;case 3:return[2]}}))}))}function Kt(t){var e={};return Object.keys(t).forEach((function(r){"closeButtonColor"===r?"white"===t[r]?e[r]="#ffffff":e[r]="#000000":e[r]=t[r]})),e}var $t={height:"full",closeButtonPosition:"right",closeButtonColor:"black",closeButtonLabel:""};function Jt(t){if(!Tt("subwindowOpen"))throw g("FORBIDDEN","No permission for liff.subWindow.open()");return dt(),v()?function(t){var e=t.appData,r=t.native,n=M().liffId,i=z(),o=Ot(t.url);if(!n)return Promise.reject(g("UNAUTHORIZED","liffId is invalid"));if(!i)return Promise.reject(g("UNAUTHORIZED","mst_challenge is invalid"));if(!o)return Promise.reject(g(s,"params.url must be liff url"));var a=Object.assign({},$t,r);return function(t){var e=t.mainLiffId,r=t.subLiffId,n=t.mstChallenge,i=t.appData,o=t.view;return e&&n?J(et("subWindowGetMSIT"),{method:"POST",body:JSON.stringify({mainLiffId:e,subLiffId:r,mstChallenge:n,appData:i,view:o})}):Promise.reject(g(s,"no proper argument"))}({mainLiffId:n,subLiffId:o,mstChallenge:i,appData:e,view:Kt(a)}).then((function(e){var r=e.msit;Vt({msit:r,mstChallenge:i,onSuccess:function(t,e){at(t,e)},onError:function(t){at("error",t)}}),function(t,e){var r=t.url,n=new URLSearchParams;n.set("msit",e),location.href="liff://subwindow?url="+encodeURIComponent(r)+"&"+n.toString()}(t,r)}))}(t):function(t){var e=Ot(t.url);if(!e)return Promise.reject(g(s,"params.url must be liff url"));!function(){zt(),Lt(!1);var t=Ut();t&&(t.close(),Bt(null))}();var r,n,i,o,u=t.url,c=t.appData,h=new URL(u);h.searchParams.append("liff.subwindow","true"),h.hostname=(r=h.hostname,i=(n=Object(m.__read)(r.split(".")))[0],o=n.slice(1),Object(m.__spread)([i+"-ext"],o).join("."));var f=h.toString();return Bt("ios"!==a()||d()?window.open("","liffsubwindow","width=480, height=640, menubar=no, toolbar=no, scrollbars=yes"):window.open()),It(e).then((function(t){var e,r=t.origin,n=t.subwindowCommonModule,i=Ut();if(!i)throw g("CREATE_SUBWINDOW_FAILED");n?(function(t){Ct=t}(r),window.addEventListener("message",Ht),i.location.href=f,e=function(t,e){var r=Ut(),n={type:"healthCheck"};return e&&(n.message=JSON.stringify(e)),window.setInterval((function(){null==r||r.postMessage(n,t)}),100)}(r,c),Pt=e,function(t){Mt=t}(window.setInterval((function(){var t=Ut();t&&t.closed&&(zt(),Bt(null),!1===kt()&&(Lt(!0),at("close",{})))}),100))):i.close()}))}(t)}function Zt(t){var e=t.match(/([^-]+)-[^-]+/);return e&&e[1]}function Qt(){var t,e,r=X();return!!r&&"square_chat"!==r.type&&(Tt("skipChannelVerificationScreen")||!v()&&(null===(e=null===(t=r.availability)||void 0===t?void 0:t.skipChannelVerificationScreen)||void 0===e?void 0:e.permission))}function te(){var t=M().liffId;if(t)return J(et("unauthorizedPermissions")+"?liffId="+t,{headers:{"Content-Type":"application/json",Accept:"application/json",Authorization:"Bearer "+D()}});throw g("UNAUTHORIZED","liffId is required")}var ee,re=function(){function t(t,e){var r=this;this.onSubmit=function(t){var e=t.newAccessToken,n=t.error;return Object(m.__awaiter)(r,void 0,void 0,(function(){return Object(m.__generator)(this,(function(t){return e?this.resolve({newAccessToken:e}):n&&this.reject(g("UNKNOWN",n)),this.teardown(),[2]}))}))},this.onClose=function(){return Object(m.__awaiter)(r,void 0,void 0,(function(){return Object(m.__generator)(this,(function(t){return this.reject(g("UNAUTHORIZED","user didn't allow the agreement")),this.teardown(),[2]}))}))},this.onCancel=function(){return Object(m.__awaiter)(r,void 0,void 0,(function(){return Object(m.__generator)(this,(function(t){return this.reject(g("UNAUTHORIZED","user didn't allow the agreement")),this.teardown(),[2]}))}))},this.onError=function(t){return Object(m.__awaiter)(r,void 0,void 0,(function(){return Object(m.__generator)(this,(function(e){return this.reject(t),this.teardown(),[2]}))}))},this.resolve=t,this.reject=e,this.setup()}return t.prototype.setup=function(){vt("submit",this.onSubmit),vt("close",this.onClose),vt("cancel",this.onCancel),vt("error",this.onError)},t.prototype.teardown=function(){yt("submit",this.onSubmit),yt("close",this.onClose),yt("cancel",this.onCancel),yt("error",this.onError),ee=void 0},t.prototype.open=function(){var t=M().liffId;t?Jt({url:"https://liff.line.me/1656032314-Xgrw5Pmk",appData:{liffId:t,channelId:Zt(t),accessToken:D()}}):this.reject(g("UNAUTHORIZED","liffId is required"))},t}();function ne(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t;return Object(m.__generator)(this,(function(e){switch(e.label){case 0:if(!Qt())throw g("FORBIDDEN","SkipChannelVerificationScreen is unavailable.");return ee&&ee.teardown(),[4,te()];case 1:return t=e.sent(),(v()?t:t.filter((function(t){return"chat_message.write"!==t}))).length>0?[4,new Promise((function(t,e){(ee=new re(t,e)).open()}))]:[3,3];case 2:return N(e.sent().newAccessToken),[3,4];case 3:throw g("FORBIDDEN","All permissions have already been approved.");case 4:return[2]}}))}))}function ie(t,e){var r=this;return function(){for(var n=[],i=0;i0?n[n.length-1]:{}).ignorePermissionCheck,i=void 0!==r&&r,[4,it(e)];case 1:if("unavailable"!==(o=a.sent().state))return[3,2];throw g("FORBIDDEN","The permission is not in LIFF app scope.");case 2:return"prompt"!==o||!Qt()||i||!v()&&"chat_message.write"===e?[3,4]:[4,ne()];case 3:return a.sent(),[3,5];case 4:i&&n.pop(),a.label=5;case 5:return[4,t.apply(void 0,Object(m.__spread)(n))];case 6:return[2,a.sent()]}}))}))}}r(4);var oe={},ae=!1;function se(t,e){ae||(ae=!0,window.addEventListener("liffEvent",(function(t){t&&t.detail&&t.detail.type&&oe[t.detail.type]&&oe[t.detail.type].forEach((function(e){return e(t)}))}))),oe[t]?oe[t].push(e):oe[t]=[e]}function ue(t,e){var r=oe[t];if(r&&Array.isArray(r)){var n=r.indexOf(e);n>=0&&r.splice(n,1)}}function ce(t,e,r){void 0===e&&(e={}),void 0===r&&(r="");var n=j();if(!n)throw g("FORBIDDEN","Invalid featureToken for client features");if(!window._liff||!window._liff.postMessage)throw g(s,"postMessage is not available from client");T.debug("[js postMessage to client]",t,r,e),window._liff.postMessage(t,n,r,JSON.stringify(e))}var he="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function fe(t){for(var e="",r=0;r=0||"android"===a()&&_t(t,"11.6.0")>=0)?location.href="liff://close":window._liff&&window._liff.postMessage?null!==t&&_t(t,"10.15.0")>=0?"ios"===a()?window._liff.postMessage("closeWindow",""):window._liff.postMessage("closeWindow","","",""):le("closeWindow"):window.close()}function pe(){return J(et("profile"))}var ve=function(t){return"object"==typeof t&&null!==t&&function(t){return"string"==typeof t||t instanceof String}(t.type)};function ye(t){return Promise.reject(g(s,t))}function me(t){return Object.keys(t).map((function(e){var r=t[e],n=function(t){return void 0!==t?encodeURIComponent(e)+"="+encodeURIComponent(t):encodeURIComponent(e)};return Array.isArray(r)?r.map((function(t){return n(t)})).join("&"):n(r)})).join("&")}function _e(t,e){var r=be,n=Object(m.__read)(e.split("."),1)[0],i=r[e];i&&t.removeEventListener(n,i),r[e]=null}var be={},ge=!1,we=!1;function Ee(t,e,r,n){if(void 0===r&&(r={}),"object"!=typeof t||!t.postMessage)throw g(s,"target must be window object");if("string"!=typeof e)throw g(s,"keyname must be string");if("object"!=typeof r)throw g(s,"incorrect body format. It should be Object or Array comprised of Object");if(!n)throw g(s,"serverEndPointUrl isn't passed. please fill up with proper url");if("*"===n)throw new Error("serverEndPointUrl doesn't allow to set '*'");var i={name:e,body:r};t.postMessage(i,n)}function xe(t,e,r,n){!function(t,e,r,n){ge||(we=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!1}});window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){t=!1}return t}(),ge=!0);var i=Object(m.__read)(e.split("."),1)[0];new Promise((function(o){var a=function(i){o(i),r&&r(i),n&&n.once&&_e(t,e)};be[e]=a,t.addEventListener(i,a,!!we&&n)}))}(t,"message."+e,function(t,e,r){return function(n){T.debug("messageReceive",n),n.origin===r&&n.data.name===t&&e(n)}}(e,r,n))}var Te=function(){function t(){this.payloadToShareTargetPicker=null,this.popupWindow=null,this.doesWaitForSubwindowResult=!1}return t.getInstance=function(){return t.instance?t.instance.reset():t.instance=new t,t.instance},t.prototype.init=function(t){return Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r;return Object(m.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),this.liffId=t.referrer.liffId,this.doesWaitForSubwindowResult=!(!t.options||!t.options.waitForSubwindowResult),this.allowPostMessageOrigin=this.initAllowPostMessageOrigin(),this.payloadToShareTargetPicker=this.buildPayloadToShareTargetPicker(t),window.AbortController&&(this.abortController=new window.AbortController),this.prepareAnotherWindow(),[4,this.initOtt()];case 1:return n.sent(),this.initListener(),this.openAnotherWindow(),this.doesWaitForSubwindowResult?[4,this.pollingShareResult()]:[3,3];case 2:return e=n.sent(),this.finalize(),[2,e];case 3:return[2];case 4:return[3,6];case 5:if(r=n.sent(),this.finalize(),"AbortError"!==r.name)throw r;return[3,6];case 6:return[2]}}))}))},t.prototype.resetAllVariables=function(){this.liffId="",this.allowPostMessageOrigin="",this.payloadToShareTargetPicker=null,this.ott="",this.popupWindow=null,this.timeoutIDForHealthCheck=null,this.abortController=null,this.internalError=null,this.doesWaitForSubwindowResult=!1},t.prototype.reset=function(){this.finalize(),this.resetAllVariables()},t.prototype.finalize=function(){var t,e;this.abortController&&this.abortController.abort(),v()||(t=this.timeoutIDForHealthCheck,e=this.popupWindow,_e(window,"message.receivedHealthcheck"),t&&clearTimeout(t),e&&!e.closed&&e.close())},t.prototype.buildPayloadToShareTargetPicker=function(t){return{messages:t.messages,referrer:t.referrer}},t.prototype.initAllowPostMessageOrigin=function(t){return void 0===t&&(t=et("shareTargetPicker")),function(t){var e=t.match(/^(https?:\/\/.*?)\//);return e&&e[1]||""}(t)},t.prototype.initOtt=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t,e,r;return Object(m.__generator)(this,(function(n){switch(n.label){case 0:return this.abortController&&(t=this.abortController.signal),e=et("shareTargetPickerOtt")+"/"+this.liffId+"/ott",r=this,[4,J(e,{method:"GET",signal:t}).then((function(t){return t.ott}))];case 1:return r.ott=n.sent(),[2]}}))}))},t.prototype.prepareAnotherWindow=function(){v()||("ios"!==a()||d()?this.popupWindow=window.open("","liffpopup","width=480, height=640, menubar=no, toolbar=no, scrollbars=yes"):this.popupWindow=window.open())},t.prototype.openAnotherWindow=function(){if(v()&&this.payloadToShareTargetPicker)t=this.liffId,e=this.ott,r=this.payloadToShareTargetPicker,n={liffId:t,ott:e,data:JSON.stringify(r),closeModals:!1},location.href="line://picker?"+me(n);else{if(this.timeoutIDForHealthCheck=window.setTimeout(this.healthCheck.bind(this),1e3),!this.popupWindow)throw g("CREATE_SUBWINDOW_FAILED");!function(t,e,r){var n={liffId:e,ott:r};t.location.href=et("shareTargetPicker")+"?"+me(n)}(this.popupWindow,this.liffId,this.ott)}var t,e,r,n},t.prototype.initListener=function(){var t,e;v()||(t=this.onReceivedHealthcheck.bind(this),e=this.allowPostMessageOrigin,xe(window,"receivedHealthcheck",t,e))},t.prototype.healthCheck=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t;return Object(m.__generator)(this,(function(e){switch(e.label){case 0:if(this.popupWindow&&!this.popupWindow.closed)return[3,7];if(!this.doesWaitForSubwindowResult)return[3,5];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.onCanceled()];case 2:return e.sent(),[3,4];case 3:return t=e.sent(),this.internalError=t,[3,4];case 4:return[3,6];case 5:this.finalize(),e.label=6;case 6:return[3,8];case 7:Ee(this.popupWindow,"healthcheck",void 0,this.allowPostMessageOrigin),this.timeoutIDForHealthCheck=window.setTimeout(this.healthCheck.bind(this),1e3),e.label=8;case 8:return[2]}}))}))},t.prototype.onReceivedHealthcheck=function(){if(!this.popupWindow||!this.payloadToShareTargetPicker)throw g("CREATE_SUBWINDOW_FAILED");Ee(this.popupWindow,"ready",this.payloadToShareTargetPicker,this.allowPostMessageOrigin)},t.prototype.onCanceled=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(m.__generator)(this,(function(r){switch(r.label){case 0:if(v()||!this.ott)throw new Error("need to call with ott in client");return this.abortController&&(t=this.abortController.signal),e={liffId:this.liffId,ott:this.ott},[4,J(et("shareTargetPickerResult")+"?"+me(e),{method:"POST",signal:t,headers:{Accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:"result=CANCEL"})];case 1:return[2,"ok"===r.sent().status]}}))}))},t.prototype.getShareResult=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(m.__generator)(this,(function(r){if(!this.ott)throw new Error("need to call with ott in client");return this.abortController&&(t=this.abortController.signal),e={liffId:this.liffId,ott:this.ott},T.debug("fetch: getShareResult"),[2,J(et("shareTargetPickerResult")+"?"+me(e),{method:"GET",headers:{Accept:"application/json"},signal:t})]}))}))},t.isPollingTimeOut=function(t,e){return(e-t)/6e4>=10},t.prototype.pollingShareResult=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r;return Object(m.__generator)(this,(function(n){switch(n.label){case 0:e=Date.now(),n.label=1;case 1:if(t.isPollingTimeOut(e,Date.now()))return[3,4];if(this.internalError)throw this.internalError;return[4,this.getShareResult()];case 2:if((r=n.sent())&&r.result)switch(r.result){case"SUCCESS":return[2,{status:"success"}];case"CANCEL":return[2];case"FAILURE":default:throw new Error(r.resultDescription)}return[4,new Promise((function(t){setTimeout(t,500)}))];case 3:return n.sent(),[3,1];case 4:throw new Error("Timeout: not finished within 10min")}}))}))},t}();function Se(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t,e;return Object(m.__generator)(this,(function(r){switch(r.label){case 0:if(!W())return[3,6];r.label=1;case 1:return r.trys.push([1,5,,6]),(t=U())&&t.sub?[2,t.sub]:[3,2];case 2:return[4,pe()];case 3:if((e=r.sent())&&e.userId)return[2,e.userId];r.label=4;case 4:return[3,6];case 5:return r.sent(),T.debug("can't retrieve Mid/Uid because of something wrong"),[3,6];case 6:return[2]}}))}))}function Ae(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t;return Object(m.__generator)(this,(function(e){switch(e.label){case 0:return[4,Se()];case 1:return(t=e.sent())&&"u"===t.substring(0,1)?[2,t]:[2]}}))}))}var Oe=function(){function t(t){this.liffCore=t,this.utsExtra={isLiffSuccessful:!1,isLoggedIn:!1,id:"",version:""},this.injected=!1}return Object.defineProperty(t,"CUSTOMPLACEID_INIT",{get:function(){return"liff.init"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"CUSTOMTYPE",{get:function(){return"liffSdk"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GENERAL_UTS_ID",{get:function(){return"liff_general"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"GENERAL_APP_NAME",{get:function(){return"LIFF General"},enumerable:!0,configurable:!0}),Object.defineProperty(t,"LiffUtsLoginStatus",{get:function(){return{isLoggedIn:1,isLiffSuccessful:2}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return"analytics"},enumerable:!0,configurable:!0}),t.prototype.install=function(t){(0,t.addHooks)({startInit:this.startInit.bind(this),beforeInitFinished:this.beforeInitFinished.bind(this),beforeInitSuccess:this.beforeInitSuccess.bind(this),initError:this.initError.bind(this)})},t.prototype.changeRatioToUTSFormat=function(t){if(t&&Number.isFinite(t))return Math.round(100*t)},t.prototype.setExtra=function(){var e=this.utsExtra,r=e.isLiffSuccessful,n=e.isLoggedIn,i=e.id,o=e.version,a=(n?t.LiffUtsLoginStatus.isLoggedIn:0)|(r?t.LiffUtsLoginStatus.isLiffSuccessful:0);this.uts.setExtra("liff",{id:i,loginStatus:a,version:o})},t.prototype.assignUtsExtra=function(t){Object.assign(this.utsExtra,t)},t.prototype.setVersion=function(t){this.assignUtsExtra({version:t}),T.debug("[LIFFUTS][SDK version] "+t),this.setExtra()},t.prototype.setLiffId=function(t){this.assignUtsExtra({id:t}),T.debug("[LIFFUTS][LIFFID] "+t),this.setExtra()},t.prototype.setIsLoggedIn=function(t){this.assignUtsExtra({isLoggedIn:t}),T.debug("[LIFFUTS][isLoggedIn] "+t),this.setExtra()},t.prototype.sendLiffInit=function(){T.debug("[LIFFUTS][sendCustom] liff.init"),this.uts.sendCustom({type:t.CUSTOMTYPE,params:{placeId:t.CUSTOMPLACEID_INIT}})},t.prototype.setIsLiffSuccessful=function(t){this.assignUtsExtra({isLiffSuccessful:t}),T.debug("[LIFFUTS][isLiffInitSuccessful] "+t),this.setExtra()},t.prototype.startInit=function(t){var e={};Object.keys(t).forEach((function(r){if(l.includes(r)){var n=t[r];"string"==typeof n&&n&&(e[r.replace(/^liff\.ref\./,"")]=n)}})),Object.keys(e).length>0&&(this.referrer=e)},t.prototype.beforeInitFinished=function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r,n,i,o,a,s,u,c,h,f,l;return Object(m.__generator)(this,(function(d){switch(d.label){case 0:if(e=X(),!(r=null==e?void 0:e.utsTracking))return[2];if("auto"!==(n=r.mode)&&"force"!==n)return[3,6];T.debug("[LIFFUTS] "+(new Date).toUTCString()),i=M(),o=i.liffId,a=i.analytics,d.label=1;case 1:return d.trys.push([1,3,,4]),s=this,[4,new Promise((function(t,e){var r=window.uts,n=document.createElement("script");n.type="text/javascript",n.src="https://static.line-scdn.net/uts/edge/4.0.0/uts.js",n.onload=function(){var e=window.uts;t(e),window.uts=r},n.onerror=function(t){e(t)},document.getElementsByTagName("head")[0].appendChild(n)}))];case 2:return s.uts=d.sent(),[3,4];case 3:return u=d.sent(),T.debug("[LIFFUTS] cannot load UTS, reason: "+u),[2];case 4:return c=void 0,h=void 0,"force"===n?(c={utsId:t.GENERAL_UTS_ID,appName:t.GENERAL_APP_NAME,appEnv:"release"},h={endpoint:"https://uts-front.line-apps.com",sampleRate:this.changeRatioToUTSFormat(r.sendRatio),version:"current"}):(c=Object(m.__assign)(Object(m.__assign)({},null==a?void 0:a.context),{utsId:(null==a?void 0:a.context.utsId)||t.GENERAL_UTS_ID,appName:(null==a?void 0:a.context.appName)||t.GENERAL_APP_NAME,appEnv:(null==a?void 0:a.context.appEnv)||"release"}),h=Object(m.__assign)(Object(m.__assign)({endpoint:"https://uts-front.line-apps.com"},null==a?void 0:a.options),{sampleRate:this.changeRatioToUTSFormat(r.sendRatio),version:"current"})),this.uts.init(c,h),[4,Ae()];case 5:(f=d.sent())&&(T.debug("[LIFFUTS][mid] "+f),this.uts.setMid(f)),(null==e?void 0:e.tid)&&(T.debug("[LIFFUTS][tid] "+e.tid),this.uts.setTid(e.tid)),this.referrer&&(T.debug("liff.ref.referrer",this.referrer),this.uts.setSessionParams(this.referrer)),o&&this.setLiffId(o),this.setIsLoggedIn(W()),this.setVersion("2.13.0"),l=St(location.href),T.debug("[LIFFUTS][url] "+l),this.uts.setUrl(l),this.liffCore.analytics=this.uts,this.injected=!0,d.label=6;case 6:return[2]}}))}))},t.prototype.beforeInitSuccess=function(){this.injected&&(this.setIsLiffSuccessful(!0),this.sendLiffInit())},t.prototype.initError=function(){this.injected&&(this.setIsLiffSuccessful(!1),this.sendLiffInit())},t}();function Ie(t){if(!t.mst||!t.status)return Promise.reject(g(s,"no proper argument"));var e=JSON.stringify(t);return J(et("subWindowPost"),{method:"POST",body:e})}var Re={on:st,off:ut,open:Jt,cancel:function(t){return void 0===t&&(t={}),pt(),v()?function(t){return void 0===t&&(t={}),Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r;return Object(m.__generator)(this,(function(n){switch(n.label){case 0:return(e=V())?[4,Ie({mst:e,status:"cancel",result:t})]:[2,Promise.reject(g("UNAUTHORIZED","mst is invalid"))];case 1:return r=n.sent(),Lt(!0),[2,r]}}))}))}(t):function(t){return void 0===t&&(t={}),Xt("cancel",t)}(t)},submit:function(t){return void 0===t&&(t={}),pt(),v()?function(t){return void 0===t&&(t={}),Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r;return Object(m.__generator)(this,(function(n){switch(n.label){case 0:return(e=V())?[4,Ie({mst:e,status:"submit",result:t})]:[2,Promise.reject(g("UNAUTHORIZED","mst is invalid"))];case 1:return r=n.sent(),Lt(!0),[2,r]}}))}))}(t):function(t){return void 0===t&&(t={}),Xt("submit",t)}(t)},close:function(){return pt(),v()?function(){return Object(m.__awaiter)(this,void 0,void 0,(function(){var t;return Object(m.__generator)(this,(function(e){switch(e.label){case 0:return!1!==kt()?[3,2]:(t=V())?[4,Ie({mst:t,status:"close",result:{}})]:[2,Promise.reject(g("UNAUTHORIZED","mst is invalid"))];case 1:e.sent(),e.label=2;case 2:return de(),[2]}}))}))}():(de(),Promise.resolve())},getAppData:function(){return pt(),function(){var t,e=w(h.APP_DATA);try{t=e?JSON.parse(e):{}}catch(e){t={}}return Promise.resolve(t)}()}},Me={query:it,requestAll:ne},Pe=function(){function t(){this.modules=new Set,this.hooksSet=new Set}return t.prototype.addHooks=function(t){this.hooksSet.add(t)},t.prototype.addModule=function(t){this.modules.add(t)},t.prototype.hasModule=function(t){return this.modules.has(t)},t.prototype.runHook=function(t){for(var e=[],r=1;r0})).reduce((function(t,e){var r=Object(m.__read)(e.split("=").map(decodeURIComponent),2),n=r[0],i=r[1],o=t[n];return Array.isArray(o)?o.push(i):Object.prototype.hasOwnProperty.call(t,n)?t[n]=[o,i]:t[n]=i,t}),{})},stringify:me};function Ve(t){var e=t.split(".");if(e[1])try{var r=e[1].replace(/-/g,"+").replace(/_/g,"/");return JSON.parse(window.atob(r))}catch(t){return null}return null}function Ye(t){return window.atob(t.replace(/-/g,"+").replace(/_/g,"/"))}function We(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i0&&"/"!==u[0]&&(u="/"+u);var c=new RegExp("^"+f.join("|")),h=o.substring(1).split("&").filter((function(t){return!c.test(t)&&Boolean(t)})).join("&"),l=h===s.hash.substring(1)?"":h,d=function(t){return t.substring(1).split("&").filter((function(t){return!/liff\.state/.test(t)&&Boolean(t)}))},p=d(i),v=d(s.search);t.extraParams&&p.push(t.extraParams);for(var y=0;y-1&&p.splice(_,1)}var b=p.join("&"),w=u+(""!==b?"?"+b:"")+(l?"#"+l:"");return"https://liff.line.me/"+M().liffId+w},this.setExtraQueryParam=function(e){t.extraParams=e},this.isAncestor=function(t,e){return 0===e.indexOf(t)&&(t.endsWith("/")&&(t=t.substring(0,t.length-1)),void 0===e[t.length]||"/"===e[t.length])},this.install=function(){return{createUrl:t.createUrl,setExtraQueryParam:t.setExtraQueryParam}}}return Object.defineProperty(t.prototype,"name",{get:function(){return"permanentLink"},enumerable:!0,configurable:!0}),t}()),wr=new(function(){function t(){var t=this;this.getAndValidateContext=function(){var t=X();if(!t)throw g(u,"Could not get Context from server.");if(!t.endpointUrl)throw g(u,"Could not get endpointUrl from server.");if(!t.permanentLinkPattern)throw g(u,"Could not get permanentLinkPattern from server.");return t},this.decodeState=function(e){var r=t.getAndValidateContext(),n=e,i=new URL(r.endpointUrl),o=i.origin,a=i.pathname,s=i.search,u=n.indexOf("?"),c=n.indexOf("#",u+1),h=n.substring(0,u>=0?u:c>=0?c:n.length),f=c>-1?"#"+n.substring(c+1):"",l=u>-1?n.substring(u+1,c<0?void 0:c):"";h.length>0&&("/"===h?h="":n.startsWith("/")||(h="/"+h));var d=f.split("&").filter((function(t){return!/^context_token/.test(t)})).join("&");if(l){var p=s?s.substring(1)+"&":"";n=h+"?"+p+l+d}else n=""+h+s+d;return""+o+function(){switch(!0){case"/"===a:return"";case a.endsWith("/")&&h.startsWith("/"):return a.substring(0,a.length-1);default:return a}}()+n},this.handleLiffState=function(){return Object(m.__awaiter)(t,void 0,void 0,(function(){var t,e,r,n,i;return Object(m.__generator)(this,(function(o){switch(o.label){case 0:if(t=ze.parse(window.location.search),"string"!=typeof(e=t["liff.state"]))return[2];o.label=1;case 1:return o.trys.push([1,4,,5]),r=location.href,(n=this.decodeState(e))===r?[3,3]:(t["liff.hback"]?location.replace(At(n,{"liff.hback":t["liff.hback"]})):location.replace(n),[4,new Promise((function(){}))]);case 2:o.sent(),o.label=3;case 3:return[3,5];case 4:if((i=o.sent()).code===u)throw i;return T.debug(i),[3,5];case 5:return[2]}}))}))},this.install=function(e){(0,e.addHooks)({beforeInitFinished:t.handleLiffState})}}return Object.defineProperty(t.prototype,"name",{get:function(){return"handleLiffState"},enumerable:!0,configurable:!0}),t}()),Er=r(1),xr=r.n(Er),Tr=function(){function t(t){this.driver=t}return Object.defineProperty(t.prototype,"name",{get:function(){return"login"},enumerable:!0,configurable:!0}),t.prototype.install=function(){return this.login.bind(this)},t.prototype.login=function(t){this.driver.runSyncHook("beforeLogin",t);var e=fe(43),r=function(t){return(e=xr()(t),r="",e.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ").forEach((function(t){r+=String.fromCharCode(parseInt(t))})),window.btoa(r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"");var e,r}(e),n=M();if(!n||!n.liffId)throw g("INVALID_CONFIG","You need to define `liffId` for liff.login()");var i={app_id:n.liffId,state:fe(12),response_type:"code",code_challenge_method:"S256",code_challenge:r,liff_sdk_version:"2.13.0"};t&&t.redirectUri&&(i.redirect_uri=t.redirectUri),E(h.LOGIN_TMP,{codeVerifier:e});var o=et("authorize")+"?"+ze.stringify(i);T.debug("[Redirect] "+o),window.location.href=o},t}(),Sr={getOS:a,getVersion:function(){return"2.13.0"},getLanguage:function(){return navigator.language},isInClient:v,isLoggedIn:W,logout:q,getAccessToken:D,getIDToken:L,getDecodedIDToken:U,getContext:X,permission:Me,openWindow:function(t){if(!function(t){if(!t||"object"!=typeof t)return!1;var e=t,r=e.url,n=e.external,i=Object(m.__read)([typeof r,typeof n],2),o=i[0],a=i[1];return"string"===o&&""!==r&&("undefined"===a||"boolean"===a)}(t))throw g(s,"Invalid parameters for liff.openWindow()");var e=mt();if(v())if(null!==e&&"ios"===a()&&_t(e,"9.19")>=0||!window._liff.postMessage){var r=t.url,n=t.external,i=void 0!==n&&n;window.open(function(t,e){var r=Object(m.__read)(t.split("?"),2),n=r[0],i=r[1],o=void 0===i?"":i,a=Object(m.__read)(o.split("#"),2),s=a[0],u=a[1];return n+"?is_liff_external_open_window="+!!e+(s?"&"+s.split("&").filter((function(t){return-1===t.indexOf("is_liff_external_open_window")})).join("&").concat(u?"#"+u:""):"")}(r,i))}else le("openWindow",t);else window.open(t.url,"_blank")},closeWindow:de,getFriendship:ie((function(){return J(et("friendship"))}),"profile"),getAId:function(){return((X()||{}).d||{}).aId},getProfilePlus:function(){return(X()||{}).profilePlus},getIsVideoAutoPlay:function(){return((X()||{}).d||{}).autoplay||!1},getLineVersion:mt,isApiAvailable:Tt,getProfile:ie(pe,"profile"),sendMessages:ie((function(t){if(!function(t){return Array.isArray(t)&&t.every(ve)}(t))return ye("Parameter 'messages' must be an array of { type, ... }");var e=t.length;return e<1||e>5?ye("Number of messages should be in range 1 to 5."):J(et("message"),{method:"POST",body:JSON.stringify({messages:t})})}),"chat_message.write"),shareTargetPicker:function(t){return Object(m.__awaiter)(this,void 0,void 0,(function(){var e,r,n,i,o,a;return Object(m.__generator)(this,(function(u){switch(u.label){case 0:if(function(){if(lt())throw g("FORBIDDEN","The operation is not allowed in the SubWindow");var t=((X()||{}).availability||{}).shareTargetPicker||{},e=t.permission,r=t.minVer;if(!e)throw v()?g("FORBIDDEN","Need LINE App "+r+" at least or consent on shareTargetPicker usage on LINE developer site"):g("FORBIDDEN","Need consent on shareTargetPicker usage on LINE developer site")}(),!W())throw g("UNAUTHORIZED","Need access_token for api call, Please login first");if(!t||!Array.isArray(t)||0===t.length)throw g(s,"no proper argument");if(t.length>5)throw g(s,"exceed the limit of num of messages");if(!(e=M().liffId))throw g("INVALID_CONFIG");window.liff&&(r=window.liff).analytics&&(c=r.analytics,T.debug("[LIFFUTS][sendCustom] liff.shareTargetPicker"),c.sendCustom({type:"liffSdk",params:{placeId:"liff.shareTargetPicker"}})),u.label=1;case 1:return u.trys.push([1,3,,4]),n=Te.getInstance(),i=mt(),o={waitForSubwindowResult:!0},v()&&i&&_t(i,"10.11.0")<0&&(o.waitForSubwindowResult=!1),[4,n.init({messages:t,referrer:{liffId:e,url:location.origin},options:o})];case 2:return[2,u.sent()];case 3:throw(a=u.sent())instanceof b?a:g("EXCEPTION_IN_SUBWINDOW",a.message);case 4:return[2]}var c}))}))},subWindow:Re,ready:o,get id(){return M().liffId||null},_dispatchEvent:function(t){var e={};try{e=JSON.parse(t)}catch(t){throw g(s,t.message)}var r=function(t){return new CustomEvent("liffEvent",{detail:t})}(e);T.debug("[client dispatchEvent to js]",{type:r.type,detail:r.detail}),window.dispatchEvent(r)},_call:le,_addListener:se,_removeListener:ue,_postMessage:ce};yr=[new br(pr=Sr,vr=new Pe),new Oe(pr),new Tr(vr),gr,wr,ft],mr=new function(t){var e=this;this.driver=t,this.addHooks=function(t){e.driver.addHooks(t)}}(vr),_r=new Ce(vr,{namespacePrefix:""}).install(mr).bind(pr),yr.forEach(_r);var Ar=Sr;e.default=Ar},function(t,e){t.exports=r("vePQ")}]).default},qXhl:function(t,e,r){var n=r("pRMk").Buffer,i=r("8kJ5"),o=r("6MVH").ec,a=r("LER9"),s=r("Jlhb");function u(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,r,c,h){var f=a(r);if("ec"===f.type){if("ecdsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new o(n),a=r.data.subjectPrivateKey.data;return i.verify(e,t,a)}(t,e,f)}if("dsa"===f.type){if("dsa"!==c)throw new Error("wrong public key type");return function(t,e,r){var n=r.data.p,o=r.data.q,s=r.data.g,c=r.data.pub_key,h=a.signature.decode(t,"der"),f=h.s,l=h.r;u(f,o),u(l,o);var d=i.mont(n),p=f.invm(o);return 0===s.toRed(d).redPow(new i(e).mul(p).mod(o)).fromRed().mul(c.toRed(d).redPow(l.mul(p).mod(o)).fromRed()).mod(n).mod(o).cmp(l)}(t,e,f)}if("rsa"!==c&&"ecdsa/rsa"!==c)throw new Error("wrong public key type");e=n.concat([h,e]);for(var l=f.modulus.byteLength(),d=[1],p=0;e.length+d.length+2 * @license MIT */ var n=r("KlUR"),i=r("FaXh"),o=r("kah5");function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(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 j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(t).length;default:if(n)return j(t).length;e=(""+e).toLowerCase(),n=!0}}function v(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))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return O(this,e,r);case"latin1":case"binary":return I(this,e,r);case"base64":return S(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(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:_(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):_(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,r,n,i){var o,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var h=-1;for(o=r;os&&(r=s-u),o=r;o>=0;o--){for(var f=!0,l=0;li&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function S(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+f<=r)switch(f){case 1:c<128&&(h=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(h=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(h=u)}null===h?(h=65533,f=1):h>65535&&(h-=65536,n.push(h>>>10&1023|55296),h=56320|1023&h),n.push(h),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(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(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(n,i),h=t.slice(e,r),f=0;fi)&&(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 o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return g(this,t,e,r);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return E(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function O(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;in)&&(r=n);for(var i="",o=e;or)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i>>8*(n?i:1-i)}function N(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i>>8*(n?i:3-i)&255}function k(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function L(t,e,r,n,o){return o||k(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function B(t,e,r,n,o){return o||k(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)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||P(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||P(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||P(t,e,this.length);for(var n=this[t],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||P(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||P(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||P(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||P(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||P(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||P(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||C(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||C(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||C(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||C(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):N(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||C(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):N(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);C(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&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);C(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||C(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||C(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||C(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||C(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):N(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||C(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):N(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return L(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return L(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return B(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return B(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=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=0;--i)t[i+e]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.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;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function G(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function X(t,e,r,n){for(var i=0;i=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r("pCvA"))},r6R4:function(t,e,r){"use strict";var n=r("HpGB"),i=r("siiD");function o(t,e,r){if(!(this instanceof o))return new o(t,e,r);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(e,r))}t.exports=o,o.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),i(t.length<=this.blockSize);for(var e=t.length;e>>e|t<<32-e}for(var n,i,o=Math.pow,a=o(2,32),s="",u=[],c=8*e.length,h=t.h=t.h||[],f=t.k=t.k||[],l=f.length,d={},p=2;l<64;p++)if(!d[p]){for(n=0;n<313;n+=p)d[n]=p;h[l]=o(p,.5)*a|0,f[l++]=o(p,1/3)*a|0}for(e+="€";e.length%64-56;)e+="\0";for(n=0;n>8)return;u[n>>2]|=i<<(3-n)%4*8}for(u[u.length]=c/a|0,u[u.length]=c,i=0;i>>3)+v[n-7]+(r(_,17)^r(_,19)^_>>>10)|0);(h=[w+((r(b,2)^r(b,13)^r(b,22))+(b&h[1]^b&h[2]^h[1]&h[2]))|0].concat(h))[4]=h[4]+w|0}for(n=0;n<8;n++)h[n]=h[n]+y[n]|0}for(n=0;n<8;n++)for(i=3;i+1;i--){var E=h[n]>>8*i&255;s+=(E<16?0:"")+E.toString(16)}return s};return t.code='var sha256=function a(b){function c(a,b){return a>>>b|a<<32-b}for(var d,e,f=Math.pow,g=f(2,32),h="length",i="",j=[],k=8*b[h],l=a.h=a.h||[],m=a.k=a.k||[],n=m[h],o={},p=2;64>n;p++)if(!o[p]){for(d=0;313>d;d+=p)o[d]=p;l[n]=f(p,.5)*g|0,m[n++]=f(p,1/3)*g|0}for(b+="\\x80";b[h]%64-56;)b+="\\x00";for(d=0;d>8)return;j[d>>2]|=e<<(3-d)%4*8}for(j[j[h]]=k/g|0,j[j[h]]=k,e=0;ed;d++){var s=q[d-15],t=q[d-2],u=l[0],v=l[4],w=l[7]+(c(v,6)^c(v,11)^c(v,25))+(v&l[5]^~v&l[6])+m[d]+(q[d]=16>d?q[d]:q[d-16]+(c(s,7)^c(s,18)^s>>>3)+q[d-7]+(c(t,17)^c(t,19)^t>>>10)|0),x=(c(u,2)^c(u,13)^c(u,22))+(u&l[1]^u&l[2]^l[1]&l[2]);l=[w+x|0].concat(l),l[4]=l[4]+w|0}for(d=0;8>d;d++)l[d]=l[d]+r[d]|0}for(d=0;8>d;d++)for(e=3;e+1;e--){var y=l[d]>>8*e&255;i+=(16>y?0:"")+y.toString(16)}return i};',t})?n.apply(e,i):n)||(t.exports=o)},siiD:function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=r,r.equal=function(t,e,r){if(t!=e)throw new Error(r||"Assertion failed: "+t+" != "+e)}},smmp:function(t,e,r){(function(e){t.exports=function(t,r){for(var n=Math.min(t.length,r.length),i=new e(n),o=0;o>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function h(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function f(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function l(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(t.lastNeed=i-1),i;if(--n=0)return i>0&&(t.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},srdS:function(t,e,r){"use strict";(function(t){var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.appendLeadingZeros=e.pruneLeadingZeros=e.getJwkType=e.getSec1KeyType=e.getAsn1KeyType=e.isAsn1Public=e.isAsn1Encrypted=void 0;var i=n(r("SDgz")),o=n(r("omOp")),a=r("zYJ4");e.isAsn1Encrypted=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pem";try{e=s(t,r)}catch(t){return!1}return"encryptedPrivate"===e};e.isAsn1Public=function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pem";try{e=s(t,r)}catch(t){return!1}return"public"===e};var s=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"pem",n="pem"===r?i.default.formatter.pemToBin(e,"private"):e,o=a.KeyStructure.decode(t.from(n),"der");if("encryptedPrivateKeyInfo"===o.type)return"encryptedPrivate";if("oneAsymmetricKey"===o.type)return"private";if("subjectPublicKeyInfo"===o.type)return"public";throw new Error("NotSpkiNorPkcs8Key")};e.getAsn1KeyType=s;e.getSec1KeyType=function(t,e){var r;if(t instanceof Uint8Array)r="binary";else{if("string"!=typeof t)throw new Error("InvalidObjectType");r="string"}var n="string"===r?i.default.encoder.hexStringToArrayBuffer(t):t,a=o.default.namedCurves[e].payloadSize;if(n.length<=a)return"private";if(n.length===2*a+1&&4===n[0]||n.length===a+1&&(2===n[0]||3===n[0]))return"public";throw new Error("UnsupportedKeyStructure")};e.getJwkType=function(t){if("EC"===t.kty){if(t.x&&t.y&&t.d)return"private";if(t.x&&t.y)return"public";throw new Error("InvalidECKey")}if("RSA"===t.kty){if(t.n&&t.e&&t.d&&t.p&&t.q&&t.dp&&t.dq&&t.qi)return"private";if(t.n&&t.e)return"public";throw new Error("InvalidRSAKey")}throw new Error("UnsupportedJWKType")};e.pruneLeadingZeros=function(t){if(!(t instanceof Uint8Array))throw new Error("NonUint8Array");for(var e=0,r=0;re)throw new Error("InvalidLength");var r=new Uint8Array(e);return r.set(t,e-t.length),r}}).call(this,r("qykS").Buffer)},t5Qd:function(t,e,r){t.exports=r("5Ekh").PassThrough},t6uJ:function(t,e,r){"use strict";var n=r("8kJ5"),i=r("O477"),o=r("fOyB"),a=r("cFST"),s=r("Wxe8"),u=o.assert,c=r("phCo"),h=r("DQGM");function f(t){if(!(this instanceof f))return new f(t);"string"==typeof t&&(u(a.hasOwnProperty(t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=f,f.prototype.keyPair=function(t){return new c(this,t)},f.prototype.keyFromPrivate=function(t,e){return c.fromPrivate(this,t,e)},f.prototype.keyFromPublic=function(t,e){return c.fromPublic(this,t,e)},f.prototype.genKeyPair=function(t){t||(t={});for(var e=new i({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var a=new n(e.generate(r));if(!(a.cmp(o)>0))return a.iaddn(1),this.keyFromPrivate(a)}},f.prototype._truncateToN=function(t,e){var r=8*t.byteLength()-this.n.bitLength();return r>0&&(t=t.ushrn(r)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},f.prototype.sign=function(t,e,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),e=this.keyFromPrivate(e,r),t=this._truncateToN(new n(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),u=t.toArray("be",a),c=new i({hash:this.hash,entropy:s,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),f=this.n.sub(new n(1)),l=0;;l++){var d=o.k?o.k(l):new n(c.generate(this.n.byteLength()));if(!((d=this._truncateToN(d,!0)).cmpn(1)<=0||d.cmp(f)>=0)){var p=this.g.mul(d);if(!p.isInfinity()){var v=p.getX(),y=v.umod(this.n);if(0!==y.cmpn(0)){var m=d.invm(this.n).mul(y.mul(e.getPrivate()).iadd(t));if(0!==(m=m.umod(this.n)).cmpn(0)){var _=(p.getY().isOdd()?1:0)|(0!==v.cmp(y)?2:0);return o.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),_^=1),new h({r:y,s:m,recoveryParam:_})}}}}}},f.prototype.verify=function(t,e,r,i){t=this._truncateToN(new n(t,16)),r=this.keyFromPublic(r,i);var o=(e=new h(e,"hex")).r,a=e.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,u=a.invm(this.n),c=u.mul(t).umod(this.n),f=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,r.getPublic(),f)).isInfinity()&&s.eqXToP(o):!(s=this.g.mulAdd(c,r.getPublic(),f)).isInfinity()&&0===s.getX().umod(this.n).cmp(o)},f.prototype.recoverPubKey=function(t,e,r,i){u((3&r)===r,"The recovery param is more than two bits"),e=new h(e,i);var o=this.n,a=new n(t),s=e.r,c=e.s,f=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),f):this.curve.pointFromX(s,f);var d=e.r.invm(o),p=o.sub(a).mul(d).umod(o),v=c.mul(d).umod(o);return this.g.mulAdd(p,s,v)},f.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new h(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},tFbo:function(t,e,r){var n=e;n.utils=r("HpGB"),n.common=r("DDMh"),n.sha=r("viEW"),n.ripemd=r("/QGi"),n.hmac=r("r6R4"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},tImM:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},"ta/H":function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.unwrapKey=e.wrapKey=e.decrypt=e.encrypt=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=n(r("wQqr")),u=n(r("Rs7L")),c=n(r("oTRi")),h=i(r("EvBf")),f=function(t){var e=t.name,r=t.iv,n=t.tagLength;if(Object.keys(h.default.ciphers).indexOf(e)<0)throw new Error("UnsupportedAlgorithm");if(h.default.ciphers[e].ivLength){if(!(r instanceof Uint8Array))throw new Error("InvalidArguments");if(r.byteLength<2||r.byteLength>16)throw new Error("InvalidIVLength");if(h.default.ciphers[e].staticIvLength&&h.default.ciphers[e].ivLength!==r.byteLength)throw new Error("InvalidIVLength")}if(h.default.ciphers[e].tagLength&&n){if(!Number.isInteger(n))throw new Error("InvalidArguments");if(n<4||n>16)throw new Error("InvalidTagLength")}},l=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,l,d,p,v,y,m;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.name,a=void 0===i?"AES-GCM":i,l=n.iv,d=n.additionalData,p=void 0===d?new Uint8Array([]):d,v=n.tagLength,e instanceof Uint8Array&&r instanceof Uint8Array){t.next=3;break}throw new Error("InvalidArguments");case 3:return f({name:a,iv:l,tagLength:v}),h.default.ciphers[a].tagLength&&!v&&(v=h.default.ciphers[a].tagLength),t.next=7,s.getWebCryptoAll();case 7:return y=t.sent,t.next=10,s.getNodeCrypto();case 10:if(m=t.sent,void 0===y||"function"!=typeof y.importKey||"function"!=typeof y.encrypt){t.next=15;break}return t.abrupt("return",c.encrypt(e,r,{name:a,iv:l,additionalData:p,tagLength:v},y));case 15:if(void 0===m){t.next=19;break}return t.abrupt("return",u.encrypt(e,r,{name:a,iv:l,additionalData:p,tagLength:v},m));case 19:throw new Error("UnsupportedEnvironment");case 20:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.encrypt=l;var d=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,l,d,p,v,y,m;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.name,a=void 0===i?"AES-GCM":i,l=n.iv,d=n.additionalData,p=void 0===d?new Uint8Array([]):d,v=n.tagLength,e instanceof Uint8Array&&r instanceof Uint8Array){t.next=3;break}throw new Error("InvalidArguments");case 3:return f({name:a,iv:l,tagLength:v}),h.default.ciphers[a].tagLength&&!v&&(v=h.default.ciphers[a].tagLength),t.next=7,s.getWebCryptoAll();case 7:return y=t.sent,t.next=10,s.getNodeCrypto();case 10:if(m=t.sent,void 0===y||"function"!=typeof y.importKey||"function"!=typeof y.encrypt){t.next=15;break}return t.abrupt("return",c.decrypt(e,r,{name:a,iv:l,additionalData:p,tagLength:v},y));case 15:if(void 0===m){t.next=19;break}return t.abrupt("return",u.decrypt(e,r,{name:a,iv:l,additionalData:p,tagLength:v},m));case 19:throw new Error("UnsupportedEnvironment");case 20:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.decrypt=d;var p=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,f,l,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.name,a=void 0===i?"AES-KW":i,e instanceof Uint8Array){t.next=3;break}throw new Error("NonUint8ArrayData");case 3:if(r instanceof Uint8Array){t.next=5;break}throw new Error("NonUint8ArrayKey");case 5:if(!(e.length%8>0)){t.next=7;break}throw new Error("WrappedKeyMustBeMultipleOf8");case 7:return t.next=9,s.getWebCryptoAll();case 9:return f=t.sent,t.next=12,s.getNodeCrypto();case 12:if(l=t.sent,d=h.default.wrapKeys["AES-KW"].defaultIV,void 0===f||"function"!=typeof f.importKey||"function"!=typeof f.wrapKey){t.next=18;break}return t.abrupt("return",c.wrapKey(e,r,{name:a,iv:d},f));case 18:if(void 0===l){t.next=22;break}return t.abrupt("return",u.wrapKey(e,r,{name:a,iv:d},l));case 22:throw new Error("UnsupportedEnvironment");case 23:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.wrapKey=p;var v=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n){var i,a,f,l,d;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=n.name,a=void 0===i?"AES-KW":i,e instanceof Uint8Array){t.next=3;break}throw new Error("NonUint8ArrayData");case 3:if(r instanceof Uint8Array){t.next=5;break}throw new Error("NonUint8ArrayKey");case 5:return t.next=7,s.getWebCryptoAll();case 7:return f=t.sent,t.next=10,s.getNodeCrypto();case 10:if(l=t.sent,d=h.default.wrapKeys["AES-KW"].defaultIV,void 0===f||"function"!=typeof f.importKey||"function"!=typeof f.wrapKey){t.next=16;break}return t.abrupt("return",c.unwrapKey(e,r,{name:a,iv:d},f));case 16:if(void 0===l){t.next=20;break}return t.abrupt("return",u.unwrapKey(e,r,{name:a,iv:d},l));case 20:throw new Error("UnsupportedEnvironment");case 21:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}();e.unwrapKey=v},ta2Q:function(t,e,r){"use strict";var n=r("siiD");function i(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=i,i.prototype._init=function(){},i.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},i.prototype._buffer=function(t,e){for(var r=Math.min(this.buffer.length-this.bufferOff,t.length-e),n=0;n0;n--)e+=this._buffer(t,e),r+=this._flushBuffer(i,r);return e+=this._buffer(t,e),i},i.prototype.final=function(t){var e,r;return t&&(e=this.update(t)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(r):r},i.prototype._pad=function(t,e){if(0===e)return!1;for(;e>>h,a[(c+1)%2]=u<>>h,(0,o.default)(a,0)(e,l),(0,o.default)(r,0)(a,0)}};e.default=s},w1Rh:function(t,e,r){var n,i,o,a,s;n=r("DPV4"),i=r("arkH").utf8,o=r("EbX1"),a=r("arkH").bin,(s=function(t,e){t.constructor==String?t=e&&"binary"===e.encoding?a.stringToBytes(t):i.stringToBytes(t):o(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());for(var r=n.bytesToWords(t),u=8*t.length,c=1732584193,h=-271733879,f=-1732584194,l=271733878,d=0;d>>24)|4278255360&(r[d]<<24|r[d]>>>8);r[u>>>5]|=128<>>9<<4)]=u;var p=s._ff,v=s._gg,y=s._hh,m=s._ii;for(d=0;d>>0,h=h+b>>>0,f=f+g>>>0,l=l+w>>>0}return n.endian([c,h,f,l])})._ff=function(t,e,r,n,i,o,a){var s=t+(e&r|~e&n)+(i>>>0)+a;return(s<>>32-o)+e},s._gg=function(t,e,r,n,i,o,a){var s=t+(e&n|r&~n)+(i>>>0)+a;return(s<>>32-o)+e},s._hh=function(t,e,r,n,i,o,a){var s=t+(e^r^n)+(i>>>0)+a;return(s<>>32-o)+e},s._ii=function(t,e,r,n,i,o,a){var s=t+(r^(e|~n))+(i>>>0)+a;return(s<>>32-o)+e},s._blocksize=16,s._digestsize=16,t.exports=function(t,e){if(null==t)throw new Error("Illegal argument "+t);var r=n.wordsToBytes(s(t,e));return e&&e.asBytes?r:e&&e.asString?a.bytesToString(r):n.bytesToHex(r)}},w8x0:function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},wQqr:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRootWebCryptoAll=e.getWebCryptoAll=e.getMsCrypto=e.getWebCrypto=e.getNodeCrypto=e.default=void 0;var n=function(){return"undefined"!=typeof window?void 0:r("9dER")};e.getNodeCrypto=n;var i=function(){if("undefined"!=typeof window)return window.crypto?window.crypto.subtle:void 0};e.getWebCrypto=i;var o=function(){if("undefined"!=typeof window)return window.msCrypto?window.msCrypto.subtle:window.crypto?window.crypto.subtle:void 0};e.getWebCryptoAll=o;var a=function(){if("undefined"!=typeof window)return window.msCrypto?window.msCrypto:window.crypto?window.crypto:void 0};e.getRootWebCryptoAll=a;var s=function(){if("undefined"!=typeof window&&!window.crypto)return window.msCrypto?window.msCrypto.subtle:void 0};e.getMsCrypto=s;var u={getNodeCrypto:n,getWebCrypto:i,getMsCrypto:s,getWebCryptoAll:o,getRootWebCryptoAll:a};e.default=u},wQuK:function(t,e,r){var n=r("wfEq"),i=r("LpNI");function o(t){i.call(this,t),this.enc="pem"}n(o,i),t.exports=o,o.prototype.encode=function(t,e){for(var r=i.prototype.encode.call(this,t).toString("base64"),n=["-----BEGIN "+e.label+"-----"],o=0;o>>0},e.writeUInt32BE=function(t,e,r){t[0+r]=e>>>24,t[1+r]=e>>>16&255,t[2+r]=e>>>8&255,t[3+r]=255&e},e.ip=function(t,e,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},e.rip=function(t,e,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=e>>>s+a&1,i<<=1,i|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.pc1=function(t,e,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},e.r28shl=function(t,e){return t<>>28-e};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,r,i){for(var o=0,a=0,s=n.length>>>1,u=0;u>>n[u]&1;for(u=s;u>>n[u]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},e.expand=function(t,e,r){var n=0,i=0;n=(1&t)<<5|t>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=t>>>o&63;for(o=11;o>=3;o-=4)i|=t>>>o&63,i<<=6;i|=(31&t)<<1|t>>>31,e[r+0]=n>>>0,e[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(t>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(e>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,r=0;r>>o[r]&1;return e>>>0},e.padSplit=function(t,e,r){for(var n=t.toString(2);n.length=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),w(r),c}},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;w(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}},wfEq:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},wthT:function(t,e,r){"use strict";r.r(e),function(t){var e=r("5+HP"),n=r("Z3s7"),i=r("AIuu"),o=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object")}();"function"!=typeof o.Promise?o.Promise=e.a:o.Promise.prototype.finally?o.Promise.allSettled||(o.Promise.allSettled=i.a):o.Promise.prototype.finally=n.a}.call(this,r("pCvA"))},wuJa:function(t,e,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,a=r("peDq"),s=r("Ih9J"),u=r("pRMk").Buffer;t.exports=function(t,e){var r,c=t.toString(),h=c.match(n);if(h){var f="aes"+h[1],l=u.from(h[2],"hex"),d=u.from(h[3].replace(/[\r\n]/g,""),"base64"),p=a(e,l.slice(0,8),parseInt(h[1],10)).key,v=[],y=s.createDecipheriv(f,p,l);v.push(y.update(d)),v.push(y.final()),r=u.concat(v)}else{var m=c.match(o);r=new u(m[2].replace(/[\r\n]/g,""),"base64")}return{tag:c.match(i)[1],data:r}}},xSFS:function(t,e,r){"use strict";var n=r("ovh1"),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,o,a={};return t?(n.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=n.trim(t.substr(0,o)).toLowerCase(),r=n.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}})),a):a}},xTpk:function(t,e,r){"use strict";var n=r("upWy");function i(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var r=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(n.nextTick(i,r,t),r._writableState&&(r._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},xeyG:function(t,e,r){var n=r("8gph"),i=r("pRMk").Buffer,o=r("ql4I"),a=r("wfEq"),s=r("S2bg"),u=r("smmp"),c=r("3qw6");function h(t,e,r,a){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(e);var h=this._cipher.encryptBlock(u);this._ghash=new s(h),r=function(t,e,r){if(12===e.length)return t._finID=i.concat([e,i.from([0,0,0,1])]),i.concat([e,i.from([0,0,0,2])]);var n=new s(r),o=e.length,a=o%16;n.update(e),a&&(a=16-a,n.update(i.alloc(a,0))),n.update(i.alloc(8,0));var u=8*o,h=i.alloc(8);h.writeUIntBE(u,0,8),n.update(h),t._finID=n.state;var f=i.from(t._finID);return c(f),f}(this,r,h),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(h,o),h.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=i.alloc(e,0),this._ghash.update(e))}this._called=!0;var r=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(r),this._len+=t.length,r},h.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var r=0;t.length!==e.length&&r++;for(var n=Math.min(t.length,e.length),i=0;i=0);return i},o.prototype._randrange=function(t,e){var r=e.sub(t);return t.add(this._randbelow(r))},o.prototype.test=function(t,e,r){var i=t.bitLength(),o=n.mont(t),a=new n(1).toRed(o);e||(e=Math.max(1,i/48|0));for(var s=t.subn(1),u=0;!s.testn(u);u++);for(var c=t.shrn(u),h=s.toRed(o);e>0;e--){var f=this._randrange(new n(2),s);r&&r(f);var l=f.toRed(o).redPow(c);if(0!==l.cmp(a)&&0!==l.cmp(h)){for(var d=1;d0;e--){var h=this._randrange(new n(2),a),f=t.gcd(h);if(0!==f.cmpn(1))return f;var l=h.toRed(i).redPow(u);if(0!==l.cmp(o)&&0!==l.cmp(c)){for(var d=1;d>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function l(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function d(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(t){for(var e,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,v=0|this._g,y=0|this._h,m=0;m<16;++m)r[m]=t.readInt32BE(4*m);for(;m<64;++m)r[m]=0|(((e=r[m-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+r[m-7]+d(r[m-15])+r[m-16];for(var _=0;_<64;++_){var b=y+l(u)+c(u,p,v)+a[_]+r[_]|0,g=f(n)+h(n,i,o)|0;y=v,v=p,p=u,u=s+b|0,s=o,o=i,i=n,n=b+g|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=v+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},yRLl:function(t,e,r){"use strict";var n=r("vdEC"),i=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.decryptEncryptedPrivateKeyInfo=e.encryptEncryptedPrivateKeyInfo=void 0;var o=i(r("NthX")),a=i(r("fFdx")),s=n(r("omOp")),u=r("zYJ4"),c=i(r("oBSY")),h=i(r("qykS")),f=i(r("+Gs+")),l=i(r("SDgz")),d=i(r("gSrR")),p=i(r("a8jK")),v=i(r("6yG2")),y=h.default.Buffer,m=f.default.bignum,_=function(){var t=(0,a.default)(o.default.mark((function t(e){var r,n,i,a,c=arguments;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0===(r=c.length>1&&void 0!==c[1]?c[1]:{passphrase:""}).algorithm&&(r.algorithm="pbes2"),void 0===r.iterationCount&&(r.iterationCount=2048),"pbes2"!==r.algorithm){t.next=15;break}return void 0===r.cipher&&(r.cipher="aes256-cbc"),void 0===r.prf&&(r.prf="hmacWithSHA256"),n="pbkdf2",t.next=9,E(e,r.passphrase,n,r.prf,r.iterationCount,r.cipher);case 9:return i=t.sent,t.next=12,g(i);case 12:return t.abrupt("return",t.sent);case 15:return t.next=17,T(e,r.passphrase,r.algorithm,r.iterationCount);case 17:return(a=t.sent).encryptionAlgorithm.algorithm=s.default.passwordBasedEncryptionSchemes[a.encryptionAlgorithm.algorithm].oid,a.encryptionAlgorithm.parameters=u.PBEParameter.encode(a.encryptionAlgorithm.parameters,"der"),t.abrupt("return",u.EncryptedPrivateKeyInfo.encode(a,"der"));case 21:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();e.encryptEncryptedPrivateKeyInfo=_;var b=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if((n={}).encryptionAlgorithm={algorithm:(0,s.getAlgorithmFromOidStrict)(e.encryptionAlgorithm.algorithm,s.default.passwordBasedEncryptionSchemes)},"pbes2"===n.encryptionAlgorithm.algorithm?n.encryptionAlgorithm.parameters=w(e.encryptionAlgorithm.parameters):n.encryptionAlgorithm.parameters=u.PBEParameter.decode(e.encryptionAlgorithm.parameters,"der"),n.encryptedData=e.encryptedData,"pbes2"!==n.encryptionAlgorithm.algorithm){t.next=10;break}return t.next=7,x(n,r);case 7:return t.abrupt("return",t.sent);case 10:return t.next=12,S(n,r);case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}();e.decryptEncryptedPrivateKeyInfo=b;var g=function(t){var e={encryptionAlgorithm:{}};e.encryptionAlgorithm.algorithm=s.default.passwordBasedEncryptionSchemes[t.encryptionAlgorithm.algorithm].oid;var r=t.encryptionAlgorithm.parameters.keyDerivationFunc;if("pbkdf2"!==r.algorithm)throw new Error("UnsupportedKDF");r.parameters.prf.algorithm=s.default.pbkdf2Prfs[r.parameters.prf.algorithm].oid,r.parameters=u.PBKDF2Params.encode(r.parameters,"der"),r.algorithm=s.default.keyDerivationFunctions[r.algorithm].oid;var n=t.encryptionAlgorithm.parameters.encryptionScheme;if(!(Object.keys(u.PBES2ESParams).indexOf(n.algorithm)>=0))throw new Error("UnsupportedCipher");return n.parameters=u.PBES2ESParams[n.algorithm].encode(n.parameters,"der"),n.algorithm=s.default.encryptionSchemes[n.algorithm].oid,e.encryptionAlgorithm.parameters=u.PBES2Params.encode({keyDerivationFunc:r,encryptionScheme:n},"der"),e.encryptedData=t.encryptedData,u.EncryptedPrivateKeyInfo.encode(e,"der")},w=function(t){var e,r,n,i=u.PBES2Params.decode(t,"der"),o=(0,s.getAlgorithmFromOidStrict)(i.keyDerivationFunc.algorithm,s.default.keyDerivationFunctions);if("pbkdf2"!==o)throw new Error("UnsupportedKDF");var a=u.PBKDF2Params.decode(i.keyDerivationFunc.parameters,"der");n={algorithm:(0,s.getAlgorithmFromOidStrict)(a.prf.algorithm,s.default.pbkdf2Prfs),parameters:a.prf.parameters},e=a.iterationCount,r={type:a.salt.type,value:a.salt.value};var c=(0,s.getAlgorithmFromOidStrict)(i.encryptionScheme.algorithm,s.default.encryptionSchemes);if(!(Object.keys(u.PBES2ESParams).indexOf(c)>=0))throw new Error("UnsupportedCipher");return{keyDerivationFunc:{algorithm:o,parameters:{salt:r,iterationCount:e,prf:n}},encryptionScheme:{algorithm:c,parameters:u.PBES2ESParams[c].decode(i.encryptionScheme.parameters,"der")}}},E=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i,a,u){var h,f,_,b,g,w,E,x;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return h=l.default.encoder.stringToArrayBuffer(r),t.next=3,v.default.getRandomBytes(s.default.keyDerivationFunctions[n].defaultSaltLen);case 3:if(f=t.sent,_=s.default.encryptionSchemes[u].keyLength,"pbkdf2"!==n){t.next=11;break}return t.next=8,d.default.pbkdf2(h,f,a,_,s.default.pbkdf2Prfs[i].hash);case 8:b=t.sent,t.next=12;break;case 11:throw new Error("UnsupportedKDF");case 12:if("des-ede3-cbc"!==u){t.next=23;break}return t.t0=y,t.next=16,v.default.getRandomBytes(s.default.encryptionSchemes[u].ivLength);case 16:t.t1=t.sent,g=t.t0.from.call(t.t0,t.t1),E=c.default.CBC.instantiate(c.default.EDE),x=E.create({type:"encrypt",key:y.from(b),iv:g}),w=y.from(x.update(e).concat(x.final())),t.next=36;break;case 23:if("aes128-cbc"!==u&&"aes192-cbc"!==u&&"aes256-cbc"!==u){t.next=35;break}return t.next=26,v.default.getRandomBytes(s.default.encryptionSchemes[u].ivLength);case 26:return g=t.sent,t.t2=y,t.next=30,p.default.encrypt(new Uint8Array(e),b,{name:"AES-CBC",iv:g});case 30:t.t3=t.sent,w=t.t2.from.call(t.t2,t.t3),g=y.from(g),t.next=36;break;case 35:throw new Error("UnsupportedCipher");case 36:return t.abrupt("return",{encryptedData:w,encryptionAlgorithm:{algorithm:"pbes2",parameters:{keyDerivationFunc:{algorithm:n,parameters:{salt:{type:"specified",value:y.from(f)},iterationCount:new m(a),prf:{algorithm:i,parameters:y.from([5,0])}}},encryptionScheme:{algorithm:u,parameters:g}}}});case 37:case"end":return t.stop()}}),t)})));return function(e,r,n,i,o,a){return t.apply(this,arguments)}}(),x=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,h,f,v,m,_,b,g,w,E,x;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.encryptionAlgorithm.parameters.keyDerivationFunc,i=e.encryptionAlgorithm.parameters.encryptionScheme,a=s.default.encryptionSchemes[i.algorithm].keyLength,"pbkdf2"!==n.algorithm){t.next=15;break}if(f=l.default.encoder.stringToArrayBuffer(r),"specified"===n.parameters.salt.type){t.next=7;break}throw new Error("UnsupportedSaltSource");case 7:return v=new Uint8Array(n.parameters.salt.value),m=n.parameters.iterationCount.toNumber(),_=n.parameters.prf.algorithm,t.next=12,d.default.pbkdf2(f,v,m,a,s.default.pbkdf2Prfs[_].hash);case 12:h=t.sent,t.next=16;break;case 15:throw new Error("UnsupportedKDF");case 16:if("des-ede3-cbc"!==i.algorithm){t.next=23;break}g=i.parameters,w=c.default.CBC.instantiate(c.default.EDE),E=w.create({type:"decrypt",key:h,iv:g}),b=y.from(E.update(e.encryptedData).concat(E.final())),t.next=33;break;case 23:if("aes128-cbc"!==i.algorithm&&"aes192-cbc"!==i.algorithm&&"aes256-cbc"!==i.algorithm){t.next=32;break}return x=new Uint8Array(i.parameters),t.t0=y,t.next=28,p.default.decrypt(new Uint8Array(e.encryptedData),h,{name:"AES-CBC",iv:x});case 28:t.t1=t.sent,b=t.t0.from.call(t.t0,t.t1),t.next=33;break;case 32:throw new Error("UnsupportedEncryptionAlgorithm");case 33:return t.abrupt("return",u.OneAsymmetricKey.decode(b,"der"));case 34:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),T=function(){var t=(0,a.default)(o.default.mark((function t(e,r,n,i){var a,u,h,f,p,_,b,g,w;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=l.default.encoder.stringToArrayBuffer(r),t.next=3,v.default.getRandomBytes(8);case 3:return u=t.sent,h=s.default.passwordBasedEncryptionSchemes[n].hash,t.next=7,d.default.pbkdf1(a,u,i,16,h);case 7:if(f=t.sent,p=f.slice(0,8),_=f.slice(8,16),"DES-CBC"!==s.default.passwordBasedEncryptionSchemes[n].encrypt){t.next=17;break}g=c.default.CBC.instantiate(c.default.DES),w=g.create({type:"encrypt",key:p,iv:_}),b=y.from(w.update(e).concat(w.final())),t.next=18;break;case 17:throw new Error("UnsupportedEncryptionAlgorithm");case 18:return t.abrupt("return",{encryptionAlgorithm:{algorithm:n,parameters:{salt:y.from(u),iterationCount:new m(i)}},encryptedData:b});case 19:case"end":return t.stop()}}),t)})));return function(e,r,n,i){return t.apply(this,arguments)}}(),S=function(){var t=(0,a.default)(o.default.mark((function t(e,r){var n,i,a,h,f,p,v,m,_,b;return o.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.default.encoder.stringToArrayBuffer(r),i=new Uint8Array(e.encryptionAlgorithm.parameters.salt),a=s.default.passwordBasedEncryptionSchemes[e.encryptionAlgorithm.algorithm].hash,h=e.encryptionAlgorithm.parameters.iterationCount.toNumber(),t.next=6,d.default.pbkdf1(n,i,h,16,a);case 6:if(f=t.sent,p=f.slice(0,8),v=f.slice(8,16),"DES-CBC"!==s.default.passwordBasedEncryptionSchemes[e.encryptionAlgorithm.algorithm].encrypt){t.next=16;break}_=c.default.CBC.instantiate(c.default.DES),b=_.create({type:"decrypt",key:p,iv:v}),m=y.from(b.update(e.encryptedData).concat(b.final())),t.next=17;break;case 16:throw new Error("UnsupportedEncryptionAlgorithm");case 17:return t.abrupt("return",u.OneAsymmetricKey.decode(m,"der"));case 18:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},yuDq:function(t,e,r){t.exports=r("A/eZ")},zYJ4:function(t,e,r){"use strict";(function(t){var n=r("63Ad");Object.defineProperty(e,"__esModule",{value:!0}),e.PBES2ESParams=e.PBKDF2Params=e.PBES2Params=e.PBEParameter=e.EncryptedPrivateKeyInfo=e.OneAsymmetricKey=e.SubjectPublicKeyInfo=e.KeyStructure=void 0;var i=n(r("+Gs+")),o=i.default.define("KeyStructure",(function(){this.choice({subjectPublicKeyInfo:this.use(a),oneAsymmetricKey:this.use(s),encryptedPrivateKeyInfo:this.use(u)})}));e.KeyStructure=o;var a=i.default.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(d),this.key("subjectPublicKey").bitstr())}));e.SubjectPublicKeyInfo=a;var s=i.default.define("OneAsymmetricKey",(function(){this.seq().obj(this.key("version").use(p),this.key("privateKeyAlgorithm").use(d),this.key("privateKey").octstr(),this.key("attributes").implicit(0).optional().any(),this.key("publicKey").implicit(1).optional().bitstr())}));e.OneAsymmetricKey=s;var u=i.default.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("encryptionAlgorithm").use(d),this.key("encryptedData").octstr())}));e.EncryptedPrivateKeyInfo=u;var c=i.default.define("PBEParameter",(function(){this.seq().obj(this.key("salt").octstr(8),this.key("iterationCount").int())}));e.PBEParameter=c;var h=i.default.define("PBES2Params",(function(){this.seq().obj(this.key("keyDerivationFunc").use(d),this.key("encryptionScheme").use(d))}));e.PBES2Params=h;var f=i.default.define("PBKDF2Params",(function(){this.seq().obj(this.key("salt").choice({specified:this.octstr(),otherSource:this.use(d)}),this.key("iterationCount").int(),this.key("keyLength").int().optional(),this.key("prf").use(d).def({algorithm:[1,2,840,113549,2,7],parameters:t.from([5,0])}))}));e.PBKDF2Params=f;var l={"des-ede3-cbc":i.default.define("DesEde3CbcParams",(function(){this.octstr()})),"aes128-cbc":i.default.define("Aes128CbcParams",(function(){this.octstr()})),"aes192-cbc":i.default.define("Aes192CbcParams",(function(){this.octstr()})),"aes256-cbc":i.default.define("Aes256CbcParams",(function(){this.octstr()}))};e.PBES2ESParams=l;var d=i.default.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())})),p=i.default.define("Version",(function(){this.int()}))}).call(this,r("qykS").Buffer)},zf4f:function(t,e,r){"use strict";var n=r("ovh1"),i=r("aECo"),o=r("fwl+"),a=r("h1Um"),s=r("xSFS"),u=r("cON5"),c=r("2KG9");t.exports=function(t){return new Promise((function(e,h){var f=t.data,l=t.headers;n.isFormData(f)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",v=t.auth.password||"";l.Authorization="Basic "+btoa(p+":"+v)}var y=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),o(y,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?s(d.getAllResponseHeaders()):null,n={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,h,n),d=null}},d.onabort=function(){d&&(h(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){h(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),h(c(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var m=r("vMO2"),_=(t.withCredentials||u(y))&&t.xsrfCookieName?m.read(t.xsrfCookieName):void 0;_&&(l[t.xsrfHeaderName]=_)}if("setRequestHeader"in d&&n.forEach(l,(function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete l[e]:d.setRequestHeader(e,t)})),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),h(t),d=null)})),void 0===f&&(f=null),d.send(f)}))}},zn3x:function(t,e,r){"use strict";var n=r("wfEq"),i=r("pRMk").Buffer,o=r("ql4I"),a=i.alloc(128);function s(t,e){o.call(this,"digest"),"string"==typeof e&&(e=i.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=i.concat([e,a],64));for(var r=this._ipad=i.allocUnsafe(64),n=this._opad=i.allocUnsafe(64),s=0;s<64;s++)r[s]=54^e[s],n[s]=92^e[s];this._hash=[r]}n(s,o),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,t]))},t.exports=s},zxuB:function(t,e,r){var n=r("pRMk").Buffer,i=r("smmp");function o(t,e,r){var o=e.length,a=i(e,t._cache);return t._cache=t._cache.slice(o),t._prev=n.concat([t._prev,r?e:a]),a}e.encrypt=function(t,e,r){for(var i,a=n.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=n.allocUnsafe(0)),!(t._cache.length<=e.length)){a=n.concat([a,o(t,e,r)]);break}i=t._cache.length,a=n.concat([a,o(t,e.slice(0,i),r)]),e=e.slice(i)}return a}}}]);