@everymatrix/general-player-sms-verification-form 1.5.6 → 1.7.0

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.
@@ -65,15 +65,15 @@ const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{co
65
65
  * @param {StartStopNotifier=}start start and stop notifications for subscriptions
66
66
  */
67
67
  function G(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
68
- const e=!U.length;for(const e of i)e[1](),U.push(e,t);if(e){for(let e=0;e<U.length;e+=2)U[e][0](U[e+1]);U.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const c=[o,a];return i.add(c),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(c),0===i.size&&(n(),n=null)}}}}function D(t,r,o){const a=!Array.isArray(t),c=a?[t]:t,l=r.length<2;return h=t=>{let o=!1;const h=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(a?h[0]:h,t);l?t(n):f=i(n)?n:e},m=c.map(((e,t)=>s(e,(e=>{h[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f()}},{subscribe:G(o,h).subscribe};var h}var F=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===$}(e)}
68
+ const e=!U.length;for(const e of i)e[1](),U.push(e,t);if(e){for(let e=0;e<U.length;e+=2)U[e][0](U[e+1]);U.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(o,a=e){const c=[o,a];return i.add(c),1===i.size&&(n=r(s)||e),o(t),()=>{i.delete(c),0===i.size&&(n(),n=null)}}}}function D(t,r,o){const a=!Array.isArray(t),c=a?[t]:t,l=r.length<2;return h=t=>{let o=!1;const h=[];let u=0,f=e;const p=()=>{if(u)return;f();const n=r(a?h[0]:h,t);l?t(n):f=i(n)?n:e},m=c.map(((e,t)=>s(e,(e=>{h[t]=e,u&=~(1<<t),o&&p()}),(()=>{u|=1<<t}))));return o=!0,p(),function(){n(m),f()}},{subscribe:G(o,h).subscribe};var h}var F=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===k}(e)}
69
69
  // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
70
- (e)};var $="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(e,t){return!1!==t.clone&&t.isMergeableObject(e)?K((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function x(e,t,r){return e.concat(t).map((function(e){return k(e,r)}))}function V(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function j(e,t){try{return t in e}catch(e){return!1}}
70
+ (e)};var k="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function $(e,t){return!1!==t.clone&&t.isMergeableObject(e)?K((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function x(e,t,r){return e.concat(t).map((function(e){return $(e,r)}))}function V(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function j(e,t){try{return t in e}catch(e){return!1}}
71
71
  // Protects from prototype poisoning and unexpected merging up the prototype chain.
72
- function X(e,t,r){var n={};return r.isMergeableObject(e)&&V(e).forEach((function(t){n[t]=k(e[t],r)})),V(t).forEach((function(i){(function(e,t){return j(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
73
- })(e,i)||(j(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return K;var r=t.customMerge(e);return"function"==typeof r?r:K}(i,r)(e[i],t[i],r):n[i]=k(t[i],r))})),n}function K(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||x,r.isMergeableObject=r.isMergeableObject||F,
72
+ function X(e,t,r){var n={};return r.isMergeableObject(e)&&V(e).forEach((function(t){n[t]=$(e[t],r)})),V(t).forEach((function(i){(function(e,t){return j(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
73
+ })(e,i)||(j(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return K;var r=t.customMerge(e);return"function"==typeof r?r:K}(i,r)(e[i],t[i],r):n[i]=$(t[i],r))})),n}function K(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||x,r.isMergeableObject=r.isMergeableObject||F,
74
74
  // cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
75
75
  // implementations can use it. The caller may not replace it.
76
- r.cloneUnlessOtherwiseSpecified=k;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):X(e,t,r):k(t,r)}K.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return K(e,r,t)}),{})};var z=K,Y=function(e,t){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Y(e,t)};function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var W,J,q,Q=function(){return Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
76
+ r.cloneUnlessOtherwiseSpecified=$;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):X(e,t,r):$(t,r)}K.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return K(e,r,t)}),{})};var z=K,Y=function(e,t){return Y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},Y(e,t)};function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var W,J,q,Q=function(){return Q=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Q.apply(this,arguments)};function ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}
77
77
  /**
78
78
  * Type Guards
79
79
  */
@@ -279,9 +279,9 @@ var we=!!String.prototype.startsWith,Ne=!!String.fromCodePoint,Me=!!Object.fromE
279
279
  * Pattern_Syntax support: not supported
