gh-camp-video-portal/public/lib/trtc/rtc-beauty-plugin.js

3 lines
56 KiB
JavaScript
Raw Normal View History

2025-05-21 10:20:18 +08:00
/* eslint-disable */
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("trtc-js-sdk")):"function"==typeof define&&define.amd?define(["trtc-js-sdk"],e):(t=t||self).RTCBeautyPlugin=e(t.TRTC)}(this,(function(t){function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}var a,u,s=function(t){return t&&t.Math==Math&&t},c=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof i&&i)||function(){return this}()||Function("return this")(),l=function(t){try{return!!t()}catch(e){return!0}},f=!l((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h={}.propertyIsEnumerable,v=Object.getOwnPropertyDescriptor,p={f:v&&!h.call({1:2},1)?function(t){var e=v(this,t);return!!e&&e.enumerable}:h},d=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},g={}.toString,y=function(t){return g.call(t).slice(8,-1)},b="".split,m=l((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==y(t)?b.call(t,""):Object(t)}:Object,T=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},x=function(t){return m(T(t))},A=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t){return"function"==typeof t?t:void 0},E=function(t,e){return arguments.length<2?w(c[t]):c[t]&&c[t][e]},S=E("navigator","userAgent")||"",C=c.process,O=c.Deno,R=C&&C.versions||O&&O.version,I=R&&R.v8;I?u=(a=I.split("."))[0]<4?1:a[0]+a[1]:S&&(!(a=S.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=S.match(/Chrome\/(\d+)/))&&(u=a[1]);var _=u&&+u,P=!!Object.getOwnPropertySymbols&&!l((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&_&&_<41})),k=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,D=k?function(t){return"symbol"==typeof t}:function(t){var e=E("Symbol");return"function"==typeof e&&Object(t)instanceof e},U=function(t,e){try{Object.defineProperty(c,t,{value:e,configurable:!0,writable:!0})}catch(r){c[t]=e}return e},j=c["__core-js_shared__"]||U("__core-js_shared__",{}),L=o((function(t){(t.exports=function(t,e){return j[t]||(j[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.16.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),M=function(t){return Object(T(t))},F={}.hasOwnProperty,B=Object.hasOwn||function(t,e){return F.call(M(t),e)},N=0,Y=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++N+Y).toString(36)},W=L("wks"),G=c.Symbol,z=k?G:G&&G.withoutSetter||V,$=function(t){return B(W,t)&&(P||"string"==typeof W[t])||(P&&B(G,t)?W[t]=G[t]:W[t]=z("Symbol."+t)),W[t]},X=$("toPrimitive"),H=function(t,e){if(!A(t)||D(t))return t;var r,n=t[X];if(void 0!==n){if(void 0===e&&(e="default"),r=n.call(t,e),!A(r)||D(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&"function"==typeof(r=t.toString)&&!A(n=r.call(t)))return n;if("function"==typeof(r=t.valueOf)&&!A(n=r.call(t)))return n;if("string"!==e&&"function"==typeof(r=t.toString)&&!A(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e)},K=function(t){var e=H(t,"string");return D(e)?e:String(e)},q=c.document,J=A(q)&&A(q.createElement),Q=function(t){return J?q.createElement(t):{}},Z=!f&&!l((function(){return 7!=Object.defineProperty(Q("div"),"a",{get:function(){return 7}}).a})),tt=Object.getOwnPropertyDescriptor,et={f:f?tt:function(t,e){if(t=x(t),e=K(e),Z)try{return tt(t,e)}catch(r){}if(B(t,e))return d(!p.