UNPKG

anchor-link

Version:

Library for authenticating and signing transactions using the Anchor Link protocol

138 lines 489 kB
/** * Anchor Link v3.6.0 * https://github.com/greymass/anchor-link * * @license * Copyright (c) 2020 Greymass Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * 1. Redistribution of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * 2. Redistribution in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * * YOU ACKNOWLEDGE THAT THIS SOFTWARE IS NOT DESIGNED, LICENSED OR INTENDED FOR USE * IN THE DESIGN, CONSTRUCTION, OPERATION OR MAINTENANCE OF ANY MILITARY FACILITY. */ var AnchorLink=function(t){"use strict";function e(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function r(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?e(Object(n),!0).forEach((function(e){c(t,e,n[e]) })):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):e(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function i(t,e,r,n,i,a,o){try{var s=t[a](o),u=s.value }catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,i)}function a(t){return function(){var e=this,r=arguments;return new Promise((function(n,a){var o=t.apply(e,r);function s(t){i(o,n,a,s,u,"next",t)}function u(t){i(o,n,a,s,u,"throw",t)}s(void 0)}))}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0), Object.defineProperty(t,n.key,n)}}function u(t,e,r){return e&&s(t.prototype,e),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function c(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}), Object.defineProperty(t,"prototype",{writable:!1}),e&&l(t,e)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function p(t,e,r){return p=d()?Reflect.construct:function(t,e,r){var n=[null];n.push.apply(n,e);var i=new(Function.bind.apply(t,n));return r&&l(i,r.prototype),i},p.apply(null,arguments)}function v(t){var e="function"==typeof Map?new Map:void 0;return v=function(t){if(null===t||(r=t,-1===Function.toString.call(r).indexOf("[native code]")))return t;var r ;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return p(t,arguments,h(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)},v(t)}function y(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined") ;return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function m(t){var e=d();return function(){var r,n=h(t);if(e){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}function g(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}function b(){return b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,r){var n=g(t,e) ;if(n){var i=Object.getOwnPropertyDescriptor(n,e);return i.get?i.get.call(arguments.length<3?t:r):i.value}},b.apply(this,arguments)}function _(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&&(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{ if(s)throw i}}return a}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t){return function(t){if(Array.isArray(t))return S(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){if(t){if("string"==typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length) ;for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function x(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=k(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}} throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){s=!0,a=t},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}var A="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{} ;function I(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M=function(t){return t&&t.Math==Math&&t},E=M("object"==typeof globalThis&&globalThis)||M("object"==typeof window&&window)||M("object"==typeof self&&self)||M("object"==typeof A&&A)||function(){return this}()||Function("return this")(),R={},T=function(t){try{return!!t()}catch(t){return!0}},z=!T((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),O=!T((function(){ var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),N=O,P=Function.prototype.call,B=N?P.bind(P):function(){return P.apply(P,arguments)},L={},U={}.propertyIsEnumerable,q=Object.getOwnPropertyDescriptor,j=q&&!U.call({1:2},1);L.f=j?function(t){var e=q(this,t);return!!e&&e.enumerable}:U;var C,D,F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},V=O,Z=Function.prototype,W=Z.bind,K=Z.call,H=V&&W.bind(K,K),G=V?function(t){ return t&&H(t)}:function(t){return t&&function(){return K.apply(t,arguments)}},J=G,Y=J({}.toString),X=J("".slice),$=function(t){return X(Y(t),8,-1)},Q=G,tt=T,et=$,rt=E.Object,nt=Q("".split),it=tt((function(){return!rt("z").propertyIsEnumerable(0)}))?function(t){return"String"==et(t)?nt(t,""):rt(t)}:rt,at=E.TypeError,ot=function(t){if(null==t)throw at("Can't call method on "+t);return t},st=it,ut=ot,ct=function(t){return st(ut(t))},ft=function(t){return"function"==typeof t},ht=ft,lt=function(t){ return"object"==typeof t?null!==t:ht(t)},dt=E,pt=ft,vt=function(t){return pt(t)?t:void 0},yt=function(t,e){return arguments.length<2?vt(dt[t]):dt[t]&&dt[t][e]},mt=G({}.isPrototypeOf),gt=yt("navigator","userAgent")||"",bt=E,_t=gt,wt=bt.process,kt=bt.Deno,St=wt&&wt.versions||kt&&kt.version,xt=St&&St.v8;xt&&(D=(C=xt.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!D&&_t&&(!(C=_t.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=_t.match(/Chrome\/(\d+)/))&&(D=+C[1]) ;var At=D,It=At,Mt=T,Et=!!Object.getOwnPropertySymbols&&!Mt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&It&&It<41})),Rt=Et&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Tt=yt,zt=ft,Ot=mt,Nt=Rt,Pt=E.Object,Bt=Nt?function(t){return"symbol"==typeof t}:function(t){var e=Tt("Symbol");return zt(e)&&Ot(e.prototype,Pt(t))},Lt=E.String,Ut=function(t){try{return Lt(t)}catch(t){return"Object"}},qt=ft,jt=Ut,Ct=E.TypeError,Dt=function(t){if(qt(t))return t ;throw Ct(jt(t)+" is not a function")},Ft=Dt,Vt=function(t,e){var r=t[e];return null==r?void 0:Ft(r)},Zt=B,Wt=ft,Kt=lt,Ht=E.TypeError,Gt=function(t,e){var r,n;if("string"===e&&Wt(r=t.toString)&&!Kt(n=Zt(r,t)))return n;if(Wt(r=t.valueOf)&&!Kt(n=Zt(r,t)))return n;if("string"!==e&&Wt(r=t.toString)&&!Kt(n=Zt(r,t)))return n;throw Ht("Can't convert object to primitive value")},Jt={exports:{}},Yt=E,Xt=Object.defineProperty,$t=function(t,e){try{Xt(Yt,t,{value:e,configurable:!0,writable:!0})}catch(r){ Yt[t]=e}return e},Qt=$t,te="__core-js_shared__",ee=E[te]||Qt(te,{}),re=ee;(Jt.exports=function(t,e){return re[t]||(re[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ne=ot,ie=E.Object,ae=function(t){return ie(ne(t))},oe=ae,se=G({}.hasOwnProperty),ue=Object.hasOwn||function(t,e){return se(oe(t),e) },ce=G,fe=0,he=Math.random(),le=ce(1..toString),de=function(t){return"Symbol("+(void 0===t?"":t)+")_"+le(++fe+he,36)},pe=E,ve=Jt.exports,ye=ue,me=de,ge=Et,be=Rt,_e=ve("wks"),we=pe.Symbol,ke=we&&we.for,Se=be?we:we&&we.withoutSetter||me,xe=function(t){if(!ye(_e,t)||!ge&&"string"!=typeof _e[t]){var e="Symbol."+t;ge&&ye(we,t)?_e[t]=we[t]:_e[t]=be&&ke?ke(e):Se(e)}return _e[t]},Ae=B,Ie=lt,Me=Bt,Ee=Vt,Re=Gt,Te=xe,ze=E.TypeError,Oe=Te("toPrimitive"),Ne=function(t,e){if(!Ie(t)||Me(t))return t ;var r,n=Ee(t,Oe);if(n){if(void 0===e&&(e="default"),r=Ae(n,t,e),!Ie(r)||Me(r))return r;throw ze("Can't convert object to primitive value")}return void 0===e&&(e="number"),Re(t,e)},Pe=Ne,Be=Bt,Le=function(t){var e=Pe(t,"string");return Be(e)?e:e+""},Ue=lt,qe=E.document,je=Ue(qe)&&Ue(qe.createElement),Ce=function(t){return je?qe.createElement(t):{}},De=Ce,Fe=!z&&!T((function(){return 7!=Object.defineProperty(De("div"),"a",{get:function(){return 7}}).a })),Ve=z,Ze=B,We=L,Ke=F,He=ct,Ge=Le,Je=ue,Ye=Fe,Xe=Object.getOwnPropertyDescriptor;R.f=Ve?Xe:function(t,e){if(t=He(t),e=Ge(e),Ye)try{return Xe(t,e)}catch(t){}if(Je(t,e))return Ke(!Ze(We.f,t,e),t[e])};var $e={},Qe=z&&T((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),tr=E,er=lt,rr=tr.String,nr=tr.TypeError,ir=function(t){if(er(t))return t;throw nr(rr(t)+" is not an object") },ar=z,or=Fe,sr=Qe,ur=ir,cr=Le,fr=E.TypeError,hr=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,dr="enumerable",pr="configurable",vr="writable";$e.f=ar?sr?function(t,e,r){if(ur(t),e=cr(e),ur(r),"function"==typeof t&&"prototype"===e&&"value"in r&&vr in r&&!r.writable){var n=lr(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:pr in r?r.configurable:n.configurable,enumerable:dr in r?r.enumerable:n.enumerable,writable:!1})}return hr(t,e,r)}:hr:function(t,e,r){if(ur(t),e=cr(e),ur(r), or)try{return hr(t,e,r)}catch(t){}if("get"in r||"set"in r)throw fr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var yr=$e,mr=F,gr=z?function(t,e,r){return yr.f(t,e,mr(1,r))}:function(t,e,r){return t[e]=r,t},br={exports:{}},_r=ft,wr=ee,kr=G(Function.toString);_r(wr.inspectSource)||(wr.inspectSource=function(t){return kr(t)});var Sr,xr,Ar,Ir=wr.inspectSource,Mr=ft,Er=Ir,Rr=E.WeakMap,Tr=Mr(Rr)&&/native code/.test(Er(Rr)),zr=Jt.exports,Or=de,Nr=zr("keys"),Pr=function(t){ return Nr[t]||(Nr[t]=Or(t))},Br={},Lr=Tr,Ur=E,qr=G,jr=lt,Cr=gr,Dr=ue,Fr=ee,Vr=Pr,Zr=Br,Wr="Object already initialized",Kr=Ur.TypeError,Hr=Ur.WeakMap;if(Lr||Fr.state){var Gr=Fr.state||(Fr.state=new Hr),Jr=qr(Gr.get),Yr=qr(Gr.has),Xr=qr(Gr.set);Sr=function(t,e){if(Yr(Gr,t))throw new Kr(Wr);return e.facade=t,Xr(Gr,t,e),e},xr=function(t){return Jr(Gr,t)||{}},Ar=function(t){return Yr(Gr,t)}}else{var $r=Vr("state");Zr[$r]=!0,Sr=function(t,e){if(Dr(t,$r))throw new Kr(Wr);return e.facade=t,Cr(t,$r,e),e },xr=function(t){return Dr(t,$r)?t[$r]:{}},Ar=function(t){return Dr(t,$r)}}var Qr={set:Sr,get:xr,has:Ar,enforce:function(t){return Ar(t)?xr(t):Sr(t,{})},getterFor:function(t){return function(e){var r;if(!jr(e)||(r=xr(e)).type!==t)throw Kr("Incompatible receiver, "+t+" required");return r}}},tn=z,en=ue,rn=Function.prototype,nn=tn&&Object.getOwnPropertyDescriptor,an=en(rn,"name"),on={EXISTS:an,PROPER:an&&"something"===function(){}.name,CONFIGURABLE:an&&(!tn||tn&&nn(rn,"name").configurable) },sn=E,un=ft,cn=ue,fn=gr,hn=$t,ln=Ir,dn=on.CONFIGURABLE,pn=Qr.get,vn=Qr.enforce,yn=String(String).split("String");(br.exports=function(t,e,r,n){var i,a=!!n&&!!n.unsafe,o=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,u=n&&void 0!==n.name?n.name:e;un(r)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!cn(r,"name")||dn&&r.name!==u)&&fn(r,"name",u),(i=vn(r)).source||(i.source=yn.join("string"==typeof u?u:""))),t!==sn?(a?!s&&t[e]&&(o=!0):delete t[e], o?t[e]=r:fn(t,e,r)):o?t[e]=r:hn(e,r)})(Function.prototype,"toString",(function(){return un(this)&&pn(this).source||ln(this)}));var mn={},gn=Math.ceil,bn=Math.floor,_n=function(t){var e=+t;return e!=e||0===e?0:(e>0?bn:gn)(e)},wn=_n,kn=Math.max,Sn=Math.min,xn=function(t,e){var r=wn(t);return r<0?kn(r+e,0):Sn(r,e)},An=_n,In=Math.min,Mn=function(t){return t>0?In(An(t),9007199254740991):0},En=Mn,Rn=function(t){return En(t.length)},Tn=ct,zn=xn,On=Rn,Nn=function(t){return function(e,r,n){ var i,a=Tn(e),o=On(a),s=zn(n,o);if(t&&r!=r){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((t||s in a)&&a[s]===r)return t||s||0;return!t&&-1}},Pn={includes:Nn(!0),indexOf:Nn(!1)},Bn=ue,Ln=ct,Un=Pn.indexOf,qn=Br,jn=G([].push),Cn=function(t,e){var r,n=Ln(t),i=0,a=[];for(r in n)!Bn(qn,r)&&Bn(n,r)&&jn(a,r);for(;e.length>i;)Bn(n,r=e[i++])&&(~Un(a,r)||jn(a,r));return a },Dn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Fn=Cn,Vn=Dn.concat("length","prototype");mn.f=Object.getOwnPropertyNames||function(t){return Fn(t,Vn)};var Zn={};Zn.f=Object.getOwnPropertySymbols;var Wn=yt,Kn=mn,Hn=Zn,Gn=ir,Jn=G([].concat),Yn=Wn("Reflect","ownKeys")||function(t){var e=Kn.f(Gn(t)),r=Hn.f;return r?Jn(e,r(t)):e},Xn=ue,$n=Yn,Qn=R,ti=$e,ei=function(t,e,r){for(var n=$n(e),i=ti.f,a=Qn.f,o=0;o<n.length;o++){var s=n[o] ;Xn(t,s)||r&&Xn(r,s)||i(t,s,a(e,s))}},ri=T,ni=ft,ii=/#|\.prototype\./,ai=function(t,e){var r=si[oi(t)];return r==ci||r!=ui&&(ni(e)?ri(e):!!e)},oi=ai.normalize=function(t){return String(t).replace(ii,".").toLowerCase()},si=ai.data={},ui=ai.NATIVE="N",ci=ai.POLYFILL="P",fi=ai,hi=E,li=R.f,di=gr,pi=br.exports,vi=$t,yi=ei,mi=fi,gi=function(t,e){var r,n,i,a,o,s=t.target,u=t.global,c=t.stat;if(r=u?hi:c?hi[s]||vi(s,{}):(hi[s]||{}).prototype)for(n in e){if(a=e[n], i=t.noTargetGet?(o=li(r,n))&&o.value:r[n],!mi(u?n:s+(c?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;yi(a,i)}(t.sham||i&&i.sham)&&di(a,"sham",!0),pi(r,n,a,t)}},bi=O,_i=Function.prototype,wi=_i.apply,ki=_i.call,Si="object"==typeof Reflect&&Reflect.apply||(bi?ki.bind(wi):function(){return ki.apply(wi,arguments)}),xi=$,Ai=Array.isArray||function(t){return"Array"==xi(t)},Ii={};Ii[xe("toStringTag")]="z" ;var Mi="[object z]"===String(Ii),Ei=E,Ri=Mi,Ti=ft,zi=$,Oi=xe("toStringTag"),Ni=Ei.Object,Pi="Arguments"==zi(function(){return arguments}()),Bi=Ri?zi:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Ni(t),Oi))?r:Pi?zi(e):"Object"==(n=zi(e))&&Ti(e.callee)?"Arguments":n},Li=Bi,Ui=E.String,qi=function(t){if("Symbol"===Li(t))throw TypeError("Cannot convert a Symbol value to a string");return Ui(t) },ji={},Ci=Cn,Di=Dn,Fi=Object.keys||function(t){return Ci(t,Di)},Vi=z,Zi=Qe,Wi=$e,Ki=ir,Hi=ct,Gi=Fi;ji.f=Vi&&!Zi?Object.defineProperties:function(t,e){Ki(t);for(var r,n=Hi(e),i=Gi(e),a=i.length,o=0;a>o;)Wi.f(t,r=i[o++],n[r]);return t};var Ji,Yi=yt("document","documentElement"),Xi=ir,$i=ji,Qi=Dn,ta=Br,ea=Yi,ra=Ce,na=Pr("IE_PROTO"),ia=function(){},aa=function(t){return"<script>"+t+"</"+"script>"},oa=function(t){t.write(aa("")),t.close();var e=t.parentWindow.Object;return t=null,e},sa=function(){ try{Ji=new ActiveXObject("htmlfile")}catch(t){}var t,e;sa="undefined"!=typeof document?document.domain&&Ji?oa(Ji):((e=ra("iframe")).style.display="none",ea.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(aa("document.F=Object")),t.close(),t.F):oa(Ji);for(var r=Qi.length;r--;)delete sa.prototype[Qi[r]];return sa()};ta[na]=!0;var ua=Object.create||function(t,e){var r;return null!==t?(ia.prototype=Xi(t),r=new ia,ia.prototype=null,r[na]=t):r=sa(), void 0===e?r:$i.f(r,e)},ca={},fa=Le,ha=$e,la=F,da=function(t,e,r){var n=fa(e);n in t?ha.f(t,n,la(0,r)):t[n]=r},pa=xn,va=Rn,ya=da,ma=E.Array,ga=Math.max,ba=function(t,e,r){for(var n=va(t),i=pa(e,n),a=pa(void 0===r?n:r,n),o=ma(ga(a-i,0)),s=0;i<a;i++,s++)ya(o,s,t[i]);return o.length=s,o},_a=$,wa=ct,ka=mn.f,Sa=ba,xa="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];ca.f=function(t){return xa&&"Window"==_a(t)?function(t){try{return ka(t)}catch(t){ return Sa(xa)}}(t):ka(wa(t))};var Aa=G([].slice),Ia={},Ma=xe;Ia.f=Ma;var Ea=E,Ra=ue,Ta=Ia,za=$e.f,Oa=function(t){var e=Ea.Symbol||(Ea.Symbol={});Ra(e,t)||za(e,t,{value:Ta.f(t)})},Na=$e.f,Pa=ue,Ba=xe("toStringTag"),La=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Pa(t,Ba)&&Na(t,Ba,{configurable:!0,value:e})},Ua=Dt,qa=O,ja=G(G.bind),Ca=function(t,e){return Ua(t),void 0===e?t:qa?ja(t,e):function(){return t.apply(e,arguments)} },Da=G,Fa=T,Va=ft,Za=Bi,Wa=Ir,Ka=function(){},Ha=[],Ga=yt("Reflect","construct"),Ja=/^\s*(?:class|function)\b/,Ya=Da(Ja.exec),Xa=!Ja.exec(Ka),$a=function(t){if(!Va(t))return!1;try{return Ga(Ka,Ha,t),!0}catch(t){return!1}},Qa=function(t){if(!Va(t))return!1;switch(Za(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xa||!!Ya(Ja,Wa(t))}catch(t){return!0}};Qa.sham=!0;var to=!Ga||Fa((function(){var t;return $a($a.call)||!$a(Object)||!$a((function(){t=!0 }))||t}))?Qa:$a,eo=E,ro=Ai,no=to,io=lt,ao=xe("species"),oo=eo.Array,so=function(t){var e;return ro(t)&&(e=t.constructor,(no(e)&&(e===oo||ro(e.prototype))||io(e)&&null===(e=e[ao]))&&(e=void 0)),void 0===e?oo:e},uo=function(t,e){return new(so(t))(0===e?0:e)},co=Ca,fo=it,ho=ae,lo=Rn,po=uo,vo=G([].push),yo=function(t){var e=1==t,r=2==t,n=3==t,i=4==t,a=6==t,o=7==t,s=5==t||a;return function(u,c,f,h){ for(var l,d,p=ho(u),v=fo(p),y=co(c,f),m=lo(v),g=0,b=h||po,_=e?b(u,m):r||o?b(u,0):void 0;m>g;g++)if((s||g in v)&&(d=y(l=v[g],g,p),t))if(e)_[g]=d;else if(d)switch(t){case 3:return!0;case 5:return l;case 6:return g;case 2:vo(_,l)}else switch(t){case 4:return!1;case 7:vo(_,l)}return a?-1:n||i?i:_}},mo={forEach:yo(0),map:yo(1),filter:yo(2),some:yo(3),every:yo(4),find:yo(5),findIndex:yo(6),filterReject:yo(7) },go=gi,bo=E,_o=yt,wo=Si,ko=B,So=G,xo=z,Ao=Et,Io=T,Mo=ue,Eo=Ai,Ro=ft,To=lt,zo=mt,Oo=Bt,No=ir,Po=ae,Bo=ct,Lo=Le,Uo=qi,qo=F,jo=ua,Co=Fi,Do=mn,Fo=ca,Vo=Zn,Zo=R,Wo=$e,Ko=ji,Ho=L,Go=Aa,Jo=br.exports,Yo=Jt.exports,Xo=Br,$o=de,Qo=xe,ts=Ia,es=Oa,rs=La,ns=Qr,is=mo.forEach,as=Pr("hidden"),os="Symbol",ss=Qo("toPrimitive"),us=ns.set,cs=ns.getterFor(os),fs=Object.prototype,hs=bo.Symbol,ls=hs&&hs.prototype,ds=bo.TypeError,ps=bo.QObject,vs=_o("JSON","stringify"),ys=Zo.f,ms=Wo.f,gs=Fo.f,bs=Ho.f,_s=So([].push),ws=Yo("symbols"),ks=Yo("op-symbols"),Ss=Yo("string-to-symbol-registry"),xs=Yo("symbol-to-string-registry"),As=Yo("wks"),Is=!ps||!ps.prototype||!ps.prototype.findChild,Ms=xo&&Io((function(){ return 7!=jo(ms({},"a",{get:function(){return ms(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=ys(fs,e);n&&delete fs[e],ms(t,e,r),n&&t!==fs&&ms(fs,e,n)}:ms,Es=function(t,e){var r=ws[t]=jo(ls);return us(r,{type:os,tag:t,description:e}),xo||(r.description=e),r},Rs=function(t,e,r){t===fs&&Rs(ks,e,r),No(t);var n=Lo(e);return No(r),Mo(ws,n)?(r.enumerable?(Mo(t,as)&&t[as][n]&&(t[as][n]=!1),r=jo(r,{enumerable:qo(0,!1)})):(Mo(t,as)||ms(t,as,qo(1,{})),t[as][n]=!0),Ms(t,n,r)):ms(t,n,r) },Ts=function(t,e){No(t);var r=Bo(e),n=Co(r).concat(Ps(r));return is(n,(function(e){xo&&!ko(zs,r,e)||Rs(t,e,r[e])})),t},zs=function(t){var e=Lo(t),r=ko(bs,this,e);return!(this===fs&&Mo(ws,e)&&!Mo(ks,e))&&(!(r||!Mo(this,e)||!Mo(ws,e)||Mo(this,as)&&this[as][e])||r)},Os=function(t,e){var r=Bo(t),n=Lo(e);if(r!==fs||!Mo(ws,n)||Mo(ks,n)){var i=ys(r,n);return!i||!Mo(ws,n)||Mo(r,as)&&r[as][n]||(i.enumerable=!0),i}},Ns=function(t){var e=gs(Bo(t)),r=[];return is(e,(function(t){Mo(ws,t)||Mo(Xo,t)||_s(r,t) })),r},Ps=function(t){var e=t===fs,r=gs(e?ks:Bo(t)),n=[];return is(r,(function(t){!Mo(ws,t)||e&&!Mo(fs,t)||_s(n,ws[t])})),n};(Ao||(hs=function(){if(zo(ls,this))throw ds("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Uo(arguments[0]):void 0,e=$o(t),r=function(t){this===fs&&ko(r,ks,t),Mo(this,as)&&Mo(this[as],e)&&(this[as][e]=!1),Ms(this,e,qo(1,t))};return xo&&Is&&Ms(fs,e,{configurable:!0,set:r}),Es(e,t)},Jo(ls=hs.prototype,"toString",(function(){return cs(this).tag })),Jo(hs,"withoutSetter",(function(t){return Es($o(t),t)})),Ho.f=zs,Wo.f=Rs,Ko.f=Ts,Zo.f=Os,Do.f=Fo.f=Ns,Vo.f=Ps,ts.f=function(t){return Es(Qo(t),t)},xo&&(ms(ls,"description",{configurable:!0,get:function(){return cs(this).description}}),Jo(fs,"propertyIsEnumerable",zs,{unsafe:!0}))),go({global:!0,wrap:!0,forced:!Ao,sham:!Ao},{Symbol:hs}),is(Co(As),(function(t){es(t)})),go({target:os,stat:!0,forced:!Ao},{for:function(t){var e=Uo(t);if(Mo(Ss,e))return Ss[e];var r=hs(e);return Ss[e]=r,xs[r]=e,r}, keyFor:function(t){if(!Oo(t))throw ds(t+" is not a symbol");if(Mo(xs,t))return xs[t]},useSetter:function(){Is=!0},useSimple:function(){Is=!1}}),go({target:"Object",stat:!0,forced:!Ao,sham:!xo},{create:function(t,e){return void 0===e?jo(t):Ts(jo(t),e)},defineProperty:Rs,defineProperties:Ts,getOwnPropertyDescriptor:Os}),go({target:"Object",stat:!0,forced:!Ao},{getOwnPropertyNames:Ns,getOwnPropertySymbols:Ps}),go({target:"Object",stat:!0,forced:Io((function(){Vo.f(1)}))},{ getOwnPropertySymbols:function(t){return Vo.f(Po(t))}}),vs)&&go({target:"JSON",stat:!0,forced:!Ao||Io((function(){var t=hs();return"[null]"!=vs([t])||"{}"!=vs({a:t})||"{}"!=vs(Object(t))}))},{stringify:function(t,e,r){var n=Go(arguments),i=e;if((To(e)||void 0!==t)&&!Oo(t))return Eo(e)||(e=function(t,e){if(Ro(i)&&(e=ko(i,this,t,e)),!Oo(e))return e}),n[1]=e,wo(vs,null,n)}});if(!ls[ss]){var Bs=ls.valueOf;Jo(ls,ss,(function(t){return ko(Bs,this)}))}rs(hs,os),Xo[as]=!0 ;var Ls=gi,Us=z,qs=E,js=G,Cs=ue,Ds=ft,Fs=mt,Vs=qi,Zs=$e.f,Ws=ei,Ks=qs.Symbol,Hs=Ks&&Ks.prototype;if(Us&&Ds(Ks)&&(!("description"in Hs)||void 0!==Ks().description)){var Gs={},Js=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Vs(arguments[0]),e=Fs(Hs,this)?new Ks(t):void 0===t?Ks():Ks(t);return""===t&&(Gs[e]=!0),e};Ws(Js,Ks),Js.prototype=Hs,Hs.constructor=Js ;var Ys="Symbol(test)"==String(Ks("test")),Xs=js(Hs.toString),$s=js(Hs.valueOf),Qs=/^Symbol\((.*)\)[^)]+$/,tu=js("".replace),eu=js("".slice);Zs(Hs,"description",{configurable:!0,get:function(){var t=$s(this),e=Xs(t);if(Cs(Gs,t))return"";var r=Ys?eu(e,7,-1):tu(e,Qs,"$1");return""===r?void 0:r}}),Ls({global:!0,forced:!0},{Symbol:Js})}var ru=Bi,nu=Mi?{}.toString:function(){return"[object "+ru(this)+"]"},iu=Mi,au=br.exports,ou=nu;iu||au(Object.prototype,"toString",ou,{unsafe:!0}),Oa("iterator") ;var su=ua,uu=$e,cu=xe("unscopables"),fu=Array.prototype;null==fu[cu]&&uu.f(fu,cu,{configurable:!0,value:su(null)});var hu,lu,du,pu=function(t){fu[cu][t]=!0},vu={},yu=!T((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),mu=E,gu=ue,bu=ft,_u=ae,wu=yu,ku=Pr("IE_PROTO"),Su=mu.Object,xu=Su.prototype,Au=wu?Su.getPrototypeOf:function(t){var e=_u(t);if(gu(e,ku))return e[ku];var r=e.constructor ;return bu(r)&&e instanceof r?r.prototype:e instanceof Su?xu:null},Iu=T,Mu=ft,Eu=Au,Ru=br.exports,Tu=xe("iterator"),zu=!1;[].keys&&("next"in(du=[].keys())?(lu=Eu(Eu(du)))!==Object.prototype&&(hu=lu):zu=!0);var Ou=null==hu||Iu((function(){var t={};return hu[Tu].call(t)!==t}));Ou&&(hu={}),Mu(hu[Tu])||Ru(hu,Tu,(function(){return this}));var Nu={IteratorPrototype:hu,BUGGY_SAFARI_ITERATORS:zu},Pu=Nu.IteratorPrototype,Bu=ua,Lu=F,Uu=La,qu=vu,ju=function(){return this},Cu=function(t,e,r,n){ var i=e+" Iterator";return t.prototype=Bu(Pu,{next:Lu(+!n,r)}),Uu(t,i,!1),qu[i]=ju,t},Du=E,Fu=ft,Vu=Du.String,Zu=Du.TypeError,Wu=G,Ku=ir,Hu=function(t){if("object"==typeof t||Fu(t))return t;throw Zu("Can't set "+Vu(t)+" as a prototype")},Gu=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Wu(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ku(r),Hu(n),e?t(r,n):r.__proto__=n,r} }():void 0),Ju=gi,Yu=B,Xu=on,$u=ft,Qu=Cu,tc=Au,ec=Gu,rc=La,nc=gr,ic=br.exports,ac=vu,oc=Xu.PROPER,sc=Xu.CONFIGURABLE,uc=Nu.IteratorPrototype,cc=Nu.BUGGY_SAFARI_ITERATORS,fc=xe("iterator"),hc="keys",lc="values",dc="entries",pc=function(){return this},vc=function(t,e,r,n,i,a,o){Qu(r,e,n);var s,u,c,f=function(t){if(t===i&&v)return v;if(!cc&&t in d)return d[t];switch(t){case hc:case lc:case dc:return function(){return new r(this,t)}}return function(){return new r(this)} },h=e+" Iterator",l=!1,d=t.prototype,p=d[fc]||d["@@iterator"]||i&&d[i],v=!cc&&p||f(i),y="Array"==e&&d.entries||p;if(y&&(s=tc(y.call(new t)))!==Object.prototype&&s.next&&(tc(s)!==uc&&(ec?ec(s,uc):$u(s[fc])||ic(s,fc,pc)),rc(s,h,!0)),oc&&i==lc&&p&&p.name!==lc&&(sc?nc(d,"name",lc):(l=!0,v=function(){return Yu(p,this)})),i)if(u={values:f(lc),keys:a?v:f(hc),entries:f(dc)},o)for(c in u)(cc||l||!(c in d))&&ic(d,c,u[c]);else Ju({target:e,proto:!0,forced:cc||l},u);return d[fc]!==v&&ic(d,fc,v,{name:i}), ac[e]=v,u},yc=ct,mc=pu,gc=vu,bc=Qr,_c=$e.f,wc=vc,kc=z,Sc="Array Iterator",xc=bc.set,Ac=bc.getterFor(Sc),Ic=wc(Array,"Array",(function(t,e){xc(this,{type:Sc,target:yc(t),index:0,kind:e})}),(function(){var t=Ac(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),Mc=gc.Arguments=gc.Array;if(mc("keys"),mc("values"),mc("entries"), kc&&"values"!==Mc.name)try{_c(Mc,"name",{value:"values"})}catch(t){}var Ec=G,Rc=_n,Tc=qi,zc=ot,Oc=Ec("".charAt),Nc=Ec("".charCodeAt),Pc=Ec("".slice),Bc=function(t){return function(e,r){var n,i,a=Tc(zc(e)),o=Rc(r),s=a.length;return o<0||o>=s?t?"":void 0:(n=Nc(a,o))<55296||n>56319||o+1===s||(i=Nc(a,o+1))<56320||i>57343?t?Oc(a,o):n:t?Pc(a,o,o+2):i-56320+(n-55296<<10)+65536}},Lc={codeAt:Bc(!1),charAt:Bc(!0)},Uc=Lc.charAt,qc=qi,jc=Qr,Cc=vc,Dc="String Iterator",Fc=jc.set,Vc=jc.getterFor(Dc) ;Cc(String,"String",(function(t){Fc(this,{type:Dc,string:qc(t),index:0})}),(function(){var t,e=Vc(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=Uc(r,n),e.index+=t.length,{value:t,done:!1})}));var Zc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0, NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Wc=Ce("span").classList,Kc=Wc&&Wc.constructor&&Wc.constructor.prototype,Hc=Kc===Object.prototype?void 0:Kc,Gc=E,Jc=Zc,Yc=Hc,Xc=Ic,$c=gr,Qc=xe,tf=Qc("iterator"),ef=Qc("toStringTag"),rf=Xc.values,nf=function(t,e){if(t){if(t[tf]!==rf)try{$c(t,tf,rf)}catch(e){t[tf]=rf }if(t[ef]||$c(t,ef,e),Jc[e])for(var r in Xc)if(t[r]!==Xc[r])try{$c(t,r,Xc[r])}catch(e){t[r]=Xc[r]}}};for(var af in Jc)nf(Gc[af]&&Gc[af].prototype,af);nf(Yc,"DOMTokenList"),Oa("asyncIterator"),Oa("toStringTag"),La(E.JSON,"JSON",!0),La(Math,"Math",!0);var of=gi,sf=z,uf=$e.f;of({target:"Object",stat:!0,forced:Object.defineProperty!==uf,sham:!sf},{defineProperty:uf});var cf=ae,ff=Au,hf=yu;gi({target:"Object",stat:!0,forced:T((function(){ff(1)})),sham:!hf},{getPrototypeOf:function(t){return ff(cf(t)) }});var lf=z,df=on.EXISTS,pf=G,vf=$e.f,yf=Function.prototype,mf=pf(yf.toString),gf=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bf=pf(gf.exec);lf&&!df&&vf(yf,"name",{configurable:!0,get:function(){try{return bf(gf,mf(this))[1]}catch(t){return""}}}),gi({target:"Object",stat:!0},{setPrototypeOf:Gu});var _f=E.Promise,wf=br.exports,kf=function(t,e,r){for(var n in e)wf(t,n,e[n],r);return t},Sf=yt,xf=$e,Af=z,If=xe("species"),Mf=function(t){var e=Sf(t),r=xf.f ;Af&&e&&!e[If]&&r(e,If,{configurable:!0,get:function(){return this}})},Ef=mt,Rf=E.TypeError,Tf=function(t,e){if(Ef(e,t))return t;throw Rf("Incorrect invocation")},zf=vu,Of=xe("iterator"),Nf=Array.prototype,Pf=function(t){return void 0!==t&&(zf.Array===t||Nf[Of]===t)},Bf=Bi,Lf=Vt,Uf=vu,qf=xe("iterator"),jf=function(t){if(null!=t)return Lf(t,qf)||Lf(t,"@@iterator")||Uf[Bf(t)]},Cf=B,Df=Dt,Ff=ir,Vf=Ut,Zf=jf,Wf=E.TypeError,Kf=function(t,e){var r=arguments.length<2?Zf(t):e;if(Df(r))return Ff(Cf(r,t)) ;throw Wf(Vf(t)+" is not iterable")},Hf=B,Gf=ir,Jf=Vt,Yf=function(t,e,r){var n,i;Gf(t);try{if(!(n=Jf(t,"return"))){if("throw"===e)throw r;return r}n=Hf(n,t)}catch(t){i=!0,n=t}if("throw"===e)throw r;if(i)throw n;return Gf(n),r},Xf=Ca,$f=B,Qf=ir,th=Ut,eh=Pf,rh=Rn,nh=mt,ih=Kf,ah=jf,oh=Yf,sh=E.TypeError,uh=function(t,e){this.stopped=t,this.result=e},ch=uh.prototype,fh=function(t,e,r){ var n,i,a,o,s,u,c,f=r&&r.that,h=!(!r||!r.AS_ENTRIES),l=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),p=Xf(e,f),v=function(t){return n&&oh(n,"normal",t),new uh(!0,t)},y=function(t){return h?(Qf(t),d?p(t[0],t[1],v):p(t[0],t[1])):d?p(t,v):p(t)};if(l)n=t;else{if(!(i=ah(t)))throw sh(th(t)+" is not iterable");if(eh(i)){for(a=0,o=rh(t);o>a;a++)if((s=y(t[a]))&&nh(ch,s))return s;return new uh(!1)}n=ih(t,i)}for(u=n.next;!(c=$f(u,n)).done;){try{s=y(c.value)}catch(t){oh(n,"throw",t)} if("object"==typeof s&&s&&nh(ch,s))return s}return new uh(!1)},hh=xe("iterator"),lh=!1;try{var dh=0,ph={next:function(){return{done:!!dh++}},return:function(){lh=!0}};ph[hh]=function(){return this},Array.from(ph,(function(){throw 2}))}catch(t){}var vh,yh,mh,gh,bh=function(t,e){if(!e&&!lh)return!1;var r=!1;try{var n={};n[hh]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},_h=to,wh=Ut,kh=E.TypeError,Sh=function(t){if(_h(t))return t ;throw kh(wh(t)+" is not a constructor")},xh=ir,Ah=Sh,Ih=xe("species"),Mh=function(t,e){var r,n=xh(t).constructor;return void 0===n||null==(r=xh(n)[Ih])?e:Ah(r)},Eh=E.TypeError,Rh=function(t,e){if(t<e)throw Eh("Not enough arguments");return t },Th=/(?:ipad|iphone|ipod).*applewebkit/i.test(gt),zh="process"==$(E.process),Oh=E,Nh=Si,Ph=Ca,Bh=ft,Lh=ue,Uh=T,qh=Yi,jh=Aa,Ch=Ce,Dh=Rh,Fh=Th,Vh=zh,Zh=Oh.setImmediate,Wh=Oh.clearImmediate,Kh=Oh.process,Hh=Oh.Dispatch,Gh=Oh.Function,Jh=Oh.MessageChannel,Yh=Oh.String,Xh=0,$h={},Qh="onreadystatechange";try{vh=Oh.location}catch(t){}var tl=function(t){if(Lh($h,t)){var e=$h[t];delete $h[t],e()}},el=function(t){return function(){tl(t)}},rl=function(t){tl(t.data)},nl=function(t){ Oh.postMessage(Yh(t),vh.protocol+"//"+vh.host)};Zh&&Wh||(Zh=function(t){Dh(arguments.length,1);var e=Bh(t)?t:Gh(t),r=jh(arguments,1);return $h[++Xh]=function(){Nh(e,void 0,r)},yh(Xh),Xh},Wh=function(t){delete $h[t]},Vh?yh=function(t){Kh.nextTick(el(t))}:Hh&&Hh.now?yh=function(t){Hh.now(el(t))}:Jh&&!Fh?(gh=(mh=new Jh).port2,mh.port1.onmessage=rl,yh=Ph(gh.postMessage,gh)):Oh.addEventListener&&Bh(Oh.postMessage)&&!Oh.importScripts&&vh&&"file:"!==vh.protocol&&!Uh(nl)?(yh=nl, Oh.addEventListener("message",rl,!1)):yh=Qh in Ch("script")?function(t){qh.appendChild(Ch("script")).onreadystatechange=function(){qh.removeChild(this),tl(t)}}:function(t){setTimeout(el(t),0)});var il,al,ol,sl,ul,cl,fl,hl,ll={set:Zh,clear:Wh },dl=E,pl=/ipad|iphone|ipod/i.test(gt)&&void 0!==dl.Pebble,vl=/web0s(?!.*chrome)/i.test(gt),yl=E,ml=Ca,gl=R.f,bl=ll.set,_l=Th,wl=pl,kl=vl,Sl=zh,xl=yl.MutationObserver||yl.WebKitMutationObserver,Al=yl.document,Il=yl.process,Ml=yl.Promise,El=gl(yl,"queueMicrotask"),Rl=El&&El.value;Rl||(il=function(){var t,e;for(Sl&&(t=Il.domain)&&t.exit();al;){e=al.fn,al=al.next;try{e()}catch(t){throw al?sl():ol=void 0,t}}ol=void 0,t&&t.enter()}, _l||Sl||kl||!xl||!Al?!wl&&Ml&&Ml.resolve?((fl=Ml.resolve(void 0)).constructor=Ml,hl=ml(fl.then,fl),sl=function(){hl(il)}):Sl?sl=function(){Il.nextTick(il)}:(bl=ml(bl,yl),sl=function(){bl(il)}):(ul=!0,cl=Al.createTextNode(""),new xl(il).observe(cl,{characterData:!0}),sl=function(){cl.data=ul=!ul}));var Tl=Rl||function(t){var e={fn:t,next:void 0};ol&&(ol.next=e),al||(al=e,sl()),ol=e},zl={},Ol=Dt,Nl=function(t){var e,r;this.promise=new t((function(t,n){ if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Ol(e),this.reject=Ol(r)};zl.f=function(t){return new Nl(t)};var Pl=ir,Bl=lt,Ll=zl,Ul=E,ql=function(){this.head=null,this.tail=null};ql.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}} ;var jl,Cl,Dl,Fl,Vl=ql,Zl="object"==typeof window,Wl=gi,Kl=E,Hl=yt,Gl=B,Jl=_f,Yl=br.exports,Xl=kf,$l=Gu,Ql=La,td=Mf,ed=Dt,rd=ft,nd=lt,id=Tf,ad=Ir,od=fh,sd=bh,ud=Mh,cd=ll.set,fd=Tl,hd=function(t,e){if(Pl(t),Bl(e)&&e.constructor===t)return e;var r=Ll.f(t);return(0,r.resolve)(e),r.promise},ld=function(t,e){var r=Ul.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))},dd=zl,pd=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}} },vd=Vl,yd=Qr,md=fi,gd=Zl,bd=zh,_d=At,wd=xe("species"),kd="Promise",Sd=yd.getterFor(kd),xd=yd.set,Ad=yd.getterFor(kd),Id=Jl&&Jl.prototype,Md=Jl,Ed=Id,Rd=Kl.TypeError,Td=Kl.document,zd=Kl.process,Od=dd.f,Nd=Od,Pd=!!(Td&&Td.createEvent&&Kl.dispatchEvent),Bd=rd(Kl.PromiseRejectionEvent),Ld="unhandledrejection",Ud=!1,qd=md(kd,(function(){var t=ad(Md),e=t!==String(Md);if(!e&&66===_d)return!0;if(_d>=51&&/native code/.test(t))return!1;var r=new Md((function(t){t(1)})),n=function(t){ t((function(){}),(function(){}))};return(r.constructor={})[wd]=n,!(Ud=r.then((function(){}))instanceof n)||!e&&gd&&!Bd})),jd=qd||!sd((function(t){Md.all(t).catch((function(){}))})),Cd=function(t){var e;return!(!nd(t)||!rd(e=t.then))&&e},Dd=function(t,e){var r,n,i,a=e.value,o=1==e.state,s=o?t.ok:t.fail,u=t.resolve,c=t.reject,f=t.domain;try{s?(o||(2===e.rejection&&Kd(e),e.rejection=1),!0===s?r=a:(f&&f.enter(),r=s(a),f&&(f.exit(),i=!0)), r===t.promise?c(Rd("Promise-chain cycle")):(n=Cd(r))?Gl(n,r,u,c):u(r)):c(a)}catch(t){f&&!i&&f.exit(),c(t)}},Fd=function(t,e){t.notified||(t.notified=!0,fd((function(){for(var r,n=t.reactions;r=n.get();)Dd(r,t);t.notified=!1,e&&!t.rejection&&Zd(t)})))},Vd=function(t,e,r){var n,i;Pd?((n=Td.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),Kl.dispatchEvent(n)):n={promise:e,reason:r},!Bd&&(i=Kl["on"+t])?i(n):t===Ld&&ld("Unhandled promise rejection",r)},Zd=function(t){ Gl(cd,Kl,(function(){var e,r=t.facade,n=t.value;if(Wd(t)&&(e=pd((function(){bd?zd.emit("unhandledRejection",n,r):Vd(Ld,r,n)})),t.rejection=bd||Wd(t)?2:1,e.error))throw e.value}))},Wd=function(t){return 1!==t.rejection&&!t.parent},Kd=function(t){Gl(cd,Kl,(function(){var e=t.facade;bd?zd.emit("rejectionHandled",e):Vd("rejectionhandled",e,t.value)}))},Hd=function(t,e,r){return function(n){t(e,n,r)}},Gd=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,Fd(t,!0))},Jd=function(t,e,r){ if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw Rd("Promise can't be resolved itself");var n=Cd(e);n?fd((function(){var r={done:!1};try{Gl(n,e,Hd(Jd,r,t),Hd(Gd,r,t))}catch(e){Gd(r,e,t)}})):(t.value=e,t.state=1,Fd(t,!1))}catch(e){Gd({done:!1},e,t)}}};if(qd&&(Ed=(Md=function(t){id(this,Ed),ed(t),Gl(jl,this);var e=Sd(this);try{t(Hd(Jd,e),Hd(Gd,e))}catch(t){Gd(e,t)}}).prototype,(jl=function(t){xd(this,{type:kd,done:!1,notified:!1,parent:!1,reactions:new vd,rejection:!1,state:0,value:void 0 })}).prototype=Xl(Ed,{then:function(t,e){var r=Ad(this),n=Od(ud(this,Md));return r.parent=!0,n.ok=!rd(t)||t,n.fail=rd(e)&&e,n.domain=bd?zd.domain:void 0,0==r.state?r.reactions.add(n):fd((function(){Dd(n,r)})),n.promise},catch:function(t){return this.then(void 0,t)}}),Cl=function(){var t=new jl,e=Sd(t);this.promise=t,this.resolve=Hd(Jd,e),this.reject=Hd(Gd,e)},dd.f=Od=function(t){return t===Md||t===Dl?new Cl(t):Nd(t)},rd(Jl)&&Id!==Object.prototype)){Fl=Id.then,Ud||(Yl(Id,"then",(function(t,e){ var r=this;return new Md((function(t,e){Gl(Fl,r,t,e)})).then(t,e)}),{unsafe:!0}),Yl(Id,"catch",Ed.catch,{unsafe:!0}));try{delete Id.constructor}catch(t){}$l&&$l(Id,Ed)}Wl({global:!0,wrap:!0,forced:qd},{Promise:Md}),Ql(Md,kd,!1),td(kd),Dl=Hl(kd),Wl({target:kd,stat:!0,forced:qd},{reject:function(t){var e=Od(this);return Gl(e.reject,void 0,t),e.promise}}),Wl({target:kd,stat:!0,forced:qd},{resolve:function(t){return hd(this,t)}}),Wl({target:kd,stat:!0,forced:jd},{all:function(t){ var e=this,r=Od(e),n=r.resolve,i=r.reject,a=pd((function(){var r=ed(e.resolve),a=[],o=0,s=1;od(t,(function(t){var u=o++,c=!1;s++,Gl(r,e,t).then((function(t){c||(c=!0,a[u]=t,--s||n(a))}),i)})),--s||n(a)}));return a.error&&i(a.value),r.promise},race:function(t){var e=this,r=Od(e),n=r.reject,i=pd((function(){var i=ed(e.resolve);od(t,(function(t){Gl(i,e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}});var Yd=T,Xd=function(t,e){var r=[][t];return!!r&&Yd((function(){ r.call(null,e||function(){return 1},1)}))},$d=mo.forEach,Qd=Xd("forEach")?[].forEach:function(t){return $d(this,t,arguments.length>1?arguments[1]:void 0)},tp=E,ep=Zc,rp=Hc,np=Qd,ip=gr,ap=function(t){if(t&&t.forEach!==np)try{ip(t,"forEach",np)}catch(e){t.forEach=np}};for(var op in ep)ep[op]&&ap(tp[op]&&tp[op].prototype);ap(rp);var sp=T,up=At,cp=xe("species"),fp=function(t){return up>=51||!sp((function(){var e=[];return(e.constructor={})[cp]=function(){return{foo:1}},1!==e[t](Boolean).foo})) },hp=gi,lp=E,dp=Ai,pp=to,vp=lt,yp=xn,mp=Rn,gp=ct,bp=da,_p=xe,wp=Aa,kp=fp("slice"),Sp=_p("species"),xp=lp.Array,Ap=Math.max;hp({target:"Array",proto:!0,forced:!kp},{slice:function(t,e){var r,n,i,a=gp(this),o=mp(a),s=yp(t,o),u=yp(void 0===e?o:e,o);if(dp(a)&&(r=a.constructor,(pp(r)&&(r===xp||dp(r.prototype))||vp(r)&&null===(r=r[Sp]))&&(r=void 0),r===xp||void 0===r))return wp(a,s,u);for(n=new(void 0===r?xp:r)(Ap(u-s,0)),i=0;s<u;s++,i++)s in a&&bp(n,i,a[s]);return n.length=i,n}}),gi({global:!0},{ globalThis:E});!function(t){var e=function(t){var e,r=Object.prototype,i=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof m?e:m,a=Object.create(i.prototype),o=new R(n||[]) ;return a._invoke=function(t,e,r){var n=l;return function(i,a){if(n===p)throw new Error("Generator is already running");if(n===v){if("throw"===i)throw a;return z()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=I(o,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=v,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var u=h(t,e,r);if("normal"===u.type){if(n=r.done?v:d, u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=v,r.method="throw",r.arg=u.arg)}}}(t,r,o),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=f;var l="suspendedStart",d="suspendedYield",p="executing",v="completed",y={};function m(){}function g(){}function b(){}var _={};c(_,o,(function(){return this}));var w=Object.getPrototypeOf,k=w&&w(w(T([])));k&&k!==r&&i.call(k,o)&&(_=k) ;var S=b.prototype=m.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,e){function r(a,o,s,u){var c=h(t[a],t,o);if("throw"!==c.type){var f=c.arg,l=f.value;return l&&"object"===n(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(l).then((function(t){f.value=t,s(f)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var a ;this._invoke=function(t,n){function i(){return new e((function(e,i){r(t,n,e,i)}))}return a=a?a.then(i,i):i()}}function I(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,I(t,r),"throw"===r.method))return y;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=h(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg ;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this), this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(i.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:z}}function z(){return{value:e,done:!0}}return g.prototype=b,c(S,"constructor",b),c(b,"constructor",g),g.displayName=c(b,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor ;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,c(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},t.awrap=function(t){return{__await:t}},x(A.prototype),c(A.prototype,s,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new A(f(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(t){ return t.done?t.value:o.next()}))},x(S),c(S,u,"Generator"),c(S,o,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=T,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e, this.tryEntries.forEach(E),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,i){return s.type="throw",s.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion ;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r] ;if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=t,o.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return", this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),y}},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;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t), resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"===("undefined"==typeof globalThis?"undefined":n(globalThis))?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}({exports:{}});var Ip=ae,Mp=Fi;gi({target:"Object",stat:!0,forced:T((function(){Mp(1)}))},{keys:function(t){return Mp(Ip(t))}});var Ep=gi,Rp=it,Tp=ct,zp=Xd,Op=G([].join),Np=Rp!=Object,Pp=zp("join",",");Ep({target:"Array",proto:!0,forced:Np||!Pp },{join:function(t){return Op(Tp(this),void 0===t?",":t)}});var Bp=mo.map;gi({target:"Array",proto:!0,forced:!fp("map")},{map:function(t){return Bp(this,t,arguments.length>1?arguments[1]:void 0)}});var Lp,Up,qp=ir,jp=function(){var t=qp(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},Cp=T,Dp=E.RegExp,Fp=Cp((function(){var t=Dp("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Vp=Fp||Cp((function(){ return!Dp("a","y").sticky})),Zp={BROKEN_CARET:Fp||Cp((function(){var t=Dp("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Vp,UNSUPPORTED_Y:Fp},Wp=T,Kp=E.RegExp,Hp=Wp((function(){var t=Kp(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Gp=T,Jp=E.RegExp,Yp=Gp((function(){var t=Jp("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c") })),Xp=B,$p=G,Qp=qi,tv=jp,ev=Zp,rv=Jt.exports,nv=ua,iv=Qr.get,av=Hp,ov=Yp,sv=rv("native-string-replace",String.prototype.replace),uv=RegExp.prototype.exec,cv=uv,fv=$p("".charAt),hv=$p("".indexOf),lv=$p("".replace),dv=$p("".slice),pv=(Up=/b*/g,Xp(uv,Lp=/a/,"a"),Xp(uv,Up,"a"),0!==Lp.lastIndex||0!==Up.lastIndex),vv=ev.BROKEN_CARET,yv=void 0!==/()??/.exec("")[1];(pv||yv||vv||av||ov)&&(cv=function(t){var e,r,n,i,a,o,s,u=this,c=iv(u),f=Qp(t),h=c.raw;if(h)return h.lastIndex=u.lastIndex,e=Xp(cv,h,f), u.lastIndex=h.lastIndex,e;var l=c.groups,d=vv&&u.sticky,p=Xp(tv,u),v=u.source,y=0,m=f;if(d&&(p=lv(p,"y",""),-1===hv(p,"g")&&(p+="g"),m=dv(f,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==fv(f,u.lastIndex-1))&&(v="(?: "+v+")",m=" "+m,y++),r=new RegExp("^(?:"+v+")",p)),yv&&(r=new RegExp("^"+v+"$(?!\\s)",p)),pv&&(n=u.lastIndex),i=Xp(uv,d?r:u,m),d?i?(i.input=dv(i.input,y),i[0]=dv(i[0],y),i.index=u.lastIndex, u.lastIndex+=i[0].length):u.lastIndex=0:pv&&i&&(u.lastIndex=u.global?i.index+i[0].length:n),yv&&i&&i.length>1&&Xp(sv,i[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(i[a]=void 0)})),i&&l)for(i.groups=o=nv(null),a=0;a<l.length;a++)o[(s=l[a])[0]]=i[s[1]];return i});var mv=cv;gi({target:"RegExp",proto:!0,forced:/./.exec!==mv},{exec:mv});var gv=G,bv=br.exports,_v=mv,wv=T,kv=xe,Sv=gr,xv=kv("species"),Av=RegExp.prototype,Iv=function(t,e,r,n){var i=kv(t),a=!wv((function(){ var e={};return e[i]=function(){return 7},7!=""[t](e)})),o=a&&!wv((function()