simple-keyboard 3.8.183 → 3.8.185

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * simple-keyboard v3.8.183
3
+ * simple-keyboard v3.8.185
4
4
  * https://github.com/hodgef/simple-keyboard
5
5
  *
6
6
  * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
package/build/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * simple-keyboard v3.8.183
3
+ * simple-keyboard v3.8.185
4
4
  * https://github.com/hodgef/simple-keyboard
5
5
  *
6
6
  * Copyright (c) Francisco Hodge (https://github.com/hodgef) and project contributors.
@@ -9,4 +9,4 @@
9
9
  * LICENSE file in the root directory of this source tree.
10
10
  *
11
11
  */
12
- !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,e,n={529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},606:function(t,e,n){"use strict";var r=n(823),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},117:function(t){"use strict";t.exports=function(t){return null==t}},269:function(t){"use strict";t.exports=Object.create?Object.create(null):{}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t](i,i.exports,o),i.exports}o.cw=function(t){var e;return function(){if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},e=Object.getPrototypeOf,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var u=2&r&&n;("object"==typeof u||"function"==typeof u)&&!~t.indexOf(u);u=e(u))Object.getOwnPropertyNames(u).forEach(function(t){a[t]=function(){return n[t]}});return a.default=function(){return n},o.d(i,a),i},o.d=function(t,e){for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";o.r(i),o.d(i,{SimpleKeyboard:function(){return br},default:function(){return wr}});var t=o.cw(function(t,e){var n=Ot(),r=_e(),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a function")}}),e=o.cw(function(t,e){var n=Et(),r=_e(),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a constructor")}}),n=o.cw(function(t,e){var n=Ct(),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}}),r=o.cw(function(t,e){var n=ze(),r=$t(),o=Gt().f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&o(a,i,{configurable:!0,value:r(null)}),t.exports=function(t){a[i][t]=!0}}),a=o.cw(function(t,e){var n=Se().o;t.exports=function(t,e,r){return e+(r&&n(t,e).length||1)}}),u=o.cw(function(t,e){var n=It(),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not an object")}}),s=o.cw(function(t,e){var n=f().jJ,r=p()("forEach");t.exports=r?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),c=o.cw(function(t,e){var n=Q(),r=et(),o=Re(),i=w(),a=wt(),u=Et(),s=Kt(),c=M(),l=v(),f=ut(),d=st(),p=Tt(),h=K(),y=Array;t.exports=function(t){var e=u(this),v=arguments.length,g=v>1?arguments[1]:void 0,m=void 0!==g;m&&(g=n(g,v>2?arguments[2]:void 0));var b,w,x,O,E,S,k=o(t),P=d(k),I=0;if(!P||this===y&&a(P))for(b=s(k),w=e?new this(b):y(b);b>I;I++)S=m?g(k[I],I):k[I],c(w,I,S);else for(w=e?new this:[],E=(O=f(k,P)).next;!(x=r(E,O)).done;I++){try{h(I)}catch(t){p(O,"throw",t)}S=m?i(O,g,[x.value,I],!0):x.value;try{c(w,I,S)}catch(t){p(O,"throw",t)}}return l(w,I),w}}),l=o.cw(function(t,e){var n=De(),r=Ne(),o=Kt(),i=function(t){return function(e,i,a){var u=n(e),s=o(u);if(0===s)return!t&&-1;var c,l=r(a,s);if(t&&i!=i){for(;s>l;)if((c=u[l++])!=c)return!0}else for(;s>l;l++)if((t||l in u)&&u[l]===i)return t||l||0;return!t&&-1}};t.exports={m:i(!0),q:i(!1)}}),f=o.cw(function(t,e){var n=Q(),r=yt(),o=Re(),i=Kt(),a=b(),u=M(),s=function(t){var e=1===t,s=2===t,c=3===t,l=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,y){for(var g,m,b=o(h),w=r(b),x=i(w),O=n(v,y),E=0,S=0,k=e?a(h,x):s||d?a(h,0):void 0;x>E;E++)if((p||E in w)&&(m=O(g=w[E],E,b),t))if(e)u(k,E,m);else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:u(k,S++,g)}else switch(t){case 4:return!1;case 7:u(k,S++,g)}return f?-1:c||l?l:k}};t.exports={jJ:s(0),Tj:s(1),pb:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}}),d=o.cw(function(t,e){var n=q(),r=ze(),o=G(),i=r("species");t.exports=function(t){return o>=51||!n(function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}),p=o.cw(function(t,e){var n=q();t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){return 1},1)})}}),h=o.cw(function(e,n){var r=t(),o=Re(),i=yt(),a=Kt(),u=TypeError,s="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=o(e),d=i(f),p=a(f);if(r(n),0===p&&c<2)throw new u(s);var h=t?p-1:0,v=t?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw new u(s)}for(;t?h>=0:p>h;h+=v)h in d&&(l=n(l,d[h],h,f));return l}};e.exports={k:c(!1),right:c(!0)}}),v=o.cw(function(t,e){var n=L(),r=xt(),o=TypeError,i=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!i(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}),y=o.cw(function(t,e){var n=it();t.exports=n([].slice)}),g=o.cw(function(t,e){var n=y(),r=Math.floor,o=function(t,e){var i=t.length;if(i<8)for(var a,u,s=1;s<i;){for(u=s,a=t[s];u&&e(t[u-1],a)>0;)t[u]=t[--u];u!==s++&&(t[u]=a)}else for(var c=r(i/2),l=o(n(t,0,c),e),f=o(n(t,c),e),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)t[h+v]=h<d&&v<p?e(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return t};t.exports=o}),m=o.cw(function(t,e){var n=xt(),r=Et(),o=It(),i=ze()("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(r(e)&&(e===a||n(e.prototype))||o(e)&&null===(e=e[i]))&&(e=void 0)),void 0===e?a:e}}),b=o.cw(function(t,e){var n=m();t.exports=function(t,e){return new(n(t))(0===e?0:e)}}),w=o.cw(function(t,e){var n=u(),r=Tt();t.exports=function(t,e,o,i){try{return i?e(n(o)[0],o[1]):e(o)}catch(e){r(t,"throw",e)}}}),x=o.cw(function(t,e){var n=ze()("iterator"),r=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){r=!0}};i[n]=function(){return this},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[n]=function(){return{next:function(){return{done:o=!0}}}},t(i)}catch(t){}return o}}),O=o.cw(function(t,e){var n=it(),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}}),E=o.cw(function(t,e){var n=Ke(),r=Ot(),o=O(),i=ze()("toStringTag"),a=Object,u="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),i))?n:u?o(e):"Object"===(s=o(e))&&r(e.callee)?"Arguments":s}}),S=o.cw(function(t,e){var n=dt(),r=ie(),o=Vt(),i=Gt();t.exports=function(t,e,a){for(var u=r(e),s=i.f,c=o.f,l=0;l<u.length;l++){var f=u[l];n(t,f)||a&&n(a,f)||s(t,f,c(e,f))}}}),k=o.cw(function(t,e){var n=ze()("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}}),P=o.cw(function(t,e){var n=q();t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),I=function(){return o(529)},C=o.cw(function(t,e){var n=L(),r=Gt(),o=A();t.exports=n?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}}),A=o.cw(function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),M=o.cw(function(t,e){var n=L(),r=Gt(),o=A();t.exports=function(t,e,i){n?r.f(t,e,o(0,i)):t[e]=i}}),N=o.cw(function(t,e){var n=u(),r=oe(),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return r(this,t)}}),D=o.cw(function(t,e){var n=Ft(),r=Gt();t.exports=function(t,e,o){return o.get&&n(o.get,e,{getter:!0}),o.set&&n(o.set,e,{setter:!0}),r.f(t,e,o)}}),T=o.cw(function(t,e){var n=Ot(),r=Gt(),o=Ft(),i=j();t.exports=function(t,e,a,u){u||(u={});var s=u.enumerable,c=void 0!==u.name?u.name:e;if(n(a)&&o(a,c,u),u.global)s?t[e]=a:i(e,a);else{try{u.unsafe?t[e]&&(s=!0):delete t[e]}catch(t){}s?t[e]=a:r.f(t,e,{value:a,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}}),j=o.cw(function(t,e){var n=ft(),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}}),R=function(){return o(606)},L=o.cw(function(t,e){var n=q();t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),B=o.cw(function(t,e){var n=ft(),r=It(),o=n.document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}}),K=function(){return o(837)},F=o.cw(function(t,e){var n=B()("span").classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r}),_=o.cw(function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),U=o.cw(function(t,e){var n=J().match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]}),H=o.cw(function(t,e){var n=J();t.exports=/MSIE|Trident/.test(n)}),$=o.cw(function(t,e){var n=z();t.exports="NODE"===n}),J=o.cw(function(t,e){var n=ft().navigator,r=n&&n.userAgent;t.exports=r?String(r):""}),G=o.cw(function(t,e){var n,r,o=ft(),i=J(),a=o.process,u=o.Deno,s=a&&a.versions||u&&u.version,c=s&&s.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r}),V=o.cw(function(t,e){var n=J().match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]}),z=o.cw(function(t,e){var n=ft(),r=J(),o=O(),i=function(t){return r.slice(0,t.length)===t};t.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}),Y=o.cw(function(t,e){var n=ft(),r=Vt().f,o=C(),i=T(),a=j(),u=S(),s=St();t.exports=function(t,e){var c,l,f,d,p,h=t.target,v=t.global,y=t.stat;if(c=v?n:y?n[h]||a(h,{}):n[h]&&n[h].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(p=r(c,l))&&p.value:c[l],!s(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),i(c,l,d,t)}}}),q=o.cw(function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),W=o.cw(function(t,e){Sn();var n=et(),r=T(),o=le(),i=q(),a=ze(),u=C(),s=a("species"),c=RegExp.prototype;t.exports=function(t,e,l,f){var d=a(t),p=!i(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),h=p&&!i(function(){var e=!1,n=/a/;if("split"===t){var r={};r[s]=function(){return n},(n={constructor:r,flags:""})[d]=/./[d]}return n.exec=function(){return e=!0,null},n[d](""),!e});if(!p||!h||l){var v=/./[d],y=e(d,""[t],function(t,e,r,i,a){var u=e.exec;return u===o||u===c.exec?p&&!a?{done:!0,value:n(v,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}});r(String.prototype,t,y[0]),r(c,d,y[1])}f&&u(c[d],"sham",!0)}}),X=o.cw(function(t,e){var n=Z(),r=Function.prototype,o=r.apply,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})}),Q=o.cw(function(e,n){var r=ot(),o=t(),i=Z(),a=r(r.bind);e.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}}),Z=o.cw(function(t,e){var n=q();t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}),tt=o.cw(function(e,n){var r=it(),o=t(),i=It(),a=dt(),u=y(),s=Z(),c=Function,l=r([].concat),f=r([].join),d={};e.exports=s?c.bind:function(t){var e=o(this),n=e.prototype,r=u(arguments,1),s=function(){var n=l(r,u(arguments));return this instanceof s?function(t,e,n){if(!a(d,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";d[e]=c("C,a","return new C("+f(r,",")+")")}return d[e](t,n)}(e,n.length,n):e.apply(t,n)};return i(n)&&(s.prototype=n),s}}),et=o.cw(function(t,e){var n=Z(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),nt=o.cw(function(t,e){var n=L(),r=dt(),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),u=a&&"something"===function(){}.name,s=a&&(!n||n&&i(o,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:s}}),rt=o.cw(function(e,n){var r=it(),o=t();e.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}}),ot=o.cw(function(t,e){var n=O(),r=it();t.exports=function(t){if("Function"===n(t))return r(t)}}),it=o.cw(function(t,e){var n=Z(),r=Function.prototype,o=r.call,i=n&&r.bind.bind(o,o);t.exports=n?i:function(t){return function(){return o.apply(t,arguments)}}}),at=o.cw(function(t,e){var n=ft(),r=Ot();t.exports=function(t,e){return arguments.length<2?(o=n[t],r(o)?o:void 0):n[t]&&n[t][e];var o}}),ut=o.cw(function(t,e){var n=et(),r=Ot(),o=u(),i=_e(),a=st(),s=TypeError;t.exports=function(t,e){var u=arguments.length<2?a(t):e;if(r(u))return o(n(u,t));throw new s(i(t)+" is not iterable")}}),st=o.cw(function(t,e){var n=O(),r=Pt(),o=ct(),i=ze()("iterator"),a=Array.prototype;t.exports=function(t){if(!r(t))return o(t,i)||o(t,"@@iterator")||("Arguments"===n(t)?a[i]:void 0)}}),ct=o.cw(function(e,n){var r=t(),o=Pt();e.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}}),lt=o.cw(function(t,e){var n=it(),r=Re(),o=Math.floor,i=n("".charAt),a=n("".replace),u=n("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,l,f,d){var p=n+t.length,h=l.length,v=c;return void 0!==f&&(f=r(f),v=s),a(d,v,function(r,a){var s;switch(i(a,0)){case"$":return"$";case"&":return t;case"`":return u(e,0,n);case"'":return u(e,p);case"<":s=f[u(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>h){var d=o(c/10);return 0===d?r:d<=h?void 0===l[d-1]?i(a,1):l[d-1]+i(a,1):r}s=l[c-1]}return void 0===s?"":s})}}),ft=o.cw(function(t,e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof o.g&&o.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),dt=o.cw(function(t,e){var n=it(),r=Re(),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}}),pt=o.cw(function(t,e){t.exports={}}),ht=o.cw(function(t,e){var n=at();t.exports=n("document","documentElement")}),vt=o.cw(function(t,e){var n=L(),r=q(),o=B();t.exports=!n&&!r(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})}),yt=o.cw(function(t,e){var n=it(),r=q(),o=O(),i=Object,a=n("".split);t.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):i(t)}:i}),gt=o.cw(function(t,e){var n=Ot(),r=It(),o=ne();t.exports=function(t,e,i){var a,u;return o&&n(a=e.constructor)&&a!==i&&r(u=a.prototype)&&u!==i.prototype&&o(t,u),t}}),mt=o.cw(function(t,e){var n=it(),r=Ot(),o=xe(),i=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return i(t)}),t.exports=o.inspectSource}),bt=o.cw(function(t,e){var n,r,o,i=Je(),a=ft(),u=It(),s=C(),c=dt(),l=xe(),f=we(),d=pt(),p="Object already initialized",h=a.TypeError,v=a.WeakMap;if(i||l.state){var y=l.state||(l.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new h(p);return e.facade=t,y.set(t,e),e},r=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var g=f("state");d[g]=!0,n=function(t,e){if(c(t,g))throw new h(p);return e.facade=t,s(t,g,e),e},r=function(t){return c(t,g)?t[g]:{}},o=function(t){return c(t,g)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=r(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}}}}),wt=o.cw(function(t,e){var n=ze(),r=Bt(),o=n("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}}),xt=o.cw(function(t,e){var n=O();t.exports=Array.isArray||function(t){return"Array"===n(t)}}),Ot=o.cw(function(t,e){var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}}),Et=o.cw(function(t,e){var n=it(),r=q(),o=Ot(),i=E(),a=at(),u=mt(),s=function(){},c=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=n(l.exec),d=!l.test(s),p=function(t){if(!o(t))return!1;try{return c(s,[],t),!0}catch(t){return!1}},h=function(t){if(!o(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(l,u(t))}catch(t){return!0}};h.sham=!0,t.exports=!c||r(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?h:p}),St=o.cw(function(t,e){var n=q(),r=Ot(),o=/#|\.prototype\./,i=function(t,e){var o=u[a(t)];return o===c||o!==s&&(r(e)?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i}),kt=o.cw(function(t,e){var n=It(),r=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&r(t)===t}}),Pt=function(){return o(117)},It=o.cw(function(t,e){var n=Ot();t.exports=function(t){return"object"==typeof t?null!==t:n(t)}}),Ct=o.cw(function(t,e){var n=It();t.exports=function(t){return n(t)||null===t}}),At=o.cw(function(t,e){t.exports=!1}),Mt=o.cw(function(t,e){var n=It(),r=bt().get;t.exports=function(t){if(!n(t))return!1;var e=r(t);return!!e&&"RawJSON"===e.type}}),Nt=o.cw(function(t,e){var n=It(),r=O(),o=ze()("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}}),Dt=o.cw(function(t,e){var n=at(),r=Ot(),o=Xt(),i=He(),a=Object;t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,a(t))}}),Tt=o.cw(function(t,e){var n=et(),r=u(),o=ct();t.exports=function(t,e,i){var a,u;r(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw i;return i}a=n(a,t)}catch(t){u=!0,a=t}if("throw"===e)throw i;if(u)throw a;return r(a),i}}),jt=o.cw(function(t,e){var n=Lt().IteratorPrototype,r=$t(),o=A(),i=be(),a=Bt(),u=function(){return this};t.exports=function(t,e,s,c){var l=e+" Iterator";return t.prototype=r(n,{next:o(+!c,s)}),i(t,l,!1,!0),a[l]=u,t}}),Rt=o.cw(function(t,e){var n=Y(),r=et(),o=At(),i=nt(),a=Ot(),u=jt(),s=Wt(),c=ne(),l=be(),f=C(),d=T(),p=ze(),h=Bt(),v=Lt(),y=i.PROPER,g=i.CONFIGURABLE,m=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",O="values",E="entries",S=function(){return this};t.exports=function(t,e,i,p,v,k,P){u(i,e,p);var I,C,A,M=function(t){if(t===v&&R)return R;if(!b&&t&&t in T)return T[t];switch(t){case x:case O:case E:return function(){return new i(this,t)}}return function(){return new i(this)}},N=e+" Iterator",D=!1,T=t.prototype,j=T[w]||T["@@iterator"]||v&&T[v],R=!b&&j||M(v),L="Array"===e&&T.entries||j;if(L&&(I=s(L.call(new t)))!==Object.prototype&&I.next&&(o||s(I)===m||(c?c(I,m):a(I[w])||d(I,w,S)),l(I,N,!0,!0),o&&(h[N]=S)),y&&v===O&&j&&j.name!==O&&(!o&&g?f(T,"name",O):(D=!0,R=function(){return r(j,this)})),v)if(C={values:M(O),keys:k?R:M(x),entries:M(E)},P)for(A in C)(b||D||!(A in T))&&d(T,A,C[A]);else n({target:e,proto:!0,forced:b||D},C);return o&&!P||T[w]===R||d(T,w,R,{name:v}),h[e]=R,C}}),Lt=o.cw(function(t,e){var n,r,o,i=q(),a=Ot(),u=It(),s=$t(),c=Wt(),l=T(),f=ze(),d=At(),p=f("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(n=r):h=!0),!u(n)||i(function(){var t={};return n[p].call(t)!==t})?n={}:d&&(n=s(n)),a(n[p])||l(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}}),Bt=function(){return o(269)},Kt=o.cw(function(t,e){var n=je();t.exports=function(t){return n(t.length)}}),Ft=o.cw(function(t,e){var n=it(),r=q(),o=Ot(),i=dt(),a=L(),u=nt().CONFIGURABLE,s=mt(),c=bt(),l=c.enforce,f=c.get,d=String,p=Object.defineProperty,h=n("".slice),v=n("".replace),y=n([].join),g=a&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||u&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return i(r,"source")||(r.source=y(m,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return o(this)&&f(this).source||s(this)},"toString")}),_t=o.cw(function(t,e){var n=q();t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})}),Ut=o.cw(function(t,e){var n=Nt(),r=TypeError;t.exports=function(t){if(n(t))throw new r("The method doesn't accept regular expressions");return t}}),Ht=o.cw(function(t,e){var n=L(),r=it(),o=et(),i=q(),a=Zt(),u=$n(),s=te(),c=Re(),l=yt(),f=Object.assign,d=Object.defineProperty,p=r([].concat);t.exports=!f||i(function(){if(n&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){e[t]=t}),7!==f({},t)[r]||a(f({},e)).join("")!==o})?function(t,e){for(var r=c(t),i=arguments.length,f=1,d=u.f,h=s.f;i>f;)for(var v,y=l(arguments[f++]),g=d?p(a(y),d(y)):a(y),m=g.length,b=0;m>b;)v=g[b++],n&&!o(h,y,v)||(r[v]=y[v]);return r}:f}),$t=o.cw(function(t,e){var n,r=u(),o=Jt(),i=_(),a=pt(),s=ht(),c=B(),l=we(),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},v=function(t){return"<"+d+">"+t+"</"+d+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),r="java"+d+":",e.style.display="none",s.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var o=i.length;o--;)delete g[f][i[o]];return g()};a[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=r(t),n=new h,h[f]=null,n[p]=t):n=g(),void 0===e?n:o.f(n,e)}}),Jt=o.cw(function(t,e){var n=L(),r=$e(),o=Gt(),i=u(),a=De(),s=Zt();e.f=n&&!r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),u=s(e),c=u.length,l=0;c>l;)o.f(t,n=u[l++],r[n]);return t}}),Gt=o.cw(function(t,e){var n=L(),r=vt(),o=$e(),i=u(),a=Be(),s=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=n?o?function(t,e,n){if(i(t),e=a(e),i(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(i(t),e=a(e),i(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}}),Vt=o.cw(function(t,e){var n=L(),r=et(),o=te(),i=A(),a=De(),u=Be(),s=dt(),c=vt(),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=u(e),c)try{return l(t,e)}catch(t){}if(s(t,e))return i(!r(o.f,t,e),t[e])}}),zt=o.cw(function(t,e){var n=O(),r=De(),o=Yt().f,i=y(),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return o(t)}catch(t){return i(a)}}(t):o(r(t))}}),Yt=o.cw(function(t,e){var n=Qt(),r=_().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}}),qt=function(){return o(717)},Wt=o.cw(function(t,e){var n=dt(),r=Ot(),o=Re(),i=we(),a=P(),u=i("IE_PROTO"),s=Object,c=s.prototype;t.exports=a?s.getPrototypeOf:function(t){var e=o(t);if(n(e,u))return e[u];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof s?c:null}}),Xt=o.cw(function(t,e){var n=it();t.exports=n({}.isPrototypeOf)}),Qt=o.cw(function(t,e){var n=it(),r=dt(),o=De(),i=l().q,a=pt(),u=n([].push);t.exports=function(t,e){var n,s=o(t),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&u(l,n);for(;e.length>c;)r(s,n=e[c++])&&(~i(l,n)||u(l,n));return l}}),Zt=o.cw(function(t,e){var n=Qt(),r=_();t.exports=Object.keys||function(t){return n(t,r)}}),te=o.cw(function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n}),ee=o.cw(function(t,e){var n=At(),r=ft(),o=q(),i=V();t.exports=n||!o(function(){if(!(i&&i<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r[t]}})}),ne=o.cw(function(t,e){var r=rt(),o=It(),i=ge(),a=n();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return i(n),a(r),o(n)?(e?t(n,r):n.__proto__=r,n):n}}():void 0)}),re=o.cw(function(t,e){var n=Ke(),r=E();t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}}),oe=o.cw(function(t,e){var n=et(),r=Ot(),o=It(),i=TypeError;t.exports=function(t,e){var a,u;if("string"===e&&r(a=t.toString)&&!o(u=n(a,t)))return u;if(r(a=t.valueOf)&&!o(u=n(a,t)))return u;if("string"!==e&&r(a=t.toString)&&!o(u=n(a,t)))return u;throw new i("Can't convert object to primitive value")}}),ie=o.cw(function(t,e){var n=at(),r=it(),o=Yt(),i=$n(),a=u(),s=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?s(e,n(t)):e}}),ae=o.cw(function(t,e){var n=it(),r=dt(),o=SyntaxError,i=parseInt,a=String.fromCharCode,u=n("".charAt),s=n("".slice),c=n(/./.exec),l={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var n=!0,p="";e<t.length;){var h=u(t,e);if("\\"===h){var v=s(t,e,e+2);if(r(l,v))p+=l[v],e+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');var y=s(t,e+=2,e+4);if(!c(f,y))throw new o("Bad Unicode escape at: "+e);p+=a(i(y,16)),e+=4}}else{if('"'===h){n=!1,e++;break}if(c(d,h))throw new o("Bad control character in string literal at: "+e);p+=h,e++}}if(n)throw new o("Unterminated string at: "+e);return{value:p,end:e}}}),ue=o.cw(function(t,e){var n=ft();t.exports=n}),se=o.cw(function(t,e){var n=Gt().f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}}),ce=o.cw(function(t,e){var n=et(),r=u(),o=Ot(),i=O(),a=le(),s=TypeError;t.exports=function(t,e){var u=t.exec;if(o(u)){var c=n(u,t,e);return null!==c&&r(c),c}if("RegExp"===i(t))return n(a,t,e);throw new s("RegExp#exec called on incompatible receiver")}}),le=o.cw(function(t,e){var n,r,o=et(),i=it(),a=Fe(),u=de(),s=he(),c=Oe(),l=$t(),f=bt().get,d=ve(),p=ye(),h=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,g=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),x=(r=/b*/g,o(v,n=/a/,"a"),o(v,r,"a"),0!==n.lastIndex||0!==r.lastIndex),O=s.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],S=function(t,e){for(var n=t.groups=l(null),r=0;r<e.length;r++){var o=e[r];n[o[0]]=t[o[1]]}};(x||E||O||d||p)&&(y=function(t){var e,n,r,i=this,s=f(i),c=a(t),l=s.raw;if(l)return l.lastIndex=i.lastIndex,e=o(y,l,c),i.lastIndex=l.lastIndex,e&&s.groups&&S(e,s.groups),e;var d=s.groups,p=O&&i.sticky,k=o(u,i),P=i.source,I=0,C=c;if(p){k=b(k,"y",""),-1===m(k,"g")&&(k+="g"),C=w(c,i.lastIndex);var A=i.lastIndex>0&&g(c,i.lastIndex-1);i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(P="(?: (?:"+P+"))",C=" "+C,I++),n=new RegExp("^(?:"+P+")",k)}E&&(n=new RegExp("^"+P+"$(?!\\s)",k)),x&&(r=i.lastIndex);var M=o(v,p?n:i,C);return p?M?(M.input=c,M[0]=w(M[0],I),M.index=i.lastIndex,i.lastIndex+=M[0].length):i.lastIndex=0:x&&M&&(i.lastIndex=i.global?M.index+M[0].length:r),E&&M&&M.length>1&&o(h,M[0],n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&d&&S(M,d),M}),t.exports=y}),fe=o.cw(function(t,e){var n=ft(),r=q(),o=n.RegExp,i=!r(function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var u in t&&(a.hasIndices="d"),a)i(u,a[u]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r});t.exports={correct:i}}),de=o.cw(function(t,e){var n=u();t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}}),pe=o.cw(function(t,e){var n=et(),r=dt(),o=Xt(),i=fe(),a=de(),u=RegExp.prototype;t.exports=i.correct?function(t){return t.flags}:function(t){return i.correct||!o(u,t)||r(t,"flags")?t.flags:n(a,t)}}),he=o.cw(function(t,e){var n=q(),r=ft().RegExp,o=n(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),i=o||n(function(){return!r("a","y").sticky}),a=o||n(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:o}}),ve=o.cw(function(t,e){var n=q(),r=ft().RegExp;t.exports=n(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}),ye=o.cw(function(t,e){var n=q(),r=ft().RegExp;t.exports=n(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}),ge=o.cw(function(t,e){var n=Pt(),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}}),me=o.cw(function(t,e){var n=at(),r=D(),o=ze(),i=L(),a=o("species");t.exports=function(t){var e=n(t);i&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}}),be=o.cw(function(t,e){var n=Gt().f,r=dt(),o=ze()("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}}),we=o.cw(function(t,e){var n=Oe(),r=Ue(),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}}),xe=o.cw(function(t,e){var n=At(),r=ft(),o=j(),i="__core-js_shared__",a=t.exports=r[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Oe=o.cw(function(t,e){var n=xe(),r=Object.create||Object;t.exports=function(t,e){return n[t]||(n[t]=e||r(null))}}),Ee=o.cw(function(t,n){var r=u(),o=e(),i=Pt(),a=ze()("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||i(n=r(u)[a])?e:o(n)}}),Se=o.cw(function(t,e){var n=it(),r=Te(),o=Fe(),i=ge(),a=n("".charAt),u=n("".charCodeAt),s=n("".slice),c=function(t){return function(e,n){var c,l,f=o(i(e)),d=r(n),p=f.length;return d<0||d>=p?t?"":void 0:(c=u(f,d))<55296||c>56319||d+1===p||(l=u(f,d+1))<56320||l>57343?t?a(f,d):c:t?s(f,d,d+2):l-56320+(c-55296<<10)+65536}};t.exports={codeAt:c(!1),o:c(!0)}}),ke=o.cw(function(t,e){var n=nt().PROPER,r=q(),o=Ye();t.exports=function(t){return r(function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||n&&o[t].name!==t})}}),Pe=o.cw(function(t,e){var n=it(),r=ge(),o=Fe(),i=Ye(),a=n("".replace),u=RegExp("^["+i+"]+"),s=RegExp("(^|[^"+i+"])["+i+"]+$"),c=function(t){return function(e){var n=o(r(e));return 1&t&&(n=a(n,u,"")),2&t&&(n=a(n,s,"$1")),n}};t.exports={start:c(1),end:c(2),Bq:c(3)}}),Ie=o.cw(function(t,e){var n=G(),r=q(),o=ft().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),Ce=o.cw(function(t,e){var n=et(),r=at(),o=ze(),i=T();t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,a=e&&e.valueOf,u=o("toPrimitive");e&&!e[u]&&i(e,u,function(t){return n(a,this)},{arity:1})}}),Ae=o.cw(function(t,e){var n=Ie();t.exports=n&&!!Symbol.for&&!!Symbol.keyFor}),Me=o.cw(function(t,e){var n=it();t.exports=n(1.1.valueOf)}),Ne=o.cw(function(t,e){var n=Te(),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}}),De=o.cw(function(t,e){var n=yt(),r=ge();t.exports=function(t){return n(r(t))}}),Te=o.cw(function(t,e){var n=o(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}}),je=o.cw(function(t,e){var n=Te(),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}}),Re=o.cw(function(t,e){var n=ge(),r=Object;t.exports=function(t){return r(n(t))}}),Le=o.cw(function(t,e){var n=et(),r=It(),o=Dt(),i=ct(),a=oe(),u=ze(),s=TypeError,c=u("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var u,l=i(t,c);if(l){if(void 0===e&&(e="default"),u=n(l,t,e),!r(u)||o(u))return u;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}}),Be=o.cw(function(t,e){var n=Le(),r=Dt();t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}}),Ke=o.cw(function(t,e){var n={};n[ze()("toStringTag")]="z",t.exports="[object z]"===String(n)}),Fe=o.cw(function(t,e){var n=E(),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}}),_e=function(){return o(823)},Ue=o.cw(function(t,e){var n=it(),r=0,o=Math.random(),i=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}}),He=o.cw(function(t,e){var n=Ie();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),$e=o.cw(function(t,e){var n=L(),r=q();t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),Je=o.cw(function(t,e){var n=ft(),r=Ot(),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))}),Ge=o.cw(function(t,e){var n=ue(),r=dt(),o=Ve(),i=Gt().f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||i(e,t,{value:o.f(t)})}}),Ve=o.cw(function(t,e){var n=ze();e.f=n}),ze=o.cw(function(t,e){var n=ft(),r=Oe(),o=dt(),i=Ue(),a=Ie(),u=He(),s=n.Symbol,c=r("wks"),l=u?s.for||s:s&&s.withoutSetter||i;t.exports=function(t){return o(c,t)||(c[t]=a&&o(s,t)?s[t]:l("Symbol."+t)),c[t]}}),Ye=o.cw(function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"}),qe=o.cw(function(t,e){var n=Y(),r=q(),o=xt(),i=It(),a=Re(),u=Kt(),s=K(),c=M(),l=v(),f=b(),p=d(),h=ze(),y=G(),g=h("isConcatSpreadable"),m=y>=51||!r(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),w=function(t){if(!i(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(t){var e,n,r,o,i,d=a(this),p=f(d,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(w(i=-1===e?d:arguments[e]))for(o=u(i),s(h+o),n=0;n<o;n++,h++)n in i&&c(p,h,i[n]);else s(h+1),c(p,h++,i);return l(p,h),p}})}),We=o.cw(function(t,e){var n=Y(),r=f().pb;n({target:"Array",proto:!0,forced:!d()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}),Xe=o.cw(function(t,e){var n=Y(),r=c();n({target:"Array",stat:!0,forced:!x()(function(t){Array.from(t)})},{from:r})}),Qe=o.cw(function(t,e){var n=Y(),o=l().m,i=q(),a=r(),u=i(function(){return!Array(1).includes()}),s=i(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:u||s},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")}),Ze=o.cw(function(t,e){var n=Y(),r=ot(),o=l().q,i=p(),a=r([].indexOf),u=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:u||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return u?a(this,t,e)||0:o(this,t,e)}})}),tn=o.cw(function(t,e){var n=De(),o=r(),i=Bt(),a=bt(),u=Gt().f,s=Rt(),c=I(),l=At(),f=L(),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=s(Array,"Array",function(t,e){p(this,{type:d,target:n(t),index:0,kind:e})},function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)},"values");var v=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!l&&f&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}}),en=o.cw(function(t,e){var n=Y(),r=it(),o=yt(),i=De(),a=p(),u=r([].join);n({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(t){return u(i(this),void 0===t?",":t)}})}),nn=o.cw(function(t,e){var n=Y(),r=f().Tj;n({target:"Array",proto:!0,forced:!d()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}),rn=o.cw(function(t,e){var n=Y(),r=h().k,o=p(),i=G();n({target:"Array",proto:!0,forced:!$()&&i>79&&i<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})}),on=o.cw(function(t,e){var n=Y(),r=xt(),o=Et(),i=It(),a=Ne(),u=Kt(),s=De(),c=M(),l=v(),f=ze(),p=d(),h=y(),g=p("slice"),m=f("species"),b=Array,w=Math.max;n({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,f,d,p=s(this),v=u(p),y=a(t,v),g=a(void 0===e?v:e,v);if(r(p)&&(n=p.constructor,(o(n)&&(n===b||r(n.prototype))||i(n)&&null===(n=n[m]))&&(n=void 0),n===b||void 0===n))return h(p,y,g);for(f=new(void 0===n?b:n)(w(g-y,0)),d=0;y<g;y++,d++)y in p&&c(f,d,p[y]);return l(f,d),f}})}),an=o.cw(function(e,n){var r=Y(),o=it(),i=t(),a=Re(),u=Kt(),s=R(),c=Fe(),l=q(),f=g(),d=p(),h=U(),v=H(),y=G(),m=V(),b=[],w=o(b.sort),x=o(b.push),O=l(function(){b.sort(void 0)}),E=l(function(){b.sort(null)}),S=d("sort"),k=!l(function(){if(y)return y<70;if(!(h&&h>3)){if(v)return!0;if(m)return m<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)b.push({k:e+r,v:n})}for(b.sort(function(t,e){return e.v-t.v}),r=0;r<b.length;r++)e=b[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:O||!E||!S||!k},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(k)return void 0===t?w(e):w(e,t);var n,r,o=[],l=u(e);for(r=0;r<l;r++)r in e&&x(o,e[r]);for(f(o,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=c(e),o=c(n);return r===o?0:r>o?1:-1}}(t)),n=u(o),r=0;r<n;)e[r]=o[r++];for(;r<l;)s(e,r++);return e}})}),un=o.cw(function(t,e){var n=Y(),r=Re(),o=Ne(),i=Te(),a=Kt(),u=v(),s=K(),c=b(),l=M(),f=R(),p=d()("splice"),h=Math.max,y=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,d,p,v,g,m,b=r(this),w=a(b),x=o(t,w),O=arguments.length;for(0===O?n=d=0:1===O?(n=0,d=w-x):(n=O-2,d=y(h(i(e),0),w-x)),s(w+n-d),p=c(b,d),v=0;v<d;v++)(g=x+v)in b&&l(p,v,b[g]);if(u(p,d),n<d){for(v=x;v<w-d;v++)m=v+n,(g=v+d)in b?b[m]=b[g]:f(b,m);for(v=w;v>w-d+n;v--)f(b,v-1)}else if(n>d)for(v=w-d;v>x;v--)m=v+n-1,(g=v+d-1)in b?b[m]=b[g]:f(b,m);for(v=0;v<n;v++)b[v+x]=arguments[v+2];return u(b,w-d+n),p}})}),sn=o.cw(function(t,e){var n=Y(),r=q(),o=Re(),i=Le();n({target:"Date",proto:!0,forced:r(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=o(this),n=i(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})}),cn=o.cw(function(t,e){var n=dt(),r=T(),o=N(),i=ze()("toPrimitive"),a=Date.prototype;n(a,i)||r(a,i,o)}),ln=o.cw(function(t,e){var n=L(),r=nt().EXISTS,o=it(),i=D(),a=Function.prototype,u=o(a.toString),s=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(s.exec);n&&!r&&i(a,"name",{configurable:!0,get:function(){try{return c(s,u(this))[1]}catch(t){return""}}})}),fn=o.cw(function(t,e){var n=Y(),r=at(),o=et(),i=it(),a=q(),u=xt(),s=Ot(),c=It(),f=$t(),d=Mt(),p=Dt(),h=O(),v=Me(),y=l().m,g=dt(),m=Fe(),b=ae(),w=Ue(),x=Ie(),E=_t(),S=String,k=TypeError,P=r("JSON","stringify"),I=r("BigInt"),C=i("".valueOf),A=i((!0).valueOf),M=I&&i(I.prototype.valueOf),N=i(/./.exec),D=i("".charAt),T=i("".charCodeAt),j=i("".replace),R=i("".slice),L=i([].push),B=i([].pop),K=i(1.1.toString),F=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,H=/^\d+$/,$=w(),J=w(),G=w(),V=$.length,z=J.length,W=!x||a(function(){var t=r("Symbol")("stringify detection");return"[null]"!==P([t])||"{}"!==P({a:t})||"{}"!==P(Object(t))}),X=a(function(){return'"\\udf06\\ud834"'!==P("\udf06\ud834")||'"\\udead"'!==P("\udead")}),Q=E?r("JSON","isRawJSON"):d,Z=W?function(t,e,n){return P(t,function(t,n){var r=o(e,this,t,n);if(!p(r))return r},n)}:P,tt=function(t,e,n){var r=D(n,e-1),o=D(n,e+1);return N(_,t)&&!N(U,o)||N(U,t)&&!N(_,r)?"\\u"+K(T(t,0),16):t},nt=function(t,e){try{return t(e),!0}catch(t){return!1}},rt=function(t){if(!c(t)||s(t)||u(t))return!1;try{return!function(t){var e=h(t);return"Number"===e&&nt(v,t)||"String"===e&&nt(C,t)||"Boolean"===e&&nt(A,t)||!!M&&"BigInt"===e&&nt(M,t)}(t)}catch(t){return!0}},ot=function(t,e){return{toJSON:function(){var n=t[e];if(c(n)||"bigint"==typeof n){var r=n.toJSON;s(r)&&(n=o(r,n,e))}return n}}};P&&n({target:"JSON",stat:!0,arity:3,forced:W||X||!E},{stringify:function(t,e,n){var r,i=s(e)?e:void 0,a=i?void 0:function(t){if(u(t)){for(var e=t.length,n=[],r=f(null),o=0;o<e;o++){var i,a=t[o];if("string"==typeof a)i=a;else{if("number"!=typeof a&&"Number"!==h(a)&&"String"!==h(a))continue;i=m(a)}g(r,i)||(r[i]=!0,L(n,i))}return n}}(e),c=a&&function(t){for(var e=0,n=t.length;e<n;e++)if(N(H,t[e]))return J;return""}(a),l=[],d=[],p=[],v=!1,w=!0,x=Z(t,function(t,e){if(t=S(t),a){if(t===G)return B(d),void(r=B(p));if(w)w=!1;else if(this!==r&&!u(this)&&!y(a,t))return}else i&&(e=o(i,this,t,e));if(Q(e))return E?e:(v=!0,$+(L(l,e.rawJSON)-1));if(a&&rt(e)){if(y(d,e))throw new k("Converting circular structure to JSON");var n=function(t,e,n){for(var r=f(null),o=0,i=e.length;o<i;o++){var a=e[o];r[n+a]=ot(t,a)}return r[G]=null,r}(e,a,c);return L(d,e),L(p,r),r=n,c&&(v=!0),n}return e},n);if("string"!=typeof x)return x;if(X&&(x=j(x,F,tt)),!v)return x;for(var O="",P=x.length,I=0;I<P;I++){var C=D(x,I);if('"'===C){var A=b(x,++I).end-1,M=R(x,I,A);R(M,0,V)===$?O+=l[R(M,V)]:R(M,0,z)===J?O+='"'+R(M,z)+'"':O+='"'+M+'"',I=A}else O+=C}return O}})}),dn=o.cw(function(t,e){var n=Y(),r=At(),o=L(),i=ft(),a=ue(),u=it(),s=St(),c=dt(),l=gt(),f=Xt(),d=Dt(),p=Le(),h=q(),v=Yt().f,y=Vt().f,g=Gt().f,m=Me(),b=Pe().Bq,w="Number",x=i[w],O=a[w],E=x.prototype,S=i.TypeError,k=u("".slice),P=u("".charCodeAt),I=function(t){var e,n,r,o,i,a,u,s,c=p(t,"number");if(d(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),43===(e=P(c,0))||45===e){if(88===(n=P(c,2))||120===n)return NaN}else if(48===e){switch(P(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=k(c,2)).length,u=0;u<a;u++)if((s=P(i,u))<48||s>o)return NaN;return parseInt(i,r)}return+c},C=s(w,!x(" 0o1")||!x("0b1")||x("+0x1")),A=function(t){var e,n=arguments.length<1?0:x(function(t){var e=p(t,"number");return"bigint"==typeof e?e:I(e)}(t));return f(E,e=this)&&h(function(){m(e)})?l(Object(n),this,A):n};A.prototype=E,C&&!r&&(E.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:C},{Number:A});var M=function(t,e){for(var n,r=o?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(e,n=r[i])&&!c(t,n)&&g(t,n,y(e,n))};r&&O&&M(a[w],O),(C||r)&&M(a[w],x)}),pn=o.cw(function(t,e){Y()({target:"Number",stat:!0},{isInteger:kt()})}),hn=o.cw(function(t,e){var n=Y(),r=Ht();n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}),vn=o.cw(function(e,n){var r=Y(),o=L(),i=ee(),a=t(),u=Re(),s=Gt();o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,e){s.f(u(this),t,{get:a(e),enumerable:!0,configurable:!0})}})}),yn=o.cw(function(t,e){var n=Y(),r=q(),o=De(),i=Vt().f,a=L();n({target:"Object",stat:!0,forced:!a||r(function(){i(1)}),sham:!a},{getOwnPropertyDescriptor:function(t,e){return i(o(t),e)}})}),gn=o.cw(function(t,e){var n=Y(),r=L(),o=ie(),i=De(),a=Vt(),u=M();n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),s=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=s(r,e=c[f++]))&&u(l,e,n);return l}})}),mn=o.cw(function(t,e){var n=Y(),r=q(),o=zt().f;n({target:"Object",stat:!0,forced:r(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})}),bn=o.cw(function(t,e){var n=Y(),r=Ie(),o=q(),i=$n(),a=Re();n({target:"Object",stat:!0,forced:!r||o(function(){i.f(1)})},{getOwnPropertySymbols:function(t){var e=i.f;return e?e(a(t)):[]}})}),wn=o.cw(function(t,e){var n=Y(),r=Re(),o=Zt();n({target:"Object",stat:!0,forced:q()(function(){o(1)})},{keys:function(t){return o(r(t))}})}),xn=o.cw(function(t,e){var n=Ke(),r=T(),o=re();n||r(Object.prototype,"toString",o,{unsafe:!0})}),On=o.cw(function(t,n){var r=Y(),o=at(),i=X(),a=tt(),s=e(),c=u(),l=It(),f=$t(),d=q(),p=o("Reflect","construct"),h=Object.prototype,v=[].push,y=d(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),g=!d(function(){p(function(){})}),m=y||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){s(t);var n=arguments.length<3?t:s(arguments[2]);if(c(e),g&&!y)return p(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(v,r,e),new(i(a,t,r))}var o=n.prototype,u=f(l(o)?o:h),d=i(t,u,e);return l(d)?d:u}})}),En=o.cw(function(t,e){var n=L(),r=ft(),o=it(),i=St(),a=gt(),u=C(),s=$t(),c=Yt().f,l=Xt(),f=Nt(),d=Fe(),p=pe(),h=he(),v=se(),y=T(),g=q(),m=dt(),b=bt().enforce,w=me(),x=ze(),O=ve(),E=ye(),S=x("match"),k=r.RegExp,P=k.prototype,I=r.SyntaxError,A=o(P.exec),M=o("".charAt),N=o("".replace),D=o("".indexOf),j=o("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,K=/a/g,F=new k(B)!==B,_=h.MISSED_STICKY,U=h.UNSUPPORTED_Y,H=n&&(!F||_||O||E||g(function(){return K[S]=!1,k(B)!==B||k(K)===K||"/a/i"!==String(k(B,"i"))}));if(i("RegExp",H)){for(var $=function(t,e){var n,r,o,i,c,h,v=l(P,this),y=f(t),g=void 0===e,w=[],x=t;if(!v&&y&&g&&t.constructor===$)return t;if((y||l(P,t))&&(t=t.source,g&&(e=p(x))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),x=t,O&&"dotAll"in B&&(r=!!e&&D(e,"s")>-1)&&(e=N(e,/s/g,"")),n=e,_&&"sticky"in B&&(o=!!e&&D(e,"y")>-1)&&U&&(e=N(e,/y/g,"")),E&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=s(null),u=!1,c=!1,l=0,f="";r<n;r++){if("\\"===(e=M(t,r))){if(e+=M(t,++r),!c&&"\\"===M(e,1)){o+="\\x5c";continue}}else if("]"===e)u=!1;else if(!u)switch(!0){case"["===e:u=!0;break;case"("===e:o+=e,A(R,j(t,r+1))?(r+=2,c=!0,l++):"?"!==M(t,r+1)&&l++;continue;case">"===e&&c:if(""===f||m(a,f))throw new I("Invalid capture group name");a[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}for(var d=0;d<i.length;d++)for(var p="\\k<"+i[d][0]+">",h="\\"+i[d][1];D(o,p)>-1;)o=N(o,p,h);return[o,i]}(t),t=i[0],w=i[1]),c=a(k(t,e),v?this:P,$),(r||o||w.length)&&(h=b(c),r&&(h.dotAll=!0,h.raw=$(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<n;r++)"\\"!==(e=M(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+M(t,++r);return o}(t),n)),o&&(h.sticky=!0),w.length&&(h.groups=w)),t!==x)try{u(c,"source",""===x?"(?:)":x)}catch(t){}return c},J=c(k),G=0;J.length>G;)v($,k,J[G++]);P.constructor=$,$.prototype=P,y(r,"RegExp",$,{constructor:!0})}w("RegExp")}),Sn=o.cw(function(t,e){var n=Y(),r=le();n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}),kn=o.cw(function(t,e){var n=nt().PROPER,r=T(),o=u(),i=Fe(),a=q(),s=pe(),c="toString",l=RegExp.prototype,f=l[c],d=a(function(){return"/a/b"!==f.call({source:"a",flags:"b"})}),p=n&&f.name!==c;(d||p)&&r(l,c,function(){var t=o(this);return"/"+i(t.source)+"/"+i(s(t))},{unsafe:!0})}),Pn=o.cw(function(t,e){var n=Y(),r=it(),o=Ut(),i=ge(),a=Fe(),u=k(),s=r("".indexOf);n({target:"String",proto:!0,forced:!u("includes")},{includes:function(t){return!!~s(a(i(this)),a(o(t)),arguments.length>1?arguments[1]:void 0)}})}),In=o.cw(function(t,e){var n=Se().o,r=Fe(),o=bt(),i=Rt(),a=I(),u="String Iterator",s=o.set,c=o.getterFor(u);i(String,"String",function(t){s(this,{type:u,string:r(t),index:0})},function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))})}),Cn=o.cw(function(t,e){var n=Y(),r=et(),o=ot(),i=jt(),s=I(),c=ge(),l=je(),f=Fe(),d=u(),p=It(),h=O(),v=Nt(),y=pe(),g=ct(),m=T(),b=q(),w=ze(),x=Ee(),E=a(),S=ce(),k=bt(),P=At(),C=w("matchAll"),A="RegExp String",M=A+" Iterator",N=k.set,D=k.getterFor(M),j=RegExp.prototype,R=TypeError,L=o("".indexOf),B=o("".matchAll),K=!!B&&!b(function(){B("a",/./)}),F=i(function(t,e,n,r){N(this,{type:M,regexp:t,string:e,global:n,unicode:r,done:!1})},A,function(){var t=D(this);if(t.done)return s(void 0,!0);var e=t.regexp,n=t.string,r=S(e,n);return null===r?(t.done=!0,s(void 0,!0)):t.global?(""===f(r[0])&&(e.lastIndex=E(n,l(e.lastIndex),t.unicode)),s(r,!1)):(t.done=!0,s(r,!1))}),_=function(t){var e,n,r,o=d(this),i=f(t),a=x(o,RegExp),u=f(y(o));return e=new a(a===RegExp?o.source:o,u),n=!!~L(u,"g"),r=!!~L(u,"u")||!!~L(u,"v"),e.lastIndex=l(o.lastIndex),new F(e,i,n,r)};n({target:"String",proto:!0,forced:K},{matchAll:function(t){var e,n,o,i,a=c(this);if(p(t)){if(v(t)&&(e=f(c(y(t))),!~L(e,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(K)return B(a,t);if(void 0===(o=g(t,C))&&P&&"RegExp"===h(t)&&(o=_),o)return r(o,t,a)}else if(K)return B(a,t);return n=f(a),i=new RegExp(t,"g"),P?r(_,i,n):i[C](n)}}),P||C in j||m(j,C,_)}),An=o.cw(function(t,e){var n=et(),r=it(),o=W(),i=u(),s=It(),c=je(),l=Fe(),f=ge(),d=ct(),p=a(),h=pe(),v=ce(),y=r("".indexOf);o("match",function(t,e,r){return[function(e){var r=f(this),o=s(e)?d(e,t):void 0;if(o)return n(o,e,r);var i=l(r);return new RegExp(e)[t](i)},function(t){var n=i(this),o=l(t),a=r(e,n,o);if(a.done)return a.value;var u=l(h(n));if(!~y(u,"g"))return v(n,o);var s=!!~y(u,"u")||!!~y(u,"v");n.lastIndex=0;for(var f,d=[],g=0;null!==(f=v(n,o));){var m=l(f[0]);d[g]=m,""===m&&(n.lastIndex=p(o,c(n.lastIndex),s)),g++}return 0===g?null:d}]})}),Mn=o.cw(function(t,e){var n=X(),r=et(),o=it(),i=W(),s=q(),c=u(),l=Ot(),f=It(),d=Te(),p=je(),h=Fe(),v=ge(),y=a(),g=ct(),m=lt(),b=pe(),w=ce(),x=ze()("replace"),O=Math.max,E=Math.min,S=o([].concat),k=o([].push),P=o("".indexOf),I=o("".slice),C=function(t){return void 0===t?t:String(t)},A="$0"==="a".replace(/./,"$0"),M=!!/./[x]&&""===/./[x]("a","$0");i("replace",function(t,e,o){var i=M?"$":"$0";return[function(t,n){var o=v(this),i=f(t)?g(t,x):void 0;return i?r(i,t,o,n):r(e,h(o),t,n)},function(t,r){var a=c(this),u=h(t),s=l(r);s||(r=h(r));var f=h(b(a));if("string"==typeof r&&!~P(r,i)&&!~P(r,"$<")&&!~P(f,"y")){var v=o(e,a,u,r);if(v.done)return v.value}var g,x=!!~P(f,"g");x&&(g=!!~P(f,"u")||!!~P(f,"v"),a.lastIndex=0);for(var A,M=[];null!==(A=w(a,u))&&(k(M,A),x);){""===h(A[0])&&(a.lastIndex=y(u,p(a.lastIndex),g))}for(var N="",D=0,T=0;T<M.length;T++){for(var j,R=h((A=M[T])[0]),L=O(E(d(A.index),u.length),0),B=[],K=1;K<A.length;K++)k(B,C(A[K]));var F=A.groups;if(s){var _=S([R],B,L,u);void 0!==F&&k(_,F),j=h(n(r,void 0,_))}else j=m(R,u,L,B,F,r);L>=D&&(N+=I(u,D,L)+j,D=L+R.length)}return N+I(u,D)}]},!!s(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!A||M)}),Nn=o.cw(function(t,e){var n=et(),r=it(),o=W(),i=u(),s=It(),c=ge(),l=Ee(),f=a(),d=je(),p=Fe(),h=ct(),v=pe(),y=ce(),g=he(),m=q(),b=g.UNSUPPORTED_Y,w=Math.min,x=r([].push),O=r("".slice),E=r("".indexOf),S=!m(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]}),k="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(t,e,r){var o="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var i=c(this),a=s(e)?h(e,t):void 0;return a?n(a,e,i,r):n(o,p(i),e,r)},function(t,n){var a=i(this),u=p(t);if(!k){var s=r(o,a,u,n,o!==e);if(s.done)return s.value}var c=l(a,RegExp),h=p(v(a)),g=!!~E(h,"u")||!!~E(h,"v");b?~E(h,"g")||(h+="g"):~E(h,"y")||(h+="y");var m=new c(b?"^(?:"+a.source+")":a,h),S=void 0===n?4294967295:n>>>0;if(0===S)return[];if(0===u.length)return null===y(m,u)?[u]:[];for(var P=0,I=0,C=[];I<u.length;){m.lastIndex=b?0:I;var A,M=y(m,b?O(u,I):u);if(null===M||(A=w(d(m.lastIndex+(b?I:0)),u.length))===P)I=f(u,I,g);else{if(x(C,O(u,P,I)),C.length===S)return C;for(var N=1;N<=M.length-1;N++)if(x(C,M[N]),C.length===S)return C;I=P=A}}return x(C,O(u,P)),C}]},k||!S,b)}),Dn=o.cw(function(t,e){var n=Y(),r=Pe().Bq;n({target:"String",proto:!0,forced:ke()("trim")},{trim:function(){return r(this)}})}),Tn=o.cw(function(t,e){var n=Y(),r=ft(),o=et(),i=it(),a=At(),s=L(),c=Ie(),l=q(),d=dt(),p=Xt(),h=u(),v=De(),y=Be(),g=Fe(),m=A(),b=$t(),w=Zt(),x=Yt(),O=zt(),E=$n(),S=Vt(),k=Gt(),P=Jt(),I=te(),C=T(),M=D(),N=Oe(),j=we(),R=pt(),B=Ue(),K=ze(),F=Ve(),_=Ge(),U=Ce(),H=be(),$=bt(),J=f().jJ,G=j("hidden"),V="Symbol",z="prototype",W=$.set,X=$.getterFor(V),Q=Object[z],Z=r.Symbol,tt=Z&&Z[z],nt=r.RangeError,rt=r.TypeError,ot=r.QObject,at=S.f,ut=k.f,st=O.f,ct=I.f,lt=i([].push),ht=N("symbols"),vt=N("op-symbols"),yt=N("wks"),gt=!ot||!ot[z]||!ot[z].findChild,mt=function(t,e,n){var r=at(Q,e);return r&&delete Q[e],ut(t,e,n),r&&t!==Q&&ut(Q,e,r),t},wt=s&&l(function(){return 7!==b(ut({},"a",{get:function(){return ut(this,"a",{value:7}).a}})).a})?mt:ut,xt=function(t,e){var n=ht[t]=b(tt);return W(n,{type:V,tag:t,description:e}),s||(n.description=e),n},Ot=function(t,e,n){t===Q&&Ot(vt,e,n),h(t);var r=y(e);return h(n),d(ht,r)?(("enumerable"in n?!n.enumerable:!d(t,r)||d(t,G)&&t[G][r])?(d(t,G)||ut(t,G,m(1,b(null))),t[G][r]=!0):(d(t,G)&&t[G][r]&&(t[G][r]=!1),n=b(n,{enumerable:m(0,!1)})),wt(t,r,n)):ut(t,r,n)},Et=function(t,e){h(t);var n=v(e),r=w(n).concat(It(n));return J(r,function(e){s&&!o(St,n,e)||Ot(t,e,n[e])}),t},St=function(t){var e=y(t),n=o(ct,this,e);return!(this===Q&&d(ht,e)&&!d(vt,e))&&(!(n||!d(this,e)||!d(ht,e)||d(this,G)&&this[G][e])||n)},kt=function(t,e){var n=v(t),r=y(e);if(n!==Q||!d(ht,r)||d(vt,r)){var o=at(n,r);return!o||!d(ht,r)||d(n,G)&&n[G][r]||(o.enumerable=!0),o}},Pt=function(t){var e=st(v(t)),n=[];return J(e,function(t){d(ht,t)||d(R,t)||lt(n,t)}),n},It=function(t){var e=t===Q,n=st(e?vt:v(t)),r=[];return J(n,function(t){!d(ht,t)||e&&!d(Q,t)||lt(r,ht[t])}),r};c||(Z=function(){if(p(tt,this))throw new rt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=B(t),n=function(t){var i=void 0===this?r:this;i===Q&&o(n,vt,t),d(i,G)&&d(i[G],e)&&(i[G][e]=!1);var a=m(1,t);try{wt(i,e,a)}catch(t){if(!(t instanceof nt))throw t;mt(i,e,a)}};return s&&gt&&wt(Q,e,{configurable:!0,set:n}),xt(e,t)},C(tt=Z[z],"toString",function(){return X(this).tag}),C(Z,"withoutSetter",function(t){return xt(B(t),t)}),I.f=St,k.f=Ot,P.f=Et,S.f=kt,x.f=O.f=Pt,E.f=It,F.f=function(t){return xt(K(t),t)},s&&(M(tt,"description",{configurable:!0,get:function(){return X(this).description}}),a||C(Q,"propertyIsEnumerable",St,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Z}),J(w(yt),function(t){_(t)}),n({target:V,stat:!0,forced:!c},{useSetter:function(){gt=!0},useSimple:function(){gt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(t,e){return void 0===e?b(t):Et(b(t),e)},defineProperty:Ot,defineProperties:Et,getOwnPropertyDescriptor:kt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Pt}),U(),H(Z,V),R[G]=!0}),jn=o.cw(function(t,e){var n=Y(),r=L(),o=ft(),i=et(),a=it(),u=dt(),s=Ot(),c=Xt(),l=Fe(),f=D(),d=S(),p=o.Symbol,h=p&&p.prototype;if(r&&s(p)&&(!("description"in h)||void 0!==p().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(v[e]=!0),e};d(y,p);var g=y.for;y.for={for:function(t){var e=l(t),n=i(g,this,e);return""===e&&(v[n]=!0),n}}.for,y.prototype=h,h.constructor=y;var m="Symbol(description detection)"===String(p("description detection")),b=a(h.valueOf),w=a(h.toString),x=/^Symbol\((.*)\)[^)]+$/,O=a("".replace),E=a("".slice);f(h,"description",{configurable:!0,get:function(){var t=b(this);if(u(v,t))return"";var e=w(t),n=m?E(e,7,-1):O(e,x,"$1");return""===n?void 0:n}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}}),Rn=o.cw(function(t,e){var n=Y(),r=at(),o=dt(),i=Fe(),a=Oe(),u=Ae(),s=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{for:function(t){var e=i(t);if(o(s,e))return s[e];var n=r("Symbol")(e);return s[e]=n,c[n]=e,n}})}),Ln=o.cw(function(t,e){Ge()("iterator")}),Bn=o.cw(function(t,e){Tn(),Rn(),Kn(),fn(),bn()}),Kn=o.cw(function(t,e){var n=Y(),r=dt(),o=Dt(),i=_e(),a=Oe(),u=Ae(),s=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!u},{keyFor:function(t){if(!o(t))throw new TypeError(i(t)+" is not a symbol");if(r(s,t))return s[t]}})}),Fn=o.cw(function(t,e){var n=Ge(),r=Ce();n("toPrimitive"),r()}),_n=o.cw(function(t,e){Cn()}),Un=o.cw(function(t,e){var n=ft(),r=Jn(),o=F(),i=s(),a=C(),u=function(t){if(t&&t.forEach!==i)try{a(t,"forEach",i)}catch(e){t.forEach=i}};for(var c in r)r[c]&&u(n[c]&&n[c].prototype);u(o)}),Hn=o.cw(function(t,e){var n=ft(),r=Jn(),o=F(),i=tn(),a=C(),u=be(),s=ze()("iterator"),c=i.values,l=function(t,e){if(t){if(t[s]!==c)try{a(t,s,c)}catch(e){t[s]=c}if(u(t,e,!0),r[e])for(var n in i)if(t[n]!==i[n])try{a(t,n,i[n])}catch(e){t[n]=i[n]}}};for(var f in r)l(n[f]&&n[f].prototype,f);l(o,"DOMTokenList")});function $n(){return $n.c||($n.c=o.t(qt(),2))}function Jn(){return Jn.c||(Jn.c=o.t(o(400),2))}Ze(),en(),on(),un(),ln(),vn(),xn(),Sn(),kn(),Mn(),Nn(),Dn(),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},u=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},s=function(t,e){if(""===e)throw new u("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new u("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(u[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~s(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~s(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=s(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=s(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=s(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,o.defineProperty(r,e,d))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}()),Bn(),jn(),Ln(),Fn(),qe(),We(),Xe(),Qe(),tn(),nn(),an(),sn(),cn(),dn(),hn(),yn(),gn(),wn(),En(),Pn(),In(),_n(),Un(),Hn();function Gn(t){return function(t){if(Array.isArray(t))return zn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Vn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vn(t,e){if(t){if("string"==typeof t)return zn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?zn(t,e):void 0}}function zn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Yn(t){return Yn="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},Yn(t)}function qn(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,Xn(r.key),r)}}function Wn(t,e,n){return(e=Xn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xn(t){var e=function(t,e){if("object"!=Yn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Yn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Yn(e)?e:e+""}rn(),pn(),mn(),On(),An();var Qn=function(){return t=function t(e){var n=e.getOptions,r=e.getCaretPosition,o=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),Wn(this,"getOptions",void 0),Wn(this,"getCaretPosition",void 0),Wn(this,"getCaretPositionEnd",void 0),Wn(this,"dispatch",void 0),Wn(this,"maxLengthReached",void 0),Wn(this,"isStandardButton",function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])}),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=o,this.dispatch=i,t.bindMethods(t,this)},e=[{key:"getButtonType",value:function(t){return t.includes("{")&&t.includes("}")&&"{//}"!==t?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(t){var e=this.getButtonType(t),n=t.replace("{","").replace("}",""),r="";return"standardBtn"!==e&&(r=" hg-button-".concat(n)),"hg-".concat(e).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(t,e){return(e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,r,o],u=e;return("{bksp}"===t||"{backspace}"===t)&&u.length>0?u=this.removeAt.apply(this,[u].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&u.length>0?u=this.removeForwardsAt.apply(this,[u].concat(a)):"{space}"===t?u=this.addStringAt.apply(this,[u," "].concat(a)):"{tab}"!==t||"boolean"==typeof i.tabCharOnTab&&!1===i.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!i.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?u=this.addStringAt.apply(this,[u,t[t.length-2]].concat(a)):"{numpaddivide}"===t?u=this.addStringAt.apply(this,[u,"/"].concat(a)):"{numpadmultiply}"===t?u=this.addStringAt.apply(this,[u,"*"].concat(a)):"{numpadsubtract}"===t?u=this.addStringAt.apply(this,[u,"-"].concat(a)):"{numpadadd}"===t?u=this.addStringAt.apply(this,[u,"+"].concat(a)):"{numpaddecimal}"===t?u=this.addStringAt.apply(this,[u,"."].concat(a)):"{"===t||"}"===t?u=this.addStringAt.apply(this,[u,t].concat(a)):t.includes("{")||t.includes("}")||(u=this.addStringAt.apply(this,[u,t].concat(a))):u=this.addStringAt.apply(this,[u,"\n"].concat(a)):u=this.addStringAt.apply(this,[u,"\t"].concat(a)),i.debug&&console.log("Input will be: "+u),u}},{key:"updateCaretPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(t,e);this.dispatch(function(t){t.setCaretPosition(n)})}},{key:"updateCaretPosAction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),r=this.getCaretPosition();return null!=r&&(e?r>0&&(r-=t):r+=t),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[t.slice(0,r),e,t.slice(o)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(e.length)):n=t+e,n}},{key:"removeAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return t;if(n===r){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?t.substring(n-2,n).match(i)?(e=t.substr(0,n-2)+t.substr(n),o&&this.updateCaretPos(2,!0)):(e=t.substr(0,n-1)+t.substr(n),o&&this.updateCaretPos(1,!0)):t.slice(-2).match(i)?(e=t.slice(0,-2),o&&this.updateCaretPos(2,!0)):(e=t.slice(0,-1),o&&this.updateCaretPos(1,!0))}else e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)});return e}},{key:"removeForwardsAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===r?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)})),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),r=n.maxLength,o=t[n.inputName||"default"],i=e.length-1>=r;if(e.length<=o.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===Yn(r)){var a=e.length-1>=r[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",a),a?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(t){return t?t.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(t,e){return e.length?t+e[0].toUpperCase()+e.slice(1):t}):""}},{key:"chunkArray",value:function(t,e){return Gn(Array(Math.ceil(t.length/e))).map(function(n,r){return t.slice(e*r,e+e*r)})}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,r=e.indexOf("‫");return r<t&&-1!=r&&n--,e.indexOf("‬")<t&&-1!=r&&n--,n<0?0:n}},{key:"isConstructor",value:function(t){try{Reflect.construct(String,[],t)}catch(t){return!1}return!0}}],n=[{key:"bindMethods",value:function(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Vn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(e[o]=e[o].bind(e))}}catch(t){r.e(t)}finally{r.f()}}}],e&&qn(t.prototype,e),n&&qn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();Wn(Qn,"noop",function(){});var Zn=Qn;function tr(t){return tr="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},tr(t)}function er(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,rr(r.key),r)}}function nr(t,e,n){return(e=rr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rr(t){var e=function(t,e){if("object"!=tr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=tr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==tr(e)?e:e+""}var or=function(){return t=function t(e){var n=this,r=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),nr(this,"getOptions",void 0),nr(this,"dispatch",void 0),nr(this,"isModifierKey",function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))}),this.dispatch=r,this.getOptions=o,Zn.bindMethods(t,this)},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a=r.getButtonElement(n),u=r.getButtonElement("{".concat(n,"}"));if(a)o=a,i=n;else{if(!u)return;o=u,i="{".concat(n,"}")}var s,c,l,f,d=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black"};if(o)if(Array.isArray(o)){if(o.forEach(function(t){return d(t)}),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(s=o[0])||void 0===s||null===(c=s.onpointerdown)||void 0===c||c.call(s,t);else if(e.physicalKeyboardHighlightPressUseClick){var p;null===(p=o[0])||void 0===p||p.click()}else r.handleButtonClicked(i,t)}else d(o),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=o)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?o.click():r.handleButtonClicked(i,t))})}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a,u=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),s=function(t){t.removeAttribute&&t.removeAttribute("style")};u&&(Array.isArray(u)?(u.forEach(function(t){return s(t)}),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(o=u[0])||void 0===o||null===(i=o.onpointerup)||void 0===i||i.call(o,t))):(s(u),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==u||null===(a=u.onpointerup)||void 0===a||a.call(u,t))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",r=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return(n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.includes("Meta")?t.code||"":t.key||this.keyCodeToKey(null==t?void 0:t.keyCode)||"").length>1?null===(e=n)||void 0===e?void 0:e.toLowerCase():n}},{key:"keyCodeToKey",value:function(t){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[t]||""}}],e&&er(t.prototype,e),n&&er(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function ir(t){return ir="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},ir(t)}function ar(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,sr(r.key),r)}}function ur(t,e,n){return(e=sr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sr(t){var e=function(t,e){if("object"!=ir(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=ir(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==ir(e)?e:e+""}var cr=function(){return t=function t(e){var n=e.utilities,r=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ur(this,"utilities",void 0),ur(this,"options",void 0),ur(this,"candidateBoxElement",void 0),ur(this,"pageIndex",0),ur(this,"pageSize",void 0),this.utilities=n,this.options=r,Zn.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(t){var e=this,n=t.candidateValue,r=t.targetElement,o=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:r,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){o(t,n),e.destroy()}})}}},{key:"renderPage",value:function(t){var e,n=this,r=t.candidateListPages,o=t.targetElement,i=t.pageIndex,a=t.nbPages,u=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var s=document.createElement("ul");s.className="hg-candidate-box-list",r[i].forEach(function(t){var e,r=document.createElement("li"),o=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:r}),t};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?r.ontouchstart=function(e){return u(t,e||o())}:r.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return u(t,e)},s.appendChild(r)});var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i-1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(s);var d=i<a-1,p=document.createElement("div");p.classList.add("hg-candidate-box-next"),d&&p.classList.add("hg-candidate-box-btn-active");var h=function(){d&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i+1,nbPages:a,onItemSelected:u})};this.options.useTouchEvents?p.ontouchstart=h:p.onclick=h,this.candidateBoxElement.appendChild(p),o.prepend(this.candidateBoxElement)}}],e&&ar(t.prototype,e),n&&ar(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),lr=cr;function fr(t){return function(t){if(Array.isArray(t))return dr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return dr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?dr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function dr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function pr(t){return pr="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},pr(t)}function hr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function vr(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,gr(r.key),r)}}function yr(t,e,n){return(e=gr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gr(t){var e=function(t,e){if("object"!=pr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=pr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==pr(e)?e:e+""}var mr=function(){return t=function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),yr(this,"input",void 0),yr(this,"options",void 0),yr(this,"utilities",void 0),yr(this,"caretPosition",void 0),yr(this,"caretPositionEnd",void 0),yr(this,"keyboardDOM",void 0),yr(this,"keyboardPluginClasses",void 0),yr(this,"keyboardDOMClass",void 0),yr(this,"buttonElements",void 0),yr(this,"currentInstanceName",void 0),yr(this,"allKeyboardInstances",void 0),yr(this,"keyboardInstanceNames",void 0),yr(this,"isFirstKeyboardInstance",void 0),yr(this,"physicalKeyboard",void 0),yr(this,"modules",void 0),yr(this,"activeButtonClass",void 0),yr(this,"holdInteractionTimeout",void 0),yr(this,"holdTimeout",void 0),yr(this,"isMouseHold",void 0),yr(this,"initialized",void 0),yr(this,"candidateBox",void 0),yr(this,"keyboardRowsDOM",void 0),yr(this,"defaultName","default"),yr(this,"activeInputElement",null),yr(this,"handleParams",function(t,e){var n,r,o;if("string"==typeof t)n=t.split(".").join(""),r=document.querySelector(".".concat(n)),o=e;else if(t instanceof HTMLDivElement){if(!t.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");n=t.className.split(" ")[0],r=t,o=e}else n="simple-keyboard",r=document.querySelector(".".concat(n)),o=t;return{keyboardDOMClass:n,keyboardDOM:r,options:o}}),yr(this,"getOptions",function(){return r.options}),yr(this,"getCaretPosition",function(){return r.caretPosition}),yr(this,"getCaretPositionEnd",function(){return r.caretPositionEnd}),yr(this,"registerModule",function(t,e){r.modules[t]||(r.modules[t]={}),e(r.modules[t])}),yr(this,"getKeyboardClassString",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[r.keyboardDOMClass].concat(e).filter(function(t){return!!t}).join(" ")}),"undefined"!=typeof window){var o=this.handleParams(e,n),i=o.keyboardDOMClass,a=o.keyboardDOM,u=o.options,s=void 0===u?{}:u;this.utilities=new Zn({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?hr(Object(n),!0).forEach(function(e){yr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},s),this.keyboardPluginClasses="",Zn.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new or({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new lr({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},e=[{key:"setCaretPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;this.caretPosition=t,this.caretPositionEnd=e}},{key:"getInputCandidates",value:function(t){var e=this,n=this.options,r=n.layoutCandidates,o=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==pr(r))return{};var i=Object.keys(r).filter(function(n){var r=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),o?"g":"gi");return!!fr(r.matchAll(i)).length});if(i.length>1){var a=i.sort(function(t,e){return e.length-t.length})[0];return{candidateKey:a,candidateValue:r[a]}}if(i.length){var u=i[0];return{candidateKey:u,candidateValue:r[u]}}return{}}},{key:"showCandidatesBox",value:function(t,e,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var o=r.options,i=o.layoutCandidatesCaseSensitiveMatch,a=o.disableCandidateNormalization,u=o.enableLayoutCandidatesKeyPress,s=e;a||(s=e.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,!0),l=r.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,d=new RegExp("".concat(r.utilities.escapeRegex(t),"$"),i?"g":"gi"),p=f.replace(d,s),h=c.replace(f,p),v=p.length-f.length,y=(l||c.length)+v;y<0&&(y=0),r.setInput(h,r.options.inputName,!0),r.setCaretPosition(y),u&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(e,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,r=n.inputName,o=void 0===r?this.defaultName:r,i=n.debug;if("{//}"!==t){this.input[o]||(this.input[o]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[o]&&this.input[o]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(t,e);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(t,e),this.input[o]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var u=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(u,this.options.inputName,!0),i&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==e?void 0:e.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),e),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),e),null!=e&&e.target&&this.options.enableLayoutCandidates){var s,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(s=this.candidateBox)||void 0===s||s.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),i&&console.log("Key pressed:",t)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(t){this.options.syncInstanceInputs?this.dispatch(function(e){e.isMouseHold=t}):this.isMouseHold=t}},{key:"handleButtonMouseDown",value:function(t,e){var n=this;e&&(this.options.preventMouseDownDefault&&e.preventDefault(),this.options.stopMouseDownPropagation&&e.stopPropagation(),e.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(n.getMouseHold()&&(!t.includes("{")&&!t.includes("}")||"{delete}"===t||"{backspace}"===t||"{bksp}"===t||"{space}"===t||"{tab}"===t)||"{arrowright}"===t||"{arrowleft}"===t||"{arrowup}"===t||"{arrowdown}"===t)&&(n.options.debug&&console.log("Button held:",t),n.handleButtonHold(t)),clearTimeout(n.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(t,e){var n=this;e&&(this.options.preventMouseUpDefault&&e.preventDefault&&e.preventDefault(),this.options.stopMouseUpPropagation&&e.stopPropagation&&e.stopPropagation(),!(e.target===this.keyboardDOM||e.target&&this.keyboardDOM.contains(e.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(e.target===this.candidateBox.candidateBoxElement||e.target&&this.candidateBox.candidateBoxElement.contains(e.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(t){t.classList.remove(n.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t,e)}},{key:"handleKeyboardContainerMouseDown",value:function(t){this.options.preventMouseDownDefault&&t.preventDefault()}},{key:"handleButtonHold",value:function(t){var e=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){e.getMouseHold()?(e.handleButtonClicked(t),e.handleButtonHold(t)):clearTimeout(e.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var t=this;this.dispatch(function(e){e.replaceInput(t.input),e.setCaretPosition(t.caretPosition,t.caretPositionEnd)})}},{key:"clearInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[t]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[t].replace("‫","").replace("‬","")+"‬":this.input[t]}},{key:"getAllInputs",value:function(){var t=this,e={};return Object.keys(this.input).forEach(function(n){e[n]=t.getInput(n,!0)}),e}},{key:"setInput",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[e]=t,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(t){this.input=t}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.changedOptions(t);this.options=Object.assign(this.options,t),e.length&&(this.options.debug&&console.log("changedOptions",e),this.onSetOptions(e),this.render())}},{key:"changedOptions",value:function(t){var e=this;return Object.keys(t).filter(function(n){return JSON.stringify(t[n])!==JSON.stringify(e.options[n])})}},{key:"onSetOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(t.includes("layoutCandidatesPageSize")||t.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new lr({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(t){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(e){t(window.SimpleKeyboardInstances[e],e)})}},{key:"addButtonTheme",value:function(t,e){var n=this;e&&t&&(t.split(" ").forEach(function(r){e.split(" ").forEach(function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map(function(t){if(null!=t&&t.class.split(" ").includes(e)){o=!0;var n=t.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),t.buttons=n.join(" "))}return t}),o||n.options.buttonTheme.push({class:e,buttons:t})})}),this.render())}},{key:"removeButtonTheme",value:function(t,e){var n=this;if(!t&&!e)return this.options.buttonTheme=[],void this.render();t&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(t.split(" ").forEach(function(t){var r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map(function(r,o){if(r&&e&&e.includes(r.class)||!e){var i,a,u=null===(i=r)||void 0===i?void 0:i.buttons.split(" ").filter(function(e){return e!==t});r&&null!=u&&u.length?r.buttons=u.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(o,1),r=null)}return r})}),this.render())}},{key:"getButtonElement",value:function(t){var e,n=this.buttonElements[t];return n&&(e=n.length>1?n:n[0]),e}},{key:"inputPatternIsValid",value:function(t){var e,n=this.options.inputPattern;if((e=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&t){var r=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(t){this.caretEventHandler(t),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(t)}},{key:"handleKeyDown",value:function(t){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(t)}},{key:"handleMouseUp",value:function(t){this.caretEventHandler(t)}},{key:"handleTouchEnd",value:function(t){this.caretEventHandler(t)}},{key:"handleSelect",value:function(t){this.caretEventHandler(t)}},{key:"handleSelectionChange",value:function(t){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t)}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch(function(r){var o=t.target===r.keyboardDOM||t.target&&r.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs){var i="function"==typeof t.composedPath?t.composedPath():t.path;Array.isArray(i)&&(o=i.some(function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))}if(("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!r.options.disableCaretPositioning){var a=t.target.selectionStart,u=t.target.selectionEnd;r.options.rtl&&(a=r.utilities.getRtlOffset(a,r.getInput()),u=r.utilities.getRtlOffset(u,r.getInput())),r.setCaretPosition(a,u),r.activeInputElement=t.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==t?void 0:t.type)}else!r.options.disableCaretPositioning&&o||"selectionchange"===(null==t?void 0:t.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.options.debug&&console.log('Caret position reset due to "'.concat(null==t?void 0:t.type,'" event'),t))})}},{key:"recurseButtons",value:function(t){var e=this;t&&Object.keys(this.buttonElements).forEach(function(n){return e.buttonElements[n].forEach(t)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(t){t&&(t.onpointerdown=null,t.onpointerup=null,t.onpointercancel=null,t.ontouchstart=null,t.ontouchend=null,t.ontouchcancel=null,t.onclick=null,t.onmousedown=null,t.onmouseup=null,t.remove(),t=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(t){var e=this.options.buttonTheme,n=[];return Array.isArray(e)&&e.forEach(function(e){if(e&&e.class&&"string"==typeof e.class&&e.buttons&&"string"==typeof e.buttons){var r=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(fr(n),fr(r)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',e)}),n}},{key:"setDOMButtonAttributes",value:function(t,e){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach(function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value?n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(t)&&e(n.attribute,n.value):e(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(t){var e;if(null!==(e=t.target.classList)&&void 0!==e&&e.contains("hg-button"))return t.preventDefault(),t.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var t=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(e){var n=t.utilities.isConstructor(e)?new e(t):e(t);n.init&&n.init(t)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(t,e){return!!this.modules[t]&&this.modules[t][e]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(t,e,n,r){var o=this,i=Array.from(t.children),a=0;return i.length&&n.forEach(function(n,u){var s=r[u];if(!(s&&s>n))return!1;var c=n-a,l=s-a,f=document.createElement("div");f.className+="hg-button-container";var d="".concat(o.options.layoutName,"-r").concat(e,"c").concat(u);f.setAttribute("data-skUID",d);var p=i.splice(c,l-c+1);a+=l-c,p.forEach(function(t){return f.appendChild(t)}),i.splice(c,0,f),t.innerHTML="",i.forEach(function(e){return t.appendChild(e)}),o.options.debug&&console.log("rowDOMContainer",p,c,l,a+1)}),t}},{key:"render",value:function(){var t=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var e="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,o),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach(function(e,n){var o=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(o=o.filter(function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)}));var u=document.createElement("div");u.className+="hg-row";var s=[],c=[];o.forEach(function(e,o){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),d=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(s.push(o),e=e.replace(/\[/g,"")),d&&(c.push(o),e=e.replace(/\]/g,""));var p=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(p),(l=y.classList).add.apply(l,fr(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,function(t,e){y.setAttribute(t,e)}),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||r||i?r?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.ontouchend=function(n){t.handleButtonMouseUp(e,n)},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n)}):(y.onclick=function(n){t.setMouseHold(!1),"function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown||t.handleButtonClicked(e,n)},y.onmousedown=function(n){("function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown)&&!t.isMouseHold&&t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onmouseup=function(n){t.handleButtonMouseUp(e,n)}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onpointerup=function(n){t.handleButtonMouseUp(e,n)},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n)}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(o);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),u.appendChild(y)}),u=t.parseRowDOMContainers(u,n,s,c),t.keyboardRowsDOM.appendChild(u)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(document.ontouchend=function(e){return t.handleButtonMouseUp(void 0,e)},document.ontouchcancel=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.ontouchstart=function(e){return t.handleKeyboardContainerMouseDown(e)}):r||(document.onmouseup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onmousedown=function(e){return t.handleKeyboardContainerMouseDown(e)}):(document.onpointerup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onpointerdown=function(e){return t.handleKeyboardContainerMouseDown(e)}),this.onInit())}}],e&&vr(t.prototype,e),n&&vr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),br=mr,wr=mr}(),i}()});
12
+ !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={529:function(t){"use strict";t.exports=function(t,e){return{value:t,done:e}}},606:function(t,e,n){"use strict";var r=n(823),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw new o("Cannot delete property "+r(e)+" of "+r(t))}},837:function(t){"use strict";var e=TypeError;t.exports=function(t){if(t>9007199254740991)throw new e("Maximum allowed index exceeded");return t}},400:function(t){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},117:function(t){"use strict";t.exports=function(t){return null==t}},269:function(t){"use strict";t.exports=Object.create?Object.create(null):{}},741:function(t){"use strict";var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},717:function(t,e){"use strict";e.f=Object.getOwnPropertySymbols},823:function(t){"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={exports:{}};return t[r](i,i.exports,n),i.exports}n.cw=function(t){var e;return function(){if(t){var n=t;t=0,e={exports:{}},n.call(e.exports,e,e.exports)}return e.exports}},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};return function(){"use strict";n.r(r),n.d(r,{SimpleKeyboard:function(){return mr},default:function(){return br}});var t=n.cw(function(t,e){var n=Et(),r=Ue(),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a function")}}),e=n.cw(function(t,e){var n=St(),r=Ue(),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a constructor")}}),o=n.cw(function(t,e){var n=At(),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}}),i=n.cw(function(t,e){var n=Ye(),r=Jt(),o=Vt().f,i=n("unscopables"),a=Array.prototype;void 0===a[i]&&o(a,i,{configurable:!0,value:r(null)}),t.exports=function(t){a[i][t]=!0}}),a=n.cw(function(t,e){var n=ke().o;t.exports=function(t,e,r){return e+(r&&n(t,e).length||1)}}),s=n.cw(function(t,e){var n=Ct(),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not an object")}}),u=n.cw(function(t,e){var n=f().jJ,r=p()("forEach");t.exports=r?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),c=n.cw(function(t,e){var n=Z(),r=nt(),o=Le(),i=w(),a=xt(),s=St(),u=Ft(),c=M(),l=v(),f=ut(),d=ct(),p=jt(),h=K(),y=Array;t.exports=function(t){var e=s(this),v=arguments.length,g=v>1?arguments[1]:void 0,m=void 0!==g;m&&(g=n(g,v>2?arguments[2]:void 0));var b,w,x,O,E,S,k=o(t),P=d(k),I=0;if(!P||this===y&&a(P))for(b=u(k),w=e?new this(b):y(b);b>I;I++)S=m?g(k[I],I):k[I],c(w,I,S);else for(w=e?new this:[],E=(O=f(k,P)).next;!(x=r(E,O)).done;I++){try{h(I)}catch(t){p(O,"throw",t)}S=m?i(O,g,[x.value,I],!0):x.value;try{c(w,I,S)}catch(t){p(O,"throw",t)}}return l(w,I),w}}),l=n.cw(function(t,e){var n=Te(),r=Ne(),o=Ft(),i=function(t){return function(e,i,a){var s=n(e),u=o(s);if(0===u)return!t&&-1;var c,l=r(a,u);if(t&&i!=i){for(;u>l;)if((c=s[l++])!=c)return!0}else for(;u>l;l++)if((t||l in s)&&s[l]===i)return t||l||0;return!t&&-1}};t.exports={m:i(!0),q:i(!1)}}),f=n.cw(function(t,e){var n=Z(),r=gt(),o=Le(),i=Ft(),a=b(),s=M(),u=function(t){var e=1===t,u=2===t,c=3===t,l=4===t,f=6===t,d=7===t,p=5===t||f;return function(h,v,y){for(var g,m,b=o(h),w=r(b),x=i(w),O=n(v,y),E=0,S=0,k=e?a(h,x):u||d?a(h,0):void 0;x>E;E++)if((p||E in w)&&(m=O(g=w[E],E,b),t))if(e)s(k,E,m);else if(m)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:s(k,S++,g)}else switch(t){case 4:return!1;case 7:s(k,S++,g)}return f?-1:c||l?l:k}};t.exports={jJ:u(0),Tj:u(1),pb:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}),d=n.cw(function(t,e){var n=W(),r=Ye(),o=V(),i=r("species");t.exports=function(t){return o>=51||!n(function(){var e=[];return(e.constructor={})[i]=function(){return{foo:1}},1!==e[t](Boolean).foo})}}),p=n.cw(function(t,e){var n=W();t.exports=function(t,e){var r=[][t];return!!r&&n(function(){r.call(null,e||function(){return 1},1)})}}),h=n.cw(function(e,n){var r=t(),o=Le(),i=gt(),a=Ft(),s=TypeError,u="Reduce of empty array with no initial value",c=function(t){return function(e,n,c,l){var f=o(e),d=i(f),p=a(f);if(r(n),0===p&&c<2)throw new s(u);var h=t?p-1:0,v=t?-1:1;if(c<2)for(;;){if(h in d){l=d[h],h+=v;break}if(h+=v,t?h<0:p<=h)throw new s(u)}for(;t?h>=0:p>h;h+=v)h in d&&(l=n(l,d[h],h,f));return l}};e.exports={k:c(!1),right:c(!0)}}),v=n.cw(function(t,e){var n=L(),r=Ot(),o=TypeError,i=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!i(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}),y=n.cw(function(t,e){var n=at();t.exports=n([].slice)}),g=n.cw(function(t,e){var n=y(),r=Math.floor,o=function(t,e){var i=t.length;if(i<8)for(var a,s,u=1;u<i;){for(s=u,a=t[u];s&&e(t[s-1],a)>0;)t[s]=t[--s];s!==u++&&(t[s]=a)}else for(var c=r(i/2),l=o(n(t,0,c),e),f=o(n(t,c),e),d=l.length,p=f.length,h=0,v=0;h<d||v<p;)t[h+v]=h<d&&v<p?e(l[h],f[v])<=0?l[h++]:f[v++]:h<d?l[h++]:f[v++];return t};t.exports=o}),m=n.cw(function(t,e){var n=Ot(),r=St(),o=Ct(),i=Ye()("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(r(e)&&(e===a||n(e.prototype))||o(e)&&null===(e=e[i]))&&(e=void 0)),void 0===e?a:e}}),b=n.cw(function(t,e){var n=m();t.exports=function(t,e){return new(n(t))(0===e?0:e)}}),w=n.cw(function(t,e){var n=s(),r=jt();t.exports=function(t,e,o,i){try{return i?e(n(o)[0],o[1]):e(o)}catch(e){r(t,"throw",e)}}}),x=n.cw(function(t,e){var n=Ye()("iterator"),r=!1;try{var o=0,i={next:function(){return{done:!!o++}},return:function(){r=!0}};i[n]=function(){return this},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var o=!1;try{var i={};i[n]=function(){return{next:function(){return{done:o=!0}}}},t(i)}catch(t){}return o}}),O=n.cw(function(t,e){var n=at(),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}}),E=n.cw(function(t,e){var n=Fe(),r=Et(),o=O(),i=Ye()("toStringTag"),a=Object,s="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),i))?n:s?o(e):"Object"===(u=o(e))&&r(e.callee)?"Arguments":u}}),S=n.cw(function(t,e){var n=pt(),r=ae(),o=zt(),i=Vt();t.exports=function(t,e,a){for(var s=r(e),u=i.f,c=o.f,l=0;l<s.length;l++){var f=s[l];n(t,f)||a&&n(a,f)||u(t,f,c(e,f))}}}),k=n.cw(function(t,e){var n=Ye()("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}}),P=n.cw(function(t,e){var n=W();t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}),I=function(){return n(529)},C=n.cw(function(t,e){var n=L(),r=Vt(),o=A();t.exports=n?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}}),A=n.cw(function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}}),M=n.cw(function(t,e){var n=L(),r=Vt(),o=A();t.exports=function(t,e,i){n?r.f(t,e,o(0,i)):t[e]=i}}),D=n.cw(function(t,e){var n=s(),r=ie(),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return r(this,t)}}),N=n.cw(function(t,e){var n=_t(),r=Vt();t.exports=function(t,e,o){return o.get&&n(o.get,e,{getter:!0}),o.set&&n(o.set,e,{setter:!0}),r.f(t,e,o)}}),T=n.cw(function(t,e){var n=Et(),r=Vt(),o=_t(),i=j();t.exports=function(t,e,a,s){s||(s={});var u=s.enumerable,c=void 0!==s.name?s.name:e;if(n(a)&&o(a,c,s),s.global)u?t[e]=a:i(e,a);else{try{s.unsafe?t[e]&&(u=!0):delete t[e]}catch(t){}u?t[e]=a:r.f(t,e,{value:a,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}}),j=n.cw(function(t,e){var n=dt(),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}}),R=function(){return n(606)},L=n.cw(function(t,e){var n=W();t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}),B=n.cw(function(t,e){var n=dt(),r=Ct(),o=n.document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}}),K=function(){return n(837)},F=function(){return n(400)},_=n.cw(function(t,e){var n=B()("span").classList,r=n&&n.constructor&&n.constructor.prototype;t.exports=r===Object.prototype?void 0:r}),U=n.cw(function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),H=n.cw(function(t,e){var n=G().match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]}),$=n.cw(function(t,e){var n=G();t.exports=/MSIE|Trident/.test(n)}),J=n.cw(function(t,e){var n=Y();t.exports="NODE"===n}),G=n.cw(function(t,e){var n=dt().navigator,r=n&&n.userAgent;t.exports=r?String(r):""}),V=n.cw(function(t,e){var n,r,o=dt(),i=G(),a=o.process,s=o.Deno,u=a&&a.versions||s&&s.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r}),z=n.cw(function(t,e){var n=G().match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]}),Y=n.cw(function(t,e){var n=dt(),r=G(),o=O(),i=function(t){return r.slice(0,t.length)===t};t.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===o(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"}),q=n.cw(function(t,e){var n=dt(),r=zt().f,o=C(),i=T(),a=j(),s=S(),u=kt();t.exports=function(t,e){var c,l,f,d,p,h=t.target,v=t.global,y=t.stat;if(c=v?n:y?n[h]||a(h,{}):n[h]&&n[h].prototype)for(l in e){if(d=e[l],f=t.dontCallGetSet?(p=r(c,l))&&p.value:c[l],!u(v?l:h+(y?".":"#")+l,t.forced)&&void 0!==f){if(typeof d==typeof f)continue;s(d,f)}(t.sham||f&&f.sham)&&o(d,"sham",!0),i(c,l,d,t)}}}),W=n.cw(function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}),X=n.cw(function(t,e){kn();var n=nt(),r=T(),o=fe(),i=W(),a=Ye(),s=C(),u=a("species"),c=RegExp.prototype;t.exports=function(t,e,l,f){var d=a(t),p=!i(function(){var e={};return e[d]=function(){return 7},7!==""[t](e)}),h=p&&!i(function(){var e=!1,n=/a/;if("split"===t){var r={};r[u]=function(){return n},(n={constructor:r,flags:""})[d]=/./[d]}return n.exec=function(){return e=!0,null},n[d](""),!e});if(!p||!h||l){var v=/./[d],y=e(d,""[t],function(t,e,r,i,a){var s=e.exec;return s===o||s===c.exec?p&&!a?{done:!0,value:n(v,e,r,i)}:{done:!0,value:n(t,r,e,i)}:{done:!1}});r(String.prototype,t,y[0]),r(c,d,y[1])}f&&s(c[d],"sham",!0)}}),Q=n.cw(function(t,e){var n=tt(),r=Function.prototype,o=r.apply,i=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(o):function(){return i.apply(o,arguments)})}),Z=n.cw(function(e,n){var r=it(),o=t(),i=tt(),a=r(r.bind);e.exports=function(t,e){return o(t),void 0===e?t:i?a(t,e):function(){return t.apply(e,arguments)}}}),tt=n.cw(function(t,e){var n=W();t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}),et=n.cw(function(e,n){var r=at(),o=t(),i=Ct(),a=pt(),s=y(),u=tt(),c=Function,l=r([].concat),f=r([].join),d={};e.exports=u?c.bind:function(t){var e=o(this),n=e.prototype,r=s(arguments,1),u=function(){var n=l(r,s(arguments));return this instanceof u?function(t,e,n){if(!a(d,e)){for(var r=[],o=0;o<e;o++)r[o]="a["+o+"]";d[e]=c("C,a","return new C("+f(r,",")+")")}return d[e](t,n)}(e,n.length,n):e.apply(t,n)};return i(n)&&(u.prototype=n),u}}),nt=n.cw(function(t,e){var n=tt(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}}),rt=n.cw(function(t,e){var n=L(),r=pt(),o=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),s=a&&"something"===function(){}.name,u=a&&(!n||n&&i(o,"name").configurable);t.exports={EXISTS:a,PROPER:s,CONFIGURABLE:u}}),ot=n.cw(function(e,n){var r=at(),o=t();e.exports=function(t,e,n){try{return r(o(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}}),it=n.cw(function(t,e){var n=O(),r=at();t.exports=function(t){if("Function"===n(t))return r(t)}}),at=n.cw(function(t,e){var n=tt(),r=Function.prototype,o=r.call,i=n&&r.bind.bind(o,o);t.exports=n?i:function(t){return function(){return o.apply(t,arguments)}}}),st=n.cw(function(t,e){var n=dt(),r=Et();t.exports=function(t,e){return arguments.length<2?(o=n[t],r(o)?o:void 0):n[t]&&n[t][e];var o}}),ut=n.cw(function(t,e){var n=nt(),r=Et(),o=s(),i=Ue(),a=ct(),u=TypeError;t.exports=function(t,e){var s=arguments.length<2?a(t):e;if(r(s))return o(n(s,t));throw new u(i(t)+" is not iterable")}}),ct=n.cw(function(t,e){var n=O(),r=It(),o=lt(),i=Ye()("iterator"),a=Array.prototype;t.exports=function(t){if(!r(t))return o(t,i)||o(t,"@@iterator")||("Arguments"===n(t)?a[i]:void 0)}}),lt=n.cw(function(e,n){var r=t(),o=It();e.exports=function(t,e){var n=t[e];return o(n)?void 0:r(n)}}),ft=n.cw(function(t,e){var n=at(),r=Le(),o=Math.floor,i=n("".charAt),a=n("".replace),s=n("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,c=/\$([$&'`]|\d{1,2})/g;t.exports=function(t,e,n,l,f,d){var p=n+t.length,h=l.length,v=c;return void 0!==f&&(f=r(f),v=u),a(d,v,function(r,a){var u;switch(i(a,0)){case"$":return"$";case"&":return t;case"`":return s(e,0,n);case"'":return s(e,p);case"<":u=f[s(a,1,-1)];break;default:var c=+a;if(0===c)return r;if(c>h){var d=o(c/10);return 0===d?r:d<=h?void 0===l[d-1]?i(a,1):l[d-1]+i(a,1):r}u=l[c-1]}return void 0===u?"":u})}}),dt=n.cw(function(t,e){var r=function(t){return t&&t.Math===Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()}),pt=n.cw(function(t,e){var n=at(),r=Le(),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}}),ht=n.cw(function(t,e){t.exports={}}),vt=n.cw(function(t,e){var n=st();t.exports=n("document","documentElement")}),yt=n.cw(function(t,e){var n=L(),r=W(),o=B();t.exports=!n&&!r(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})}),gt=n.cw(function(t,e){var n=at(),r=W(),o=O(),i=Object,a=n("".split);t.exports=r(function(){return!i("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):i(t)}:i}),mt=n.cw(function(t,e){var n=Et(),r=Ct(),o=re();t.exports=function(t,e,i){var a,s;return o&&n(a=e.constructor)&&a!==i&&r(s=a.prototype)&&s!==i.prototype&&o(t,s),t}}),bt=n.cw(function(t,e){var n=at(),r=Et(),o=Oe(),i=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return i(t)}),t.exports=o.inspectSource}),wt=n.cw(function(t,e){var n,r,o,i=Ge(),a=dt(),s=Ct(),u=C(),c=pt(),l=Oe(),f=xe(),d=ht(),p="Object already initialized",h=a.TypeError,v=a.WeakMap;if(i||l.state){var y=l.state||(l.state=new v);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new h(p);return e.facade=t,y.set(t,e),e},r=function(t){return y.get(t)||{}},o=function(t){return y.has(t)}}else{var g=f("state");d[g]=!0,n=function(t,e){if(c(t,g))throw new h(p);return e.facade=t,u(t,g,e),e},r=function(t){return c(t,g)?t[g]:{}},o=function(t){return c(t,g)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var n;if(!s(e)||(n=r(e)).type!==t)throw new h("Incompatible receiver, "+t+" required");return n}}}}),xt=n.cw(function(t,e){var n=Ye(),r=Kt(),o=n("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}}),Ot=n.cw(function(t,e){var n=O();t.exports=Array.isArray||function(t){return"Array"===n(t)}}),Et=n.cw(function(t,e){var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}}),St=n.cw(function(t,e){var n=at(),r=W(),o=Et(),i=E(),a=st(),s=bt(),u=function(){},c=a("Reflect","construct"),l=/^\s*(?:class|function)\b/,f=n(l.exec),d=!l.test(u),p=function(t){if(!o(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},h=function(t){if(!o(t))return!1;switch(i(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!f(l,s(t))}catch(t){return!0}};h.sham=!0,t.exports=!c||r(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?h:p}),kt=n.cw(function(t,e){var n=W(),r=Et(),o=/#|\.prototype\./,i=function(t,e){var o=s[a(t)];return o===c||o!==u&&(r(e)?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i}),Pt=n.cw(function(t,e){var n=Ct(),r=Math.floor;t.exports=Number.isInteger||function(t){return!n(t)&&isFinite(t)&&r(t)===t}}),It=function(){return n(117)},Ct=n.cw(function(t,e){var n=Et();t.exports=function(t){return"object"==typeof t?null!==t:n(t)}}),At=n.cw(function(t,e){var n=Ct();t.exports=function(t){return n(t)||null===t}}),Mt=n.cw(function(t,e){t.exports=!1}),Dt=n.cw(function(t,e){var n=Ct(),r=wt().get;t.exports=function(t){if(!n(t))return!1;var e=r(t);return!!e&&"RawJSON"===e.type}}),Nt=n.cw(function(t,e){var n=Ct(),r=O(),o=Ye()("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}}),Tt=n.cw(function(t,e){var n=st(),r=Et(),o=Qt(),i=$e(),a=Object;t.exports=i?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,a(t))}}),jt=n.cw(function(t,e){var n=nt(),r=s(),o=lt();t.exports=function(t,e,i){var a,s;r(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw i;return i}a=n(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw i;if(s)throw a;return r(a),i}}),Rt=n.cw(function(t,e){var n=Bt().IteratorPrototype,r=Jt(),o=A(),i=we(),a=Kt(),s=function(){return this};t.exports=function(t,e,u,c){var l=e+" Iterator";return t.prototype=r(n,{next:o(+!c,u)}),i(t,l,!1,!0),a[l]=s,t}}),Lt=n.cw(function(t,e){var n=q(),r=nt(),o=Mt(),i=rt(),a=Et(),s=Rt(),u=Xt(),c=re(),l=we(),f=C(),d=T(),p=Ye(),h=Kt(),v=Bt(),y=i.PROPER,g=i.CONFIGURABLE,m=v.IteratorPrototype,b=v.BUGGY_SAFARI_ITERATORS,w=p("iterator"),x="keys",O="values",E="entries",S=function(){return this};t.exports=function(t,e,i,p,v,k,P){s(i,e,p);var I,C,A,M=function(t){if(t===v&&R)return R;if(!b&&t&&t in T)return T[t];switch(t){case x:case O:case E:return function(){return new i(this,t)}}return function(){return new i(this)}},D=e+" Iterator",N=!1,T=t.prototype,j=T[w]||T["@@iterator"]||v&&T[v],R=!b&&j||M(v),L="Array"===e&&T.entries||j;if(L&&(I=u(L.call(new t)))!==Object.prototype&&I.next&&(o||u(I)===m||(c?c(I,m):a(I[w])||d(I,w,S)),l(I,D,!0,!0),o&&(h[D]=S)),y&&v===O&&j&&j.name!==O&&(!o&&g?f(T,"name",O):(N=!0,R=function(){return r(j,this)})),v)if(C={values:M(O),keys:k?R:M(x),entries:M(E)},P)for(A in C)(b||N||!(A in T))&&d(T,A,C[A]);else n({target:e,proto:!0,forced:b||N},C);return o&&!P||T[w]===R||d(T,w,R,{name:v}),h[e]=R,C}}),Bt=n.cw(function(t,e){var n,r,o,i=W(),a=Et(),s=Ct(),u=Jt(),c=Xt(),l=T(),f=Ye(),d=Mt(),p=f("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(n=r):h=!0),!s(n)||i(function(){var t={};return n[p].call(t)!==t})?n={}:d&&(n=u(n)),a(n[p])||l(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}}),Kt=function(){return n(269)},Ft=n.cw(function(t,e){var n=Re();t.exports=function(t){return n(t.length)}}),_t=n.cw(function(t,e){var n=at(),r=W(),o=Et(),i=pt(),a=L(),s=rt().CONFIGURABLE,u=bt(),c=wt(),l=c.enforce,f=c.get,d=String,p=Object.defineProperty,h=n("".slice),v=n("".replace),y=n([].join),g=a&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),m=String(String).split("String"),b=t.exports=function(t,e,n){"Symbol("===h(d(e),0,7)&&(e="["+v(d(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!i(t,"name")||s&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&i(n,"arity")&&t.length!==n.arity&&p(t,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=l(t);return i(r,"source")||(r.source=y(m,"string"==typeof e?e:"")),t};Function.prototype.toString=b(function(){return o(this)&&f(this).source||u(this)},"toString")}),Ut=n.cw(function(t,e){var n=W();t.exports=!n(function(){var t="9007199254740993",e=JSON.rawJSON(t);return!JSON.isRawJSON(e)||JSON.stringify(e)!==t})}),Ht=n.cw(function(t,e){var n=Nt(),r=TypeError;t.exports=function(t){if(n(t))throw new r("The method doesn't accept regular expressions");return t}}),$t=n.cw(function(t,e){var n=L(),r=at(),o=nt(),i=W(),a=te(),s=Wt(),u=ee(),c=Le(),l=gt(),f=Object.assign,d=Object.defineProperty,p=r([].concat);t.exports=!f||i(function(){if(n&&1!==f({b:1},f(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(t){e[t]=t}),7!==f({},t)[r]||a(f({},e)).join("")!==o})?function(t,e){for(var r=c(t),i=arguments.length,f=1,d=s.f,h=u.f;i>f;)for(var v,y=l(arguments[f++]),g=d?p(a(y),d(y)):a(y),m=g.length,b=0;m>b;)v=g[b++],n&&!o(h,y,v)||(r[v]=y[v]);return r}:f}),Jt=n.cw(function(t,e){var n,r=s(),o=Gt(),i=U(),a=ht(),u=vt(),c=B(),l=xe(),f="prototype",d="script",p=l("IE_PROTO"),h=function(){},v=function(t){return"<"+d+">"+t+"</"+d+">"},y=function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e},g=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;g="undefined"!=typeof document?document.domain&&n?y(n):(e=c("iframe"),r="java"+d+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):y(n);for(var o=i.length;o--;)delete g[f][i[o]];return g()};a[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[f]=r(t),n=new h,h[f]=null,n[p]=t):n=g(),void 0===e?n:o.f(n,e)}}),Gt=n.cw(function(t,e){var n=L(),r=Je(),o=Vt(),i=s(),a=Te(),u=te();e.f=n&&!r?Object.defineProperties:function(t,e){i(t);for(var n,r=a(e),s=u(e),c=s.length,l=0;c>l;)o.f(t,n=s[l++],r[n]);return t}}),Vt=n.cw(function(t,e){var n=L(),r=yt(),o=Je(),i=s(),a=Ke(),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",d="configurable",p="writable";e.f=n?o?function(t,e,n){if(i(t),e=a(e),i(n),"function"==typeof t&&"prototype"===e&&"value"in n&&p in n&&!n[p]){var r=l(t,e);r&&r[p]&&(t[e]=n.value,n={configurable:d in n?n[d]:r[d],enumerable:f in n?n[f]:r[f],writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(i(t),e=a(e),i(n),r)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw new u("Accessors not supported");return"value"in n&&(t[e]=n.value),t}}),zt=n.cw(function(t,e){var n=L(),r=nt(),o=ee(),i=A(),a=Te(),s=Ke(),u=pt(),c=yt(),l=Object.getOwnPropertyDescriptor;e.f=n?l:function(t,e){if(t=a(t),e=s(e),c)try{return l(t,e)}catch(t){}if(u(t,e))return i(!r(o.f,t,e),t[e])}}),Yt=n.cw(function(t,e){var n=O(),r=Te(),o=qt().f,i=y(),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return o(t)}catch(t){return i(a)}}(t):o(r(t))}}),qt=n.cw(function(t,e){var n=Zt(),r=U().concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}}),Wt=function(){return n(717)},Xt=n.cw(function(t,e){var n=pt(),r=Et(),o=Le(),i=xe(),a=P(),s=i("IE_PROTO"),u=Object,c=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=o(t);if(n(e,s))return e[s];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof u?c:null}}),Qt=n.cw(function(t,e){var n=at();t.exports=n({}.isPrototypeOf)}),Zt=n.cw(function(t,e){var n=at(),r=pt(),o=Te(),i=l().q,a=ht(),s=n([].push);t.exports=function(t,e){var n,u=o(t),c=0,l=[];for(n in u)!r(a,n)&&r(u,n)&&s(l,n);for(;e.length>c;)r(u,n=e[c++])&&(~i(l,n)||s(l,n));return l}}),te=n.cw(function(t,e){var n=Zt(),r=U();t.exports=Object.keys||function(t){return n(t,r)}}),ee=n.cw(function(t,e){var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n}),ne=n.cw(function(t,e){var n=Mt(),r=dt(),o=W(),i=z();t.exports=n||!o(function(){if(!(i&&i<535)){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete r[t]}})}),re=n.cw(function(t,e){var n=ot(),r=Ct(),i=me(),a=o();t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,o={};try{(t=n(Object.prototype,"__proto__","set"))(o,[]),e=o instanceof Array}catch(t){}return function(n,o){return i(n),a(o),r(n)?(e?t(n,o):n.__proto__=o,n):n}}():void 0)}),oe=n.cw(function(t,e){var n=Fe(),r=E();t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}}),ie=n.cw(function(t,e){var n=nt(),r=Et(),o=Ct(),i=TypeError;t.exports=function(t,e){var a,s;if("string"===e&&r(a=t.toString)&&!o(s=n(a,t)))return s;if(r(a=t.valueOf)&&!o(s=n(a,t)))return s;if("string"!==e&&r(a=t.toString)&&!o(s=n(a,t)))return s;throw new i("Can't convert object to primitive value")}}),ae=n.cw(function(t,e){var n=st(),r=at(),o=qt(),i=Wt(),a=s(),u=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?u(e,n(t)):e}}),se=n.cw(function(t,e){var n=at(),r=pt(),o=SyntaxError,i=parseInt,a=String.fromCharCode,s=n("".charAt),u=n("".slice),c=n(/./.exec),l={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,d=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var n=!0,p="";e<t.length;){var h=s(t,e);if("\\"===h){var v=u(t,e,e+2);if(r(l,v))p+=l[v],e+=2;else{if("\\u"!==v)throw new o('Unknown escape sequence: "'+v+'"');var y=u(t,e+=2,e+4);if(!c(f,y))throw new o("Bad Unicode escape at: "+e);p+=a(i(y,16)),e+=4}}else{if('"'===h){n=!1,e++;break}if(c(d,h))throw new o("Bad control character in string literal at: "+e);p+=h,e++}}if(n)throw new o("Unterminated string at: "+e);return{value:p,end:e}}}),ue=n.cw(function(t,e){var n=dt();t.exports=n}),ce=n.cw(function(t,e){var n=Vt().f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}}),le=n.cw(function(t,e){var n=nt(),r=s(),o=Et(),i=O(),a=fe(),u=TypeError;t.exports=function(t,e){var s=t.exec;if(o(s)){var c=n(s,t,e);return null!==c&&r(c),c}if("RegExp"===i(t))return n(a,t,e);throw new u("RegExp#exec called on incompatible receiver")}}),fe=n.cw(function(t,e){var n,r,o=nt(),i=at(),a=_e(),s=pe(),u=ve(),c=Ee(),l=Jt(),f=wt().get,d=ye(),p=ge(),h=c("native-string-replace",String.prototype.replace),v=RegExp.prototype.exec,y=v,g=i("".charAt),m=i("".indexOf),b=i("".replace),w=i("".slice),x=(r=/b*/g,o(v,n=/a/,"a"),o(v,r,"a"),0!==n.lastIndex||0!==r.lastIndex),O=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],S=function(t,e){for(var n=t.groups=l(null),r=0;r<e.length;r++){var o=e[r];n[o[0]]=t[o[1]]}};(x||E||O||d||p)&&(y=function(t){var e,n,r,i=this,u=f(i),c=a(t),l=u.raw;if(l)return l.lastIndex=i.lastIndex,e=o(y,l,c),i.lastIndex=l.lastIndex,e&&u.groups&&S(e,u.groups),e;var d=u.groups,p=O&&i.sticky,k=o(s,i),P=i.source,I=0,C=c;if(p){k=b(k,"y",""),-1===m(k,"g")&&(k+="g"),C=w(c,i.lastIndex);var A=i.lastIndex>0&&g(c,i.lastIndex-1);i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==A&&"\r"!==A&&"\u2028"!==A&&"\u2029"!==A)&&(P="(?: (?:"+P+"))",C=" "+C,I++),n=new RegExp("^(?:"+P+")",k)}E&&(n=new RegExp("^"+P+"$(?!\\s)",k)),x&&(r=i.lastIndex);var M=o(v,p?n:i,C);return p?M?(M.input=c,M[0]=w(M[0],I),M.index=i.lastIndex,i.lastIndex+=M[0].length):i.lastIndex=0:x&&M&&(i.lastIndex=i.global?M.index+M[0].length:r),E&&M&&M.length>1&&o(h,M[0],n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(M[t]=void 0)}),M&&d&&S(M,d),M}),t.exports=y}),de=n.cw(function(t,e){var n=dt(),r=W(),o=n.RegExp,i=!r(function(){var t=!0;try{o(".","d")}catch(e){t=!1}var e={},n="",r=t?"dgimsy":"gimsy",i=function(t,r){Object.defineProperty(e,t,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var s in t&&(a.hasIndices="d"),a)i(s,a[s]);return Object.getOwnPropertyDescriptor(o.prototype,"flags").get.call(e)!==r||n!==r});t.exports={correct:i}}),pe=n.cw(function(t,e){var n=s();t.exports=function(){var t=n(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}}),he=n.cw(function(t,e){var n=nt(),r=pt(),o=Qt(),i=de(),a=pe(),s=RegExp.prototype;t.exports=i.correct?function(t){return t.flags}:function(t){return i.correct||!o(s,t)||r(t,"flags")?t.flags:n(a,t)}}),ve=n.cw(function(t,e){var n=W(),r=dt().RegExp,o=n(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),i=o||n(function(){return!r("a","y").sticky}),a=o||n(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});t.exports={BROKEN_CARET:a,MISSED_STICKY:i,UNSUPPORTED_Y:o}}),ye=n.cw(function(t,e){var n=W(),r=dt().RegExp;t.exports=n(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}),ge=n.cw(function(t,e){var n=W(),r=dt().RegExp;t.exports=n(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}),me=n.cw(function(t,e){var n=It(),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}}),be=n.cw(function(t,e){var n=st(),r=N(),o=Ye(),i=L(),a=o("species");t.exports=function(t){var e=n(t);i&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}}),we=n.cw(function(t,e){var n=Vt().f,r=pt(),o=Ye()("toStringTag");t.exports=function(t,e,i){t&&!i&&(t=t.prototype),t&&!r(t,o)&&n(t,o,{configurable:!0,value:e})}}),xe=n.cw(function(t,e){var n=Ee(),r=He(),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}}),Oe=n.cw(function(t,e){var n=Mt(),r=dt(),o=j(),i="__core-js_shared__",a=t.exports=r[i]||o(i,{});(a.versions||(a.versions=[])).push({version:"3.50.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})}),Ee=n.cw(function(t,e){var n=Oe(),r=Object.create||Object;t.exports=function(t,e){return n[t]||(n[t]=e||r(null))}}),Se=n.cw(function(t,n){var r=s(),o=e(),i=It(),a=Ye()("species");t.exports=function(t,e){var n,s=r(t).constructor;return void 0===s||i(n=r(s)[a])?e:o(n)}}),ke=n.cw(function(t,e){var n=at(),r=je(),o=_e(),i=me(),a=n("".charAt),s=n("".charCodeAt),u=n("".slice),c=function(t){return function(e,n){var c,l,f=o(i(e)),d=r(n),p=f.length;return d<0||d>=p?t?"":void 0:(c=s(f,d))<55296||c>56319||d+1===p||(l=s(f,d+1))<56320||l>57343?t?a(f,d):c:t?u(f,d,d+2):l-56320+(c-55296<<10)+65536}};t.exports={codeAt:c(!1),o:c(!0)}}),Pe=n.cw(function(t,e){var n=rt().PROPER,r=W(),o=qe();t.exports=function(t){return r(function(){return!!o[t]()||"​…᠎"!=="​…᠎"[t]()||n&&o[t].name!==t})}}),Ie=n.cw(function(t,e){var n=at(),r=me(),o=_e(),i=qe(),a=n("".replace),s=RegExp("^["+i+"]+"),u=RegExp("(^|[^"+i+"])["+i+"]+$"),c=function(t){return function(e){var n=o(r(e));return 1&t&&(n=a(n,s,"")),2&t&&(n=a(n,u,"$1")),n}};t.exports={start:c(1),end:c(2),Bq:c(3)}}),Ce=n.cw(function(t,e){var n=V(),r=W(),o=dt().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})}),Ae=n.cw(function(t,e){var n=nt(),r=st(),o=Ye(),i=T();t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,a=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&i(e,s,function(t){return n(a,this)},{arity:1})}}),Me=n.cw(function(t,e){var n=Ce();t.exports=n&&!!Symbol.for&&!!Symbol.keyFor}),De=n.cw(function(t,e){var n=at();t.exports=n(1.1.valueOf)}),Ne=n.cw(function(t,e){var n=je(),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}}),Te=n.cw(function(t,e){var n=gt(),r=me();t.exports=function(t){return n(r(t))}}),je=n.cw(function(t,e){var r=n(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}}),Re=n.cw(function(t,e){var n=je(),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}}),Le=n.cw(function(t,e){var n=me(),r=Object;t.exports=function(t){return r(n(t))}}),Be=n.cw(function(t,e){var n=nt(),r=Ct(),o=Tt(),i=lt(),a=ie(),s=Ye(),u=TypeError,c=s("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var s,l=i(t,c);if(l){if(void 0===e&&(e="default"),s=n(l,t,e),!r(s)||o(s))return s;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}}),Ke=n.cw(function(t,e){var n=Be(),r=Tt();t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}}),Fe=n.cw(function(t,e){var n={};n[Ye()("toStringTag")]="z",t.exports="[object z]"===String(n)}),_e=n.cw(function(t,e){var n=E(),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}}),Ue=function(){return n(823)},He=n.cw(function(t,e){var n=at(),r=0,o=Math.random(),i=n(1.1.toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+i(++r+o,36)}}),$e=n.cw(function(t,e){var n=Ce();t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}),Je=n.cw(function(t,e){var n=L(),r=W();t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}),Ge=n.cw(function(t,e){var n=dt(),r=Et(),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))}),Ve=n.cw(function(t,e){var n=ue(),r=pt(),o=ze(),i=Vt().f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||i(e,t,{value:o.f(t)})}}),ze=n.cw(function(t,e){var n=Ye();e.f=n}),Ye=n.cw(function(t,e){var n=dt(),r=Ee(),o=pt(),i=He(),a=Ce(),s=$e(),u=n.Symbol,c=r("wks"),l=s?u.for||u:u&&u.withoutSetter||i;t.exports=function(t){return o(c,t)||(c[t]=a&&o(u,t)?u[t]:l("Symbol."+t)),c[t]}}),qe=n.cw(function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"}),We=n.cw(function(t,e){var n=q(),r=W(),o=Ot(),i=Ct(),a=Le(),s=Ft(),u=K(),c=M(),l=v(),f=b(),p=d(),h=Ye(),y=V(),g=h("isConcatSpreadable"),m=y>=51||!r(function(){var t=[];return t[g]=!1,t.concat()[0]!==t}),w=function(t){if(!i(t))return!1;var e=t[g];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!m||!p("concat")},{concat:function(t){var e,n,r,o,i,d=a(this),p=f(d,0),h=0;for(e=-1,r=arguments.length;e<r;e++)if(w(i=-1===e?d:arguments[e]))for(o=s(i),u(h+o),n=0;n<o;n++,h++)n in i&&c(p,h,i[n]);else u(h+1),c(p,h++,i);return l(p,h),p}})}),Xe=n.cw(function(t,e){var n=q(),r=f().pb;n({target:"Array",proto:!0,forced:!d()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}),Qe=n.cw(function(t,e){var n=q(),r=c();n({target:"Array",stat:!0,forced:!x()(function(t){Array.from(t)})},{from:r})}),Ze=n.cw(function(t,e){var n=q(),r=l().m,o=W(),a=i(),s=o(function(){return!Array(1).includes()}),u=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:s||u},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),a("includes")}),tn=n.cw(function(t,e){var n=q(),r=it(),o=l().q,i=p(),a=r([].indexOf),s=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:s||!i("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return s?a(this,t,e)||0:o(this,t,e)}})}),en=n.cw(function(t,e){var n=Te(),r=i(),o=Kt(),a=wt(),s=Vt().f,u=Lt(),c=I(),l=Mt(),f=L(),d="Array Iterator",p=a.set,h=a.getterFor(d);t.exports=u(Array,"Array",function(t,e){p(this,{type:d,target:n(t),index:0,kind:e})},function(){var t=h(this),e=t.target,n=t.index++;if(!e||n>=e.length)return t.target=null,c(void 0,!0);switch(t.kind){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)},"values");var v=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!l&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(t){}}),nn=n.cw(function(t,e){var n=q(),r=at(),o=gt(),i=Te(),a=p(),s=r([].join);n({target:"Array",proto:!0,forced:o!==Object||!a("join",",")},{join:function(t){return s(i(this),void 0===t?",":t)}})}),rn=n.cw(function(t,e){var n=q(),r=f().Tj;n({target:"Array",proto:!0,forced:!d()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}),on=n.cw(function(t,e){var n=q(),r=h().k,o=p(),i=V();n({target:"Array",proto:!0,forced:!J()&&i>79&&i<83||!o("reduce")},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})}),an=n.cw(function(t,e){var n=q(),r=Ot(),o=St(),i=Ct(),a=Ne(),s=Ft(),u=Te(),c=M(),l=v(),f=Ye(),p=d(),h=y(),g=p("slice"),m=f("species"),b=Array,w=Math.max;n({target:"Array",proto:!0,forced:!g},{slice:function(t,e){var n,f,d,p=u(this),v=s(p),y=a(t,v),g=a(void 0===e?v:e,v);if(r(p)&&(n=p.constructor,(o(n)&&(n===b||r(n.prototype))||i(n)&&null===(n=n[m]))&&(n=void 0),n===b||void 0===n))return h(p,y,g);for(f=new(void 0===n?b:n)(w(g-y,0)),d=0;y<g;y++,d++)y in p&&c(f,d,p[y]);return l(f,d),f}})}),sn=n.cw(function(e,n){var r=q(),o=at(),i=t(),a=Le(),s=Ft(),u=R(),c=_e(),l=W(),f=g(),d=p(),h=H(),v=$(),y=V(),m=z(),b=[],w=o(b.sort),x=o(b.push),O=l(function(){b.sort(void 0)}),E=l(function(){b.sort(null)}),S=d("sort"),k=!l(function(){if(y)return y<70;if(!(h&&h>3)){if(v)return!0;if(m)return m<603;var t,e,n,r,o="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)b.push({k:e+r,v:n})}for(b.sort(function(t,e){return e.v-t.v}),r=0;r<b.length;r++)e=b[r].k.charAt(0),o.charAt(o.length-1)!==e&&(o+=e);return"DGBEFHACIJK"!==o}});r({target:"Array",proto:!0,forced:O||!E||!S||!k},{sort:function(t){void 0!==t&&i(t);var e=a(this);if(k)return void 0===t?w(e):w(e,t);var n,r,o=[],l=s(e);for(r=0;r<l;r++)r in e&&x(o,e[r]);for(f(o,function(t){return function(e,n){if(void 0===n)return-1;if(void 0===e)return 1;if(void 0!==t)return+t(e,n)||0;var r=c(e),o=c(n);return r===o?0:r>o?1:-1}}(t)),n=s(o),r=0;r<n;)e[r]=o[r++];for(;r<l;)u(e,r++);return e}})}),un=n.cw(function(t,e){var n=q(),r=Le(),o=Ne(),i=je(),a=Ft(),s=v(),u=K(),c=b(),l=M(),f=R(),p=d()("splice"),h=Math.max,y=Math.min;n({target:"Array",proto:!0,forced:!p},{splice:function(t,e){var n,d,p,v,g,m,b=r(this),w=a(b),x=o(t,w),O=arguments.length;for(0===O?n=d=0:1===O?(n=0,d=w-x):(n=O-2,d=y(h(i(e),0),w-x)),u(w+n-d),p=c(b,d),v=0;v<d;v++)(g=x+v)in b&&l(p,v,b[g]);if(s(p,d),n<d){for(v=x;v<w-d;v++)m=v+n,(g=v+d)in b?b[m]=b[g]:f(b,m);for(v=w;v>w-d+n;v--)f(b,v-1)}else if(n>d)for(v=w-d;v>x;v--)m=v+n-1,(g=v+d-1)in b?b[m]=b[g]:f(b,m);for(v=0;v<n;v++)b[v+x]=arguments[v+2];return s(b,w-d+n),p}})}),cn=n.cw(function(t,e){var n=q(),r=W(),o=Le(),i=Be();n({target:"Date",proto:!0,forced:r(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})},{toJSON:function(t){var e=o(this),n=i(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})}),ln=n.cw(function(t,e){var n=pt(),r=T(),o=D(),i=Ye()("toPrimitive"),a=Date.prototype;n(a,i)||r(a,i,o)}),fn=n.cw(function(t,e){var n=L(),r=rt().EXISTS,o=at(),i=N(),a=Function.prototype,s=o(a.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,c=o(u.exec);n&&!r&&i(a,"name",{configurable:!0,get:function(){try{return c(u,s(this))[1]}catch(t){return""}}})}),dn=n.cw(function(t,e){var n=q(),r=st(),o=nt(),i=at(),a=W(),s=Ot(),u=Et(),c=Ct(),f=Jt(),d=Dt(),p=Tt(),h=O(),v=De(),y=l().m,g=pt(),m=_e(),b=se(),w=He(),x=Ce(),E=Ut(),S=String,k=TypeError,P=r("JSON","stringify"),I=r("BigInt"),C=i("".valueOf),A=i((!0).valueOf),M=I&&i(I.prototype.valueOf),D=i(/./.exec),N=i("".charAt),T=i("".charCodeAt),j=i("".replace),R=i("".slice),L=i([].push),B=i([].pop),K=i(1.1.toString),F=/[\uD800-\uDFFF]/g,_=/^[\uD800-\uDBFF]$/,U=/^[\uDC00-\uDFFF]$/,H=/^\d+$/,$=w(),J=w(),G=w(),V=$.length,z=J.length,Y=!x||a(function(){var t=r("Symbol")("stringify detection");return"[null]"!==P([t])||"{}"!==P({a:t})||"{}"!==P(Object(t))}),X=a(function(){return'"\\udf06\\ud834"'!==P("\udf06\ud834")||'"\\udead"'!==P("\udead")}),Q=E?r("JSON","isRawJSON"):d,Z=Y?function(t,e,n){return P(t,function(t,n){var r=o(e,this,t,n);if(!p(r))return r},n)}:P,tt=function(t,e,n){var r=N(n,e-1),o=N(n,e+1);return D(_,t)&&!D(U,o)||D(U,t)&&!D(_,r)?"\\u"+K(T(t,0),16):t},et=function(t,e){try{return t(e),!0}catch(t){return!1}},rt=function(t){if(!c(t)||u(t)||s(t))return!1;try{return!function(t){var e=h(t);return"Number"===e&&et(v,t)||"String"===e&&et(C,t)||"Boolean"===e&&et(A,t)||!!M&&"BigInt"===e&&et(M,t)}(t)}catch(t){return!0}},ot=function(t,e){return{toJSON:function(){var n=t[e];if(c(n)||"bigint"==typeof n){var r=n.toJSON;u(r)&&(n=o(r,n,e))}return n}}};P&&n({target:"JSON",stat:!0,arity:3,forced:Y||X||!E},{stringify:function(t,e,n){var r,i=u(e)?e:void 0,a=i?void 0:function(t){if(s(t)){for(var e=t.length,n=[],r=f(null),o=0;o<e;o++){var i,a=t[o];if("string"==typeof a)i=a;else{if("number"!=typeof a&&"Number"!==h(a)&&"String"!==h(a))continue;i=m(a)}g(r,i)||(r[i]=!0,L(n,i))}return n}}(e),c=a&&function(t){for(var e=0,n=t.length;e<n;e++)if(D(H,t[e]))return J;return""}(a),l=[],d=[],p=[],v=!1,w=!0,x=Z(t,function(t,e){if(t=S(t),a){if(t===G)return B(d),void(r=B(p));if(w)w=!1;else if(this!==r&&!s(this)&&!y(a,t))return}else i&&(e=o(i,this,t,e));if(Q(e))return E?e:(v=!0,$+(L(l,e.rawJSON)-1));if(a&&rt(e)){if(y(d,e))throw new k("Converting circular structure to JSON");var n=function(t,e,n){for(var r=f(null),o=0,i=e.length;o<i;o++){var a=e[o];r[n+a]=ot(t,a)}return r[G]=null,r}(e,a,c);return L(d,e),L(p,r),r=n,c&&(v=!0),n}return e},n);if("string"!=typeof x)return x;if(X&&(x=j(x,F,tt)),!v)return x;for(var O="",P=x.length,I=0;I<P;I++){var C=N(x,I);if('"'===C){var A=b(x,++I).end-1,M=R(x,I,A);R(M,0,V)===$?O+=l[R(M,V)]:R(M,0,z)===J?O+='"'+R(M,z)+'"':O+='"'+M+'"',I=A}else O+=C}return O}})}),pn=n.cw(function(t,e){var n=q(),r=Mt(),o=L(),i=dt(),a=ue(),s=at(),u=kt(),c=pt(),l=mt(),f=Qt(),d=Tt(),p=Be(),h=W(),v=qt().f,y=zt().f,g=Vt().f,m=De(),b=Ie().Bq,w="Number",x=i[w],O=a[w],E=x.prototype,S=i.TypeError,k=s("".slice),P=s("".charCodeAt),I=function(t){var e,n,r,o,i,a,s,u,c=p(t,"number");if(d(c))throw new S("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=b(c),43===(e=P(c,0))||45===e){if(88===(n=P(c,2))||120===n)return NaN}else if(48===e){switch(P(c,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+c}for(a=(i=k(c,2)).length,s=0;s<a;s++)if((u=P(i,s))<48||u>o)return NaN;return parseInt(i,r)}return+c},C=u(w,!x(" 0o1")||!x("0b1")||x("+0x1")),A=function(t){var e,n=arguments.length<1?0:x(function(t){var e=p(t,"number");return"bigint"==typeof e?e:I(e)}(t));return f(E,e=this)&&h(function(){m(e)})?l(Object(n),this,A):n};A.prototype=E,C&&!r&&(E.constructor=A),n({global:!0,constructor:!0,wrap:!0,forced:C},{Number:A});var M=function(t,e){for(var n,r=o?v(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)c(e,n=r[i])&&!c(t,n)&&g(t,n,y(e,n))};r&&O&&M(a[w],O),(C||r)&&M(a[w],x)}),hn=n.cw(function(t,e){q()({target:"Number",stat:!0},{isInteger:Pt()})}),vn=n.cw(function(t,e){var n=q(),r=$t();n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}),yn=n.cw(function(e,n){var r=q(),o=L(),i=ne(),a=t(),s=Le(),u=Vt();o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,e){u.f(s(this),t,{get:a(e),enumerable:!0,configurable:!0})}})}),gn=n.cw(function(t,e){var n=q(),r=W(),o=Te(),i=zt().f,a=L();n({target:"Object",stat:!0,forced:!a||r(function(){i(1)}),sham:!a},{getOwnPropertyDescriptor:function(t,e){return i(o(t),e)}})}),mn=n.cw(function(t,e){var n=q(),r=L(),o=ae(),i=Te(),a=zt(),s=M();n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,n,r=i(t),u=a.f,c=o(r),l={},f=0;c.length>f;)void 0!==(n=u(r,e=c[f++]))&&s(l,e,n);return l}})}),bn=n.cw(function(t,e){var n=q(),r=W(),o=Yt().f;n({target:"Object",stat:!0,forced:r(function(){return!Object.getOwnPropertyNames(1)})},{getOwnPropertyNames:o})}),wn=n.cw(function(t,e){var n=q(),r=Ce(),o=W(),i=Wt(),a=Le();n({target:"Object",stat:!0,forced:!r||o(function(){i.f(1)})},{getOwnPropertySymbols:function(t){var e=i.f;return e?e(a(t)):[]}})}),xn=n.cw(function(t,e){var n=q(),r=Le(),o=te();n({target:"Object",stat:!0,forced:W()(function(){o(1)})},{keys:function(t){return o(r(t))}})}),On=n.cw(function(t,e){var n=Fe(),r=T(),o=oe();n||r(Object.prototype,"toString",o,{unsafe:!0})}),En=n.cw(function(t,n){var r=q(),o=st(),i=Q(),a=et(),u=e(),c=s(),l=Ct(),f=Jt(),d=W(),p=o("Reflect","construct"),h=Object.prototype,v=[].push,y=d(function(){function t(){}return!(p(function(){},[],t)instanceof t)}),g=!d(function(){p(function(){})}),m=y||g;r({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){u(t);var n=arguments.length<3?t:u(arguments[2]);if(c(e),g&&!y)return p(t,e,n);if(t===n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var r=[null];return i(v,r,e),new(i(a,t,r))}var o=n.prototype,s=f(l(o)?o:h),d=i(t,s,e);return l(d)?d:s}})}),Sn=n.cw(function(t,e){var n=L(),r=dt(),o=at(),i=kt(),a=mt(),s=C(),u=Jt(),c=qt().f,l=Qt(),f=Nt(),d=_e(),p=he(),h=ve(),v=ce(),y=T(),g=W(),m=pt(),b=wt().enforce,w=be(),x=Ye(),O=ye(),E=ge(),S=x("match"),k=r.RegExp,P=k.prototype,I=r.SyntaxError,A=o(P.exec),M=o("".charAt),D=o("".replace),N=o("".indexOf),j=o("".slice),R=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,B=/a/g,K=/a/g,F=new k(B)!==B,_=h.MISSED_STICKY,U=h.UNSUPPORTED_Y,H=n&&(!F||_||O||E||g(function(){return K[S]=!1,k(B)!==B||k(K)===K||"/a/i"!==String(k(B,"i"))}));if(i("RegExp",H)){for(var $=function(t,e){var n,r,o,i,c,h,v=l(P,this),y=f(t),g=void 0===e,w=[],x=t;if(!v&&y&&g&&t.constructor===$)return t;if((y||l(P,t))&&(t=t.source,g&&(e=p(x))),t=void 0===t?"":d(t),e=void 0===e?"":d(e),x=t,O&&"dotAll"in B&&(r=!!e&&N(e,"s")>-1)&&(e=D(e,/s/g,"")),n=e,_&&"sticky"in B&&(o=!!e&&N(e,"y")>-1)&&U&&(e=D(e,/y/g,"")),E&&(i=function(t){for(var e,n=t.length,r=0,o="",i=[],a=u(null),s=!1,c=!1,l=0,f="";r<n;r++){if("\\"===(e=M(t,r))){if(e+=M(t,++r),!c&&"\\"===M(e,1)){o+="\\x5c";continue}}else if("]"===e)s=!1;else if(!s)switch(!0){case"["===e:s=!0;break;case"("===e:o+=e,A(R,j(t,r+1))?(r+=2,c=!0,l++):"?"!==M(t,r+1)&&l++;continue;case">"===e&&c:if(""===f||m(a,f))throw new I("Invalid capture group name");a[f]=!0,i[i.length]=[f,l],c=!1,f="";continue}c?f+=e:o+=e}for(var d=0;d<i.length;d++)for(var p="\\k<"+i[d][0]+">",h="\\"+i[d][1];N(o,p)>-1;)o=D(o,p,h);return[o,i]}(t),t=i[0],w=i[1]),c=a(k(t,e),v?this:P,$),(r||o||w.length)&&(h=b(c),r&&(h.dotAll=!0,h.raw=$(function(t){for(var e,n=t.length,r=0,o="",i=!1;r<n;r++)"\\"!==(e=M(t,r))?i||"."!==e?("["===e?i=!0:"]"===e&&(i=!1),o+=e):o+="[\\s\\S]":o+=e+M(t,++r);return o}(t),n)),o&&(h.sticky=!0),w.length&&(h.groups=w)),t!==x)try{s(c,"source",""===x?"(?:)":x)}catch(t){}return c},J=c(k),G=0;J.length>G;)v($,k,J[G++]);P.constructor=$,$.prototype=P,y(r,"RegExp",$,{constructor:!0})}w("RegExp")}),kn=n.cw(function(t,e){var n=q(),r=fe();n({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r})}),Pn=n.cw(function(t,e){var n=rt().PROPER,r=T(),o=s(),i=_e(),a=W(),u=he(),c="toString",l=RegExp.prototype,f=l[c],d=a(function(){return"/a/b"!==f.call({source:"a",flags:"b"})}),p=n&&f.name!==c;(d||p)&&r(l,c,function(){var t=o(this);return"/"+i(t.source)+"/"+i(u(t))},{unsafe:!0})}),In=n.cw(function(t,e){var n=q(),r=at(),o=Ht(),i=me(),a=_e(),s=k(),u=r("".indexOf);n({target:"String",proto:!0,forced:!s("includes")},{includes:function(t){return!!~u(a(i(this)),a(o(t)),arguments.length>1?arguments[1]:void 0)}})}),Cn=n.cw(function(t,e){var n=ke().o,r=_e(),o=wt(),i=Lt(),a=I(),s="String Iterator",u=o.set,c=o.getterFor(s);i(String,"String",function(t){u(this,{type:s,string:r(t),index:0})},function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?a(void 0,!0):(t=n(r,o),e.index+=t.length,a(t,!1))})}),An=n.cw(function(t,e){var n=q(),r=nt(),o=it(),i=Rt(),u=I(),c=me(),l=Re(),f=_e(),d=s(),p=Ct(),h=O(),v=Nt(),y=he(),g=lt(),m=T(),b=W(),w=Ye(),x=Se(),E=a(),S=le(),k=wt(),P=Mt(),C=w("matchAll"),A="RegExp String",M=A+" Iterator",D=k.set,N=k.getterFor(M),j=RegExp.prototype,R=TypeError,L=o("".indexOf),B=o("".matchAll),K=!!B&&!b(function(){B("a",/./)}),F=i(function(t,e,n,r){D(this,{type:M,regexp:t,string:e,global:n,unicode:r,done:!1})},A,function(){var t=N(this);if(t.done)return u(void 0,!0);var e=t.regexp,n=t.string,r=S(e,n);return null===r?(t.done=!0,u(void 0,!0)):t.global?(""===f(r[0])&&(e.lastIndex=E(n,l(e.lastIndex),t.unicode)),u(r,!1)):(t.done=!0,u(r,!1))}),_=function(t){var e,n,r,o=d(this),i=f(t),a=x(o,RegExp),s=f(y(o));return e=new a(a===RegExp?o.source:o,s),n=!!~L(s,"g"),r=!!~L(s,"u")||!!~L(s,"v"),e.lastIndex=l(o.lastIndex),new F(e,i,n,r)};n({target:"String",proto:!0,forced:K},{matchAll:function(t){var e,n,o,i,a=c(this);if(p(t)){if(v(t)&&(e=f(c(y(t))),!~L(e,"g")))throw new R("`.matchAll` does not allow non-global regexes");if(K)return B(a,t);if(void 0===(o=g(t,C))&&P&&"RegExp"===h(t)&&(o=_),o)return r(o,t,a)}else if(K)return B(a,t);return n=f(a),i=new RegExp(t,"g"),P?r(_,i,n):i[C](n)}}),P||C in j||m(j,C,_)}),Mn=n.cw(function(t,e){var n=nt(),r=at(),o=X(),i=s(),u=Ct(),c=Re(),l=_e(),f=me(),d=lt(),p=a(),h=he(),v=le(),y=r("".indexOf);o("match",function(t,e,r){return[function(e){var r=f(this),o=u(e)?d(e,t):void 0;if(o)return n(o,e,r);var i=l(r);return new RegExp(e)[t](i)},function(t){var n=i(this),o=l(t),a=r(e,n,o);if(a.done)return a.value;var s=l(h(n));if(!~y(s,"g"))return v(n,o);var u=!!~y(s,"u")||!!~y(s,"v");n.lastIndex=0;for(var f,d=[],g=0;null!==(f=v(n,o));){var m=l(f[0]);d[g]=m,""===m&&(n.lastIndex=p(o,c(n.lastIndex),u)),g++}return 0===g?null:d}]})}),Dn=n.cw(function(t,e){var n=Q(),r=nt(),o=at(),i=X(),u=W(),c=s(),l=Et(),f=Ct(),d=je(),p=Re(),h=_e(),v=me(),y=a(),g=lt(),m=ft(),b=he(),w=le(),x=Ye()("replace"),O=Math.max,E=Math.min,S=o([].concat),k=o([].push),P=o("".indexOf),I=o("".slice),C=function(t){return void 0===t?t:String(t)},A="$0"==="a".replace(/./,"$0"),M=!!/./[x]&&""===/./[x]("a","$0");i("replace",function(t,e,o){var i=M?"$":"$0";return[function(t,n){var o=v(this),i=f(t)?g(t,x):void 0;return i?r(i,t,o,n):r(e,h(o),t,n)},function(t,r){var a=c(this),s=h(t),u=l(r);u||(r=h(r));var f=h(b(a));if("string"==typeof r&&!~P(r,i)&&!~P(r,"$<")&&!~P(f,"y")){var v=o(e,a,s,r);if(v.done)return v.value}var g,x=!!~P(f,"g");x&&(g=!!~P(f,"u")||!!~P(f,"v"),a.lastIndex=0);for(var A,M=[];null!==(A=w(a,s))&&(k(M,A),x);){""===h(A[0])&&(a.lastIndex=y(s,p(a.lastIndex),g))}for(var D="",N=0,T=0;T<M.length;T++){for(var j,R=h((A=M[T])[0]),L=O(E(d(A.index),s.length),0),B=[],K=1;K<A.length;K++)k(B,C(A[K]));var F=A.groups;if(u){var _=S([R],B,L,s);void 0!==F&&k(_,F),j=h(n(r,void 0,_))}else j=m(R,s,L,B,F,r);L>=N&&(D+=I(s,N,L)+j,N=L+R.length)}return D+I(s,N)}]},!!u(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})||!A||M)}),Nn=n.cw(function(t,e){var n=nt(),r=at(),o=X(),i=s(),u=Ct(),c=me(),l=Se(),f=a(),d=Re(),p=_e(),h=lt(),v=he(),y=le(),g=ve(),m=W(),b=g.UNSUPPORTED_Y,w=Math.min,x=r([].push),O=r("".slice),E=r("".indexOf),S=!m(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]}),k="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;o("split",function(t,e,r){var o="0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:n(e,this,t,r)}:e;return[function(e,r){var i=c(this),a=u(e)?h(e,t):void 0;return a?n(a,e,i,r):n(o,p(i),e,r)},function(t,n){var a=i(this),s=p(t);if(!k){var u=r(o,a,s,n,o!==e);if(u.done)return u.value}var c=l(a,RegExp),h=p(v(a)),g=!!~E(h,"u")||!!~E(h,"v");b?~E(h,"g")||(h+="g"):~E(h,"y")||(h+="y");var m=new c(b?"^(?:"+a.source+")":a,h),S=void 0===n?4294967295:n>>>0;if(0===S)return[];if(0===s.length)return null===y(m,s)?[s]:[];for(var P=0,I=0,C=[];I<s.length;){m.lastIndex=b?0:I;var A,M=y(m,b?O(s,I):s);if(null===M||(A=w(d(m.lastIndex+(b?I:0)),s.length))===P)I=f(s,I,g);else{if(x(C,O(s,P,I)),C.length===S)return C;for(var D=1;D<=M.length-1;D++)if(x(C,M[D]),C.length===S)return C;I=P=A}}return x(C,O(s,P)),C}]},k||!S,b)}),Tn=n.cw(function(t,e){var n=q(),r=Ie().Bq;n({target:"String",proto:!0,forced:Pe()("trim")},{trim:function(){return r(this)}})}),jn=n.cw(function(t,e){var n=q(),r=dt(),o=nt(),i=at(),a=Mt(),u=L(),c=Ce(),l=W(),d=pt(),p=Qt(),h=s(),v=Te(),y=Ke(),g=_e(),m=A(),b=Jt(),w=te(),x=qt(),O=Yt(),E=Wt(),S=zt(),k=Vt(),P=Gt(),I=ee(),C=T(),M=N(),D=Ee(),j=xe(),R=ht(),B=He(),K=Ye(),F=ze(),_=Ve(),U=Ae(),H=we(),$=wt(),J=f().jJ,G=j("hidden"),V="Symbol",z="prototype",Y=$.set,X=$.getterFor(V),Q=Object[z],Z=r.Symbol,tt=Z&&Z[z],et=r.RangeError,rt=r.TypeError,ot=r.QObject,it=S.f,st=k.f,ut=O.f,ct=I.f,lt=i([].push),ft=D("symbols"),vt=D("op-symbols"),yt=D("wks"),gt=!ot||!ot[z]||!ot[z].findChild,mt=function(t,e,n){var r=it(Q,e);return r&&delete Q[e],st(t,e,n),r&&t!==Q&&st(Q,e,r),t},bt=u&&l(function(){return 7!==b(st({},"a",{get:function(){return st(this,"a",{value:7}).a}})).a})?mt:st,xt=function(t,e){var n=ft[t]=b(tt);return Y(n,{type:V,tag:t,description:e}),u||(n.description=e),n},Ot=function(t,e,n){t===Q&&Ot(vt,e,n),h(t);var r=y(e);return h(n),d(ft,r)?(("enumerable"in n?!n.enumerable:!d(t,r)||d(t,G)&&t[G][r])?(d(t,G)||st(t,G,m(1,b(null))),t[G][r]=!0):(d(t,G)&&t[G][r]&&(t[G][r]=!1),n=b(n,{enumerable:m(0,!1)})),bt(t,r,n)):st(t,r,n)},Et=function(t,e){h(t);var n=v(e),r=w(n).concat(It(n));return J(r,function(e){u&&!o(St,n,e)||Ot(t,e,n[e])}),t},St=function(t){var e=y(t),n=o(ct,this,e);return!(this===Q&&d(ft,e)&&!d(vt,e))&&(!(n||!d(this,e)||!d(ft,e)||d(this,G)&&this[G][e])||n)},kt=function(t,e){var n=v(t),r=y(e);if(n!==Q||!d(ft,r)||d(vt,r)){var o=it(n,r);return!o||!d(ft,r)||d(n,G)&&n[G][r]||(o.enumerable=!0),o}},Pt=function(t){var e=ut(v(t)),n=[];return J(e,function(t){d(ft,t)||d(R,t)||lt(n,t)}),n},It=function(t){var e=t===Q,n=ut(e?vt:v(t)),r=[];return J(n,function(t){!d(ft,t)||e&&!d(Q,t)||lt(r,ft[t])}),r};c||(Z=function(){if(p(tt,this))throw new rt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=B(t),n=function(t){var i=void 0===this?r:this;i===Q&&o(n,vt,t),d(i,G)&&d(i[G],e)&&(i[G][e]=!1);var a=m(1,t);try{bt(i,e,a)}catch(t){if(!(t instanceof et))throw t;mt(i,e,a)}};return u&&gt&&bt(Q,e,{configurable:!0,set:n}),xt(e,t)},C(tt=Z[z],"toString",function(){return X(this).tag}),C(Z,"withoutSetter",function(t){return xt(B(t),t)}),I.f=St,k.f=Ot,P.f=Et,S.f=kt,x.f=O.f=Pt,E.f=It,F.f=function(t){return xt(K(t),t)},u&&(M(tt,"description",{configurable:!0,get:function(){return X(this).description}}),a||C(Q,"propertyIsEnumerable",St,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!c,sham:!c},{Symbol:Z}),J(w(yt),function(t){_(t)}),n({target:V,stat:!0,forced:!c},{useSetter:function(){gt=!0},useSimple:function(){gt=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:function(t,e){return void 0===e?b(t):Et(b(t),e)},defineProperty:Ot,defineProperties:Et,getOwnPropertyDescriptor:kt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:Pt}),U(),H(Z,V),R[G]=!0}),Rn=n.cw(function(t,e){var n=q(),r=L(),o=dt(),i=nt(),a=at(),s=pt(),u=Et(),c=Qt(),l=_e(),f=N(),d=S(),p=o.Symbol,h=p&&p.prototype;if(r&&u(p)&&(!("description"in h)||void 0!==p().description)){var v={},y=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),e=c(h,this)?new p(t):void 0===t?p():p(t);return""===t&&(v[e]=!0),e};d(y,p);var g=y.for;y.for={for:function(t){var e=l(t),n=i(g,this,e);return""===e&&(v[n]=!0),n}}.for,y.prototype=h,h.constructor=y;var m="Symbol(description detection)"===String(p("description detection")),b=a(h.valueOf),w=a(h.toString),x=/^Symbol\((.*)\)[^)]+$/,O=a("".replace),E=a("".slice);f(h,"description",{configurable:!0,get:function(){var t=b(this);if(s(v,t))return"";var e=w(t),n=m?E(e,7,-1):O(e,x,"$1");return""===n?void 0:n}}),n({global:!0,constructor:!0,forced:!0},{Symbol:y})}}),Ln=n.cw(function(t,e){var n=q(),r=st(),o=pt(),i=_e(),a=Ee(),s=Me(),u=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{for:function(t){var e=i(t);if(o(u,e))return u[e];var n=r("Symbol")(e);return u[e]=n,c[n]=e,n}})}),Bn=n.cw(function(t,e){Ve()("iterator")}),Kn=n.cw(function(t,e){jn(),Ln(),Fn(),dn(),wn()}),Fn=n.cw(function(t,e){var n=q(),r=pt(),o=Tt(),i=Ue(),a=Ee(),s=Me(),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!s},{keyFor:function(t){if(!o(t))throw new TypeError(i(t)+" is not a symbol");if(r(u,t))return u[t]}})}),_n=n.cw(function(t,e){var n=Ve(),r=Ae();n("toPrimitive"),r()}),Un=n.cw(function(t,e){An()}),Hn=n.cw(function(t,e){var n=dt(),r=F(),o=_(),i=u(),a=C(),s=function(t){if(t&&t.forEach!==i)try{a(t,"forEach",i)}catch(e){t.forEach=i}};for(var c in r)r[c]&&s(n[c]&&n[c].prototype);s(o)}),$n=n.cw(function(t,e){var n=dt(),r=F(),o=_(),i=en(),a=C(),s=we(),u=Ye()("iterator"),c=i.values,l=function(t,e){if(t){if(t[u]!==c)try{a(t,u,c)}catch(e){t[u]=c}if(s(t,e,!0),r[e])for(var n in i)if(t[n]!==i[n])try{a(t,n,i[n])}catch(e){t[n]=i[n]}}};for(var f in r)l(n[f]&&n[f].prototype,f);l(o,"DOMTokenList")});tn(),nn(),an(),un(),fn(),yn(),On(),kn(),Pn(),Dn(),Nn(),Tn(),"undefined"==typeof Element||"remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"undefined"!=typeof self&&"document"in self&&((!("classList"in document.createElement("_"))||document.createElementNS&&!("classList"in document.createElementNS("http://www.w3.org/2000/svg","g")))&&function(t){if("Element"in t){var e="classList",n="prototype",r=t.Element[n],o=Object,i=String[n].trim||function(){return this.replace(/^\s+|\s+$/g,"")},a=Array[n].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},s=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},u=function(t,e){if(""===e)throw new s("SYNTAX_ERR","The token must not be empty.");if(/\s/.test(e))throw new s("INVALID_CHARACTER_ERR","The token must not contain space characters.");return a.call(t,e)},c=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],r=0,o=n.length;r<o;r++)this.push(n[r]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},l=c[n]=[],f=function(){return new c(this)};if(s[n]=Error[n],l.item=function(t){return this[t]||null},l.contains=function(t){return~u(this,t+"")},l.add=function(){var t,e=arguments,n=0,r=e.length,o=!1;do{~u(this,t=e[n]+"")||(this.push(t),o=!0)}while(++n<r);o&&this._updateClassName()},l.remove=function(){var t,e,n=arguments,r=0,o=n.length,i=!1;do{for(e=u(this,t=n[r]+"");~e;)this.splice(e,1),i=!0,e=u(this,t)}while(++r<o);i&&this._updateClassName()},l.toggle=function(t,e){var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},l.replace=function(t,e){var n=u(t+"");~n&&(this.splice(n,1,e),this._updateClassName())},l.toString=function(){return this.join(" ")},o.defineProperty){var d={get:f,enumerable:!0,configurable:!0};try{o.defineProperty(r,e,d)}catch(t){void 0!==t.number&&-2146823252!==t.number||(d.enumerable=!1,o.defineProperty(r,e,d))}}else o[n].__defineGetter__&&r.__defineGetter__(e,f)}}(self),function(){var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,r=arguments.length;for(n=0;n<r;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}"replace"in document.createElement("_").classList||(DOMTokenList.prototype.replace=function(t,e){var n=this.toString().split(" "),r=n.indexOf(t+"");~r&&(n=n.slice(r),this.remove.apply(this,n),this.add(e),this.add.apply(this,n.slice(1)))}),t=null}()),Kn(),Rn(),Bn(),_n(),We(),Xe(),Qe(),Ze(),en(),rn(),sn(),cn(),ln(),pn(),vn(),gn(),mn(),xn(),Sn(),In(),Cn(),Un(),Hn(),$n();function Jn(t){return function(t){if(Array.isArray(t))return Vn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||Gn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(t,e){if(t){if("string"==typeof t)return Vn(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vn(t,e):void 0}}function Vn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function zn(t){return zn="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},zn(t)}function Yn(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,Wn(r.key),r)}}function qn(t,e,n){return(e=Wn(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wn(t){var e=function(t,e){if("object"!=zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==zn(e)?e:e+""}on(),hn(),bn(),En(),Mn();var Xn=function(){return t=function t(e){var n=e.getOptions,r=e.getCaretPosition,o=e.getCaretPositionEnd,i=e.dispatch;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),qn(this,"getOptions",void 0),qn(this,"getCaretPosition",void 0),qn(this,"getCaretPositionEnd",void 0),qn(this,"dispatch",void 0),qn(this,"maxLengthReached",void 0),qn(this,"isStandardButton",function(t){return t&&!("{"===t[0]&&"}"===t[t.length-1])}),this.getOptions=n,this.getCaretPosition=r,this.getCaretPositionEnd=o,this.dispatch=i,t.bindMethods(t,this)},e=[{key:"getButtonType",value:function(t){return t.includes("{")&&t.includes("}")&&"{//}"!==t?"functionBtn":"standardBtn"}},{key:"getButtonClass",value:function(t){var e=this.getButtonType(t),n=t.replace("{","").replace("}",""),r="";return"standardBtn"!==e&&(r=" hg-button-".concat(n)),"hg-".concat(e).concat(r)}},{key:"getDefaultDiplay",value:function(){return{"{bksp}":"backspace","{backspace}":"backspace","{enter}":"< enter","{shift}":"shift","{shiftleft}":"shift","{shiftright}":"shift","{alt}":"alt","{s}":"shift","{tab}":"tab","{lock}":"caps","{capslock}":"caps","{accept}":"Submit","{space}":" ","{//}":" ","{esc}":"esc","{escape}":"esc","{f1}":"f1","{f2}":"f2","{f3}":"f3","{f4}":"f4","{f5}":"f5","{f6}":"f6","{f7}":"f7","{f8}":"f8","{f9}":"f9","{f10}":"f10","{f11}":"f11","{f12}":"f12","{numpaddivide}":"/","{numlock}":"lock","{arrowup}":"↑","{arrowleft}":"←","{arrowdown}":"↓","{arrowright}":"→","{prtscr}":"print","{scrolllock}":"scroll","{pause}":"pause","{insert}":"ins","{home}":"home","{pageup}":"up","{delete}":"del","{forwarddelete}":"del","{end}":"end","{pagedown}":"down","{numpadmultiply}":"*","{numpadsubtract}":"-","{numpadadd}":"+","{numpadenter}":"enter","{period}":".","{numpaddecimal}":".","{numpad0}":"0","{numpad1}":"1","{numpad2}":"2","{numpad3}":"3","{numpad4}":"4","{numpad5}":"5","{numpad6}":"6","{numpad7}":"7","{numpad8}":"8","{numpad9}":"9"}}},{key:"getButtonDisplayName",value:function(t,e){return(e=arguments.length>2&&void 0!==arguments[2]&&arguments[2]?Object.assign({},this.getDefaultDiplay(),e):e||this.getDefaultDiplay())[t]||t}},{key:"getUpdatedInput",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=this.getOptions(),a=[n,r,o],s=e;return("{bksp}"===t||"{backspace}"===t)&&s.length>0?s=this.removeAt.apply(this,[s].concat(a)):("{delete}"===t||"{forwarddelete}"===t)&&s.length>0?s=this.removeForwardsAt.apply(this,[s].concat(a)):"{space}"===t?s=this.addStringAt.apply(this,[s," "].concat(a)):"{tab}"!==t||"boolean"==typeof i.tabCharOnTab&&!1===i.tabCharOnTab?"{enter}"!==t&&"{numpadenter}"!==t||!i.newLineOnEnter?t.includes("numpad")&&Number.isInteger(Number(t[t.length-2]))?s=this.addStringAt.apply(this,[s,t[t.length-2]].concat(a)):"{numpaddivide}"===t?s=this.addStringAt.apply(this,[s,"/"].concat(a)):"{numpadmultiply}"===t?s=this.addStringAt.apply(this,[s,"*"].concat(a)):"{numpadsubtract}"===t?s=this.addStringAt.apply(this,[s,"-"].concat(a)):"{numpadadd}"===t?s=this.addStringAt.apply(this,[s,"+"].concat(a)):"{numpaddecimal}"===t?s=this.addStringAt.apply(this,[s,"."].concat(a)):"{"===t||"}"===t?s=this.addStringAt.apply(this,[s,t].concat(a)):t.includes("{")||t.includes("}")||(s=this.addStringAt.apply(this,[s,t].concat(a))):s=this.addStringAt.apply(this,[s,"\n"].concat(a)):s=this.addStringAt.apply(this,[s,"\t"].concat(a)),i.debug&&console.log("Input will be: "+s),s}},{key:"updateCaretPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.updateCaretPosAction(t,e);this.dispatch(function(t){t.setCaretPosition(n)})}},{key:"updateCaretPosAction",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getOptions(),r=this.getCaretPosition();return null!=r&&(e?r>0&&(r-=t):r+=t),n.debug&&console.log("Caret at:",r),r}},{key:"addStringAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return r||0===r?(n=[t.slice(0,r),e,t.slice(o)].join(""),this.isMaxLengthReached()||i&&this.updateCaretPos(e.length)):n=t+e,n}},{key:"removeAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(0===n&&0===r)return t;if(n===r){var i=/([\uD800-\uDBFF][\uDC00-\uDFFF])/g;n&&n>=0?t.substring(n-2,n).match(i)?(e=t.substr(0,n-2)+t.substr(n),o&&this.updateCaretPos(2,!0)):(e=t.substr(0,n-1)+t.substr(n),o&&this.updateCaretPos(1,!0)):t.slice(-2).match(i)?(e=t.slice(0,-2),o&&this.updateCaretPos(2,!0)):(e=t.slice(0,-1),o&&this.updateCaretPos(1,!0))}else e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)});return e}},{key:"removeForwardsAt",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return null!=t&&t.length&&null!==n?(n===r?e=t.substring(n,n+2).match(/([\uD800-\uDBFF][\uDC00-\uDFFF])/g)?t.substr(0,n)+t.substr(n+2):t.substr(0,n)+t.substr(n+1):(e=t.slice(0,n)+t.slice(r),o&&this.dispatch(function(t){t.setCaretPosition(n)})),e):t}},{key:"handleMaxLength",value:function(t,e){var n=this.getOptions(),r=n.maxLength,o=t[n.inputName||"default"],i=e.length-1>=r;if(e.length<=o.length)return!1;if(Number.isInteger(r))return n.debug&&console.log("maxLength (num) reached:",i),i?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1);if("object"===zn(r)){var a=e.length-1>=r[n.inputName||"default"];return n.debug&&console.log("maxLength (obj) reached:",a),a?(this.maxLengthReached=!0,!0):(this.maxLengthReached=!1,!1)}}},{key:"isMaxLengthReached",value:function(){return Boolean(this.maxLengthReached)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints}},{key:"pointerEventsSupported",value:function(){return!!window.PointerEvent}},{key:"camelCase",value:function(t){return t?t.toLowerCase().trim().split(/[.\-_\s]/g).reduce(function(t,e){return e.length?t+e[0].toUpperCase()+e.slice(1):t}):""}},{key:"chunkArray",value:function(t,e){return Jn(Array(Math.ceil(t.length/e))).map(function(n,r){return t.slice(e*r,e+e*r)})}},{key:"escapeRegex",value:function(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}},{key:"getRtlOffset",value:function(t,e){var n=t,r=e.indexOf("‫");return r<t&&-1!=r&&n--,e.indexOf("‬")<t&&-1!=r&&n--,n<0?0:n}},{key:"isConstructor",value:function(t){try{Reflect.construct(String,[],t)}catch(t){return!1}return!0}}],n=[{key:"bindMethods",value:function(t,e){var n,r=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Gn(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(Object.getOwnPropertyNames(t.prototype));try{for(r.s();!(n=r.n()).done;){var o=n.value;"constructor"===o||"bindMethods"===o||(e[o]=e[o].bind(e))}}catch(t){r.e(t)}finally{r.f()}}}],e&&Yn(t.prototype,e),n&&Yn(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();qn(Xn,"noop",function(){});var Qn=Xn;function Zn(t){return Zn="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},Zn(t)}function tr(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,nr(r.key),r)}}function er(t,e,n){return(e=nr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nr(t){var e=function(t,e){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Zn(e)?e:e+""}var rr=function(){return t=function t(e){var n=this,r=e.dispatch,o=e.getOptions;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),er(this,"getOptions",void 0),er(this,"dispatch",void 0),er(this,"isModifierKey",function(t){return t.altKey||t.ctrlKey||t.shiftKey||["Tab","CapsLock","Esc","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.code||t.key||n.keyCodeToKey(null==t?void 0:t.keyCode))}),this.dispatch=r,this.getOptions=o,Qn.bindMethods(t,this)},e=[{key:"handleHighlightKeyDown",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a=r.getButtonElement(n),s=r.getButtonElement("{".concat(n,"}"));if(a)o=a,i=n;else{if(!s)return;o=s,i="{".concat(n,"}")}var u,c,l,f,d=function(t){t.style.background=e.physicalKeyboardHighlightBgColor||"#dadce4",t.style.color=e.physicalKeyboardHighlightTextColor||"black"};if(o)if(Array.isArray(o)){if(o.forEach(function(t){return d(t)}),e.physicalKeyboardHighlightPress)if(e.physicalKeyboardHighlightPressUsePointerEvents)null===(u=o[0])||void 0===u||null===(c=u.onpointerdown)||void 0===c||c.call(u,t);else if(e.physicalKeyboardHighlightPressUseClick){var p;null===(p=o[0])||void 0===p||p.click()}else r.handleButtonClicked(i,t)}else d(o),e.physicalKeyboardHighlightPress&&(e.physicalKeyboardHighlightPressUsePointerEvents?null===(l=o)||void 0===l||null===(f=l.onpointerdown)||void 0===f||f.call(l,t):e.physicalKeyboardHighlightPressUseClick?o.click():r.handleButtonClicked(i,t))})}},{key:"handleHighlightKeyUp",value:function(t){var e=this.getOptions();e.physicalKeyboardHighlightPreventDefault&&this.isModifierKey(t)&&(t.preventDefault(),t.stopImmediatePropagation());var n=this.getSimpleKeyboardLayoutKey(t);this.dispatch(function(r){var o,i,a,s=r.getButtonElement(n)||r.getButtonElement("{".concat(n,"}")),u=function(t){t.removeAttribute&&t.removeAttribute("style")};s&&(Array.isArray(s)?(s.forEach(function(t){return u(t)}),e.physicalKeyboardHighlightPressUsePointerEvents&&(null===(o=s[0])||void 0===o||null===(i=o.onpointerup)||void 0===i||i.call(o,t))):(u(s),e.physicalKeyboardHighlightPressUsePointerEvents&&(null==s||null===(a=s.onpointerup)||void 0===a||a.call(s,t))))})}},{key:"getSimpleKeyboardLayoutKey",value:function(t){var e,n="",r=t.code||t.key||this.keyCodeToKey(null==t?void 0:t.keyCode);return(n=null!=r&&r.includes("Numpad")||null!=r&&r.includes("Shift")||null!=r&&r.includes("Space")||null!=r&&r.includes("Backspace")||null!=r&&r.includes("Control")||null!=r&&r.includes("Alt")||null!=r&&r.includes("Meta")?t.code||"":t.key||this.keyCodeToKey(null==t?void 0:t.keyCode)||"").length>1?null===(e=n)||void 0===e?void 0:e.toLowerCase():n}},{key:"keyCodeToKey",value:function(t){return{8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",91:"Meta",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9",106:"NumpadMultiply",107:"NumpadAdd",109:"NumpadSubtract",110:"NumpadDecimal",111:"NumpadDivide",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}[t]||""}}],e&&tr(t.prototype,e),n&&tr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}();function or(t){return or="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},or(t)}function ir(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,sr(r.key),r)}}function ar(t,e,n){return(e=sr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sr(t){var e=function(t,e){if("object"!=or(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==or(e)?e:e+""}var ur=function(){return t=function t(e){var n=e.utilities,r=e.options;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),ar(this,"utilities",void 0),ar(this,"options",void 0),ar(this,"candidateBoxElement",void 0),ar(this,"pageIndex",0),ar(this,"pageSize",void 0),this.utilities=n,this.options=r,Qn.bindMethods(t,this),this.pageSize=this.utilities.getOptions().layoutCandidatesPageSize||5},e=[{key:"destroy",value:function(){this.candidateBoxElement&&(this.candidateBoxElement.remove(),this.pageIndex=0)}},{key:"show",value:function(t){var e=this,n=t.candidateValue,r=t.targetElement,o=t.onSelect;if(n&&n.length){var i=this.utilities.chunkArray(n.split(" "),this.pageSize);this.renderPage({candidateListPages:i,targetElement:r,pageIndex:this.pageIndex,nbPages:i.length,onItemSelected:function(t,n){o(t,n),e.destroy()}})}}},{key:"renderPage",value:function(t){var e,n=this,r=t.candidateListPages,o=t.targetElement,i=t.pageIndex,a=t.nbPages,s=t.onItemSelected;null===(e=this.candidateBoxElement)||void 0===e||e.remove(),this.candidateBoxElement=document.createElement("div"),this.candidateBoxElement.className="hg-candidate-box";var u=document.createElement("ul");u.className="hg-candidate-box-list",r[i].forEach(function(t){var e,r=document.createElement("li"),o=function(){var t=new(n.options.useTouchEvents?TouchEvent:MouseEvent)("click");return Object.defineProperty(t,"target",{value:r}),t};r.className="hg-candidate-box-list-item",r.innerHTML=(null===(e=n.options.display)||void 0===e?void 0:e[t])||t,n.options.useTouchEvents?r.ontouchstart=function(e){return s(t,e||o())}:r.onclick=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o();return s(t,e)},u.appendChild(r)});var c=i>0,l=document.createElement("div");l.classList.add("hg-candidate-box-prev"),c&&l.classList.add("hg-candidate-box-btn-active");var f=function(){c&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i-1,nbPages:a,onItemSelected:s})};this.options.useTouchEvents?l.ontouchstart=f:l.onclick=f,this.candidateBoxElement.appendChild(l),this.candidateBoxElement.appendChild(u);var d=i<a-1,p=document.createElement("div");p.classList.add("hg-candidate-box-next"),d&&p.classList.add("hg-candidate-box-btn-active");var h=function(){d&&n.renderPage({candidateListPages:r,targetElement:o,pageIndex:i+1,nbPages:a,onItemSelected:s})};this.options.useTouchEvents?p.ontouchstart=h:p.onclick=h,this.candidateBoxElement.appendChild(p),o.prepend(this.candidateBoxElement)}}],e&&ir(t.prototype,e),n&&ir(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),cr=ur;function lr(t){return function(t){if(Array.isArray(t))return fr(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return fr(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fr(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function dr(t){return dr="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},dr(t)}function pr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hr(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 vr(t,e,n){return(e=yr(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function yr(t){var e=function(t,e){if("object"!=dr(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=dr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==dr(e)?e:e+""}var gr=function(){return t=function t(e,n){var r=this;if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),vr(this,"input",void 0),vr(this,"options",void 0),vr(this,"utilities",void 0),vr(this,"caretPosition",void 0),vr(this,"caretPositionEnd",void 0),vr(this,"keyboardDOM",void 0),vr(this,"keyboardPluginClasses",void 0),vr(this,"keyboardDOMClass",void 0),vr(this,"buttonElements",void 0),vr(this,"currentInstanceName",void 0),vr(this,"allKeyboardInstances",void 0),vr(this,"keyboardInstanceNames",void 0),vr(this,"isFirstKeyboardInstance",void 0),vr(this,"physicalKeyboard",void 0),vr(this,"modules",void 0),vr(this,"activeButtonClass",void 0),vr(this,"holdInteractionTimeout",void 0),vr(this,"holdTimeout",void 0),vr(this,"isMouseHold",void 0),vr(this,"initialized",void 0),vr(this,"candidateBox",void 0),vr(this,"keyboardRowsDOM",void 0),vr(this,"defaultName","default"),vr(this,"activeInputElement",null),vr(this,"handleParams",function(t,e){var n,r,o;if("string"==typeof t)n=t.split(".").join(""),r=document.querySelector(".".concat(n)),o=e;else if(t instanceof HTMLDivElement){if(!t.className)throw console.warn("Any DOM element passed as parameter must have a class."),new Error("KEYBOARD_DOM_CLASS_ERROR");n=t.className.split(" ")[0],r=t,o=e}else n="simple-keyboard",r=document.querySelector(".".concat(n)),o=t;return{keyboardDOMClass:n,keyboardDOM:r,options:o}}),vr(this,"getOptions",function(){return r.options}),vr(this,"getCaretPosition",function(){return r.caretPosition}),vr(this,"getCaretPositionEnd",function(){return r.caretPositionEnd}),vr(this,"registerModule",function(t,e){r.modules[t]||(r.modules[t]={}),e(r.modules[t])}),vr(this,"getKeyboardClassString",function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return[r.keyboardDOMClass].concat(e).filter(function(t){return!!t}).join(" ")}),"undefined"!=typeof window){var o=this.handleParams(e,n),i=o.keyboardDOMClass,a=o.keyboardDOM,s=o.options,u=void 0===s?{}:s;this.utilities=new Qn({getOptions:this.getOptions,getCaretPosition:this.getCaretPosition,getCaretPositionEnd:this.getCaretPositionEnd,dispatch:this.dispatch}),this.caretPosition=null,this.caretPositionEnd=null,this.keyboardDOM=a,this.options=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(n),!0).forEach(function(e){vr(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}({layoutName:"default",theme:"hg-theme-default",inputName:"default",preventMouseDownDefault:!1,enableLayoutCandidates:!0,excludeFromLayout:{}},u),this.keyboardPluginClasses="",Qn.bindMethods(t,this);var c=this.options.inputName,l=void 0===c?this.defaultName:c;if(this.input={},this.input[l]="",this.keyboardDOMClass=i,this.buttonElements={},window.SimpleKeyboardInstances||(window.SimpleKeyboardInstances={}),this.currentInstanceName=this.utilities.camelCase(this.keyboardDOMClass),window.SimpleKeyboardInstances[this.currentInstanceName]=this,this.allKeyboardInstances=window.SimpleKeyboardInstances,this.keyboardInstanceNames=Object.keys(window.SimpleKeyboardInstances),this.isFirstKeyboardInstance=this.keyboardInstanceNames[0]===this.currentInstanceName,this.physicalKeyboard=new rr({dispatch:this.dispatch,getOptions:this.getOptions}),this.candidateBox=this.options.enableLayoutCandidates?new cr({utilities:this.utilities,options:this.options}):null,!this.keyboardDOM)throw console.warn('".'.concat(i,'" was not found in the DOM.')),new Error("KEYBOARD_DOM_ERROR");this.render(),this.modules={},this.loadModules()}},e=[{key:"setCaretPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;this.caretPosition=t,this.caretPositionEnd=e}},{key:"getInputCandidates",value:function(t){var e=this,n=this.options,r=n.layoutCandidates,o=n.layoutCandidatesCaseSensitiveMatch;if(!r||"object"!==dr(r))return{};var i=Object.keys(r).filter(function(n){var r=t.substring(0,e.getCaretPositionEnd()||0)||t,i=new RegExp("".concat(e.utilities.escapeRegex(n),"$"),o?"g":"gi");return!!lr(r.matchAll(i)).length});if(i.length>1){var a=i.sort(function(t,e){return e.length-t.length})[0];return{candidateKey:a,candidateValue:r[a]}}if(i.length){var s=i[0];return{candidateKey:s,candidateValue:r[s]}}return{}}},{key:"showCandidatesBox",value:function(t,e,n){var r=this;this.candidateBox&&this.candidateBox.show({candidateValue:e,targetElement:n,onSelect:function(e,n){var o=r.options,i=o.layoutCandidatesCaseSensitiveMatch,a=o.disableCandidateNormalization,s=o.enableLayoutCandidatesKeyPress,u=e;a||(u=e.normalize("NFD")),"function"==typeof r.options.beforeInputUpdate&&r.options.beforeInputUpdate(r);var c=r.getInput(r.options.inputName,!0),l=r.getCaretPositionEnd()||0,f=c.substring(0,l||0)||c,d=new RegExp("".concat(r.utilities.escapeRegex(t),"$"),i?"g":"gi"),p=f.replace(d,u),h=c.replace(f,p),v=p.length-f.length,y=(l||c.length)+v;y<0&&(y=0),r.setInput(h,r.options.inputName,!0),r.setCaretPosition(y),s&&"function"==typeof r.options.onKeyPress&&r.options.onKeyPress(e,n),"function"==typeof r.options.onChange&&r.options.onChange(r.getInput(r.options.inputName,!0),n),"function"==typeof r.options.onChangeAll&&r.options.onChangeAll(r.getAllInputs(),n)}})}},{key:"handleButtonClicked",value:function(t,e){var n=this.options,r=n.inputName,o=void 0===r?this.defaultName:r,i=n.debug;if("{//}"!==t){this.input[o]||(this.input[o]=""),"function"==typeof this.options.beforeInputUpdate&&this.options.beforeInputUpdate(this);var a=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd);if(this.utilities.isStandardButton(t)&&this.activeInputElement&&this.input[o]&&this.input[o]===a&&0===this.caretPosition&&this.caretPositionEnd===a.length)return this.setInput("",this.options.inputName,!0),this.setCaretPosition(0),this.activeInputElement.value="",this.activeInputElement.setSelectionRange(0,0),void this.handleButtonClicked(t,e);if("function"==typeof this.options.onKeyPress&&this.options.onKeyPress(t,e),this.input[o]!==a&&(!this.options.inputPattern||this.options.inputPattern&&this.inputPatternIsValid(a))){if(this.options.maxLength&&this.utilities.handleMaxLength(this.input,a))return;var s=this.utilities.getUpdatedInput(t,this.input[o],this.caretPosition,this.caretPositionEnd,!0);if(this.setInput(s,this.options.inputName,!0),i&&console.log("Input changed:",this.getAllInputs()),this.options.debug&&console.log("Caret at: ",this.getCaretPosition(),this.getCaretPositionEnd(),"(".concat(this.keyboardDOMClass,")"),null==e?void 0:e.type),this.options.syncInstanceInputs&&this.syncInstanceInputs(),"function"==typeof this.options.onChange&&this.options.onChange(this.getInput(this.options.inputName,!0),e),"function"==typeof this.options.onChangeAll&&this.options.onChangeAll(this.getAllInputs(),e),null!=e&&e.target&&this.options.enableLayoutCandidates){var u,c=this.getInputCandidates(a),l=c.candidateKey,f=c.candidateValue;l&&f?this.showCandidatesBox(l,f,this.keyboardDOM):null===(u=this.candidateBox)||void 0===u||u.destroy()}}this.caretPositionEnd&&this.caretPosition!==this.caretPositionEnd&&(this.setCaretPosition(this.caretPositionEnd,this.caretPositionEnd),this.activeInputElement&&this.activeInputElement.setSelectionRange(this.caretPositionEnd,this.caretPositionEnd),this.options.debug&&console.log("Caret position aligned",this.caretPosition)),i&&console.log("Key pressed:",t)}}},{key:"getMouseHold",value:function(){return this.isMouseHold}},{key:"setMouseHold",value:function(t){this.options.syncInstanceInputs?this.dispatch(function(e){e.isMouseHold=t}):this.isMouseHold=t}},{key:"handleButtonMouseDown",value:function(t,e){var n=this;e&&(this.options.preventMouseDownDefault&&e.preventDefault(),this.options.stopMouseDownPropagation&&e.stopPropagation(),e.target.classList.add(this.activeButtonClass)),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdTimeout&&clearTimeout(this.holdTimeout),this.setMouseHold(!0),this.options.disableButtonHold||(this.holdTimeout=window.setTimeout(function(){(n.getMouseHold()&&(!t.includes("{")&&!t.includes("}")||"{delete}"===t||"{backspace}"===t||"{bksp}"===t||"{space}"===t||"{tab}"===t)||"{arrowright}"===t||"{arrowleft}"===t||"{arrowup}"===t||"{arrowdown}"===t)&&(n.options.debug&&console.log("Button held:",t),n.handleButtonHold(t)),clearTimeout(n.holdTimeout)},500))}},{key:"handleButtonMouseUp",value:function(t,e){var n=this;e&&(this.options.preventMouseUpDefault&&e.preventDefault&&e.preventDefault(),this.options.stopMouseUpPropagation&&e.stopPropagation&&e.stopPropagation(),!(e.target===this.keyboardDOM||e.target&&this.keyboardDOM.contains(e.target)||this.candidateBox&&this.candidateBox.candidateBoxElement&&(e.target===this.candidateBox.candidateBoxElement||e.target&&this.candidateBox.candidateBoxElement.contains(e.target)))&&this.candidateBox&&this.candidateBox.destroy()),this.recurseButtons(function(t){t.classList.remove(n.activeButtonClass)}),this.setMouseHold(!1),this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),t&&"function"==typeof this.options.onKeyReleased&&this.options.onKeyReleased(t,e)}},{key:"handleKeyboardContainerMouseDown",value:function(t){this.options.preventMouseDownDefault&&t.preventDefault()}},{key:"handleButtonHold",value:function(t){var e=this;this.holdInteractionTimeout&&clearTimeout(this.holdInteractionTimeout),this.holdInteractionTimeout=window.setTimeout(function(){e.getMouseHold()?(e.handleButtonClicked(t),e.handleButtonHold(t)):clearTimeout(e.holdInteractionTimeout)},100)}},{key:"syncInstanceInputs",value:function(){var t=this;this.dispatch(function(e){e.replaceInput(t.input),e.setCaretPosition(t.caretPosition,t.caretPositionEnd)})}},{key:"clearInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName;this.input[t]="",this.setCaretPosition(0),this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"getInput",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.options.inputName||this.defaultName,e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.options.syncInstanceInputs&&!e&&this.syncInstanceInputs(),this.options.rtl?"‫"+this.input[t].replace("‫","").replace("‬","")+"‬":this.input[t]}},{key:"getAllInputs",value:function(){var t=this,e={};return Object.keys(this.input).forEach(function(n){e[n]=t.getInput(n,!0)}),e}},{key:"setInput",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.options.inputName||this.defaultName,n=arguments.length>2?arguments[2]:void 0;this.input[e]=t,!n&&this.options.syncInstanceInputs&&this.syncInstanceInputs()}},{key:"replaceInput",value:function(t){this.input=t}},{key:"setOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.changedOptions(t);this.options=Object.assign(this.options,t),e.length&&(this.options.debug&&console.log("changedOptions",e),this.onSetOptions(e),this.render())}},{key:"changedOptions",value:function(t){var e=this;return Object.keys(t).filter(function(n){return JSON.stringify(t[n])!==JSON.stringify(e.options[n])})}},{key:"onSetOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.includes("layoutName")&&this.candidateBox&&this.candidateBox.destroy(),(t.includes("layoutCandidatesPageSize")||t.includes("layoutCandidates"))&&this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=new cr({utilities:this.utilities,options:this.options}))}},{key:"resetRows",value:function(){this.keyboardRowsDOM&&this.keyboardRowsDOM.remove(),this.keyboardDOM.className=this.keyboardDOMClass,this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.buttonElements={}}},{key:"dispatch",value:function(t){if(!window.SimpleKeyboardInstances)throw console.warn("SimpleKeyboardInstances is not defined. Dispatch cannot be called."),new Error("INSTANCES_VAR_ERROR");return Object.keys(window.SimpleKeyboardInstances).forEach(function(e){t(window.SimpleKeyboardInstances[e],e)})}},{key:"addButtonTheme",value:function(t,e){var n=this;e&&t&&(t.split(" ").forEach(function(r){e.split(" ").forEach(function(e){n.options.buttonTheme||(n.options.buttonTheme=[]);var o=!1;n.options.buttonTheme.map(function(t){if(null!=t&&t.class.split(" ").includes(e)){o=!0;var n=t.buttons.split(" ");n.includes(r)||(o=!0,n.push(r),t.buttons=n.join(" "))}return t}),o||n.options.buttonTheme.push({class:e,buttons:t})})}),this.render())}},{key:"removeButtonTheme",value:function(t,e){var n=this;if(!t&&!e)return this.options.buttonTheme=[],void this.render();t&&Array.isArray(this.options.buttonTheme)&&this.options.buttonTheme.length&&(t.split(" ").forEach(function(t){var r;null===(r=n.options)||void 0===r||null===(r=r.buttonTheme)||void 0===r||r.map(function(r,o){if(r&&e&&e.includes(r.class)||!e){var i,a,s=null===(i=r)||void 0===i?void 0:i.buttons.split(" ").filter(function(e){return e!==t});r&&null!=s&&s.length?r.buttons=s.join(" "):(null===(a=n.options.buttonTheme)||void 0===a||a.splice(o,1),r=null)}return r})}),this.render())}},{key:"getButtonElement",value:function(t){var e,n=this.buttonElements[t];return n&&(e=n.length>1?n:n[0]),e}},{key:"inputPatternIsValid",value:function(t){var e,n=this.options.inputPattern;if((e=n instanceof RegExp?n:n[this.options.inputName||this.defaultName])&&t){var r=e.test(t);return this.options.debug&&console.log('inputPattern ("'.concat(e,'"): ').concat(r?"passed":"did not pass!")),r}return!0}},{key:"setEventListeners",value:function(){if(this.isFirstKeyboardInstance||!this.allKeyboardInstances){this.options.debug&&console.log("Caret handling started (".concat(this.keyboardDOMClass,")"));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.addEventListener("keyup",this.handleKeyUp,e),document.addEventListener("keydown",this.handleKeyDown,e),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("touchend",this.handleTouchEnd),this.options.updateCaretOnSelectionChange&&document.addEventListener("selectionchange",this.handleSelectionChange),document.addEventListener("select",this.handleSelect)}}},{key:"handleKeyUp",value:function(t){this.caretEventHandler(t),this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyUp(t)}},{key:"handleKeyDown",value:function(t){this.options.physicalKeyboardHighlight&&this.physicalKeyboard.handleHighlightKeyDown(t)}},{key:"handleMouseUp",value:function(t){this.caretEventHandler(t)}},{key:"handleTouchEnd",value:function(t){this.caretEventHandler(t)}},{key:"handleSelect",value:function(t){this.caretEventHandler(t)}},{key:"handleSelectionChange",value:function(t){navigator.userAgent.includes("Firefox")||this.caretEventHandler(t)}},{key:"caretEventHandler",value:function(t){var e,n=this;t.target.tagName&&(e=t.target.tagName.toLowerCase()),this.dispatch(function(r){var o=t.target===r.keyboardDOM||t.target&&r.keyboardDOM.contains(t.target);if(n.options.syncInstanceInputs){var i="function"==typeof t.composedPath?t.composedPath():t.path;Array.isArray(i)&&(o=i.some(function(t){var e;return null==t||null===(e=t.hasAttribute)||void 0===e?void 0:e.call(t,"data-skInstance")}))}if(("textarea"===e||"input"===e&&["text","search","url","tel","password"].includes(t.target.type))&&!r.options.disableCaretPositioning){var a=t.target.selectionStart,s=t.target.selectionEnd;r.options.rtl&&(a=r.utilities.getRtlOffset(a,r.getInput()),s=r.utilities.getRtlOffset(s,r.getInput())),r.setCaretPosition(a,s),r.activeInputElement=t.target,r.options.debug&&console.log("Caret at: ",r.getCaretPosition(),r.getCaretPositionEnd(),t&&t.target.tagName.toLowerCase(),"(".concat(r.keyboardDOMClass,")"),null==t?void 0:t.type)}else!r.options.disableCaretPositioning&&o||"selectionchange"===(null==t?void 0:t.type)||(r.setCaretPosition(null),r.activeInputElement=null,r.options.debug&&console.log('Caret position reset due to "'.concat(null==t?void 0:t.type,'" event'),t))})}},{key:"recurseButtons",value:function(t){var e=this;t&&Object.keys(this.buttonElements).forEach(function(n){return e.buttonElements[n].forEach(t)})}},{key:"destroy",value:function(){this.options.debug&&console.log("Destroying simple-keyboard instance: ".concat(this.currentInstanceName));var t=this.options.physicalKeyboardHighlightPreventDefault,e=void 0!==t&&t;document.removeEventListener("keyup",this.handleKeyUp,e),document.removeEventListener("keydown",this.handleKeyDown,e),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("select",this.handleSelect),this.options.updateCaretOnSelectionChange&&document.removeEventListener("selectionchange",this.handleSelectionChange),document.onpointerup=null,document.ontouchend=null,document.ontouchcancel=null,document.onmouseup=null,this.recurseButtons(function(t){t&&(t.onpointerdown=null,t.onpointerup=null,t.onpointercancel=null,t.ontouchstart=null,t.ontouchend=null,t.ontouchcancel=null,t.onclick=null,t.onmousedown=null,t.onmouseup=null,t.remove(),t=null)}),this.keyboardDOM.onpointerdown=null,this.keyboardDOM.ontouchstart=null,this.keyboardDOM.onmousedown=null,this.resetRows(),this.candidateBox&&(this.candidateBox.destroy(),this.candidateBox=null),this.activeInputElement=null,this.keyboardDOM.removeAttribute("data-skInstance"),this.keyboardDOM.innerHTML="",window.SimpleKeyboardInstances[this.currentInstanceName]=null,delete window.SimpleKeyboardInstances[this.currentInstanceName],this.initialized=!1}},{key:"getButtonThemeClasses",value:function(t){var e=this.options.buttonTheme,n=[];return Array.isArray(e)&&e.forEach(function(e){if(e&&e.class&&"string"==typeof e.class&&e.buttons&&"string"==typeof e.buttons){var r=e.class.split(" ");e.buttons.split(" ").includes(t)&&(n=[].concat(lr(n),lr(r)))}else console.warn('Incorrect "buttonTheme". Please check the documentation.',e)}),n}},{key:"setDOMButtonAttributes",value:function(t,e){var n=this.options.buttonAttributes;Array.isArray(n)&&n.forEach(function(n){n.attribute&&"string"==typeof n.attribute&&n.value&&"string"==typeof n.value?n.buttons&&"string"==typeof n.buttons?n.buttons.split(" ").includes(t)&&e(n.attribute,n.value):e(n.attribute,n.value):console.warn('Incorrect "buttonAttributes". Please check the documentation.',n)})}},{key:"onTouchDeviceDetected",value:function(){this.processAutoTouchEvents(),this.disableContextualWindow()}},{key:"disableContextualWindow",value:function(){window.oncontextmenu=function(t){var e;if(null!==(e=t.target.classList)&&void 0!==e&&e.contains("hg-button"))return t.preventDefault(),t.stopPropagation(),!1}}},{key:"processAutoTouchEvents",value:function(){this.options.autoUseTouchEvents&&(this.options.useTouchEvents=!0,this.options.debug&&console.log("autoUseTouchEvents: Touch device detected, useTouchEvents enabled."))}},{key:"onInit",value:function(){this.options.debug&&console.log("".concat(this.keyboardDOMClass," Initialized")),this.setEventListeners(),"function"==typeof this.options.onInit&&this.options.onInit(this)}},{key:"beforeFirstRender",value:function(){this.utilities.isTouchDevice()&&this.onTouchDeviceDetected(),"function"==typeof this.options.beforeFirstRender&&this.options.beforeFirstRender(this),this.isFirstKeyboardInstance&&this.utilities.pointerEventsSupported()&&!this.options.useTouchEvents&&!this.options.useMouseEvents&&this.options.debug&&console.log("Using PointerEvents as it is supported by this browser"),this.options.useTouchEvents&&this.options.debug&&console.log("useTouchEvents has been enabled. Only touch events will be used.")}},{key:"beforeRender",value:function(){"function"==typeof this.options.beforeRender&&this.options.beforeRender(this)}},{key:"onRender",value:function(){"function"==typeof this.options.onRender&&this.options.onRender(this)}},{key:"onModulesLoaded",value:function(){"function"==typeof this.options.onModulesLoaded&&this.options.onModulesLoaded(this)}},{key:"loadModules",value:function(){var t=this;Array.isArray(this.options.modules)&&(this.options.modules.forEach(function(e){var n=t.utilities.isConstructor(e)?new e(t):e(t);n.init&&n.init(t)}),this.keyboardPluginClasses="modules-loaded",this.render(),this.onModulesLoaded())}},{key:"getModuleProp",value:function(t,e){return!!this.modules[t]&&this.modules[t][e]}},{key:"getModulesList",value:function(){return Object.keys(this.modules)}},{key:"parseRowDOMContainers",value:function(t,e,n,r){var o=this,i=Array.from(t.children),a=0;return i.length&&n.forEach(function(n,s){var u=r[s];if(!(u&&u>n))return!1;var c=n-a,l=u-a,f=document.createElement("div");f.className+="hg-button-container";var d="".concat(o.options.layoutName,"-r").concat(e,"c").concat(s);f.setAttribute("data-skUID",d);var p=i.splice(c,l-c+1);a+=l-c,p.forEach(function(t){return f.appendChild(t)}),i.splice(c,0,f),t.innerHTML="",i.forEach(function(e){return t.appendChild(e)}),o.options.debug&&console.log("rowDOMContainer",p,c,l,a+1)}),t}},{key:"render",value:function(){var t=this;this.resetRows(),this.initialized||this.beforeFirstRender(),this.beforeRender();var e="hg-layout-".concat(this.options.layoutName),n=this.options.layout||{default:["` 1 2 3 4 5 6 7 8 9 0 - = {bksp}","{tab} q w e r t y u i o p [ ] \\","{lock} a s d f g h j k l ; ' {enter}","{shift} z x c v b n m , . / {shift}",".com @ {space}"],shift:["~ ! @ # $ % ^ & * ( ) _ + {bksp}","{tab} Q W E R T Y U I O P { } |",'{lock} A S D F G H J K L : " {enter}',"{shift} Z X C V B N M < > ? {shift}",".com @ {space}"]},r=this.options.useTouchEvents||!1,o=r?"hg-touch-events":"",i=this.options.useMouseEvents||!1,a=this.options.disableRowButtonContainers;this.keyboardDOM.className=this.getKeyboardClassString(this.options.theme,e,this.keyboardPluginClasses,o),this.keyboardDOM.setAttribute("data-skInstance",this.currentInstanceName),this.keyboardRowsDOM=document.createElement("div"),this.keyboardRowsDOM.className="hg-rows",n[this.options.layoutName||this.defaultName].forEach(function(e,n){var o=e.split(" ");t.options.excludeFromLayout&&t.options.excludeFromLayout[t.options.layoutName||t.defaultName]&&(o=o.filter(function(e){return t.options.excludeFromLayout&&!t.options.excludeFromLayout[t.options.layoutName||t.defaultName].includes(e)}));var s=document.createElement("div");s.className+="hg-row";var u=[],c=[];o.forEach(function(e,o){var l,f=!a&&"string"==typeof e&&e.length>1&&0===e.indexOf("["),d=!a&&"string"==typeof e&&e.length>1&&e.indexOf("]")===e.length-1;f&&(u.push(o),e=e.replace(/\[/g,"")),d&&(c.push(o),e=e.replace(/\]/g,""));var p=t.utilities.getButtonClass(e),h=t.utilities.getButtonDisplayName(e,t.options.display,t.options.mergeDisplay),v=t.options.useButtonTag?"button":"div",y=document.createElement(v);y.className+="hg-button ".concat(p),(l=y.classList).add.apply(l,lr(t.getButtonThemeClasses(e))),t.setDOMButtonAttributes(e,function(t,e){y.setAttribute(t,e)}),t.activeButtonClass="hg-activeButton",!t.utilities.pointerEventsSupported()||r||i?r?(y.ontouchstart=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.ontouchend=function(n){t.handleButtonMouseUp(e,n)},y.ontouchcancel=function(n){t.handleButtonMouseUp(e,n)}):(y.onclick=function(n){t.setMouseHold(!1),"function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown||t.handleButtonClicked(e,n)},y.onmousedown=function(n){("function"==typeof t.options.onKeyReleased||t.options.useMouseEvents&&t.options.clickOnMouseDown)&&!t.isMouseHold&&t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onmouseup=function(n){t.handleButtonMouseUp(e,n)}):(y.onpointerdown=function(n){t.handleButtonClicked(e,n),t.handleButtonMouseDown(e,n)},y.onpointerup=function(n){t.handleButtonMouseUp(e,n)},y.onpointercancel=function(n){t.handleButtonMouseUp(e,n)}),y.setAttribute("data-skBtn",e);var g="".concat(t.options.layoutName,"-r").concat(n,"b").concat(o);y.setAttribute("data-skBtnUID",g);var m=document.createElement("span");m.innerHTML=h,y.appendChild(m),t.buttonElements[e]||(t.buttonElements[e]=[]),t.buttonElements[e].push(y),s.appendChild(y)}),s=t.parseRowDOMContainers(s,n,u,c),t.keyboardRowsDOM.appendChild(s)}),this.keyboardDOM.appendChild(this.keyboardRowsDOM),this.onRender(),this.initialized||(this.initialized=!0,!this.utilities.pointerEventsSupported()||r||i?r?(document.ontouchend=function(e){return t.handleButtonMouseUp(void 0,e)},document.ontouchcancel=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.ontouchstart=function(e){return t.handleKeyboardContainerMouseDown(e)}):r||(document.onmouseup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onmousedown=function(e){return t.handleKeyboardContainerMouseDown(e)}):(document.onpointerup=function(e){return t.handleButtonMouseUp(void 0,e)},this.keyboardDOM.onpointerdown=function(e){return t.handleKeyboardContainerMouseDown(e)}),this.onInit())}}],e&&hr(t.prototype,e),n&&hr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e,n}(),mr=gr,br=gr}(),r}()});
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * simple-keyboard v3.8.183 (index.modern.esm.js - Modern Browsers bundle, ESM output)
3
+ * simple-keyboard v3.8.185 (index.modern.esm.js - Modern Browsers bundle, ESM output)
4
4
  * https://github.com/hodgef/simple-keyboard
