!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).nativeApi=e()}(this,function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t,e){return t(e={exports:{}},e.exports),e.exports}function r(t){return t&&t.default||t}var o,i,a=function(t){return t&&t.Math==Math&&t},g=a("object"==typeof globalThis&&globalThis)||a("object"==typeof window&&window)||a("object"==typeof self&&self)||a("object"==typeof t&&t)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},c=!u(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}),s=Function.prototype,f=s.apply,l=s.call,p="object"==typeof Reflect&&Reflect.apply||(c?l.bind(f):function(){return l.apply(f,arguments)}),v=Function.prototype,d=v.bind,h=v.call,y=c&&d.bind(h,h),m=c?function(t){return t&&y(t)}:function(t){return t&&function(){return h.apply(t,arguments)}},b=function(t){return"function"==typeof t},w=!u(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),O=Function.prototype.call,S=c?O.bind(O):function(){return O.apply(O,arguments)},x={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,T={f:j&&!x.call({1:2},1)?function(t){var e=j(this,t);return!!e&&e.enumerable}:x},k=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},A=m({}.toString),_=m("".slice),C=function(t){return _(A(t),8,-1)},P=Object,E=m("".split),I=u(function(){return!P("z").propertyIsEnumerable(0)})?function(t){return"String"==C(t)?E(t,""):P(t)}:P,N=TypeError,M=function(t){if(null==t)throw N("Can't call method on "+t);return t},L=function(t){return I(M(t))},R=function(t){return"object"==typeof t?null!==t:b(t)},F={},V=function(t){return b(t)?t:void 0},D=function(t,e){return arguments.length<2?V(F[t])||V(g[t]):F[t]&&F[t][e]||g[t]&&g[t][e]},B=m({}.isPrototypeOf),H=D("navigator","userAgent")||"",G=g.process,U=g.Deno,W=G&&G.versions||U&&U.version,z=W&&W.v8;z&&(i=0<(o=z.split("."))[0]&&o[0]<4?1:+(o[0]+o[1])),!i&&H&&(!(o=H.match(/Edge\/(\d+)/))||74<=o[1])&&(o=H.match(/Chrome\/(\d+)/))&&(i=+o[1]);var J=i,q=!!Object.getOwnPropertySymbols&&!u(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&J&&J<41}),K=q&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=Object,Y=K?function(t){return"symbol"==typeof t}:function(t){var e=D("Symbol");return b(e)&&B(e.prototype,$(t))},X=String,Q=function(t){try{return X(t)}catch(t){return"Object"}},Z=TypeError,tt=function(t){if(b(t))return t;throw Z(Q(t)+" is not a function")},et=function(t,e){var n=t[e];return null==n?void 0:tt(n)},nt=TypeError,rt=Object.defineProperty,ot="__core-js_shared__",it=g[ot]||function(e,n){try{rt(g,e,{value:n,configurable:!0,writable:!0})}catch(t){g[e]=n}return n}(ot,{}),at=n(function(t){(t.exports=function(t,e){return it[t]||(it[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.1",mode:"pure",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),ut=Object,ct=function(t){return ut(M(t))},st=m({}.hasOwnProperty),ft=Object.hasOwn||function(t,e){return st(ct(t),e)},lt=0,pt=Math.random(),vt=m(1..toString),dt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+vt(++lt+pt,36)},ht=at("wks"),yt=g.Symbol,gt=yt&&yt.for,mt=K?yt:yt&&yt.withoutSetter||dt,bt=function(t){if(!ft(ht,t)||!q&&"string"!=typeof ht[t]){var e="Symbol."+t;q&&ft(yt,t)?ht[t]=yt[t]:ht[t]=K&>?gt(e):mt(e)}return ht[t]},wt=TypeError,Ot=bt("toPrimitive"),St=function(t,e){if(!R(t)||Y(t))return t;var n,r=et(t,Ot);if(r){if(void 0===e&&(e="default"),n=S(r,t,e),!R(n)||Y(n))return n;throw wt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&b(n=t.toString)&&!R(r=S(n,t)))return r;if(b(n=t.valueOf)&&!R(r=S(n,t)))return r;if("string"!==e&&b(n=t.toString)&&!R(r=S(n,t)))return r;throw nt("Can't convert object to primitive value")}(t,e)},xt=function(t){var e=St(t,"string");return Y(e)?e:e+""},jt=g.document,Tt=R(jt)&&R(jt.createElement),kt=function(t){return Tt?jt.createElement(t):{}},At=!w&&!u(function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a}),_t=Object.getOwnPropertyDescriptor,Ct={f:w?_t:function(t,e){if(t=L(t),e=xt(e),At)try{return _t(t,e)}catch(t){}if(ft(t,e))return k(!S(T.f,t,e),t[e])}},Pt=/#|\.prototype\./,Et=function(t,e){var n=Nt[It(t)];return n==Lt||n!=Mt&&(b(e)?u(e):!!e)},It=Et.normalize=function(t){return String(t).replace(Pt,".").toLowerCase()},Nt=Et.data={},Mt=Et.NATIVE="N",Lt=Et.POLYFILL="P",Rt=Et,Ft=m(m.bind),Vt=function(t,e){return tt(t),void 0===e?t:c?Ft(t,e):function(){return t.apply(e,arguments)}},Dt=w&&u(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype}),Bt=String,Ht=TypeError,Gt=function(t){if(R(t))return t;throw Ht(Bt(t)+" is not an object")},Ut=TypeError,Wt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,Jt="enumerable",qt="configurable",Kt="writable",$t={f:w?Dt?function(t,e,n){if(Gt(t),e=xt(e),Gt(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Kt in n&&!n[Kt]){var r=zt(t,e);r&&r[Kt]&&(t[e]=n.value,n={configurable:qt in n?n[qt]:r[qt],enumerable:Jt in n?n[Jt]:r[Jt],writable:!1})}return Wt(t,e,n)}:Wt:function(t,e,n){if(Gt(t),e=xt(e),Gt(n),At)try{return Wt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ut("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},Yt=w?function(t,e,n){return $t.f(t,e,k(1,n))}:function(t,e,n){return t[e]=n,t},Xt=Ct.f,Qt=function(r){var o=function(t,e,n){if(this instanceof o){switch(arguments.length){case 0:return new r;case 1:return new r(t);case 2:return new r(t,e)}return new r(t,e,n)}return p(r,this,arguments)};return o.prototype=r.prototype,o},Zt=function(t,e){var n,r,o,i,a,u,c,s,f=t.target,l=t.global,p=t.stat,v=t.proto,d=l?g:p?g[f]:(g[f]||{}).prototype,h=l?F:F[f]||Yt(F,f,{})[f],y=h.prototype;for(o in e)n=!Rt(l?o:f+(p?".":"#")+o,t.forced)&&d&&ft(d,o),a=h[o],n&&(u=t.dontCallGetSet?(s=Xt(d,o))&&s.value:d[o]),i=n&&u?u:e[o],n&&typeof a==typeof i||(c=t.bind&&n?Vt(i,g):t.wrap&&n?Qt(i):v&&b(i)?m(i):i,(t.sham||i&&i.sham||a&&a.sham)&&Yt(c,"sham",!0),Yt(h,o,c),v&&(ft(F,r=f+"Prototype")||Yt(F,r,{}),Yt(F[r],o,i),t.real&&y&&!y[o]&&Yt(y,o,i)))},te=$t.f;Zt({target:"Object",stat:!0,forced:Object.defineProperty!==te,sham:!w},{defineProperty:te});var ee,ne=n(function(t){var r=F.Object,e=t.exports=function(t,e,n){return r.defineProperty(t,e,n)};r.defineProperty.sham&&(e.sham=!0)}),re=ne,oe=e(n(function(t){t.exports=function(t,e,n){return e in t?re(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports})),ie=Math.ceil,ae=Math.floor,ue=Math.trunc||function(t){var e=+t;return(0o;)ft(r,n=e[o++])&&(~ge(i,n)||me(i,n));return i},we=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oe=Object.keys||function(t){return be(t,we)},Se={f:w&&!Dt?Object.defineProperties:function(t,e){Gt(t);for(var n,r=L(e),o=Oe(e),i=o.length,a=0;a"+t+""},Ee=function(t){t.write(Pe("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ie=function(){try{ee=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ie="undefined"!=typeof document?document.domain&&ee?Ee(ee):((e=kt("iframe")).style.display="none",xe.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Pe("document.F=Object")),t.close(),t.F):Ee(ee);for(var n=we.length;n--;)delete Ie[ke][we[n]];return Ie()};ye[_e]=!0;var Ne=Object.create||function(t,e){var n;return null!==t?(Ce[ke]=Gt(t),n=new Ce,Ce[ke]=null,n[_e]=t):n=Ie(),void 0===e?n:Se.f(n,e)};Zt({target:"Object",stat:!0,sham:!w},{create:Ne});var Me=F.Object,Le=function(t,e){return Me.create(t,e)},Re={},Fe=m(Function.toString);b(it.inspectSource)||(it.inspectSource=function(t){return Fe(t)});var Ve,De,Be,He=it.inspectSource,Ge=g.WeakMap,Ue=b(Ge)&&/native code/.test(He(Ge)),We="Object already initialized",ze=g.TypeError,Je=g.WeakMap;if(Ue||it.state){var qe=it.state||(it.state=new Je),Ke=m(qe.get),$e=m(qe.has),Ye=m(qe.set);Ve=function(t,e){if($e(qe,t))throw new ze(We);return e.facade=t,Ye(qe,t,e),e},De=function(t){return Ke(qe,t)||{}},Be=function(t){return $e(qe,t)}}else{var Xe=Te("state");ye[Xe]=!0,Ve=function(t,e){if(ft(t,Xe))throw new ze(We);return e.facade=t,Yt(t,Xe,e),e},De=function(t){return ft(t,Xe)?t[Xe]:{}},Be=function(t){return ft(t,Xe)}}var Qe,Ze,tn,en={set:Ve,get:De,has:Be,enforce:function(t){return Be(t)?De(t):Ve(t,{})},getterFor:function(n){return function(t){var e;if(!R(t)||(e=De(t)).type!==n)throw ze("Incompatible receiver, "+n+" required");return e}}},nn=Function.prototype,rn=w&&Object.getOwnPropertyDescriptor,on=ft(nn,"name"),an={EXISTS:on,PROPER:on&&"something"===function(){}.name,CONFIGURABLE:on&&(!w||w&&rn(nn,"name").configurable)},un=!u(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),cn=Te("IE_PROTO"),sn=Object,fn=sn.prototype,ln=un?sn.getPrototypeOf:function(t){var e=ct(t);if(ft(e,cn))return e[cn];var n=e.constructor;return b(n)&&e instanceof n?n.prototype:e instanceof sn?fn:null},pn=function(t,e,n,r){return r&&r.enumerable?t[e]=n:Yt(t,e,n),t},vn=bt("iterator"),dn=!1;[].keys&&("next"in(tn=[].keys())?(Ze=ln(ln(tn)))!==Object.prototype&&(Qe=Ze):dn=!0),Qe=null==Qe||u(function(){var t={};return Qe[vn].call(t)!==t})?{}:Ne(Qe),b(Qe[vn])||pn(Qe,vn,function(){return this});var hn={IteratorPrototype:Qe,BUGGY_SAFARI_ITERATORS:dn},yn={};yn[bt("toStringTag")]="z";var gn="[object z]"===String(yn),mn=bt("toStringTag"),bn=Object,wn="Arguments"==C(function(){return arguments}()),On=gn?C:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=bn(t),mn))?n:wn?C(e):"Object"==(r=C(e))&&b(e.callee)?"Arguments":r},Sn=gn?{}.toString:function(){return"[object "+On(this)+"]"},xn=$t.f,jn=bt("toStringTag"),Tn=function(t,e,n,r){if(t){var o=n?t:t.prototype;ft(o,jn)||xn(o,jn,{configurable:!0,value:e}),r&&!gn&&Yt(o,"toString",Sn)}},kn=hn.IteratorPrototype,An=function(){return this},_n=String,Cn=TypeError,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=m(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return Gt(t),function(t){if("object"==typeof t||b(t))return;throw Cn("Can't set "+_n(t)+" as a prototype")}(e),r?n(t,e):t.__proto__=e,t}}():void 0),En=an.PROPER,In=hn.BUGGY_SAFARI_ITERATORS,Nn=bt("iterator"),Mn="values",Ln="entries",Rn=function(){return this},Fn=function(t,e,n,r,o,i,a){var u,c,s,f;c=r,f=e+" Iterator",(u=n).prototype=Ne(kn,{next:k(+!s,c)}),Tn(u,f,!1,!0),Re[f]=An;var l,p,v,d=function(t){if(t===o&&b)return b;if(!In&&t in g)return g[t];switch(t){case"keys":case Mn:case Ln:return function(){return new n(this,t)}}return function(){return new n(this)}},h=e+" Iterator",y=!1,g=t.prototype,m=g[Nn]||g["@@iterator"]||o&&g[o],b=!In&&m||d(o),w="Array"==e&&g.entries||m;if(w&&(l=ln(w.call(new t)))!==Object.prototype&&l.next&&(Tn(l,h,!0,!0),Re[h]=Rn),En&&o==Mn&&m&&m.name!==Mn&&(y=!0,b=function(){return S(m,this)}),o)if(p={values:d(Mn),keys:i?b:d("keys"),entries:d(Ln)},a)for(v in p)!In&&!y&&v in g||pn(g,v,p[v]);else Zt({target:e,proto:!0,forced:In||y},p);return a&&g[Nn]!==b&&pn(g,Nn,b,{name:o}),Re[e]=b,p},Vn="Array Iterator",Dn=en.set,Bn=en.getterFor(Vn),Hn=(Fn(Array,"Array",function(t,e){Dn(this,{type:Vn,target:L(t),index:0,kind:e})},function(){var t=Bn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?{value:t.target=void 0,done:!0}:"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}},"values"),Re.Arguments=Re.Array,bt("toStringTag"));for(var Gn in{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}){var Un=g[Gn],Wn=Un&&Un.prototype;Wn&&On(Wn)!==Hn&&Yt(Wn,Hn,Gn),Re[Gn]=Re.Array}var zn=Array.isArray||function(t){return"Array"==C(t)},Jn=function(){},qn=[],Kn=D("Reflect","construct"),$n=/^\s*(?:class|function)\b/,Yn=m($n.exec),Xn=!$n.exec(Jn),Qn=function(t){if(!b(t))return!1;try{return Kn(Jn,qn,t),!0}catch(t){return!1}},Zn=function(t){if(!b(t))return!1;switch(On(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Xn||!!Yn($n,He(t))}catch(t){return!0}};Zn.sham=!0;var tr=!Kn||u(function(){var t;return Qn(Qn.call)||!Qn(Object)||!Qn(function(){t=!0})||t})?Zn:Qn,er=bt("species"),nr=Array,rr=function(t,e){return zn(n=t)&&(r=n.constructor,tr(r)&&(r===nr||zn(r.prototype))?r=void 0:R(r)&&null===(r=r[er])&&(r=void 0)),new(void 0===r?nr:r)(0===e?0:e);var n,r},or=m([].push),ir=function(v){var d=1==v,h=2==v,y=3==v,g=4==v,m=6==v,b=7==v,w=5==v||m;return function(t,e,n,r){for(var o,i,a=ct(t),u=I(a),c=Vt(e,n),s=ve(u),f=0,l=r||rr,p=d?l(t,s):h||b?l(t,0):void 0;f=n.length?{value:void 0,done:!0}:(t=Va(n,r),e.index+=t.length,{value:t,done:!1})}),r(Go);var Ga=F.Promise,Ua=/MSIE .\./.test(H),Wa=g.Function,za=function(i){return Ua?function(t,e){var n=2u;)void 0!==(n=o(r,e=i[u++]))&&Fr(a,e,n);return a}});var $u=F.Object.getOwnPropertyDescriptors,Yu=Se.f;Zt({target:"Object",stat:!0,forced:Object.defineProperties!==Yu,sham:!w},{defineProperties:Yu});var Xu=n(function(t){var n=F.Object,e=t.exports=function(t,e){return n.defineProperties(t,e)};n.defineProperties.sham&&(e.sham=!0)}),Qu=ne;Zt({target:"Array",stat:!0},{isArray:zn});var Zu=F.Array.isArray,tc=n(function(t){t.exports=function(t){if(Zu(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports});e(tc),iu("asyncIterator"),iu("hasInstance"),iu("isConcatSpreadable"),iu("iterator"),iu("match"),iu("matchAll"),iu("replace"),iu("search"),iu("species"),iu("split"),iu("toPrimitive"),au(),iu("toStringTag"),Tn(D("Symbol"),"Symbol"),iu("unscopables"),Tn(g.JSON,"JSON",!0);var ec=Object.freeze({__proto__:null}),nc=Object.freeze({__proto__:null});r(ec),r(nc);var rc=F.Symbol;iu("asyncDispose"),iu("dispose"),iu("matcher"),iu("metadataKey"),iu("observable"),iu("metadata"),iu("patternMatch"),iu("replaceAll");var oc=rc,ic=So,ac=n(function(t){t.exports=function(t,e){var n=null==t?null:void 0!==oc&&ic(t)||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}},t.exports.__esModule=!0,t.exports.default=t.exports});e(ac);var uc=Dr("slice"),cc=bt("species"),sc=Array,fc=Math.max;Zt({target:"Array",proto:!0,forced:!uc},{slice:function(t,e){var n,r,o,i=L(this),a=ve(i),u=le(t,a),c=le(void 0===e?a:e,a);if(zn(i)&&(n=i.constructor,tr(n)&&(n===sc||zn(n.prototype))?n=void 0:R(n)&&null===(n=n[cc])&&(n=void 0),n===sc||void 0===n))return qr(i,u,c);for(r=new(void 0===n?sc:n)(fc(c-u,0)),o=0;ut.length)&&(e=t.length);for(var n=0,r=new Array(e);n+r[f]){s=!1;break}}return s}(function(){var t="3.11.1";try{var e=Ic(),n=navigator.userAgent.toLocaleLowerCase().match(/bigo-baiguoyuan.*/i),r=e&&n&&n[0].split("bigo-baiguoyuan");t=r[r.length-1].split("__")[2]}catch(t){console.warn("get app version failed")}return t}(),"3.11.1")&&!Nc;function Yc(t){var e=1this.expiredTime},doGetToken:null};window.globalToken=bf;var wf=0,Of=3;function Sf(){return new Ga(function(e,n){bf.isExpired()?bf.doGetToken().then(function(t){wf=0,bf.setValue(t),xf(),e({token:t})},function(t){Of<=wf?(wf=0,xf()):(Ya(Sf,0),wf+=1),n(t)}):(mf||(bf.expiredTime=+new Date,Sf()),e({token:bf.getValue()}))})}function xf(){clearTimeout(mf),mf=Ya(Sf,gf)}document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&Sf()});var jf,Tf=function(){},kf={getAppVersionCode:function(t){return t[0]},getChannel:function(t){return t[0]},getCountryCode:function(t){return t[0]},getNetworkType:function(t){return 1==+t[0]?"Wi-Fi":"4G"},getLanguageCode:function(t){return t[0]},getToken:function(t){return t[1]},getFullVersion:function(t){return{system:t[1],systemVersion:t[2],appVersion:t[3],machine:t[4]}},getVideoInfo:function(t){return{videoTag:t.hashtag,videoType:t.hashtag_type,isPrivate:1===t.private}},getVideoResult:function(t){return{resType:t.resType,videoId:t.video}}},Af={get:function(t,e){return kf[t](e)},link:Tf,event:Tf,operation:Tf},_f={facebook:1,twitter:2,vk:3},Cf={appShare:function(){var t=0