Socket
Socket
Sign inDemoInstall

@beyonk/embedded

Package Overview
Dependencies
0
Maintainers
6
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.6 to 1.1.7

index.js

2

dist/observers.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r,o,i=function(t){return t&&t.Math==Math&&t},c=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||function(){return this}()||Function("return this")(),u=function(t){try{return!!t()}catch(t){return!0}},a=!u((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),l={}.propertyIsEnumerable,f=Object.getOwnPropertyDescriptor,s={f:f&&!l.call({1:2},1)?function(t){var e=f(this,t);return!!e&&e.enumerable}:l},p=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},h={}.toString,d=function(t){return h.call(t).slice(8,-1)},y="".split,v=u((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==d(t)?y.call(t,""):Object(t)}:Object,g=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},b=function(t){return v(g(t))},m=function(t){return"object"==typeof t?null!==t:"function"==typeof t},w=function(t){return"function"==typeof t?t:void 0},x=function(t,e){return arguments.length<2?w(c[t]):c[t]&&c[t][e]},O=x("navigator","userAgent")||"",E=c.process,j=c.Deno,S=E&&E.versions||j&&j.version,R=S&&S.v8;R?o=(r=R.split("."))[0]<4?1:r[0]+r[1]:O&&(!(r=O.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=O.match(/Chrome\/(\d+)/))&&(o=r[1]);var T=o&&+o,P=!!Object.getOwnPropertySymbols&&!u((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&T&&T<41})),I=P&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,k=I?function(t){return"symbol"==typeof t}:function(t){var e=x("Symbol");return"function"==typeof e&&Object(t)instanceof e},_=function(t,e){try{Object.defineProperty(c,t,{value:e,configurable:!0,writable:!0})}catch(n){c[t]=e}return e},A="__core-js_shared__",N=c[A]||_(A,{}),C=n((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),F={}.hasOwnProperty,M=Object.hasOwn||function(t,e){return F.call(Object(g(t)),e)},D=0,L=Math.random(),z=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++D+L).toString(36)},B=C("wks"),U=c.Symbol,W=I?U:U&&U.withoutSetter||z,q=function(t){return M(B,t)&&(P||"string"==typeof B[t])||(P&&M(U,t)?B[t]=U[t]:B[t]=W("Symbol."+t)),B[t]},K=q("toPrimitive"),Y=function(t,e){if(!m(t)||k(t))return t;var n,r=t[K];if(void 0!==r){if(void 0===e&&(e="default"),n=r.call(t,e),!m(n)||k(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var n,r;if("string"===e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!m(r=n.call(t)))return r;if("string"!==e&&"function"==typeof(n=t.toString)&&!m(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}(t,e)},G=function(t){var e=Y(t,"string");return k(e)?e:String(e)},J=c.document,$=m(J)&&m(J.createElement),V=function(t){return $?J.createElement(t):{}},X=!a&&!u((function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a})),H=Object.getOwnPropertyDescriptor,Q={f:a?H:function(t,e){if(t=b(t),e=G(e),X)try{return H(t,e)}catch(t){}if(M(t,e))return p(!s.f.call(t,e),t[e])}},Z=function(t){if(!m(t))throw TypeError(String(t)+" is not an object");return t},tt=Object.defineProperty,et={f:a?tt:function(t,e,n){if(Z(t),e=G(e),Z(n),X)try{return tt(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},nt=a?function(t,e,n){return et.f(t,e,p(1,n))}:function(t,e,n){return t[e]=n,t},rt=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return rt.call(t)});var ot,it,ct,ut=N.inspectSource,at=c.WeakMap,lt="function"==typeof at&&/native code/.test(ut(at)),ft=C("keys"),st=function(t){return ft[t]||(ft[t]=z(t))},pt={},ht="Object already initialized",dt=c.WeakMap;if(lt||N.state){var yt=N.state||(N.state=new dt),vt=yt.get,gt=yt.has,bt=yt.set;ot=function(t,e){if(gt.call(yt,t))throw new TypeError(ht);return e.facade=t,bt.call(yt,t,e),e},it=function(t){return vt.call(yt,t)||{}},ct=function(t){return gt.call(yt,t)}}else{var mt=st("state");pt[mt]=!0,ot=function(t,e){if(M(t,mt))throw new TypeError(ht);return e.facade=t,nt(t,mt,e),e},it=function(t){return M(t,mt)?t[mt]:{}},ct=function(t){return M(t,mt)}}var wt,xt={set:ot,get:it,has:ct,enforce:function(t){return ct(t)?it(t):ot(t,{})},getterFor:function(t){return function(e){var n;if(!m(e)||(n=it(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},Ot=n((function(t){var e=xt.get,n=xt.enforce,r=String(String).split("String");(t.exports=function(t,e,o,i){var u,a=!!i&&!!i.unsafe,l=!!i&&!!i.enumerable,f=!!i&&!!i.noTargetGet;"function"==typeof o&&("string"!=typeof e||M(o,"name")||nt(o,"name",e),(u=n(o)).source||(u.source=r.join("string"==typeof e?e:""))),t!==c?(a?!f&&t[e]&&(l=!0):delete t[e],l?t[e]=o:nt(t,e,o)):l?t[e]=o:_(e,o)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||ut(this)}))})),Et=Math.ceil,jt=Math.floor,St=function(t){return isNaN(t=+t)?0:(t>0?jt:Et)(t)},Rt=Math.min,Tt=function(t){return t>0?Rt(St(t),9007199254740991):0},Pt=Math.max,It=Math.min,kt=function(t){return function(e,n,r){var o,i=b(e),c=Tt(i.length),u=function(t,e){var n=St(t);return n<0?Pt(n+e,0):It(n,e)}(r,c);if(t&&n!=n){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},_t={includes:kt(!0),indexOf:kt(!1)},At=_t.indexOf,Nt=function(t,e){var n,r=b(t),o=0,i=[];for(n in r)!M(pt,n)&&M(r,n)&&i.push(n);for(;e.length>o;)M(r,n=e[o++])&&(~At(i,n)||i.push(n));return i},Ct=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ft=Ct.concat("length","prototype"),Mt={f:Object.getOwnPropertyNames||function(t){return Nt(t,Ft)}},Dt={f:Object.getOwnPropertySymbols},Lt=x("Reflect","ownKeys")||function(t){var e=Mt.f(Z(t)),n=Dt.f;return n?e.concat(n(t)):e},zt=function(t,e){for(var n=Lt(e),r=et.f,o=Q.f,i=0;i<n.length;i++){var c=n[i];M(t,c)||r(t,c,o(e,c))}},Bt=/#|\.prototype\./,Ut=function(t,e){var n=qt[Wt(t)];return n==Yt||n!=Kt&&("function"==typeof e?u(e):!!e)},Wt=Ut.normalize=function(t){return String(t).replace(Bt,".").toLowerCase()},qt=Ut.data={},Kt=Ut.NATIVE="N",Yt=Ut.POLYFILL="P",Gt=Ut,Jt=Q.f,$t=function(t,e){var n,r,o,i,u,a=t.target,l=t.global,f=t.stat;if(n=l?c:f?c[a]||_(a,{}):(c[a]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(u=Jt(n,r))&&u.value:n[r],!Gt(l?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;zt(i,o)}(t.sham||o&&o.sham)&&nt(i,"sham",!0),Ot(n,r,i,t)}},Vt=Object.keys||function(t){return Nt(t,Ct)},Xt=a?Object.defineProperties:function(t,e){Z(t);for(var n,r=Vt(e),o=r.length,i=0;o>i;)et.f(t,n=r[i++],e[n]);return t},Ht=x("document","documentElement"),Qt=st("IE_PROTO"),Zt=function(){},te=function(t){return"<script>"+t+"</"+"script>"},ee=function(t){t.write(te("")),t.close();var e=t.parentWindow.Object;return t=null,e},ne=function(){try{wt=new ActiveXObject("htmlfile")}catch(t){}var t,e;ne="undefined"!=typeof document?document.domain&&wt?ee(wt):((e=V("iframe")).style.display="none",Ht.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(te("document.F=Object")),t.close(),t.F):ee(wt);for(var n=Ct.length;n--;)delete ne.prototype[Ct[n]];return ne()};pt[Qt]=!0;var re=Object.create||function(t,e){var n;return null!==t?(Zt.prototype=Z(t),n=new Zt,Zt.prototype=null,n[Qt]=t):n=ne(),void 0===e?n:Xt(n,e)},oe=q("unscopables"),ie=Array.prototype;null==ie[oe]&&et.f(ie,oe,{configurable:!0,value:re(null)});var ce,ue=_t.includes;$t({target:"Array",proto:!0},{includes:function(t){return ue(this,t,arguments.length>1?arguments[1]:void 0)}}),ce="includes",ie[oe][ce]=!0;var ae=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},le=[].slice,fe={},se=function(t,e,n){if(!(e in fe)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";fe[e]=Function("C,a","return new C("+r.join(",")+")")}return fe[e](t,n)},pe=Function.bind||function(t){var e=ae(this),n=le.call(arguments,1),r=function(){var o=n.concat(le.call(arguments));return this instanceof r?se(e,o.length,o):e.apply(t,o)};return m(e.prototype)&&(r.prototype=e.prototype),r};$t({target:"Function",proto:!0},{bind:pe}),$t({target:"Object",stat:!0,forced:!a,sham:!a},{defineProperty:et.f});var he,de,ye=function(t){if(k(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)},ve=function(){var t=Z(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},ge=c.RegExp,be={UNSUPPORTED_Y:u((function(){var t=ge("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:u((function(){var t=ge("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},me=c.RegExp,we=u((function(){var t=me(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),xe=c.RegExp,Oe=u((function(){var t=xe("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ee=xt.get,je=RegExp.prototype.exec,Se=C("native-string-replace",String.prototype.replace),Re=je,Te=(he=/a/,de=/b*/g,je.call(he,"a"),je.call(de,"a"),0!==he.lastIndex||0!==de.lastIndex),Pe=be.UNSUPPORTED_Y||be.BROKEN_CARET,Ie=void 0!==/()??/.exec("")[1];(Te||Ie||Pe||we||Oe)&&(Re=function(t){var e,n,r,o,i,c,u,a=this,l=Ee(a),f=ye(t),s=l.raw;if(s)return s.lastIndex=a.lastIndex,e=Re.call(s,f),a.lastIndex=s.lastIndex,e;var p=l.groups,h=Pe&&a.sticky,d=ve.call(a),y=a.source,v=0,g=f;if(h&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),g=f.slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==f.charAt(a.lastIndex-1))&&(y="(?: "+y+")",g=" "+g,v++),n=new RegExp("^(?:"+y+")",d)),Ie&&(n=new RegExp("^"+y+"$(?!\\s)",d)),Te&&(r=a.lastIndex),o=je.call(h?n:a,g),h?o?(o.input=o.input.slice(v),o[0]=o[0].slice(v),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Te&&o&&(a.lastIndex=a.global?o.index+o[0].length:r),Ie&&o&&o.length>1&&Se.call(o[0],n,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=re(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var ke=Re;$t({target:"RegExp",proto:!0,forced:/./.exec!==ke},{exec:ke});var _e=q("match"),Ae=function(t){if(function(t){var e;return m(t)&&(void 0!==(e=t[_e])?!!e:"RegExp"==d(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Ne=q("match");$t({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Ne]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~ye(g(this)).indexOf(ye(Ae(t)),arguments.length>1?arguments[1]:void 0)}});var Ce=q("species"),Fe=RegExp.prototype,Me=function(t){return function(e,n){var r,o,i=ye(g(e)),c=St(n),u=i.length;return c<0||c>=u?t?"":void 0:(r=i.charCodeAt(c))<55296||r>56319||c+1===u||(o=i.charCodeAt(c+1))<56320||o>57343?t?i.charAt(c):r:t?i.slice(c,c+2):o-56320+(r-55296<<10)+65536}},De={codeAt:Me(!1),charAt:Me(!0)}.charAt,Le=function(t,e,n){return e+(n?De(t,e).length:1)},ze=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==d(t))throw TypeError("RegExp#exec called on incompatible receiver");return ke.call(t,e)};function Be(t){return Be="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},Be(t)}function Ue(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}}),e&&We(t,e)}function We(t,e){return We=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},We(t,e)}function qe(t){var e=function(){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}}();return function(){var n,r=Ye(t);if(e){var o=Ye(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ke(this,n)}}function Ke(t,e){if(e&&("object"===Be(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 Ye(t){return Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ye(t)}function Ge(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Je(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $e(t,e,n){return e&&Je(t.prototype,e),n&&Je(t,n),t}!function(t,e,n,r){var o=q(t),i=!u((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=i&&!u((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Ce]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!i||!c||n){var a=/./[o],l=e(o,""[t],(function(t,e,n,r,o){var c=e.exec;return c===ke||c===Fe.exec?i&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}));Ot(String.prototype,t,l[0]),Ot(Fe,o,l[1])}r&&nt(Fe[o],"sham",!0)}("match",(function(t,e,n){return[function(e){var n=g(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](ye(n))},function(t){var r=Z(this),o=ye(t),i=n(e,r,o);if(i.done)return i.value;if(!r.global)return ze(r,o);var c=r.unicode;r.lastIndex=0;for(var u,a=[],l=0;null!==(u=ze(r,o));){var f=ye(u[0]);a[l]=f,""===f&&(r.lastIndex=Le(o,Tt(r.lastIndex),c)),l++}return 0===l?null:a}]}));var Ve=function(){function t(e){Ge(this,t),this.w=e}return $e(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),Xe=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/.*/;Ge(this,t),this.w=e,this.originFilter=n,this.callbacks={}}return $e(t,[{key:"handle",value:function(t,e){if(e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;if(r&&1!==r&&console.warn("Recieved event from incompatible script version"),o===t)return[He,"beyonk:portal:resize"].includes(t)?this.callbacks[t](i.height):this.callbacks[t](i)}catch(t){console.warn("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.callbacks[t]=e,this.w.addEventListener("message",this.handle.bind(this,t),!1)}},{key:"ignore",value:function(t){this.w.removeEventListener("message",this.handle.bind(this,t),!1)}}]),t}(),He="whitelabel:header:resize",Qe=function(t){Ue(n,t);var e=qe(n);function n(){return Ge(this,n),e.apply(this,arguments)}return $e(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;this.eventName=e,this.callbacks[e]=t,this.w.addEventListener("message",this.handle.bind(this,e),!1)}},{key:"unsubscribe",value:function(){this.w.removeEventListener("message",this.handle.bind(this,this.eventName),!1)}}]),n}(Xe),Ze=function(t){Ue(n,t);var e=qe(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;return Ge(this,n),(r=e.call(this,t)).eventName=o,r}return $e(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}(Ve);t.RemoteEventDispatcher=Ve,t.RemoteEventObserver=Xe,t.ResizableElementDispatcher=Ze,t.ResizableElementObserver=Qe,Object.defineProperty(t,"__esModule",{value:!0})}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).BeyonkEmbedded={})}(this,(function(t){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),c={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,f={f:a&&!c.call({1:2},1)?function(t){var e=a(this,t);return!!e&&e.enumerable}:c},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},y="".split,h=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?y.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},d=function(t){return h(v(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},O=o.document,w=g(O)&&g(O.createElement),E=function(t){return w?O.createElement(t):{}},j=!u&&!i((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),x=Object.getOwnPropertyDescriptor,P={f:u?x:function(t,e){if(t=d(t),e=b(e,!0),j)try{return x(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},_=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},I=Object.defineProperty,N={f:u?I:function(t,e,n){if(_(t),e=b(e,!0),_(n),j)try{return I(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},T=u?function(t,e,n){return N.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{T(o,t,e)}catch(n){o[t]=e}return e},A="__core-js_shared__",k=o[A]||R(A,{}),C=Function.toString;"function"!=typeof k.inspectSource&&(k.inspectSource=function(t){return C.call(t)});var F,M,D,L=k.inspectSource,U=o.WeakMap,z="function"==typeof U&&/native code/.test(L(U)),$=n((function(t){(t.exports=function(t,e){return k[t]||(k[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),B=0,G=Math.random(),V=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++B+G).toString(36)},W=$("keys"),Y=function(t){return W[t]||(W[t]=V(t))},J={},K=o.WeakMap;if(z){var X=new K,q=X.get,Q=X.has,H=X.set;F=function(t,e){return H.call(X,t,e),e},M=function(t){return q.call(X,t)||{}},D=function(t){return Q.call(X,t)}}else{var Z=Y("state");J[Z]=!0,F=function(t,e){return T(t,Z,e),e},M=function(t){return S(t,Z)?t[Z]:{}},D=function(t){return S(t,Z)}}var tt,et={set:F,get:M,has:D,enforce:function(t){return D(t)?M(t):F(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=n((function(t){var e=et.get,n=et.enforce,r=String(String).split("String");(t.exports=function(t,e,i,u){var c=!!u&&!!u.unsafe,a=!!u&&!!u.enumerable,f=!!u&&!!u.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||T(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(c?!f&&t[e]&&(a=!0):delete t[e],a?t[e]=i:T(t,e,i)):a?t[e]=i:R(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||L(this)}))})),rt=o,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(o[t]):rt[t]&&rt[t][e]||o[t]&&o[t][e]},ut=Math.ceil,ct=Math.floor,at=function(t){return isNaN(t=+t)?0:(t>0?ct:ut)(t)},ft=Math.min,lt=function(t){return t>0?ft(at(t),9007199254740991):0},st=Math.max,pt=Math.min,yt=function(t){return function(e,n,r){var o,i=d(e),u=lt(i.length),c=function(t,e){var n=at(t);return n<0?st(n+e,0):pt(n,e)}(r,u);if(t&&n!=n){for(;u>c;)if((o=i[c++])!=o)return!0}else for(;u>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ht={includes:yt(!0),indexOf:yt(!1)},vt=ht.indexOf,dt=function(t,e){var n,r=d(t),o=0,i=[];for(n in r)!S(J,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bt=gt.concat("length","prototype"),mt={f:Object.getOwnPropertyNames||function(t){return dt(t,bt)}},St={f:Object.getOwnPropertySymbols},Ot=it("Reflect","ownKeys")||function(t){var e=mt.f(_(t)),n=St.f;return n?e.concat(n(t)):e},wt=function(t,e){for(var n=Ot(e),r=N.f,o=P.f,i=0;i<n.length;i++){var u=n[i];S(t,u)||r(t,u,o(e,u))}},Et=/#|\.prototype\./,jt=function(t,e){var n=Pt[xt(t)];return n==It||n!=_t&&("function"==typeof e?i(e):!!e)},xt=jt.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},Pt=jt.data={},_t=jt.NATIVE="N",It=jt.POLYFILL="P",Nt=jt,Tt=P.f,Rt=function(t,e){var n,r,i,u,c,a=t.target,f=t.global,l=t.stat;if(n=f?o:l?o[a]||R(a,{}):(o[a]||{}).prototype)for(r in e){if(u=e[r],i=t.noTargetGet?(c=Tt(n,r))&&c.value:n[r],!Nt(f?r:a+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof u==typeof i)continue;wt(u,i)}(t.sham||i&&i.sham)&&T(u,"sham",!0),nt(n,r,u,t)}},At=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),kt=At&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ct=Array.isArray||function(t){return"Array"==p(t)},Ft=function(t){return Object(v(t))},Mt=Object.keys||function(t){return dt(t,gt)},Dt=u?Object.defineProperties:function(t,e){_(t);for(var n,r=Mt(e),o=r.length,i=0;o>i;)N.f(t,n=r[i++],e[n]);return t},Lt=it("document","documentElement"),Ut="prototype",zt="script",$t=Y("IE_PROTO"),Bt=function(){},Gt=function(t){return"<"+zt+">"+t+"</"+zt+">"},Vt=function(){try{tt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e,n;Vt=tt?function(t){t.write(Gt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(tt):(e=E("iframe"),n="java"+zt+":",e.style.display="none",Lt.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(Gt("document.F=Object")),t.close(),t.F);for(var r=gt.length;r--;)delete Vt[Ut][gt[r]];return Vt()};J[$t]=!0;var Wt,Yt,Jt,Kt=Object.create||function(t,e){var n;return null!==t?(Bt[Ut]=_(t),n=new Bt,Bt[Ut]=null,n[$t]=t):n=Vt(),void 0===e?n:Dt(n,e)},Xt=mt.f,qt={}.toString,Qt="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ht={f:function(t){return Qt&&"[object Window]"==qt.call(t)?function(t){try{return Xt(t)}catch(t){return Qt.slice()}}(t):Xt(d(t))}},Zt=$("wks"),te=o.Symbol,ee=kt?te:te&&te.withoutSetter||V,ne=function(t){return S(Zt,t)||(At&&S(te,t)?Zt[t]=te[t]:Zt[t]=ee("Symbol."+t)),Zt[t]},re={f:ne},oe=N.f,ie=function(t){var e=rt.Symbol||(rt.Symbol={});S(e,t)||oe(e,t,{value:re.f(t)})},ue=N.f,ce=ne("toStringTag"),ae=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},fe=ne("species"),le=function(t,e){var n;return Ct(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ct(n.prototype)?g(n)&&null===(n=n[fe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},se=[].push,pe=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,u=5==t||i;return function(c,a,f,l){for(var s,p,y=Ft(c),v=h(y),d=function(t,e,n){if(ae(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}(a,f,3),g=lt(v.length),b=0,m=l||le,S=e?m(c,g):n?m(c,0):void 0;g>b;b++)if((u||b in v)&&(p=d(s=v[b],b,y),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return b;case 2:se.call(S,s)}else if(o)return!1;return i?-1:r||o?o:S}},ye={forEach:pe(0),map:pe(1),filter:pe(2),some:pe(3),every:pe(4),find:pe(5),findIndex:pe(6)}.forEach,he=Y("hidden"),ve="Symbol",de="prototype",ge=ne("toPrimitive"),be=et.set,me=et.getterFor(ve),Se=Object[de],Oe=o.Symbol,we=it("JSON","stringify"),Ee=P.f,je=N.f,xe=Ht.f,Pe=f.f,_e=$("symbols"),Ie=$("op-symbols"),Ne=$("string-to-symbol-registry"),Te=$("symbol-to-string-registry"),Re=$("wks"),Ae=o.QObject,ke=!Ae||!Ae[de]||!Ae[de].findChild,Ce=u&&i((function(){return 7!=Kt(je({},"a",{get:function(){return je(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=Ee(Se,e);r&&delete Se[e],je(t,e,n),r&&t!==Se&&je(Se,e,r)}:je,Fe=function(t,e){var n=_e[t]=Kt(Oe[de]);return be(n,{type:ve,tag:t,description:e}),u||(n.description=e),n},Me=kt?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof Oe},De=function(t,e,n){t===Se&&De(Ie,e,n),_(t);var r=b(e,!0);return _(n),S(_e,r)?(n.enumerable?(S(t,he)&&t[he][r]&&(t[he][r]=!1),n=Kt(n,{enumerable:l(0,!1)})):(S(t,he)||je(t,he,l(1,{})),t[he][r]=!0),Ce(t,r,n)):je(t,r,n)},Le=function(t,e){_(t);var n=d(e),r=Mt(n).concat(Be(n));return ye(r,(function(e){u&&!Ue.call(n,e)||De(t,e,n[e])})),t},Ue=function(t){var e=b(t,!0),n=Pe.call(this,e);return!(this===Se&&S(_e,e)&&!S(Ie,e))&&(!(n||!S(this,e)||!S(_e,e)||S(this,he)&&this[he][e])||n)},ze=function(t,e){var n=d(t),r=b(e,!0);if(n!==Se||!S(_e,r)||S(Ie,r)){var o=Ee(n,r);return!o||!S(_e,r)||S(n,he)&&n[he][r]||(o.enumerable=!0),o}},$e=function(t){var e=xe(d(t)),n=[];return ye(e,(function(t){S(_e,t)||S(J,t)||n.push(t)})),n},Be=function(t){var e=t===Se,n=xe(e?Ie:d(t)),r=[];return ye(n,(function(t){!S(_e,t)||e&&!S(Se,t)||r.push(_e[t])})),r};(At||(Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=V(t),n=function(t){this===Se&&n.call(Ie,t),S(this,he)&&S(this[he],e)&&(this[he][e]=!1),Ce(this,e,l(1,t))};return u&&ke&&Ce(Se,e,{configurable:!0,set:n}),Fe(e,t)},nt(Oe[de],"toString",(function(){return me(this).tag})),nt(Oe,"withoutSetter",(function(t){return Fe(V(t),t)})),f.f=Ue,N.f=De,P.f=ze,mt.f=Ht.f=$e,St.f=Be,re.f=function(t){return Fe(ne(t),t)},u&&(je(Oe[de],"description",{configurable:!0,get:function(){return me(this).description}}),nt(Se,"propertyIsEnumerable",Ue,{unsafe:!0}))),Rt({global:!0,wrap:!0,forced:!At,sham:!At},{Symbol:Oe}),ye(Mt(Re),(function(t){ie(t)})),Rt({target:ve,stat:!0,forced:!At},{for:function(t){var e=String(t);if(S(Ne,e))return Ne[e];var n=Oe(e);return Ne[e]=n,Te[n]=e,n},keyFor:function(t){if(!Me(t))throw TypeError(t+" is not a symbol");if(S(Te,t))return Te[t]},useSetter:function(){ke=!0},useSimple:function(){ke=!1}}),Rt({target:"Object",stat:!0,forced:!At,sham:!u},{create:function(t,e){return void 0===e?Kt(t):Le(Kt(t),e)},defineProperty:De,defineProperties:Le,getOwnPropertyDescriptor:ze}),Rt({target:"Object",stat:!0,forced:!At},{getOwnPropertyNames:$e,getOwnPropertySymbols:Be}),Rt({target:"Object",stat:!0,forced:i((function(){St.f(1)}))},{getOwnPropertySymbols:function(t){return St.f(Ft(t))}}),we)&&Rt({target:"JSON",stat:!0,forced:!At||i((function(){var t=Oe();return"[null]"!=we([t])||"{}"!=we({a:t})||"{}"!=we(Object(t))}))},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(g(e)||void 0!==t)&&!Me(t))return Ct(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Me(e))return e}),o[1]=e,we.apply(null,o)}});Oe[de][ge]||T(Oe[de],ge,Oe[de].valueOf),Yt=ve,(Wt=Oe)&&!S(Wt=Jt?Wt:Wt.prototype,ce)&&ue(Wt,ce,{configurable:!0,value:Yt}),J[he]=!0;var Ge=N.f,Ve=o.Symbol;if(u&&"function"==typeof Ve&&(!("description"in Ve.prototype)||void 0!==Ve().description)){var We={},Ye=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ye?new Ve(t):void 0===t?Ve():Ve(t);return""===t&&(We[e]=!0),e};wt(Ye,Ve);var Je=Ye.prototype=Ve.prototype;Je.constructor=Ye;var Ke=Je.toString,Xe="Symbol(test)"==String(Ve("test")),qe=/^Symbol\((.*)\)[^)]+$/;Ge(Je,"description",{configurable:!0,get:function(){var t=g(this)?this.valueOf():this,e=Ke.call(t);if(S(We,t))return"";var n=Xe?e.slice(7,-1):e.replace(qe,"$1");return""===n?void 0:n}}),Rt({global:!0,forced:!0},{Symbol:Ye})}ie("toPrimitive");var Qe=ne("unscopables"),He=Array.prototype;null==He[Qe]&&N.f(He,Qe,{configurable:!0,value:Kt(null)});var Ze=Object.defineProperty,tn={},en=function(t){throw t},nn=ht.includes;Rt({target:"Array",proto:!0,forced:!function(t,e){if(S(tn,t))return tn[t];e||(e={});var n=[][t],r=!!S(e,"ACCESSORS")&&e.ACCESSORS,o=S(e,0)?e[0]:en,c=S(e,1)?e[1]:void 0;return tn[t]=!!n&&!i((function(){if(r&&!u)return!0;var t={length:-1};r?Ze(t,1,{enumerable:!0,get:en}):t[1]=1,n.call(t,o,c)}))}("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return nn(this,t,arguments.length>1?arguments[1]:void 0)}}),function(t){He[Qe][t]=!0}("includes");var rn=ne("toPrimitive"),on=Date.prototype;rn in on||T(on,rn,(function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return b(_(this),"number"!==t)}));var un=[].slice,cn={},an=Function.bind||function(t){var e=ae(this),n=un.call(arguments,1),r=function(){var o=n.concat(un.call(arguments));return this instanceof r?function(t,e,n){if(!(e in cn)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";cn[e]=Function("C,a","return new C("+r.join(",")+")")}return cn[e](t,n)}(e,o.length,o):e.apply(t,o)};return g(e.prototype)&&(r.prototype=e.prototype),r};Rt({target:"Function",proto:!0},{bind:an});var fn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return _(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),ln="[\t\n\v\f\r                 \u2028\u2029\ufeff]",sn=RegExp("^"+ln+ln+"*"),pn=RegExp(ln+ln+"*$"),yn=function(t){return function(e){var n=String(v(e));return 1&t&&(n=n.replace(sn,"")),2&t&&(n=n.replace(pn,"")),n}},hn={start:yn(1),end:yn(2),trim:yn(3)},vn=mt.f,dn=P.f,gn=N.f,bn=hn.trim,mn="Number",Sn=o[mn],On=Sn.prototype,wn=p(Kt(On))==mn,En=function(t){var e,n,r,o,i,u,c,a,f=b(t,!1);if("string"==typeof f&&f.length>2)if(43===(e=(f=bn(f)).charCodeAt(0))||45===e){if(88===(n=f.charCodeAt(2))||120===n)return NaN}else if(48===e){switch(f.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+f}for(u=(i=f.slice(2)).length,c=0;c<u;c++)if((a=i.charCodeAt(c))<48||a>o)return NaN;return parseInt(i,r)}return+f};if(Nt(mn,!Sn(" 0o1")||!Sn("0b1")||Sn("+0x1"))){for(var jn,xn=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof xn&&(wn?i((function(){On.valueOf.call(n)})):p(n)!=mn)?function(t,e,n){var r,o;return fn&&"function"==typeof(r=e.constructor)&&r!==n&&g(o=r.prototype)&&o!==n.prototype&&fn(t,o),t}(new Sn(En(e)),n,xn):En(e)},Pn=u?vn(Sn):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_n=0;Pn.length>_n;_n++)S(Sn,jn=Pn[_n])&&!S(xn,jn)&&gn(xn,jn,dn(Sn,jn));xn.prototype=On,On.constructor=xn,nt(o,mn,xn)}var In={};In[ne("toStringTag")]="z";var Nn="[object z]"===String(In),Tn=ne("toStringTag"),Rn="Arguments"==p(function(){return arguments}()),An=Nn?p: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=Object(t),Tn))?n:Rn?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},kn=Nn?{}.toString:function(){return"[object "+An(this)+"]"};Nn||nt(Object.prototype,"toString",kn,{unsafe:!0});var Cn=function(){var t=_(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};function Fn(t,e){return RegExp(t,e)}var Mn,Dn,Ln={UNSUPPORTED_Y:i((function(){var t=Fn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Fn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Un=RegExp.prototype.exec,zn=String.prototype.replace,$n=Un,Bn=(Mn=/a/,Dn=/b*/g,Un.call(Mn,"a"),Un.call(Dn,"a"),0!==Mn.lastIndex||0!==Dn.lastIndex),Gn=Ln.UNSUPPORTED_Y||Ln.BROKEN_CARET,Vn=void 0!==/()??/.exec("")[1];(Bn||Vn||Gn)&&($n=function(t){var e,n,r,o,i=this,u=Gn&&i.sticky,c=Cn.call(i),a=i.source,f=0,l=t;return u&&(-1===(c=c.replace("y","")).indexOf("g")&&(c+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(a="(?: "+a+")",l=" "+l,f++),n=new RegExp("^(?:"+a+")",c)),Vn&&(n=new RegExp("^"+a+"$(?!\\s)",c)),Bn&&(e=i.lastIndex),r=Un.call(u?n:i,l),u?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:Bn&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),Vn&&r&&r.length>1&&zn.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var Wn=$n;Rt({target:"RegExp",proto:!0,forced:/./.exec!==Wn},{exec:Wn});var Yn=ne("match"),Jn=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[Yn])?!!e:"RegExp"==p(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},Kn=ne("match");Rt({target:"String",proto:!0,forced:!function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[Kn]=!1,"/./"[t](e)}catch(t){}}return!1}("includes")},{includes:function(t){return!!~String(v(this)).indexOf(Jn(t),arguments.length>1?arguments[1]:void 0)}});var Xn=ne("species"),qn=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),Qn="$0"==="a".replace(/./,"$0"),Hn=ne("replace"),Zn=!!/./[Hn]&&""===/./[Hn]("a","$0"),tr=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),er=function(t){return function(e,n){var r,o,i=String(v(e)),u=at(n),c=i.length;return u<0||u>=c?t?"":void 0:(r=i.charCodeAt(u))<55296||r>56319||u+1===c||(o=i.charCodeAt(u+1))<56320||o>57343?t?i.charAt(u):r:t?i.slice(u,u+2):o-56320+(r-55296<<10)+65536}},nr={codeAt:er(!1),charAt:er(!0)}.charAt,rr=function(t,e,n){return e+(n?nr(t,e).length:1)},or=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return Wn.call(t,e)};function ir(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&&ur(t,e)}function ur(t,e){return ur=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ur(t,e)}function cr(t){var e=function(){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}}();return function(){var n,r=ar(t);if(e){var o=ar(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===fr(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)}(this,n)}}function ar(t){return ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ar(t)}function fr(t){return fr="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},fr(t)}function lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,yr(r.key),r)}}function pr(t,e,n){return e&&sr(t.prototype,e),n&&sr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function yr(t){var e=function(t,e){if("object"!==fr(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==fr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===fr(e)?e:String(e)}!function(t,e,n,r){var o=ne(t),u=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),c=u&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[Xn]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!u||!c||"replace"===t&&(!qn||!Qn||Zn)||"split"===t&&!tr){var a=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===Wn?u&&!o?{done:!0,value:a.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:Qn,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:Zn}),l=f[0],s=f[1];nt(String.prototype,t,l),nt(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&T(RegExp.prototype[o],"sham",!0)}("match",1,(function(t,e,n){return[function(e){var n=v(this),r=null==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var o=_(t),i=String(this);if(!o.global)return or(o,i);var u=o.unicode;o.lastIndex=0;for(var c,a=[],f=0;null!==(c=or(o,i));){var l=String(c[0]);a[f]=l,""===l&&(o.lastIndex=rr(i,lt(o.lastIndex),u)),f++}return 0===f?null:a}]}));var hr=function(){function t(e){lr(this,t),this.w=e}return pr(t,[{key:"dispatch",value:function(t,e){var n=JSON.stringify({version:1,eventName:t,meta:e});this.w.parent.postMessage(n,"*")}}]),t}(),vr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/.*/;lr(this,t),this.w=e,this.originFilter=n,this.callbacks={}}return pr(t,[{key:"handle",value:function(t,e){if(e.origin.match(this.originFilter))try{var n=JSON.parse(e.data),r=n.version,o=n.eventName,i=n.meta;if(r&&1!==r&&console.warn("Recieved event from incompatible script version"),o===t)return[dr,"beyonk:portal:resize"].includes(t)?this.callbacks[t](i.height):this.callbacks[t](i)}catch(t){console.debug("Recieved unparseable event",e.data)}}},{key:"listen",value:function(t,e){this.callbacks[t]=e,this.w.addEventListener("message",this.handle.bind(this,t),!1)}},{key:"ignore",value:function(t){this.w.removeEventListener("message",this.handle.bind(this,t),!1)}}]),t}(),dr="whitelabel:header:resize",gr=function(t){ir(n,t);var e=cr(n);function n(){return lr(this,n),e.apply(this,arguments)}return pr(n,[{key:"subscribe",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr;this.eventName=e,this.callbacks[e]=t,this.w.addEventListener("message",this.handle.bind(this,e),!1)}},{key:"unsubscribe",value:function(){this.w.removeEventListener("message",this.handle.bind(this,this.eventName),!1)}}]),n}(vr),br=function(t){ir(n,t);var e=cr(n);function n(t){var r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dr;return lr(this,n),(r=e.call(this,t)).eventName=o,r}return pr(n,[{key:"update",value:function(t){this.dispatch(this.eventName,{height:t})}}]),n}(hr);t.RemoteEventDispatcher=hr,t.RemoteEventObserver=vr,t.ResizableElementDispatcher=br,t.ResizableElementObserver=gr,Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -45,3 +45,3 @@ const thisVersion = 1

} catch (e) {
console.warn('Recieved unparseable event', ev.data)
console.debug('Recieved unparseable event', ev.data)
}

@@ -48,0 +48,0 @@ }

{
"name": "@beyonk/embedded",
"version": "1.1.6",
"description": "Embedded Beyonk Libraries",
"main": "lib/observers.js",
"directories": {
"lib": "lib"
},
"files": [
"dist"
],
"scripts": {
"test": "NODE_ENV=test mocha --require esm './!(node_modules)/**/**.+(spec).js'",
"build": "rollup -c 2>&1"
},
"author": "Antony Jones",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "~7.12.11",
"@babel/runtime": "~7.12.5",
"@hapi/code": "^8.0.3",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"core-js": "^3.6.5",
"esm": "^3.2.25",
"jsdom": "^16.4.0",
"mocha": "^9.0.3",
"rollup": "^2.37.0",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^9.1.0"
}
}
"name": "@beyonk/embedded",
"version": "1.1.7",
"description": "Embedded Beyonk Libraries",
"files": [
"index.js",
"lib/observers.js",
"dist/observers.min.js"
],
"author": "Antony Jones",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.11.6",
"@babel/plugin-transform-runtime": "^7.11.5",
"@babel/preset-env": "~7.12.11",
"@babel/runtime": "~7.12.5",
"@hapi/code": "^8.0.6",
"@rollup/plugin-babel": "^5.2.1",
"@rollup/plugin-commonjs": "^15.1.0",
"@rollup/plugin-node-resolve": "^9.0.0",
"core-js": "^3.6.5",
"jsdom": "^16.4.0",
"mocha": "^9.2.0",
"rollup": "^2.66.1",
"rollup-plugin-terser": "^7.0.2",
"sinon": "^12.0.1"
},
"type": "module",
"exports": {
".": {
"import": "./index.js",
"require": "./dist/observers.min.js"
}
},
"scripts": {
"test": "NODE_ENV=test mocha './!(node_modules)/**/**.+(spec).js'",
"build": "rollup -c 2>&1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc