!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).TRTC=t()}(this,(function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function b(e,t,n,r,i){var a={};return Object.keys(r).forEach((function(e){a[e]=r[e]})),a.enumerable=!!a.enumerable,a.configurable=!!a.configurable,("value"in a||a.initializer)&&(a.writable=!0),a=n.slice().reverse().reduce((function(n,r){return r(e,t,n)||n}),a),i&&void 0!==a.initializer&&(a.value=a.initializer?a.initializer.call(i):void 0,a.initializer=void 0),void 0===a.initializer&&(Object.defineProperty(e,t,a),a=null),a}var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function E(e,t){return e(t={exports:{}},t.exports),t.exports}var I,C,w=function(e){return e&&e.Math==Math&&e},A=w("object"==typeof globalThis&&globalThis)||w("object"==typeof window&&window)||w("object"==typeof self&&self)||w("object"==typeof R&&R)||function(){return this}()||Function("return this")(),D=function(e){try{return!!e()}catch(t){return!0}},P=!D((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),x={}.propertyIsEnumerable,O=Object.getOwnPropertyDescriptor,N={f:O&&!x.call({1:2},1)?function(e){var t=O(this,e);return!!t&&t.enumerable}:x},M=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},L={}.toString,V=function(e){return L.call(e).slice(8,-1)},U="".split,F=D((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==V(e)?U.call(e,""):Object(e)}:Object,j=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e},B=function(e){return F(j(e))},H=function(e){return"function"==typeof e},G=function(e){return"object"==typeof e?null!==e:H(e)},J=function(e){return H(e)?e:void 0},z=function(e,t){return arguments.length<2?J(A[e]):A[e]&&A[e][t]},W=z("navigator","userAgent")||"",q=A.process,K=A.Deno,Q=q&&q.versions||K&&K.version,X=Q&&Q.v8;X?C=(I=X.split("."))[0]<4?1:I[0]+I[1]:W&&(!(I=W.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=W.match(/Chrome\/(\d+)/))&&(C=I[1]);var Y=C&&+C,$=!!Object.getOwnPropertySymbols&&!D((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),Z=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ee=Z?function(e){return"symbol"==typeof e}:function(e){var t=z("Symbol");return H(t)&&Object(e)instanceof t},te=function(e){try{return String(e)}catch(t){return"Object"}},ne=function(e){if(H(e))return e;throw TypeError(te(e)+" is not a function")},re=function(e,t){var n=e[t];return null==n?void 0:ne(n)},ie=function(e,t){try{Object.defineProperty(A,e,{value:t,configurable:!0,writable:!0})}catch(n){A[e]=t}return t},ae=A["__core-js_shared__"]||ie("__core-js_shared__",{}),oe=E((function(e){(e.exports=function(e,t){return ae[e]||(ae[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),se=function(e){return Object(j(e))},ce={}.hasOwnProperty,ue=Object.hasOwn||function(e,t){return ce.call(se(e),t)},de=0,le=Math.random(),he=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++de+le).toString(36)},pe=oe("wks"),fe=A.Symbol,_e=Z?fe:fe&&fe.withoutSetter||he,me=function(e){return ue(pe,e)&&($||"string"==typeof pe[e])||($&&ue(fe,e)?pe[e]=fe[e]:pe[e]=_e("Symbol."+e)),pe[e]},ve=me("toPrimitive"),ge=function(e,t){if(!G(e)||ee(e))return e;var n,r=re(e,ve);if(r){if(void 0===t&&(t="default"),n=r.call(e,t),!G(n)||ee(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&H(n=e.toString)&&!G(r=n.call(e)))return r;if(H(n=e.valueOf)&&!G(r=n.call(e)))return r;if("string"!==t&&H(n=e.toString)&&!G(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},Se=function(e){var t=ge(e,"string");return ee(t)?t:String(t)},ye=A.document,Te=G(ye)&&G(ye.createElement),ke=function(e){return Te?ye.createElement(e):{}},be=!P&&!D((function(){return 7!=Object.defineProperty(ke("div"),"a",{get:function(){return 7}}).a})),Re=Object.getOwnPropertyDescriptor,Ee={f:P?Re:function(e,t){if(e=B(e),t=Se(t),be)try{return Re(e,t)}catch(n){}if(ue(e,t))return M(!N.f.call(e,t),e[t])}},Ie=function(e){if(G(e))return e;throw TypeError(String(e)+" is not an object")},Ce=Object.defineProperty,we={f:P?Ce:function(e,t,n){if(Ie(e),t=Se(t),Ie(n),be)try{return Ce(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},Ae=P?function(e,t,n){return we.f(e,t,M(1,n))}:function(e,t,n){return e[t]=n,e},De=Function.toString;H(ae.inspectSource)||(ae.inspectSource=function(e){return De.call(e)});var Pe,xe,Oe,Ne=ae.inspectSource,Me=A.WeakMap,Le=H(Me)&&/native code/.test(Ne(Me)),Ve=oe("keys"),Ue=function(e){return Ve[e]||(Ve[e]=he(e))},Fe={},je=A.WeakMap;if(Le||ae.state){var Be=ae.state||(ae.state=new je),He=Be.get,Ge=Be.has,Je=Be.set;Pe=function(e,t){if(Ge.call(Be,e))throw new TypeError("Object already initialized");return t.facade=e,Je.call(Be,e,t),t},xe=function(e){return He.call(Be,e)||{}},Oe=function(e){return Ge.call(Be,e)}}else{var ze=Ue("state");Fe[ze]=!0,Pe=function(e,t){if(ue(e,ze))throw new TypeError("Object already initialized");return t.facade=e,Ae(e,ze,t),t},xe=function(e){return ue(e,ze)?e[ze]:{}},Oe=function(e){return ue(e,ze)}}var We={set:Pe,get:xe,has:Oe,enforce:function(e){return Oe(e)?xe(e):Pe(e,{})},getterFor:function(e){return function(t){var n;if(!G(t)||(n=xe(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},qe=Function.prototype,Ke=P&&Object.getOwnPropertyDescriptor,Qe=ue(qe,"name"),Xe={EXISTS:Qe,PROPER:Qe&&"something"===function(){}.name,CONFIGURABLE:Qe&&(!P||P&&Ke(qe,"name").configurable)},Ye=E((function(e){var t=Xe.CONFIGURABLE,n=We.get,r=We.enforce,i=String(String).split("String");(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,d=!!o&&!!o.noTargetGet,l=o&&void 0!==o.name?o.name:n;H(a)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ue(a,"name")||t&&a.name!==l)&&Ae(a,"name",l),(s=r(a)).source||(s.source=i.join("string"==typeof l?l:""))),e!==A?(c?!d&&e[n]&&(u=!0):delete e[n],u?e[n]=a:Ae(e,n,a)):u?e[n]=a:ie(n,a)})(Function.prototype,"toString",(function(){return H(this)&&n(this).source||Ne(this)}))})),$e=Math.ceil,Ze=Math.floor,et=function(e){var t=+e;return t!=t||0===t?0:(t>0?Ze:$e)(t)},tt=Math.max,nt=Math.min,rt=function(e,t){var n=et(e);return n<0?tt(n+t,0):nt(n,t)},it=Math.min,at=function(e){return e>0?it(et(e),9007199254740991):0},ot=function(e){return at(e.length)},st=function(e){return function(t,n,r){var i,a=B(t),o=ot(a),s=rt(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},ct={includes:st(!0),indexOf:st(!1)},ut=ct.indexOf,dt=function(e,t){var n,r=B(e),i=0,a=[];for(n in r)!ue(Fe,n)&&ue(r,n)&&a.push(n);for(;t.length>i;)ue(r,n=t[i++])&&(~ut(a,n)||a.push(n));return a},lt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=lt.concat("length","prototype"),pt={f:Object.getOwnPropertyNames||function(e){return dt(e,ht)}},ft={f:Object.getOwnPropertySymbols},_t=z("Reflect","ownKeys")||function(e){var t=pt.f(Ie(e)),n=ft.f;return n?t.concat(n(e)):t},mt=function(e,t){for(var n=_t(t),r=we.f,i=Ee.f,a=0;ag;g++)if((s||g in _)&&(p=m(h=_[g],g,f),e))if(t)y[g]=p;else if(p)switch(e){case 3:return!0;case 5:return h;case 6:return g;case 2:Ht.call(y,h)}else switch(e){case 4:return!1;case 7:Ht.call(y,h)}return a?-1:r||i?i:y}},Jt={forEach:Gt(0),map:Gt(1),filter:Gt(2),some:Gt(3),every:Gt(4),find:Gt(5),findIndex:Gt(6),filterReject:Gt(7)},zt=me("species"),Wt=function(e){return Y>=51||!D((function(){var t=[];return(t.constructor={})[zt]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},qt=Jt.map,Kt=Wt("map");Et({target:"Array",proto:!0,forced:!Kt},{map:function(e){return qt(this,e,arguments.length>1?arguments[1]:void 0)}});var Qt=Jt.filter,Xt=Wt("filter");Et({target:"Array",proto:!0,forced:!Xt},{filter:function(e){return Qt(this,e,arguments.length>1?arguments[1]:void 0)}});var Yt=Ee.f,$t=D((function(){Yt(1)}));Et({target:"Object",stat:!0,forced:!P||$t,sham:!P},{getOwnPropertyDescriptor:function(e,t){return Yt(B(e),t)}});E((function(e){var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(I){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof l?t:l,a=Object.create(i.prototype),o=new b(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return E()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=y(o,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}e.wrap=c;var d={};function l(){}function h(){}function p(){}var f={};s(f,i,(function(){return this}));var _=Object.getPrototypeOf,m=_&&_(_(R([])));m&&m!==t&&n.call(m,i)&&(f=m);var v=p.prototype=l.prototype=Object.create(f);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,s){var c=u(e[i],e,a);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==typeof l&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(l).then((function(e){d.value=e,o(d)}),(function(e){return r("throw",e,o,s)}))}s(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function y(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,y(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function R(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:R(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}));var Zt,en=function(e){if("Symbol"===xt(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)},tn=function(){var e=Ie(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},nn=A.RegExp,rn={UNSUPPORTED_Y:D((function(){var e=nn("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),BROKEN_CARET:D((function(){var e=nn("^r","gy");return e.lastIndex=2,null!=e.exec("str")}))},an=Object.keys||function(e){return dt(e,lt)},on=P?Object.defineProperties:function(e,t){Ie(e);for(var n,r=an(t),i=r.length,a=0;i>a;)we.f(e,n=r[a++],t[n]);return e},sn=z("document","documentElement"),cn=Ue("IE_PROTO"),un=function(){},dn=function(e){return"