280
280
  * See https://github.com/formatjs/formatjs/issues/2822
281
281
  */
282
- De="a"===(null===(Ae=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ae?void 0:Ae[0])}catch(e){De=!1}var Fe,$e=we?// Native
282
+ De="a"===(null===(Ae=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ae?void 0:Ae[0])}catch(e){De=!1}var Fe,ke=we?// Native
283
283
  function(e,t,r){return e.startsWith(t,r)}:// For IE11
284
- function(e,t,r){return e.slice(r,r+t.length)===t},ke=Ne?String.fromCodePoint:// IE11
284
+ function(e,t,r){return e.slice(r,r+t.length)===t},$e=Ne?String.fromCodePoint:// IE11
285
285
  function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;i>o;){if((r=e[o++])>1114111)throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},xe=
286
286
  // native
287
287
  Me?Object.fromEntries:// Ponyfill
@@ -299,7 +299,7 @@ if(De){
299
299
  // Native
300
300
  var ze=Ke("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fe=function(e,t){var r;return ze.lastIndex=t,null!==(r=ze.exec(e)[1])&&void 0!==r?r:""}}else
301
301
  // IE11
302
- Fe=function(e,t){for(var r=[];;){var n=Ve(e,t);if(void 0===n||Je(n)||qe(n))break;r.push(n),t+=n>=65536?2:1}return ke.apply(void 0,r)};var Ye=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(W.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:J.pound,location:Ie(s,this.clonePosition())})}}}return{val:n,err:null}},
302
+ Fe=function(e,t){for(var r=[];;){var n=Ve(e,t);if(void 0===n||Je(n)||qe(n))break;r.push(n),t+=n>=65536?2:1}return $e.apply(void 0,r)};var Ye=/** @class */function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123/* `{` */===i){if((o=this.parseArgument(e,r)).err)return o;n.push(o.val)}else{if(125/* `}` */===i&&e>0)break;if(35/* `#` */!==i||"plural"!==t&&"selectordinal"!==t){if(60/* `<` */===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(W.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&Ze(this.peek()||0)){if((o=this.parseTag(e,t)).err)return o;n.push(o.val)}else{var o;if((o=this.parseLiteral(e,t)).err)return o;n.push(o.val)}}else{var s=this.clonePosition();this.bump(),n.push({type:J.pound,location:Ie(s,this.clonePosition())})}}}return{val:n,err:null}},
303
303
  /**
304
304
  * A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
305
305
  * [custom element name][] except that a dash is NOT always mandatory and uppercase letters
@@ -350,7 +350,7 @@ for(this.bump();!this.isEOF();){var r=this.char();if(39/* `'` */===r){if(39/* `'
350
350
  // Optional closing apostrophe.
351
351
  this.bump();break}t.push(39),
352
352
  // Bump one more time because we need to skip 2 characters.
353
- this.bump()}else t.push(r);this.bump()}return ke.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),ke(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
353
+ this.bump()}else t.push(r);this.bump()}return $e.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60/* `<` */===r||123/* `{` */===r||35/* `#` */===r&&("plural"===t||"selectordinal"===t)||125/* `}` */===r&&e>0?null:(this.bump(),$e(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),// `{`
354
354
  this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));if(125/* `}` */===this.char())return this.bump(),this.error(W.EMPTY_ARGUMENT,Ie(r,this.clonePosition()));
355
355
  // argument name
356
356
  var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(W.MALFORMED_ARGUMENT,Ie(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,this.clonePosition()));switch(this.char()){
@@ -378,7 +378,7 @@ return this.error(W.EXPECT_ARGUMENT_TYPE,Ie(o,a));case"number":case"date":case"t
378
378
  // ^-------^
379
379
  this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Xe(b.val)).length)return this.error(W.EXPECT_ARGUMENT_STYLE,Ie(this.clonePosition(),this.clonePosition()));c={style:p,styleLocation:Ie(l,this.clonePosition())}}if((y=this.tryParseArgumentClose(n)).err)return y;var h=Ie(n,this.clonePosition());
380
380
  // Extract style or skeleton
