simple-keyboard/build/index.js

12 lines
88 KiB
JavaScript
Raw Normal View History

2018-09-10 10:47:01 +08:00
/*!
*
2021-10-22 16:06:50 +08:00
* simple-keyboard v3.3.8
2018-09-10 10:47:01 +08:00
* https://github.com/hodgef/simple-keyboard
2021-03-07 15:52:17 +08:00
*
* Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
*
2019-02-24 03:44:13 +08:00
* This source code is licensed under the MIT license found in the
2018-09-10 10:47:01 +08:00
* LICENSE file in the root directory of this source tree.
2021-03-07 15:52:17 +08:00
*
2018-09-10 10:47:01 +08:00
*/
2021-10-13 16:05:58 +08:00
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SimpleKeyboard=e():t.SimpleKeyboard=e()}(this,(function(){return function(){var t={9662:function(t,e,n){var r=n(614),o=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(o(t)+" is not a function")}},9483:function(t,e,n){var r=n(4411),o=n(6330);t.exports=function(t){if(r(t))return t;throw TypeError(o(t)+" is not a constructor")}},6077:function(t,e,n){var r=n(614);t.exports=function(t){if("object"==typeof t||r(t))return t;throw TypeError("Can't set "+String(t)+" as a prototype")}},1223:function(t,e,n){var r=n(5112),o=n(30),i=n(3070),a=r("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},1530:function(t,e,n){"use strict";var r=n(8710).charAt;t.exports=function(t,e,n){return e+(n?r(t,e).length:1)}},9670:function(t,e,n){var r=n(111);t.exports=function(t){if(r(t))return t;throw TypeError(String(t)+" is not an object")}},8533:function(t,e,n){"use strict";var r=n(2092).forEach,o=n(9341)("forEach");t.exports=o?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},8457:function(t,e,n){"use strict";var r=n(9974),o=n(7908),i=n(3411),a=n(7659),s=n(4411),u=n(6244),c=n(6135),l=n(8554),f=n(1246);t.exports=function(t){var e=o(t),n=s(this),d=arguments.length,p=d>1?arguments[1]:void 0,h=void 0!==p;h&&(p=r(p,d>2?arguments[2]:void 0,2));var v,g,y,m,b,x,w=f(e),E=0;if(!w||this==Array&&a(w))for(v=u(e),g=n?new this(v):Array(v);v>E;E++)x=h?p(e[E],E):e[E],c(g,E,x);else for(b=(m=l(e,w)).next,g=n?new this:[];!(y=b.call(m)).done;E++)x=h?i(m,p,[y.value,E],!0):y.value,c(g,E,x);return g.length=E,g}},1318:function(t,e,n){var r=n(5656),o=n(1400),i=n(6244),a=function(t){return function(e,n,a){var s,u=r(e),c=i(u),l=o(a,c);if(t&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},2092:function(t,e,n){var r=n(9974),o=n(8361),i=n(7908),a=n(6244),s=n(5417),u=[].push,c=function(t){var e=1==t,n=2==t,c=3==t,l=4==t,f=6==t,d=7==t,p=5==t||f;return function(h,v,g,y){for(var m,b,x=i(h),w=o(x),E=r(v,g,3),O=a(w),S=0,k=y||s,I=e?k(h,O):n||d?k(h,0):void 0;O>S;S++)if((p||S in w)&&(b=E(m=w[S],S,x),t))if(e)I[S]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return S;case 2:u.call(I,m)}else switch(t){case 4:return!1;case 7:u.call(I,m)}return f?-1:c||l?l:I}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},1194:function(t,e,n){var r=n(7293),o=n(5112),i=n(7392),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},9341:function(t,e,n){"use strict";var r=n(7293);t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},3671:function(t,e,n){var r=n(9662),o=n(7908),i=n(8361),a=n(6244),s=function(t){return function(e,n,s,u){r(n);var c=o(e),l=i(c),f=a(c),d=t?f-1:0,p=t?-1:1;if(s<2)for(;;){if(d in l){u=l[d],d+=p;break}if(d+=p,t?d<0:f<=d)throw TypeError("Reduce of empty array with no initial value")}for(;t?d>=0:f>d;d+=p)d in l&&(u=n(u,l[d],d,c));return u}};t.exports={left:s(!1),right:s(!0)}},4362:function(t){var e=Math.floor,n=function(t,i){var a=t.length,s=e(a/2);return a<8?r(t,i):o(n(t.slice(0,s),i),n(t.slice(s),i),i)},r=function(t,e){for(var n,r,o=t.length,i=1;i<o;){for(r=i,n=t[i];r&&e(t[r-1],n)>0;)t[r]=t[--r];r!==i++&&(t[r]=n)}return t},o=function(t,e,n){for(var r=t.length,o=e.length,i=0,a=0,s=[];i<r||a<o;)i<r&&a<o?s.push(n(t[i],e[a])<=0?t[i++]:e[a++]):s.push(i<r?t[i++]:e[a++]);return s};t.exports=n},7475:function(t,e,n){var r=n(3157),o=n(4411),i=n(111),a=n(5112)("species");t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===Array||r(e.prototype))||i(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?Array:e}},5417:function(t,e,n){var r=n(7475);t.exports=function(t,e){return n