From 99be88114af8f36c4012bac15b88194959d425b5 Mon Sep 17 00:00:00 2001 From: Adam Kudrna Date: Tue, 31 Dec 2019 19:00:07 +0100 Subject: [PATCH] Introduce animation helpers for loading icons --- README.md | 3 +- demo/generated/demo.js | 10 +++---- demo/index.html | 12 ++++---- dist/lib.js | 2 +- package-lock.json | 2 +- package.json | 2 +- src/demo/pages/DemoContainer.jsx | 37 ++++++++++++++++++++++-- src/demo/pages/navigation.js | 10 +++++++ src/lib/components/ui/Button/Button.scss | 14 --------- src/lib/helpers.scss | 24 +++++++++++++++ 10 files changed, 84 insertions(+), 32 deletions(-) create mode 100644 src/lib/helpers.scss diff --git a/README.md b/README.md index a0e3a218..93f15824 100644 --- a/README.md +++ b/README.md @@ -36,11 +36,12 @@ To use React UI in your app: import '@react-ui-org/react-ui/src/lib/theme.scss'; import '@react-ui-org/react-ui/src/lib/foundation.scss'; ``` -4. Optionally add the **utility classes** bundle: +4. Optionally add the **helper and utility classes** bundles: ```js // app.jsx import '@react-ui-org/react-ui/src/lib/theme.scss'; import '@react-ui-org/react-ui/src/lib/foundation.scss'; + import '@react-ui-org/react-ui/src/lib/helpers.scss'; import '@react-ui-org/react-ui/src/lib/utilities.scss'; ``` 5. Finally, use React UI **components** just like you are used to: diff --git a/demo/generated/demo.js b/demo/generated/demo.js index b696ae23..a1a0a744 100644 --- a/demo/generated/demo.js +++ b/demo/generated/demo.js @@ -1,9 +1,9 @@ -!function(e){var t={};function i(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)i.d(n,o,function(t){return e[t]}.bind(null,o));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/generated/",i(i.s=201)}([function(e,t,i){(function(t){var i;i=function(){"use strict";var e=function(e){var t=e.id,i=e.viewBox,n=e.content;this.id=t,this.viewBox=i,this.content=n};function i(e,t){return e(t={exports:{}},t.exports),t.exports}e.prototype.stringify=function(){return this.content},e.prototype.toString=function(){return this.stringify()},e.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))},"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var n=i((function(e,t){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,i){var o;return i&&!0===i.clone&&e(t)?n((o=t,Array.isArray(o)?[]:{}),t,i):t}function i(i,o,r){var a=i.slice();return o.forEach((function(o,l){void 0===a[l]?a[l]=t(o,r):e(o)?a[l]=n(i[l],o,r):-1===i.indexOf(o)&&a.push(t(o,r))})),a}function n(o,r,a){var l=Array.isArray(r),c=(a||{arrayMerge:i}).arrayMerge||i;return l?Array.isArray(o)?c(o,r,a):t(r,a):function(i,o,r){var a={};return e(i)&&Object.keys(i).forEach((function(e){a[e]=t(i[e],r)})),Object.keys(o).forEach((function(l){e(o[l])&&i[l]?a[l]=n(i[l],o[l],r):a[l]=t(o[l],r)})),a}(o,r,a)}return n.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,i){return n(e,i,t)}))},n}()})),o=i((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),r=o.svg,a=o.xlink,l={};l[r.name]=r.uri,l[a.name]=a.uri;var c=function(e,t){return void 0===e&&(e=""),""+e+""};return function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,i=this.render();return this.node=i,t.appendChild(i),i},t.prototype.render=function(){var e=this.stringify();return function(e){var t=!!document.importNode,i=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(i,!0):i}(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(e)},e.exports=i()}).call(this,i(111))},function(e,t,i){(function(t){var i;i=function(){"use strict";function e(e,t){return e(t={exports:{}},t.exports),t.exports}"undefined"!=typeof window?window:void 0!==t||"undefined"!=typeof self&&self;var i=e((function(e,t){e.exports=function(){function e(e){return e&&"object"==typeof e&&"[object RegExp]"!==Object.prototype.toString.call(e)&&"[object Date]"!==Object.prototype.toString.call(e)}function t(t,i){var o;return i&&!0===i.clone&&e(t)?n((o=t,Array.isArray(o)?[]:{}),t,i):t}function i(i,o,r){var a=i.slice();return o.forEach((function(o,l){void 0===a[l]?a[l]=t(o,r):e(o)?a[l]=n(i[l],o,r):-1===i.indexOf(o)&&a.push(t(o,r))})),a}function n(o,r,a){var l=Array.isArray(r),c=(a||{arrayMerge:i}).arrayMerge||i;return l?Array.isArray(o)?c(o,r,a):t(r,a):function(i,o,r){var a={};return e(i)&&Object.keys(i).forEach((function(e){a[e]=t(i[e],r)})),Object.keys(o).forEach((function(l){e(o[l])&&i[l]?a[l]=n(i[l],o[l],r):a[l]=t(o[l],r)})),a}(o,r,a)}return n.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,i){return n(e,i,t)}))},n}()})),n=e((function(e,t){t.default={svg:{name:"xmlns",uri:"http://www.w3.org/2000/svg"},xlink:{name:"xmlns:xlink",uri:"http://www.w3.org/1999/xlink"}},e.exports=t.default})),o=n.svg,r=n.xlink,a={};a[o.name]=o.uri,a[r.name]=r.uri;var l,c=function(e,t){return void 0===e&&(e=""),""+e+""},s=n.svg,u=n.xlink,d={attrs:(l={style:["position: absolute","width: 0","height: 0"].join("; ")},l[s.name]=s.uri,l[u.name]=u.uri,l)},_=function(e){this.config=i(d,e||{}),this.symbols=[]};_.prototype.add=function(e){var t=this.symbols,i=this.find(e.id);return i?(t[t.indexOf(i)]=e,!1):(t.push(e),!0)},_.prototype.remove=function(e){var t=this.symbols,i=this.find(e);return!!i&&(t.splice(t.indexOf(i),1),i.destroy(),!0)},_.prototype.find=function(e){return this.symbols.filter((function(t){return t.id===e}))[0]||null},_.prototype.has=function(e){return null!==this.find(e)},_.prototype.stringify=function(){var e=this.config.attrs,t=this.symbols.map((function(e){return e.stringify()})).join("");return c(t,e)},_.prototype.toString=function(){return this.stringify()},_.prototype.destroy=function(){this.symbols.forEach((function(e){return e.destroy()}))};var p=function(e){var t=e.id,i=e.viewBox,n=e.content;this.id=t,this.viewBox=i,this.content=n};p.prototype.stringify=function(){return this.content},p.prototype.toString=function(){return this.stringify()},p.prototype.destroy=function(){var e=this;["id","viewBox","content"].forEach((function(t){return delete e[t]}))};var v=function(e){var t=!!document.importNode,i=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement;return t?document.importNode(i,!0):i},f=function(e){function t(){e.apply(this,arguments)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={isMounted:{}};return i.isMounted.get=function(){return!!this.node},t.createFromExistingNode=function(e){return new t({id:e.getAttribute("id"),viewBox:e.getAttribute("viewBox"),content:e.outerHTML})},t.prototype.destroy=function(){this.isMounted&&this.unmount(),e.prototype.destroy.call(this)},t.prototype.mount=function(e){if(this.isMounted)return this.node;var t="string"==typeof e?document.querySelector(e):e,i=this.render();return this.node=i,t.appendChild(i),i},t.prototype.render=function(){var e=this.stringify();return v(c(e)).childNodes[0]},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},Object.defineProperties(t.prototype,i),t}(p),m={autoConfigure:!0,mountTo:"body",syncUrlsWithBaseTag:!1,listenLocationChangeEvent:!0,locationChangeEvent:"locationChange",locationChangeAngularEmitter:!1,usagesToUpdate:"use[*|href]",moveGradientsOutsideSymbol:!1},h=function(e){return Array.prototype.slice.call(e,0)},g={isChrome:function(){return/chrome/i.test(navigator.userAgent)},isFirefox:function(){return/firefox/i.test(navigator.userAgent)},isIE:function(){return/msie/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)},isEdge:function(){return/edge/i.test(navigator.userAgent)}},w=function(e){var t=[];return h(e.querySelectorAll("style")).forEach((function(e){e.textContent+="",t.push(e)})),t},x=function(e){return(e||window.location.href).split("#")[0]},b=function(e){angular.module("ng").run(["$rootScope",function(t){t.$on("$locationChangeSuccess",(function(t,i,n){var o,r,a;o=e,r={oldUrl:n,newUrl:i},(a=document.createEvent("CustomEvent")).initCustomEvent(o,!1,!1,r),window.dispatchEvent(a)}))}])},y=function(e,t){return void 0===t&&(t="linearGradient, radialGradient, pattern"),h(e.querySelectorAll("symbol")).forEach((function(e){h(e.querySelectorAll(t)).forEach((function(t){e.parentNode.insertBefore(t,e)}))})),e},z=n.xlink.uri,M="xlink:href",k=/[{}|\\\^\[\]`"<>]/g;function L(e){return e.replace(k,(function(e){return"%"+e[0].charCodeAt(0).toString(16).toUpperCase()}))}var B,C=["clipPath","colorProfile","src","cursor","fill","filter","marker","markerStart","markerMid","markerEnd","mask","stroke","style"],S=C.map((function(e){return"["+e+"]"})).join(","),E=function(e,t,i,n){var o=L(i),r=L(n);(function(e,t){return h(e).reduce((function(e,i){if(!i.attributes)return e;var n=h(i.attributes),o=t?n.filter(t):n;return e.concat(o)}),[])})(e.querySelectorAll(S),(function(e){var t=e.localName,i=e.value;return-1!==C.indexOf(t)&&-1!==i.indexOf("url("+o)})).forEach((function(e){return e.value=e.value.replace(new RegExp(o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),r)})),function(e,t,i){h(e).forEach((function(e){var n=e.getAttribute(M);if(n&&0===n.indexOf(t)){var o=n.replace(t,i);e.setAttributeNS(z,M,o)}}))}(t,o,r)},H={MOUNT:"mount",SYMBOL_MOUNT:"symbol_mount"},T=function(e){function t(t){var n=this;void 0===t&&(t={}),e.call(this,i(m,t));var o,r=(o=o||Object.create(null),{on:function(e,t){(o[e]||(o[e]=[])).push(t)},off:function(e,t){o[e]&&o[e].splice(o[e].indexOf(t)>>>0,1)},emit:function(e,t){(o[e]||[]).map((function(e){e(t)})),(o["*"]||[]).map((function(i){i(e,t)}))}});this._emitter=r,this.node=null;var a=this.config;if(a.autoConfigure&&this._autoConfigure(t),a.syncUrlsWithBaseTag){var l=document.getElementsByTagName("base")[0].getAttribute("href");r.on(H.MOUNT,(function(){return n.updateUrls("#",l)}))}var c=this._handleLocationChange.bind(this);this._handleLocationChange=c,a.listenLocationChangeEvent&&window.addEventListener(a.locationChangeEvent,c),a.locationChangeAngularEmitter&&b(a.locationChangeEvent),r.on(H.MOUNT,(function(e){a.moveGradientsOutsideSymbol&&y(e)})),r.on(H.SYMBOL_MOUNT,(function(e){a.moveGradientsOutsideSymbol&&y(e.parentNode),(g.isIE()||g.isEdge())&&w(e)}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={isMounted:{}};return n.isMounted.get=function(){return!!this.node},t.prototype._autoConfigure=function(e){var t=this.config;void 0===e.syncUrlsWithBaseTag&&(t.syncUrlsWithBaseTag=void 0!==document.getElementsByTagName("base")[0]),void 0===e.locationChangeAngularEmitter&&(t.locationChangeAngularEmitter="angular"in window),void 0===e.moveGradientsOutsideSymbol&&(t.moveGradientsOutsideSymbol=g.isFirefox())},t.prototype._handleLocationChange=function(e){var t=e.detail,i=t.oldUrl,n=t.newUrl;this.updateUrls(i,n)},t.prototype.add=function(t){var i=e.prototype.add.call(this,t);return this.isMounted&&i&&(t.mount(this.node),this._emitter.emit(H.SYMBOL_MOUNT,t.node)),i},t.prototype.attach=function(e){var t=this,i=this;if(i.isMounted)return i.node;var n="string"==typeof e?document.querySelector(e):e;return i.node=n,this.symbols.forEach((function(e){e.mount(i.node),t._emitter.emit(H.SYMBOL_MOUNT,e.node)})),h(n.querySelectorAll("symbol")).forEach((function(e){var t=f.createFromExistingNode(e);t.node=e,i.add(t)})),this._emitter.emit(H.MOUNT,n),n},t.prototype.destroy=function(){var e=this.config,t=this.symbols,i=this._emitter;t.forEach((function(e){return e.destroy()})),i.off("*"),window.removeEventListener(e.locationChangeEvent,this._handleLocationChange),this.isMounted&&this.unmount()},t.prototype.mount=function(e,t){if(void 0===e&&(e=this.config.mountTo),void 0===t&&(t=!1),this.isMounted)return this.node;var i="string"==typeof e?document.querySelector(e):e,n=this.render();return this.node=n,t&&i.childNodes[0]?i.insertBefore(n,i.childNodes[0]):i.appendChild(n),this._emitter.emit(H.MOUNT,n),n},t.prototype.render=function(){return v(this.stringify())},t.prototype.unmount=function(){this.node.parentNode.removeChild(this.node)},t.prototype.updateUrls=function(e,t){if(!this.isMounted)return!1;var i=document.querySelectorAll(this.config.usagesToUpdate);return E(this.node,i,x(e)+"#",x(t)+"#"),!0},Object.defineProperties(t.prototype,n),t}(_),V=e((function(e){var t,i,n,o,r;e.exports=(i=[],n=document,o=n.documentElement.doScroll,(r=(o?/^loaded|^c/:/^loaded|^i|^c/).test(n.readyState))||n.addEventListener("DOMContentLoaded",t=function(){for(n.removeEventListener("DOMContentLoaded",t),r=1;t=i.shift();)t()}),function(e){r?setTimeout(e,0):i.push(e)})}));window.__SVG_SPRITE__?B=window.__SVG_SPRITE__:(B=new T({attrs:{id:"__SVG_SPRITE_NODE__"}}),window.__SVG_SPRITE__=B);var j=function(){var e=document.getElementById("__SVG_SPRITE_NODE__");e?B.attach(e):B.mount(document.body,!0)};return document.body?j():V(j),B},e.exports=i()}).call(this,i(111))},function(e,t,i){var n=i(6),o=i(32).f,r=i(23),a=i(29),l=i(113),c=i(144),s=i(73);e.exports=function(e,t){var i,u,d,_,p,v=e.target,f=e.global,m=e.stat;if(i=f?n:m?n[v]||l(v,{}):(n[v]||{}).prototype)for(u in t){if(_=t[u],d=e.noTargetGet?(p=o(i,u))&&p.value:i[u],!s(f?u:v+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof _==typeof d)continue;c(_,d)}(e.sham||d&&d.sham)&&r(_,"sham",!0),a(i,u,_,e)}}},function(e,t,i){var n=i(11);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=!1},function(e,t,i){(function(t){var i="object",n=function(e){return e&&e.Math==Math&&e};e.exports=n(typeof globalThis==i&&globalThis)||n(typeof window==i&&window)||n(typeof self==i&&self)||n(typeof t==i&&t)||Function("return this")()}).call(this,i(111))},function(e,t,i){"use strict";e.exports=i(507)},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,i){var n=i(3),o=i(118),r=i(15),a=i(21),l=i(78),c=i(153),s=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,i,u,d){var _,p,v,f,m,h,g=a(t,i,u?2:1);if(d)_=e;else{if("function"!=typeof(p=l(e)))throw TypeError("Target is not iterable");if(o(p)){for(v=0,f=r(e.length);f>v;v++)if((m=u?g(n(h=e[v])[0],h[1]):g(e[v]))&&m instanceof s)return m;return new s(!1)}_=p.call(e)}for(;!(h=_.next()).done;)if((m=c(_,g,h.value,u))&&m instanceof s)return m;return new s(!1)}).stop=function(e){return new s(!0,e)}},function(e,t,i){e.exports=i(521)()},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){var n=i(4);e.exports=!n((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,i){var n=i(6),o=i(64),r=i(70),a=i(146),l=n.Symbol,c=o("wks");e.exports=function(e){return c[e]||(c[e]=a&&l[e]||(a?l:r)("Symbol."+e))}},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i=e[1]||"",n=e[3];if(!n)return i;if(t&&"function"==typeof btoa){var o=(a=n,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),r=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot).concat(e," */")}));return[i].concat(r).concat([o]).join("\n")}var a,l,c;return[i].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(i,"}"):i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},o=0;o0?o(n(e),9007199254740991):0}},function(e,t,i){"use strict";var n,o=i(12),r=i(6),a=i(11),l=i(22),c=i(79),s=i(23),u=i(29),d=i(18).f,_=i(33),p=i(60),v=i(13),f=i(70),m=r.DataView,h=m&&m.prototype,g=r.Int8Array,w=g&&g.prototype,x=r.Uint8ClampedArray,b=x&&x.prototype,y=g&&_(g),z=w&&_(w),M=Object.prototype,k=M.isPrototypeOf,L=v("toStringTag"),B=f("TYPED_ARRAY_TAG"),C=!(!r.ArrayBuffer||!m),S=C&&!!p&&"Opera"!==c(r.opera),E=!1,H={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},T=function(e){return a(e)&&l(H,c(e))};for(n in H)r[n]||(S=!1);if((!S||"function"!=typeof y||y===Function.prototype)&&(y=function(){throw TypeError("Incorrect invocation")},S))for(n in H)r[n]&&p(r[n],y);if((!S||!z||z===M)&&(z=y.prototype,S))for(n in H)r[n]&&p(r[n].prototype,z);if(S&&_(b)!==z&&p(b,z),o&&!l(z,L))for(n in E=!0,d(z,L,{get:function(){return a(this)?this[B]:void 0}}),H)r[n]&&s(r[n],B,n);C&&p&&_(h)!==M&&p(h,M),e.exports={NATIVE_ARRAY_BUFFER:C,NATIVE_ARRAY_BUFFER_VIEWS:S,TYPED_ARRAY_TAG:E&&B,aTypedArray:function(e){if(T(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(p){if(k.call(y,e))return e}else for(var t in H)if(l(H,n)){var i=r[t];if(i&&(e===i||k.call(i,e)))return e}throw TypeError("Target is not a typed array constructor")},exportProto:function(e,t,i){if(o){if(i)for(var n in H){var a=r[n];a&&l(a.prototype,e)&&delete a.prototype[e]}z[e]&&!i||u(z,e,i?t:S&&w[e]||t)}},exportStatic:function(e,t,i){var n,a;if(o){if(p){if(i)for(n in H)(a=r[n])&&l(a,e)&&delete a[e];if(y[e]&&!i)return;try{return u(y,e,i?t:S&&g[e]||t)}catch(e){}}for(n in H)!(a=r[n])||a[e]&&!i||u(a,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||l(H,t)},isTypedArray:T,TypedArray:y,TypedArrayPrototype:z}},function(e,t,i){"use strict";var n,o={},r=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}();function l(e,t){for(var i=[],n={},o=0;oz;z++)if((_||z in x)&&(g=b(h=x[z],z,w),e))if(t)k[z]=g;else if(g)switch(e){case 3:return!0;case 5:return h;case 6:return z;case 2:c.call(k,h)}else if(u)return!1;return d?-1:s||u?u:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(e,t,i){"use strict";var n=i(2),o=i(4),r=i(53),a=i(11),l=i(19),c=i(15),s=i(59),u=i(75),d=i(81),_=i(13)("isConcatSpreadable"),p=!o((function(){var e=[];return e[_]=!1,e.concat()[0]!==e})),v=d("concat"),f=function(e){if(!a(e))return!1;var t=e[_];return void 0!==t?!!t:r(e)};n({target:"Array",proto:!0,forced:!p||!v},{concat:function(e){var t,i,n,o,r,a=l(this),d=u(a,0),_=0;for(t=-1,n=arguments.length;t9007199254740991)throw TypeError("Maximum allowed index exceeded");for(i=0;i=9007199254740991)throw TypeError("Maximum allowed index exceeded");s(d,_++,r)}return d.length=_,d}})},function(e,t,i){var n=i(6),o=i(64),r=i(23),a=i(22),l=i(113),c=i(142),s=i(30),u=s.get,d=s.enforce,_=String(c).split("toString");o("inspectSource",(function(e){return c.call(e)})),(e.exports=function(e,t,i,o){var c=!!o&&!!o.unsafe,s=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||a(i,"name")||r(i,"name",t),d(i).source=_.join("string"==typeof t?t:"")),e!==n?(c?!u&&e[t]&&(s=!0):delete e[t],s?e[t]=i:r(e,t,i)):s?e[t]=i:l(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||c.call(this)}))},function(e,t,i){var n,o,r,a=i(143),l=i(6),c=i(11),s=i(23),u=i(22),d=i(89),_=i(71),p=l.WeakMap;if(a){var v=new p,f=v.get,m=v.has,h=v.set;n=function(e,t){return h.call(v,e,t),t},o=function(e){return f.call(v,e)||{}},r=function(e){return m.call(v,e)}}else{var g=d("state");_[g]=!0,n=function(e,t){return s(e,g,t),t},o=function(e){return u(e,g)?e[g]:{}},r=function(e){return u(e,g)}}e.exports={set:n,get:o,has:r,enforce:function(e){return r(e)?o(e):n(e,{})},getterFor:function(e){return function(t){var i;if(!c(t)||(i=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return i}}}},function(e,t,i){"use strict";var n=i(2),o=i(67).trim;n({target:"String",proto:!0,forced:i(129)("trim")},{trim:function(){return o(this)}})},function(e,t,i){var n=i(12),o=i(88),r=i(51),a=i(34),l=i(39),c=i(22),s=i(141),u=Object.getOwnPropertyDescriptor;t.f=n?u:function(e,t){if(e=a(e),t=l(t,!0),s)try{return u(e,t)}catch(e){}if(c(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t,i){var n=i(22),o=i(19),r=i(89),a=i(119),l=r("IE_PROTO"),c=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),n(e,l)?e[l]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}},function(e,t,i){var n=i(69),o=i(26);e.exports=function(e){return n(o(e))}},function(e,t){var i=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:i)(e)}},function(e,t,i){var n=i(26),o=/"/g;e.exports=function(e,t,i,r){var a=String(n(e)),l="<"+t;return""!==i&&(l+=" "+i+'="'+String(r).replace(o,""")+'"'),l+">"+a+""}},function(e,t,i){var n=i(4);e.exports=function(e){return n((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){var n=i(11);e.exports=function(e,t){if(!n(e))return e;var i,o;if(t&&"function"==typeof(i=e.toString)&&!n(o=i.call(e)))return o;if("function"==typeof(i=e.valueOf)&&!n(o=i.call(e)))return o;if(!t&&"function"==typeof(i=e.toString)&&!n(o=i.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){var n=i(3),o=i(117),r=i(115),a=i(71),l=i(147),c=i(112),s=i(89)("IE_PROTO"),u=function(){},d=function(){var e,t=c("iframe"),i=r.length;for(t.style.display="none",l.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("