UNPKG

mmir-lib

Version:

MMIR (Mobile Multimodal Interaction and Relay) library

2 lines 25.2 kB
!function(){var t,e,r=function(t){var e;return function(r){return e||t(e={exports:{},parent:r},e.exports),e.exports}},n=r((function(t,e){"use strict";var r,n,i,a,c=Object.prototype.isPrototypeOf,l=Object.defineProperty,u={configurable:!0,enumerable:!1,writable:!0,value:void 0};r=function(t,e){if(g(t),null===e||ft(e))return t;throw new TypeError("Prototype must be null or an object")},t.exports=(n=function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__");if(n){try{(t=n.set).call(e,r)}catch(o){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&&{level:1})}())?(2===n.level?n.set?(a=n.set,i=function(t,e){return a.call(r(t,e),e),t}):i=function(t,e){return r(t,e).__proto__=e,t}:i=function t(e,n){var o;return r(e,n),(o=c.call(t.nullPolyfill,e))&&delete t.nullPolyfill.__proto__,null===n&&(n=t.nullPolyfill),e.__proto__=n,o&&l(t.nullPolyfill,"__proto__",u),e},Object.defineProperty(i,"level",{configurable:!1,enumerable:!1,writable:!1,value:n.level})):null,o({})})),o=r((function(t,e){"use strict";var r,o,i,a,c=Object.create;_t()||(r=n({})),t.exports=r?1!==r.level?c:(o={},i={},a={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){i[t]="__proto__"!==t?a:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(o,i),Object.defineProperty(r,"nullPolyfill",{configurable:!1,enumerable:!1,writable:!1,value:o}),function(t,e){return c(null===t?o:t,e)}):c})),i=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},a=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return i()}try{return __global__||i()}finally{delete Object.prototype.__global__}}(),c="object"==typeof globalThis&&globalThis&&globalThis.Array===Array?globalThis:a,l={object:!0,symbol:!0},u=function(){var t,e=c.Symbol;if("function"!=typeof e)return!1;t=e("test symbol");try{String(t)}catch(r){return!1}return!!l[typeof e.iterator]&&!!l[typeof e.toPrimitive]&&!!l[typeof e.toStringTag]},_=function(t){return null!=t},s={object:!0,function:!0,undefined:!0},f=function(t){if(!function(t){return!!_(t)&&hasOwnProperty.call(s,typeof t)}(t))return!1;try{return!!t.constructor&&t.constructor.prototype===t}catch(e){return!1}},p=/^\s*class[\s{/}]/,y=Function.prototype.toString,h=function(t){return!!function(t){if("function"!=typeof t)return!1;if(!hasOwnProperty.call(t,"length"))return!1;try{if("number"!=typeof t.length)return!1;if("function"!=typeof t.call)return!1;if("function"!=typeof t.apply)return!1}catch(e){return!1}return!f(t)}(t)&&!p.test(y.call(t))},b=function(t){return null!=t},v=Object.keys,d=function(){try{return Object.keys("primitive"),!0}catch(t){return!1}}()?Object.keys:function(t){return v(b(t)?Object(t):t)},g=function(t){if(!b(t))throw new TypeError("Cannot use null or undefined");return t},m=Math.max,j="function"==typeof(e=Object.assign)&&(e(t={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")?Object.assign:function(t,e){var r,n,o,i=m(arguments.length,2);for(t=Object(g(t)),o=function(n){try{t[n]=e[n]}catch(o){r||(r=o)}},n=1;n<i;++n)d(e=arguments[n]).forEach(o);if(void 0!==r)throw r;return t},O=Array.prototype.forEach,w=Object.create,S=function(t){var e=w(null);return O.call(arguments,(function(t){b(t)&&function(t,e){var r;for(r in t)e[r]=t[r]}(Object(t),e)})),e},P="razdwatrzy",x=String.prototype.indexOf,T="function"==typeof P.contains&&!0===P.contains("dwa")&&!1===P.contains("foo")?String.prototype.contains:function(t){return x.call(this,t,arguments[1])>-1},k={};(k=function(t,e){var r,n,o,i,a;return arguments.length<2||"string"!=typeof t?(i=e,e=t,t=null):i=arguments[2],_(t)?(r=T.call(t,"c"),n=T.call(t,"e"),o=T.call(t,"w")):(r=o=!0,n=!1),a={value:e,configurable:r,enumerable:n,writable:o},i?j(S(i),a):a}).gs=function(t,e,r){var n,o,i,a;return"string"!=typeof t?(i=r,r=e,e=t,t=null):i=arguments[3],_(e)?h(e)?_(r)?h(r)||(i=r,r=void 0):r=void 0:(i=e,e=r=void 0):e=void 0,_(t)?(n=T.call(t,"c"),o=T.call(t,"e")):(n=!0,o=!1),a={get:e,set:r,configurable:n,enumerable:o},i?j(S(i),a):a};var D,A,E,I,M=function(t){if(!function(t){return!!t&&("symbol"==typeof t||!!t.constructor&&"Symbol"===t.constructor.name&&"Symbol"===t[t.constructor.toStringTag])}(t))throw new TypeError(t+" is not a symbol");return t},C=Object.create,z=Object.defineProperty,N=Object.prototype,F=C(null),K=function(t){for(var e,r,n=0;F[t+(n||"")];)++n;return F[t+=n||""]=!0,z(N,e="@@"+t,k.gs(null,(function(t){r||(r=!0,z(this,e,k(t)),r=!1)}))),e},V=c.Symbol,B=Object.create(null),q=c.Symbol,L=Object.create,R=Object.defineProperties,U=Object.defineProperty;if("function"==typeof q)try{String(q()),I=!0}catch(mr){}else q=null;E=function(t){if(this instanceof E)throw new TypeError("Symbol is not a constructor");return A(t)},D=A=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return I?q(e):(r=L(E.prototype),e=void 0===e?"":String(e),R(r,{__description__:k("",e),__name__:k("",K(e))}))},function(t){Object.defineProperties(t,{hasInstance:k("",V&&V.hasInstance||t("hasInstance")),isConcatSpreadable:k("",V&&V.isConcatSpreadable||t("isConcatSpreadable")),iterator:k("",V&&V.iterator||t("iterator")),match:k("",V&&V.match||t("match")),replace:k("",V&&V.replace||t("replace")),search:k("",V&&V.search||t("search")),species:k("",V&&V.species||t("species")),split:k("",V&&V.split||t("split")),toPrimitive:k("",V&&V.toPrimitive||t("toPrimitive")),toStringTag:k("",V&&V.toStringTag||t("toStringTag")),unscopables:k("",V&&V.unscopables||t("unscopables"))})}(A),function(t){Object.defineProperties(t,{for:k((function(e){return B[e]?B[e]:B[e]=t(String(e))})),keyFor:k((function(t){var e;for(e in M(t),B)if(B[e]===t)return e}))})}(A),R(E.prototype,{constructor:k(A),toString:k("",(function(){return this.__name__}))}),R(A.prototype,{toString:k((function(){return"Symbol ("+M(this).__description__+")"})),valueOf:k((function(){return M(this)}))}),U(A.prototype,A.toPrimitive,k("",(function(){var t=M(this);return"symbol"==typeof t?t:t.toString()}))),U(A.prototype,A.toStringTag,k("c","Symbol")),U(E.prototype,A.toStringTag,k("c",A.prototype[A.toStringTag])),U(E.prototype,A.toPrimitive,k("c",A.prototype[A.toPrimitive]));u()||Object.defineProperty(c,"Symbol",{value:D,configurable:!0,enumerable:!1,writable:!0});var Z,$,G=function(){if("object"==typeof self&&self)return self;if("object"==typeof window&&window)return window;throw new Error("Unable to resolve global `this`")},H=function(){if(this)return this;if("object"==typeof globalThis&&globalThis)return globalThis;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(t){return G()}try{return __global__||G()}finally{delete Object.prototype.__global__}}(),J=function(){return g(this).length=0,this},Q="function"!=typeof(Z=Number.isNaN)||Z({})||!Z(NaN)||Z(34)?function(t){return t!=t}:Number.isNaN,W="function"==typeof($=Math.sign)&&1===$(10)&&-1===$(-20)?Math.sign:function(t){return t=Number(t),isNaN(t)||0===t?t:t>0?1:-1},X=Math.abs,Y=Math.floor,tt=Math.max,et=function(t){return tt(0,function(t){return isNaN(t)?0:0!==(t=Number(t))&&isFinite(t)?W(t)*Y(X(t)):t}(t))},rt=Array.prototype.indexOf,nt=Object.prototype.hasOwnProperty,ot=Math.abs,it=Math.floor,at=function(t){var e,r,n,o;if(!Q(t))return rt.apply(this,arguments);for(r=et(g(this).length),n=arguments[1],e=n=isNaN(n)?0:n>=0?it(n):et(this.length)-it(ot(n));e<r;++e)if(nt.call(this,e)&&(o=this[e],Q(o)))return e;return-1},ct=Object.create,lt=Object.getPrototypeOf,ut={},_t=function(){var t=Object.setPrototypeOf,e=arguments[0]||ct;return"function"==typeof t&&lt(t(e(null),ut))===ut},st={function:!0,object:!0},ft=function(t){return b(t)&&st[typeof t]||!1},pt=_t()?Object.setPrototypeOf:n({}),yt=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},ht=function(t){return"function"==typeof t},bt={};(bt=function(t,e){var r,n,o,i,a;return arguments.length<2||"string"!=typeof t?(i=e,e=t,t=null):i=arguments[2],null==t?(r=o=!0,n=!1):(r=T.call(t,"c"),n=T.call(t,"e"),o=T.call(t,"w")),a={value:e,configurable:r,enumerable:n,writable:o},i?j(S(i),a):a}).gs=function(t,e,r){var n,o,i,a;return"string"!=typeof t?(i=r,r=e,e=t,t=null):i=arguments[3],null==e?e=void 0:ht(e)?null==r?r=void 0:ht(r)||(i=r,r=void 0):(i=e,e=r=void 0),null==t?(n=!0,o=!1):(n=T.call(t,"c"),o=T.call(t,"e")),a={get:e,set:r,configurable:n,enumerable:o},i?j(S(i),a):a};var vt,dt,gt,mt,jt,Ot,wt,St={},Pt=Function.prototype.apply,xt=Function.prototype.call,Tt=Object.create,kt=Object.defineProperty,Dt=Object.defineProperties,At=Object.prototype.hasOwnProperty,Et={configurable:!0,enumerable:!1,writable:!0};dt=function(t,e){var r,n;return yt(e),n=this,vt.call(this,t,r=function(){gt.call(n,t,r),Pt.call(e,this,arguments)}),r.__eeOnceListener__=e,this},jt={on:vt=function(t,e){var r;return yt(e),At.call(this,"__ee__")?r=this.__ee__:(r=Et.value=Tt(null),kt(this,"__ee__",Et),Et.value=null),r[t]?"object"==typeof r[t]?r[t].push(e):r[t]=[r[t],e]:r[t]=e,this},once:dt,off:gt=function(t,e){var r,n,o,i;if(yt(e),!At.call(this,"__ee__"))return this;if(!(r=this.__ee__)[t])return this;if("object"==typeof(n=r[t]))for(i=0;o=n[i];++i)o!==e&&o.__eeOnceListener__!==e||(2===n.length?r[t]=n[i?0:1]:n.splice(i,1));else n!==e&&n.__eeOnceListener__!==e||delete r[t];return this},emit:mt=function(t){var e,r,n,o,i;if(At.call(this,"__ee__")&&(o=this.__ee__[t]))if("object"==typeof o){for(r=arguments.length,i=new Array(r-1),e=1;e<r;++e)i[e-1]=arguments[e];for(o=o.slice(),e=0;n=o[e];++e)Pt.call(n,this,i)}else switch(arguments.length){case 1:xt.call(o,this);break;case 2:xt.call(o,this,arguments[1]);break;case 3:xt.call(o,this,arguments[1],arguments[2]);break;default:for(r=arguments.length,i=new Array(r-1),e=1;e<r;++e)i[e-1]=arguments[e];Pt.call(o,this,i)}}},Ot={on:bt(vt),once:bt(dt),off:bt(gt),emit:bt(mt)},wt=Dt({},Ot),(St=St=function(t){return null==t?Tt(wt):Dt(Object(t),Ot)}).methods=jt;var It,Mt,Ct,zt,Nt=u()?c.Symbol:D,Ft=Object.prototype.toString,Kt=Ft.call(function(){return arguments}()),Vt=function(t){return Ft.call(t)===Kt},Bt=Object.prototype.toString,qt=Bt.call(""),Lt=function(t){return"string"==typeof t||t&&"object"==typeof t&&(t instanceof String||Bt.call(t)===qt)||!1},Rt=Nt.iterator,Ut=Array.isArray,Zt=function(t){if(!function(t){return!(!b(t)||!Ut(t)&&!Lt(t)&&!Vt(t)&&"function"!=typeof t[Rt])}(t))throw new TypeError(t+" is not iterable");return t},$t=function(){var t,e,r=Array.from;return"function"==typeof r&&(e=r(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))},Gt=Object.prototype.toString,Ht=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/),Jt=function(t){return"function"==typeof t&&Ht(Gt.call(t))},Qt=Nt.iterator,Wt=Array.isArray,Xt=Function.prototype.call,Yt={configurable:!0,enumerable:!0,writable:!0,value:null},te=Object.defineProperty,ee=function(t){var e,r,n,o,i,a,c,l,u,_,s=arguments[1],f=arguments[2];if(t=Object(g(t)),b(s)&&yt(s),this&&this!==Array&&Jt(this))e=this;else{if(!s){if(Vt(t))return 1!==(i=t.length)?Array.apply(null,t):((o=new Array(1))[0]=t[0],o);if(Wt(t)){for(o=new Array(i=t.length),r=0;r<i;++r)o[r]=t[r];return o}}o=[]}if(!Wt(t))if(void 0!==(u=t[Qt])){for(c=yt(u).call(t),e&&(o=new e),l=c.next(),r=0;!l.done;)_=s?Xt.call(s,f,l.value,r):l.value,e?(Yt.value=_,te(o,r,Yt)):o[r]=_,l=c.next(),++r;i=r}else if(Lt(t)){for(i=t.length,e&&(o=new e),r=0,n=0;r<i;++r)_=t[r],r+1<i&&(a=_.charCodeAt(0))>=55296&&a<=56319&&(_+=t[++r]),_=s?Xt.call(s,f,_,n):_,e?(Yt.value=_,te(o,n,Yt)):o[n]=_,++n;i=n}if(void 0===i)for(i=et(t.length),e&&(o=new e(i)),r=0;r<i;++r)_=s?Xt.call(s,f,t[r],r):t[r],e?(Yt.value=_,te(o,r,Yt)):o[r]=_;return e&&(Yt.value=null,o.length=i),o},re=$t()?Array.from:ee,ne=Function.prototype.bind,oe=Function.prototype.call,ie=Object.keys,ae=Object.prototype.propertyIsEnumerable,ce=(It="forEach",function(t,e){var r,n=arguments[2],o=arguments[3];return t=Object(g(t)),yt(e),r=ie(t),o&&r.sort("function"==typeof o?ne.call(o,t):void 0),"function"!=typeof It&&(It=r[It]),oe.call(It,r,(function(r,o){return ae.call(t,r)?oe.call(e,n,t[r],r,t,o):Mt}))}),le=Function.prototype.call,ue=function(t,e){var r={},n=arguments[2];return yt(e),ce(t,(function(t,o,i,a){r[o]=le.call(e,n,t,o,i,a)})),r},_e=Function.prototype.bind,se=Object.defineProperty,fe=Object.prototype.hasOwnProperty;zt=function(t,e,r){var n,o=g(e)&&yt(e.value);return delete(n=function(t){var e=Object(g(t)),r=arguments[1],n=Object(arguments[2]);if(e!==t&&!r)return e;var o={};return r?re(r,(function(e){(n.ensure||e in t)&&(o[e]=t[e])})):j(o,t),o}(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&&fe.call(this,t)?o:(e.value=_e.call(o,r.resolveContext?r.resolveContext(this):this),se(this,t,e),this[t])},n},Ct=function(t){var e=S(arguments[1]);return null!=e.resolveContext&&yt(e.resolveContext),ue(t,(function(t,r){return zt(r,t,e)}))};var pe,ye={},he=Object.defineProperty,be=Object.defineProperties;ye=pe=function(t,e){if(!(this instanceof pe))throw new TypeError("Constructor requires 'new'");be(this,{__list__:bt("w",g(t)),__context__:bt("w",e),__nextIndex__:bt("w",0)}),e&&(yt(e.on),e.on("_add",this._onAdd),e.on("_delete",this._onDelete),e.on("_clear",this._onClear))},delete pe.prototype.constructor,be(pe.prototype,j({_next:bt((function(){var t;if(this.__list__)return this.__redo__&&void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__<this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:bt((function(){return this._createResult(this._next())})),_createResult:bt((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:bt((function(t){return this.__list__[t]})),_unBind:bt((function(){this.__list__=null,delete this.__redo__,this.__context__&&(this.__context__.off("_add",this._onAdd),this.__context__.off("_delete",this._onDelete),this.__context__.off("_clear",this._onClear),this.__context__=null)})),toString:bt((function(){return"[object "+(this[Nt.toStringTag]||"Object")+"]"}))},Ct({_onAdd:bt((function(t){t>=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e>=t&&(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):he(this,"__redo__",bt("c",[t])))})),_onDelete:bt((function(t){var e;t>=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&&(-1!==(e=this.__redo__.indexOf(t))&&this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e>t&&(this.__redo__[r]=--e)}),this)))})),_onClear:bt((function(){this.__redo__&&J.call(this.__redo__),this.__nextIndex__=0}))}))),he(pe.prototype,Nt.iterator,bt((function(){return this})));var ve,de,ge=Object.defineProperty;de=ve=function(t,e){if(!(this instanceof de))throw new TypeError("Constructor requires 'new'");ye.call(this,t),e=e?T.call(e,"key+value")?"key+value":T.call(e,"key")?"key":"value":"value",ge(this,"__kind__",bt("",e))},pt&&pt(de,ye),delete de.prototype.constructor,de.prototype=Object.create(ye.prototype,{_resolve:bt((function(t){return"value"===this.__kind__?this.__list__[t]:"key+value"===this.__kind__?[t,this.__list__[t]]:t}))}),ge(de.prototype,Nt.toStringTag,bt("c","Array Iterator"));var me,je,Oe=Object.defineProperty;je=me=function(t){if(!(this instanceof je))throw new TypeError("Constructor requires 'new'");t=String(t),ye.call(this,t),Oe(this,"__length__",bt("",t.length))},pt&&pt(je,ye),delete je.prototype.constructor,je.prototype=Object.create(ye.prototype,{_next:bt((function(){if(this.__list__)return this.__nextIndex__<this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:bt((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))>=55296&&e<=56319?r+this.__list__[this.__nextIndex__++]:r}))}),Oe(je.prototype,Nt.toStringTag,bt("c","String Iterator"));var we,Se,Pe=Nt.iterator,xe=function(t){return"function"==typeof Zt(t)[Pe]?t[Pe]():Vt(t)?new ve(t):Lt(t)?new me(t):new ve(t)},Te=Array.isArray,ke=Function.prototype.call,De=Array.prototype.some,Ae=function(t,e){var r,n,o,i,a,c,l,u,_=arguments[2];if(Te(t)||Vt(t)?r="array":Lt(t)?r="string":t=xe(t),yt(e),o=function(){i=!0},"array"!==r)if("string"!==r)for(n=t.next();!n.done;){if(ke.call(e,_,n.value,o),i)return;n=t.next()}else for(c=t.length,a=0;a<c&&(l=t[a],a+1<c&&(u=l.charCodeAt(0))>=55296&&u<=56319&&(l+=t[++a]),ke.call(e,_,l,o),!i);++a);else De.call(t,(function(t){return ke.call(e,_,t,o),i}))},Ee=Array.prototype.forEach,Ie=Object.create,Me=function(t){var e=Ie(null);return Ee.call(arguments,(function(t){e[t]=!0})),e}("key","value","key+value"),Ce=Nt.toStringTag,ze=Object.defineProperties,Ne=ye.prototype._unBind;Se=we=function(t,e){if(!(this instanceof Se))return new Se(t,e);ye.call(this,t.__mapKeysData__,t),e&&Me[e]||(e="key+value"),ze(this,{__kind__:bt("",e),__values__:bt("w",t.__mapValuesData__)})},pt&&pt(Se,ye),Se.prototype=Object.create(ye.prototype,{constructor:bt(Se),_resolve:bt((function(t){return"value"===this.__kind__?this.__values__[t]:"key"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__values__[t]]})),_unBind:bt((function(){this.__values__=null,Ne.call(this)})),toString:bt((function(){return"[object Map Iterator]"}))}),Object.defineProperty(Se.prototype,Ce,bt("c","Map Iterator"));var Fe,Ke,Ve="undefined"!=typeof Map&&"[object Map]"===Object.prototype.toString.call(new Map),Be=Function.prototype.call,qe=Object.defineProperties,Le=Object.getPrototypeOf;Fe=Ke=function(){var t,e,r,n=arguments[0];if(!(this instanceof Ke))throw new TypeError("Constructor requires 'new'");return r=Ve&&pt&&Map!==Ke?pt(new Map,Le(this)):this,null!=n&&Zt(n),qe(r,{__mapKeysData__:bt("c",t=[]),__mapValuesData__:bt("c",e=[])}),n?(Ae(n,(function(r){var n=g(r)[0];r=r[1],-1===at.call(t,n)&&(t.push(n),e.push(r))}),r),r):r},Ve&&(pt&&pt(Ke,Map),Ke.prototype=Object.create(Map.prototype,{constructor:bt(Ke)})),St(qe(Ke.prototype,{clear:bt((function(){this.__mapKeysData__.length&&(J.call(this.__mapKeysData__),J.call(this.__mapValuesData__),this.emit("_clear"))})),delete:bt((function(t){var e=at.call(this.__mapKeysData__,t);return-1!==e&&(this.__mapKeysData__.splice(e,1),this.__mapValuesData__.splice(e,1),this.emit("_delete",e,t),!0)})),entries:bt((function(){return new we(this,"key+value")})),forEach:bt((function(t){var e,r,n=arguments[1];for(yt(t),r=(e=this.entries())._next();void 0!==r;)Be.call(t,n,this.__mapValuesData__[r],this.__mapKeysData__[r],this),r=e._next()})),get:bt((function(t){var e=at.call(this.__mapKeysData__,t);if(-1!==e)return this.__mapValuesData__[e]})),has:bt((function(t){return-1!==at.call(this.__mapKeysData__,t)})),keys:bt((function(){return new we(this,"key")})),set:bt((function(t,e){var r,n=at.call(this.__mapKeysData__,t);return-1===n&&(n=this.__mapKeysData__.push(t)-1,r=!0),this.__mapValuesData__[n]=e,r&&this.emit("_add",n,t),this})),size:bt.gs((function(){return this.__mapKeysData__.length})),values:bt((function(){return new we(this,"value")})),toString:bt((function(){return"[object Map]"}))})),Object.defineProperty(Ke.prototype,Nt.iterator,bt((function(){return this.entries()}))),Object.defineProperty(Ke.prototype,Nt.toStringTag,bt("c","Map"));(function(){var t,e;if("function"!=typeof Map)return!1;try{t=new Map([["raz","one"],["dwa","two"],["trzy","three"]])}catch(r){return!1}return"[object Map]"===String(t)&&3===t.size&&"function"==typeof t.clear&&"function"==typeof t.delete&&"function"==typeof t.entries&&"function"==typeof t.forEach&&"function"==typeof t.get&&"function"==typeof t.has&&"function"==typeof t.keys&&"function"==typeof t.set&&"function"==typeof t.values&&!1===(e=t.entries().next()).done&&!!e.value&&"raz"===e.value[0]&&"one"===e.value[1]})()||Object.defineProperty(H,"Map",{value:Fe,configurable:!0,enumerable:!1,writable:!0});var Re,Ue,Ze,$e,Ge,He={object:!0,symbol:!0},Je=function(t){if(!(e=t)||!("symbol"==typeof e||e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag]))throw new TypeError(t+" is not a symbol");var e;return t},Qe=Object.create,We=Object.defineProperties,Xe=Object.defineProperty,Ye=Object.prototype,tr=Qe(null);if("function"==typeof Symbol){Ue=Symbol;try{String(Ue()),Ge=!0}catch(mr){}}var er,rr=(er=Qe(null),function(t){for(var e,r,n=0;er[t+(n||"")];)++n;return er[t+=n||""]=!0,Xe(Ye,e="@@"+t,bt.gs(null,(function(t){r||(r=!0,Xe(this,e,bt(t)),r=!1)}))),e});$e=function(t){if(this instanceof $e)throw new TypeError("Symbol is not a constructor");return Ze(t)},Re=Ze=function t(e){var r;if(this instanceof t)throw new TypeError("Symbol is not a constructor");return Ge?Ue(e):(r=Qe($e.prototype),e=void 0===e?"":String(e),We(r,{__description__:bt("",e),__name__:bt("",rr(e))}))},We(Ze,{for:bt((function(t){return tr[t]?tr[t]:tr[t]=Ze(String(t))})),keyFor:bt((function(t){var e;for(e in Je(t),tr)if(tr[e]===t)return e})),hasInstance:bt("",Ue&&Ue.hasInstance||Ze("hasInstance")),isConcatSpreadable:bt("",Ue&&Ue.isConcatSpreadable||Ze("isConcatSpreadable")),iterator:bt("",Ue&&Ue.iterator||Ze("iterator")),match:bt("",Ue&&Ue.match||Ze("match")),replace:bt("",Ue&&Ue.replace||Ze("replace")),search:bt("",Ue&&Ue.search||Ze("search")),species:bt("",Ue&&Ue.species||Ze("species")),split:bt("",Ue&&Ue.split||Ze("split")),toPrimitive:bt("",Ue&&Ue.toPrimitive||Ze("toPrimitive")),toStringTag:bt("",Ue&&Ue.toStringTag||Ze("toStringTag")),unscopables:bt("",Ue&&Ue.unscopables||Ze("unscopables"))}),We($e.prototype,{constructor:bt(Ze),toString:bt("",(function(){return this.__name__}))}),We(Ze.prototype,{toString:bt((function(){return"Symbol ("+Je(this).__description__+")"})),valueOf:bt((function(){return Je(this)}))}),Xe(Ze.prototype,Ze.toPrimitive,bt("",(function(){var t=Je(this);return"symbol"==typeof t?t:t.toString()}))),Xe(Ze.prototype,Ze.toStringTag,bt("c","Symbol")),Xe($e.prototype,Ze.toStringTag,bt("c",Ze.prototype[Ze.toStringTag])),Xe($e.prototype,Ze.toPrimitive,bt("c",Ze.prototype[Ze.toPrimitive]));var nr,or,ir=function(){var t;if("function"!=typeof Symbol)return!1;t=Symbol("test symbol");try{String(t)}catch(e){return!1}return!!He[typeof Symbol.iterator]&&!!He[typeof Symbol.toPrimitive]&&!!He[typeof Symbol.toStringTag]}()?Symbol:Re,ar=ir.toStringTag,cr=Object.defineProperty;or=nr=function(t,e){if(!(this instanceof or))return new or(t,e);ye.call(this,t.__setData__,t),e=e&&T.call(e,"key+value")?"key+value":"value",cr(this,"__kind__",bt("",e))},pt&&pt(or,ye),or.prototype=Object.create(ye.prototype,{constructor:bt(or),_resolve:bt((function(t){return"value"===this.__kind__?this.__list__[t]:[this.__list__[t],this.__list__[t]]})),toString:bt((function(){return"[object Set Iterator]"}))}),cr(or.prototype,ar,bt("c","Set Iterator"));var lr,ur,_r,sr,fr="undefined"!=typeof Set&&"[object Set]"===Object.prototype.toString.call(Set.prototype),pr=Function.prototype.call,yr=Object.defineProperty,hr=Object.getPrototypeOf;fr&&(sr=Set),lr=ur=function(){var t,e=arguments[0];if(!(this instanceof ur))throw new TypeError("Constructor requires 'new'");return t=fr&&pt?pt(new sr,hr(this)):this,null!=e&&Zt(e),yr(t,"__setData__",bt("c",[])),e?(Ae(e,(function(t){-1===at.call(this,t)&&this.push(t)}),t.__setData__),t):t},fr&&(pt&&pt(ur,sr),ur.prototype=Object.create(sr.prototype,{constructor:bt(ur)})),St(Object.defineProperties(ur.prototype,{add:bt((function(t){return this.has(t)||this.emit("_add",this.__setData__.push(t)-1,t),this})),clear:bt((function(){this.__setData__.length&&(J.call(this.__setData__),this.emit("_clear"))})),delete:bt((function(t){var e=at.call(this.__setData__,t);return-1!==e&&(this.__setData__.splice(e,1),this.emit("_delete",e,t),!0)})),entries:bt((function(){return new nr(this,"key+value")})),forEach:bt((function(t){var e,r,n,o=arguments[1];for(yt(t),r=(e=this.values())._next();void 0!==r;)n=e._resolve(r),pr.call(t,o,n,n,this),r=e._next()})),has:bt((function(t){return-1!==at.call(this.__setData__,t)})),keys:bt(_r=function(){return this.values()}),size:bt.gs((function(){return this.__setData__.length})),values:bt((function(){return new nr(this)})),toString:bt((function(){return"[object Set]"}))})),yr(ur.prototype,ir.iterator,bt(_r)),yr(ur.prototype,ir.toStringTag,bt("c","Set"));var br,vr;"function"==typeof Set&&(br=new Set(["raz","dwa","trzy"]),"[object Set]"===String(br)&&3===br.size&&"function"==typeof br.add&&"function"==typeof br.clear&&"function"==typeof br.delete&&"function"==typeof br.entries&&"function"==typeof br.forEach&&"function"==typeof br.has&&"function"==typeof br.keys&&"function"==typeof br.values&&!1===(vr=br.values().next()).done&&"raz"===vr.value)||Object.defineProperty(H,"Set",{value:lr,configurable:!0,enumerable:!1,writable:!0});$t()||Object.defineProperty(Array,"from",{value:ee,configurable:!0,enumerable:!1,writable:!0});var dr=Nt.iterator,gr=function(){return new ve(this,"value")};(function(){var t,e,r=["foo",1];return"function"==typeof r[dr]&&!!(t=r[dr]())&&"function"==typeof t.next&&!!(e=t.next())&&"foo"===e.value&&!1===e.done})()||Object.defineProperty(Array.prototype,Nt.iterator,{value:gr,configurable:!0,enumerable:!1,writable:!0})}(); //# sourceMappingURL=es6-map-set-polyfill.min.js.map