381
- if(c&&$e(null==c?void 0:c.style,"::",0)){
381
+ if(c&&ke(null==c?void 0:c.style,"::",0)){
382
382
  // Skeleton starts with `::`.
383
383
  var u=je(c.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?b:{val:{type:J.number,value:r,location:h,style:b.val},err:null};if(0===u.length)return this.error(W.EXPECT_DATE_TIME_SKELETON,h);var f=u;
384
384
  // Get "best match" pattern only if locale is passed, if not, let it
@@ -455,7 +455,7 @@ this.position.offset+=e<65536?1:2)}},
455
455
  * following the prefix and return true. Otherwise, don't bump the parser
456
456
  * and return false.
457
457
  */
458
- e.prototype.bumpIf=function(e){if($e(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
458
+ e.prototype.bumpIf=function(e){if(ke(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
459
459
  /**
460
460
  * Bump the parser until the pattern character is found and return `true`.
461
461
  * Otherwise bump to the end of the file and return `false`.
@@ -567,7 +567,7 @@ e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"}
567
567
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
568
568
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
569
569
  PERFORMANCE OF THIS SOFTWARE.
570
- ***************************************************************************** */function Rt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}const Ut={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Gt(){return Ut}const Dt=G(!1);let Ft;const $t=G(null);function kt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function xt(e,t=Gt().fallbackLocale){const r=kt(e);return t?[...new Set([...r,...kt(t)])]:r}function Vt(){return null!=Ft?Ft:void 0}$t.subscribe((e=>{Ft=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const jt=Object.assign(Object.assign({},$t),{set:e=>{if(e&&function(e){if(null==e)return;const t=xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&Nt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{$t.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return $t.set(e)}}),Xt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Kt=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Kt("number",r)),new Intl.NumberFormat(t,n)})),Yt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Kt("date",r):0===Object.keys(n).length&&(n=Kt("date","short")),new Intl.DateTimeFormat(t,n)})),Zt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Kt("time",r):0===Object.keys(n).length&&(n=Kt("time","short")),new Intl.DateTimeFormat(t,n)})),Wt=Xt(((e,t=Vt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Vt(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=_t(e,c);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!==(o=null!==(i=null===(n=(r=Gt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return h;let u=h;try{u=Wt(h,c).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},qt=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return Zt(Object.assign({locale:t},r))})(t).format(e),Qt=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return Yt(Object.assign({locale:t},r))})(t).format(e),er=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return zt(Object.assign({locale:t},r))})(t).format(e),tr=(e,t=Vt())=>_t(e,t),rr=D([jt,St],(()=>Jt));function nr(e,t){Ct(e,t)}D([jt],(()=>qt)),D([jt],(()=>Qt)),D([jt],(()=>er)),D([jt,St],(()=>tr));const ir={en:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}},zh:{smsVerification:{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"}},fr:{smsVerification:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"}},tr:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Activate Account",resend:"Resend"}},ro:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"}},es:{smsVerification:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"}},pt:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"}}};
570
+ ***************************************************************************** */function Rt(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}const Ut={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function Gt(){return Ut}const Dt=G(!1);let Ft;const kt=G(null);function $t(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function xt(e,t=Gt().fallbackLocale){const r=$t(e);return t?[...new Set([...r,...$t(t)])]:r}function Vt(){return null!=Ft?Ft:void 0}kt.subscribe((e=>{Ft=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const jt=Object.assign(Object.assign({},kt),{set:e=>{if(e&&function(e){if(null==e)return;const t=xt(e);for(let e=0;e<t.length;e++){const r=t[e];if(Pt(r))return r}}(e)&&Nt(e)){const{loadingDelay:t}=Gt();let r;return"undefined"!=typeof window&&null!=Vt()&&t?r=window.setTimeout((()=>Dt.set(!0)),t):Dt.set(!0),Ot(e).then((()=>{kt.set(e)})).finally((()=>{clearTimeout(r),Dt.set(!1)}))}return kt.set(e)}}),Xt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}},Kt=(e,t)=>{const{formats:r}=Gt();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},zt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(n=Kt("number",r)),new Intl.NumberFormat(t,n)})),Yt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?n=Kt("date",r):0===Object.keys(n).length&&(n=Kt("date","short")),new Intl.DateTimeFormat(t,n)})),Zt=Xt((e=>{var{locale:t,format:r}=e,n=Rt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?n=Kt("time",r):0===Object.keys(n).length&&(n=Kt("time","short")),new Intl.DateTimeFormat(t,n)})),Wt=Xt(((e,t=Vt())=>new Tt(e,t,Gt().formats,{ignoreTag:Gt().ignoreTag}))),Jt=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Vt(),default:l}=s;if(null==c)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=_t(e,c);if(h){if("string"!=typeof h)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h}else h=null!==(o=null!==(i=null===(n=(r=Gt()).handleMissingMessage)||void 0===n?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))&&void 0!==i?i:l)&&void 0!==o?o:e;if(!a)return h;let u=h;try{u=Wt(h,c).format(a)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},qt=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return Zt(Object.assign({locale:t},r))})(t).format(e),Qt=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return Yt(Object.assign({locale:t},r))})(t).format(e),er=(e,t)=>((e={})=>{var{locale:t=Vt()}=e,r=Rt(e,["locale"]);return zt(Object.assign({locale:t},r))})(t).format(e),tr=(e,t=Vt())=>_t(e,t),rr=D([jt,St],(()=>Jt));function nr(e,t){Ct(e,t)}D([jt],(()=>qt)),D([jt],(()=>Qt)),D([jt],(()=>er)),D([jt,St],(()=>tr));const ir={en:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"A new verification code has been sent to your phone number.",activate:"Activate Account",resend:"Resend",loginSMSHint:"A new verification code has been sent to your phone number"}},"zh-hk":{smsVerification:{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"}},fr:{smsVerification:{title:"Veuillez entrer le code de vérification que vous avez reçu sur votre numéro",errorTitle:"Votre code n'était pas valide, vous pouvez renvoyer le code et réessayer",code:"Code SMS",smsCodeError:"Code sms invalide, vous pouvez renvoyer le code",resendMessage:"Un nouveau code de vérification a été envoyé à votre numéro de téléphone.",activate:"Activer le compte",resend:"Renvoyer"}},tr:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Telefon numaranıza yeni bir doğrulama kodu gönderildi.",activate:"Activate Account",resend:"Resend"}},ro:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Un nou cod de verificare a fost trimis catre numarul dumneavoastra.",activate:"Activate Account",resend:"Resend"}},es:{smsVerification:{title:"Por favor ingrese su código de verificación enviado por mensaje de texto a su número de telefono",errorTitle:"Su código es invalido",code:"Código SMS",smsCodeError:"Código SMS invalido",resendMessage:"Un nuevo codigo de verificación ha sido enviado a tu número celular.",activate:"Activar Cuenta",resend:"Reenviar"}},pt:{smsVerification:{title:"Please enter the verification code you received on your number",errorTitle:"Your code was invalid, you can resend the code and try again",code:"Sms code",smsCodeError:"Invalid sms code, you can resend the code",resendMessage:"Um novo código de verificação foi enviado para o seu número de telefone.",activate:"Activate Account",resend:"Resend"}}};
571
571
  /* src/GeneralPlayerSmsVerificationForm.svelte generated by Svelte v3.48.0 */function or(e){let t,r=/*$_*/e[5]("smsVerification.errorTitle")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("smsVerification.errorTitle")+"")&&d(t,r)},d(e){e&&l(t)}}}