5
5
  *
6
6
  * NOTE: This modern browsers bundle (index.modern.esm.js) removes all polyfills
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * simple-keyboard v3.8.183 (index.modern.js - Modern Browsers bundle)
3
+ * simple-keyboard v3.8.185 (index.modern.js - Modern Browsers bundle)
4
4
  * https://github.com/hodgef/simple-keyboard
5
5
  *
6
6
  * NOTE: This modern browsers bundle (index.modern.js) removes all polyfills
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-keyboard",
3
- "version": "3.8.183",
3
+ "version": "3.8.185",
4
4
  "description": "On-screen Javascript Virtual Keyboard",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -48,7 +48,7 @@
48
48
  "@types/jest": "^29.5.14",
49
49
  "@typescript-eslint/eslint-plugin": "^5.62.0",
50
50
  "@typescript-eslint/parser": "^5.62.0",
51
- "autoprefixer": "^10.5.4",
51
+ "autoprefixer": "^10.5.5",
52
52
  "babel-eslint": "^10.1.0",
53
53
  "babel-loader": "^10.1.1",
54
54
  "babel-preset-minify": "^0.5.2",
@@ -61,13 +61,13 @@
61
61
  "jest": "^29.7.0",
62
62
  "jest-environment-jsdom": "^29.7.0",
63
63
  "mini-css-extract-plugin": "^2.10.2",
64
- "postcss": "^8.5.26",
64
+ "postcss": "^8.5.28",
65
65
  "postcss-loader": "^8.2.1",
66
66
  "style-loader": "^4.0.0",
67
67
  "terser-webpack-plugin": "^5.6.1",
68
68
  "typescript": "^6.0.3",
69
69
  "url-loader": "^4.1.1",
70
- "webpack": "^5.110.2",
70
+ "webpack": "^5.110.3",
71
71
  "webpack-cli": "^6.0.1",
72
72
  "webpack-dev-server": "4.15.0"
73
73
  },