@everymatrix/general-player-sms-verification-form 1.25.0 → 1.27.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.
|
@@ -88,16 +88,16 @@ if(!i(r))return e;const n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return
|
|
|
88
88
|
* @param {StartStopNotifier=} start
|
|
89
89
|
*/
|
|
90
90
|
function D(t,r=e){let n;const i=new Set;function s(e){if(o(t,e)&&(t=e,n)){// store is ready
|
|
91
|
-
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.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(),n=null)}}}}function
|
|
91
|
+
const e=!G.length;for(const e of i)e[1](),G.push(e,t);if(e){for(let e=0;e<G.length;e+=2)G[e][0](G[e+1]);G.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(),n=null)}}}}function k(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(),
|
|
92
92
|
// We need to set this to false because callbacks can still happen despite having unsubscribed:
|
|
93
93
|
// Callbacks might already be placed in the queue which doesn't know it should no longer
|
|
94
94
|
// invoke this derived store.
|
|
95
|
-
o=!1}},{subscribe:D(o,h).subscribe};var h}var
|
|
95
|
+
o=!1}},{subscribe:D(o,h).subscribe};var h}var $=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===F}(e)}
|
|
96
96
|
// see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
|
|
97
|
-
(e)};var
|
|
97
|
+
(e)};var F="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function x(e,t){return!1!==t.clone&&t.isMergeableObject(e)?z((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function j(e,t,r){return e.concat(t).map((function(e){return x(e,r)}))}function V(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function X(e,t){try{return t in e}catch(e){return!1}}
|
|
98
98
|
// Protects from prototype poisoning and unexpected merging up the prototype chain.
|
|
99
99
|
function K(e,t,r){var n={};return r.isMergeableObject(e)&&V(e).forEach((function(t){n[t]=x(e[t],r)})),V(t).forEach((function(i){(function(e,t){return X(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t));// and also unsafe if they're nonenumerable.
|
|
100
|
-
})(e,i)||(X(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return z;var r=t.customMerge(e);return"function"==typeof r?r:z}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject
|
|
100
|
+
})(e,i)||(X(e,i)&&r.isMergeableObject(t[i])?n[i]=function(e,t){if(!t.customMerge)return z;var r=t.customMerge(e);return"function"==typeof r?r:z}(i,r)(e[i],t[i],r):n[i]=x(t[i],r))})),n}function z(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||j,r.isMergeableObject=r.isMergeableObject||$,
|
|
101
101
|
// cloneUnlessOtherwiseSpecified is added to `options` so that custom arrayMerge()
|
|
102
102
|
// implementations can use it. The caller may not replace it.
|
|
103
103
|
r.cloneUnlessOtherwiseSpecified=x;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):K(e,t,r):x(t,r)}z.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return z(e,r,t)}),{})};var Y=z,Z=function(e,t){return Z=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])},Z(e,t)};function W(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}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var J,q,Q,ee=function(){return ee=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},ee.apply(this,arguments)};function te(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))}
|
|
@@ -299,14 +299,14 @@ t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12"
|
|
|
299
299
|
var r,n=e.language;return"root"!==n&&(r=e.maximize().region),(Pe[r||""]||Pe[n||""]||Pe["".concat(n,"-001")]||Pe["001"])[0]}var Le=new RegExp("^".concat(pe.source,"*")),Ce=new RegExp("".concat(pe.source,"*$"));function Ie(e,t){return{start:e,end:t}}
|
|
300
300
|
// #region Ponyfills
|
|
301
301
|
// Consolidate these variables up top for easier toggling during debugging
|
|
302
|
-
var Ne=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Me=!!Object.fromEntries,Re=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991}
|
|
302
|
+
var Ne=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,Me=!!Object.fromEntries,Re=!!String.prototype.codePointAt,Ue=!!String.prototype.trimStart,Ge=!!String.prototype.trimEnd,De=!!Number.isSafeInteger?Number.isSafeInteger:function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},ke=!0;try{
|
|
303
303
|
/**
|
|
304
304
|
* legacy Edge or Xbox One browser
|
|
305
305
|
* Unicode flag support: supported
|
|
306
306
|
* Pattern_Syntax support: not supported
|
|
307
307
|
* See https://github.com/formatjs/formatjs/issues/2822
|
|
308
308
|
*/
|
|
309
|
-
|
|
309
|
+
ke="a"===(null===(Se=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Se?void 0:Se[0])}catch(e){ke=!1}var $e,Fe=Ne?// Native
|
|
310
310
|
function(e,t,r){return e.startsWith(t,r)}:// For IE11
|
|
311
311
|
function(e,t,r){return e.slice(r,r+t.length)===t},xe=Oe?String.fromCodePoint:// IE11
|
|
312
312
|
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},je=
|
|
@@ -322,11 +322,11 @@ function(e){return e.replace(Ce,"")};
|
|
|
322
322
|
// Prevent minifier to translate new RegExp to literal form that might cause syntax error on IE11.
|
|
323
323
|
function ze(e,t){return new RegExp(e,t)}
|
|
324
324
|
// #endregion
|
|
325
|
-
if(
|
|
325
|
+
if(ke){
|
|
326
326
|
// Native
|
|
327
|
-
var Ye=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu")
|
|
327
|
+
var Ye=ze("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");$e=function(e,t){var r;return Ye.lastIndex=t,null!==(r=Ye.exec(e)[1])&&void 0!==r?r:""}}else
|
|
328
328
|
// IE11
|
|
329
|
-
|
|
329
|
+
$e=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 xe.apply(void 0,r)};var Ze=/** @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(J.UNMATCHED_CLOSING_TAG,Ie(this.clonePosition(),this.clonePosition()))}if(60/* `<` */===i&&!this.ignoreTag&&We(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:q.pound,location:Ie(s,this.clonePosition())})}}}return{val:n,err:null}},
|
|
330
330
|
/**
|
|
331
331
|
* A tag name must start with an ASCII lower/upper case letter. The grammar is based on the
|
|
332
332
|
* [custom element name][] except that a dash is NOT always mandatory and uppercase letters
|
|
@@ -393,7 +393,7 @@ this.bumpSpace(),this.isEOF()?this.error(J.EXPECT_ARGUMENT_CLOSING_BRACE,Ie(r,th
|
|
|
393
393
|
* Advance the parser until the end of the identifier, if it is currently on
|
|
394
394
|
* an identifier character. Return an empty string otherwise.
|
|
395
395
|
*/
|
|
396
|
-
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r
|
|
396
|
+
e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=$e(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Ie(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();
|
|
397
397
|
// Parse this range:
|
|
398
398
|
// {name, type, style}
|
|
399
399
|
// ^---^
|
|
@@ -405,7 +405,7 @@ return this.error(J.EXPECT_ARGUMENT_TYPE,Ie(o,a));case"number":case"date":case"t
|
|
|
405
405
|
// ^-------^
|
|
406
406
|
this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var l=this.clonePosition();if((b=this.parseSimpleArgStyleIfPossible()).err)return b;if(0===(p=Ke(b.val)).length)return this.error(J.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());
|
|
407
407
|
// Extract style or skeleton
|
|
408
|
-
if(c&&
|
|
408
|
+
if(c&&Fe(null==c?void 0:c.style,"::",0)){
|
|
409
409
|
// Skeleton starts with `::`.
|
|
410
410
|
var u=Xe(c.style.slice(2));if("number"===s)return(b=this.parseNumberSkeletonFromString(u,c.styleLocation)).err?b:{val:{type:q.number,value:r,location:h,style:b.val},err:null};if(0===u.length)return this.error(J.EXPECT_DATE_TIME_SKELETON,h);var f=u;
|
|
411
411
|
// Get "best match" pattern only if locale is passed, if not, let it
|
|
@@ -482,7 +482,7 @@ this.position.offset+=e<65536?1:2)}},
|
|
|
482
482
|
* following the prefix and return true. Otherwise, don't bump the parser
|
|
483
483
|
* and return false.
|
|
484
484
|
*/
|
|
485
|
-
e.prototype.bumpIf=function(e){if(
|
|
485
|
+
e.prototype.bumpIf=function(e){if(Fe(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},
|
|
486
486
|
/**
|
|
487
487
|
* Bump the parser until the pattern character is found and return `true`.
|
|
488
488
|
* Otherwise bump to the end of the file and return `false`.
|
|
@@ -576,9 +576,9 @@ this.formats=yt(e.formats,n),this.formatters=i&&i.formatters||(void 0===(o=this.
|
|
|
576
576
|
// Default format options used as the prototype of the `formats` provided to the
|
|
577
577
|
// constructor. These are used when constructing the internal Intl.NumberFormat
|
|
578
578
|
// and Intl.DateTimeFormat instances.
|
|
579
|
-
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},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"}}},e}();const Tt={},Ht=(e,t,r)=>r?(t in Tt||(Tt[t]={}),e in Tt[t]||(Tt[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Tt&&e in Tt[t])return Tt[t][e];const r=Yt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Ht(e,t,i)}};let Bt;const At=D({});function St(e){return e in Bt}function Pt(e,t){if(!St(e))return null;const r=function(e){return Bt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function wt(e,...t){delete Tt[e],At.update((r=>(r[e]=Y.all([r[e]||{},...t]),r)))}
|
|
579
|
+
e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},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"}}},e}();const Tt={},Ht=(e,t,r)=>r?(t in Tt||(Tt[t]={}),e in Tt[t]||(Tt[t][e]=r),r):r,_t=(e,t)=>{if(null==t)return;if(t in Tt&&e in Tt[t])return Tt[t][e];const r=Yt(t);for(let n=0;n<r.length;n++){const i=Pt(r[n],e);if(i)return Ht(e,t,i)}};let Bt;const At=D({});function St(e){return e in Bt}function Pt(e,t){if(!St(e))return null;const r=function(e){return Bt[e]||null}(e);return function(e,t){if(null==t)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(e>0){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(r,t)}function wt(e,...t){delete Tt[e],At.update((r=>(r[e]=Y.all([r[e]||{},...t]),r)))}k([At],(([e])=>Object.keys(e))),At.subscribe((e=>Bt=e));const Lt={};function Ct(e){return Lt[e]}function It(e){return null!=e&&Yt(e).some((e=>{var t;return null==(t=Ct(e))?void 0:t.size}))}function Nt(e,t){const r=Promise.all(t.map((t=>(function(e,t){Lt[e].delete(t),0===Lt[e].size&&delete Lt[e]}(e,t),t().then((e=>e.default||e))))));return r.then((t=>wt(e,...t)))}const Ot={};function Mt(e){if(!It(e))return e in Ot?Ot[e]:Promise.resolve();const t=function(e){return Yt(e).map((e=>{const t=Ct(e);return[e,t?[...t]:[]]})).filter((([,e])=>e.length>0))}(e);return Ot[e]=Promise.all(t.map((([e,t])=>Nt(e,t)))).then((()=>{if(It(e))return Mt(e);delete Ot[e]})),Ot[e]}const Rt={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 Ut(){return Rt}const Gt=D(!1);var Dt=Object.defineProperty,kt=Object.defineProperties,$t=Object.getOwnPropertyDescriptors,Ft=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Vt=(e,t,r)=>t in e?Dt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;let Xt;const Kt=D(null);function zt(e){return e.split("-").map(((e,t,r)=>r.slice(0,t+1).join("-"))).reverse()}function Yt(e,t=Ut().fallbackLocale){const r=zt(e);return t?[...new Set([...r,...zt(t)])]:r}function Zt(){return null!=Xt?Xt:void 0}Kt.subscribe((e=>{Xt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)}));const Wt=(Jt=((e,t)=>{for(var r in t||(t={}))xt.call(t,r)&&Vt(e,r,t[r]);if(Ft)for(var r of Ft(t))jt.call(t,r)&&Vt(e,r,t[r]);return e})({},Kt),kt(Jt,$t({set:e=>{if(e&&function(e){if(null==e)return;const t=Yt(e);for(let e=0;e<t.length;e++){const r=t[e];if(St(r))return r}}(e)&&It(e)){const{loadingDelay:t}=Ut();let r;return"undefined"!=typeof window&&null!=Zt()&&t?r=window.setTimeout((()=>Gt.set(!0)),t):Gt.set(!0),Mt(e).then((()=>{Kt.set(e)})).finally((()=>{clearTimeout(r),Gt.set(!1)}))}return Kt.set(e)}})));var Jt;const qt=e=>{const t=Object.create(null);return r=>{const n=JSON.stringify(r);return n in t?t[n]:t[n]=e(r)}};var Qt=Object.defineProperty,er=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,rr=Object.prototype.propertyIsEnumerable,nr=(e,t,r)=>t in e?Qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ir=(e,t)=>{for(var r in t||(t={}))tr.call(t,r)&&nr(e,r,t[r]);if(er)for(var r of er(t))rr.call(t,r)&&nr(e,r,t[r]);return e},or=(e,t)=>{var r={};for(var n in e)tr.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&er)for(var n of er(e))t.indexOf(n)<0&&rr.call(e,n)&&(r[n]=e[n]);return r};const sr=(e,t)=>{const{formats:r}=Ut();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},ar=qt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=sr("number",n)),new Intl.NumberFormat(r,i)})),cr=qt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=sr("date",n):0===Object.keys(i).length&&(i=sr("date","short")),new Intl.DateTimeFormat(r,i)})),lr=qt((e=>{var t=e,{locale:r,format:n}=t,i=or(t,["locale","format"]);if(null==r)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=sr("time",n):0===Object.keys(i).length&&(i=sr("time","short")),new Intl.DateTimeFormat(r,i)})),hr=qt((
|
|
580
580
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
581
|
-
(e,t=Zt())=>new vt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),ur=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Zt(),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=Ut()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return h;let u=h;try{u=hr(h,c).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},fr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return lr(ir({locale:r},n))})(t).format(e),pr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return cr(ir({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return ar(ir({locale:r},n))})(t).format(e),dr=(e,t=Zt())=>_t(e,t),gr
|
|
581
|
+
(e,t=Zt())=>new vt(e,t,Ut().formats,{ignoreTag:Ut().ignoreTag}))),ur=(e,t={})=>{var r,n,i,o;let s=t;"object"==typeof e&&(s=e,e=s.id);const{values:a,locale:c=Zt(),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=Ut()).handleMissingMessage)?void 0:n.call(r,{locale:c,id:e,defaultValue:l}))?i:l)?o:e;if(!a)return h;let u=h;try{u=hr(h,c).format(a)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u},fr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return lr(ir({locale:r},n))})(t).format(e),pr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return cr(ir({locale:r},n))})(t).format(e),mr=(e,t)=>((e={})=>{var t=e,{locale:r=Zt()}=t,n=or(t,["locale"]);return ar(ir({locale:r},n))})(t).format(e),dr=(e,t=Zt())=>_t(e,t),gr=k([Wt,At],(()=>ur));function br(e,t){wt(e,t)}k([Wt],(()=>fr)),k([Wt],(()=>pr)),k([Wt],(()=>mr)),k([Wt,At],(()=>dr));const yr={en:{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":{title:"请输入您在号码上收到的验证码",errorTitle:"您的代码无效,您可以重新发送代码并重试",code:"短信代码",smsCodeError:"短信验证码无效,请重新发送验证码",resendMessage:"新的验证码已发送至您的手机号码",activate:"激活账户",resend:"重发"},fr:{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:{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:{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:{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:{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"},hr:{title:"Unesite verifikacijski kod koji ste primili na svoj broj telefona",errorTitle:"Vaš kod je nevažeći",code:"Sms kod",smsCodeError:"Nevažeći sms kod",resendMessage:"Novi verifkacijski kod poslan je na vaš broj telefona.",activate:"Aktiviraj račun",resend:"Ponovno pošalji",loginSMSHint:"Novi verifkacijski kod poslan je na vaš broj telefona"}};
|
|
582
582
|
/* src/GeneralPlayerSmsVerificationForm.svelte generated by Svelte v3.59.2 */function Er(e){let t,r=/*$_*/e[5]("errorTitle")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("errorTitle")+"")&&d(t,r)},d(e){e&&l(t)}}}
|
|
583
583
|
// (155:4) {#if isSmsValid}
|
|
584
584
|
function vr(e){let t,r=/*$_*/e[5]("title")+"";return{c(){t=u(r)},m(e,r){c(e,t,r)},p(e,n){/*$_*/32&n&&r!==(r=/*$_*/e[5]("title")+"")&&d(t,r)},d(e){e&&l(t)}}}
|
|
@@ -588,8 +588,8 @@ function Tr(e){let t,r,n=/*$_*/e[5]("smsCodeError")+"";return{c(){t=h("p"),r=u(n
|
|
|
588
588
|
function Hr(e){let t,r,n=/*$_*/e[5]("resendMessage")+"";return{c(){t=h("p"),r=u(n),m(t,"class","SmsVerificationResendMessage")},m(e,n){c(e,t,n),a(t,r)},p(e,t){/*$_*/32&t&&n!==(n=/*$_*/e[5]("resendMessage")+"")&&d(r,n)},d(e){e&&l(t)}}}
|
|
589
589
|
// (186:19) {#if timer}
|
|
590
590
|
function _r(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 Br(t){let r,i,o,s,b,y,E,v,T,H,_,B,A,S,P,w,L,C,I,N,O,M,R=/*$_*/t[5]("code")+"",U=/*$_*/t[5]("activate")+"",G=/*$_*/t[5]("resend")+"";function D(e,t){/*isSmsValid*/
|
|
591
|
-
return e[2]?vr:Er}let
|
|
592
|
-
/*div1_binding*/,t[19](r),O||(M=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(P,"click",/*activateUser*/t[6]),p(C,"click",/*resendCode*/t[7])],O=!0)},p(e,[t]){
|
|
591
|
+
return e[2]?vr:Er}let k=D(t),$=k(t),F=!/*isSmsValid*/t[2]&&Tr(t),x=/*timer*/t[3]&&Hr(t),j=/*timer*/t[3]&&_r(t);return{c(){r=h("div"),i=h("h3"),$.c(),o=f(),s=h("div"),b=h("label"),y=u(R),E=u(":"),v=h("span"),v.textContent="*",T=f(),H=h("input"),_=f(),F&&F.c(),A=f(),x&&x.c(),S=f(),P=h("button"),w=u(U),L=f(),C=h("button"),I=u(G),N=f(),j&&j.c(),this.c=e,m(i,"class","Title"),m(v,"class","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",B="Field SmsVerificationField "+(/*isSmsValid*/t[2]?"":"InvalidField")),m(P,"class","Button SmsVerificationValidate"),m(C,"class","Button SmsVerificationResend"),C.disabled=/*timer*/t[3],m(r,"class","Container 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,_),F&&F.m(s,null),a(r,A),x&&x.m(r,null),a(r,S),a(r,P),a(P,w),a(r,L),a(r,C),a(C,I),a(C,N),j&&j.m(C,null)
|
|
592
|
+
/*div1_binding*/,t[19](r),O||(M=[p(H,"input",/*input_input_handler*/t[17]),p(H,"keydown",/*keydown_handler*/t[18]),p(P,"click",/*activateUser*/t[6]),p(C,"click",/*resendCode*/t[7])],O=!0)},p(e,[t]){k===(k=D(e))&&$?$.p(e,t):($.d(1),$=k(e),$&&($.c(),$.m(i,null))),/*$_*/32&t&&R!==(R=/*$_*/e[5]("code")+"")&&d(y,R),/*smsCode*/2&t&&H.value!==/*smsCode*/e[1]&&g(H,/*smsCode*/e[1]),/*isSmsValid*/e[2]?F&&(F.d(1),F=null):F?F.p(e,t):(F=Tr(e),F.c(),F.m(s,null)),/*isSmsValid*/4&t&&B!==(B="Field SmsVerificationField "+(/*isSmsValid*/e[2]?"":"InvalidField"))&&m(s,"class",B),/*timer*/e[3]?x?x.p(e,t):(x=Hr(e),x.c(),x.m(r,S)):x&&(x.d(1),x=null),/*$_*/32&t&&U!==(U=/*$_*/e[5]("activate")+"")&&d(w,U),/*$_*/32&t&&G!==(G=/*$_*/e[5]("resend")+"")&&d(I,G),/*timer*/e[3]?j?j.p(e,t):(j=_r(e),j.c(),j.m(C,null)):j&&(j.d(1),j=null),/*timer*/8&t&&(C.disabled=/*timer*/e[3])},i:e,o:e,d(e){e&&l(r),$.d(),F&&F.d(),x&&x.d(),j&&j.d()
|
|
593
593
|
/*div1_binding*/,t[19](null),O=!1,n(M)}}}function Ar(e,t,r){let n;var i,o;i=gr,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,_=Date.now()/1e3-T,B=60-Math.floor(_);const A={numeric:/^[0-9]{0,6}$/};!function({withLocale:e,translations:t}){Wt.subscribe((r=>{null==r&&(At.set(t),Wt.set(e))}));// maybe we will need this to make sure that the i18n is set up only once
|
|
594
594
|
/*dictionary.set(translations);
|
|
595
595
|
locale.set(_locale);*/}({withLocale:"en",translations:{}});Object.keys(yr).forEach((e=>{br(e,yr[e])}));const S=()=>{B>0?r(4,B--,B):(clearInterval(c),r(3,c=!1),r(4,B=60))},P=()=>{_<60&&r(3,c=setInterval((()=>{S()}),1e3))},w=e=>{A.numeric.test(e.key)||8===e.keyCode||9===e.keyCode||46===e.keyCode||e.preventDefault()};v((()=>{if(!f||!m){
|