572
572
  // (155:4) {#if isSmsValid}
573
573
  function sr(e){let t,r=/*$_*/e[5]("smsVerification.title")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("smsVerification.title")+"")&&d(t,r)},d(e){e&&l(t)}}}
@@ -577,8 +577,8 @@ function ar(e){let t,r,n=/*$_*/e[5]("smsVerification.smsCodeError")+"";return{c(
577
577
  function cr(e){let t,r,n=/*$_*/e[5]("smsVerification.resendMessage")+"";return{c(){t=h("p"),r=u(n),m(t,"class","SmsVerificationResendMessage"),m(t,"part","SmsVerificationResendMessage")},m(e,n){c(e,t,n),a(t,r)},p(e,t){/*$_*/32&t&&n!==(n=/*$_*/e[5]("smsVerification.resendMessage")+"")&&d(r,n)},d(e){e&&l(t)}}}
578
578
  // (188:35) {#if timer}
579
579
  function lr(e){let t,r,n,i,o,s=/*secondsLeft*/e[4]<10?"0":"";return{c(){t=h("span"),r=u("(0:"),n=u(s),i=u(/*secondsLeft*/e[4]),o=u(")"),m(t,"class","SmsVerificationResendTimer")},m(e,s){c(e,t,s),a(t,r),a(t,n),a(t,i),a(t,o)},p(e,t){/*secondsLeft*/16&t&&s!==(s=/*secondsLeft*/e[4]<10?"0":"")&&d(n,s),/*secondsLeft*/16&t&&d(i,/*secondsLeft*/e[4])},d(e){e&&l(t)}}}function hr(t){let r,i,o,s,b,y,E,v,T,H,B,_,A,S,P,L,C,I,w,N,M,O,R,U=/*$_*/t[5]("smsVerification.code")+"",G=/*$_*/t[5]("smsVerification.activate")+"",D=/*$_*/t[5]("smsVerification.resend")+"";function F(e,t){/*isSmsValid*/
580
- return e[2]?sr:or}let $=F(t),k=$(t),x=!/*isSmsValid*/t[2]&&ar(t),V=/*timer*/t[3]&&cr(t),j=/*timer*/t[3]&&lr(t);return{c(){r=h("div"),i=h("h3"),k.c(),o=f(),s=h("div"),b=h("label"),y=u(U),E=u(":"),v=h("span"),v.textContent="*",T=f(),H=h("input"),B=f(),x&&x.c(),S=f(),V&&V.c(),P=f(),L=h("button"),C=u(G),I=f(),w=h("button"),N=u(D),M=f(),j&&j.c(),this.c=e,m(i,"class","Title"),m(i,"part","Title"),m(v,"class","FormRequired"),m(v,"part","FormRequired"),m(b,"for","SmsCode"),m(H,"type","text"),m(H,"id","SmsCode"),m(H,"inputmode","numeric"),m(H,"pattern","[0-9]*"),m(H,"maxlength","6"),m(s,"class",_="Field SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(s,"part",A="SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(L,"class","Button SmsVerificationValidate"),m(L,"part","SmsVerificationValidate"),m(w,"class","Button SmsVerificationResend"),m(w,"part","SmsVerificationResend"),w.disabled=/*timer*/t[3],m(r,"class","Container SmsVerificationContainer"),m(r,"part","SmsVerificationContainer")},m(e,n){c(e,r,n),a(r,i),k.m(i,null),a(r,o),a(r,s),a(s,b),a(b,y),a(b,E),a(b,v),a(s,T),a(s,H),g(H,/*smsCode*/t[1]),a(s,B),x&&x.m(s,null),a(r,S),V&&V.m(r,null),a(r,P),a(r,L),a(L,C),a(r,I),a(r,w),a(w,N),a(w,M),j&&j.m(w,null)
581
- /*div1_binding*/,t[19](r),O||(R=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(L,"click",/*activateUser*/t[6]),p(w,"click",/*resendCode*/t[7])],O=!0)},p(e,[t]){$===($=F(e))&&k?k.p(e,t):(k.d(1),k=$(e),k&&(k.c(),k.m(i,null))),/*$_*/32&t&&U!==(U=/*$_*/e[5]("smsVerification.code")+"")&&d(y,U),/*smsCode*/2&t&&H.value!==/*smsCode*/e[1]&&g(H,/*smsCode*/e[1]),/*isSmsValid*/e[2]?x&&(x.d(1),x=null):x?x.p(e,t):(x=ar(e),x.c(),x.m(s,null)),/*isSmsValid*/4&t&&_!==(_="Field SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"class",_),/*isSmsValid*/4&t&&A!==(A="SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"part",A),/*timer*/e[3]?V?V.p(e,t):(V=cr(e),V.c(),V.m(r,P)):V&&(V.d(1),V=null),/*$_*/32&t&&G!==(G=/*$_*/e[5]("smsVerification.activate")+"")&&d(C,G),/*$_*/32&t&&D!==(D=/*$_*/e[5]("smsVerification.resend")+"")&&d(N,D),/*timer*/e[3]?j?j.p(e,t):(j=lr(e),j.c(),j.m(w,null)):j&&(j.d(1),j=null),/*timer*/8&t&&(w.disabled=/*timer*/e[3])},i:e,o:e,d(e){e&&l(r),k.d(),x&&x.d(),V&&V.d(),j&&j.d()
580
+ return e[2]?sr:or}let k=F(t),$=k(t),x=!/*isSmsValid*/t[2]&&ar(t),V=/*timer*/t[3]&&cr(t),j=/*timer*/t[3]&&lr(t);return{c(){r=h("div"),i=h("h3"),$.c(),o=f(),s=h("div"),b=h("label"),y=u(U),E=u(":"),v=h("span"),v.textContent="*",T=f(),H=h("input"),B=f(),x&&x.c(),S=f(),V&&V.c(),P=f(),L=h("button"),C=u(G),I=f(),w=h("button"),N=u(D),M=f(),j&&j.c(),this.c=e,m(i,"class","Title"),m(i,"part","Title"),m(v,"class","FormRequired"),m(v,"part","FormRequired"),m(b,"for","SmsCode"),m(H,"type","text"),m(H,"id","SmsCode"),m(H,"inputmode","numeric"),m(H,"pattern","[0-9]*"),m(H,"maxlength","6"),m(s,"class",_="Field SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(s,"part",A="SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(L,"class","Button SmsVerificationValidate"),m(L,"part","SmsVerificationValidate"),m(w,"class","Button SmsVerificationResend"),m(w,"part","SmsVerificationResend"),w.disabled=/*timer*/t[3],m(r,"class","Container SmsVerificationContainer"),m(r,"part","SmsVerificationContainer")},m(e,n){c(e,r,n),a(r,i),$.m(i,null),a(r,o),a(r,s),a(s,b),a(b,y),a(b,E),a(b,v),a(s,T),a(s,H),g(H,/*smsCode*/t[1]),a(s,B),x&&x.m(s,null),a(r,S),V&&V.m(r,null),a(r,P),a(r,L),a(L,C),a(r,I),a(r,w),a(w,N),a(w,M),j&&j.m(w,null)
581
+ /*div1_binding*/,t[19](r),O||(R=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(L,"click",/*activateUser*/t[6]),p(w,"click",/*resendCode*/t[7])],O=!0)},p(e,[t]){k===(k=F(e))&&$?$.p(e,t):($.d(1),$=k(e),$&&($.c(),$.m(i,null))),/*$_*/32&t&&U!==(U=/*$_*/e[5]("smsVerification.code")+"")&&d(y,U),/*smsCode*/2&t&&H.value!==/*smsCode*/e[1]&&g(H,/*smsCode*/e[1]),/*isSmsValid*/e[2]?x&&(x.d(1),x=null):x?x.p(e,t):(x=ar(e),x.c(),x.m(s,null)),/*isSmsValid*/4&t&&_!==(_="Field SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"class",_),/*isSmsValid*/4&t&&A!==(A="SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"part",A),/*timer*/e[3]?V?V.p(e,t):(V=cr(e),V.c(),V.m(r,P)):V&&(V.d(1),V=null),/*$_*/32&t&&G!==(G=/*$_*/e[5]("smsVerification.activate")+"")&&d(C,G),/*$_*/32&t&&D!==(D=/*$_*/e[5]("smsVerification.resend")+"")&&d(N,D),/*timer*/e[3]?j?j.p(e,t):(j=lr(e),j.c(),j.m(w,null)):j&&(j.d(1),j=null),/*timer*/8&t&&(w.disabled=/*timer*/e[3])},i:e,o:e,d(e){e&&l(r),$.d(),x&&x.d(),V&&V.d(),j&&j.d()
582
582
  /*div1_binding*/,t[19](null),O=!1,n(R)}}}function ur(e,t,r){let n;var i,o;i=rr,o=e=>r(5,n=e),e.$$.on_destroy.push(s(i,o));let a,c,l,{endpoint:h=""}=t,{tokenid:u=""}=t,{playerid:f=""}=t,{smstemplate:p="Please use this code {0} to activate your accout"}=t,{number:m=""}=t,{clientstyling:d=""}=t,{clientstylingurl:g=""}=t,{translationurl:b=""}=t,y=!0,E=!1,T=+localStorage.getItem("smsTimer")||0,B=Date.now()/1e3-T,_=60-Math.floor(B);const A={numeric:/^[0-9]{0,6}$/};!function({withLocale:e,translations:t}){jt.subscribe((r=>{null==r&&(St.set(t),jt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
583
583
  /*dictionary.set(translations);
584
584
  locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(ir).forEach((e=>{nr(e,ir[e])}));const S=()=>{_>0?r(4,_--,_):(clearInterval(c),r(3,c=!1),r(4,_=60))},P=()=>{B<60&&r(3,c=setInterval((()=>{S()}),1e3))},L=e=>{A.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};v((()=>{if(!f||!m){