@streamlayer/react 0.15.2 → 0.15.3

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.
package/lib/cjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var Pd=Object.defineProperty;var Ud=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $=(e,t,n)=>(Ud(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),Fd=require("react-digit-input"),Oe=require("nanostores"),Qe=require("@nanostores/react");var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ri(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dl={exports:{}},or={};/**
1
+ "use strict";var Pd=Object.defineProperty;var Ud=(e,t,n)=>t in e?Pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $=(e,t,n)=>(Ud(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("react"),Fd=require("react-digit-input"),De=require("nanostores"),Qe=require("@nanostores/react");var Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ai(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dl={exports:{}},or={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,38 +6,38 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var zd=x,Bd=Symbol.for("react.element"),Gd=Symbol.for("react.fragment"),Qd=Object.prototype.hasOwnProperty,Yd=zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vd={key:!0,ref:!0,__self:!0,__source:!0};function wl(e,t,n){var r,a={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Qd.call(t,r)&&!Vd.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:Bd,type:e,key:i,ref:s,props:a,_owner:Yd.current}}or.Fragment=Gd;or.jsx=wl;or.jsxs=wl;Dl.exports=or;var T=Dl.exports;const ai="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";function Wd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Hd=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wr=Wd(function(e){return Hd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qd=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];t.forEach(i=>{(i?i.split(" "):[]).forEach(o=>{if(o.startsWith("atm_")){const[,u]=o.split("_");n[u]=o}else r.push(o)})});const a=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.push(n[i]);return a.push(...r),a.join(" ")},Pi=qd,Zd=e=>e.toUpperCase()===e,Kd=e=>t=>e.indexOf(t)===-1,_l=(e,t)=>{const n={};return Object.keys(e).filter(Kd(t)).forEach(r=>{n[r]=e[r]}),n};function Jd(e,t,n){const r=_l(t,n);if(!e){const a=typeof wr=="function"?{default:wr}:wr;Object.keys(r).forEach(i=>{a.default(i)||delete r[i]})}return r}var Xd=(e,t)=>{};function em(e){let t="";return n=>{const r=(i,s)=>{const{as:o=e,class:u=t}=i,m=n.propsAsIs===void 0?!(typeof o=="string"&&o.indexOf("-")===-1&&!Zd(o[0])):n.propsAsIs,p=Jd(m,i,["as","class"]);p.ref=s,p.className=n.atomic?Pi(n.class,p.className||u):Pi(p.className||u,n.class);const{vars:g}=n;if(g){const y={};for(const S in g){const _=g[S],v=_[0],O=_[1]||"",L=typeof v=="function"?v(i):v;Xd(L,n.name),y[`--${S}`]=`${L}${O}`}const k=p.style||{},M=Object.keys(k);M.length>0&&M.forEach(S=>{y[S]=k[S]}),p.style=y}return e.__linaria&&e!==o?(p.as=o,x.createElement(e,p)):x.createElement(o,p)},a=x.forwardRef?x.forwardRef(r):i=>{const s=_l(i,["innerRef"]);return r(s,i.innerRef)};return a.displayName=n.name,a.__linaria={className:n.class||t,extends:e},a}}var A=em;const tm=A("div")({name:"Container",class:"ckoy5c4",propsAsIs:!1}),nm=A("div")({name:"IconWrap",class:"iw4llh0",propsAsIs:!1}),rm=A("img")({name:"Icon",class:"iozvwfv",propsAsIs:!1}),am=A("div")({name:"Content",class:"c164tv0p",propsAsIs:!1}),im=A("div")({name:"TitleWrap",class:"ta68x03",propsAsIs:!1}),sm=A("div")({name:"Title",class:"t12bcygg",propsAsIs:!1}),om=A("div")({name:"CloseBtnWrap",class:"c1k4u90",propsAsIs:!1}),lm=A("button")({name:"CloseBtn",class:"cha9bhb",propsAsIs:!1}),um=A("img")({name:"CloseIcon",class:"c142dxkd",propsAsIs:!1}),cm=({title:e="",icon:t,color:n,openVoiting:r,closeInApp:a})=>{const i=x.useCallback(s=>{s.stopPropagation(),a()},[a]);return T.jsxs(tm,{onClick:r,children:[T.jsx(nm,{style:n?{backgroundColor:n}:{},children:!!t&&T.jsx(rm,{alt:"in-app-icon",src:t})}),T.jsxs(am,{children:[T.jsx(im,{children:T.jsx(sm,{id:"in-app-title",children:e})}),T.jsx(om,{children:T.jsx(lm,{onClick:i,children:T.jsx(um,{alt:"close-in-app-icon",src:ai})})})]})]})},Cl={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([3-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|510|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[04]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9]|983[29])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","200\\d{6}|(?:33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var xl={exports:{}},dm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mm=dm,fm=mm;function jl(){}function Rl(){}Rl.resetWarningCache=jl;var pm=function(){function e(r,a,i,s,o,u){if(u!==fm){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Rl,resetWarningCache:jl};return n.PropTypes=n,n};xl.exports=pm();var ym=xl.exports;const R=ri(ym);var Ll={exports:{}};/*!
9
+ */var zd=x,Bd=Symbol.for("react.element"),Gd=Symbol.for("react.fragment"),Qd=Object.prototype.hasOwnProperty,Yd=zd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Vd={key:!0,ref:!0,__self:!0,__source:!0};function wl(e,t,n){var r,a={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)Qd.call(t,r)&&!Vd.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)a[r]===void 0&&(a[r]=t[r]);return{$$typeof:Bd,type:e,key:i,ref:s,props:a,_owner:Yd.current}}or.Fragment=Gd;or.jsx=wl;or.jsxs=wl;Dl.exports=or;var T=Dl.exports;const ii="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICA8cmVjdCB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHJ4PSIxMiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4xIi8+CiAgPHJlY3QgeD0iOC4yNSIgeT0iNyIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcpIiBmaWxsPSJ3aGl0ZSIvPgogIDxyZWN0IHg9IjciIHk9IjE1Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSA3IDE1Ljc1KSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";function Wd(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Hd=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,wr=Wd(function(e){return Hd.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qd=function(){const t=Array.prototype.slice.call(arguments).filter(Boolean),n={},r=[];t.forEach(i=>{(i?i.split(" "):[]).forEach(o=>{if(o.startsWith("atm_")){const[,u]=o.split("_");n[u]=o}else r.push(o)})});const a=[];for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.push(n[i]);return a.push(...r),a.join(" ")},Ui=qd,Zd=e=>e.toUpperCase()===e,Kd=e=>t=>e.indexOf(t)===-1,_l=(e,t)=>{const n={};return Object.keys(e).filter(Kd(t)).forEach(r=>{n[r]=e[r]}),n};function Jd(e,t,n){const r=_l(t,n);if(!e){const a=typeof wr=="function"?{default:wr}:wr;Object.keys(r).forEach(i=>{a.default(i)||delete r[i]})}return r}var Xd=(e,t)=>{};function em(e){let t="";return n=>{const r=(i,s)=>{const{as:o=e,class:u=t}=i,m=n.propsAsIs===void 0?!(typeof o=="string"&&o.indexOf("-")===-1&&!Zd(o[0])):n.propsAsIs,p=Jd(m,i,["as","class"]);p.ref=s,p.className=n.atomic?Ui(n.class,p.className||u):Ui(p.className||u,n.class);const{vars:g}=n;if(g){const y={};for(const S in g){const _=g[S],v=_[0],O=_[1]||"",L=typeof v=="function"?v(i):v;Xd(L,n.name),y[`--${S}`]=`${L}${O}`}const k=p.style||{},M=Object.keys(k);M.length>0&&M.forEach(S=>{y[S]=k[S]}),p.style=y}return e.__linaria&&e!==o?(p.as=o,x.createElement(e,p)):x.createElement(o,p)},a=x.forwardRef?x.forwardRef(r):i=>{const s=_l(i,["innerRef"]);return r(s,i.innerRef)};return a.displayName=n.name,a.__linaria={className:n.class||t,extends:e},a}}var A=em;const tm=A("div")({name:"Container",class:"ckoy5c4",propsAsIs:!1}),nm=A("div")({name:"IconWrap",class:"iw4llh0",propsAsIs:!1}),rm=A("img")({name:"Icon",class:"iozvwfv",propsAsIs:!1}),am=A("div")({name:"Content",class:"c164tv0p",propsAsIs:!1}),im=A("div")({name:"TitleWrap",class:"ta68x03",propsAsIs:!1}),sm=A("div")({name:"Title",class:"t12bcygg",propsAsIs:!1}),om=A("div")({name:"CloseBtnWrap",class:"c1k4u90",propsAsIs:!1}),lm=A("button")({name:"CloseBtn",class:"cha9bhb",propsAsIs:!1}),um=A("img")({name:"CloseIcon",class:"c142dxkd",propsAsIs:!1}),cm=({title:e="",icon:t,color:n,openVoiting:r,closeInApp:a})=>{const i=x.useCallback(s=>{s.stopPropagation(),a()},[a]);return T.jsxs(tm,{onClick:r,children:[T.jsx(nm,{style:n?{backgroundColor:n}:{},children:!!t&&T.jsx(rm,{alt:"in-app-icon",src:t})}),T.jsxs(am,{children:[T.jsx(im,{children:T.jsx(sm,{id:"in-app-title",children:e})}),T.jsx(om,{children:T.jsx(lm,{onClick:i,children:T.jsx(um,{alt:"close-in-app-icon",src:ii})})})]})]})},Cl={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[46])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|8(?:51(?:0(?:0[03-9]|[12479]\\d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]\\d|1[0-69]|4[0-589]|7[0-47-9])|2(?:0[0-79]|[18][13579]|2[14-9]|3[0-46-9]|[4-6]\\d|7[89]|9[0-4]))|(?:6[0-8]|[78]\\d)\\d{3}|9(?:[02-9]\\d{3}|1(?:(?:[0-58]\\d|6[0135-9])\\d|7(?:0[0-24-9]|[1-9]\\d)|9(?:[0-46-9]\\d|5[0-79])))))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],"0$1"],["(\\d{4})(\\d{3,6})","$1-$2",["[13-9]|22"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[025-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","[24-689]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]]],BL:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:2[7-9]|3[3-7]|5[12]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-467]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]"]],["(\\d{8})","$1",["[67]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[17]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-68]|7[246]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|7"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","(?:[2-8]\\d|90)\\d{8}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:00|2[125-9]|33|44|66|77|88)|622)[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","[189]\\d{8}|[1-68]\\d{6}",[7,9],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[1-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],"0"],CF:["236","00","(?:[27]\\d{3}|8776)\\d{4}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9[2-9]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-9]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",[10,11],[["(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","[27]\\d{6,7}|[34]\\d{5,7}|63\\d{6}|(?:5|8\\d\\d)\\d{7}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:(?:79|94)[01]|83[0-389])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[0-26-9]|7[02-8]|8[0-24-9]|9[0-37-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,"528[89]"],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","[5-9]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-9]"]]]],ET:["251","00","(?:11|[2-579]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{6})","$1",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,0,0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-79])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|50))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-2]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","[56]94\\d{6}|(?:80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[56]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","(?:[235]\\d{3}|800)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[2-9]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([3-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","9008\\d{3}|(?:[2-467]\\d\\d|510|862)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",[6,7,8,9],[["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["6[01]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{4})(\\d{3})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-5]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","(?:[2-489]\\d|55)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1[2-9])","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-7]|80[2-46]","11|2[02]|33|4[04]|79(?:[1-6]|7[19])|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9])|7(?:1|9[1-6]))|80(?:[2-4]|6[0-589])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1(?:2[0-249]|3[0-25]|4[145]|[68]|7[1257])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|5[12]|[78]1)|6(?:12|[2-4]1|5[17]|6[13]|80)|7(?:12|3[134]|4[47]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67|72)[14]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|674|7(?:(?:2[14]|3[34]|5[15])[2-6]|61[346]|88[0-8])|8(?:70[2-6]|84[235-7]|91[3-7])|(?:1(?:29|60|8[06])|261|552|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))[2-7]","1(?:2[0-24]|3[0-25]|4[145]|[59][14]|6[1-9]|7[1257]|8[1-57-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[058]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12(?:[2-6]|7[0-8])|74[2-7])|7(?:(?:2[14]|5[15])[2-6]|3171|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|(?:74[47]|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[2-6]|7[19])|(?:1(?:29|60|8[06])|261|552|6(?:[2-4]1|5[17]|6[13]|7(?:1|4[0189])|80)|7(?:12|88[01]))[2-7]"],"0$1",1],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2[2457-9]|3[2-5]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1[013-9]|28|3[129]|4[1-35689]|5[29]|6[02-5]|70)|807","1(?:[2-479]|5[0235-9])|[2-5]|6(?:1[1358]|2(?:[2457]|84|95)|3(?:[2-4]|55)|4[235-7]|5[2-689]|6[24578]|7[235689]|8[1-6])|7(?:1(?:[013-8]|9[6-9])|28[6-8]|3(?:17|2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4|5[0-367])|70[13-7])|807[19]","1(?:[2-479]|5(?:[0236-9]|5[013-9]))|[2-5]|6(?:2(?:84|95)|355|83)|73179|807(?:1|9[1-3])|(?:1552|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])\\d|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-57])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]\\d|8[0-24-7])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4\\d|5[0-367])|70[13-7]))[2-7]"],"0$1",1],["(\\d{5})(\\d{5})","$1 $2",["[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["1(?:6|8[06])","1(?:6|8[06]0)"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]"]],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[13-57-9][0159]|14"]],["(\\d{2})(\\d{4})(\\d{5})","$1 $2 $3",["0[26]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["3"]]],0,0,0,0,0,0,[["0669[0-79]\\d{1,6}|0(?:1(?:[0159]\\d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2\\d\\d|3(?:[0159]\\d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]\\d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]\\d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]\\d|6[0-8])|7(?:[0159]\\d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]\\d|2[3-578]|3[1-356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[1-9]\\d{8}|3[2-9]\\d{7}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],0,0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[257-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["[36]|4(?:2[09]|7[01])","[36]|4(?:2(?:0|9[02-69])|7(?:0[019]|1))"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[257-9]"],"0$1"]],"0",0,"(000[259]\\d{6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"33|7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["30[013-9]"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",1]],"8",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,5})","$1 $2 $3 $4",["[3-57]|8[13-9]|9(?:0[89]|[2-579])|(?:2|80)[2-9]"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5[45]"],"0$1"],["(\\d{4})(\\d{5})","$1-$2",["5(?:2[2-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],["(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],"0",0,0,0,0,0,[["5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}"],["80\\d{7}"],["89\\d{7}"],0,0,0,0,["592(?:4[0-2]|93)\\d{4}"]]],MC:["377","00","(?:[3489]|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["6"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","590\\d{6}|(?:69|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["590(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)\\d{4}"],["69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}"],["80[0-5]\\d{6}"],0,0,0,0,0,["9(?:(?:395|76[018])\\d|475[0-5])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","596\\d{6}|(?:69|80|9\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[137-9]"],"0$1"]],"0"],MX:["52","0[09]","1(?:(?:[27]2|44|87|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-69]|9[1-8])|[2-9]\\d)\\d{8}",[10,11],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],0,1],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],0,1],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],0,1]],"01",0,"0(?:[12]|4[45])|1",0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[047]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",[7,8,10,11,12,13,14],[["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:444|(?:55|8\\d)\\d|666)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]]],NU:["683","00","(?:[47]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])1","(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[45]\\d{5}|(?:708|80\\d)\\d{6}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36]"],"(0$1)"],["(\\d{3})(\\d{4,5})","$1 $2",["2[279]|3[13-5]|4[359]|5|6(?:[34]|7[1-46-8])|7[46-8]|85"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2[14-68]|3[26-9]|4[1246-8]|6(?:1|75)|7[1-35]|8[1-36]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["87"]],["(\\d{3})(\\d{6})","$1 $2",["9(?:[5-79]|8[1-6])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],"0",0,0,0,0,0,[["26(?:2\\d\\d|3(?:0\\d|1[0-6]))\\d{4}"],["69(?:2\\d\\d|3(?:[06][0-6]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-5]|76(?:2[27]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[237-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"3[04-689]|[489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","92\\d{7}|(?:[15]|8\\d)\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["81"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","(?:[1-6]|[7-9]\\d\\d)\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","800\\d{4}|(?:[249]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-8]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[0139]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1/$2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1/$2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d)(\\d{7})","$1 $2",["(?:2|90)4|[67]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[348]|64|79|90"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|6[0-35-9]|77|9[2-9]"]]],"0"],SR:["597","00","(?:[2-5]|68|[78]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-8]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[267]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-39]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-5]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[69]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","[0-57-9]\\d{8}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[04]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-6]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["6"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5(?:[0-59]|61)","5(?:[0-59]|61[06])","5(?:[0-59]|61[06]1)"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[258]0"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-47-9])|7[1-9]","[23568]|4(?:0[2-48]|[1-47-9])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[27-9]|4(?:6[45]|[7-9])"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[34]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["5056(?:[0-35-9]\\d|4[46])\\d{4}|(?:4722|505[2-57-9]|983[29])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|33|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",[6,7,8,9,10,11,12,13],[["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","810","200\\d{6}|(?:33|[5-79]\\d|88)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",1],["(\\d{4})(\\d{4,6})","$1 $2",["1"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[23]"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:80|9\\d)\\d{7}|(?:26|63)9\\d{6}",[9],0,"0",0,0,0,0,0,[["269(?:0[0-467]|5[0-4]|6\\d|[78]0)\\d{4}"],["639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|63|[79]\\d)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],"0"],ZW:["263","00","2(?:[0-57-9]\\d{6,8}|6[0-24-9]\\d{6,7})|[38]\\d{9}|[35-8]\\d{8}|[3-6]\\d{7}|[1-689]\\d{6}|[1-3569]\\d{5}|[1356]\\d{4}",[5,6,7,8,9,10],[["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|2[278]|[49]8)|3(?:[09]8|17)|6(?:[29]8|37|75)|[23][78]|(?:33|5[15]|6[68])[78]"],"0$1"],["(\\d)(\\d{3})(\\d{2,4})","$1 $2 $3",["[49]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["24|8[13-59]|(?:2[05-79]|39|5[45]|6[15-8])2","2(?:02[014]|4|[56]20|[79]2)|392|5(?:42|525)|6(?:[16-8]21|52[013])|8[13-59]"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:1[39]|2[0157]|[378]|[56][14])|3(?:12|29)","2(?:1[39]|2[0157]|[378]|[56][14])|3(?:123|29)"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|12|29|[56])|3(?:1[0-689]|[24-6])|5(?:[0236-9]|1[2-4])|6(?:[013-59]|7[0-46-9])|(?:33|55|6[68])[0-69]|(?:29|3[09]|62)[0-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]|39|54"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["(?:25|54)8","258|5483"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[35-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|51"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",[7,8,9,10,12]],0,0,0,0,0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};var xl={exports:{}},dm="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",mm=dm,fm=mm;function jl(){}function Rl(){}Rl.resetWarningCache=jl;var pm=function(){function e(r,a,i,s,o,u){if(u!==fm){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Rl,resetWarningCache:jl};return n.PropTypes=n,n};xl.exports=pm();var ym=xl.exports;const R=ai(ym);var Ll={exports:{}};/*!
10
10
  Copyright (c) 2018 Jed Watson.
11
11
  Licensed under the MIT License (MIT), see
12
12
  http://jedwatson.github.io/classnames
13
- */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&r.push(o)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ll);var gm=Ll.exports;const Vn=ri(gm);function hm(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function Tm(e,t,n){for(var r="",a=0,i=0;i<e.length;){var s=n(e[i],r);s!==void 0&&(r+=s,t!==void 0&&(t===i?a=r.length-1:t>i&&(a=r.length))),i++}t===void 0&&(a=r.length);var o={value:r,caret:a};return o}function km(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Nm(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nm(e,t){if(e){if(typeof e=="string")return Ui(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ui(e,t)}}function Ui(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fa(e,t){for(var n=0,r=km(t.split("")),a;!(a=r()).done;){var i=a.value;i===e&&n++}return n}function bm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=fa("(",e),s=fa(")",e),o=i-s;o>0&&a<t.length;)e+=t[a].replace(n,r),t[a]===")"&&o--,a++;return e}function Mm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sm(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sm(e,t){if(e){if(typeof e=="string")return Fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(e,t)}}function Fi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Im(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=fa(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,s="",o=Mm(e.split("")),u;!(u=o()).done;){var m=u.value;if(m!==t){s+=m;continue}if(s+=a[i],i++,i===a.length&&a.length<r)break}return n&&(s=bm(s,e)),{text:s,template:e}}}function vm(e,t,n){typeof n=="string"&&(n=Im(n));var r=n(e)||{},a=r.text,i=r.template;if(a===void 0&&(a=e),i)if(t===void 0)t=a.length;else{for(var s=0,o=!1,u=-1;s<a.length&&s<i.length;){if(a[s]!==i[s]){if(t===0){o=!0,t=s;break}u=s,t--}s++}o||(t=u+1)}return{text:a,caret:t}}function $m(e){return e.hasAttribute("readonly")}function Am(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var zi={Backspace:8,Delete:46};function Em(e){switch(e.keyCode){case zi.Backspace:return"Backspace";case zi.Delete:return"Delete"}}function Om(e){return e.selectionStart}function Pl(e,t){t!==void 0&&(Dm()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function Dm(){if(typeof navigator<"u")return wm.test(navigator.userAgent)}var wm=/Android/i;function _m(e,t,n,r,a){pa(t,n,r,void 0,a)}function Cm(e,t,n,r,a){if(!$m(t)){var i=Em(e);switch(i){case"Delete":case"Backspace":e.preventDefault();var s=Am(t);return s?(xm(t,s),pa(t,n,r,void 0,a)):pa(t,n,r,i,a)}}}function xm(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,Pl(e,t.start)}function pa(e,t,n,r,a){var i=Tm(e.value,Om(e),t),s=i.value,o=i.caret;if(r){var u=hm(s,o,r);s=u.value,o=u.caret}var m=vm(s,o,n),p=m.text;o=m.caret,e.value=p,Pl(e,o),a(s)}var jm=["value","parse","format","inputComponent","onChange","onKeyDown"];function ya(){return ya=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ya.apply(this,arguments)}function Rm(e,t){if(e==null)return{};var n=Lm(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lm(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function gn(e,t){var n=e.value,r=e.parse,a=e.format,i=e.inputComponent,s=e.onChange,o=e.onKeyDown,u=Rm(e,jm),m=x.useRef(),p=x.useCallback(function(k){m.current=k,t&&(typeof t=="function"?t(k):t.current=k)},[t]),g=x.useCallback(function(k){return _m(k,m.current,r,a,s)},[m,r,a,s]),y=x.useCallback(function(k){return o&&o(k),Cm(k,m.current,r,a,s)},[m,r,a,s,o]);return x.createElement(i,ya({},u,{ref:p,value:a(Um(n)?"":n).text,onKeyDown:y,onChange:g}))}gn=x.forwardRef(gn);gn.propTypes={parse:R.func.isRequired,format:R.func.isRequired,inputComponent:R.elementType.isRequired,type:R.string.isRequired,value:R.string,onChange:R.func.isRequired,onKeyDown:R.func,onCut:R.func,onPaste:R.func};gn.defaultProps={inputComponent:"input",type:"text"};const Pm=gn;function Um(e){return e==null}function ga(e){"@babel/helpers - typeof";return ga=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ga(e)}function Bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fm(e,t,n){return t&&Bi(e.prototype,t),n&&Bi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}function Gm(e){var t=Fl();return function(){var r=Tn(e),a;if(t){var i=Tn(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Qm(this,a)}}function Qm(e,t){if(t&&(ga(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(e)}function Ul(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ha(e){var t=typeof Map=="function"?new Map:void 0;return ha=function(r){if(r===null||!Ym(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return xn(r,arguments,Tn(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),hn(a,r)},ha(e)}function xn(e,t,n){return Fl()?xn=Reflect.construct:xn=function(a,i,s){var o=[null];o.push.apply(o,i);var u=Function.bind.apply(a,o),m=new u;return s&&hn(m,s.prototype),m},xn.apply(null,arguments)}function Fl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ym(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hn(e,t){return hn=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},hn(e,t)}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tn(e)}var Xe=function(e){Bm(n,e);var t=Gm(n);function n(r){var a;return zm(this,n),a=t.call(this,r),Object.setPrototypeOf(Ul(a),n.prototype),a.name=a.constructor.name,a}return Fm(n)}(ha(Error)),ii=2,Vm=17,Wm=3,Ae="0-90-9٠-٩۰-۹",Hm="-‐-―−ー-",qm="//",Zm="..",Km="  ­​⁠ ",Jm="()()[]\\[\\]",Xm="~⁓∼~",Ye="".concat(Hm).concat(qm).concat(Zm).concat(Km).concat(Jm).concat(Xm),lr="++";function Gi(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),s=Number(r[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ef={}.constructor;function cn(e){return e!=null&&e.constructor===ef}function Ta(e){"@babel/helpers - typeof";return Ta=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ta(e)}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(e,t,n){return t&&Qi(e.prototype,t),n&&Qi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tf="1.2.0",nf="1.7.35",Yi=" ext. ",rf=/^\d+$/,he=function(){function e(t){ur(this,e),lf(t),this.metadata=t,Bl.call(this,t)}return cr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&rf.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Vi(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Vi(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),Vi=function(){function e(t,n){ur(this,e),this.globalMetadataObject=n,this.metadata=t,Bl.call(this,n.metadata)}return cr(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(a){return new af(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Wi(this.types(),n))return new of(Wi(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Yi:this.metadata[13]||Yi}}]),e}(),af=function(){function e(t,n){ur(this,e),this._format=t,this.metadata=n}return cr(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!sf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),sf=/^\(?\$1\)?$/,of=function(){function e(t,n){ur(this,e),this.type=t,this.metadata=n}return cr(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Wi(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function lf(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!cn(e)||!cn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(cn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+uf(e)+": "+e,"."))}var uf=function(t){return Ta(t)};function pt(e,t){if(t=new he(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function zl(e,t){return t.countries.hasOwnProperty(e)}function Bl(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Gi(t,tf)===-1?this.v2=!0:Gi(t,nf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var cf=";ext=",Et=function(t){return"([".concat(Ae,"]{1,").concat(t,"})")};function Gl(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",o="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",m="(?:[xx##~~]|int|int)",p="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",k=cf+Et(t),M=i+u+s+Et(t)+o,S=i+m+s+Et(r)+o,_=p+Et(a)+"#",v=g+y+s+Et(n)+o,O=g+"(?:,)+"+s+Et(r)+o;return k+"|"+M+"|"+S+"|"+_+"|"+v+"|"+O}var df="["+Ae+"]{"+ii+"}",mf="["+lr+"]{0,1}(?:["+Ye+"]*["+Ae+"]){3,}["+Ye+Ae+"]*",ff=new RegExp("^["+lr+"]{0,1}(?:["+Ye+"]*["+Ae+"]){1,2}$","i"),pf=mf+"(?:"+Gl()+")?",yf=new RegExp("^"+df+"$|^"+pf+"$","i");function gf(e){return e.length>=ii&&yf.test(e)}function hf(e){return ff.test(e)}var Hi=new RegExp("(?:"+Gl()+")$","i");function Tf(e){var t=e.search(Hi);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(Hi),a=1;a<r.length;){if(r[a])return{number:n,ext:r[a]};a++}}function kf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Nf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nf(e,t){if(e){if(typeof e=="string")return qi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qi(e,t)}}function qi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bf={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Ql(e){return bf[e]}function Wn(e){for(var t="",n=kf(e.split("")),r;!(r=n()).done;){var a=r.value,i=Ql(a);i&&(t+=i)}return t}function Mf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sf(e,t){if(e){if(typeof e=="string")return Zi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zi(e,t)}}function Zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ka(e){for(var t="",n=Mf(e.split("")),r;!(r=n()).done;){var a=r.value;t+=Yl(a,t)||""}return t}function Yl(e,t){return e==="+"?t?void 0:"+":Ql(e)}function If(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(e,t){if(e){if(typeof e=="string")return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}}function Ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $f(e,t){for(var n=e.slice(),r=If(t),a;!(a=r()).done;){var i=a.value;e.indexOf(i)<0&&n.push(i)}return n.sort(function(s,o){return s-o})}function dr(e,t){return Vl(e,void 0,t)}function Vl(e,t,n){var r=n.type(t),a=r&&r.possibleLengths()||n.possibleLengths();if(!a)return"IS_POSSIBLE";if(t==="FIXED_LINE_OR_MOBILE"){if(!n.type("FIXED_LINE"))return Vl(e,"MOBILE",n);var i=n.type("MOBILE");i&&(a=$f(a,i.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var s=e.length,o=a[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Af(e,t,n){if(t===void 0&&(t={}),n=new he(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Wl(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Wl(e,t){switch(dr(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function at(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Ef(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Of(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Of(e,t){if(e){if(typeof e=="string")return Ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ji(e,t)}}function Ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Df=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function si(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new he(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(at(r,n.nationalNumberPattern())){if(_r(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||_r(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=Ef(Df),i;!(i=a()).done;){var s=i.value;if(_r(r,s,n))return s}}}}function _r(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:at(e,t.pattern())}function wf(e,t,n){if(t=t||{},n=new he(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return si(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return at(r,n.nationalNumberPattern())}function _f(e,t,n){var r=new he(n),a=r.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return Cf(t,i,n)}):[]}function Cf(e,t,n){var r=new he(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}function Hl(e){return e.replace(new RegExp("[".concat(Ye,"]+"),"g")," ").trim()}var ql=/(\$\d)/;function Zl(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(ql,t.nationalPrefixFormattingRule()):t.format());return r?Hl(i):i}var xf=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function jf(e,t,n){var r=new he(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(xf.test(r.IDDPrefix()))return r.IDDPrefix()}function Rf(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Lf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Pf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
20
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pf(e,t){if(e){if(typeof e=="string")return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xi(e,t)}}function Xi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function es(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?es(Object(n),!0).forEach(function(r){Uf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ns={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Ff(e,t,n,r){if(n?n=ts(ts({},ns),n):n=ns,r=new he(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Hn(i,e.carrierCode,"NATIONAL",r,n),Cr(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=Hn(i,null,"INTERNATIONAL",r,n),s="+".concat(a," ").concat(s),Cr(s,e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return Rf({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var o=Bf(i,e.carrierCode,a,n.fromCountry,r);return Cr(o,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Hn(e,t,n,r,a){var i=zf(r.formats(),e);return i?Zl(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function zf(e,t){for(var n=Lf(e),r;!(r=n()).done;){var a=r.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(at(t,a.pattern()))return a}}function Cr(e,t,n,r){return t?r(e,t,n):e}function Bf(e,t,n,r,a){var i=pt(r,a.metadata);if(i===n){var s=Hn(e,t,"NATIONAL",a);return n==="1"?n+" "+s:s}var o=jf(r,void 0,a.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Hn(e,null,"INTERNATIONAL",a))}function rs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function as(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rs(Object(n),!0).forEach(function(r){Gf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yf(e,t,n){return t&&is(e.prototype,t),n&&is(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kl=function(){function e(t,n,r){if(Qf(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var a=Wf(t,r),i=a.country,s=a.countryCallingCode;this.country=i,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Yf(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:_f(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Af(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return wf(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new he(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return si(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Ff(this,n,r?as(as({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),e}(),Vf=function(t){return/^[A-Z]{2}$/.test(t)};function Wf(e,t){var n,r,a=new he(t);return Vf(e)?(n=e,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var Hf=new RegExp("(["+Ae+"])");function Jl(e,t,n,r){if(t){var a=new he(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(Hf);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function Na(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,s=r.length-1,o=s>0&&r[s];if(t.nationalPrefixTransformRule()&&o)a=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),o&&(i=r[1])}var m;if(o){var p=e.indexOf(r[1]),g=e.slice(0,p);g===t.numberingPlan.nationalPrefix()&&(m=t.numberingPlan.nationalPrefix())}else m=r[0];return{nationalNumber:a,nationalPrefix:m,carrierCode:i}}}return{nationalNumber:e}}function ba(e,t){var n=Na(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!qf(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Zf(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function qf(e,t,n){return!(at(e,n.nationalNumberPattern())&&!at(t,n.nationalNumberPattern()))}function Zf(e,t){switch(dr(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Xl(e,t,n,r){var a=t?pt(t,r):n;if(e.indexOf(a)===0){r=new he(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),s=ba(i,r),o=s.nationalNumber,u=ba(e,r),m=u.nationalNumber;if(!at(m,r.nationalNumberPattern())&&at(o,r.nationalNumberPattern())||dr(m,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function eu(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=Jl(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var s=Xl(e,t,n,r),o=s.countryCallingCode,u=s.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new he(r);for(var m=2;m-1<=Wm&&m<=e.length;){var p=e.slice(1,m);if(r.hasCallingCode(p))return r.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:e.slice(m)};m++}return{}}function Kf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Jf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jf(e,t){if(e){if(typeof e=="string")return ss(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ss(e,t)}}function ss(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tu(e,t){var n=t.countries,r=t.defaultCountry,a=t.metadata;a=new he(a);for(var i=[],s=Kf(n),o;!(o=s()).done;){var u=o.value;if(a.country(u),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return u}else if(si({phone:e,country:u},void 0,a.metadata))if(r){if(u===r)return u;i.push(u)}else return u}if(i.length>0)return i[0]}var Xf=!1;function nu(e,t){var n=t.nationalNumber,r=t.defaultCountry,a=t.metadata;if(Xf&&a.isNonGeographicCallingCode(e))return"001";var i=a.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:tu(n,{countries:i,defaultCountry:r,metadata:a.metadata})}var ru="+",ep="[\\-\\.\\(\\)]?",os="(["+Ae+"]|"+ep+")",tp="^\\"+ru+os+"*["+Ae+"]"+os+"*$",np=new RegExp(tp,"g"),Ma=Ae,rp="["+Ma+"]+((\\-)*["+Ma+"])*",ap="a-zA-Z",ip="["+ap+"]+((\\-)*["+Ma+"])*",sp="^("+rp+"\\.)*"+ip+"\\.?$",op=new RegExp(sp,"g"),ls="tel:",Sa=";phone-context=",lp=";isub=";function up(e){var t=e.indexOf(Sa);if(t<0)return null;var n=t+Sa.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function cp(e){return e===null?!0:e.length===0?!1:np.test(e)||op.test(e)}function dp(e,t){var n=t.extractFormattedPhoneNumber,r=up(e);if(!cp(r))throw new Xe("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===ru&&(a+=r);var i=e.indexOf(ls),s;i>=0?s=i+ls.length:s=0;var o=e.indexOf(Sa);a+=e.substring(s,o)}var u=a.indexOf(lp);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var mp=250,fp=new RegExp("["+lr+Ae+"]"),pp=new RegExp("[^"+Ae+"#]+$");function yp(e,t,n){if(t=t||{},n=new he(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new Xe("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=hp(e,t.v2,t.extract),a=r.number,i=r.ext,s=r.error;if(!a){if(t.v2)throw s==="TOO_SHORT"?new Xe("TOO_SHORT"):new Xe("NOT_A_NUMBER");return{}}var o=kp(a,t.defaultCountry,t.defaultCallingCode,n),u=o.country,m=o.nationalNumber,p=o.countryCallingCode,g=o.countryCallingCodeSource,y=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new Xe("INVALID_COUNTRY");return{}}if(!m||m.length<ii){if(t.v2)throw new Xe("TOO_SHORT");return{}}if(m.length>Vm){if(t.v2)throw new Xe("TOO_LONG");return{}}if(t.v2){var k=new Kl(p,m,n.metadata);return u&&(k.country=u),y&&(k.carrierCode=y),i&&(k.ext=i),k.__countryCallingCodeSource=g,k}var M=(t.extended?n.hasSelectedNumberingPlan():u)?at(m,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:p,carrierCode:y,valid:M,possible:M?!0:!!(t.extended===!0&&n.possibleLengths()&&Wl(m,n)),phone:m,ext:i}:M?Tp(u,m,i):{}}function gp(e,t,n){if(e){if(e.length>mp){if(n)throw new Xe("TOO_LONG");return}if(t===!1)return e;var r=e.search(fp);if(!(r<0))return e.slice(r).replace(pp,"")}}function hp(e,t,n){var r=dp(e,{extractFormattedPhoneNumber:function(s){return gp(s,n,t)}});if(!r)return{};if(!gf(r))return hf(r)?{error:"TOO_SHORT"}:{};var a=Tf(r);return a.ext?a:{number:r}}function Tp(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function kp(e,t,n,r){var a=eu(ka(e),t,n,r.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,o=a.number,u;if(s)r.selectNumberingPlan(s);else if(o&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),s=n||pt(t,r.metadata);else return{};if(!o)return{countryCallingCodeSource:i,countryCallingCode:s};var m=ba(ka(o),r),p=m.nationalNumber,g=m.carrierCode,y=nu(s,{nationalNumber:p,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:p,carrierCode:g}}function us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?us(Object(n),!0).forEach(function(r){Np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):us(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(e,t,n){return yp(e,cs(cs({},t),{},{v2:!0}),n)}function ds(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ds(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ds(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ip(e,t){return Ep(e)||Ap(e,t)||$p(e,t)||vp()}function vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $p(e,t){if(e){if(typeof e=="string")return ms(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ms(e,t)}}function ms(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ap(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function Ep(e){if(Array.isArray(e))return e}function au(e){var t=Array.prototype.slice.call(e),n=Ip(t,4),r=n[0],a=n[1],i=n[2],s=n[3],o,u,m;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(u=i,m=s):(u=void 0,m=i),a&&(u=Mp({defaultCountry:a},u));else if(cn(a))i?(u=a,m=i):m=a;else throw new Error("Invalid second argument: ".concat(a));return{text:o,options:u,metadata:m}}function fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fs(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Op(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iu(e,t,n){t&&t.defaultCountry&&!zl(t.defaultCountry,n)&&(t=ps(ps({},t),{},{defaultCountry:void 0}));try{return bp(e,t,n)}catch(r){if(!(r instanceof Xe))throw r}}function su(){var e=au(arguments),t=e.text,n=e.options,r=e.metadata;return iu(t,n,r)}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(r){Dp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wp(){var e=au(arguments),t=e.text,n=e.options,r=e.metadata;n=gs(gs({},n),{},{extract:!1});var a=iu(t,n,r);return a&&a.isValid()||!1}function _p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cp(e,t,n){return t&&hs(e.prototype,t),n&&hs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var xp=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;_p(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return Cp(e,[{key:"reset",value:function(n){var r=n.country,a=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,a)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(n){for(var r=0,a=Object.keys(n);r<a.length;r++){var i=a[r];this[i]=n[i]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function jp(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Rp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rp(e,t){if(e){if(typeof e=="string")return Ts(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ts(e,t)}}function Ts(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Be="x",xr=new RegExp(Be);function jn(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function ks(e,t){return e[t]===")"&&t++,Lp(e.slice(0,t))}function Lp(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,a="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var o=s[i];a+=e.slice(r,o),r=o+1}return a}function Pp(e,t,n){for(var r=jp(n.split("")),a;!(a=r()).done;){var i=a.value;if(e.slice(t+1).search(xr)<0)return;t=e.search(xr),e=e.replace(xr,i)}return[e,t]}function Up(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=new RegExp("^(?:".concat(t.pattern(),")$"));if(s.test(e.nationalSignificantNumber))return zp(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function Fp(e,t){return dr(e,t)==="IS_POSSIBLE"}function zp(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var s=Ns(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(s)return s}return Ns(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function Ns(e,t,n){var r=n.metadata,a=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=Zl(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:r});if(a||(e.nationalPrefix?s=e.nationalPrefix+i(t)+s:e.complexPrefixBeforeNationalSignificantNumber&&(s=e.complexPrefixBeforeNationalSignificantNumber+" "+s)),Bp(s,e))return s}function Bp(e,t){return Wn(e)===t.getNationalDigits()}function Gp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qp(e,t,n){return t&&bs(e.prototype,t),n&&bs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Yp=function(){function e(){Gp(this,e)}return Qp(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],a=r.branches,i=r.instructions;if(a)return{op:"|",args:a.concat([jr(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(Hp);if(!r){if(Wp.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var a=r[1],i=n.slice(0,r.index),s=n.slice(r.index+a.length);switch(a){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),u=o.branches;u.push(jr(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:u});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(jr(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Vp(i)});break;default:throw new Error("Unknown operator: ".concat(a))}s&&this.parsePattern(s)}}]),e}();function Vp(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,a=e[n+1].charCodeAt(0)-1,i=r;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[n]);n++}return t}var Wp=/[\(\)\[\]\?\:\|]/,Hp=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function jr(e){return e.length===1?e[0]:e}function Ms(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=qp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
24
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qp(e,t){if(e){if(typeof e=="string")return Ss(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ss(e,t)}}function Ss(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kp(e,t,n){return t&&Is(e.prototype,t),n&&Is(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Jp=function(){function e(t){Zp(this,e),this.matchTree=new Yp().parse(t)}return Kp(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=Ia(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e}();function Ia(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var s=t[i],o=Ia(a,s,n&&i===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(a=a.slice(o.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
25
- `.concat(JSON.stringify(o,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var u,m=Ms(t.args),p;!(p=m()).done;){var g=p.value,y=Ia(e,g,n);if(y){if(y.overflow)return y;if(y.match)return{match:!0,matchedChars:y.matchedChars};if(y.partialMatch)u=!0;else throw new Error(`Unsupported match result:
26
- `.concat(JSON.stringify(y,null,2)))}}return u?{partialMatch:!0}:void 0;case"[]":for(var k=Ms(t.args),M;!(M=k()).done;){var S=M.value;if(e[0]===S)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[S]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function vs(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Xp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
27
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xp(e,t){if(e){if(typeof e=="string")return $s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $s(e,t)}}function $s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ey(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function As(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ty(e,t,n){return t&&As(e.prototype,t),n&&As(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var va="9",ny=15,ry=jn(va,ny),ay=/[- ]/,iy=function(){return/\[([^\[\]])*\]/g},sy=function(){return/\d(?=[^,}][^,}])/g},oy=new RegExp("["+Ye+"]*\\$1["+Ye+"]*(\\$\\d["+Ye+"]*)*$"),Es=3,ly=function(){function e(t){t.state;var n=t.metadata;ey(this,e),this.metadata=n,this.resetFormat()}return ty(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var a=this;if(Fp(r.nationalSignificantNumber,this.metadata))for(var i=vs(this.matchingFormats),s;!(s=i()).done;){var o=s.value,u=Up(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(p){return a.shouldTryNationalPrefixFormattingRule(p,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(p){return a.getSeparatorAfterNationalPrefix(p)}});if(u)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(u.replace(/\d/g,Be),r),this.populatedNationalNumberTemplate=u,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Be),u}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var a=this.chosenFormat,i=this.chooseFormat(r);if(i)return i===a?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,a=n.nationalSignificantNumber,i=n.nationalPrefix,s=n.international,o=a,u=o.length-Es;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(m){return r.formatSuits(m,s,i)&&r.formatMatches(m,o,u)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,a){return!(a&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!a&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,a){var i=n.leadingDigitsPatterns().length;if(i===0)return!0;a=Math.min(a,i-1);var s=n.leadingDigitsPatterns()[a];if(r.length<Es)try{return new Jp(s).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(s,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,a=function(){var m=s.value;return r.chosenFormat===m?"break":oy.test(r.getFormatFormat(m,n.international))?r.createTemplateForFormat(m,n)?(r.chosenFormat=m,"break"):(r.matchingFormats=r.matchingFormats.filter(function(p){return p!==m}),"continue"):"continue"},i=vs(this.matchingFormats.slice()),s;!(s=i()).done;){var o=a();if(o==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&ay.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";a<i.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(Be,r+1),a++;return ks(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,Be)+jn(Be,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var a=r.nationalSignificantNumber,i=r.international,s=r.nationalPrefix,o=r.complexPrefixBeforeNationalSignificantNumber,u=n.pattern();u=u.replace(iy(),"\\d").replace(sy(),"\\d");var m=ry.match(u)[0];if(!(a.length>m.length)){var p=new RegExp("^"+u+"$"),g=a.replace(/\d/g,va);p.test(g)&&(m=g);var y=this.getFormatFormat(n,i),k;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:s})){var M=y.replace(ql,n.nationalPrefixFormattingRule());if(Wn(n.nationalPrefixFormattingRule())===(s||"")+Wn("$1")&&(y=M,k=!0,s))for(var S=s.length;S>0;)y=y.replace(/\d/,Be),S--}var _=m.replace(new RegExp(u),y).replace(new RegExp(va,"g"),Be);return k||(o?_=jn(Be,o.length)+" "+_:s&&(_=jn(Be,s.length)+this.getSeparatorAfterNationalPrefix(n)+_)),i&&(_=Hl(_)),_}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=Pp(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],ks(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var s=n.usesNationalPrefix();if(s&&i||!s&&!a)return!0}}}]),e}();function ou(e,t){return my(e)||dy(e,t)||cy(e,t)||uy()}function uy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cy(e,t){if(e){if(typeof e=="string")return Os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Os(e,t)}}function Os(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function my(e){if(Array.isArray(e))return e}function fy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ds(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function py(e,t,n){return t&&Ds(e.prototype,t),n&&Ds(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var yy="["+Ye+Ae+"]+",gy=new RegExp("^"+yy+"$","i"),hy="(?:["+lr+"]["+Ye+Ae+"]*|["+Ye+Ae+"]+)",Ty=new RegExp("[^"+Ye+Ae+"]+.*$"),ky=/[^\d\[\]]/,Ny=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;fy(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=a,this.onNationalSignificantNumberChange=i}return py(e,[{key:"input",value:function(n,r){var a=Sy(n),i=ou(a,2),s=i[0],o=i[1],u=Wn(s),m;return o&&(r.digits||(r.startInternationalNumber(),u||(m=!0))),u&&this.inputDigits(u,r),{digits:u,justLeadingPlus:m}}},{key:"inputDigits",value:function(n,r){var a=r.digits,i=a.length<3&&a.length+n.length>=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=eu("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&ky.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=Na(n,this.metadata),i=a.nationalPrefix,s=a.nationalNumber,o=a.carrierCode;if(s!==n)return this.onExtractedNationalNumber(i,o,s,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=Na(n,this.metadata),s=i.nationalPrefix,o=i.nationalNumber,u=i.carrierCode;if(o!==r)return this.onExtractedNationalNumber(s,u,o,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,s){var o,u,m=i.lastIndexOf(a);if(m>=0&&m===i.length-a.length){u=!0;var p=i.slice(0,m);p!==n&&(o=p)}s({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var s=Jl(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==i)return n.update({IDDPrefix:i.slice(0,i.length-s.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=Xl(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e}();function by(e){var t=e.search(hy);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(Ty,""),n&&(e="+"+e),e}}function My(e){var t=by(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function Sy(e){var t=My(e),n=ou(t,2),r=n[0],a=n[1];return gy.test(r)||(r=""),[r,a]}function Iy(e,t){return Ey(e)||Ay(e,t)||$y(e,t)||vy()}function vy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $y(e,t){if(e){if(typeof e=="string")return ws(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ws(e,t)}}function ws(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function Ey(e){if(Array.isArray(e))return e}function Oy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dy(e,t,n){return t&&_s(e.prototype,t),n&&_s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kt=function(){function e(t,n){Oy(this,e),this.metadata=new he(n);var r=this.getCountryAndCallingCode(t),a=Iy(r,2),i=a[0],s=a[1];this.defaultCountry=i,this.defaultCallingCode=s,this.reset()}return Dy(e,[{key:"getCountryAndCallingCode",value:function(n){var r,a;return n&&(cn(n)?(r=n.defaultCountry,a=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,a]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),a=r.digits,i=r.justLeadingPlus;if(i)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(a,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(s=this.formatter.format(o,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new xp({onCountryChange:function(a){n.country=a},onCallingCodeChange:function(a,i){n.metadata.selectNumberingPlan(i,a),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new ly({state:this.state,metadata:this.metadata}),this.parser=new Ny({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var a=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},i=this.state.callingCode;return a(i?n?"".concat(i," ").concat(n):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.complexPrefixBeforeNationalSignificantNumber,i=n.nationalPrefix,s=r,o=a||i;return o&&(s=o+s),s}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Be)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(nu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,s=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+s:"+"+r;if(i||a){var o=i?this.metadata.countryCallingCode():a;return"+"+o+s}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,s=this._getCountry();if(r&&!(!s&&!i)){if(s&&s===this.defaultCountry){var o=new he(this.metadata.metadata);o.selectNumberingPlan(s);var u=o.numberingPlan.callingCode(),m=this.metadata.getCountryCodesForCallingCode(u);if(m.length>1){var p=tu(r,{countries:m,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});p&&(s=p)}}var g=new Kl(s||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function Cs(e){return new he(e).getCountries()}function wy(e,t,n){return n||(n=t,t=void 0),new Kt(t,n).input(e)}function lu(e){var t=e.country,n=e.international,r=e.withCountryCallingCode,a=e.metadata;return t&&n&&!r?"+".concat(pt(t,a)):""}function $a(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}var _y=["country","international","withCountryCallingCode","metadata"];function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}function Cy(e,t){if(e==null)return{};var n=xy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function jy(e){function t(n,r){var a=n.country,i=n.international,s=n.withCountryCallingCode,o=n.metadata,u=o===void 0?e:o,m=Cy(n,_y),p=x.useCallback(function(g){var y=new Kt(a,u),k=lu({country:a,international:i,withCountryCallingCode:s,metadata:u}),M=y.input(k+g),S=y.getTemplate();return k&&(M=$a(M,k),S&&(S=$a(S,k))),{text:M,template:S}},[a,u]);return x.createElement(Pm,Aa({},m,{ref:r,parse:Yl,format:p}))}return t=x.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,country:R.string,international:R.bool,withCountryCallingCode:R.bool,metadata:R.object},t}const Ry=jy();var Ly=["value","onChange","country","international","withCountryCallingCode","metadata","inputComponent"];function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}function Py(e,t){if(e==null)return{};var n=Uy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Fy(e){function t(n,r){var a=n.value,i=n.onChange,s=n.country,o=n.international,u=n.withCountryCallingCode,m=n.metadata,p=m===void 0?e:m,g=n.inputComponent,y=g===void 0?"input":g,k=Py(n,Ly),M=lu({country:s,international:o,withCountryCallingCode:u,metadata:p}),S=x.useCallback(function(_){var v=ka(_.target.value);if(v===a){var O=xs(M,v,s,p);O.indexOf(_.target.value)===0&&(v=v.slice(0,-1))}i(v)},[M,a,i,s,p]);return x.createElement(y,Ea({},k,{ref:r,value:xs(M,a,s,p),onChange:S}))}return t=x.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,country:R.string,international:R.bool,withCountryCallingCode:R.bool,metadata:R.object,inputComponent:R.elementType},t}const zy=Fy();function xs(e,t,n,r){return $a(wy(e+t,n,r),e)}function By(e){return js(e[0])+js(e[1])}function js(e){return String.fromCodePoint(127462-65+e.toUpperCase().charCodeAt(0))}var Gy=["value","onChange","options","disabled","readOnly"],Qy=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Yy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Vy(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vy(e,t){if(e){if(typeof e=="string")return Rs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rs(e,t)}}function Rs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function uu(e,t){if(e==null)return{};var n=Wy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function cu(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,s=uu(e,Gy),o=x.useCallback(function(u){var m=u.target.value;n(m==="ZZ"?void 0:m)},[n]);return x.useMemo(function(){return mu(r,t)},[r,t]),x.createElement("select",qn({},s,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:o}),r.map(function(u){var m=u.value,p=u.label,g=u.divider;return x.createElement("option",{key:g?"|":m||"ZZ",value:g?"|":m||"ZZ",disabled:!!g,style:g?Hy:void 0},p)}))}cu.propTypes={value:R.string,onChange:R.func.isRequired,options:R.arrayOf(R.shape({value:R.string,label:R.string,divider:R.bool})).isRequired,disabled:R.bool,readOnly:R.bool};var Hy={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function du(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,s=i===void 0?qy:i,o=e.unicodeFlags,u=uu(e,Qy),m=x.useMemo(function(){return mu(n,t)},[n,t]);return x.createElement("div",{className:"PhoneInputCountry"},x.createElement(cu,qn({},u,{value:t,options:n,className:Vn("PhoneInputCountrySelect",r)})),o&&t&&x.createElement("div",{className:"PhoneInputCountryIconUnicode"},By(t)),!(o&&t)&&x.createElement(a,{"aria-hidden":!0,country:t,label:m&&m.label,aspectRatio:o?1:void 0}),x.createElement(s,null))}du.propTypes={iconComponent:R.elementType,arrowComponent:R.elementType,unicodeFlags:R.bool};function qy(){return x.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function mu(e,t){for(var n=Yy(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&a.value===t)return a}}var Zy=["country","countryName","flags","flagUrl"];function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}function Ky(e,t){if(e==null)return{};var n=Jy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function oi(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=Ky(e,Zy);return r&&r[t]?r[t]({title:n}):x.createElement("img",Oa({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}oi.propTypes={country:R.string.isRequired,countryName:R.string.isRequired,flags:R.objectOf(R.elementType),flagUrl:R.string.isRequired};var Xy=["aspectRatio"],e0=["title"],t0=["title"];function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function li(e,t){if(e==null)return{};var n=n0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mr(e){var t=e.aspectRatio,n=li(e,Xy);return t===1?x.createElement(pu,n):x.createElement(fu,n)}mr.propTypes={title:R.string.isRequired,aspectRatio:R.number};function fu(e){var t=e.title,n=li(e,e0);return x.createElement("svg",Zn({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),x.createElement("title",null,t),x.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},x.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),x.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),x.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),x.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),x.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),x.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),x.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}fu.propTypes={title:R.string.isRequired};function pu(e){var t=e.title,n=li(e,t0);return x.createElement("svg",Zn({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),x.createElement("title",null,t),x.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},x.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),x.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),x.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),x.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),x.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),x.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),x.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}pu.propTypes={title:R.string.isRequired};function r0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=a0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
31
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a0(e,t){if(e){if(typeof e=="string")return Ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ls(e,t)}}function Ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i0(e,t){if(!t)return e;for(var n=[],r=[],a=n,i=r0(t),s;!(s=i()).done;){var o=s.value;o==="|"?a.push({divider:!0}):o==="..."||o==="…"?a=r:function(){var u=void 0;o==="🌐"?u=void 0:u=o;var m=e.indexOf(e.filter(function(g){return g.value===u})[0]),p=e[m];e.splice(m,1),a.push(p)}()}return n.concat(e).concat(r)}function s0(e,t){if(e&&(e=e.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return fr(n,t)}}),e.length>0))return e}function fr(e,t){return zl(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function yu(e,t){return e&&(e=e.filter(function(n){return fr(n,t)}),e.length===0&&(e=void 0)),e}var o0=["country","label","aspectRatio"];function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}function l0(e,t){if(e==null)return{};var n=u0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function gu(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(s){var o=s.country,u=s.label,m=s.aspectRatio,p=l0(s,o0),g=a===mr?m:void 0;return x.createElement("div",Da({},p,{className:Vn("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":o})}),o?x.createElement(r,{country:o,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):x.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:R.string,label:R.string.isRequired,aspectRatio:R.number},i}gu({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:oi,internationalIcon:mr});var hu=R.shape({country_calling_codes:R.object.isRequired,countries:R.object.isRequired}),Tu=R.objectOf(R.string);function rt(e,t){var n="+"+pt(e,t);return n}function c0(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,a=e.getAnyCountry,i=e.countries,s=e.required,o=e.metadata,u;return n&&n.country?u=n.country:r&&(!t||Mu(t,r,o))&&(u=r),i&&i.indexOf(u)<0&&(u=void 0),!u&&s&&i&&i.length>0&&(u=a()),u}function d0(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=T0);var s=t.map(function(o){return{value:o,label:n[o]||o}});return s.sort(function(o,u){return i(o.label,u.label,a)}),r&&s.unshift({label:n.ZZ}),s}function ku(e,t){return su(e||"",t)}function m0(e){return e.formatNational().replace(/\D/g,"")}function f0(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?rt(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+pt(r,a))===0?k0(e,r,a):"";if(n){var s=rt(r,a);return e.indexOf(s)===0?e:s}else{var o=rt(r,a);return e.indexOf(o)===0?e:o}}}else if(e[0]!=="+")return Lt(e,n,a)||"";return e}function Lt(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new Kt(t,n);return r.input(e),r.getNumberValue()}if(t){var a=bu(e,t,n);return"+".concat(pt(t,n)).concat(a||"")}}}function p0(e,t,n){var r=bu(e,t,n);if(r){var a=r.length-y0(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function y0(e,t){return t=new he(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function Nu(e,t){var n=t.country,r=t.countries,a=t.required,i=t.metadata;if(e==="+")return n;var s=h0(e,i);return s&&(!r||r.indexOf(s)>=0)?s:n&&!a&&!Mu(e,n,i)?void 0:n}function g0(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.countryRequired,s=t.getAnyCountry,o=t.countries,u=t.international,m=t.limitMaxLength,p=t.countryCallingCodeEditable,g=t.metadata;if(u&&p===!1&&r){var y=rt(r,g);if(e.indexOf(y)!==0){var k,M=e&&e[0]!=="+";return M?(e=y+e,k=Lt(e,r,g)):e=y,{phoneDigits:e,value:k,country:r}}}u===!1&&r&&e&&e[0]==="+"&&(e=Ps(e,r,g)),e&&r&&m&&(e=p0(e,r,g)),e&&e[0]!=="+"&&(!r||u)&&(e="+"+e),!e&&n&&n[0]==="+"&&(u?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var S;return e&&(e[0]==="+"&&(e==="+"||r&&rt(r,g).indexOf(e)===0)?S=void 0:S=Lt(e,r,g)),S&&(r=Nu(S,{country:r,countries:o,metadata:g}),u===!1&&r&&e&&e[0]==="+"&&(e=Ps(e,r,g),S=Lt(e,r,g))),!r&&i&&(r=a||s()),{phoneDigits:e,country:r,value:S}}function Ps(e,t,n){if(e.indexOf(rt(t,n))===0){var r=new Kt(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function h0(e,t){var n=new Kt(null,t);return n.input(e),n.getCountry()}function T0(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function k0(e,t,n){if(t){var r="+"+pt(t,n);if(e.length<r.length){if(r.indexOf(e)===0)return""}else if(e.indexOf(r)===0)return e.slice(r.length)}for(var a=0,i=Object.keys(n.country_calling_codes);a<i.length;a++){var s=i[a];if(e.indexOf(s)===1)return e.slice(1+s.length)}return""}function bu(e,t,n){var r=new Kt(t,n);r.input(e);var a=r.getNumber();return a&&a.nationalNumber}function Mu(e,t,n){for(var r=rt(t,n),a=0;a<e.length&&a<r.length;){if(e[a]!==r[a])return!1;a++}return!0}function Su(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,a=e.international,i=e.useNationalFormat,s=e.metadata;return(a===!1||i)&&n&&n.country?m0(n):!t&&a&&r?rt(r,s):t}function Us(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Us(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Us(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0(e,t,n){var r=e.metadata,a=e.countries,i=e.defaultCountry,s=e.value,o=e.reset,u=e.international,m=e.displayInitialValueAsLocalNumber,p=e.initialValueFormat,g=t.defaultCountry,y=t.value,k=t.reset;n.country;var M=n.value,S=n.hasUserSelectedACountry,_=function(H){return Su(En(En({},H),{},{international:u,useNationalFormat:m||p==="national",metadata:r}))};if(o!==k)return{phoneDigits:_({value:void 0,defaultCountry:i}),value:void 0,country:i,hasUserSelectedACountry:void 0};if(i!==g){var v=!i||fr(i,r),O=!M||u&&M===_({value:void 0,defaultCountry:g}),L=!s&&O;if(!S&&v&&L)return{country:i,phoneDigits:_({value:void 0,defaultCountry:i}),value:void 0}}if(!Fs(s,y)&&!Fs(s,M)){var P,F;if(s){P=ku(s,r);var z=yu(a,r);P&&P.country?(!z||z.indexOf(P.country)>=0)&&(F=P.country):(F=Nu(s,{country:void 0,countries:z,metadata:r}),F||i&&s.indexOf(rt(i,r))===0&&(F=i))}var U;return s||(U={hasUserSelectedACountry:void 0}),En(En({},U),{},{phoneDigits:_({phoneNumber:P,value:s,defaultCountry:i}),value:s,country:s?F:i})}}function Fs(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}function wa(e){"@babel/helpers - typeof";return wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(e)}var M0=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zs(Object(n),!0).forEach(function(r){ze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}function S0(e,t){if(e==null)return{};var n=I0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function v0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $0(e,t,n){return t&&Bs(e.prototype,t),n&&Bs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}function _a(e,t){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},_a(e,t)}function E0(e){var t=D0();return function(){var r=Kn(e),a;if(t){var i=Kn(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return O0(this,a)}}function O0(e,t){if(t&&(wa(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function Fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kn(e)}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w0=function(e){A0(n,e);var t=E0(n);function n(r){var a;v0(this,n),a=t.call(this,r),ze(Fe(a),"setInputRef",function(v){a.inputRef.current=v;var O=a.props.inputRef;O&&(typeof O=="function"?O(v):O.current=v)}),ze(Fe(a),"isCountrySupportedWithError",function(v){var O=a.props.metadata;return fr(v,O)}),ze(Fe(a),"onCountryChange",function(v){var O=a.props,L=O.international,P=O.metadata,F=O.onChange,z=O.focusInputOnCountrySelection,U=a.state,V=U.phoneDigits,H=U.country,J=f0(V,{prevCountry:H,newCountry:v,metadata:P,useNationalFormat:!L}),ae=Lt(J,v,P);z&&a.inputRef.current.focus(),a.setState({country:v,hasUserSelectedACountry:!0,phoneDigits:J,value:ae},function(){F(ae)})}),ze(Fe(a),"onChange",function(v){var O=a.props,L=O.defaultCountry,P=O.onChange,F=O.addInternationalOption,z=O.international,U=O.limitMaxLength,V=O.countryCallingCodeEditable,H=O.metadata,J=a.state,ae=J.countries,ce=J.phoneDigits,oe=J.country,q=g0(v,{prevPhoneDigits:ce,country:oe,countryRequired:!F,defaultCountry:L,getAnyCountry:function(){return a.getFirstSupportedCountry({countries:ae})},countries:ae,international:z,limitMaxLength:U,countryCallingCodeEditable:V,metadata:H}),le=q.phoneDigits,Me=q.country,De=q.value,we={phoneDigits:le,value:De,country:Me};V===!1&&!De&&le===a.state.phoneDigits&&(we.forceRerender={}),a.setState(we,function(){return P(De)})}),ze(Fe(a),"_onFocus",function(){return a.setState({isFocused:!0})}),ze(Fe(a),"_onBlur",function(){return a.setState({isFocused:!1})}),ze(Fe(a),"onFocus",function(v){a._onFocus();var O=a.props.onFocus;O&&O(v)}),ze(Fe(a),"onBlur",function(v){var O=a.props.onBlur;a._onBlur(),O&&O(v)}),ze(Fe(a),"onCountryFocus",function(v){a._onFocus();var O=a.props.countrySelectProps;if(O){var L=O.onFocus;L&&L(v)}}),ze(Fe(a),"onCountryBlur",function(v){a._onBlur();var O=a.props.countrySelectProps;if(O){var L=O.onBlur;L&&L(v)}}),a.inputRef=x.createRef();var i=a.props,s=i.value;i.labels;var o=i.international,u=i.addInternationalOption,m=i.displayInitialValueAsLocalNumber,p=i.initialValueFormat,g=i.metadata,y=a.props,k=y.defaultCountry,M=y.countries;k&&(a.isCountrySupportedWithError(k)||(k=void 0)),M=yu(M,g);var S=ku(s,g);a.CountryIcon=gu(a.props);var _=c0({value:s,phoneNumber:S,defaultCountry:k,required:!u,countries:M||Cs(g),getAnyCountry:function(){return a.getFirstSupportedCountry({countries:M})},metadata:g});return a.state={props:a.props,country:_,countries:M,phoneDigits:Su({value:s,phoneNumber:S,defaultCountry:k,international:o,useNationalFormat:m||p==="national",metadata:g}),value:s},a}return $0(n,[{key:"componentDidMount",value:function(){var a=this.props.onCountryChange,i=this.props.defaultCountry,s=this.state.country;a&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),s!==i&&a(s))}},{key:"componentDidUpdate",value:function(a,i){var s=this.props.onCountryChange,o=this.state.country;s&&o!==i.country&&s(o)}},{key:"getCountrySelectOptions",value:function(a){var i=a.countries,s=this.props,o=s.international,u=s.countryCallingCodeEditable,m=s.countryOptionsOrder,p=s.addInternationalOption,g=s.labels,y=s.locales,k=s.metadata;return this.useMemoCountrySelectOptions(function(){return i0(d0({countries:i||Cs(k),countryNames:g,addInternationalOption:o&&u===!1?!1:p,compareStringsLocales:y}),s0(m,k))},[i,m,p,g,k])}},{key:"useMemoCountrySelectOptions",value:function(a,i){return(!this.countrySelectOptionsMemoDependencies||!x0(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=a(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(a){var i=a.countries,s=this.getCountrySelectOptions({countries:i});return s[0].value}},{key:"render",value:function(){var a=this.props,i=a.name,s=a.disabled,o=a.readOnly,u=a.autoComplete,m=a.style,p=a.className;a.inputRef;var g=a.inputComponent,y=a.numberInputProps,k=a.smartCaret,M=a.countrySelectComponent,S=a.countrySelectProps,_=a.containerComponent;a.defaultCountry,a.countries,a.countryOptionsOrder;var v=a.labels;a.flags,a.flagComponent,a.flagUrl,a.addInternationalOption,a.internationalIcon,a.displayInitialValueAsLocalNumber,a.initialValueFormat,a.onCountryChange,a.limitMaxLength,a.countryCallingCodeEditable,a.focusInputOnCountrySelection,a.reset;var O=a.metadata;a.international,a.locales;var L=S0(a,M0),P=this.state,F=P.country,z=P.countries,U=P.phoneDigits,V=P.isFocused,H=k?Ry:zy,J=this.getCountrySelectOptions({countries:z});return x.createElement(_,{style:m,className:Vn(p,"PhoneInput",{"PhoneInput--focus":V,"PhoneInput--disabled":s,"PhoneInput--readOnly":o})},x.createElement(M,kn({name:i?"".concat(i,"Country"):void 0,"aria-label":v.country},S,{value:F,options:J,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:s||S&&S.disabled,readOnly:o||S&&S.readOnly,iconComponent:this.CountryIcon})),x.createElement(H,kn({ref:this.setInputRef,type:"tel",autoComplete:u},y,L,{name:i,metadata:O,country:F,value:U||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:s,readOnly:o,inputComponent:g,className:Vn("PhoneInputInput",y&&y.className,L.className)})))}}],[{key:"getDerivedStateFromProps",value:function(a,i){return Iu({props:a},b0(a,i.props,i))}}]),n}(x.PureComponent),vu=x.forwardRef(function(e,t){return x.createElement(w0,kn({},_0(e),{inputRef:t}))});vu.propTypes={value:R.string,onChange:R.func.isRequired,onFocus:R.func,onBlur:R.func,disabled:R.bool,readOnly:R.bool,autoComplete:R.string,initialValueFormat:R.oneOf(["national"]),displayInitialValueAsLocalNumber:R.bool,defaultCountry:R.string,countries:R.arrayOf(R.string),labels:Tu,locales:R.oneOfType([R.string,R.arrayOf(R.string)]),flagUrl:R.string,flags:R.objectOf(R.elementType),flagComponent:R.elementType,addInternationalOption:R.bool,internationalIcon:R.elementType,countryOptionsOrder:R.arrayOf(R.string),style:R.object,className:R.string,countrySelectComponent:R.elementType,countrySelectProps:R.object,inputComponent:R.elementType,containerComponent:R.elementType,numberInputProps:R.object,smartCaret:R.bool,international:R.bool,limitMaxLength:R.bool,countryCallingCodeEditable:R.bool,metadata:hu,onCountryChange:R.func,focusInputOnCountrySelection:R.bool};var Gs={autoComplete:"tel",countrySelectComponent:du,flagComponent:oi,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:mr,inputComponent:"input",containerComponent:"div",reset:R.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function _0(e){e=Iu({},e);for(var t in Gs)e[t]===void 0&&(e[t]=Gs[t]);return e}const C0=vu;function x0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}function Ca(e){"@babel/helpers - typeof";return Ca=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ca(e)}function j0(e,t,n){if(n||Ca(t)==="object"&&(n=t,t="NATIONAL"),!e)return"";var r=su(e,n);if(!r)return"";switch(t){case"National":t="NATIONAL";break;case"International":t="INTERNATIONAL";break}return r.format(t)}function R0(e,t){return j0(e,"INTERNATIONAL",t)}const L0={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var P0=["metadata","labels"];function xa(){return xa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xa.apply(this,arguments)}function U0(e,t){if(e==null)return{};var n=F0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function F0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function $u(e){var t=x.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,s=n.labels,o=s===void 0?L0:s,u=U0(n,P0);return x.createElement(C0,xa({},u,{ref:r,metadata:i,labels:o}))});return t.propTypes={metadata:hu,labels:Tu},t}$u();function Au(e,t){var n=Array.prototype.slice.call(t);return n.push(Cl),e.apply(this,n)}const z0=$u(Cl);function B0(){return Au(R0,arguments)}function G0(){return Au(wp,arguments)}var Qs=typeof window>"u"?x.useEffect:x.useLayoutEffect,Q0=({isPlaying:e,duration:t,startAt:n=0,updateInterval:r=0,onComplete:a,onUpdate:i})=>{let[s,o]=x.useState(n),u=x.useRef(0),m=x.useRef(n),p=x.useRef(n*-1e3),g=x.useRef(null),y=x.useRef(null),k=x.useRef(null),M=v=>{let O=v/1e3;if(y.current===null){y.current=O,g.current=requestAnimationFrame(M);return}let L=O-y.current,P=u.current+L;y.current=O,u.current=P;let F=m.current+(r===0?P:(P/r|0)*r),z=m.current+P,U=typeof t=="number"&&z>=t;o(U?t:F),U||(g.current=requestAnimationFrame(M))},S=()=>{g.current&&cancelAnimationFrame(g.current),k.current&&clearTimeout(k.current),y.current=null},_=x.useCallback(v=>{S(),u.current=0;let O=typeof v=="number"?v:n;m.current=O,o(O),e&&(g.current=requestAnimationFrame(M))},[e,n]);return Qs(()=>{if(i==null||i(s),t&&s>=t){p.current+=t*1e3;let{shouldRepeat:v=!1,delay:O=0,newStartAt:L}=(a==null?void 0:a(p.current/1e3))||{};v&&(k.current=setTimeout(()=>_(L),O*1e3))}},[s,t]),Qs(()=>(e&&(g.current=requestAnimationFrame(M)),S),[e,t,r]),{elapsedTime:s,reset:_}},Y0=(e,t,n)=>{let r=e/2,a=t/2,i=r-a,s=2*i,o=n==="clockwise"?"1,0":"0,1",u=2*Math.PI*i;return{path:`m ${r},${a} a ${i},${i} 0 ${o} 0,${s} a ${i},${i} 0 ${o} 0,-${s}`,pathLength:u}},Ys=(e,t)=>e===0||e===t?0:typeof t=="number"?e-t:0,V0=e=>({position:"relative",width:e,height:e}),W0={display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:0,top:0,width:"100%",height:"100%"},Eu=(e,t,n,r,a)=>{if(r===0)return t;let i=(a?r-e:e)/r;return t+n*i},Vs=e=>{var t,n;return(n=(t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(r,a,i,s)=>`#${a}${a}${i}${i}${s}${s}`).substring(1).match(/.{2}/g))==null?void 0:t.map(r=>parseInt(r,16)))!=null?n:[]},H0=(e,t)=>{var n;let{colors:r,colorsTime:a,isSmoothColorTransition:i=!0}=e;if(typeof r=="string")return r;let s=(n=a==null?void 0:a.findIndex((y,k)=>y>=t&&t>=a[k+1]))!=null?n:-1;if(!a||s===-1)return r[0];if(!i)return r[s];let o=a[s]-t,u=a[s]-a[s+1],m=Vs(r[s]),p=Vs(r[s+1]),g=!!e.isGrowing;return`rgb(${m.map((y,k)=>Eu(o,y,p[k]-y,u,g)|0).join(",")})`},q0=e=>{let{duration:t,initialRemainingTime:n,updateInterval:r,size:a=180,strokeWidth:i=12,trailStrokeWidth:s,isPlaying:o=!1,isGrowing:u=!1,rotation:m="clockwise",onComplete:p,onUpdate:g}=e,y=x.useRef(),k=Math.max(i,s??0),{path:M,pathLength:S}=Y0(a,k,m),{elapsedTime:_}=Q0({isPlaying:o,duration:t,startAt:Ys(t,n),updateInterval:r,onUpdate:typeof g=="function"?O=>{let L=Math.ceil(t-O);L!==y.current&&(y.current=L,g(L))}:void 0,onComplete:typeof p=="function"?O=>{var L;let{shouldRepeat:P,delay:F,newInitialRemainingTime:z}=(L=p(O))!=null?L:{};if(P)return{shouldRepeat:P,delay:F,newStartAt:Ys(t,z)}}:void 0}),v=t-_;return{elapsedTime:_,path:M,pathLength:S,remainingTime:Math.ceil(v),rotation:m,size:a,stroke:H0(e,v),strokeDashoffset:Eu(_,0,S,t,u),strokeWidth:i}},Ou=e=>{let{children:t,strokeLinecap:n,trailColor:r,trailStrokeWidth:a}=e,{path:i,pathLength:s,stroke:o,strokeDashoffset:u,remainingTime:m,elapsedTime:p,size:g,strokeWidth:y}=q0(e);return x.createElement("div",{style:V0(g)},x.createElement("svg",{viewBox:`0 0 ${g} ${g}`,width:g,height:g,xmlns:"http://www.w3.org/2000/svg"},x.createElement("path",{d:i,fill:"none",stroke:r??"#d9d9d9",strokeWidth:a??y}),x.createElement("path",{d:i,fill:"none",stroke:o,strokeLinecap:n??"round",strokeWidth:y,strokeDasharray:s,strokeDashoffset:u})),typeof t=="function"&&x.createElement("div",{style:W0},t({remainingTime:m,elapsedTime:p,color:o})))};Ou.displayName="CountdownCircleTimer";const Rr={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_USER_CONTAINER:"rgba(255, 255, 255, 0.05)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_PRIMARY:"#2d3135",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"};const Z0=A("div")({name:"RemainingTime",class:"r1l1rnv7",propsAsIs:!1}),K0=[Rr.BLUE_PRIMARY,Rr.GREEN_1,Rr.RED_1],J0=[10,6,0],X0=30,eg=32,tg=4,ng=0,Du=({isPlaying:e=!0,duration:t=X0,setTimeToExpire:n})=>{const r=({remainingTime:a})=>T.jsx(Z0,{style:{color:a?"inherit":void 0},children:a});return x.useEffect(()=>{n(!1)},[n]),T.jsx(Ou,{isPlaying:e,duration:t,colors:K0,colorsTime:J0,size:eg,strokeWidth:tg,trailStrokeWidth:ng,onComplete:()=>n(!0),children:r})};function Ee(e,t){if(!e)throw new Error(t)}const rg=34028234663852886e22,ag=-34028234663852886e22,ig=4294967295,sg=2147483647,og=-2147483648;function Rn(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>sg||e<og)throw new Error("invalid int 32: "+e)}function ja(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>ig||e<0)throw new Error("invalid uint 32: "+e)}function wu(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>rg||e<ag))throw new Error("invalid float 32: "+e)}const _u=Symbol("@bufbuild/protobuf/enum-type");function lg(e){const t=e[_u];return Ee(t,"missing enum type on enum object"),t}function Cu(e,t,n,r){e[_u]=xu(t,n.map(a=>({no:a.no,name:a.name,localName:e[a.no]})))}function xu(e,t,n){const r=Object.create(null),a=Object.create(null),i=[];for(const s of t){const o=ju(s);i.push(o),r[s.name]=o,a[s.no]=o}return{typeName:e,values:i,findName(s){return r[s]},findNumber(s){return a[s]}}}function ug(e,t,n){const r={};for(const a of t){const i=ju(a);r[i.localName]=i.no,r[i.no]=i.localName}return Cu(r,e,t),r}function ju(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class Je{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){const r=this.getType(),a=r.runtime.bin,i=a.makeReadOptions(n);return a.readMessage(this,i.readerFactory(t),t.byteLength,i),this}fromJson(t,n){const r=this.getType(),a=r.runtime.json,i=a.makeReadOptions(n);return a.readMessage(r,t,i,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(a){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${a instanceof Error?a.message:String(a)}`)}return this.fromJson(r,n)}toBinary(t){const n=this.getType(),r=n.runtime.bin,a=r.makeWriteOptions(t),i=a.writerFactory();return r.writeMessage(this,i,a),i.finish()}toJson(t){const n=this.getType(),r=n.runtime.json,a=r.makeWriteOptions(t);return r.writeMessage(this,a)}toJsonString(t){var n;const r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function cg(e,t,n,r){var a;const i=(a=r==null?void 0:r.localName)!==null&&a!==void 0?a:t.substring(t.lastIndexOf(".")+1),s={[i]:function(o){e.util.initFields(this),e.util.initPartial(o,this)}}[i];return Object.setPrototypeOf(s.prototype,new Je),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(o,u){return new s().fromBinary(o,u)},fromJson(o,u){return new s().fromJson(o,u)},fromJsonString(o,u){return new s().fromJsonString(o,u)},equals(o,u){return e.util.equals(s,o,u)}}),s}function dg(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(a,i,s){return cg(this,a,i,s)},makeEnum:ug,makeEnumType:xu,getEnumType:lg}}var w;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(w||(w={}));var St;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(St||(St={}));function mg(){let e=0,t=0;for(let r=0;r<28;r+=7){let a=this.buf[this.pos++];if(e|=(a&127)<<r,!(a&128))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let a=this.buf[this.pos++];if(t|=(a&127)<<r,!(a&128))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Lr(e,t,n){for(let i=0;i<28;i=i+7){const s=e>>>i,o=!(!(s>>>7)&&t==0),u=(o?s|128:s)&255;if(n.push(u),!o)return}const r=e>>>28&15|(t&7)<<4,a=!!(t>>3);if(n.push((a?r|128:r)&255),!!a){for(let i=3;i<31;i=i+7){const s=t>>>i,o=!!(s>>>7),u=(o?s|128:s)&255;if(n.push(u),!o)return}n.push(t>>>31&1)}}const Ln=4294967296;function Ws(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,a=0;function i(s,o){const u=Number(e.slice(s,o));a*=n,r=r*n+u,r>=Ln&&(a=a+(r/Ln|0),r=r%Ln)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?Lu(r,a):ui(r,a)}function fg(e,t){let n=ui(e,t);const r=n.hi&2147483648;r&&(n=Lu(n.lo,n.hi));const a=Ru(n.lo,n.hi);return r?"-"+a:a}function Ru(e,t){if({lo:e,hi:t}=pg(e,t),t<=2097151)return String(Ln*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,a=t>>16&65535;let i=n+r*6777216+a*6710656,s=r+a*8147497,o=a*2;const u=1e7;return i>=u&&(s+=Math.floor(i/u),i%=u),s>=u&&(o+=Math.floor(s/u),s%=u),o.toString()+Hs(s)+Hs(i)}function pg(e,t){return{lo:e>>>0,hi:t>>>0}}function ui(e,t){return{lo:e|0,hi:t|0}}function Lu(e,t){return t=~t,e?e=~e+1:t+=1,ui(e,t)}const Hs=e=>{const t=String(e);return"0000000".slice(t.length)+t};function qs(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function yg(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var Q={},Pu={},pr={};pr.byteLength=Tg;pr.toByteArray=Ng;pr.fromByteArray=Sg;var Ze=[],Le=[],gg=typeof Uint8Array<"u"?Uint8Array:Array,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ot=0,hg=Pr.length;Ot<hg;++Ot)Ze[Ot]=Pr[Ot],Le[Pr.charCodeAt(Ot)]=Ot;Le["-".charCodeAt(0)]=62;Le["_".charCodeAt(0)]=63;function Uu(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Tg(e){var t=Uu(e),n=t[0],r=t[1];return(n+r)*3/4-r}function kg(e,t,n){return(t+n)*3/4-n}function Ng(e){var t,n=Uu(e),r=n[0],a=n[1],i=new gg(kg(e,r,a)),s=0,o=a>0?r-4:r,u;for(u=0;u<o;u+=4)t=Le[e.charCodeAt(u)]<<18|Le[e.charCodeAt(u+1)]<<12|Le[e.charCodeAt(u+2)]<<6|Le[e.charCodeAt(u+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=t&255;return a===2&&(t=Le[e.charCodeAt(u)]<<2|Le[e.charCodeAt(u+1)]>>4,i[s++]=t&255),a===1&&(t=Le[e.charCodeAt(u)]<<10|Le[e.charCodeAt(u+1)]<<4|Le[e.charCodeAt(u+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function bg(e){return Ze[e>>18&63]+Ze[e>>12&63]+Ze[e>>6&63]+Ze[e&63]}function Mg(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),a.push(bg(r));return a.join("")}function Sg(e){for(var t,n=e.length,r=n%3,a=[],i=16383,s=0,o=n-r;s<o;s+=i)a.push(Mg(e,s,s+i>o?o:s+i));return r===1?(t=e[n-1],a.push(Ze[t>>2]+Ze[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],a.push(Ze[t>>10]+Ze[t>>4&63]+Ze[t<<2&63]+"=")),a.join("")}var ci={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ci.read=function(e,t,n,r,a){var i,s,o=a*8-r-1,u=(1<<o)-1,m=u>>1,p=-7,g=n?a-1:0,y=n?-1:1,k=e[t+g];for(g+=y,i=k&(1<<-p)-1,k>>=-p,p+=o;p>0;i=i*256+e[t+g],g+=y,p-=8);for(s=i&(1<<-p)-1,i>>=-p,p+=r;p>0;s=s*256+e[t+g],g+=y,p-=8);if(i===0)i=1-m;else{if(i===u)return s?NaN:(k?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-m}return(k?-1:1)*s*Math.pow(2,i-r)};ci.write=function(e,t,n,r,a,i){var s,o,u,m=i*8-a-1,p=(1<<m)-1,g=p>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=r?0:i-1,M=r?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(s++,u/=2),s+g>=p?(o=0,s=p):s+g>=1?(o=(t*u-1)*Math.pow(2,a),s=s+g):(o=t*Math.pow(2,g-1)*Math.pow(2,a),s=0));a>=8;e[n+k]=o&255,k+=M,o/=256,a-=8);for(s=s<<a|o,m+=a;m>0;e[n+k]=s&255,k+=M,s/=256,m-=8);e[n+k-M]|=S*128};/*!
13
+ */(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var s=typeof i;if(s==="string"||s==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var o=n.apply(null,i);o&&r.push(o)}}else if(s==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var u in i)t.call(i,u)&&i[u]&&r.push(u)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Ll);var gm=Ll.exports;const Vn=ai(gm);function hm(e,t,n){switch(n){case"Backspace":t>0&&(e=e.slice(0,t-1)+e.slice(t),t--);break;case"Delete":e=e.slice(0,t)+e.slice(t+1);break}return{value:e,caret:t}}function Tm(e,t,n){for(var r="",a=0,i=0;i<e.length;){var s=n(e[i],r);s!==void 0&&(r+=s,t!==void 0&&(t===i?a=r.length-1:t>i&&(a=r.length))),i++}t===void 0&&(a=r.length);var o={value:r,caret:a};return o}function km(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Nm(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
14
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nm(e,t){if(e){if(typeof e=="string")return Fi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fi(e,t)}}function Fi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pa(e,t){for(var n=0,r=km(t.split("")),a;!(a=r()).done;){var i=a.value;i===e&&n++}return n}function bm(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"x",r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:" ",a=e.length,i=pa("(",e),s=pa(")",e),o=i-s;o>0&&a<t.length;)e+=t[a].replace(n,r),t[a]===")"&&o--,a++;return e}function Mm(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sm(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
15
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sm(e,t){if(e){if(typeof e=="string")return zi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zi(e,t)}}function zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Im(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"x",n=arguments.length>2?arguments[2]:void 0;if(!e)return function(a){return{text:a}};var r=pa(t,e);return function(a){if(!a)return{text:"",template:e};for(var i=0,s="",o=Mm(e.split("")),u;!(u=o()).done;){var m=u.value;if(m!==t){s+=m;continue}if(s+=a[i],i++,i===a.length&&a.length<r)break}return n&&(s=bm(s,e)),{text:s,template:e}}}function vm(e,t,n){typeof n=="string"&&(n=Im(n));var r=n(e)||{},a=r.text,i=r.template;if(a===void 0&&(a=e),i)if(t===void 0)t=a.length;else{for(var s=0,o=!1,u=-1;s<a.length&&s<i.length;){if(a[s]!==i[s]){if(t===0){o=!0,t=s;break}u=s,t--}s++}o||(t=u+1)}return{text:a,caret:t}}function $m(e){return e.hasAttribute("readonly")}function Am(e){if(e.selectionStart!==e.selectionEnd)return{start:e.selectionStart,end:e.selectionEnd}}var Bi={Backspace:8,Delete:46};function Em(e){switch(e.keyCode){case Bi.Backspace:return"Backspace";case Bi.Delete:return"Delete"}}function Om(e){return e.selectionStart}function Pl(e,t){t!==void 0&&(Dm()?setTimeout(function(){return e.setSelectionRange(t,t)},0):e.setSelectionRange(t,t))}function Dm(){if(typeof navigator<"u")return wm.test(navigator.userAgent)}var wm=/Android/i;function _m(e,t,n,r,a){ya(t,n,r,void 0,a)}function Cm(e,t,n,r,a){if(!$m(t)){var i=Em(e);switch(i){case"Delete":case"Backspace":e.preventDefault();var s=Am(t);return s?(xm(t,s),ya(t,n,r,void 0,a)):ya(t,n,r,i,a)}}}function xm(e,t){var n=e.value;n=n.slice(0,t.start)+n.slice(t.end),e.value=n,Pl(e,t.start)}function ya(e,t,n,r,a){var i=Tm(e.value,Om(e),t),s=i.value,o=i.caret;if(r){var u=hm(s,o,r);s=u.value,o=u.caret}var m=vm(s,o,n),p=m.text;o=m.caret,e.value=p,Pl(e,o),a(s)}var jm=["value","parse","format","inputComponent","onChange","onKeyDown"];function ga(){return ga=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(this,arguments)}function Rm(e,t){if(e==null)return{};var n=Lm(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Lm(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function gn(e,t){var n=e.value,r=e.parse,a=e.format,i=e.inputComponent,s=e.onChange,o=e.onKeyDown,u=Rm(e,jm),m=x.useRef(),p=x.useCallback(function(k){m.current=k,t&&(typeof t=="function"?t(k):t.current=k)},[t]),g=x.useCallback(function(k){return _m(k,m.current,r,a,s)},[m,r,a,s]),y=x.useCallback(function(k){return o&&o(k),Cm(k,m.current,r,a,s)},[m,r,a,s,o]);return x.createElement(i,ga({},u,{ref:p,value:a(Um(n)?"":n).text,onKeyDown:y,onChange:g}))}gn=x.forwardRef(gn);gn.propTypes={parse:R.func.isRequired,format:R.func.isRequired,inputComponent:R.elementType.isRequired,type:R.string.isRequired,value:R.string,onChange:R.func.isRequired,onKeyDown:R.func,onCut:R.func,onPaste:R.func};gn.defaultProps={inputComponent:"input",type:"text"};const Pm=gn;function Um(e){return e==null}function ha(e){"@babel/helpers - typeof";return ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ha(e)}function Gi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fm(e,t,n){return t&&Gi(e.prototype,t),n&&Gi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hn(e,t)}function Gm(e){var t=Fl();return function(){var r=Tn(e),a;if(t){var i=Tn(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Qm(this,a)}}function Qm(e,t){if(t&&(ha(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ul(e)}function Ul(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ta(e){var t=typeof Map=="function"?new Map:void 0;return Ta=function(r){if(r===null||!Ym(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,a)}function a(){return xn(r,arguments,Tn(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),hn(a,r)},Ta(e)}function xn(e,t,n){return Fl()?xn=Reflect.construct:xn=function(a,i,s){var o=[null];o.push.apply(o,i);var u=Function.bind.apply(a,o),m=new u;return s&&hn(m,s.prototype),m},xn.apply(null,arguments)}function Fl(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ym(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function hn(e,t){return hn=Object.setPrototypeOf||function(r,a){return r.__proto__=a,r},hn(e,t)}function Tn(e){return Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},Tn(e)}var et=function(e){Bm(n,e);var t=Gm(n);function n(r){var a;return zm(this,n),a=t.call(this,r),Object.setPrototypeOf(Ul(a),n.prototype),a.name=a.constructor.name,a}return Fm(n)}(Ta(Error)),si=2,Vm=17,Wm=3,Ee="0-90-9٠-٩۰-۹",Hm="-‐-―−ー-",qm="//",Zm="..",Km="  ­​⁠ ",Jm="()()[]\\[\\]",Xm="~⁓∼~",Ye="".concat(Hm).concat(qm).concat(Zm).concat(Km).concat(Jm).concat(Xm),lr="++";function Qi(e,t){e=e.split("-"),t=t.split("-");for(var n=e[0].split("."),r=t[0].split("."),a=0;a<3;a++){var i=Number(n[a]),s=Number(r[a]);if(i>s)return 1;if(s>i)return-1;if(!isNaN(i)&&isNaN(s))return 1;if(isNaN(i)&&!isNaN(s))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var ef={}.constructor;function cn(e){return e!=null&&e.constructor===ef}function ka(e){"@babel/helpers - typeof";return ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ka(e)}function ur(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cr(e,t,n){return t&&Yi(e.prototype,t),n&&Yi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var tf="1.2.0",nf="1.7.35",Vi=" ext. ",rf=/^\d+$/,he=function(){function e(t){ur(this,e),lf(t),this.metadata=t,Bl.call(this,t)}return cr(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(n){return n!=="001"})}},{key:"getCountryMetadata",value:function(n){return this.metadata.countries[n]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(n){return this.getCountryMetadata(n)!==void 0}},{key:"hasCallingCode",value:function(n){if(this.getCountryCodesForCallingCode(n))return!0;if(this.nonGeographic()){if(this.nonGeographic()[n])return!0}else{var r=this.countryCallingCodes()[n];if(r&&r.length===1&&r[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(n){return this.nonGeographic()?!!this.nonGeographic()[n]:!this.getCountryCodesForCallingCode(n)}},{key:"country",value:function(n){return this.selectNumberingPlan(n)}},{key:"selectNumberingPlan",value:function(n,r){if(n&&rf.test(n)&&(r=n,n=null),n&&n!=="001"){if(!this.hasCountry(n))throw new Error("Unknown country: ".concat(n));this.numberingPlan=new Wi(this.getCountryMetadata(n),this)}else if(r){if(!this.hasCallingCode(r))throw new Error("Unknown calling code: ".concat(r));this.numberingPlan=new Wi(this.getNumberingPlanMetadata(r),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(n){var r=this.countryCallingCodes()[n];if(r)return r.length===1&&r[0].length===3?void 0:r}},{key:"getCountryCodeForCallingCode",value:function(n){var r=this.getCountryCodesForCallingCode(n);if(r)return r[0]}},{key:"getNumberingPlanMetadata",value:function(n){var r=this.getCountryCodeForCallingCode(n);if(r)return this.getCountryMetadata(r);if(this.nonGeographic()){var a=this.nonGeographic()[n];if(a)return a}else{var i=this.countryCallingCodes()[n];if(i&&i.length===1&&i[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(n){return this.numberingPlan.type(n)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(n){return this.selectNumberingPlan(n)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}]),e}(),Wi=function(){function e(t,n){ur(this,e),this.globalMetadataObject=n,this.metadata=t,Bl.call(this,n.metadata)}return cr(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(n){return n[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var n=this,r=this._getFormats(this.metadata)||this._getFormats(this.getDefaultCountryMetadataForRegion())||[];return r.map(function(a){return new af(a,n)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(n){return n[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this.getDefaultCountryMetadataForRegion())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this.getDefaultCountryMetadataForRegion())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(n){if(this.hasTypes()&&Hi(this.types(),n))return new of(Hi(this.types(),n),this)}},{key:"ext",value:function(){return this.v1||this.v2?Vi:this.metadata[13]||Vi}}]),e}(),af=function(){function e(t,n){ur(this,e),this._format=t,this.metadata=n}return cr(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!sf.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}]),e}(),sf=/^\(?\$1\)?$/,of=function(){function e(t,n){ur(this,e),this.type=t,this.metadata=n}return cr(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}]),e}();function Hi(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function lf(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!cn(e)||!cn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(cn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+uf(e)+": "+e,"."))}var uf=function(t){return ka(t)};function yt(e,t){if(t=new he(t),t.hasCountry(e))return t.country(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function zl(e,t){return t.countries.hasOwnProperty(e)}function Bl(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Qi(t,tf)===-1?this.v2=!0:Qi(t,nf)===-1?this.v3=!0:this.v4=!0:this.v1=!0}var cf=";ext=",Et=function(t){return"([".concat(Ee,"]{1,").concat(t,"})")};function Gl(e){var t="20",n="15",r="9",a="6",i="[  \\t,]*",s="[:\\..]?[  \\t,-]*",o="#?",u="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",m="(?:[xx##~~]|int|int)",p="[- ]+",g="[  \\t]*",y="(?:,{2}|;)",k=cf+Et(t),M=i+u+s+Et(t)+o,S=i+m+s+Et(r)+o,_=p+Et(a)+"#",v=g+y+s+Et(n)+o,O=g+"(?:,)+"+s+Et(r)+o;return k+"|"+M+"|"+S+"|"+_+"|"+v+"|"+O}var df="["+Ee+"]{"+si+"}",mf="["+lr+"]{0,1}(?:["+Ye+"]*["+Ee+"]){3,}["+Ye+Ee+"]*",ff=new RegExp("^["+lr+"]{0,1}(?:["+Ye+"]*["+Ee+"]){1,2}$","i"),pf=mf+"(?:"+Gl()+")?",yf=new RegExp("^"+df+"$|^"+pf+"$","i");function gf(e){return e.length>=si&&yf.test(e)}function hf(e){return ff.test(e)}var qi=new RegExp("(?:"+Gl()+")$","i");function Tf(e){var t=e.search(qi);if(t<0)return{};for(var n=e.slice(0,t),r=e.match(qi),a=1;a<r.length;){if(r[a])return{number:n,ext:r[a]};a++}}function kf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Nf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
16
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nf(e,t){if(e){if(typeof e=="string")return Zi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zi(e,t)}}function Zi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var bf={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9"};function Ql(e){return bf[e]}function Wn(e){for(var t="",n=kf(e.split("")),r;!(r=n()).done;){var a=r.value,i=Ql(a);i&&(t+=i)}return t}function Mf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Sf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
17
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sf(e,t){if(e){if(typeof e=="string")return Ki(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ki(e,t)}}function Ki(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Na(e){for(var t="",n=Mf(e.split("")),r;!(r=n()).done;){var a=r.value;t+=Yl(a,t)||""}return t}function Yl(e,t){return e==="+"?t?void 0:"+":Ql(e)}function If(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=vf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
18
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vf(e,t){if(e){if(typeof e=="string")return Ji(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ji(e,t)}}function Ji(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $f(e,t){for(var n=e.slice(),r=If(t),a;!(a=r()).done;){var i=a.value;e.indexOf(i)<0&&n.push(i)}return n.sort(function(s,o){return s-o})}function dr(e,t){return Vl(e,void 0,t)}function Vl(e,t,n){var r=n.type(t),a=r&&r.possibleLengths()||n.possibleLengths();if(!a)return"IS_POSSIBLE";if(t==="FIXED_LINE_OR_MOBILE"){if(!n.type("FIXED_LINE"))return Vl(e,"MOBILE",n);var i=n.type("MOBILE");i&&(a=$f(a,i.possibleLengths()))}else if(t&&!r)return"INVALID_LENGTH";var s=e.length,o=a[0];return o===s?"IS_POSSIBLE":o>s?"TOO_SHORT":a[a.length-1]<s?"TOO_LONG":a.indexOf(s,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function Af(e,t,n){if(t===void 0&&(t={}),n=new he(n),t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.country(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return Wl(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function Wl(e,t){switch(dr(e,t)){case"IS_POSSIBLE":return!0;default:return!1}}function it(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function Ef(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Of(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
19
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Of(e,t){if(e){if(typeof e=="string")return Xi(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xi(e,t)}}function Xi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Df=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function oi(e,t,n){if(t=t||{},!(!e.country&&!e.countryCallingCode)){n=new he(n),n.selectNumberingPlan(e.country,e.countryCallingCode);var r=t.v2?e.nationalNumber:e.phone;if(it(r,n.nationalNumberPattern())){if(_r(r,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||_r(r,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var a=Ef(Df),i;!(i=a()).done;){var s=i.value;if(_r(r,s,n))return s}}}}function _r(e,t,n){return t=n.type(t),!t||!t.pattern()||t.possibleLengths()&&t.possibleLengths().indexOf(e.length)<0?!1:it(e,t.pattern())}function wf(e,t,n){if(t=t||{},n=new he(n),n.selectNumberingPlan(e.country,e.countryCallingCode),n.hasTypes())return oi(e,t,n.metadata)!==void 0;var r=t.v2?e.nationalNumber:e.phone;return it(r,n.nationalNumberPattern())}function _f(e,t,n){var r=new he(n),a=r.getCountryCodesForCallingCode(e);return a?a.filter(function(i){return Cf(t,i,n)}):[]}function Cf(e,t,n){var r=new he(n);return r.selectNumberingPlan(t),r.numberingPlan.possibleLengths().indexOf(e.length)>=0}function Hl(e){return e.replace(new RegExp("[".concat(Ye,"]+"),"g")," ").trim()}var ql=/(\$\d)/;function Zl(e,t,n){var r=n.useInternationalFormat,a=n.withNationalPrefix;n.carrierCode,n.metadata;var i=e.replace(new RegExp(t.pattern()),r?t.internationalFormat():a&&t.nationalPrefixFormattingRule()?t.format().replace(ql,t.nationalPrefixFormattingRule()):t.format());return r?Hl(i):i}var xf=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function jf(e,t,n){var r=new he(n);if(r.selectNumberingPlan(e,t),r.defaultIDDPrefix())return r.defaultIDDPrefix();if(xf.test(r.IDDPrefix()))return r.IDDPrefix()}function Rf(e){var t=e.number,n=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(n?";ext="+n:"")}function Lf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Pf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
20
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pf(e,t){if(e){if(typeof e=="string")return es(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return es(e,t)}}function es(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ts(Object(n),!0).forEach(function(r){Uf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ts(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rs={formatExtension:function(t,n,r){return"".concat(t).concat(r.ext()).concat(n)}};function Ff(e,t,n,r){if(n?n=ns(ns({},rs),n):n=rs,r=new he(r),e.country&&e.country!=="001"){if(!r.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));r.country(e.country)}else if(e.countryCallingCode)r.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var a=r.countryCallingCode(),i=n.v2?e.nationalNumber:e.phone,s;switch(t){case"NATIONAL":return i?(s=Hn(i,e.carrierCode,"NATIONAL",r,n),Cr(s,e.ext,r,n.formatExtension)):"";case"INTERNATIONAL":return i?(s=Hn(i,null,"INTERNATIONAL",r,n),s="+".concat(a," ").concat(s),Cr(s,e.ext,r,n.formatExtension)):"+".concat(a);case"E.164":return"+".concat(a).concat(i);case"RFC3966":return Rf({number:"+".concat(a).concat(i),ext:e.ext});case"IDD":if(!n.fromCountry)return;var o=Bf(i,e.carrierCode,a,n.fromCountry,r);return Cr(o,e.ext,r,n.formatExtension);default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Hn(e,t,n,r,a){var i=zf(r.formats(),e);return i?Zl(e,i,{useInternationalFormat:n==="INTERNATIONAL",withNationalPrefix:!(i.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&a&&a.nationalPrefix===!1),carrierCode:t,metadata:r}):e}function zf(e,t){for(var n=Lf(e),r;!(r=n()).done;){var a=r.value;if(a.leadingDigitsPatterns().length>0){var i=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(i)!==0)continue}if(it(t,a.pattern()))return a}}function Cr(e,t,n,r){return t?r(e,t,n):e}function Bf(e,t,n,r,a){var i=yt(r,a.metadata);if(i===n){var s=Hn(e,t,"NATIONAL",a);return n==="1"?n+" "+s:s}var o=jf(r,void 0,a.metadata);if(o)return"".concat(o," ").concat(n," ").concat(Hn(e,null,"INTERNATIONAL",a))}function as(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function is(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?as(Object(n),!0).forEach(function(r){Gf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):as(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ss(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yf(e,t,n){return t&&ss(e.prototype,t),n&&ss(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kl=function(){function e(t,n,r){if(Qf(this,e),!t)throw new TypeError("`country` or `countryCallingCode` not passed");if(!n)throw new TypeError("`nationalNumber` not passed");if(!r)throw new TypeError("`metadata` not passed");var a=Wf(t,r),i=a.country,s=a.countryCallingCode;this.country=i,this.countryCallingCode=s,this.nationalNumber=n,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return r}}return Yf(e,[{key:"setExt",value:function(n){this.ext=n}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:_f(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return Af(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return wf(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){var n=new he(this.getMetadata());return n.isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(n){return this.number===n.number&&this.ext===n.ext}},{key:"getType",value:function(){return oi(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(n,r){return Ff(this,n,r?is(is({},r),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(n){return this.format("NATIONAL",n)}},{key:"formatInternational",value:function(n){return this.format("INTERNATIONAL",n)}},{key:"getURI",value:function(n){return this.format("RFC3966",n)}}]),e}(),Vf=function(t){return/^[A-Z]{2}$/.test(t)};function Wf(e,t){var n,r,a=new he(t);return Vf(e)?(n=e,a.selectNumberingPlan(n),r=a.countryCallingCode()):r=e,{country:n,countryCallingCode:r}}var Hf=new RegExp("(["+Ee+"])");function Jl(e,t,n,r){if(t){var a=new he(r);a.selectNumberingPlan(t,n);var i=new RegExp(a.IDDPrefix());if(e.search(i)===0){e=e.slice(e.match(i)[0].length);var s=e.match(Hf);if(!(s&&s[1]!=null&&s[1].length>0&&s[1]==="0"))return e}}}function ba(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var n=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),r=n.exec(e);if(r){var a,i,s=r.length-1,o=s>0&&r[s];if(t.nationalPrefixTransformRule()&&o)a=e.replace(n,t.nationalPrefixTransformRule()),s>1&&(i=r[1]);else{var u=r[0];a=e.slice(u.length),o&&(i=r[1])}var m;if(o){var p=e.indexOf(r[1]),g=e.slice(0,p);g===t.numberingPlan.nationalPrefix()&&(m=t.numberingPlan.nationalPrefix())}else m=r[0];return{nationalNumber:a,nationalPrefix:m,carrierCode:i}}}return{nationalNumber:e}}function Ma(e,t){var n=ba(e,t),r=n.carrierCode,a=n.nationalNumber;if(a!==e){if(!qf(e,a,t))return{nationalNumber:e};if(t.possibleLengths()&&!Zf(a,t))return{nationalNumber:e}}return{nationalNumber:a,carrierCode:r}}function qf(e,t,n){return!(it(e,n.nationalNumberPattern())&&!it(t,n.nationalNumberPattern()))}function Zf(e,t){switch(dr(e,t)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function Xl(e,t,n,r){var a=t?yt(t,r):n;if(e.indexOf(a)===0){r=new he(r),r.selectNumberingPlan(t,n);var i=e.slice(a.length),s=Ma(i,r),o=s.nationalNumber,u=Ma(e,r),m=u.nationalNumber;if(!it(m,r.nationalNumberPattern())&&it(o,r.nationalNumberPattern())||dr(m,r)==="TOO_LONG")return{countryCallingCode:a,number:i}}return{number:e}}function eu(e,t,n,r){if(!e)return{};var a;if(e[0]!=="+"){var i=Jl(e,t,n,r);if(i&&i!==e)a=!0,e="+"+i;else{if(t||n){var s=Xl(e,t,n,r),o=s.countryCallingCode,u=s.number;if(o)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:o,number:u}}return{number:e}}}if(e[1]==="0")return{};r=new he(r);for(var m=2;m-1<=Wm&&m<=e.length;){var p=e.slice(1,m);if(r.hasCallingCode(p))return r.selectNumberingPlan(p),{countryCallingCodeSource:a?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:p,number:e.slice(m)};m++}return{}}function Kf(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Jf(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
21
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jf(e,t){if(e){if(typeof e=="string")return os(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return os(e,t)}}function os(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tu(e,t){var n=t.countries,r=t.defaultCountry,a=t.metadata;a=new he(a);for(var i=[],s=Kf(n),o;!(o=s()).done;){var u=o.value;if(a.country(u),a.leadingDigits()){if(e&&e.search(a.leadingDigits())===0)return u}else if(oi({phone:e,country:u},void 0,a.metadata))if(r){if(u===r)return u;i.push(u)}else return u}if(i.length>0)return i[0]}var Xf=!1;function nu(e,t){var n=t.nationalNumber,r=t.defaultCountry,a=t.metadata;if(Xf&&a.isNonGeographicCallingCode(e))return"001";var i=a.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:tu(n,{countries:i,defaultCountry:r,metadata:a.metadata})}var ru="+",ep="[\\-\\.\\(\\)]?",ls="(["+Ee+"]|"+ep+")",tp="^\\"+ru+ls+"*["+Ee+"]"+ls+"*$",np=new RegExp(tp,"g"),Sa=Ee,rp="["+Sa+"]+((\\-)*["+Sa+"])*",ap="a-zA-Z",ip="["+ap+"]+((\\-)*["+Sa+"])*",sp="^("+rp+"\\.)*"+ip+"\\.?$",op=new RegExp(sp,"g"),us="tel:",Ia=";phone-context=",lp=";isub=";function up(e){var t=e.indexOf(Ia);if(t<0)return null;var n=t+Ia.length;if(n>=e.length)return"";var r=e.indexOf(";",n);return r>=0?e.substring(n,r):e.substring(n)}function cp(e){return e===null?!0:e.length===0?!1:np.test(e)||op.test(e)}function dp(e,t){var n=t.extractFormattedPhoneNumber,r=up(e);if(!cp(r))throw new et("NOT_A_NUMBER");var a;if(r===null)a=n(e)||"";else{a="",r.charAt(0)===ru&&(a+=r);var i=e.indexOf(us),s;i>=0?s=i+us.length:s=0;var o=e.indexOf(Ia);a+=e.substring(s,o)}var u=a.indexOf(lp);if(u>0&&(a=a.substring(0,u)),a!=="")return a}var mp=250,fp=new RegExp("["+lr+Ee+"]"),pp=new RegExp("[^"+Ee+"#]+$");function yp(e,t,n){if(t=t||{},n=new he(n),t.defaultCountry&&!n.hasCountry(t.defaultCountry))throw t.v2?new et("INVALID_COUNTRY"):new Error("Unknown country: ".concat(t.defaultCountry));var r=hp(e,t.v2,t.extract),a=r.number,i=r.ext,s=r.error;if(!a){if(t.v2)throw s==="TOO_SHORT"?new et("TOO_SHORT"):new et("NOT_A_NUMBER");return{}}var o=kp(a,t.defaultCountry,t.defaultCallingCode,n),u=o.country,m=o.nationalNumber,p=o.countryCallingCode,g=o.countryCallingCodeSource,y=o.carrierCode;if(!n.hasSelectedNumberingPlan()){if(t.v2)throw new et("INVALID_COUNTRY");return{}}if(!m||m.length<si){if(t.v2)throw new et("TOO_SHORT");return{}}if(m.length>Vm){if(t.v2)throw new et("TOO_LONG");return{}}if(t.v2){var k=new Kl(p,m,n.metadata);return u&&(k.country=u),y&&(k.carrierCode=y),i&&(k.ext=i),k.__countryCallingCodeSource=g,k}var M=(t.extended?n.hasSelectedNumberingPlan():u)?it(m,n.nationalNumberPattern()):!1;return t.extended?{country:u,countryCallingCode:p,carrierCode:y,valid:M,possible:M?!0:!!(t.extended===!0&&n.possibleLengths()&&Wl(m,n)),phone:m,ext:i}:M?Tp(u,m,i):{}}function gp(e,t,n){if(e){if(e.length>mp){if(n)throw new et("TOO_LONG");return}if(t===!1)return e;var r=e.search(fp);if(!(r<0))return e.slice(r).replace(pp,"")}}function hp(e,t,n){var r=dp(e,{extractFormattedPhoneNumber:function(s){return gp(s,n,t)}});if(!r)return{};if(!gf(r))return hf(r)?{error:"TOO_SHORT"}:{};var a=Tf(r);return a.ext?a:{number:r}}function Tp(e,t,n){var r={country:e,phone:t};return n&&(r.ext=n),r}function kp(e,t,n,r){var a=eu(Na(e),t,n,r.metadata),i=a.countryCallingCodeSource,s=a.countryCallingCode,o=a.number,u;if(s)r.selectNumberingPlan(s);else if(o&&(t||n))r.selectNumberingPlan(t,n),t&&(u=t),s=n||yt(t,r.metadata);else return{};if(!o)return{countryCallingCodeSource:i,countryCallingCode:s};var m=Ma(Na(o),r),p=m.nationalNumber,g=m.carrierCode,y=nu(s,{nationalNumber:p,defaultCountry:t,metadata:r});return y&&(u=y,y==="001"||r.country(u)),{country:u,countryCallingCode:s,countryCallingCodeSource:i,nationalNumber:p,carrierCode:g}}function cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ds(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cs(Object(n),!0).forEach(function(r){Np(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Np(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(e,t,n){return yp(e,ds(ds({},t),{},{v2:!0}),n)}function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(r){Sp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ip(e,t){return Ep(e)||Ap(e,t)||$p(e,t)||vp()}function vp(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
22
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $p(e,t){if(e){if(typeof e=="string")return fs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fs(e,t)}}function fs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ap(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function Ep(e){if(Array.isArray(e))return e}function au(e){var t=Array.prototype.slice.call(e),n=Ip(t,4),r=n[0],a=n[1],i=n[2],s=n[3],o,u,m;if(typeof r=="string")o=r;else throw new TypeError("A text for parsing must be a string.");if(!a||typeof a=="string")s?(u=i,m=s):(u=void 0,m=i),a&&(u=Mp({defaultCountry:a},u));else if(cn(a))i?(u=a,m=i):m=a;else throw new Error("Invalid second argument: ".concat(a));return{text:o,options:u,metadata:m}}function ps(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ps(Object(n),!0).forEach(function(r){Op(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ps(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Op(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iu(e,t,n){t&&t.defaultCountry&&!zl(t.defaultCountry,n)&&(t=ys(ys({},t),{},{defaultCountry:void 0}));try{return bp(e,t,n)}catch(r){if(!(r instanceof et))throw r}}function su(){var e=au(arguments),t=e.text,n=e.options,r=e.metadata;return iu(t,n,r)}function gs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function hs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gs(Object(n),!0).forEach(function(r){Dp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wp(){var e=au(arguments),t=e.text,n=e.options,r=e.metadata;n=hs(hs({},n),{},{extract:!1});var a=iu(t,n,r);return a&&a.isValid()||!1}function _p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ts(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cp(e,t,n){return t&&Ts(e.prototype,t),n&&Ts(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var xp=function(){function e(t){var n=t.onCountryChange,r=t.onCallingCodeChange;_p(this,e),this.onCountryChange=n,this.onCallingCodeChange=r}return Cp(e,[{key:"reset",value:function(n){var r=n.country,a=n.callingCode;this.international=!1,this.missingPlus=!1,this.IDDPrefix=void 0,this.callingCode=void 0,this.digits="",this.resetNationalSignificantNumber(),this.initCountryAndCallingCode(r,a)}},{key:"resetNationalSignificantNumber",value:function(){this.nationalSignificantNumber=this.getNationalDigits(),this.nationalSignificantNumberMatchesInput=!0,this.nationalPrefix=void 0,this.carrierCode=void 0,this.complexPrefixBeforeNationalSignificantNumber=void 0}},{key:"update",value:function(n){for(var r=0,a=Object.keys(n);r<a.length;r++){var i=a[r];this[i]=n[i]}}},{key:"initCountryAndCallingCode",value:function(n,r){this.setCountry(n),this.setCallingCode(r)}},{key:"setCountry",value:function(n){this.country=n,this.onCountryChange(n)}},{key:"setCallingCode",value:function(n){this.callingCode=n,this.onCallingCodeChange(n,this.country)}},{key:"startInternationalNumber",value:function(n,r){this.international=!0,this.initCountryAndCallingCode(n,r)}},{key:"appendDigits",value:function(n){this.digits+=n}},{key:"appendNationalSignificantNumberDigits",value:function(n){this.nationalSignificantNumber+=n}},{key:"getNationalDigits",value:function(){return this.international?this.digits.slice((this.IDDPrefix?this.IDDPrefix.length:0)+(this.callingCode?this.callingCode.length:0)):this.digits}},{key:"getDigitsWithoutInternationalPrefix",value:function(){return this.international&&this.IDDPrefix?this.digits.slice(this.IDDPrefix.length):this.digits}}]),e}();function jp(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Rp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
23
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rp(e,t){if(e){if(typeof e=="string")return ks(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ks(e,t)}}function ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Be="x",xr=new RegExp(Be);function jn(e,t){if(t<1)return"";for(var n="";t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+e}function Ns(e,t){return e[t]===")"&&t++,Lp(e.slice(0,t))}function Lp(e){for(var t=[],n=0;n<e.length;)e[n]==="("?t.push(n):e[n]===")"&&t.pop(),n++;var r=0,a="";t.push(e.length);for(var i=0,s=t;i<s.length;i++){var o=s[i];a+=e.slice(r,o),r=o+1}return a}function Pp(e,t,n){for(var r=jp(n.split("")),a;!(a=r()).done;){var i=a.value;if(e.slice(t+1).search(xr)<0)return;t=e.search(xr),e=e.replace(xr,i)}return[e,t]}function Up(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=new RegExp("^(?:".concat(t.pattern(),")$"));if(s.test(e.nationalSignificantNumber))return zp(e,t,{metadata:r,shouldTryNationalPrefixFormattingRule:a,getSeparatorAfterNationalPrefix:i})}function Fp(e,t){return dr(e,t)==="IS_POSSIBLE"}function zp(e,t,n){var r=n.metadata,a=n.shouldTryNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix;if(e.nationalSignificantNumber,e.international,e.nationalPrefix,e.carrierCode,a(t)){var s=bs(e,t,{useNationalPrefixFormattingRule:!0,getSeparatorAfterNationalPrefix:i,metadata:r});if(s)return s}return bs(e,t,{useNationalPrefixFormattingRule:!1,getSeparatorAfterNationalPrefix:i,metadata:r})}function bs(e,t,n){var r=n.metadata,a=n.useNationalPrefixFormattingRule,i=n.getSeparatorAfterNationalPrefix,s=Zl(e.nationalSignificantNumber,t,{carrierCode:e.carrierCode,useInternationalFormat:e.international,withNationalPrefix:a,metadata:r});if(a||(e.nationalPrefix?s=e.nationalPrefix+i(t)+s:e.complexPrefixBeforeNationalSignificantNumber&&(s=e.complexPrefixBeforeNationalSignificantNumber+" "+s)),Bp(s,e))return s}function Bp(e,t){return Wn(e)===t.getNationalDigits()}function Gp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qp(e,t,n){return t&&Ms(e.prototype,t),n&&Ms(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Yp=function(){function e(){Gp(this,e)}return Qp(e,[{key:"parse",value:function(n){if(this.context=[{or:!0,instructions:[]}],this.parsePattern(n),this.context.length!==1)throw new Error("Non-finalized contexts left when pattern parse ended");var r=this.context[0],a=r.branches,i=r.instructions;if(a)return{op:"|",args:a.concat([jr(i)])};if(i.length===0)throw new Error("Pattern is required");return i.length===1?i[0]:i}},{key:"startContext",value:function(n){this.context.push(n)}},{key:"endContext",value:function(){this.context.pop()}},{key:"getContext",value:function(){return this.context[this.context.length-1]}},{key:"parsePattern",value:function(n){if(!n)throw new Error("Pattern is required");var r=n.match(Hp);if(!r){if(Wp.test(n))throw new Error("Illegal characters found in a pattern: ".concat(n));this.getContext().instructions=this.getContext().instructions.concat(n.split(""));return}var a=r[1],i=n.slice(0,r.index),s=n.slice(r.index+a.length);switch(a){case"(?:":i&&this.parsePattern(i),this.startContext({or:!0,instructions:[],branches:[]});break;case")":if(!this.getContext().or)throw new Error('")" operator must be preceded by "(?:" operator');if(i&&this.parsePattern(i),this.getContext().instructions.length===0)throw new Error('No instructions found after "|" operator in an "or" group');var o=this.getContext(),u=o.branches;u.push(jr(this.getContext().instructions)),this.endContext(),this.getContext().instructions.push({op:"|",args:u});break;case"|":if(!this.getContext().or)throw new Error('"|" operator can only be used inside "or" groups');if(i&&this.parsePattern(i),!this.getContext().branches)if(this.context.length===1)this.getContext().branches=[];else throw new Error('"branches" not found in an "or" group context');this.getContext().branches.push(jr(this.getContext().instructions)),this.getContext().instructions=[];break;case"[":i&&this.parsePattern(i),this.startContext({oneOfSet:!0});break;case"]":if(!this.getContext().oneOfSet)throw new Error('"]" operator must be preceded by "[" operator');this.endContext(),this.getContext().instructions.push({op:"[]",args:Vp(i)});break;default:throw new Error("Unknown operator: ".concat(a))}s&&this.parsePattern(s)}}]),e}();function Vp(e){for(var t=[],n=0;n<e.length;){if(e[n]==="-"){if(n===0||n===e.length-1)throw new Error("Couldn't parse a one-of set pattern: ".concat(e));for(var r=e[n-1].charCodeAt(0)+1,a=e[n+1].charCodeAt(0)-1,i=r;i<=a;)t.push(String.fromCharCode(i)),i++}else t.push(e[n]);n++}return t}var Wp=/[\(\)\[\]\?\:\|]/,Hp=new RegExp("(\\||\\(\\?\\:|\\)|\\[|\\])");function jr(e){return e.length===1?e[0]:e}function Ss(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=qp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
24
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qp(e,t){if(e){if(typeof e=="string")return Is(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Is(e,t)}}function Is(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kp(e,t,n){return t&&vs(e.prototype,t),n&&vs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Jp=function(){function e(t){Zp(this,e),this.matchTree=new Yp().parse(t)}return Kp(e,[{key:"match",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.allowOverflow;if(!n)throw new Error("String is required");var i=va(n.split(""),this.matchTree,!0);if(i&&i.match&&delete i.matchedChars,!(i&&i.overflow&&!a))return i}}]),e}();function va(e,t,n){if(typeof t=="string"){var r=e.join("");return t.indexOf(r)===0?e.length===t.length?{match:!0,matchedChars:e}:{partialMatch:!0}:r.indexOf(t)===0?n&&e.length>t.length?{overflow:!0}:{match:!0,matchedChars:e.slice(0,t.length)}:void 0}if(Array.isArray(t)){for(var a=e.slice(),i=0;i<t.length;){var s=t[i],o=va(a,s,n&&i===t.length-1);if(o){if(o.overflow)return o;if(o.match){if(a=a.slice(o.matchedChars.length),a.length===0)return i===t.length-1?{match:!0,matchedChars:e}:{partialMatch:!0}}else{if(o.partialMatch)return{partialMatch:!0};throw new Error(`Unsupported match result:
25
+ `.concat(JSON.stringify(o,null,2)))}}else return;i++}return n?{overflow:!0}:{match:!0,matchedChars:e.slice(0,e.length-a.length)}}switch(t.op){case"|":for(var u,m=Ss(t.args),p;!(p=m()).done;){var g=p.value,y=va(e,g,n);if(y){if(y.overflow)return y;if(y.match)return{match:!0,matchedChars:y.matchedChars};if(y.partialMatch)u=!0;else throw new Error(`Unsupported match result:
26
+ `.concat(JSON.stringify(y,null,2)))}}return u?{partialMatch:!0}:void 0;case"[]":for(var k=Ss(t.args),M;!(M=k()).done;){var S=M.value;if(e[0]===S)return e.length===1?{match:!0,matchedChars:e}:n?{overflow:!0}:{match:!0,matchedChars:[S]}}return;default:throw new Error("Unsupported instruction tree: ".concat(t))}}function $s(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Xp(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xp(e,t){if(e){if(typeof e=="string")return As(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return As(e,t)}}function As(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ey(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Es(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ty(e,t,n){return t&&Es(e.prototype,t),n&&Es(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var $a="9",ny=15,ry=jn($a,ny),ay=/[- ]/,iy=function(){return/\[([^\[\]])*\]/g},sy=function(){return/\d(?=[^,}][^,}])/g},oy=new RegExp("["+Ye+"]*\\$1["+Ye+"]*(\\$\\d["+Ye+"]*)*$"),Os=3,ly=function(){function e(t){t.state;var n=t.metadata;ey(this,e),this.metadata=n,this.resetFormat()}return ty(e,[{key:"resetFormat",value:function(){this.chosenFormat=void 0,this.template=void 0,this.nationalNumberTemplate=void 0,this.populatedNationalNumberTemplate=void 0,this.populatedNationalNumberTemplatePosition=-1}},{key:"reset",value:function(n,r){this.resetFormat(),n?(this.isNANP=n.callingCode()==="1",this.matchingFormats=n.formats(),r.nationalSignificantNumber&&this.narrowDownMatchingFormats(r)):(this.isNANP=void 0,this.matchingFormats=[])}},{key:"format",value:function(n,r){var a=this;if(Fp(r.nationalSignificantNumber,this.metadata))for(var i=$s(this.matchingFormats),s;!(s=i()).done;){var o=s.value,u=Up(r,o,{metadata:this.metadata,shouldTryNationalPrefixFormattingRule:function(p){return a.shouldTryNationalPrefixFormattingRule(p,{international:r.international,nationalPrefix:r.nationalPrefix})},getSeparatorAfterNationalPrefix:function(p){return a.getSeparatorAfterNationalPrefix(p)}});if(u)return this.resetFormat(),this.chosenFormat=o,this.setNationalNumberTemplate(u.replace(/\d/g,Be),r),this.populatedNationalNumberTemplate=u,this.populatedNationalNumberTemplatePosition=this.template.lastIndexOf(Be),u}return this.formatNationalNumberWithNextDigits(n,r)}},{key:"formatNationalNumberWithNextDigits",value:function(n,r){var a=this.chosenFormat,i=this.chooseFormat(r);if(i)return i===a?this.formatNextNationalNumberDigits(n):this.formatNextNationalNumberDigits(r.getNationalDigits())}},{key:"narrowDownMatchingFormats",value:function(n){var r=this,a=n.nationalSignificantNumber,i=n.nationalPrefix,s=n.international,o=a,u=o.length-Os;u<0&&(u=0),this.matchingFormats=this.matchingFormats.filter(function(m){return r.formatSuits(m,s,i)&&r.formatMatches(m,o,u)}),this.chosenFormat&&this.matchingFormats.indexOf(this.chosenFormat)===-1&&this.resetFormat()}},{key:"formatSuits",value:function(n,r,a){return!(a&&!n.usesNationalPrefix()&&!n.nationalPrefixIsOptionalWhenFormattingInNationalFormat()||!r&&!a&&n.nationalPrefixIsMandatoryWhenFormattingInNationalFormat())}},{key:"formatMatches",value:function(n,r,a){var i=n.leadingDigitsPatterns().length;if(i===0)return!0;a=Math.min(a,i-1);var s=n.leadingDigitsPatterns()[a];if(r.length<Os)try{return new Jp(s).match(r,{allowOverflow:!0})!==void 0}catch(o){return console.error(o),!0}return new RegExp("^(".concat(s,")")).test(r)}},{key:"getFormatFormat",value:function(n,r){return r?n.internationalFormat():n.format()}},{key:"chooseFormat",value:function(n){for(var r=this,a=function(){var m=s.value;return r.chosenFormat===m?"break":oy.test(r.getFormatFormat(m,n.international))?r.createTemplateForFormat(m,n)?(r.chosenFormat=m,"break"):(r.matchingFormats=r.matchingFormats.filter(function(p){return p!==m}),"continue"):"continue"},i=$s(this.matchingFormats.slice()),s;!(s=i()).done;){var o=a();if(o==="break")break}return this.chosenFormat||this.resetFormat(),this.chosenFormat}},{key:"createTemplateForFormat",value:function(n,r){if(!(n.pattern().indexOf("|")>=0)){var a=this.getTemplateForFormat(n,r);if(a)return this.setNationalNumberTemplate(a,r),!0}}},{key:"getSeparatorAfterNationalPrefix",value:function(n){return this.isNANP||n&&n.nationalPrefixFormattingRule()&&ay.test(n.nationalPrefixFormattingRule())?" ":""}},{key:"getInternationalPrefixBeforeCountryCallingCode",value:function(n,r){var a=n.IDDPrefix,i=n.missingPlus;return a?r&&r.spacing===!1?a:a+" ":i?"":"+"}},{key:"getTemplate",value:function(n){if(this.template){for(var r=-1,a=0,i=n.international?this.getInternationalPrefixBeforeCountryCallingCode(n,{spacing:!1}):"";a<i.length+n.getDigitsWithoutInternationalPrefix().length;)r=this.template.indexOf(Be,r+1),a++;return Ns(this.template,r+1)}}},{key:"setNationalNumberTemplate",value:function(n,r){this.nationalNumberTemplate=n,this.populatedNationalNumberTemplate=n,this.populatedNationalNumberTemplatePosition=-1,r.international?this.template=this.getInternationalPrefixBeforeCountryCallingCode(r).replace(/[\d\+]/g,Be)+jn(Be,r.callingCode.length)+" "+n:this.template=n}},{key:"getTemplateForFormat",value:function(n,r){var a=r.nationalSignificantNumber,i=r.international,s=r.nationalPrefix,o=r.complexPrefixBeforeNationalSignificantNumber,u=n.pattern();u=u.replace(iy(),"\\d").replace(sy(),"\\d");var m=ry.match(u)[0];if(!(a.length>m.length)){var p=new RegExp("^"+u+"$"),g=a.replace(/\d/g,$a);p.test(g)&&(m=g);var y=this.getFormatFormat(n,i),k;if(this.shouldTryNationalPrefixFormattingRule(n,{international:i,nationalPrefix:s})){var M=y.replace(ql,n.nationalPrefixFormattingRule());if(Wn(n.nationalPrefixFormattingRule())===(s||"")+Wn("$1")&&(y=M,k=!0,s))for(var S=s.length;S>0;)y=y.replace(/\d/,Be),S--}var _=m.replace(new RegExp(u),y).replace(new RegExp($a,"g"),Be);return k||(o?_=jn(Be,o.length)+" "+_:s&&(_=jn(Be,s.length)+this.getSeparatorAfterNationalPrefix(n)+_)),i&&(_=Hl(_)),_}}},{key:"formatNextNationalNumberDigits",value:function(n){var r=Pp(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition,n);if(!r){this.resetFormat();return}return this.populatedNationalNumberTemplate=r[0],this.populatedNationalNumberTemplatePosition=r[1],Ns(this.populatedNationalNumberTemplate,this.populatedNationalNumberTemplatePosition+1)}},{key:"shouldTryNationalPrefixFormattingRule",value:function(n,r){var a=r.international,i=r.nationalPrefix;if(n.nationalPrefixFormattingRule()){var s=n.usesNationalPrefix();if(s&&i||!s&&!a)return!0}}}]),e}();function ou(e,t){return my(e)||dy(e,t)||cy(e,t)||uy()}function uy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
28
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cy(e,t){if(e){if(typeof e=="string")return Ds(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ds(e,t)}}function Ds(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dy(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function my(e){if(Array.isArray(e))return e}function fy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function py(e,t,n){return t&&ws(e.prototype,t),n&&ws(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var yy="["+Ye+Ee+"]+",gy=new RegExp("^"+yy+"$","i"),hy="(?:["+lr+"]["+Ye+Ee+"]*|["+Ye+Ee+"]+)",Ty=new RegExp("[^"+Ye+Ee+"]+.*$"),ky=/[^\d\[\]]/,Ny=function(){function e(t){var n=t.defaultCountry,r=t.defaultCallingCode,a=t.metadata,i=t.onNationalSignificantNumberChange;fy(this,e),this.defaultCountry=n,this.defaultCallingCode=r,this.metadata=a,this.onNationalSignificantNumberChange=i}return py(e,[{key:"input",value:function(n,r){var a=Sy(n),i=ou(a,2),s=i[0],o=i[1],u=Wn(s),m;return o&&(r.digits||(r.startInternationalNumber(),u||(m=!0))),u&&this.inputDigits(u,r),{digits:u,justLeadingPlus:m}}},{key:"inputDigits",value:function(n,r){var a=r.digits,i=a.length<3&&a.length+n.length>=3;if(r.appendDigits(n),i&&this.extractIddPrefix(r),this.isWaitingForCountryCallingCode(r)){if(!this.extractCountryCallingCode(r))return}else r.appendNationalSignificantNumberDigits(n);r.international||this.hasExtractedNationalSignificantNumber||this.extractNationalSignificantNumber(r.getNationalDigits(),function(s){return r.update(s)})}},{key:"isWaitingForCountryCallingCode",value:function(n){var r=n.international,a=n.callingCode;return r&&!a}},{key:"extractCountryCallingCode",value:function(n){var r=eu("+"+n.getDigitsWithoutInternationalPrefix(),this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode,i=r.number;if(a)return n.setCallingCode(a),n.update({nationalSignificantNumber:i}),!0}},{key:"reset",value:function(n){if(n){this.hasSelectedNumberingPlan=!0;var r=n._nationalPrefixForParsing();this.couldPossiblyExtractAnotherNationalSignificantNumber=r&&ky.test(r)}else this.hasSelectedNumberingPlan=void 0,this.couldPossiblyExtractAnotherNationalSignificantNumber=void 0}},{key:"extractNationalSignificantNumber",value:function(n,r){if(this.hasSelectedNumberingPlan){var a=ba(n,this.metadata),i=a.nationalPrefix,s=a.nationalNumber,o=a.carrierCode;if(s!==n)return this.onExtractedNationalNumber(i,o,s,n,r),!0}}},{key:"extractAnotherNationalSignificantNumber",value:function(n,r,a){if(!this.hasExtractedNationalSignificantNumber)return this.extractNationalSignificantNumber(n,a);if(this.couldPossiblyExtractAnotherNationalSignificantNumber){var i=ba(n,this.metadata),s=i.nationalPrefix,o=i.nationalNumber,u=i.carrierCode;if(o!==r)return this.onExtractedNationalNumber(s,u,o,n,a),!0}}},{key:"onExtractedNationalNumber",value:function(n,r,a,i,s){var o,u,m=i.lastIndexOf(a);if(m>=0&&m===i.length-a.length){u=!0;var p=i.slice(0,m);p!==n&&(o=p)}s({nationalPrefix:n,carrierCode:r,nationalSignificantNumber:a,nationalSignificantNumberMatchesInput:u,complexPrefixBeforeNationalSignificantNumber:o}),this.hasExtractedNationalSignificantNumber=!0,this.onNationalSignificantNumberChange()}},{key:"reExtractNationalSignificantNumber",value:function(n){if(this.extractAnotherNationalSignificantNumber(n.getNationalDigits(),n.nationalSignificantNumber,function(r){return n.update(r)}))return!0;if(this.extractIddPrefix(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0;if(this.fixMissingPlus(n))return this.extractCallingCodeAndNationalSignificantNumber(n),!0}},{key:"extractIddPrefix",value:function(n){var r=n.international,a=n.IDDPrefix,i=n.digits;if(n.nationalSignificantNumber,!(r||a)){var s=Jl(i,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata);if(s!==void 0&&s!==i)return n.update({IDDPrefix:i.slice(0,i.length-s.length)}),this.startInternationalNumber(n,{country:void 0,callingCode:void 0}),!0}}},{key:"fixMissingPlus",value:function(n){if(!n.international){var r=Xl(n.digits,this.defaultCountry,this.defaultCallingCode,this.metadata.metadata),a=r.countryCallingCode;if(r.number,a)return n.update({missingPlus:!0}),this.startInternationalNumber(n,{country:n.country,callingCode:a}),!0}}},{key:"startInternationalNumber",value:function(n,r){var a=r.country,i=r.callingCode;n.startInternationalNumber(a,i),n.nationalSignificantNumber&&(n.resetNationalSignificantNumber(),this.onNationalSignificantNumberChange(),this.hasExtractedNationalSignificantNumber=void 0)}},{key:"extractCallingCodeAndNationalSignificantNumber",value:function(n){this.extractCountryCallingCode(n)&&this.extractNationalSignificantNumber(n.getNationalDigits(),function(r){return n.update(r)})}}]),e}();function by(e){var t=e.search(hy);if(!(t<0)){e=e.slice(t);var n;return e[0]==="+"&&(n=!0,e=e.slice(1)),e=e.replace(Ty,""),n&&(e="+"+e),e}}function My(e){var t=by(e)||"";return t[0]==="+"?[t.slice(1),!0]:[t]}function Sy(e){var t=My(e),n=ou(t,2),r=n[0],a=n[1];return gy.test(r)||(r=""),[r,a]}function Iy(e,t){return Ey(e)||Ay(e,t)||$y(e,t)||vy()}function vy(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $y(e,t){if(e){if(typeof e=="string")return _s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _s(e,t)}}function _s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ay(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,i=!1,s,o;try{for(n=n.call(e);!(a=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));a=!0);}catch(u){i=!0,o=u}finally{try{!a&&n.return!=null&&n.return()}finally{if(i)throw o}}return r}}function Ey(e){if(Array.isArray(e))return e}function Oy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dy(e,t,n){return t&&Cs(e.prototype,t),n&&Cs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Kt=function(){function e(t,n){Oy(this,e),this.metadata=new he(n);var r=this.getCountryAndCallingCode(t),a=Iy(r,2),i=a[0],s=a[1];this.defaultCountry=i,this.defaultCallingCode=s,this.reset()}return Dy(e,[{key:"getCountryAndCallingCode",value:function(n){var r,a;return n&&(cn(n)?(r=n.defaultCountry,a=n.defaultCallingCode):r=n),r&&!this.metadata.hasCountry(r)&&(r=void 0),[r,a]}},{key:"input",value:function(n){var r=this.parser.input(n,this.state),a=r.digits,i=r.justLeadingPlus;if(i)this.formattedOutput="+";else if(a){this.determineTheCountryIfNeeded(),this.state.nationalSignificantNumber&&this.formatter.narrowDownMatchingFormats(this.state);var s;if(this.metadata.hasSelectedNumberingPlan()&&(s=this.formatter.format(a,this.state)),s===void 0&&this.parser.reExtractNationalSignificantNumber(this.state)){this.determineTheCountryIfNeeded();var o=this.state.getNationalDigits();o&&(s=this.formatter.format(o,this.state))}this.formattedOutput=s?this.getFullNumber(s):this.getNonFormattedNumber()}return this.formattedOutput}},{key:"reset",value:function(){var n=this;return this.state=new xp({onCountryChange:function(a){n.country=a},onCallingCodeChange:function(a,i){n.metadata.selectNumberingPlan(i,a),n.formatter.reset(n.metadata.numberingPlan,n.state),n.parser.reset(n.metadata.numberingPlan)}}),this.formatter=new ly({state:this.state,metadata:this.metadata}),this.parser=new Ny({defaultCountry:this.defaultCountry,defaultCallingCode:this.defaultCallingCode,metadata:this.metadata,state:this.state,onNationalSignificantNumberChange:function(){n.determineTheCountryIfNeeded(),n.formatter.reset(n.metadata.numberingPlan,n.state)}}),this.state.reset({country:this.defaultCountry,callingCode:this.defaultCallingCode}),this.formattedOutput="",this}},{key:"isInternational",value:function(){return this.state.international}},{key:"getCallingCode",value:function(){if(this.isInternational())return this.state.callingCode}},{key:"getCountryCallingCode",value:function(){return this.getCallingCode()}},{key:"getCountry",value:function(){var n=this.state.digits;if(n)return this._getCountry()}},{key:"_getCountry",value:function(){var n=this.state.country;return n}},{key:"determineTheCountryIfNeeded",value:function(){(!this.state.country||this.isCountryCallingCodeAmbiguous())&&this.determineTheCountry()}},{key:"getFullNumber",value:function(n){var r=this;if(this.isInternational()){var a=function(o){return r.formatter.getInternationalPrefixBeforeCountryCallingCode(r.state,{spacing:!!o})+o},i=this.state.callingCode;return a(i?n?"".concat(i," ").concat(n):i:"".concat(this.state.getDigitsWithoutInternationalPrefix()))}return n}},{key:"getNonFormattedNationalNumberWithPrefix",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.complexPrefixBeforeNationalSignificantNumber,i=n.nationalPrefix,s=r,o=a||i;return o&&(s=o+s),s}},{key:"getNonFormattedNumber",value:function(){var n=this.state.nationalSignificantNumberMatchesInput;return this.getFullNumber(n?this.getNonFormattedNationalNumberWithPrefix():this.state.getNationalDigits())}},{key:"getNonFormattedTemplate",value:function(){var n=this.getNonFormattedNumber();if(n)return n.replace(/[\+\d]/g,Be)}},{key:"isCountryCallingCodeAmbiguous",value:function(){var n=this.state.callingCode,r=this.metadata.getCountryCodesForCallingCode(n);return r&&r.length>1}},{key:"determineTheCountry",value:function(){this.state.setCountry(nu(this.isInternational()?this.state.callingCode:this.defaultCallingCode,{nationalNumber:this.state.nationalSignificantNumber,defaultCountry:this.defaultCountry,metadata:this.metadata}))}},{key:"getNumberValue",value:function(){var n=this.state,r=n.digits,a=n.callingCode,i=n.country,s=n.nationalSignificantNumber;if(r){if(this.isInternational())return a?"+"+a+s:"+"+r;if(i||a){var o=i?this.metadata.countryCallingCode():a;return"+"+o+s}}}},{key:"getNumber",value:function(){var n=this.state,r=n.nationalSignificantNumber,a=n.carrierCode,i=n.callingCode,s=this._getCountry();if(r&&!(!s&&!i)){if(s&&s===this.defaultCountry){var o=new he(this.metadata.metadata);o.selectNumberingPlan(s);var u=o.numberingPlan.callingCode(),m=this.metadata.getCountryCodesForCallingCode(u);if(m.length>1){var p=tu(r,{countries:m,defaultCountry:this.defaultCountry,metadata:this.metadata.metadata});p&&(s=p)}}var g=new Kl(s||i,r,this.metadata.metadata);return a&&(g.carrierCode=a),g}}},{key:"isPossible",value:function(){var n=this.getNumber();return n?n.isPossible():!1}},{key:"isValid",value:function(){var n=this.getNumber();return n?n.isValid():!1}},{key:"getNationalNumber",value:function(){return this.state.nationalSignificantNumber}},{key:"getChars",value:function(){return(this.state.international?"+":"")+this.state.digits}},{key:"getTemplate",value:function(){return this.formatter.getTemplate(this.state)||this.getNonFormattedTemplate()||""}}]),e}();function xs(e){return new he(e).getCountries()}function wy(e,t,n){return n||(n=t,t=void 0),new Kt(t,n).input(e)}function lu(e){var t=e.country,n=e.international,r=e.withCountryCallingCode,a=e.metadata;return t&&n&&!r?"+".concat(yt(t,a)):""}function Aa(e,t){return t&&(e=e.slice(t.length),e[0]===" "&&(e=e.slice(1))),e}var _y=["country","international","withCountryCallingCode","metadata"];function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ea.apply(this,arguments)}function Cy(e,t){if(e==null)return{};var n=xy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function jy(e){function t(n,r){var a=n.country,i=n.international,s=n.withCountryCallingCode,o=n.metadata,u=o===void 0?e:o,m=Cy(n,_y),p=x.useCallback(function(g){var y=new Kt(a,u),k=lu({country:a,international:i,withCountryCallingCode:s,metadata:u}),M=y.input(k+g),S=y.getTemplate();return k&&(M=Aa(M,k),S&&(S=Aa(S,k))),{text:M,template:S}},[a,u]);return x.createElement(Pm,Ea({},m,{ref:r,parse:Yl,format:p}))}return t=x.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,country:R.string,international:R.bool,withCountryCallingCode:R.bool,metadata:R.object},t}const Ry=jy();var Ly=["value","onChange","country","international","withCountryCallingCode","metadata","inputComponent"];function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}function Py(e,t){if(e==null)return{};var n=Uy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Fy(e){function t(n,r){var a=n.value,i=n.onChange,s=n.country,o=n.international,u=n.withCountryCallingCode,m=n.metadata,p=m===void 0?e:m,g=n.inputComponent,y=g===void 0?"input":g,k=Py(n,Ly),M=lu({country:s,international:o,withCountryCallingCode:u,metadata:p}),S=x.useCallback(function(_){var v=Na(_.target.value);if(v===a){var O=js(M,v,s,p);O.indexOf(_.target.value)===0&&(v=v.slice(0,-1))}i(v)},[M,a,i,s,p]);return x.createElement(y,Oa({},k,{ref:r,value:js(M,a,s,p),onChange:S}))}return t=x.forwardRef(t),t.propTypes={value:R.string.isRequired,onChange:R.func.isRequired,country:R.string,international:R.bool,withCountryCallingCode:R.bool,metadata:R.object,inputComponent:R.elementType},t}const zy=Fy();function js(e,t,n,r){return Aa(wy(e+t,n,r),e)}function By(e){return Rs(e[0])+Rs(e[1])}function Rs(e){return String.fromCodePoint(127462-65+e.toUpperCase().charCodeAt(0))}var Gy=["value","onChange","options","disabled","readOnly"],Qy=["value","options","className","iconComponent","getIconAspectRatio","arrowComponent","unicodeFlags"];function Yy(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=Vy(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vy(e,t){if(e){if(typeof e=="string")return Ls(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ls(e,t)}}function Ls(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function uu(e,t){if(e==null)return{};var n=Wy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Wy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function cu(e){var t=e.value,n=e.onChange,r=e.options,a=e.disabled,i=e.readOnly,s=uu(e,Gy),o=x.useCallback(function(u){var m=u.target.value;n(m==="ZZ"?void 0:m)},[n]);return x.useMemo(function(){return mu(r,t)},[r,t]),x.createElement("select",qn({},s,{disabled:a||i,readOnly:i,value:t||"ZZ",onChange:o}),r.map(function(u){var m=u.value,p=u.label,g=u.divider;return x.createElement("option",{key:g?"|":m||"ZZ",value:g?"|":m||"ZZ",disabled:!!g,style:g?Hy:void 0},p)}))}cu.propTypes={value:R.string,onChange:R.func.isRequired,options:R.arrayOf(R.shape({value:R.string,label:R.string,divider:R.bool})).isRequired,disabled:R.bool,readOnly:R.bool};var Hy={fontSize:"1px",backgroundColor:"currentColor",color:"inherit"};function du(e){var t=e.value,n=e.options,r=e.className,a=e.iconComponent;e.getIconAspectRatio;var i=e.arrowComponent,s=i===void 0?qy:i,o=e.unicodeFlags,u=uu(e,Qy),m=x.useMemo(function(){return mu(n,t)},[n,t]);return x.createElement("div",{className:"PhoneInputCountry"},x.createElement(cu,qn({},u,{value:t,options:n,className:Vn("PhoneInputCountrySelect",r)})),o&&t&&x.createElement("div",{className:"PhoneInputCountryIconUnicode"},By(t)),!(o&&t)&&x.createElement(a,{"aria-hidden":!0,country:t,label:m&&m.label,aspectRatio:o?1:void 0}),x.createElement(s,null))}du.propTypes={iconComponent:R.elementType,arrowComponent:R.elementType,unicodeFlags:R.bool};function qy(){return x.createElement("div",{className:"PhoneInputCountrySelectArrow"})}function mu(e,t){for(var n=Yy(e),r;!(r=n()).done;){var a=r.value;if(!a.divider&&a.value===t)return a}}var Zy=["country","countryName","flags","flagUrl"];function Da(){return Da=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Da.apply(this,arguments)}function Ky(e,t){if(e==null)return{};var n=Jy(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jy(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function li(e){var t=e.country,n=e.countryName,r=e.flags,a=e.flagUrl,i=Ky(e,Zy);return r&&r[t]?r[t]({title:n}):x.createElement("img",Da({},i,{alt:n,role:n?void 0:"presentation",src:a.replace("{XX}",t).replace("{xx}",t.toLowerCase())}))}li.propTypes={country:R.string.isRequired,countryName:R.string.isRequired,flags:R.objectOf(R.elementType),flagUrl:R.string.isRequired};var Xy=["aspectRatio"],e0=["title"],t0=["title"];function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zn.apply(this,arguments)}function ui(e,t){if(e==null)return{};var n=n0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mr(e){var t=e.aspectRatio,n=ui(e,Xy);return t===1?x.createElement(pu,n):x.createElement(fu,n)}mr.propTypes={title:R.string.isRequired,aspectRatio:R.number};function fu(e){var t=e.title,n=ui(e,e0);return x.createElement("svg",Zn({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 75 50"}),x.createElement("title",null,t),x.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeMiterlimit:"10"},x.createElement("path",{strokeLinecap:"round",d:"M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"}),x.createElement("path",{d:"M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"}),x.createElement("line",{x1:"26",y1:"25",x2:"74",y2:"25"}),x.createElement("line",{x1:"50",y1:"1",x2:"50",y2:"49"}),x.createElement("path",{strokeLinecap:"round",d:"M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"}),x.createElement("path",{strokeLinecap:"round",d:"M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"})),x.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"none",fill:"currentColor",d:"M12.4,17.9c2.9-2.9,5.4-4.8,0.3-11.2S4.1,5.2,1.3,8.1C-2,11.4,1.1,23.5,13.1,35.6s24.3,15.2,27.5,11.9c2.8-2.8,7.8-6.3,1.4-11.5s-8.3-2.6-11.2,0.3c-2,2-7.2-2.2-11.7-6.7S10.4,19.9,12.4,17.9z"}))}fu.propTypes={title:R.string.isRequired};function pu(e){var t=e.title,n=ui(e,t0);return x.createElement("svg",Zn({},n,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50"}),x.createElement("title",null,t),x.createElement("g",{className:"PhoneInputInternationalIconGlobe",stroke:"currentColor",fill:"none",strokeWidth:"2",strokeLinecap:"round"},x.createElement("path",{d:"M8.45,13A21.44,21.44,0,1,1,37.08,41.56"}),x.createElement("path",{d:"M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"}),x.createElement("path",{d:"M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"}),x.createElement("path",{d:"M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"}),x.createElement("line",{x1:"27.8",y1:"0.85",x2:"27.8",y2:"34.61"}),x.createElement("line",{x1:"15.2",y1:"22.23",x2:"49.15",y2:"22.23"})),x.createElement("path",{className:"PhoneInputInternationalIconPhone",stroke:"transparent",fill:"currentColor",d:"M9.42,26.64c2.22-2.22,4.15-3.59.22-8.49S3.08,17,.93,19.17c-2.49,2.48-.13,11.74,9,20.89s18.41,11.5,20.89,9c2.15-2.15,5.91-4.77,1-8.71s-6.27-2-8.49.22c-1.55,1.55-5.48-1.69-8.86-5.08S7.87,28.19,9.42,26.64Z"}))}pu.propTypes={title:R.string.isRequired};function r0(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=a0(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
31
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a0(e,t){if(e){if(typeof e=="string")return Ps(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ps(e,t)}}function Ps(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function i0(e,t){if(!t)return e;for(var n=[],r=[],a=n,i=r0(t),s;!(s=i()).done;){var o=s.value;o==="|"?a.push({divider:!0}):o==="..."||o==="…"?a=r:function(){var u=void 0;o==="🌐"?u=void 0:u=o;var m=e.indexOf(e.filter(function(g){return g.value===u})[0]),p=e[m];e.splice(m,1),a.push(p)}()}return n.concat(e).concat(r)}function s0(e,t){if(e&&(e=e.filter(function(n){switch(n){case"🌐":case"|":case"...":case"…":return!0;default:return fr(n,t)}}),e.length>0))return e}function fr(e,t){return zl(e,t)?!0:(console.error("Country not found: ".concat(e)),!1)}function yu(e,t){return e&&(e=e.filter(function(n){return fr(n,t)}),e.length===0&&(e=void 0)),e}var o0=["country","label","aspectRatio"];function wa(){return wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wa.apply(this,arguments)}function l0(e,t){if(e==null)return{};var n=u0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function gu(e){var t=e.flags,n=e.flagUrl,r=e.flagComponent,a=e.internationalIcon;function i(s){var o=s.country,u=s.label,m=s.aspectRatio,p=l0(s,o0),g=a===mr?m:void 0;return x.createElement("div",wa({},p,{className:Vn("PhoneInputCountryIcon",{"PhoneInputCountryIcon--square":g===1,"PhoneInputCountryIcon--border":o})}),o?x.createElement(r,{country:o,countryName:u,flags:t,flagUrl:n,className:"PhoneInputCountryIconImg"}):x.createElement(a,{title:u,aspectRatio:g,className:"PhoneInputCountryIconImg"}))}return i.propTypes={country:R.string,label:R.string.isRequired,aspectRatio:R.number},i}gu({flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",flagComponent:li,internationalIcon:mr});var hu=R.shape({country_calling_codes:R.object.isRequired,countries:R.object.isRequired}),Tu=R.objectOf(R.string);function at(e,t){var n="+"+yt(e,t);return n}function c0(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,a=e.getAnyCountry,i=e.countries,s=e.required,o=e.metadata,u;return n&&n.country?u=n.country:r&&(!t||Mu(t,r,o))&&(u=r),i&&i.indexOf(u)<0&&(u=void 0),!u&&s&&i&&i.length>0&&(u=a()),u}function d0(e){var t=e.countries,n=e.countryNames,r=e.addInternationalOption,a=e.compareStringsLocales,i=e.compareStrings;i||(i=T0);var s=t.map(function(o){return{value:o,label:n[o]||o}});return s.sort(function(o,u){return i(o.label,u.label,a)}),r&&s.unshift({label:n.ZZ}),s}function ku(e,t){return su(e||"",t)}function m0(e){return e.formatNational().replace(/\D/g,"")}function f0(e,t){var n=t.prevCountry,r=t.newCountry,a=t.metadata,i=t.useNationalFormat;if(n===r)return e;if(!e)return i?"":r?at(r,a):"";if(r){if(e[0]==="+"){if(i)return e.indexOf("+"+yt(r,a))===0?k0(e,r,a):"";if(n){var s=at(r,a);return e.indexOf(s)===0?e:s}else{var o=at(r,a);return e.indexOf(o)===0?e:o}}}else if(e[0]!=="+")return Lt(e,n,a)||"";return e}function Lt(e,t,n){if(e){if(e[0]==="+"){if(e==="+")return;var r=new Kt(t,n);return r.input(e),r.getNumberValue()}if(t){var a=bu(e,t,n);return"+".concat(yt(t,n)).concat(a||"")}}}function p0(e,t,n){var r=bu(e,t,n);if(r){var a=r.length-y0(t,n);if(a>0)return e.slice(0,e.length-a)}return e}function y0(e,t){return t=new he(t),t.selectNumberingPlan(e),t.numberingPlan.possibleLengths()[t.numberingPlan.possibleLengths().length-1]}function Nu(e,t){var n=t.country,r=t.countries,a=t.required,i=t.metadata;if(e==="+")return n;var s=h0(e,i);return s&&(!r||r.indexOf(s)>=0)?s:n&&!a&&!Mu(e,n,i)?void 0:n}function g0(e,t){var n=t.prevPhoneDigits,r=t.country,a=t.defaultCountry,i=t.countryRequired,s=t.getAnyCountry,o=t.countries,u=t.international,m=t.limitMaxLength,p=t.countryCallingCodeEditable,g=t.metadata;if(u&&p===!1&&r){var y=at(r,g);if(e.indexOf(y)!==0){var k,M=e&&e[0]!=="+";return M?(e=y+e,k=Lt(e,r,g)):e=y,{phoneDigits:e,value:k,country:r}}}u===!1&&r&&e&&e[0]==="+"&&(e=Us(e,r,g)),e&&r&&m&&(e=p0(e,r,g)),e&&e[0]!=="+"&&(!r||u)&&(e="+"+e),!e&&n&&n[0]==="+"&&(u?r=void 0:r=a),e==="+"&&n&&n[0]==="+"&&n.length>1&&(r=void 0);var S;return e&&(e[0]==="+"&&(e==="+"||r&&at(r,g).indexOf(e)===0)?S=void 0:S=Lt(e,r,g)),S&&(r=Nu(S,{country:r,countries:o,metadata:g}),u===!1&&r&&e&&e[0]==="+"&&(e=Us(e,r,g),S=Lt(e,r,g))),!r&&i&&(r=a||s()),{phoneDigits:e,country:r,value:S}}function Us(e,t,n){if(e.indexOf(at(t,n))===0){var r=new Kt(t,n);r.input(e);var a=r.getNumber();return a?a.formatNational().replace(/\D/g,""):""}else return e.replace(/\D/g,"")}function h0(e,t){var n=new Kt(null,t);return n.input(e),n.getCountry()}function T0(e,t,n){return String.prototype.localeCompare?e.localeCompare(t,n):e<t?-1:e>t?1:0}function k0(e,t,n){if(t){var r="+"+yt(t,n);if(e.length<r.length){if(r.indexOf(e)===0)return""}else if(e.indexOf(r)===0)return e.slice(r.length)}for(var a=0,i=Object.keys(n.country_calling_codes);a<i.length;a++){var s=i[a];if(e.indexOf(s)===1)return e.slice(1+s.length)}return""}function bu(e,t,n){var r=new Kt(t,n);r.input(e);var a=r.getNumber();return a&&a.nationalNumber}function Mu(e,t,n){for(var r=at(t,n),a=0;a<e.length&&a<r.length;){if(e[a]!==r[a])return!1;a++}return!0}function Su(e){var t=e.value,n=e.phoneNumber,r=e.defaultCountry,a=e.international,i=e.useNationalFormat,s=e.metadata;return(a===!1||i)&&n&&n.country?m0(n):!t&&a&&r?at(r,s):t}function Fs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fs(Object(n),!0).forEach(function(r){N0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b0(e,t,n){var r=e.metadata,a=e.countries,i=e.defaultCountry,s=e.value,o=e.reset,u=e.international,m=e.displayInitialValueAsLocalNumber,p=e.initialValueFormat,g=t.defaultCountry,y=t.value,k=t.reset;n.country;var M=n.value,S=n.hasUserSelectedACountry,_=function(H){return Su(En(En({},H),{},{international:u,useNationalFormat:m||p==="national",metadata:r}))};if(o!==k)return{phoneDigits:_({value:void 0,defaultCountry:i}),value:void 0,country:i,hasUserSelectedACountry:void 0};if(i!==g){var v=!i||fr(i,r),O=!M||u&&M===_({value:void 0,defaultCountry:g}),L=!s&&O;if(!S&&v&&L)return{country:i,phoneDigits:_({value:void 0,defaultCountry:i}),value:void 0}}if(!zs(s,y)&&!zs(s,M)){var P,F;if(s){P=ku(s,r);var z=yu(a,r);P&&P.country?(!z||z.indexOf(P.country)>=0)&&(F=P.country):(F=Nu(s,{country:void 0,countries:z,metadata:r}),F||i&&s.indexOf(at(i,r))===0&&(F=i))}var U;return s||(U={hasUserSelectedACountry:void 0}),En(En({},U),{},{phoneDigits:_({phoneNumber:P,value:s,defaultCountry:i}),value:s,country:s?F:i})}}function zs(e,t){return e===null&&(e=void 0),t===null&&(t=void 0),e===t}function _a(e){"@babel/helpers - typeof";return _a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_a(e)}var M0=["name","disabled","readOnly","autoComplete","style","className","inputRef","inputComponent","numberInputProps","smartCaret","countrySelectComponent","countrySelectProps","containerComponent","defaultCountry","countries","countryOptionsOrder","labels","flags","flagComponent","flagUrl","addInternationalOption","internationalIcon","displayInitialValueAsLocalNumber","initialValueFormat","onCountryChange","limitMaxLength","countryCallingCodeEditable","focusInputOnCountrySelection","reset","metadata","international","locales"];function Bs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bs(Object(n),!0).forEach(function(r){ze(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kn(){return kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kn.apply(this,arguments)}function S0(e,t){if(e==null)return{};var n=I0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function v0(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $0(e,t,n){return t&&Gs(e.prototype,t),n&&Gs(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function A0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ca(e,t)}function Ca(e,t){return Ca=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ca(e,t)}function E0(e){var t=D0();return function(){var r=Kn(e),a;if(t){var i=Kn(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return O0(this,a)}}function O0(e,t){if(t&&(_a(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fe(e)}function Fe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D0(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kn(e){return Kn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kn(e)}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w0=function(e){A0(n,e);var t=E0(n);function n(r){var a;v0(this,n),a=t.call(this,r),ze(Fe(a),"setInputRef",function(v){a.inputRef.current=v;var O=a.props.inputRef;O&&(typeof O=="function"?O(v):O.current=v)}),ze(Fe(a),"isCountrySupportedWithError",function(v){var O=a.props.metadata;return fr(v,O)}),ze(Fe(a),"onCountryChange",function(v){var O=a.props,L=O.international,P=O.metadata,F=O.onChange,z=O.focusInputOnCountrySelection,U=a.state,V=U.phoneDigits,H=U.country,J=f0(V,{prevCountry:H,newCountry:v,metadata:P,useNationalFormat:!L}),ae=Lt(J,v,P);z&&a.inputRef.current.focus(),a.setState({country:v,hasUserSelectedACountry:!0,phoneDigits:J,value:ae},function(){F(ae)})}),ze(Fe(a),"onChange",function(v){var O=a.props,L=O.defaultCountry,P=O.onChange,F=O.addInternationalOption,z=O.international,U=O.limitMaxLength,V=O.countryCallingCodeEditable,H=O.metadata,J=a.state,ae=J.countries,ce=J.phoneDigits,oe=J.country,q=g0(v,{prevPhoneDigits:ce,country:oe,countryRequired:!F,defaultCountry:L,getAnyCountry:function(){return a.getFirstSupportedCountry({countries:ae})},countries:ae,international:z,limitMaxLength:U,countryCallingCodeEditable:V,metadata:H}),le=q.phoneDigits,Me=q.country,we=q.value,_e={phoneDigits:le,value:we,country:Me};V===!1&&!we&&le===a.state.phoneDigits&&(_e.forceRerender={}),a.setState(_e,function(){return P(we)})}),ze(Fe(a),"_onFocus",function(){return a.setState({isFocused:!0})}),ze(Fe(a),"_onBlur",function(){return a.setState({isFocused:!1})}),ze(Fe(a),"onFocus",function(v){a._onFocus();var O=a.props.onFocus;O&&O(v)}),ze(Fe(a),"onBlur",function(v){var O=a.props.onBlur;a._onBlur(),O&&O(v)}),ze(Fe(a),"onCountryFocus",function(v){a._onFocus();var O=a.props.countrySelectProps;if(O){var L=O.onFocus;L&&L(v)}}),ze(Fe(a),"onCountryBlur",function(v){a._onBlur();var O=a.props.countrySelectProps;if(O){var L=O.onBlur;L&&L(v)}}),a.inputRef=x.createRef();var i=a.props,s=i.value;i.labels;var o=i.international,u=i.addInternationalOption,m=i.displayInitialValueAsLocalNumber,p=i.initialValueFormat,g=i.metadata,y=a.props,k=y.defaultCountry,M=y.countries;k&&(a.isCountrySupportedWithError(k)||(k=void 0)),M=yu(M,g);var S=ku(s,g);a.CountryIcon=gu(a.props);var _=c0({value:s,phoneNumber:S,defaultCountry:k,required:!u,countries:M||xs(g),getAnyCountry:function(){return a.getFirstSupportedCountry({countries:M})},metadata:g});return a.state={props:a.props,country:_,countries:M,phoneDigits:Su({value:s,phoneNumber:S,defaultCountry:k,international:o,useNationalFormat:m||p==="national",metadata:g}),value:s},a}return $0(n,[{key:"componentDidMount",value:function(){var a=this.props.onCountryChange,i=this.props.defaultCountry,s=this.state.country;a&&(i&&(this.isCountrySupportedWithError(i)||(i=void 0)),s!==i&&a(s))}},{key:"componentDidUpdate",value:function(a,i){var s=this.props.onCountryChange,o=this.state.country;s&&o!==i.country&&s(o)}},{key:"getCountrySelectOptions",value:function(a){var i=a.countries,s=this.props,o=s.international,u=s.countryCallingCodeEditable,m=s.countryOptionsOrder,p=s.addInternationalOption,g=s.labels,y=s.locales,k=s.metadata;return this.useMemoCountrySelectOptions(function(){return i0(d0({countries:i||xs(k),countryNames:g,addInternationalOption:o&&u===!1?!1:p,compareStringsLocales:y}),s0(m,k))},[i,m,p,g,k])}},{key:"useMemoCountrySelectOptions",value:function(a,i){return(!this.countrySelectOptionsMemoDependencies||!x0(i,this.countrySelectOptionsMemoDependencies))&&(this.countrySelectOptionsMemo=a(),this.countrySelectOptionsMemoDependencies=i),this.countrySelectOptionsMemo}},{key:"getFirstSupportedCountry",value:function(a){var i=a.countries,s=this.getCountrySelectOptions({countries:i});return s[0].value}},{key:"render",value:function(){var a=this.props,i=a.name,s=a.disabled,o=a.readOnly,u=a.autoComplete,m=a.style,p=a.className;a.inputRef;var g=a.inputComponent,y=a.numberInputProps,k=a.smartCaret,M=a.countrySelectComponent,S=a.countrySelectProps,_=a.containerComponent;a.defaultCountry,a.countries,a.countryOptionsOrder;var v=a.labels;a.flags,a.flagComponent,a.flagUrl,a.addInternationalOption,a.internationalIcon,a.displayInitialValueAsLocalNumber,a.initialValueFormat,a.onCountryChange,a.limitMaxLength,a.countryCallingCodeEditable,a.focusInputOnCountrySelection,a.reset;var O=a.metadata;a.international,a.locales;var L=S0(a,M0),P=this.state,F=P.country,z=P.countries,U=P.phoneDigits,V=P.isFocused,H=k?Ry:zy,J=this.getCountrySelectOptions({countries:z});return x.createElement(_,{style:m,className:Vn(p,"PhoneInput",{"PhoneInput--focus":V,"PhoneInput--disabled":s,"PhoneInput--readOnly":o})},x.createElement(M,kn({name:i?"".concat(i,"Country"):void 0,"aria-label":v.country},S,{value:F,options:J,onChange:this.onCountryChange,onFocus:this.onCountryFocus,onBlur:this.onCountryBlur,disabled:s||S&&S.disabled,readOnly:o||S&&S.readOnly,iconComponent:this.CountryIcon})),x.createElement(H,kn({ref:this.setInputRef,type:"tel",autoComplete:u},y,L,{name:i,metadata:O,country:F,value:U||"",onChange:this.onChange,onFocus:this.onFocus,onBlur:this.onBlur,disabled:s,readOnly:o,inputComponent:g,className:Vn("PhoneInputInput",y&&y.className,L.className)})))}}],[{key:"getDerivedStateFromProps",value:function(a,i){return Iu({props:a},b0(a,i.props,i))}}]),n}(x.PureComponent),vu=x.forwardRef(function(e,t){return x.createElement(w0,kn({},_0(e),{inputRef:t}))});vu.propTypes={value:R.string,onChange:R.func.isRequired,onFocus:R.func,onBlur:R.func,disabled:R.bool,readOnly:R.bool,autoComplete:R.string,initialValueFormat:R.oneOf(["national"]),displayInitialValueAsLocalNumber:R.bool,defaultCountry:R.string,countries:R.arrayOf(R.string),labels:Tu,locales:R.oneOfType([R.string,R.arrayOf(R.string)]),flagUrl:R.string,flags:R.objectOf(R.elementType),flagComponent:R.elementType,addInternationalOption:R.bool,internationalIcon:R.elementType,countryOptionsOrder:R.arrayOf(R.string),style:R.object,className:R.string,countrySelectComponent:R.elementType,countrySelectProps:R.object,inputComponent:R.elementType,containerComponent:R.elementType,numberInputProps:R.object,smartCaret:R.bool,international:R.bool,limitMaxLength:R.bool,countryCallingCodeEditable:R.bool,metadata:hu,onCountryChange:R.func,focusInputOnCountrySelection:R.bool};var Qs={autoComplete:"tel",countrySelectComponent:du,flagComponent:li,flagUrl:"https://purecatamphetamine.github.io/country-flag-icons/3x2/{XX}.svg",internationalIcon:mr,inputComponent:"input",containerComponent:"div",reset:R.any,smartCaret:!0,addInternationalOption:!0,countryCallingCodeEditable:!0,focusInputOnCountrySelection:!0};function _0(e){e=Iu({},e);for(var t in Qs)e[t]===void 0&&(e[t]=Qs[t]);return e}const C0=vu;function x0(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;){if(e[n]!==t[n])return!1;n++}return!0}function xa(e){"@babel/helpers - typeof";return xa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xa(e)}function j0(e,t,n){if(n||xa(t)==="object"&&(n=t,t="NATIONAL"),!e)return"";var r=su(e,n);if(!r)return"";switch(t){case"National":t="NATIONAL";break;case"International":t="INTERNATIONAL";break}return r.format(t)}function R0(e,t){return j0(e,"INTERNATIONAL",t)}const L0={ext:"ext.",country:"Phone number country",phone:"Phone",AB:"Abkhazia",AC:"Ascension Island",AD:"Andorra",AE:"United Arab Emirates",AF:"Afghanistan",AG:"Antigua and Barbuda",AI:"Anguilla",AL:"Albania",AM:"Armenia",AO:"Angola",AQ:"Antarctica",AR:"Argentina",AS:"American Samoa",AT:"Austria",AU:"Australia",AW:"Aruba",AX:"Åland Islands",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BB:"Barbados",BD:"Bangladesh",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BL:"Saint Barthélemy",BM:"Bermuda",BN:"Brunei Darussalam",BO:"Bolivia",BQ:"Bonaire, Sint Eustatius and Saba",BR:"Brazil",BS:"Bahamas",BT:"Bhutan",BV:"Bouvet Island",BW:"Botswana",BY:"Belarus",BZ:"Belize",CA:"Canada",CC:"Cocos (Keeling) Islands",CD:"Congo, Democratic Republic of the",CF:"Central African Republic",CG:"Congo",CH:"Switzerland",CI:"Cote d'Ivoire",CK:"Cook Islands",CL:"Chile",CM:"Cameroon",CN:"China",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CV:"Cape Verde",CW:"Curaçao",CX:"Christmas Island",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DJ:"Djibouti",DK:"Denmark",DM:"Dominica",DO:"Dominican Republic",DZ:"Algeria",EC:"Ecuador",EE:"Estonia",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ES:"Spain",ET:"Ethiopia",FI:"Finland",FJ:"Fiji",FK:"Falkland Islands",FM:"Federated States of Micronesia",FO:"Faroe Islands",FR:"France",GA:"Gabon",GB:"United Kingdom",GD:"Grenada",GE:"Georgia",GF:"French Guiana",GG:"Guernsey",GH:"Ghana",GI:"Gibraltar",GL:"Greenland",GM:"Gambia",GN:"Guinea",GP:"Guadeloupe",GQ:"Equatorial Guinea",GR:"Greece",GS:"South Georgia and the South Sandwich Islands",GT:"Guatemala",GU:"Guam",GW:"Guinea-Bissau",GY:"Guyana",HK:"Hong Kong",HM:"Heard Island and McDonald Islands",HN:"Honduras",HR:"Croatia",HT:"Haiti",HU:"Hungary",ID:"Indonesia",IE:"Ireland",IL:"Israel",IM:"Isle of Man",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",IS:"Iceland",IT:"Italy",JE:"Jersey",JM:"Jamaica",JO:"Jordan",JP:"Japan",KE:"Kenya",KG:"Kyrgyzstan",KH:"Cambodia",KI:"Kiribati",KM:"Comoros",KN:"Saint Kitts and Nevis",KP:"North Korea",KR:"South Korea",KW:"Kuwait",KY:"Cayman Islands",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LC:"Saint Lucia",LI:"Liechtenstein",LK:"Sri Lanka",LR:"Liberia",LS:"Lesotho",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",LY:"Libya",MA:"Morocco",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MF:"Saint Martin (French Part)",MG:"Madagascar",MH:"Marshall Islands",MK:"North Macedonia",ML:"Mali",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MP:"Northern Mariana Islands",MQ:"Martinique",MR:"Mauritania",MS:"Montserrat",MT:"Malta",MU:"Mauritius",MV:"Maldives",MW:"Malawi",MX:"Mexico",MY:"Malaysia",MZ:"Mozambique",NA:"Namibia",NC:"New Caledonia",NE:"Niger",NF:"Norfolk Island",NG:"Nigeria",NI:"Nicaragua",NL:"Netherlands",NO:"Norway",NP:"Nepal",NR:"Nauru",NU:"Niue",NZ:"New Zealand",OM:"Oman",OS:"South Ossetia",PA:"Panama",PE:"Peru",PF:"French Polynesia",PG:"Papua New Guinea",PH:"Philippines",PK:"Pakistan",PL:"Poland",PM:"Saint Pierre and Miquelon",PN:"Pitcairn",PR:"Puerto Rico",PS:"Palestine",PT:"Portugal",PW:"Palau",PY:"Paraguay",QA:"Qatar",RE:"Reunion",RO:"Romania",RS:"Serbia",RU:"Russia",RW:"Rwanda",SA:"Saudi Arabia",SB:"Solomon Islands",SC:"Seychelles",SD:"Sudan",SE:"Sweden",SG:"Singapore",SH:"Saint Helena",SI:"Slovenia",SJ:"Svalbard and Jan Mayen",SK:"Slovakia",SL:"Sierra Leone",SM:"San Marino",SN:"Senegal",SO:"Somalia",SR:"Suriname",SS:"South Sudan",ST:"Sao Tome and Principe",SV:"El Salvador",SX:"Sint Maarten",SY:"Syria",SZ:"Swaziland",TA:"Tristan da Cunha",TC:"Turks and Caicos Islands",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TH:"Thailand",TJ:"Tajikistan",TK:"Tokelau",TL:"Timor-Leste",TM:"Turkmenistan",TN:"Tunisia",TO:"Tonga",TR:"Turkey",TT:"Trinidad and Tobago",TV:"Tuvalu",TW:"Taiwan",TZ:"Tanzania",UA:"Ukraine",UG:"Uganda",UM:"United States Minor Outlying Islands",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VA:"Holy See (Vatican City State)",VC:"Saint Vincent and the Grenadines",VE:"Venezuela",VG:"Virgin Islands, British",VI:"Virgin Islands, U.S.",VN:"Vietnam",VU:"Vanuatu",WF:"Wallis and Futuna",WS:"Samoa",XK:"Kosovo",YE:"Yemen",YT:"Mayotte",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",ZZ:"International"};var P0=["metadata","labels"];function ja(){return ja=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ja.apply(this,arguments)}function U0(e,t){if(e==null)return{};var n=F0(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function F0(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function $u(e){var t=x.forwardRef(function(n,r){var a=n.metadata,i=a===void 0?e:a,s=n.labels,o=s===void 0?L0:s,u=U0(n,P0);return x.createElement(C0,ja({},u,{ref:r,metadata:i,labels:o}))});return t.propTypes={metadata:hu,labels:Tu},t}$u();function Au(e,t){var n=Array.prototype.slice.call(t);return n.push(Cl),e.apply(this,n)}const z0=$u(Cl);function B0(){return Au(R0,arguments)}function G0(){return Au(wp,arguments)}var Ys=typeof window>"u"?x.useEffect:x.useLayoutEffect,Q0=({isPlaying:e,duration:t,startAt:n=0,updateInterval:r=0,onComplete:a,onUpdate:i})=>{let[s,o]=x.useState(n),u=x.useRef(0),m=x.useRef(n),p=x.useRef(n*-1e3),g=x.useRef(null),y=x.useRef(null),k=x.useRef(null),M=v=>{let O=v/1e3;if(y.current===null){y.current=O,g.current=requestAnimationFrame(M);return}let L=O-y.current,P=u.current+L;y.current=O,u.current=P;let F=m.current+(r===0?P:(P/r|0)*r),z=m.current+P,U=typeof t=="number"&&z>=t;o(U?t:F),U||(g.current=requestAnimationFrame(M))},S=()=>{g.current&&cancelAnimationFrame(g.current),k.current&&clearTimeout(k.current),y.current=null},_=x.useCallback(v=>{S(),u.current=0;let O=typeof v=="number"?v:n;m.current=O,o(O),e&&(g.current=requestAnimationFrame(M))},[e,n]);return Ys(()=>{if(i==null||i(s),t&&s>=t){p.current+=t*1e3;let{shouldRepeat:v=!1,delay:O=0,newStartAt:L}=(a==null?void 0:a(p.current/1e3))||{};v&&(k.current=setTimeout(()=>_(L),O*1e3))}},[s,t]),Ys(()=>(e&&(g.current=requestAnimationFrame(M)),S),[e,t,r]),{elapsedTime:s,reset:_}},Y0=(e,t,n)=>{let r=e/2,a=t/2,i=r-a,s=2*i,o=n==="clockwise"?"1,0":"0,1",u=2*Math.PI*i;return{path:`m ${r},${a} a ${i},${i} 0 ${o} 0,${s} a ${i},${i} 0 ${o} 0,-${s}`,pathLength:u}},Vs=(e,t)=>e===0||e===t?0:typeof t=="number"?e-t:0,V0=e=>({position:"relative",width:e,height:e}),W0={display:"flex",justifyContent:"center",alignItems:"center",position:"absolute",left:0,top:0,width:"100%",height:"100%"},Eu=(e,t,n,r,a)=>{if(r===0)return t;let i=(a?r-e:e)/r;return t+n*i},Ws=e=>{var t,n;return(n=(t=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(r,a,i,s)=>`#${a}${a}${i}${i}${s}${s}`).substring(1).match(/.{2}/g))==null?void 0:t.map(r=>parseInt(r,16)))!=null?n:[]},H0=(e,t)=>{var n;let{colors:r,colorsTime:a,isSmoothColorTransition:i=!0}=e;if(typeof r=="string")return r;let s=(n=a==null?void 0:a.findIndex((y,k)=>y>=t&&t>=a[k+1]))!=null?n:-1;if(!a||s===-1)return r[0];if(!i)return r[s];let o=a[s]-t,u=a[s]-a[s+1],m=Ws(r[s]),p=Ws(r[s+1]),g=!!e.isGrowing;return`rgb(${m.map((y,k)=>Eu(o,y,p[k]-y,u,g)|0).join(",")})`},q0=e=>{let{duration:t,initialRemainingTime:n,updateInterval:r,size:a=180,strokeWidth:i=12,trailStrokeWidth:s,isPlaying:o=!1,isGrowing:u=!1,rotation:m="clockwise",onComplete:p,onUpdate:g}=e,y=x.useRef(),k=Math.max(i,s??0),{path:M,pathLength:S}=Y0(a,k,m),{elapsedTime:_}=Q0({isPlaying:o,duration:t,startAt:Vs(t,n),updateInterval:r,onUpdate:typeof g=="function"?O=>{let L=Math.ceil(t-O);L!==y.current&&(y.current=L,g(L))}:void 0,onComplete:typeof p=="function"?O=>{var L;let{shouldRepeat:P,delay:F,newInitialRemainingTime:z}=(L=p(O))!=null?L:{};if(P)return{shouldRepeat:P,delay:F,newStartAt:Vs(t,z)}}:void 0}),v=t-_;return{elapsedTime:_,path:M,pathLength:S,remainingTime:Math.ceil(v),rotation:m,size:a,stroke:H0(e,v),strokeDashoffset:Eu(_,0,S,t,u),strokeWidth:i}},Ou=e=>{let{children:t,strokeLinecap:n,trailColor:r,trailStrokeWidth:a}=e,{path:i,pathLength:s,stroke:o,strokeDashoffset:u,remainingTime:m,elapsedTime:p,size:g,strokeWidth:y}=q0(e);return x.createElement("div",{style:V0(g)},x.createElement("svg",{viewBox:`0 0 ${g} ${g}`,width:g,height:g,xmlns:"http://www.w3.org/2000/svg"},x.createElement("path",{d:i,fill:"none",stroke:r??"#d9d9d9",strokeWidth:a??y}),x.createElement("path",{d:i,fill:"none",stroke:o,strokeLinecap:n??"round",strokeWidth:y,strokeDasharray:s,strokeDashoffset:u})),typeof t=="function"&&x.createElement("div",{style:W0},t({remainingTime:m,elapsedTime:p,color:o})))};Ou.displayName="CountdownCircleTimer";const Rr={BG_TRANSPARENT:"rgba(0,0,0, .8)",BG_TRANSPARENT_VOTE_CONTAINER:"rgba(10, 14, 19, 0.8)",BG_TRANSPARENT_ITEM:"rgba(0, 0, 0, 0.7)",BG_TRANSPARENT_ITEM_VOTE:"rgba(255, 255, 255, 0.1)",BG_TRANSPARENT_ITEM_SUCCESS:"rgba(0, 139, 251, 0.2)",BG_TRANSPARENT_ITEM_ERROR:"rgba(205, 37, 37, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS:"rgba(255, 255, 255, 0.2)",BG_TRANSPARENT_VOTE_PROGRESS_SUCCESS:"rgba(60, 139, 251, 0.5)",BG_TRANSPARENT_VOTE_PROGRESS_ERROR:"rgba(205, 37, 37, 0.5)",BG_TRANSPARENT_USER_CONTAINER:"rgba(255, 255, 255, 0.05)",BG_TRANSPARENT_ONBOARDING_INAPP:"rgba(138, 159, 182, 0.2)",BLUE_PRIMARY:"#1589EE",RED_PRIMARY:"#CD2525",RED_SECONDARY:"#EB5757",BLUE_QUESTION_ACTION_BTN:"#1589ee",WHITE:"#FFFFFF",GREY_1:"#909395",GREY_2:"#22262b",GREY_3:"#2d3135",GREY_4:"#53565a",GREY_PRIMARY_ONBOARDING_INAPP:"#B5B7B8",BLACK_1:"#161a1f",GREEN_1:"#F7B801",RED_1:"#A30000",RED_2:"#FF4170",GREY_PRIMARY:"#909395",DIVIDER_COLOR_PRIMARY:"#2d3135",DIVIDER_COLOR_SECONDARY:"#53565a",GREEN_PRIMARY_BTN:"#009B77"};const Z0=A("div")({name:"RemainingTime",class:"r1l1rnv7",propsAsIs:!1}),K0=[Rr.BLUE_PRIMARY,Rr.GREEN_1,Rr.RED_1],J0=[10,6,0],X0=30,eg=32,tg=4,ng=0,Du=({isPlaying:e=!0,duration:t=X0,setTimeToExpire:n})=>{const r=({remainingTime:a})=>T.jsx(Z0,{style:{color:a?"inherit":void 0},children:a});return x.useEffect(()=>{n(!1)},[n]),T.jsx(Ou,{isPlaying:e,duration:t,colors:K0,colorsTime:J0,size:eg,strokeWidth:tg,trailStrokeWidth:ng,onComplete:()=>n(!0),children:r})};function Oe(e,t){if(!e)throw new Error(t)}const rg=34028234663852886e22,ag=-34028234663852886e22,ig=4294967295,sg=2147483647,og=-2147483648;function Rn(e){if(typeof e!="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>sg||e<og)throw new Error("invalid int 32: "+e)}function Ra(e){if(typeof e!="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>ig||e<0)throw new Error("invalid uint 32: "+e)}function wu(e){if(typeof e!="number")throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>rg||e<ag))throw new Error("invalid float 32: "+e)}const _u=Symbol("@bufbuild/protobuf/enum-type");function lg(e){const t=e[_u];return Oe(t,"missing enum type on enum object"),t}function Cu(e,t,n,r){e[_u]=xu(t,n.map(a=>({no:a.no,name:a.name,localName:e[a.no]})))}function xu(e,t,n){const r=Object.create(null),a=Object.create(null),i=[];for(const s of t){const o=ju(s);i.push(o),r[s.name]=o,a[s.no]=o}return{typeName:e,values:i,findName(s){return r[s]},findNumber(s){return a[s]}}}function ug(e,t,n){const r={};for(const a of t){const i=ju(a);r[i.localName]=i.no,r[i.no]=i.localName}return Cu(r,e,t),r}function ju(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class Je{equals(t){return this.getType().runtime.util.equals(this.getType(),this,t)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(t,n){const r=this.getType(),a=r.runtime.bin,i=a.makeReadOptions(n);return a.readMessage(this,i.readerFactory(t),t.byteLength,i),this}fromJson(t,n){const r=this.getType(),a=r.runtime.json,i=a.makeReadOptions(n);return a.readMessage(r,t,i,this),this}fromJsonString(t,n){let r;try{r=JSON.parse(t)}catch(a){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${a instanceof Error?a.message:String(a)}`)}return this.fromJson(r,n)}toBinary(t){const n=this.getType(),r=n.runtime.bin,a=r.makeWriteOptions(t),i=a.writerFactory();return r.writeMessage(this,i,a),i.finish()}toJson(t){const n=this.getType(),r=n.runtime.json,a=r.makeWriteOptions(t);return r.writeMessage(this,a)}toJsonString(t){var n;const r=this.toJson(t);return JSON.stringify(r,null,(n=t==null?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function cg(e,t,n,r){var a;const i=(a=r==null?void 0:r.localName)!==null&&a!==void 0?a:t.substring(t.lastIndexOf(".")+1),s={[i]:function(o){e.util.initFields(this),e.util.initPartial(o,this)}}[i];return Object.setPrototypeOf(s.prototype,new Je),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(n),fromBinary(o,u){return new s().fromBinary(o,u)},fromJson(o,u){return new s().fromJson(o,u)},fromJsonString(o,u){return new s().fromJsonString(o,u)},equals(o,u){return e.util.equals(s,o,u)}}),s}function dg(e,t,n,r){return{syntax:e,json:t,bin:n,util:r,makeMessageType(a,i,s){return cg(this,a,i,s)},makeEnum:ug,makeEnumType:xu,getEnumType:lg}}var w;(function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"})(w||(w={}));var It;(function(e){e[e.BIGINT=0]="BIGINT",e[e.STRING=1]="STRING"})(It||(It={}));function mg(){let e=0,t=0;for(let r=0;r<28;r+=7){let a=this.buf[this.pos++];if(e|=(a&127)<<r,!(a&128))return this.assertBounds(),[e,t]}let n=this.buf[this.pos++];if(e|=(n&15)<<28,t=(n&112)>>4,!(n&128))return this.assertBounds(),[e,t];for(let r=3;r<=31;r+=7){let a=this.buf[this.pos++];if(t|=(a&127)<<r,!(a&128))return this.assertBounds(),[e,t]}throw new Error("invalid varint")}function Lr(e,t,n){for(let i=0;i<28;i=i+7){const s=e>>>i,o=!(!(s>>>7)&&t==0),u=(o?s|128:s)&255;if(n.push(u),!o)return}const r=e>>>28&15|(t&7)<<4,a=!!(t>>3);if(n.push((a?r|128:r)&255),!!a){for(let i=3;i<31;i=i+7){const s=t>>>i,o=!!(s>>>7),u=(o?s|128:s)&255;if(n.push(u),!o)return}n.push(t>>>31&1)}}const Ln=4294967296;function Hs(e){const t=e[0]==="-";t&&(e=e.slice(1));const n=1e6;let r=0,a=0;function i(s,o){const u=Number(e.slice(s,o));a*=n,r=r*n+u,r>=Ln&&(a=a+(r/Ln|0),r=r%Ln)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),t?Lu(r,a):ci(r,a)}function fg(e,t){let n=ci(e,t);const r=n.hi&2147483648;r&&(n=Lu(n.lo,n.hi));const a=Ru(n.lo,n.hi);return r?"-"+a:a}function Ru(e,t){if({lo:e,hi:t}=pg(e,t),t<=2097151)return String(Ln*t+e);const n=e&16777215,r=(e>>>24|t<<8)&16777215,a=t>>16&65535;let i=n+r*6777216+a*6710656,s=r+a*8147497,o=a*2;const u=1e7;return i>=u&&(s+=Math.floor(i/u),i%=u),s>=u&&(o+=Math.floor(s/u),s%=u),o.toString()+qs(s)+qs(i)}function pg(e,t){return{lo:e>>>0,hi:t>>>0}}function ci(e,t){return{lo:e|0,hi:t|0}}function Lu(e,t){return t=~t,e?e=~e+1:t+=1,ci(e,t)}const qs=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Zs(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e=e>>>7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e=e>>7;t.push(1)}}function yg(){let e=this.buf[this.pos++],t=e&127;if(!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let n=5;e&128&&n<10;n++)e=this.buf[this.pos++];if(e&128)throw new Error("invalid varint");return this.assertBounds(),t>>>0}var Q={},Pu={},pr={};pr.byteLength=Tg;pr.toByteArray=Ng;pr.fromByteArray=Sg;var Ze=[],Le=[],gg=typeof Uint8Array<"u"?Uint8Array:Array,Pr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Ot=0,hg=Pr.length;Ot<hg;++Ot)Ze[Ot]=Pr[Ot],Le[Pr.charCodeAt(Ot)]=Ot;Le["-".charCodeAt(0)]=62;Le["_".charCodeAt(0)]=63;function Uu(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function Tg(e){var t=Uu(e),n=t[0],r=t[1];return(n+r)*3/4-r}function kg(e,t,n){return(t+n)*3/4-n}function Ng(e){var t,n=Uu(e),r=n[0],a=n[1],i=new gg(kg(e,r,a)),s=0,o=a>0?r-4:r,u;for(u=0;u<o;u+=4)t=Le[e.charCodeAt(u)]<<18|Le[e.charCodeAt(u+1)]<<12|Le[e.charCodeAt(u+2)]<<6|Le[e.charCodeAt(u+3)],i[s++]=t>>16&255,i[s++]=t>>8&255,i[s++]=t&255;return a===2&&(t=Le[e.charCodeAt(u)]<<2|Le[e.charCodeAt(u+1)]>>4,i[s++]=t&255),a===1&&(t=Le[e.charCodeAt(u)]<<10|Le[e.charCodeAt(u+1)]<<4|Le[e.charCodeAt(u+2)]>>2,i[s++]=t>>8&255,i[s++]=t&255),i}function bg(e){return Ze[e>>18&63]+Ze[e>>12&63]+Ze[e>>6&63]+Ze[e&63]}function Mg(e,t,n){for(var r,a=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(e[i+2]&255),a.push(bg(r));return a.join("")}function Sg(e){for(var t,n=e.length,r=n%3,a=[],i=16383,s=0,o=n-r;s<o;s+=i)a.push(Mg(e,s,s+i>o?o:s+i));return r===1?(t=e[n-1],a.push(Ze[t>>2]+Ze[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],a.push(Ze[t>>10]+Ze[t>>4&63]+Ze[t<<2&63]+"=")),a.join("")}var di={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */di.read=function(e,t,n,r,a){var i,s,o=a*8-r-1,u=(1<<o)-1,m=u>>1,p=-7,g=n?a-1:0,y=n?-1:1,k=e[t+g];for(g+=y,i=k&(1<<-p)-1,k>>=-p,p+=o;p>0;i=i*256+e[t+g],g+=y,p-=8);for(s=i&(1<<-p)-1,i>>=-p,p+=r;p>0;s=s*256+e[t+g],g+=y,p-=8);if(i===0)i=1-m;else{if(i===u)return s?NaN:(k?-1:1)*(1/0);s=s+Math.pow(2,r),i=i-m}return(k?-1:1)*s*Math.pow(2,i-r)};di.write=function(e,t,n,r,a,i){var s,o,u,m=i*8-a-1,p=(1<<m)-1,g=p>>1,y=a===23?Math.pow(2,-24)-Math.pow(2,-77):0,k=r?0:i-1,M=r?1:-1,S=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=p):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+g>=1?t+=y/u:t+=y*Math.pow(2,1-g),t*u>=2&&(s++,u/=2),s+g>=p?(o=0,s=p):s+g>=1?(o=(t*u-1)*Math.pow(2,a),s=s+g):(o=t*Math.pow(2,g-1)*Math.pow(2,a),s=0));a>=8;e[n+k]=o&255,k+=M,o/=256,a-=8);for(s=s<<a|o,m+=a;m>0;e[n+k]=s&255,k+=M,s/=256,m-=8);e[n+k-M]|=S*128};/*!
32
32
  * The buffer module from node.js, for the browser.
33
33
  *
34
34
  * @author Feross Aboukhadijeh <https://feross.org>
35
35
  * @license MIT
36
- */(function(e){const t=pr,n=ci,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const f=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(f,l),f.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(f){if(f>a)throw new RangeError('The value "'+f+'" is invalid for option "size"');const l=new Uint8Array(f);return Object.setPrototypeOf(l,o.prototype),l}function o(f,l,d){if(typeof f=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(f)}return u(f,l,d)}o.poolSize=8192;function u(f,l,d){if(typeof f=="string")return y(f,l);if(ArrayBuffer.isView(f))return M(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(We(f,ArrayBuffer)||f&&We(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(f,SharedArrayBuffer)||f&&We(f.buffer,SharedArrayBuffer)))return S(f,l,d);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const h=f.valueOf&&f.valueOf();if(h!=null&&h!==f)return o.from(h,l,d);const N=_(f);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return o.from(f[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}o.from=function(f,l,d){return u(f,l,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function m(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function p(f,l,d){return m(f),f<=0?s(f):l!==void 0?typeof d=="string"?s(f).fill(l,d):s(f).fill(l):s(f)}o.alloc=function(f,l,d){return p(f,l,d)};function g(f){return m(f),s(f<0?0:v(f)|0)}o.allocUnsafe=function(f){return g(f)},o.allocUnsafeSlow=function(f){return g(f)};function y(f,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=L(f,l)|0;let h=s(d);const N=h.write(f,l);return N!==d&&(h=h.slice(0,N)),h}function k(f){const l=f.length<0?0:v(f.length)|0,d=s(l);for(let h=0;h<l;h+=1)d[h]=f[h]&255;return d}function M(f){if(We(f,Uint8Array)){const l=new Uint8Array(f);return S(l.buffer,l.byteOffset,l.byteLength)}return k(f)}function S(f,l,d){if(l<0||f.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');let h;return l===void 0&&d===void 0?h=new Uint8Array(f):d===void 0?h=new Uint8Array(f,l):h=new Uint8Array(f,l,d),Object.setPrototypeOf(h,o.prototype),h}function _(f){if(o.isBuffer(f)){const l=v(f.length)|0,d=s(l);return d.length===0||f.copy(d,0,0,l),d}if(f.length!==void 0)return typeof f.length!="number"||Dr(f.length)?s(0):k(f);if(f.type==="Buffer"&&Array.isArray(f.data))return k(f.data)}function v(f){if(f>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return f|0}function O(f){return+f!=f&&(f=0),o.alloc(+f)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,d){if(We(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),We(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(l)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let h=l.length,N=d.length;for(let I=0,E=Math.min(h,N);I<E;++I)if(l[I]!==d[I]){h=l[I],N=d[I];break}return h<N?-1:N<h?1:0},o.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return o.alloc(0);let h;if(d===void 0)for(d=0,h=0;h<l.length;++h)d+=l[h].length;const N=o.allocUnsafe(d);let I=0;for(h=0;h<l.length;++h){let E=l[h];if(We(E,Uint8Array))I+E.length>N.length?(o.isBuffer(E)||(E=o.from(E)),E.copy(N,I)):Uint8Array.prototype.set.call(N,E,I);else if(o.isBuffer(E))E.copy(N,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=E.length}return N};function L(f,l){if(o.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||We(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const d=f.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&d===0)return 0;let N=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return rn(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return An(f).length;default:if(N)return h?-1:rn(f).length;l=(""+l).toLowerCase(),N=!0}}o.byteLength=L;function P(f,l,d){let h=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(f||(f="utf8");;)switch(f){case"hex":return Se(this,l,d);case"utf8":case"utf-8":return q(this,l,d);case"ascii":return De(this,l,d);case"latin1":case"binary":return we(this,l,d);case"base64":return oe(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,l,d);default:if(h)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),h=!0}}o.prototype._isBuffer=!0;function F(f,l,d){const h=f[l];f[l]=f[d],f[d]=h}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<l;d+=2)F(this,d,d+1);return this},o.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<l;d+=4)F(this,d,d+3),F(this,d+1,d+2);return this},o.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<l;d+=8)F(this,d,d+7),F(this,d+1,d+6),F(this,d+2,d+5),F(this,d+3,d+4);return this},o.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?q(this,0,l):P.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(l){if(!o.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:o.compare(this,l)===0},o.prototype.inspect=function(){let l="";const d=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(l,d,h,N,I){if(We(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),h===void 0&&(h=l?l.length:0),N===void 0&&(N=0),I===void 0&&(I=this.length),d<0||h>l.length||N<0||I>this.length)throw new RangeError("out of range index");if(N>=I&&d>=h)return 0;if(N>=I)return-1;if(d>=h)return 1;if(d>>>=0,h>>>=0,N>>>=0,I>>>=0,this===l)return 0;let E=I-N,W=h-d;const de=Math.min(E,W),ue=this.slice(N,I),me=l.slice(d,h);for(let se=0;se<de;++se)if(ue[se]!==me[se]){E=ue[se],W=me[se];break}return E<W?-1:W<E?1:0};function z(f,l,d,h,N){if(f.length===0)return-1;if(typeof d=="string"?(h=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,Dr(d)&&(d=N?0:f.length-1),d<0&&(d=f.length+d),d>=f.length){if(N)return-1;d=f.length-1}else if(d<0)if(N)d=0;else return-1;if(typeof l=="string"&&(l=o.from(l,h)),o.isBuffer(l))return l.length===0?-1:U(f,l,d,h,N);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(f,l,d):Uint8Array.prototype.lastIndexOf.call(f,l,d):U(f,[l],d,h,N);throw new TypeError("val must be string, number or Buffer")}function U(f,l,d,h,N){let I=1,E=f.length,W=l.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(f.length<2||l.length<2)return-1;I=2,E/=2,W/=2,d/=2}function de(me,se){return I===1?me[se]:me.readUInt16BE(se*I)}let ue;if(N){let me=-1;for(ue=d;ue<E;ue++)if(de(f,ue)===de(l,me===-1?0:ue-me)){if(me===-1&&(me=ue),ue-me+1===W)return me*I}else me!==-1&&(ue-=ue-me),me=-1}else for(d+W>E&&(d=E-W),ue=d;ue>=0;ue--){let me=!0;for(let se=0;se<W;se++)if(de(f,ue+se)!==de(l,se)){me=!1;break}if(me)return ue}return-1}o.prototype.includes=function(l,d,h){return this.indexOf(l,d,h)!==-1},o.prototype.indexOf=function(l,d,h){return z(this,l,d,h,!0)},o.prototype.lastIndexOf=function(l,d,h){return z(this,l,d,h,!1)};function V(f,l,d,h){d=Number(d)||0;const N=f.length-d;h?(h=Number(h),h>N&&(h=N)):h=N;const I=l.length;h>I/2&&(h=I/2);let E;for(E=0;E<h;++E){const W=parseInt(l.substr(E*2,2),16);if(Dr(W))return E;f[d+E]=W}return E}function H(f,l,d,h){return an(rn(l,f.length-d),f,d,h)}function J(f,l,d,h){return an(Or(l),f,d,h)}function ae(f,l,d,h){return an(An(l),f,d,h)}function ce(f,l,d,h){return an(C(l,f.length-d),f,d,h)}o.prototype.write=function(l,d,h,N){if(d===void 0)N="utf8",h=this.length,d=0;else if(h===void 0&&typeof d=="string")N=d,h=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(h)?(h=h>>>0,N===void 0&&(N="utf8")):(N=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-d;if((h===void 0||h>I)&&(h=I),l.length>0&&(h<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let E=!1;for(;;)switch(N){case"hex":return V(this,l,d,h);case"utf8":case"utf-8":return H(this,l,d,h);case"ascii":case"latin1":case"binary":return J(this,l,d,h);case"base64":return ae(this,l,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,l,d,h);default:if(E)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),E=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(f,l,d){return l===0&&d===f.length?t.fromByteArray(f):t.fromByteArray(f.slice(l,d))}function q(f,l,d){d=Math.min(f.length,d);const h=[];let N=l;for(;N<d;){const I=f[N];let E=null,W=I>239?4:I>223?3:I>191?2:1;if(N+W<=d){let de,ue,me,se;switch(W){case 1:I<128&&(E=I);break;case 2:de=f[N+1],(de&192)===128&&(se=(I&31)<<6|de&63,se>127&&(E=se));break;case 3:de=f[N+1],ue=f[N+2],(de&192)===128&&(ue&192)===128&&(se=(I&15)<<12|(de&63)<<6|ue&63,se>2047&&(se<55296||se>57343)&&(E=se));break;case 4:de=f[N+1],ue=f[N+2],me=f[N+3],(de&192)===128&&(ue&192)===128&&(me&192)===128&&(se=(I&15)<<18|(de&63)<<12|(ue&63)<<6|me&63,se>65535&&se<1114112&&(E=se))}}E===null?(E=65533,W=1):E>65535&&(E-=65536,h.push(E>>>10&1023|55296),E=56320|E&1023),h.push(E),N+=W}return Me(h)}const le=4096;function Me(f){const l=f.length;if(l<=le)return String.fromCharCode.apply(String,f);let d="",h=0;for(;h<l;)d+=String.fromCharCode.apply(String,f.slice(h,h+=le));return d}function De(f,l,d){let h="";d=Math.min(f.length,d);for(let N=l;N<d;++N)h+=String.fromCharCode(f[N]&127);return h}function we(f,l,d){let h="";d=Math.min(f.length,d);for(let N=l;N<d;++N)h+=String.fromCharCode(f[N]);return h}function Se(f,l,d){const h=f.length;(!l||l<0)&&(l=0),(!d||d<0||d>h)&&(d=h);let N="";for(let I=l;I<d;++I)N+=Rd[f[I]];return N}function ve(f,l,d){const h=f.slice(l,d);let N="";for(let I=0;I<h.length-1;I+=2)N+=String.fromCharCode(h[I]+h[I+1]*256);return N}o.prototype.slice=function(l,d){const h=this.length;l=~~l,d=d===void 0?h:~~d,l<0?(l+=h,l<0&&(l=0)):l>h&&(l=h),d<0?(d+=h,d<0&&(d=0)):d>h&&(d=h),d<l&&(d=l);const N=this.subarray(l,d);return Object.setPrototypeOf(N,o.prototype),N};function ee(f,l,d){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+l>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l],I=1,E=0;for(;++E<d&&(I*=256);)N+=this[l+E]*I;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l+--d],I=1;for(;d>0&&(I*=256);)N+=this[l+--d]*I;return N},o.prototype.readUint8=o.prototype.readUInt8=function(l,d){return l=l>>>0,d||ee(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||ee(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||ee(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,I=this[++l]+this[++l]*2**8+this[++l]*2**16+h*2**24;return BigInt(N)+(BigInt(I)<<BigInt(32))}),o.prototype.readBigUInt64BE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=d*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],I=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+h;return(BigInt(N)<<BigInt(32))+BigInt(I)}),o.prototype.readIntLE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l],I=1,E=0;for(;++E<d&&(I*=256);)N+=this[l+E]*I;return I*=128,N>=I&&(N-=Math.pow(2,8*d)),N},o.prototype.readIntBE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=d,I=1,E=this[l+--N];for(;N>0&&(I*=256);)E+=this[l+--N]*I;return I*=128,E>=I&&(E-=Math.pow(2,8*d)),E},o.prototype.readInt8=function(l,d){return l=l>>>0,d||ee(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,d){l=l>>>0,d||ee(l,2,this.length);const h=this[l]|this[l+1]<<8;return h&32768?h|4294901760:h},o.prototype.readInt16BE=function(l,d){l=l>>>0,d||ee(l,2,this.length);const h=this[l+1]|this[l]<<8;return h&32768?h|4294901760:h},o.prototype.readInt32LE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(h<<24);return(BigInt(N)<<BigInt(32))+BigInt(d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),o.prototype.readBigInt64BE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=(d<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(N)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+h)}),o.prototype.readFloatLE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),n.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),n.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||ee(l,8,this.length),n.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||ee(l,8,this.length),n.read(this,l,!1,52,8)};function b(f,l,d,h,N,I){if(!o.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>N||l<I)throw new RangeError('"value" argument is out of bounds');if(d+h>f.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,d,h,N){if(l=+l,d=d>>>0,h=h>>>0,!N){const W=Math.pow(2,8*h)-1;b(this,l,d,h,W,0)}let I=1,E=0;for(this[d]=l&255;++E<h&&(I*=256);)this[d+E]=l/I&255;return d+h},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(l,d,h,N){if(l=+l,d=d>>>0,h=h>>>0,!N){const W=Math.pow(2,8*h)-1;b(this,l,d,h,W,0)}let I=h-1,E=1;for(this[d+I]=l&255;--I>=0&&(E*=256);)this[d+I]=l/E&255;return d+h},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,1,255,0),this[d]=l&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function D(f,l,d,h,N){Ve(l,h,N,f,d,7);let I=Number(l&BigInt(4294967295));f[d++]=I,I=I>>8,f[d++]=I,I=I>>8,f[d++]=I,I=I>>8,f[d++]=I;let E=Number(l>>BigInt(32)&BigInt(4294967295));return f[d++]=E,E=E>>8,f[d++]=E,E=E>>8,f[d++]=E,E=E>>8,f[d++]=E,d}function j(f,l,d,h,N){Ve(l,h,N,f,d,7);let I=Number(l&BigInt(4294967295));f[d+7]=I,I=I>>8,f[d+6]=I,I=I>>8,f[d+5]=I,I=I>>8,f[d+4]=I;let E=Number(l>>BigInt(32)&BigInt(4294967295));return f[d+3]=E,E=E>>8,f[d+2]=E,E=E>>8,f[d+1]=E,E=E>>8,f[d]=E,d+8}o.prototype.writeBigUInt64LE=ot(function(l,d=0){return D(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ot(function(l,d=0){return j(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,d,h,N){if(l=+l,d=d>>>0,!N){const de=Math.pow(2,8*h-1);b(this,l,d,h,de-1,-de)}let I=0,E=1,W=0;for(this[d]=l&255;++I<h&&(E*=256);)l<0&&W===0&&this[d+I-1]!==0&&(W=1),this[d+I]=(l/E>>0)-W&255;return d+h},o.prototype.writeIntBE=function(l,d,h,N){if(l=+l,d=d>>>0,!N){const de=Math.pow(2,8*h-1);b(this,l,d,h,de-1,-de)}let I=h-1,E=1,W=0;for(this[d+I]=l&255;--I>=0&&(E*=256);)l<0&&W===0&&this[d+I+1]!==0&&(W=1),this[d+I]=(l/E>>0)-W&255;return d+h},o.prototype.writeInt8=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},o.prototype.writeInt16LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeInt16BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeInt32LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},o.prototype.writeInt32BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},o.prototype.writeBigInt64LE=ot(function(l,d=0){return D(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ot(function(l,d=0){return j(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function G(f,l,d,h,N,I){if(d+h>f.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function X(f,l,d,h,N){return l=+l,d=d>>>0,N||G(f,l,d,4),n.write(f,l,d,h,23,4),d+4}o.prototype.writeFloatLE=function(l,d,h){return X(this,l,d,!0,h)},o.prototype.writeFloatBE=function(l,d,h){return X(this,l,d,!1,h)};function te(f,l,d,h,N){return l=+l,d=d>>>0,N||G(f,l,d,8),n.write(f,l,d,h,52,8),d+8}o.prototype.writeDoubleLE=function(l,d,h){return te(this,l,d,!0,h)},o.prototype.writeDoubleBE=function(l,d,h){return te(this,l,d,!1,h)},o.prototype.copy=function(l,d,h,N){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(h||(h=0),!N&&N!==0&&(N=this.length),d>=l.length&&(d=l.length),d||(d=0),N>0&&N<h&&(N=h),N===h||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),l.length-d<N-h&&(N=l.length-d+h);const I=N-h;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,h,N):Uint8Array.prototype.set.call(l,this.subarray(h,N),d),I},o.prototype.fill=function(l,d,h,N){if(typeof l=="string"){if(typeof d=="string"?(N=d,d=0,h=this.length):typeof h=="string"&&(N=h,h=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(l.length===1){const E=l.charCodeAt(0);(N==="utf8"&&E<128||N==="latin1")&&(l=E)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<h)throw new RangeError("Out of range index");if(h<=d)return this;d=d>>>0,h=h===void 0?this.length:h>>>0,l||(l=0);let I;if(typeof l=="number")for(I=d;I<h;++I)this[I]=l;else{const E=o.isBuffer(l)?l:o.from(l,N),W=E.length;if(W===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(I=0;I<h-d;++I)this[I+d]=E[I%W]}return this};const Y={};function Z(f,l,d){Y[f]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(f,l){return`The "${f}" argument must be of type number. Received type ${typeof l}`},TypeError),Z("ERR_OUT_OF_RANGE",function(f,l,d){let h=`The value of "${f}" is out of range.`,N=d;return Number.isInteger(d)&&Math.abs(d)>2**32?N=ne(String(d)):typeof d=="bigint"&&(N=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(N=ne(N)),N+="n"),h+=` It must be ${l}. Received ${N}`,h},RangeError);function ne(f){let l="",d=f.length;const h=f[0]==="-"?1:0;for(;d>=h+4;d-=3)l=`_${f.slice(d-3,d)}${l}`;return`${f.slice(0,d)}${l}`}function Ie(f,l,d){Ue(l,"offset"),(f[l]===void 0||f[l+d]===void 0)&&Re(l,f.length-(d+1))}function Ve(f,l,d,h,N,I){if(f>d||f<l){const E=typeof l=="bigint"?"n":"";let W;throw I>3?l===0||l===BigInt(0)?W=`>= 0${E} and < 2${E} ** ${(I+1)*8}${E}`:W=`>= -(2${E} ** ${(I+1)*8-1}${E}) and < 2 ** ${(I+1)*8-1}${E}`:W=`>= ${l}${E} and <= ${d}${E}`,new Y.ERR_OUT_OF_RANGE("value",W,f)}Ie(h,N,I)}function Ue(f,l){if(typeof f!="number")throw new Y.ERR_INVALID_ARG_TYPE(l,"number",f)}function Re(f,l,d){throw Math.floor(f)!==f?(Ue(f,d),new Y.ERR_OUT_OF_RANGE(d||"offset","an integer",f)):l<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?1:0} and <= ${l}`,f)}const At=/[^+/0-9A-Za-z-_]/g;function $n(f){if(f=f.split("=")[0],f=f.trim().replace(At,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function rn(f,l){l=l||1/0;let d;const h=f.length;let N=null;const I=[];for(let E=0;E<h;++E){if(d=f.charCodeAt(E),d>55295&&d<57344){if(!N){if(d>56319){(l-=3)>-1&&I.push(239,191,189);continue}else if(E+1===h){(l-=3)>-1&&I.push(239,191,189);continue}N=d;continue}if(d<56320){(l-=3)>-1&&I.push(239,191,189),N=d;continue}d=(N-55296<<10|d-56320)+65536}else N&&(l-=3)>-1&&I.push(239,191,189);if(N=null,d<128){if((l-=1)<0)break;I.push(d)}else if(d<2048){if((l-=2)<0)break;I.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;I.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;I.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return I}function Or(f){const l=[];for(let d=0;d<f.length;++d)l.push(f.charCodeAt(d)&255);return l}function C(f,l){let d,h,N;const I=[];for(let E=0;E<f.length&&!((l-=2)<0);++E)d=f.charCodeAt(E),h=d>>8,N=d%256,I.push(N),I.push(h);return I}function An(f){return t.toByteArray($n(f))}function an(f,l,d,h){let N;for(N=0;N<h&&!(N+d>=l.length||N>=f.length);++N)l[N+d]=f[N];return N}function We(f,l){return f instanceof l||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===l.name}function Dr(f){return f!==f}const Rd=function(){const f="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const h=d*16;for(let N=0;N<16;++N)l[h+N]=f[d]+f[N]}return l}();function ot(f){return typeof BigInt>"u"?Ld:f}function Ld(){throw new Error("BigInt not supported")}})(Pu);var Fu={exports:{}},pe=Fu.exports={},He,qe;function Ra(){throw new Error("setTimeout has not been defined")}function La(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?He=setTimeout:He=Ra}catch{He=Ra}try{typeof clearTimeout=="function"?qe=clearTimeout:qe=La}catch{qe=La}})();function zu(e){if(He===setTimeout)return setTimeout(e,0);if((He===Ra||!He)&&setTimeout)return He=setTimeout,setTimeout(e,0);try{return He(e,0)}catch{try{return He.call(null,e,0)}catch{return He.call(this,e,0)}}}function Ig(e){if(qe===clearTimeout)return clearTimeout(e);if((qe===La||!qe)&&clearTimeout)return qe=clearTimeout,clearTimeout(e);try{return qe(e)}catch{try{return qe.call(null,e)}catch{return qe.call(this,e)}}}var tt=[],Ft=!1,Tt,Pn=-1;function vg(){!Ft||!Tt||(Ft=!1,Tt.length?tt=Tt.concat(tt):Pn=-1,tt.length&&Bu())}function Bu(){if(!Ft){var e=zu(vg);Ft=!0;for(var t=tt.length;t;){for(Tt=tt,tt=[];++Pn<t;)Tt&&Tt[Pn].run();Pn=-1,t=tt.length}Tt=null,Ft=!1,Ig(e)}}pe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];tt.push(new Gu(e,t)),tt.length===1&&!Ft&&zu(Bu)};function Gu(e,t){this.fun=e,this.array=t}Gu.prototype.run=function(){this.fun.apply(null,this.array)};pe.title="browser";pe.browser=!0;pe.env={};pe.argv=[];pe.version="";pe.versions={};function it(){}pe.on=it;pe.addListener=it;pe.once=it;pe.off=it;pe.removeListener=it;pe.removeAllListeners=it;pe.emit=it;pe.prependListener=it;pe.prependOnceListener=it;pe.listeners=function(e){return[]};pe.binding=function(e){throw new Error("process.binding is not supported")};pe.cwd=function(){return"/"};pe.chdir=function(e){throw new Error("process.chdir is not supported")};pe.umask=function(){return 0};var $g=Fu.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pu,n=$g,r=s=>s&&s.__esModule?s:{default:s},a=r(n),i=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>a.default}),e.global=i})(Q);function Ag(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof Q.process!="object"||typeof Q.process.env!="object"||!1)){const a=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),s=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(u){const m=typeof u=="bigint"?u:BigInt(u);if(m>i||m<a)throw new Error(`int64 invalid: ${u}`);return m},uParse(u){const m=typeof u=="bigint"?u:BigInt(u);if(m>o||m<s)throw new Error(`uint64 invalid: ${u}`);return m},enc(u){return e.setBigInt64(0,this.parse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(u){return e.setBigInt64(0,this.uParse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(u,m){return e.setInt32(0,u,!0),e.setInt32(4,m,!0),e.getBigInt64(0,!0)},uDec(u,m){return e.setInt32(0,u,!0),e.setInt32(4,m,!0),e.getBigUint64(0,!0)}}}const n=a=>Ee(/^-?[0-9]+$/.test(a),`int64 invalid: ${a}`),r=a=>Ee(/^[0-9]+$/.test(a),`uint64 invalid: ${a}`);return{zero:"0",supported:!1,parse(a){return typeof a!="string"&&(a=a.toString()),n(a),a},uParse(a){return typeof a!="string"&&(a=a.toString()),r(a),a},enc(a){return typeof a!="string"&&(a=a.toString()),n(a),Ws(a)},uEnc(a){return typeof a!="string"&&(a=a.toString()),r(a),Ws(a)},dec(a,i){return fg(a,i)},uDec(a,i){return Ru(a,i)}}}const Ne=Ag();var fe;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(fe||(fe={}));class Eg{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let a=0;a<this.chunks.length;a++)t+=this.chunks[a].length;let n=new Uint8Array(t),r=0;for(let a=0;a<this.chunks.length;a++)n.set(this.chunks[a],r),r+=this.chunks[a].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(ja(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Rn(t),qs(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){wu(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){ja(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Rn(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Rn(t),t=(t<<1^t>>31)>>>0,qs(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),a=Ne.enc(t);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),a=Ne.uEnc(t);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(n)}int64(t){let n=Ne.enc(t);return Lr(n.lo,n.hi,this.buf),this}sint64(t){let n=Ne.enc(t),r=n.hi>>31,a=n.lo<<1^r,i=(n.hi<<1|n.lo>>>31)^r;return Lr(a,i,this.buf),this}uint64(t){let n=Ne.uEnc(t);return Lr(n.lo,n.hi,this.buf),this}}class Og{constructor(t,n){this.varint64=mg,this.uint32=yg,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n??new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case fe.Varint:for(;this.buf[this.pos++]&128;);break;case fe.Bit64:this.pos+=4;case fe.Bit32:this.pos+=4;break;case fe.LengthDelimited:let r=this.uint32();this.pos+=r;break;case fe.StartGroup:let a;for(;(a=this.tag()[1])!==fe.EndGroup;)this.skip(a);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Ne.dec(...this.varint64())}uint64(){return Ne.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ne.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ne.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ne.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}}function Pa(e,t){return t instanceof Je||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}w.DOUBLE,w.FLOAT,w.INT64,w.UINT64,w.INT32,w.UINT32,w.BOOL,w.STRING,w.BYTES;function lt(e,t,n){if(t===n)return!0;if(e==w.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==n[r])return!1;return!0}switch(e){case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return t==n}return!1}function Ua(e,t){switch(e){case w.BOOL:return!1;case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return t==0?Ne.zero:"0";case w.DOUBLE:case w.FLOAT:return 0;case w.BYTES:return new Uint8Array(0);case w.STRING:return"";default:return 0}}function Qu(e,t){const n=t===void 0;let r=fe.Varint,a=t===0;switch(e){case w.STRING:a=n||!t.length,r=fe.LengthDelimited;break;case w.BOOL:a=t===!1;break;case w.DOUBLE:r=fe.Bit64;break;case w.FLOAT:r=fe.Bit32;break;case w.INT64:a=n||t==0;break;case w.UINT64:a=n||t==0;break;case w.FIXED64:a=n||t==0,r=fe.Bit64;break;case w.BYTES:a=n||!t.byteLength,r=fe.LengthDelimited;break;case w.FIXED32:r=fe.Bit32;break;case w.SFIXED32:r=fe.Bit32;break;case w.SFIXED64:a=n||t==0,r=fe.Bit64;break;case w.SINT64:a=n||t==0;break}const i=w[e].toLowerCase();return[r,i,n||a]}const Dt=Symbol("@bufbuild/protobuf/unknown-fields"),Zs={readUnknownFields:!0,readerFactory:e=>new Og(e)},Ks={writeUnknownFields:!0,writerFactory:()=>new Eg};function Dg(e){return e?Object.assign(Object.assign({},Zs),e):Zs}function wg(e){return e?Object.assign(Object.assign({},Ks),e):Ks}function _g(){return{makeReadOptions:Dg,makeWriteOptions:wg,listUnknownFields(e){var t;return(t=e[Dt])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Dt]},writeUnknownFields(e,t){const r=e[Dt];if(r)for(const a of r)t.tag(a.no,a.wireType).raw(a.data)},onUnknownField(e,t,n,r){const a=e;Array.isArray(a[Dt])||(a[Dt]=[]),a[Dt].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r){const a=e.getType(),i=n===void 0?t.len:t.pos+n;for(;t.pos<i;){const[s,o]=t.tag(),u=a.fields.find(s);if(!u){const y=t.skip(o);r.readUnknownFields&&this.onUnknownField(e,s,o,y);continue}let m=e,p=u.repeated,g=u.localName;switch(u.oneof&&(m=m[u.oneof.localName],m.case!=g&&delete m.value,m.case=g,g="value"),u.kind){case"scalar":case"enum":const y=u.kind=="enum"?w.INT32:u.T;let k=Jn;if(u.kind=="scalar"&&u.L>0&&(k=xg),p){let v=m[g];if(o==fe.LengthDelimited&&y!=w.STRING&&y!=w.BYTES){let O=t.uint32()+t.pos;for(;t.pos<O;)v.push(k(t,y))}else v.push(k(t,y))}else m[g]=k(t,y);break;case"message":const M=u.T;p?m[g].push(Un(t,new M,r)):m[g]instanceof Je?Un(t,m[g],r):(m[g]=Un(t,new M,r),M.fieldWrapper&&!u.oneof&&!u.repeated&&(m[g]=M.fieldWrapper.unwrapField(m[g])));break;case"map":let[S,_]=Cg(u,t,r);m[g][S]=_;break}}}}}function Un(e,t,n){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),n),t}function Cg(e,t,n){const r=t.uint32(),a=t.pos+r;let i,s;for(;t.pos<a;){let[o]=t.tag();switch(o){case 1:i=Jn(t,e.K);break;case 2:switch(e.V.kind){case"scalar":s=Jn(t,e.V.T);break;case"enum":s=t.int32();break;case"message":s=Un(t,new e.V.T,n);break}break}}if(i===void 0){let o=Ua(e.K,St.BIGINT);i=e.K==w.BOOL?o.toString():o}if(typeof i!="string"&&typeof i!="number"&&(i=i.toString()),s===void 0)switch(e.V.kind){case"scalar":s=Ua(e.V.T,St.BIGINT);break;case"enum":s=0;break;case"message":s=new e.V.T;break}return[i,s]}function xg(e,t){const n=Jn(e,t);return typeof n=="bigint"?n.toString():n}function Jn(e,t){switch(t){case w.STRING:return e.string();case w.BOOL:return e.bool();case w.DOUBLE:return e.double();case w.FLOAT:return e.float();case w.INT32:return e.int32();case w.INT64:return e.int64();case w.UINT64:return e.uint64();case w.FIXED64:return e.fixed64();case w.BYTES:return e.bytes();case w.FIXED32:return e.fixed32();case w.SFIXED32:return e.sfixed32();case w.SFIXED64:return e.sfixed64();case w.SINT64:return e.sint64();case w.UINT32:return e.uint32();case w.SINT32:return e.sint32()}}function jg(e,t,n,r,a){e.tag(n.no,fe.LengthDelimited),e.fork();let i=r;switch(n.K){case w.INT32:case w.FIXED32:case w.UINT32:case w.SFIXED32:case w.SINT32:i=Number.parseInt(r);break;case w.BOOL:Ee(r=="true"||r=="false"),i=r=="true";break}switch(dn(e,n.K,1,i,!0),n.V.kind){case"scalar":dn(e,n.V.T,2,a,!0);break;case"enum":dn(e,w.INT32,2,a,!0);break;case"message":Fa(e,t,n.V.T,2,a);break}e.join()}function Fa(e,t,n,r,a){if(a!==void 0){const i=Pa(n,a);e.tag(r,fe.LengthDelimited).bytes(i.toBinary(t))}}function dn(e,t,n,r,a){let[i,s,o]=Qu(t,r);(!o||a)&&e.tag(n,i)[s](r)}function Rg(e,t,n,r){if(!r.length)return;e.tag(n,fe.LengthDelimited).fork();let[,a]=Qu(t);for(let i=0;i<r.length;i++)e[a](r[i]);e.join()}function Lg(){return Object.assign(Object.assign({},_g()),{writeMessage(e,t,n){const r=e.getType();for(const a of r.fields.byNumber()){let i,s=a.repeated,o=a.localName;if(a.oneof){const u=e[a.oneof.localName];if(u.case!==o)continue;i=u.value}else i=e[o];switch(a.kind){case"scalar":case"enum":let u=a.kind=="enum"?w.INT32:a.T;if(s)if(a.packed)Rg(t,u,a.no,i);else for(const m of i)dn(t,u,a.no,m,!0);else i!==void 0&&dn(t,u,a.no,i,!!a.oneof||a.opt);break;case"message":if(s)for(const m of i)Fa(t,n,a.T,a.no,m);else Fa(t,n,a.T,a.no,i);break;case"map":for(const[m,p]of Object.entries(i))jg(t,n,a,m,p);break}}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),yr=[];for(let e=0;e<et.length;e++)yr[et[e].charCodeAt(0)]=e;yr["-".charCodeAt(0)]=et.indexOf("+");yr["_".charCodeAt(0)]=et.indexOf("/");const di={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let n=new Uint8Array(t),r=0,a=0,i,s=0;for(let o=0;o<e.length;o++){if(i=yr[e.charCodeAt(o)],i===void 0)switch(e[o]){case"=":a=0;case`
37
- `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(a){case 0:s=i,a=1;break;case 1:n[r++]=s<<2|(i&48)>>4,s=i,a=2;break;case 2:n[r++]=(s&15)<<4|(i&60)>>2,s=i,a=3;break;case 3:n[r++]=(s&3)<<6|i,a=0;break}}if(a==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,a=0;for(let i=0;i<e.length;i++)switch(r=e[i],n){case 0:t+=et[r>>2],a=(r&3)<<4,n=1;break;case 1:t+=et[a|r>>4],a=(r&15)<<2,n=2;break;case 2:t+=et[a|r>>6],t+=et[r&63],n=0;break}return n&&(t+=et[a],t+="=",n==1&&(t+="=")),t}},Js={ignoreUnknownFields:!1},Xs={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Pg(e){return e?Object.assign(Object.assign({},Js),e):Js}function Ug(e){return e?Object.assign(Object.assign({},Xs),e):Xs}function Fg(e){const t=e(zg,eo);return{makeReadOptions:Pg,makeWriteOptions:Ug,readMessage(n,r,a,i){if(r==null||Array.isArray(r)||typeof r!="object")throw new Error(`cannot decode message ${n.typeName} from JSON: ${this.debug(r)}`);i=i??new n;const s={};for(const[o,u]of Object.entries(r)){const m=n.fields.findJsonName(o);if(!m){if(!a.ignoreUnknownFields)throw new Error(`cannot decode message ${n.typeName} from JSON: key "${o}" is unknown`);continue}let p=m.localName,g=i;if(m.oneof){if(u===null&&m.kind=="scalar")continue;const y=s[m.oneof.localName];if(y)throw new Error(`cannot decode message ${n.typeName} from JSON: multiple keys for oneof "${m.oneof.name}" present: "${y}", "${o}"`);s[m.oneof.localName]=o,g=g[m.oneof.localName]={case:p},p="value"}if(m.repeated){if(u===null)continue;if(!Array.isArray(u))throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`);const y=g[p];for(const k of u){if(k===null)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(k)}`);let M;switch(m.kind){case"message":M=m.T.fromJson(k,a);break;case"enum":if(M=Ur(m.T,k,a.ignoreUnknownFields),M===void 0)continue;break;case"scalar":try{M=sn(m.T,k,m.L)}catch(S){let _=`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(k)}`;throw S instanceof Error&&S.message.length>0&&(_+=`: ${S.message}`),new Error(_)}break}y.push(M)}}else if(m.kind=="map"){if(u===null)continue;if(Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`);const y=g[p];for(const[k,M]of Object.entries(u)){if(M===null)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: map value null`);let S;switch(m.V.kind){case"message":S=m.V.T.fromJson(M,a);break;case"enum":if(S=Ur(m.V.T,M,a.ignoreUnknownFields),S===void 0)continue;break;case"scalar":try{S=sn(m.V.T,M,St.BIGINT)}catch(_){let v=`cannot decode map value for field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw _ instanceof Error&&_.message.length>0&&(v+=`: ${_.message}`),new Error(v)}break}try{y[sn(m.K,m.K==w.BOOL?k=="true"?!0:k=="false"?!1:k:k,St.BIGINT).toString()]=S}catch(_){let v=`cannot decode map key for field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw _ instanceof Error&&_.message.length>0&&(v+=`: ${_.message}`),new Error(v)}}}else switch(m.kind){case"message":const y=m.T;if(u===null&&y.typeName!="google.protobuf.Value"){if(m.oneof)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: null is invalid for oneof field "${o}"`);continue}g[p]instanceof Je?g[p].fromJson(u,a):(g[p]=y.fromJson(u,a),y.fieldWrapper&&!m.oneof&&(g[p]=y.fieldWrapper.unwrapField(g[p])));break;case"enum":const k=Ur(m.T,u,a.ignoreUnknownFields);k!==void 0&&(g[p]=k);break;case"scalar":try{g[p]=sn(m.T,u,m.L)}catch(M){let S=`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw M instanceof Error&&M.message.length>0&&(S+=`: ${M.message}`),new Error(S)}break}}return i},writeMessage(n,r){const a=n.getType(),i={};let s;try{for(const o of a.fields.byMember()){let u;if(o.kind=="oneof"){const m=n[o.localName];if(m.value===void 0)continue;if(s=o.findField(m.case),!s)throw"oneof case not found: "+m.case;u=t(s,m.value,r)}else s=o,u=t(s,n[s.localName],r);u!==void 0&&(i[r.useProtoFieldName?s.name:s.jsonName]=u)}}catch(o){const u=s?`cannot encode field ${a.typeName}.${s.name} to JSON`:`cannot encode message ${a.typeName} to JSON`,m=o instanceof Error?o.message:String(o);throw new Error(u+(m.length>0?`: ${m}`:""))}return i},readScalar:sn,writeScalar:eo,debug:Yu}}function Yu(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function sn(e,t,n){switch(e){case w.DOUBLE:case w.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const r=Number(t);if(Number.isNaN(r)||!Number.isFinite(r))break;return e==w.FLOAT&&wu(r),r;case w.INT32:case w.FIXED32:case w.SFIXED32:case w.SINT32:case w.UINT32:if(t===null)return 0;let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==w.UINT32?ja(a):Rn(a),a;case w.INT64:case w.SFIXED64:case w.SINT64:if(t===null)return Ne.zero;if(typeof t!="number"&&typeof t!="string")break;const i=Ne.parse(t);return n?i.toString():i;case w.FIXED64:case w.UINT64:if(t===null)return Ne.zero;if(typeof t!="number"&&typeof t!="string")break;const s=Ne.uParse(t);return n?s.toString():s;case w.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case w.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case w.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return di.dec(t)}throw new Error}function Ur(e,t,n){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.findName(t);if(r||n)return r==null?void 0:r.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Yu(t)}`)}function zg(e,t,n,r){var a;if(t===void 0)return t;if(t===0&&!n)return;if(r)return t;if(e.typeName=="google.protobuf.NullValue")return null;const i=e.findNumber(t);return(a=i==null?void 0:i.name)!==null&&a!==void 0?a:t}function eo(e,t,n){if(t!==void 0)switch(e){case w.INT32:case w.SFIXED32:case w.SINT32:case w.FIXED32:case w.UINT32:return Ee(typeof t=="number"),t!=0||n?t:void 0;case w.FLOAT:case w.DOUBLE:return Ee(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||n?t:void 0;case w.STRING:return Ee(typeof t=="string"),t.length>0||n?t:void 0;case w.BOOL:return Ee(typeof t=="boolean"),t||n?t:void 0;case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return Ee(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),n||t!=0?t.toString(10):void 0;case w.BYTES:return Ee(t instanceof Uint8Array),n||t.byteLength>0?di.enc(t):void 0}}function Bg(){return Fg((e,t)=>function(r,a,i){if(r.kind=="map"){const s={};switch(r.V.kind){case"scalar":for(const[u,m]of Object.entries(a)){const p=t(r.V.T,m,!0);Ee(p!==void 0),s[u.toString()]=p}break;case"message":for(const[u,m]of Object.entries(a))s[u.toString()]=m.toJson(i);break;case"enum":const o=r.V.T;for(const[u,m]of Object.entries(a)){Ee(m===void 0||typeof m=="number");const p=e(o,m,!0,i.enumAsInteger);Ee(p!==void 0),s[u.toString()]=p}break}return i.emitDefaultValues||Object.keys(s).length>0?s:void 0}else if(r.repeated){const s=[];switch(r.kind){case"scalar":for(let o=0;o<a.length;o++)s.push(t(r.T,a[o],!0));break;case"enum":for(let o=0;o<a.length;o++)s.push(e(r.T,a[o],!0,i.enumAsInteger));break;case"message":for(let o=0;o<a.length;o++)s.push(Pa(r.T,a[o]).toJson(i));break}return i.emitDefaultValues||s.length>0?s:void 0}else switch(r.kind){case"scalar":return t(r.T,a,!!r.oneof||r.opt||i.emitDefaultValues);case"enum":return e(r.T,a,!!r.oneof||r.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return a!==void 0?Pa(r.T,a).toJson(i):void 0}})}function Gg(){return{setEnumType:Cu,initPartial(e,t){if(e===void 0)return;const n=t.getType();for(const r of n.fields.byMember()){const a=r.localName,i=t,s=e;if(s[a]!==void 0)switch(r.kind){case"oneof":const o=s[a].case;if(o===void 0)continue;const u=r.findField(o);let m=s[a].value;u&&u.kind=="message"&&!(m instanceof u.T)?m=new u.T(m):u&&u.kind==="scalar"&&u.T===w.BYTES&&(m=on(m)),i[a]={case:o,value:m};break;case"scalar":case"enum":let p=s[a];r.T===w.BYTES&&(p=r.repeated?p.map(on):on(p)),i[a]=p;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===w.BYTES)for(const[k,M]of Object.entries(s[a]))i[a][k]=on(M);else Object.assign(i[a],s[a]);break;case"message":const y=r.V.T;for(const k of Object.keys(s[a])){let M=s[a][k];y.fieldWrapper||(M=new y(M)),i[a][k]=M}break}break;case"message":const g=r.T;if(r.repeated)i[a]=s[a].map(y=>y instanceof g?y:new g(y));else if(s[a]!==void 0){const y=s[a];g.fieldWrapper?g.typeName==="google.protobuf.BytesValue"?i[a]=on(y):i[a]=y:i[a]=y instanceof g?y:new g(y)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{const a=t[r.localName],i=n[r.localName];if(r.repeated){if(a.length!==i.length)return!1;switch(r.kind){case"message":return a.every((s,o)=>r.T.equals(s,i[o]));case"scalar":return a.every((s,o)=>lt(r.T,s,i[o]));case"enum":return a.every((s,o)=>lt(w.INT32,s,i[o]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(a,i);case"enum":return lt(w.INT32,a,i);case"scalar":return lt(r.T,a,i);case"oneof":if(a.case!==i.case)return!1;const s=r.findField(a.case);if(s===void 0)return!0;switch(s.kind){case"message":return s.T.equals(a.value,i.value);case"enum":return lt(w.INT32,a.value,i.value);case"scalar":return lt(s.T,a.value,i.value)}throw new Error(`oneof cannot contain ${s.kind}`);case"map":const o=Object.keys(a).concat(Object.keys(i));switch(r.V.kind){case"message":const u=r.V.T;return o.every(p=>u.equals(a[p],i[p]));case"enum":return o.every(p=>lt(w.INT32,a[p],i[p]));case"scalar":const m=r.V.T;return o.every(p=>lt(m,a[p],i[p]))}break}})},clone(e){const t=e.getType(),n=new t,r=n;for(const a of t.fields.byMember()){const i=e[a.localName];let s;if(a.repeated)s=i.map(On);else if(a.kind=="map"){s=r[a.localName];for(const[o,u]of Object.entries(i))s[o]=On(u)}else a.kind=="oneof"?s=a.findField(i.case)?{case:i.case,value:On(i.value)}:{case:void 0}:s=On(i);r[a.localName]=s}return n}}}function On(e){if(e===void 0)return e;if(e instanceof Je)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function on(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class Qg{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){const n={};for(const r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){const n={};for(const r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let n;for(const r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}}function Vu(e,t){const n=Wu(e);return t?n:Zg(qg(n))}function Yg(e){return Vu(e,!1)}const Vg=Wu;function Wu(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let a=e.charAt(r);switch(a){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(a),t=!1;break;default:t&&(t=!1,a=a.toUpperCase()),n.push(a);break}}return n.join("")}const Wg=new Set(["constructor","toString","toJSON","valueOf"]),Hg=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),Hu=e=>`${e}$`,qg=e=>Hg.has(e)?Hu(e):e,Zg=e=>Wg.has(e)?Hu(e):e;class Kg{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=Yg(t)}addField(t){Ee(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n<this.fields.length;n++)this._lookup[this.fields[n].localName]=this.fields[n]}return this._lookup[t]}}const c=dg("proto3",Bg(),Lg(),Object.assign(Object.assign({},Gg()),{newFieldList(e){return new Qg(e,Jg)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Ua(t.T,t.L);break}}}}));function Jg(e){var t,n,r,a;const i=[];let s;for(const o of typeof e=="function"?e():e){const u=o;if(u.localName=Vu(o.name,o.oneof!==void 0),u.jsonName=(t=o.jsonName)!==null&&t!==void 0?t:Vg(o.name),u.repeated=(n=o.repeated)!==null&&n!==void 0?n:!1,o.kind=="scalar"&&(u.L=(r=o.L)!==null&&r!==void 0?r:St.BIGINT),u.packed=(a=o.packed)!==null&&a!==void 0?a:o.kind=="enum"||o.kind=="scalar"&&o.T!=w.BYTES&&o.T!=w.STRING,o.oneof!==void 0){const m=typeof o.oneof=="string"?o.oneof:o.oneof.name;(!s||s.name!=m)&&(s=new Kg(m)),u.oneof=s,s.addField(u)}i.push(u)}return i}var B;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(B||(B={}));var to;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(to||(to={}));class $e extends Je{constructor(t){super(),this.seconds=Ne.zero,this.nanos=0,c.util.initPartial(t,this)}fromJson(t,n){if(typeof t!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.json.debug(t)}`);const r=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const a=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(a))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(a<Date.parse("0001-01-01T00:00:00Z")||a>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Ne.parse(a/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this}toJson(t){const n=Number(this.seconds)*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let r="Z";if(this.nanos>0){const a=(this.nanos+1e9).toString().substring(1);a.substring(3)==="000000"?r="."+a.substring(0,3)+"Z":a.substring(6)==="000"?r="."+a.substring(0,6)+"Z":r="."+a+"Z"}return new Date(n).toISOString().replace(".000Z",r)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return $e.fromDate(new Date)}static fromDate(t){const n=t.getTime();return new $e({seconds:Ne.parse(Math.floor(n/1e3)),nanos:n%1e3*1e6})}static fromBinary(t,n){return new $e().fromBinary(t,n)}static fromJson(t,n){return new $e().fromJson(t,n)}static fromJsonString(t,n){return new $e().fromJsonString(t,n)}static equals(t,n){return c.util.equals($e,t,n)}}$e.runtime=c;$e.typeName="google.protobuf.Timestamp";$e.fields=c.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Ke extends Je{constructor(t){super(),this.typeUrl="",this.value=new Uint8Array(0),c.util.initPartial(t,this)}toJson(t){var n;if(this.typeUrl==="")return{};const r=this.typeUrlToName(this.typeUrl),a=(n=t==null?void 0:t.typeRegistry)===null||n===void 0?void 0:n.findMessage(r);if(!a)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let s=a.fromBinary(this.value).toJson(t);return(r.startsWith("google.protobuf.")||s===null||Array.isArray(s)||typeof s!="object")&&(s={value:s}),s["@type"]=this.typeUrl,s}fromJson(t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${t===null?"null":Array.isArray(t)?"array":typeof t}`);if(Object.keys(t).length==0)return this;const a=t["@type"];if(typeof a!="string"||a=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const i=this.typeUrlToName(a),s=(r=n==null?void 0:n.typeRegistry)===null||r===void 0?void 0:r.findMessage(i);if(!s)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${a} is not in the type registry`);let o;if(i.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value"))o=s.fromJson(t.value,n);else{const u=Object.assign({},t);delete u["@type"],o=s.fromJson(u,n)}return this.packFrom(o),this}packFrom(t){this.value=t.toBinary(),this.typeUrl=this.typeNameToUrl(t.getType().typeName)}unpackTo(t){return this.is(t.getType())?(t.fromBinary(this.value),!0):!1}unpack(t){if(this.typeUrl==="")return;const n=t.findMessage(this.typeUrlToName(this.typeUrl));if(n)return n.fromBinary(this.value)}is(t){if(this.typeUrl==="")return!1;const n=this.typeUrlToName(this.typeUrl);let r="";return typeof t=="string"?r=t:r=t.typeName,n===r}typeNameToUrl(t){return`type.googleapis.com/${t}`}typeUrlToName(t){if(!t.length)throw new Error(`invalid type url: ${t}`);const n=t.lastIndexOf("/"),r=n>0?t.substring(n+1):t;if(!r.length)throw new Error(`invalid type url: ${t}`);return r}static pack(t){const n=new Ke;return n.packFrom(t),n}static fromBinary(t,n){return new Ke().fromBinary(t,n)}static fromJson(t,n){return new Ke().fromJson(t,n)}static fromJsonString(t,n){return new Ke().fromJsonString(t,n)}static equals(t,n){return c.util.equals(Ke,t,n)}}Ke.runtime=c;Ke.typeName="google.protobuf.Any";Ke.fields=c.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);var re;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(re||(re={}));function no(e){const t=re[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}class ye extends Error{constructor(t,n=re.Unknown,r,a,i){super(Xg(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=a??[],this.cause=i}static from(t,n=re.Unknown){return t instanceof ye?t:t instanceof Error?t.name=="AbortError"?new ye(t.message,re.Canceled):new ye(t.message,n,void 0,void 0,t):new ye(String(t),n,void 0,void 0,t)}findDetails(t){const n="typeName"in t?{findMessage:a=>a===t.typeName?t:void 0}:t,r=[];for(const a of this.details){if(a instanceof Je){n.findMessage(a.getType().typeName)&&r.push(a);continue}const i=n.findMessage(a.type);if(i)try{r.push(i.fromBinary(a.value))}catch{}}return r}}function Xg(e,t){return e.length?`[${no(t)}] ${e}`:`[${no(t)}]`}function e1(e,t,n){try{const r=di.dec(e);return t?t.fromBinary(r,n):r}catch(r){throw ye.from(r,re.DataLoss)}}function qu(e,t){const n={};for(const[r,a]of Object.entries(e.methods)){const i=t(Object.assign(Object.assign({},a),{localName:r,service:e}));i!=null&&(n[r]=i)}return n}function ro(e){let t,n=new Uint8Array(0);function r(a){const i=new Uint8Array(n.length+a.length);i.set(n),i.set(a,n.length),n=i}return new ReadableStream({start(){t=e.getReader()},async pull(a){let i;for(;;){if(i===void 0&&n.byteLength>=5){let u=0;for(let m=1;m<5;m++)u=(u<<8)+n[m];i={flags:n[0],length:u}}if(i!==void 0&&n.byteLength>=i.length+5)break;const o=await t.read();if(o.done)break;r(o.value)}if(i===void 0){if(n.byteLength==0){a.close();return}a.error(new ye("premature end of stream",re.DataLoss));return}const s=n.subarray(5,5+i.length);n=n.subarray(5+i.length),a.enqueue({flags:i.flags,data:s})}})}function ao(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var t1=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}},Nn=globalThis&&globalThis.__await||function(e){return this instanceof Nn?(this.v=e,this):new Nn(e)},n1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof Nn?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}},r1=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,i){t[a]=e[a]?function(s){return(n=!n)?{value:Nn(e[a](s)),done:!1}:i?i(s):s}:i}};function Zu(e){return n1(this,arguments,function*(){yield Nn(yield*r1(t1(e)))})}var a1=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}};function i1(e,t){return qu(e,n=>{switch(n.kind){case B.Unary:return s1(t,e,n);case B.ServerStreaming:return o1(t,e,n);default:return null}})}function s1(e,t,n){return function(r,a,i){const s=new AbortController;return i=Ku(s,i),e.unary(t,n,s.signal,i.timeoutMs,i.headers,r,i.contextValues).then(o=>{var u,m;(u=i==null?void 0:i.onHeader)===null||u===void 0||u.call(i,o.header),(m=i==null?void 0:i.onTrailer)===null||m===void 0||m.call(i,o.trailer),a(void 0,o.message)},o=>{const u=ye.from(o,re.Internal);u.code===re.Canceled&&s.signal.aborted||a(u,new n.O)}),()=>s.abort()}}function o1(e,t,n){return function(r,a,i,s){const o=new AbortController;async function u(){var m,p,g,y,k,M;s=Ku(o,s);const S=await e.stream(t,n,s.signal,s.timeoutMs,s.headers,Zu([r]),s.contextValues);(k=s.onHeader)===null||k===void 0||k.call(s,S.header);try{for(var _=!0,v=a1(S.message),O;O=await v.next(),m=O.done,!m;_=!0)y=O.value,_=!1,a(y)}catch(L){p={error:L}}finally{try{!_&&!m&&(g=v.return)&&await g.call(v)}finally{if(p)throw p.error}}(M=s.onTrailer)===null||M===void 0||M.call(s,S.trailer),i(void 0)}return u().catch(m=>{const p=ye.from(m,re.Internal);p.code===re.Canceled&&o.signal.aborted?i(void 0):i(p)}),()=>o.abort()}}function Ku(e,t){return t!=null&&t.signal&&(t.signal.addEventListener("abort",()=>e.abort()),t.signal.aborted&&e.abort()),Object.assign(Object.assign({},t),{signal:e.signal})}var Ju=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}},Qt=globalThis&&globalThis.__await||function(e){return this instanceof Qt?(this.v=e,this):new Qt(e)},l1=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,i){t[a]=e[a]?function(s){return(n=!n)?{value:Qt(e[a](s)),done:!1}:i?i(s):s}:i}},u1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof Qt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}};function gr(e,t){return qu(e,n=>{switch(n.kind){case B.Unary:return c1(t,e,n);case B.ServerStreaming:return d1(t,e,n);case B.ClientStreaming:return m1(t,e,n);case B.BiDiStreaming:return f1(t,e,n);default:return null}})}function c1(e,t,n){return async function(r,a){var i,s;const o=await e.unary(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues);return(i=a==null?void 0:a.onHeader)===null||i===void 0||i.call(a,o.header),(s=a==null?void 0:a.onTrailer)===null||s===void 0||s.call(a,o.trailer),o.message}}function d1(e,t,n){return function(r,a){return Xu(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,Zu([r]),a==null?void 0:a.contextValues),a)}}function m1(e,t,n){return async function(r,a){var i,s,o,u,m,p;const g=await e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues);(m=a==null?void 0:a.onHeader)===null||m===void 0||m.call(a,g.header);let y;try{for(var k=!0,M=Ju(g.message),S;S=await M.next(),i=S.done,!i;k=!0)u=S.value,k=!1,y=u}catch(_){s={error:_}}finally{try{!k&&!i&&(o=M.return)&&await o.call(M)}finally{if(s)throw s.error}}if(!y)throw new ye("protocol error: missing response message",re.Internal);return(p=a==null?void 0:a.onTrailer)===null||p===void 0||p.call(a,g.trailer),y}}function f1(e,t,n){return function(r,a){return Xu(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues),a)}}function Xu(e,t){const n=function(){var r,a;return u1(this,arguments,function*(){const i=yield Qt(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,i.header),yield Qt(yield*l1(Ju(i.message))),(a=t==null?void 0:t.onTrailer)===null||a===void 0||a.call(t,i.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function p1(...e){const t=new AbortController,n=e.filter(a=>a!==void 0).concat(t.signal);for(const a of n){if(a.aborted){r.apply(a);break}a.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(ec(this));for(const a of n)a.removeEventListener("abort",r)}return t}function y1(e){const t=new AbortController,n=()=>{t.abort(new ye("the operation timed out",re.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function ec(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function io(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}const Fr=128;function so(e){const t=new Headers,n=new TextDecoder().decode(e).split(`\r
38
- `);for(const r of n){if(r==="")continue;const a=r.indexOf(":");if(a>0){const i=r.substring(0,a).trim(),s=r.substring(a+1).trim();t.append(i,s)}}return t}const g1="Content-Type",h1="Grpc-Timeout",tc="Grpc-Status",nc="Grpc-Message",T1="Grpc-Status-Details-Bin",k1="User-Agent",N1="X-User-Agent",b1="X-Grpc-Web",M1="application/grpc-web+proto",S1="application/grpc-web+json";class nt extends Je{constructor(t){super(),this.code=0,this.message="",this.details=[],c.util.initPartial(t,this)}static fromBinary(t,n){return new nt().fromBinary(t,n)}static fromJson(t,n){return new nt().fromJson(t,n)}static fromJsonString(t,n){return new nt().fromJsonString(t,n)}static equals(t,n){return c.util.equals(nt,t,n)}}nt.runtime=c;nt.typeName="google.rpc.Status";nt.fields=c.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Ke,repeated:!0}]);const I1="0";function rc(e){var t;const n=e.get(T1);if(n!=null){const a=e1(n,nt);if(a.code==0)return;const i=new ye(a.message,a.code,e);return i.details=a.details.map(s=>({type:s.typeUrl.substring(s.typeUrl.lastIndexOf("/")+1),value:s.value})),i}const r=e.get(tc);if(r!=null){if(r===I1)return;const a=parseInt(r,10);return a in re?new ye(decodeURIComponent((t=e.get(nc))!==null&&t!==void 0?t:""),a,e):new ye(`invalid grpc-status: ${r}`,re.Internal,e)}}function oo(e,t,n){const r=typeof t=="string"?t:t.typeName,a=typeof n=="string"?n:n.name;return e.toString().replace(/\/?$/,`/${r}/${a}`)}function ac(e,t){return t instanceof Je?t:new e(t)}function v1(e,t){function n(r){return r.done===!0?r:{done:r.done,value:ac(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),a={next:()=>r.next().then(n)};return r.throw!==void 0&&(a.throw=i=>r.throw(i).then(n)),r.return!==void 0&&(a.return=i=>r.return(i).then(n)),a}}}function $1(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function lo(e,t,n,r){const a=t?uo(e.I,r):co(e.I,n);return{parse:(t?uo(e.O,r):co(e.O,n)).parse,serialize:a.serialize}}function uo(e,t){return{parse(n){try{return e.fromBinary(n,t)}catch(r){const a=r instanceof Error?r.message:String(r);throw new ye(`parse binary: ${a}`,re.InvalidArgument)}},serialize(n){try{return n.toBinary(t)}catch(r){const a=r instanceof Error?r.message:String(r);throw new ye(`serialize binary: ${a}`,re.Internal)}}}}function co(e,t){var n,r;const a=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,i=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,s=$1(t);return{parse(o){try{const u=i.decode(o);return e.fromJsonString(u,s)}catch(u){throw ye.from(u,re.InvalidArgument)}},serialize(o){try{const u=o.toJsonString(s);return a.encode(u)}catch(u){throw ye.from(u,re.Internal)}}}}function A1(e){const t=sc(e.next,e.interceptors),[n,r,a]=ic(e),i=Object.assign(Object.assign({},e.req),{message:ac(e.req.method.I,e.req.message),signal:n});return t(i).then(s=>(a(),s),r)}function E1(e){const t=sc(e.next,e.interceptors),[n,r,a]=ic(e),i=Object.assign(Object.assign({},e.req),{message:v1(e.req.method.I,e.req.message),signal:n});let s=!1;return n.addEventListener("abort",function(){var o,u;const m=e.req.message[Symbol.asyncIterator]();s||(o=m.throw)===null||o===void 0||o.call(m,this.reason).catch(()=>{}),(u=m.return)===null||u===void 0||u.call(m).catch(()=>{})}),t(i).then(o=>Object.assign(Object.assign({},o),{message:{[Symbol.asyncIterator](){const u=o.message[Symbol.asyncIterator]();return{next(){return u.next().then(m=>(m.done==!0&&(s=!0,a()),m),r)}}}}}),r)}function ic(e){const{signal:t,cleanup:n}=y1(e.timeoutMs),r=p1(e.signal,t);return[r.signal,function(i){const s=ye.from(t.aborted?ec(t):i);return r.abort(s),n(),Promise.reject(s)},function(){n(),r.abort()}]}function sc(e,t){var n;return(n=t==null?void 0:t.concat().reverse().reduce((r,a)=>a(r),e))!==null&&n!==void 0?n:e}function O1(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function mo(e){const t=rc(e);if(t)throw t}function fo(e,t,n){const r=new Headers(n??{});return r.set(g1,e?M1:S1),r.set(b1,"1"),r.set(N1,"connect-es/1.1.2"),r.set(k1,"connect-es/1.1.2"),t!==void 0&&r.set(h1,`${t}m`),r}function D1(e){switch(e){case 400:return re.Internal;case 401:return re.Unauthenticated;case 403:return re.PermissionDenied;case 404:return re.Unimplemented;case 429:return re.Unavailable;case 502:return re.Unavailable;case 503:return re.Unavailable;case 504:return re.Unavailable;default:return re.Unknown}}function po(e,t){var n;if(e>=200&&e<300){const r=rc(t);if(r)throw r;return{foundStatus:t.has(tc)}}throw new ye(decodeURIComponent((n=t.get(nc))!==null&&n!==void 0?n:`HTTP ${e}`),D1(e),t)}var kt=globalThis&&globalThis.__await||function(e){return this instanceof kt?(this.v=e,this):new kt(e)},w1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof kt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}};function hr(e){var t;O1();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!0;return{async unary(r,a,i,s,o,u,m){var p;const{serialize:g,parse:y}=lo(a,n,e.jsonOptions,e.binaryOptions);return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await A1({interceptors:e.interceptors,signal:i,timeoutMs:s,req:{stream:!1,service:r,method:a,url:oo(e.baseUrl,r,a),init:{method:"POST",credentials:(p=e.credentials)!==null&&p!==void 0?p:"same-origin",redirect:"error",mode:"cors"},header:fo(n,s,o),contextValues:m??io(),message:u},next:async k=>{var M;const _=await((M=e.fetch)!==null&&M!==void 0?M:globalThis.fetch)(k.url,Object.assign(Object.assign({},k.init),{headers:k.header,signal:k.signal,body:ao(0,g(k.message))}));if(po(_.status,_.headers),!_.body)throw"missing response body";const v=ro(_.body).getReader();let O,L;for(;;){const P=await v.read();if(P.done)break;const{flags:F,data:z}=P.value;if(F===Fr){if(O!==void 0)throw"extra trailer";O=so(z);continue}if(L!==void 0)throw"extra message";L=y(z)}if(O===void 0)throw"missing trailer";if(mo(O),L===void 0)throw"missing message";return{stream:!1,header:_.headers,message:L,trailer:O}}})},async stream(r,a,i,s,o,u,m){var p;const{serialize:g,parse:y}=lo(a,n,e.jsonOptions,e.binaryOptions);function k(S,_,v){return w1(this,arguments,function*(){const L=ro(S).getReader();if(_){if(!(yield kt(L.read())).done)throw"extra data for trailers-only";return yield kt(void 0)}let P=!1;for(;;){const F=yield kt(L.read());if(F.done)break;const{flags:z,data:U}=F.value;if((z&Fr)===Fr){if(P)throw"extra trailer";P=!0;const V=so(U);mo(V),V.forEach((H,J)=>v.set(J,H));continue}if(P)throw"extra message";yield yield kt(y(U))}if(!P)throw"missing trailer"})}async function M(S){if(a.kind!=B.ServerStreaming)throw"The fetch API does not support streaming request bodies";const _=await S[Symbol.asyncIterator]().next();if(_.done==!0)throw"missing request message";return ao(0,g(_.value))}return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,E1({interceptors:e.interceptors,signal:i,timeoutMs:s,req:{stream:!0,service:r,method:a,url:oo(e.baseUrl,r,a),init:{method:"POST",credentials:(p=e.credentials)!==null&&p!==void 0?p:"same-origin",redirect:"error",mode:"cors"},header:fo(n,s,o),contextValues:m??io(),message:u},next:async S=>{var _;const O=await((_=e.fetch)!==null&&_!==void 0?_:globalThis.fetch)(S.url,Object.assign(Object.assign({},S.init),{headers:S.header,signal:S.signal,body:await M(S.message)})),{foundStatus:L}=po(O.status,O.headers);if(!O.body)throw"missing response body";const P=new Headers;return Object.assign(Object.assign({},S),{header:O.headers,trailer:P,message:k(O.body,L,P)})}})}}}const _1=c.makeEnum("streamlayer.users.UserNotificationPreference",[{no:0,name:"USER_NOTIFICATION_PREFERENCE_UNSET",localName:"UNSET"},{no:1,name:"USER_NOTIFICATION_PREFERENCE_ALL_EVENTS",localName:"ALL_EVENTS"},{no:2,name:"USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY",localName:"IMPORTANT_EVENTS_ONLY"},{no:3,name:"USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS",localName:"DAILY_SUMMARY_AND_MENTIONS"}]),C1=c.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),x1=c.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:C1},{no:7,name:"public_name",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.users.UserOrganization",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"permissions",kind:"scalar",T:9,repeated:!0}]);const j1=c.makeMessageType("streamlayer.users.UserMetadata",()=>[{no:2,name:"avatar",kind:"scalar",T:9},{no:3,name:"avatar_background_colour",kind:"scalar",T:9},{no:4,name:"timezone",kind:"scalar",T:9},{no:5,name:"notification_preference",kind:"enum",T:c.getEnumType(_1)},{no:6,name:"active",kind:"scalar",T:8},{no:7,name:"first_name",kind:"scalar",T:9},{no:8,name:"last_name",kind:"scalar",T:9},{no:9,name:"roles",kind:"scalar",T:9,repeated:!0}]),R1=c.makeMessageType("streamlayer.users.ExtendedUserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"metadata",kind:"message",T:j1}]),mi=c.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:x1}]);c.makeMessageType("streamlayer.users.ExtendedUser",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:R1}]);const L1=c.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),P1=c.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:U1},{no:2,name:"data",kind:"message",T:mi}]),U1=c.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),F1=c.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),z1=c.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),B1=c.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:z1}]),G1=c.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),Q1=c.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),Y1=c.makeMessageType("streamlayer.users.MeRequest",[]),V1=c.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:mi}]),W1=c.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),H1=c.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),q1=c.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),Z1=c.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),K1=c.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),J1=c.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),X1=c.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),eh=c.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),th=c.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:nh}]),nh=c.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),rh=c.makeMessageType("streamlayer.users.InviteResponse",[]),ah=c.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8}]),ih=c.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:sh},{no:2,name:"data",kind:"message",T:mi,opt:!0}]),sh=c.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),bn={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:L1,O:P1,kind:B.Unary},register:{name:"Register",I:F1,O:B1,kind:B.Unary},requestPassword:{name:"RequestPassword",I:G1,O:Q1,kind:B.Unary},me:{name:"Me",I:Y1,O:V1,kind:B.Unary},invite:{name:"Invite",I:th,O:rh,kind:B.Unary},bypassAuth:{name:"BypassAuth",I:ah,O:ih,kind:B.Unary},updateMetadata:{name:"UpdateMetadata",I:W1,O:eh,kind:B.Unary},updateAvatar:{name:"UpdateAvatar",I:H1,O:q1,kind:B.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:Z1,O:K1,kind:B.Unary},updatePublicName:{name:"UpdatePublicName",I:J1,O:X1,kind:B.Unary}}},oh=async(e,t)=>{const n=hr({baseUrl:e});return await gr(bn,n).requestPassword({id:t}),!0},lh=async(e,t)=>{const n=hr({baseUrl:e});return await gr(bn,n).register({id:t}),!0},uh=async(e,t,n)=>{var s;const r=hr({baseUrl:e}),i=await gr(bn,r).login({id:t,password:n});return(s=i==null?void 0:i.meta)==null?void 0:s.jwt};const ch=A("div")({name:"Panel",class:"pkueuwk",propsAsIs:!1}),yo=A("form")({name:"Form",class:"fp66u19",propsAsIs:!1}),go=A("div")({name:"FormTitle",class:"fwojs5e",propsAsIs:!1}),zr=A("div")({name:"FormDescription",class:"fwvt1dc",propsAsIs:!1}),Br=A("button")({name:"FormSubmit",class:"f16e2wbc",propsAsIs:!1}),dh=A("div")({name:"FormInputContainer",class:"f1xkchzs",propsAsIs:!1}),mh=A("div")({name:"Digits",class:"d132q1j",propsAsIs:!1}),fh=({login:e,anonymousLogin:t,host:n})=>{const[r,a]=x.useState(""),[i,s]=x.useState(""),[o,u]=x.useState(""),m=Fd({acceptedCharacters:/^[0-9]$/,length:4,value:o,onChange:u}),p=async y=>{y.preventDefault();try{const k=r.replaceAll("+","");try{await oh(n,k)}catch{await lh(n,k)}s(k)}catch(k){window.alert(k)}},g=async y=>{if(y.preventDefault(),i&&o)try{const k=await uh(n,i,o);k&&e?await e(k):console.log("token",k)}catch(k){window.alert(k)}};return T.jsxs(ch,{children:[!i&&T.jsxs("div",{children:[T.jsxs(yo,{onSubmit:p,children:[T.jsx(go,{children:"Enter your phone number"}),T.jsx(zr,{children:"Enter your phone up for number to log in or sign an account."}),T.jsx(dh,{children:T.jsx(z0,{value:r,onChange:y=>a(`${y}`)})}),T.jsx(Br,{disabled:!G0(r),type:"submit",children:"request code"})]}),t&&T.jsx(Br,{style:{display:"block",margin:"auto"},onClick:t,children:"anonymous login"})]}),i&&T.jsxs(yo,{onSubmit:g,children:[T.jsx(go,{children:"Enter Verification Code"}),T.jsxs(zr,{children:["Please enter the verification code ",T.jsx("br",{}),"sent to ",T.jsx("b",{children:B0(r)})]}),T.jsxs(mh,{children:[T.jsx("input",{autoFocus:!0,inputMode:"decimal",...m[0]}),T.jsx("input",{inputMode:"decimal",...m[1]}),T.jsx("input",{inputMode:"decimal",...m[2]}),T.jsx("input",{inputMode:"decimal",...m[3]})]}),T.jsx(Br,{disabled:o.length!==4,type:"submit",children:"login"}),T.jsxs(zr,{children:["Didn't get 59 the code? ",T.jsx("br",{}),"Resend Code in",T.jsx(Du,{duration:30,setTimeToExpire:()=>{},isPlaying:!0})]})]})]})};const ph=A("div")({name:"Container",class:"c18fa2p6",propsAsIs:!1}),yh=A("div")({name:"Content",class:"cthywkn",propsAsIs:!1}),gh=A("div")({name:"OnboardingHeader",class:"obeaxxh",propsAsIs:!1}),hh=A("div")({name:"LeftBlock",class:"l1jam9nb",propsAsIs:!1}),Th=A("div")({name:"RightBlock",class:"r17ziiq1",propsAsIs:!1}),kh=A("img")({name:"GameIcon",class:"gxb34q2",propsAsIs:!1}),Nh=A("img")({name:"SponsorLogo",class:"s10k8h8y",propsAsIs:!1}),bh=A("button")({name:"CloseBtn",class:"ca5j1zk",propsAsIs:!1}),Mh=A("img")({name:"IconClose",class:"i6wd7es",propsAsIs:!1}),Sh=A("button")({name:"OnboardingActionBtn",class:"onaxor0",propsAsIs:!1});const Ih=A("div")({name:"Container",class:"c1tc3ie1",propsAsIs:!1}),vh=A("div")({name:"Content",class:"cenyr9j",propsAsIs:!1}),$h=A("img")({name:"Graphic",class:"g17082th",propsAsIs:!1}),Ah=A("div")({name:"Headline",class:"hr58r57",propsAsIs:!1}),Eh=({graphic:e,headline:t})=>T.jsx(Ih,{children:T.jsxs(vh,{children:[T.jsx($h,{alt:"graphic-img-instrucrions",src:e}),T.jsx(Ah,{children:t})]})});const Oh=A("div")({name:"Container",class:"c1k109z3",propsAsIs:!1}),Dh=A("div")({name:"Title",class:"tl3o9j9",propsAsIs:!1}),wh=A("div")({name:"RulesList",class:"rp7yn67",propsAsIs:!1}),_h=A("div")({name:"RulesItem",class:"r18km3gu",propsAsIs:!1}),Ch=A("div")({name:"RuleNumber",class:"rtu7hsj",propsAsIs:!1}),xh=A("div")({name:"RuleText",class:"rfkkuag",propsAsIs:!1}),jh=({rules:e,rulesTitle:t,primaryColor:n})=>T.jsxs(Oh,{children:[T.jsx(Dh,{children:t}),T.jsx(wh,{children:e==null?void 0:e.map((r,a)=>T.jsxs(_h,{children:[T.jsx(Ch,{style:{backgroundColor:n},children:a+1}),T.jsx(xh,{children:r})]},a))})]}),Rh="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyaWVuZHMiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNNC4xOTIzMSA3LjAzMTI1QzIuNjYzNDYgNy4wMzEyNSAxLjQyMzA4IDguMTk5NzMgMS40MjMwOCA5LjYzOTk0QzEuNDIzMDggMTEuMDgwMiAyLjY2MzQ2IDEyLjI0ODYgNC4xOTIzMSAxMi4yNDg2QzUuNzIxMTUgMTIuMjQ4NiA2Ljk2MTU0IDExLjA4MDIgNi45NjE1NCA5LjYzOTk0QzYuOTYxNTQgOC4xOTk3MyA1LjcyMTE1IDcuMDMxMjUgNC4xOTIzMSA3LjAzMTI1Wk00LjE5MjMxIDEyLjI0ODZDMi4xNjIyNiAxMi4yNDg2IDAuNSAxMy44MTQ1IDAuNSAxNS43MjY5VjE3LjYyOUMwLjUgMTcuNjI5IDEuNDIzMDggMTguMzM1NiA0LjE5MjMxIDE4LjMzNTZDNi45NjE1NCAxOC4zMzU2IDcuODg0NjEgMTcuNjI5IDcuODg0NjEgMTcuNjI5VjE1LjcyNjlDNy44ODQ2MSAxMy44MTQ1IDYuMjIyMzYgMTIuMjQ4NiA0LjE5MjMxIDEyLjI0ODZaTTIwLjgwNzcgNy4wMzEyNUMxOS4yNzg4IDcuMDMxMjUgMTguMDM4NSA4LjE5OTczIDE4LjAzODUgOS42Mzk5NEMxOC4wMzg1IDExLjA4MDIgMTkuMjc4OCAxMi4yNDg2IDIwLjgwNzcgMTIuMjQ4NkMyMi4zMzY1IDEyLjI0ODYgMjMuNTc2OSAxMS4wODAyIDIzLjU3NjkgOS42Mzk5NEMyMy41NzY5IDguMTk5NzMgMjIuMzM2NSA3LjAzMTI1IDIwLjgwNzcgNy4wMzEyNVpNMjAuODA3NyAxMi4yNDg2QzE4Ljc3NzYgMTIuMjQ4NiAxNy4xMTU0IDEzLjgxNDUgMTcuMTE1NCAxNS43MjY5VjE3LjYyOUMxNy4xMTU0IDE3LjYyOSAxOC4wMzg1IDE4LjMzNTYgMjAuODA3NyAxOC4zMzU2QzIzLjU3NjkgMTguMzM1NiAyNC41IDE3LjYyOSAyNC41IDE3LjYyOVYxNS43MjY5QzI0LjUgMTMuODE0NSAyMi44Mzc3IDEyLjI0ODYgMjAuODA3NyAxMi4yNDg2Wk0xMi41IDEwLjUwOTVDMTAuOTcxMiAxMC41MDk1IDkuNzMwNzcgMTEuNjc4IDkuNzMwNzcgMTMuMTE4MkM5LjczMDc3IDE0LjU1ODQgMTAuOTcxMiAxNS43MjY5IDEyLjUgMTUuNzI2OUMxNC4wMjg4IDE1LjcyNjkgMTUuMjY5MiAxNC41NTg0IDE1LjI2OTIgMTMuMTE4MkMxNS4yNjkyIDExLjY3OCAxNC4wMjg4IDEwLjUwOTUgMTIuNSAxMC41MDk1Wk0xMi41IDE1LjcyNjlDMTAuNDcgMTUuNzI2OSA4LjgwNzY5IDE3LjI5MjggOC44MDc2OSAxOS4yMDUxVjIxLjEwNzNDOC44MDc2OSAyMS4xMDczIDkuNzMwNzcgMjEuODEzOCAxMi41IDIxLjgxMzhDMTUuMjY5MiAyMS44MTM4IDE2LjE5MjMgMjEuMTA3MyAxNi4xOTIzIDIxLjEwNzNWMTkuMjA1MUMxNi4xOTIzIDE3LjI5MjggMTQuNTMgMTUuNzI2OSAxMi41IDE1LjcyNjlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBpZD0iVmVjdG9yXzIiIGQ9Ik04LjU4NDczIDEuNUM2Ljk2MzkyIDEuNSA1LjY0ODkzIDIuNzM4NzYgNS42NDg5MyA0LjI2NTZDNS42NDg5MyA1Ljc5MjQ1IDYuOTYzOTIgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFDMTAuMjA1NSA3LjAzMTIxIDExLjUyMDUgNS43OTI0NSAxMS41MjA1IDQuMjY1NkMxMS41MjA1IDIuNzM4NzYgMTAuMjA1NSAxLjUgOC41ODQ3MyAxLjVaTTguNTg0NzMgNy4wMzEyMUM4LjI5MDM4IDcuMDMxMjEgNy45OTIyMSA3LjAyNCA3LjY5Nzg3IDcuMTE3NjNDOC4yODY1NiA3Ljg1NTg0IDguNTg0NzMgOC43ODEzMSA4LjU4NDczIDkuNzk2ODFDOC41ODQ3MyAxMC4xNjQxIDguNDkyOTggMTAuNTI0MiA4LjQ5Mjk4IDEwLjg5MTVDOS4yNzY2MyA5Ljc4NjAxIDEwLjU0MTkgOS4wNTg1OSAxMi4wMDk4IDguODc0OTRDMTEuMzI1NiA3Ljc2OTQyIDEwLjA1MjYgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFaTTE2LjQxMzUgMS41QzE0Ljc5MjcgMS41IDEzLjQ3NzcgMi43Mzg3NiAxMy40Nzc3IDQuMjY1NkMxMy40Nzc3IDUuNzkyNDUgMTQuNzkyNyA3LjAzMTIxIDE2LjQxMzUgNy4wMzEyMUMxOC4wMzQzIDcuMDMxMjEgMTkuMzQ5MyA1Ljc5MjQ1IDE5LjM0OTMgNC4yNjU2QzE5LjM0OTMgMi43Mzg3NiAxOC4wMzQzIDEuNSAxNi40MTM1IDEuNVpNMTYuNDEzNSA3LjAzMTIxQzE0Ljk0NTYgNy4wMzEyMSAxMy42NzI3IDcuNzY5NDIgMTIuOTg4NCA4Ljg3NDk0QzE0LjQ1NjMgOS4wNTg1OSAxNS43MjE2IDkuNzg2MDEgMTYuNTA1MyAxMC44OTE1QzE2LjUwNTMgMTAuNTI0MiAxNi40MTM1IDEwLjE2NDEgMTYuNDEzNSA5Ljc5NjgxQzE2LjQxMzUgOC43ODEzMSAxNi43MTE3IDcuODU1ODQgMTcuMzAwNCA3LjExNzYzQzE3LjAwNiA3LjAyNCAxNi43MDc5IDcuMDMxMjEgMTYuNDEzNSA3LjAzMTIxWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC40Ii8+CjwvZz4KPC9zdmc+Cg==";const Lh=A("div")({name:"Container",class:"ckff0a9",propsAsIs:!1}),Ph=A("div")({name:"Content",class:"czw1kx1",propsAsIs:!1}),Uh=A("div")({name:"InviteGameIconWrap",class:"i2e7ir3",propsAsIs:!1}),Fh=A("img")({name:"InviteGameIcon",class:"i2tfvcu",propsAsIs:!1}),zh=A("div")({name:"Heading",class:"hnq23ee",propsAsIs:!1}),Bh=A("div")({name:"Subtext",class:"s2drh5v",propsAsIs:!1}),Gh=A("button")({name:"InvateBtn",class:"iiwwayv",propsAsIs:!1}),Qh=({inviteCardTitle:e,inviteCardSubtext:t,primaryColor:n})=>T.jsx(Lh,{children:T.jsxs(Ph,{children:[T.jsx(Uh,{style:{backgroundColor:n},children:T.jsx(Fh,{alt:"invite-game-icon",src:Rh})}),T.jsx(zh,{children:e||""}),T.jsx(Bh,{children:t||""}),T.jsx(Gh,{onClick:()=>{},style:{backgroundColor:n},children:"Invite friends!"})]})}),wt={steps:!1,rules:!1,inviteCard:!1},Yh=({gamification:e,closeFeature:t,steps:n,gameIcon:r,sponsorLogo:a,rules:i,rulesBtnLabel:s,rulesTitle:o,primaryColor:u,inviteCardTitle:m,inviteCardSubtext:p,inviteCardBtnLabel:g})=>{const y=async()=>{await e.submitInplay()},k=()=>{t()},[M,S]=x.useState(0),[_,v]=x.useState(wt);x.useEffect(()=>{n!=null&&n.length?v({...wt,steps:!0}):i!=null&&i.length?v({...wt,rules:!0}):v({...wt,inviteCard:!0})},[]);const O=x.useCallback(()=>{n!=null&&n.length&&M<n.length-1?S(L=>++L):i!=null&&i.length&&_.steps?v({...wt,rules:!0}):_.rules&&v({...wt,inviteCard:!0})},[M,n==null?void 0:n.length,i==null?void 0:i.length,_,S,v]);return T.jsxs(ph,{children:[T.jsxs(gh,{children:[T.jsx(hh,{children:r&&T.jsx(kh,{alt:"sponsor-one-onboarding-icon",src:r})}),T.jsxs(Th,{children:[a&&T.jsx(Nh,{alt:"sponsor-two-onboarding-icon",src:a}),T.jsx(bh,{onClick:k,children:T.jsx(Mh,{alt:"icon-close-onboarding",src:ai})})]})]}),T.jsxs(yh,{children:[_.steps&&(n==null?void 0:n.length)&&T.jsx(Eh,{graphic:n[M].graphic,headline:n[M].headline}),_.rules&&T.jsx(jh,{rules:i,rulesTitle:o,primaryColor:u}),_.inviteCard&&T.jsx(Qh,{inviteCardTitle:m,inviteCardSubtext:p,primaryColor:u})]}),T.jsx(Sh,{onClick:_.inviteCard?y:O,children:_.rules?s||"Got it!":_.inviteCard?g||"Play now!":"Next"})]})},xe=c.makeEnum("streamlayer.interactive.QuestionType",[{no:0,name:"QUESTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_TYPE_POLL",localName:"POLL"},{no:2,name:"QUESTION_TYPE_TRIVIA",localName:"TRIVIA"},{no:3,name:"QUESTION_TYPE_PREDICTION",localName:"PREDICTION"},{no:4,name:"QUESTION_TYPE_FACTOID",localName:"FACTOID"},{no:5,name:"QUESTION_TYPE_TWEET",localName:"TWEET"},{no:6,name:"QUESTION_TYPE_PROMOTION",localName:"PROMOTION"}]),Vh=c.makeEnum("streamlayer.interactive.QuestionSource",[{no:0,name:"QUESTION_SOURCE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SOURCE_AI",localName:"AI"},{no:2,name:"QUESTION_SOURCE_CSV_IMPORT",localName:"CSV_IMPORT"}]),It=c.makeEnum("streamlayer.interactive.QuestionStatus",[{no:0,name:"QUESTION_STATUS_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_STATUS_NOT_SCHEDULED",localName:"NOT_SCHEDULED"},{no:2,name:"QUESTION_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:3,name:"QUESTION_STATUS_ACTIVE",localName:"ACTIVE"},{no:4,name:"QUESTION_STATUS_RESOLVED",localName:"RESOLVED"}]),Wh=c.makeEnum("streamlayer.interactive.QuestionPosition",[{no:0,name:"QUESTION_POSITION_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_POSITION_DEFAULT",localName:"DEFAULT"},{no:2,name:"QUESTION_POSITION_FIXED_BOTTOM",localName:"FIXED_BOTTOM"}]),Hh=c.makeEnum("streamlayer.interactive.QuestionLayout",[{no:0,name:"QUESTION_LAYOUT_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_LAYOUT_LIST_VIEW",localName:"LIST_VIEW"},{no:2,name:"QUESTION_LAYOUT_GRID_VIEW",localName:"GRID_VIEW"}]),Mn=c.makeEnum("streamlayer.interactive.QuestionImages",[{no:0,name:"QUESTION_IMAGES_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_IMAGES_NONE",localName:"NONE"},{no:2,name:"QUESTION_IMAGES_ROUNDED",localName:"ROUNDED"},{no:3,name:"QUESTION_IMAGES_TRANSPARENT",localName:"TRANSPARENT"},{no:4,name:"QUESTION_IMAGES_CENTERED",localName:"CENTERED"}]),oc=c.makeEnum("streamlayer.interactive.ImagePosition",[{no:0,name:"IMAGE_POSITION_UNSET",localName:"UNSET"},{no:1,name:"IMAGE_POSITION_LEFT",localName:"LEFT"},{no:2,name:"IMAGE_POSITION_RIGHT",localName:"RIGHT"}]),qh=c.makeEnum("streamlayer.interactive.PromotionType",[{no:0,name:"PROMOTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_TYPE_INGAME_IAB21",localName:"INGAME_IAB21"},{no:2,name:"PROMOTION_TYPE_INGAME_IAB11",localName:"INGAME_IAB11"},{no:3,name:"PROMOTION_TYPE_INGAME_IAB61",localName:"INGAME_IAB61"}]),Zh=c.makeEnum("streamlayer.interactive.PromotionWallet",[{no:0,name:"PROMOTION_WALLET_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_WALLET_ENABLED",localName:"ENABLED"},{no:2,name:"PROMOTION_WALLET_DISABLED",localName:"DISABLED"}]),Kh=c.makeEnum("streamlayer.interactive.QuestionAutoPostState",[{no:0,name:"QUESTION_AUTO_POST_STATE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_STATE_ON",localName:"ON"},{no:2,name:"QUESTION_AUTO_POST_STATE_OFF",localName:"OFF"},{no:3,name:"QUESTION_AUTO_POST_STATE_PAUSED",localName:"PAUSED"},{no:4,name:"QUESTION_AUTO_POST_STATE_IDLE",localName:"IDLE"}]),Jh=c.makeEnum("streamlayer.interactive.QuestionAutoPostStart",[{no:0,name:"QUESTION_AUTO_POST_START_NONE",localName:"NONE"},{no:1,name:"QUESTION_AUTO_POST_START_TIME",localName:"TIME"}]),Xh=c.makeEnum("streamlayer.interactive.QuestionSkipReason",[{no:0,name:"QUESTION_SKIP_REASON_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SKIP_REASON_OVERDUE",localName:"OVERDUE"}]),eT=c.makeEnum("streamlayer.interactive.SilenceSetting",[{no:0,name:"SILENCE_SETTING_UNSET",localName:"UNSET"},{no:1,name:"SILENCE_SETTING_ON",localName:"ON"},{no:2,name:"SILENCE_SETTING_OFF",localName:"OFF"}]),tT=c.makeEnum("streamlayer.interactive.ImportStatus",[{no:0,name:"IMPORT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"IMPORT_STATUS_PLANNED",localName:"PLANNED"},{no:2,name:"IMPORT_STATUS_RUNNING",localName:"RUNNING"},{no:3,name:"IMPORT_STATUS_COMPLETED",localName:"COMPLETED"},{no:4,name:"IMPORT_STATUS_FAILED",localName:"FAILED"}]),fi=c.makeMessageType("streamlayer.interactive.QuestionAppearance",()=>[{no:1,name:"layout",kind:"enum",T:c.getEnumType(Hh)},{no:2,name:"images",kind:"enum",T:c.getEnumType(Mn)},{no:3,name:"primary_color",kind:"scalar",T:9},{no:4,name:"position",kind:"enum",T:c.getEnumType(Wh)},{no:5,name:"auto_hide_interval",kind:"scalar",T:4}]),Jt=c.makeMessageType("streamlayer.interactive.Sponsorship",()=>[{no:1,name:"logo",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),Tr=c.makeMessageType("streamlayer.interactive.QuestionNotification",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9},{no:3,name:"indicator_color",kind:"scalar",T:9},{no:4,name:"image_position",kind:"enum",T:c.getEnumType(oc)},{no:5,name:"body",kind:"scalar",T:9},{no:6,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),nT=c.makeMessageType("streamlayer.interactive.QuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13}]),rT=c.makeMessageType("streamlayer.interactive.ExtendedQuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13},{no:6,name:"percentage",kind:"scalar",T:13},{no:7,name:"you_voted",kind:"scalar",T:8},{no:8,name:"percentage_decimal",kind:"scalar",T:1}]),dt=c.makeMessageType("streamlayer.interactive.AnswerFeedback",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]),aT=c.makeMessageType("streamlayer.interactive.FileLink",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"thumbnail_url",kind:"scalar",T:9}]),iT=c.makeMessageType("streamlayer.interactive.WebLink",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]),sT=c.makeMessageType("streamlayer.interactive.CTAButton",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"color",kind:"scalar",T:9}]),oT=c.makeMessageType("streamlayer.interactive.Banner",()=>[{no:1,name:"image_url",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"cta_button",kind:"message",T:sT}]),pi=c.makeMessageType("streamlayer.interactive.QuestionOptions",()=>[{no:1,name:"poll",kind:"message",T:lT,oneof:"options"},{no:2,name:"trivia",kind:"message",T:uT,oneof:"options"},{no:3,name:"prediction",kind:"message",T:cT,oneof:"options"},{no:4,name:"factoid",kind:"message",T:dT,oneof:"options"},{no:5,name:"tweet",kind:"message",T:mT,oneof:"options"},{no:6,name:"promotion",kind:"message",T:pT,oneof:"options"}]),lT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PollOptions",[],{localName:"QuestionOptions_PollOptions"}),uT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TriviaOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:dt},{no:2,name:"incorrect_feedback",kind:"message",T:dt},{no:3,name:"points",kind:"scalar",T:4}],{localName:"QuestionOptions_TriviaOptions"}),cT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PredictionOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:dt},{no:2,name:"incorrect_feedback",kind:"message",T:dt}],{localName:"QuestionOptions_PredictionOptions"}),dT=c.makeMessageType("streamlayer.interactive.QuestionOptions.FactoidOptions",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"video",kind:"message",T:aT},{no:4,name:"web_link",kind:"message",T:iT}],{localName:"QuestionOptions_FactoidOptions"}),mT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions",()=>[{no:1,name:"tweet_url",kind:"scalar",T:9},{no:2,name:"tweet_id",kind:"scalar",T:9},{no:3,name:"tweet_meta",kind:"message",T:fT}],{localName:"QuestionOptions_TweetOptions"}),fT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions.TweetMetadata",()=>[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"account_verified",kind:"scalar",T:8},{no:3,name:"has_media",kind:"scalar",T:8}],{localName:"QuestionOptions_TweetOptions_TweetMetadata"}),pT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PromotionOptions",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(qh)},{no:2,name:"sponsor",kind:"message",T:Jt},{no:3,name:"banner",kind:"message",T:oT},{no:4,name:"enable_wallet",kind:"enum",T:c.getEnumType(Zh)}],{localName:"QuestionOptions_PromotionOptions"}),yT=c.makeMessageType("streamlayer.interactive.Tag",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"last_used_time",kind:"scalar",T:4}]),gT=c.makeMessageType("streamlayer.interactive.QuestionAi",()=>[{no:1,name:"verified",kind:"scalar",T:8}]),lc=c.makeMessageType("streamlayer.interactive.Question",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(xe)},{no:3,name:"subject",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:pi},{no:5,name:"appearance",kind:"message",T:fi},{no:6,name:"sponsorship",kind:"message",T:Jt},{no:7,name:"notification",kind:"message",T:Tr},{no:8,name:"answers",kind:"message",T:nT,repeated:!0},{no:9,name:"status",kind:"enum",T:c.getEnumType(It)},{no:10,name:"position",kind:"scalar",T:13,opt:!0},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"overrides",kind:"map",K:9,V:{kind:"scalar",T:8}},{no:15,name:"event_id",kind:"scalar",T:9},{no:16,name:"stream_timestamp",kind:"message",T:$e},{no:17,name:"tags",kind:"message",T:yT,repeated:!0},{no:18,name:"bypass_notifications",kind:"message",T:hi},{no:19,name:"import_id",kind:"scalar",T:9},{no:20,name:"activation_trigger_count",kind:"scalar",T:13,opt:!0},{no:21,name:"source",kind:"enum",T:c.getEnumType(Vh)},{no:22,name:"ai",kind:"message",T:gT}]),yi=c.makeMessageType("streamlayer.interactive.ExtendedQuestion",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(xe)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"options",kind:"message",T:pi},{no:5,name:"appearance",kind:"message",T:fi},{no:6,name:"sponsorship",kind:"message",T:Jt},{no:7,name:"notification",kind:"message",T:Tr},{no:8,name:"answers",kind:"message",T:rT,repeated:!0},{no:9,name:"status",kind:"enum",T:c.getEnumType(It)},{no:10,name:"position",kind:"scalar",T:13},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"event_id",kind:"scalar",T:9},{no:15,name:"bypass_notifications",kind:"message",T:hi}]);c.makeMessageType("streamlayer.interactive.QuestionTimeline",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(xe)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"activated_at",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:c.getEnumType(It)},{no:6,name:"options",kind:"message",T:pi},{no:7,name:"notification",kind:"message",T:Tr}]);const uc=c.makeMessageType("streamlayer.interactive.EventModeration",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"sponsorship",kind:"message",T:Jt},{no:4,name:"onboarding_enabled",kind:"scalar",T:8},{no:5,name:"question",kind:"message",T:hT},{no:6,name:"sponsors",kind:"message",T:NT},{no:7,name:"notification",kind:"message",T:bT},{no:8,name:"activated_at",kind:"message",T:$e},{no:9,name:"deactivated_at",kind:"message",T:$e},{no:10,name:"question_auto_post",kind:"message",T:MT},{no:11,name:"bypass_notifications",kind:"message",T:hi},{no:12,name:"importer_collaboration",kind:"message",T:wT}]),hT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings",()=>[{no:1,name:"appearance",kind:"message",T:fi},{no:2,name:"trivia",kind:"message",T:TT},{no:3,name:"prediction",kind:"message",T:kT},{no:4,name:"correct_feedbacks",kind:"message",T:dt,repeated:!0},{no:5,name:"incorrect_feedbacks",kind:"message",T:dt,repeated:!0}],{localName:"EventModeration_QuestionSettings"}),TT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.TriviaCardSettings",()=>[{no:1,name:"points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_TriviaCardSettings"}),kT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.PredictionCardSettings",()=>[{no:1,name:"max_points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_PredictionCardSettings"}),NT=c.makeMessageType("streamlayer.interactive.EventModeration.SponsorshipSettings",()=>[{no:1,name:"sponsors",kind:"message",T:Jt,repeated:!0}],{localName:"EventModeration_SponsorshipSettings"}),bT=c.makeMessageType("streamlayer.interactive.EventModeration.NotificationSettings",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"indicator_color",kind:"scalar",T:9},{no:3,name:"image_position",kind:"enum",T:c.getEnumType(oc)},{no:4,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}],{localName:"EventModeration_NotificationSettings"}),MT=c.makeMessageType("streamlayer.interactive.QuestionAutoPost",()=>[{no:1,name:"state",kind:"enum",T:c.getEnumType(Kh)},{no:2,name:"interval",kind:"scalar",T:13},{no:3,name:"next_post_time",kind:"message",T:$e},{no:4,name:"start_mode",kind:"enum",T:c.getEnumType(Jh)},{no:5,name:"start_options",kind:"message",T:ST}]),ST=c.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions",()=>[{no:1,name:"time",kind:"message",T:IT,oneof:"options"}]),IT=c.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions.TimeOptions",()=>[{no:1,name:"timestamp",kind:"scalar",T:4}],{localName:"QuestionAutoPostStartOptions_TimeOptions"});c.makeMessageType("streamlayer.interactive.AnswerData",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13}]);const gi=c.makeMessageType("streamlayer.interactive.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5},{no:3,name:"cursor",kind:"scalar",T:9}]),vT=c.makeMessageType("streamlayer.interactive.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.interactive.QuestionStats",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"question",kind:"message",T:$T},{no:3,name:"statistics",kind:"message",T:AT,repeated:!0}]);const $T=c.makeMessageType("streamlayer.interactive.QuestionStats.QuestionData",()=>[{no:1,name:"status",kind:"enum",T:c.getEnumType(It)}],{localName:"QuestionStats_QuestionData"}),AT=c.makeMessageType("streamlayer.interactive.AnswerVotesStats",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"votes",kind:"message",T:ET}]),ET=c.makeMessageType("streamlayer.interactive.AnswerVotesStats.AnswerVotesData",()=>[{no:1,name:"count",kind:"scalar",T:13},{no:2,name:"percentage",kind:"scalar",T:13}],{localName:"AnswerVotesStats_AnswerVotesData"});c.makeMessageType("streamlayer.interactive.ServerNotificationOptions",()=>[{no:1,name:"silence",kind:"scalar",T:8},{no:2,name:"skip_update",kind:"scalar",T:8}]);const hi=c.makeMessageType("streamlayer.interactive.BypassNotifications",()=>[{no:1,name:"in_app_silence",kind:"enum",T:c.getEnumType(eT)}]),OT=c.makeMessageType("streamlayer.interactive.ImportError",()=>[{no:1,name:"row_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]),DT=c.makeMessageType("streamlayer.interactive.ImportProgress",()=>[{no:1,name:"import_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:c.getEnumType(tT)},{no:3,name:"errors",kind:"message",T:OT,repeated:!0},{no:4,name:"last_updated",kind:"message",T:$e}]),wT=c.makeMessageType("streamlayer.interactive.ImporterCollaboration",()=>[{no:1,name:"imports",kind:"map",K:9,V:{kind:"message",T:DT}}]),un=c.makeEnum("streamlayer.interactive.feed.PickHistoryStatus",[{no:0,name:"PICK_HISTORY_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PICK_HISTORY_STATUS_WON",localName:"WON"},{no:2,name:"PICK_HISTORY_STATUS_LOST",localName:"LOST"},{no:3,name:"PICK_HISTORY_STATUS_DNP",localName:"DNP"}]),cc=c.makeMessageType("streamlayer.interactive.feed.FeedQuestion",()=>[{no:1,name:"question",kind:"message",T:lc},{no:2,name:"notification",kind:"message",T:Tr},{no:3,name:"moderation",kind:"message",T:uc}]),_T=c.makeMessageType("streamlayer.interactive.feed.SubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"feed_id",kind:"scalar",T:9}]),CT=c.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:xT}]),xT=c.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse.SubscriptionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:cc}],{localName:"SubscriptionResponse_SubscriptionResponseData"}),jT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionRequest",()=>[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"question_id",kind:"scalar",T:9}]),RT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:LT}]),LT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse.VotingSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ti,repeated:!0}],{localName:"VotingSubscriptionResponse_VotingSubscriptionResponseData"}),PT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscription",()=>[{no:1,name:"question",kind:"message",T:yi}]),UT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),FT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:zT}]),zT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse.QuestionSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:PT}],{localName:"QuestionSubscriptionResponse_QuestionSubscriptionResponseData"}),BT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUser",()=>[{no:1,name:"question",kind:"message",T:yi}]),GT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),QT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse",()=>[{no:1,name:"data",kind:"message",T:YT}]),YT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse.QuestionByUserResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:BT}],{localName:"QuestionByUserResponse_QuestionByUserResponseData"}),VT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest",()=>[{no:1,name:"filter",kind:"message",T:WT}]),WT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest.SyncQuestionRequestFilter",()=>[{no:1,name:"event_id",kind:"scalar",T:9}],{localName:"SyncQuestionRequest_SyncQuestionRequestFilter"}),HT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:qT}]),qT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse.SyncQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:cc}],{localName:"SyncQuestionResponse_SyncQuestionResponseData"}),ZT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),KT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:JT}]),JT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse.GetQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:lc}],{localName:"GetQuestionResponse_GetQuestionResponseData"}),XT=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),e2=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse",()=>[{no:1,name:"data",kind:"message",T:t2}]),t2=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse.QuestionDetailResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:yi}],{localName:"QuestionDetailResponse_QuestionDetailResponseData"}),Ti=c.makeMessageType("streamlayer.interactive.feed.AnswerVoteResult",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13},{no:3,name:"voted",kind:"scalar",T:8},{no:4,name:"correct",kind:"scalar",T:8}]),n2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest",()=>[{no:1,name:"data",kind:"message",T:r2}]),r2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest.SubmitRequestData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9}],{localName:"SubmitAnswerRequest_SubmitRequestData"}),a2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse",()=>[{no:1,name:"data",kind:"message",T:i2}]),i2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse.SubmitAnswerResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ti,repeated:!0}],{localName:"SubmitAnswerResponse_SubmitAnswerResponseData"}),s2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest",()=>[{no:1,name:"data",kind:"message",T:o2}]),o2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest.SubmitRequestData",()=>[{no:1,name:"event_id",kind:"scalar",T:13}],{localName:"SubmitInplayRequest_SubmitRequestData"}),l2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayResponse",[]),u2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest",()=>[{no:1,name:"data",kind:"message",T:c2}]),c2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest.SkipQuestionRequestData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"reason",kind:"enum",T:c.getEnumType(Xh)}],{localName:"SkipQuestionRequest_SkipQuestionRequestData"}),d2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:m2}]),m2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse.SkipQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ti,repeated:!0}],{localName:"SkipQuestionResponse_SkipQuestionResponseData"}),f2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryRequest",()=>[{no:1,name:"question_type",kind:"enum",T:c.getEnumType(xe),repeated:!0},{no:3,name:"event_id",kind:"scalar",T:9},{no:2,name:"pagination",kind:"message",T:gi}]),p2=c.makeMessageType("streamlayer.interactive.feed.PickHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:c.getEnumType(un)},{no:4,name:"question_type",kind:"enum",T:c.getEnumType(xe)},{no:5,name:"subject",kind:"scalar",T:9},{no:6,name:"text",kind:"scalar",T:9},{no:7,name:"open_for_voting",kind:"scalar",T:8},{no:8,name:"question_status",kind:"enum",T:c.getEnumType(It)}]),y2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:g2,repeated:!0},{no:2,name:"meta",kind:"message",T:h2}]),g2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseData",()=>[{no:1,name:"attributes",kind:"message",T:p2}],{localName:"PickHistoryResponse_PickHistoryResponseData"}),h2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"PickHistoryResponse_PickHistoryResponseMetadata"}),T2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),k2=c.makeMessageType("streamlayer.interactive.feed.InsightHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),N2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:b2,repeated:!0}]),b2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse.InsightHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:k2}],{localName:"InsightHistoryResponse_InsightHistoryResponseData"}),M2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),S2=c.makeMessageType("streamlayer.interactive.feed.TweetHistory",()=>[{no:1,name:"tweet_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"body",kind:"scalar",T:9},{no:5,name:"account",kind:"scalar",T:9},{no:6,name:"account_verified",kind:"scalar",T:8}]),I2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:v2,repeated:!0}]),v2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse.TweetHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:S2}],{localName:"TweetHistoryResponse_TweetHistoryResponseData"}),$2=c.makeMessageType("streamlayer.interactive.feed.InteractiveFeed",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"options",kind:"message",T:A2},{no:3,name:"moderation",kind:"message",T:uc}]),A2=c.makeMessageType("streamlayer.interactive.feed.FeedOptions",()=>[{no:1,name:"onboarding_enabled",kind:"scalar",T:8}]),E2=c.makeMessageType("streamlayer.interactive.feed.GetRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),O2=c.makeMessageType("streamlayer.interactive.feed.GetResponse",()=>[{no:1,name:"data",kind:"message",T:D2}]),D2=c.makeMessageType("streamlayer.interactive.feed.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$2}],{localName:"GetResponse_GetResponseData"}),w2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),_2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistory",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9}]),C2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:x2,repeated:!0}]),x2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse.PromotionHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:_2}],{localName:"PromotionHistoryResponse_PromotionHistoryResponseData"}),j2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameAppearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}]),R2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameMedia",()=>[{no:1,name:"game_icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),L2=c.makeMessageType("streamlayer.sdkSettings.game.common.GamePrize",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9}]),P2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameOverview",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"auto_activate",kind:"scalar",T:8},{no:4,name:"scoring",kind:"scalar",T:8},{no:5,name:"media",kind:"message",T:R2},{no:6,name:"appearance",kind:"message",T:j2},{no:7,name:"prizes",kind:"message",T:L2,repeated:!0},{no:8,name:"completed",kind:"scalar",T:8}]),U2=c.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardMedia",()=>[{no:1,name:"icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),F2=c.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardAppearance",()=>[{no:1,name:"graphic",kind:"scalar",T:9}]),z2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameTitleCard",()=>[{no:1,name:"visible",kind:"scalar",T:8},{no:2,name:"opt_in",kind:"scalar",T:8},{no:3,name:"title",kind:"scalar",T:9},{no:4,name:"subtitle",kind:"scalar",T:9},{no:5,name:"header",kind:"scalar",T:9},{no:6,name:"media",kind:"message",T:U2},{no:7,name:"appearance",kind:"message",T:F2},{no:8,name:"completed",kind:"scalar",T:8}]),B2=c.makeMessageType("streamlayer.sdkSettings.game.common.OnboardingStep",()=>[{no:1,name:"headline",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"graphic",kind:"scalar",T:9}]),G2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameOnboarding",()=>[{no:1,name:"steps",kind:"message",T:B2,repeated:!0},{no:2,name:"completed",kind:"scalar",T:8}]),Q2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameRules",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"numbers_color",kind:"scalar",T:9},{no:5,name:"rules",kind:"scalar",T:9,repeated:!0},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"terms",kind:"scalar",T:9},{no:8,name:"terms_url",kind:"scalar",T:9}]),Y2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameInviteCard",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"subtext",kind:"scalar",T:9},{no:4,name:"button_label",kind:"scalar",T:9},{no:5,name:"icon_color",kind:"scalar",T:9},{no:6,name:"terms",kind:"scalar",T:9},{no:7,name:"completed",kind:"scalar",T:8}]),V2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameSettings",()=>[{no:1,name:"overview",kind:"message",T:P2},{no:2,name:"title_card",kind:"message",T:z2},{no:3,name:"onboarding",kind:"message",T:G2},{no:4,name:"rules",kind:"message",T:Q2},{no:5,name:"invite_card",kind:"message",T:Y2},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"enable",kind:"scalar",T:8}]),W2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationGeneral",()=>[{no:1,name:"default_color",kind:"scalar",T:9},{no:2,name:"points",kind:"scalar",T:13},{no:3,name:"auto_hide_interval",kind:"scalar",T:4},{no:4,name:"insights_history_enabled",kind:"scalar",T:8},{no:5,name:"pick_history_enabled",kind:"scalar",T:8},{no:6,name:"correct_feedbacks",kind:"message",T:dt,repeated:!0},{no:7,name:"incorrect_feedbacks",kind:"message",T:dt,repeated:!0}]),H2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationNotifications",()=>[{no:1,name:"default_image",kind:"scalar",T:9},{no:2,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),q2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSponsorships",()=>[{no:1,name:"rotate",kind:"scalar",T:8},{no:2,name:"no_sponsor",kind:"scalar",T:8},{no:3,name:"sponsors",kind:"message",T:Jt,repeated:!0}]),Z2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSettings",()=>[{no:1,name:"general",kind:"message",T:W2},{no:2,name:"notifications",kind:"message",T:H2},{no:3,name:"sponsorships",kind:"message",T:q2}]),ut=c.makeEnum("streamlayer.sdkSettings.SdkOverlayType",[{no:0,name:"SDK_OVERLAY_TYPE_UNSET",localName:"UNSET"},{no:1,name:"SDK_OVERLAY_TYPE_INPLAY",localName:"INPLAY"},{no:2,name:"SDK_OVERLAY_TYPE_MESSAGING",localName:"MESSAGING"},{no:3,name:"SDK_OVERLAY_TYPE_STATISTICS",localName:"STATISTICS"},{no:4,name:"SDK_OVERLAY_TYPE_BETTING",localName:"BETTING"},{no:5,name:"SDK_OVERLAY_TYPE_TWITTER",localName:"TWITTER"},{no:6,name:"SDK_OVERLAY_TYPE_MERCHANDISE",localName:"MERCHANDISE"},{no:7,name:"SDK_OVERLAY_TYPE_CONTESTS",localName:"CONTESTS"},{no:8,name:"SDK_OVERLAY_TYPE_VOICE_CHAT",localName:"VOICE_CHAT"},{no:9,name:"SDK_OVERLAY_TYPE_TICKETS",localName:"TICKETS"},{no:10,name:"SDK_OVERLAY_TYPE_WHOIS_WATCHING",localName:"WHOIS_WATCHING"},{no:11,name:"SDK_OVERLAY_TYPE_PROFILE",localName:"PROFILE"},{no:12,name:"SDK_OVERLAY_TYPE_GAMES",localName:"GAMES"},{no:13,name:"SDK_OVERLAY_TYPE_GOLF_STATISTICS",localName:"GOLF_STATISTICS"},{no:14,name:"SDK_OVERLAY_TYPE_HIGHLIGHTS",localName:"HIGHLIGHTS"},{no:15,name:"SDK_OVERLAY_TYPE_PUBLIC_CHAT",localName:"PUBLIC_CHAT"}]),K2=c.makeEnum("streamlayer.sdkSettings.BettingFavoriteType",[{no:0,name:"BETTING_FAVORITE_TYPE_UNSET",localName:"UNSET"},{no:1,name:"BETTING_FAVORITE_TYPE_LEAGUE",localName:"LEAGUE"},{no:2,name:"BETTING_FAVORITE_TYPE_TEAM",localName:"TEAM"}]),J2=c.makeEnum("streamlayer.sdkSettings.BettingSettingsTextColor",[{no:0,name:"BETTING_SETTINGS_TEXT_COLOR_UNSET",localName:"UNSET"},{no:1,name:"BETTING_SETTINGS_TEXT_COLOR_PRIMARY",localName:"PRIMARY"},{no:2,name:"BETTING_SETTINGS_TEXT_COLOR_GREY",localName:"GREY"},{no:3,name:"BETTING_SETTINGS_TEXT_COLOR_CUSTOM",localName:"CUSTOM"}]),ki=c.makeEnum("streamlayer.sdkSettings.GetStreamChannelType",[{no:0,name:"GETSTREAM_CHANNEL_TYPE_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_TYPE_LIVESTREAM"},{no:2,name:"GETSTREAM_CHANNEL_TYPE_MESSAGING"},{no:3,name:"GETSTREAM_CHANNEL_TYPE_TEAM"},{no:4,name:"GETSTREAM_CHANNEL_TYPE_COMMERCE"},{no:5,name:"GETSTREAM_CHANNEL_TYPE_GAMING"},{no:6,name:"GETSTREAM_CHANNEL_TYPE_CUSTOM"}]),X2=c.makeEnum("streamlayer.sdkSettings.GetStreamChannelDefault",[{no:0,name:"GETSTREAM_CHANNEL_DEFAULT_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_DEFAULT_TRUE"},{no:2,name:"GETSTREAM_CHANNEL_DEFAULT_FALSE"}]),dc=c.makeEnum("streamlayer.sdkSettings.GetStreamEnabled",[{no:0,name:"GETSTREAM_ENABLED_UNSET"},{no:1,name:"GETSTREAM_ENABLED_TRUE"},{no:2,name:"GETSTREAM_ENABLED_FALSE"}]),e3=c.makeEnum("streamlayer.sdkSettings.LeaderboardKind",[{no:0,name:"LEADERBOARD_KIND_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_KIND_GLOBAL",localName:"GLOBAL"},{no:2,name:"LEADERBOARD_KIND_FRIENDS",localName:"FRIENDS"}]),t3=c.makeEnum("streamlayer.sdkSettings.PresetRuleKey",[{no:0,name:"PRESET_RULE_KEY_UNSET",localName:"UNSET"},{no:1,name:"PRESET_RULE_KEY_SPORT",localName:"SPORT"},{no:2,name:"PRESET_RULE_KEY_LEAGUE",localName:"LEAGUE"},{no:3,name:"PRESET_RULE_KEY_TEAMS",localName:"TEAMS"}]),n3=c.makeEnum("streamlayer.sdkSettings.AdvertisingPlacement",[{no:0,name:"ADVERTISING_PLACEMENT_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_PLACEMENT_DEFAULT",localName:"DEFAULT"},{no:2,name:"ADVERTISING_PLACEMENT_WATCHPARTY_FULLSIZE",localName:"WATCHPARTY_FULLSIZE"},{no:3,name:"ADVERTISING_PLACEMENT_WATCHPARTY_VIDEOPANEL",localName:"WATCHPARTY_VIDEOPANEL"},{no:4,name:"ADVERTISING_PLACEMENT_OVERLAY_NAVBAR",localName:"OVERLAY_NAVBAR"}]);c.makeEnum("streamlayer.sdkSettings.AdvertisingType",[{no:0,name:"ADVERTISING_TYPE_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_TYPE_SPONSORS",localName:"SPONSORS"},{no:2,name:"ADVERTISING_TYPE_INTERSTITIALS",localName:"INTERSTITIALS"},{no:3,name:"ADVERTISING_TYPE_BANNERS",localName:"BANNERS"}]);const r3=c.makeMessageType("streamlayer.sdkSettings.TwitterOverlaySettings",()=>[{no:1,name:"accounts",kind:"scalar",T:9,repeated:!0}]),a3=c.makeMessageType("streamlayer.sdkSettings.BettingFavorite",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"icon",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"type",kind:"enum",T:c.getEnumType(K2)}]),i3=c.makeMessageType("streamlayer.sdkSettings.CtaImage",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),mc=c.makeMessageType("streamlayer.sdkSettings.BrandDefaults",()=>[{no:1,name:"appearance",kind:"message",T:s3}]),s3=c.makeMessageType("streamlayer.sdkSettings.BrandDefaults.Appearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}],{localName:"BrandDefaults_Appearance"}),ho=c.makeMessageType("streamlayer.sdkSettings.BettingOverlaySettings",()=>[{no:1,name:"favorites",kind:"message",T:a3,repeated:!0},{no:2,name:"primary_color",kind:"scalar",T:9},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"text_color",kind:"enum",T:c.getEnumType(J2)},{no:5,name:"app_installed_text",kind:"scalar",T:9},{no:6,name:"app_not_installed_text",kind:"scalar",T:9},{no:7,name:"text_color_custom",kind:"scalar",T:9},{no:8,name:"cta_image",kind:"message",T:i3}]),o3=c.makeMessageType("streamlayer.sdkSettings.GetStreamSettingsClient",()=>[{no:1,name:"enabled",kind:"enum",T:c.getEnumType(dc)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:5,name:"default_channel_type",kind:"enum",T:c.getEnumType(ki)}]),Xn=c.makeMessageType("streamlayer.sdkSettings.GetStreamChannel",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"channel_id",kind:"scalar",T:9},{no:4,name:"channel_type",kind:"enum",T:c.getEnumType(ki)},{no:5,name:"is_default",kind:"enum",T:c.getEnumType(X2)}]),l3=c.makeMessageType("streamlayer.sdkSettings.GetStreamChannels",()=>[{no:1,name:"enabled",kind:"enum",T:c.getEnumType(dc)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:4,name:"default_channel_type",kind:"enum",T:c.getEnumType(ki)},{no:5,name:"default_channel",kind:"message",T:Xn},{no:6,name:"channels",kind:"message",T:Xn,repeated:!0}]),fc=c.makeMessageType("streamlayer.sdkSettings.StreamSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"custom",kind:"scalar",T:8},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"primary_color",kind:"scalar",T:9},{no:5,name:"secondary_color",kind:"scalar",T:9},{no:6,name:"moderation_primary_color",kind:"scalar",T:9},{no:7,name:"link_share_icon",kind:"scalar",T:9},{no:8,name:"link_share_text",kind:"scalar",T:9},{no:9,name:"brand_defaults",kind:"message",T:mc},{no:10,name:"getstream",kind:"message",T:l3}]),u3=c.makeMessageType("streamlayer.sdkSettings.JWK",()=>[{no:1,name:"alg",kind:"scalar",T:9,opt:!0},{no:2,name:"crv",kind:"scalar",T:9,opt:!0},{no:3,name:"d",kind:"scalar",T:9,opt:!0},{no:4,name:"dp",kind:"scalar",T:9,opt:!0},{no:5,name:"dq",kind:"scalar",T:9,opt:!0},{no:6,name:"e",kind:"scalar",T:9,opt:!0},{no:7,name:"ext",kind:"scalar",T:8,opt:!0},{no:8,name:"k",kind:"scalar",T:9,opt:!0},{no:9,name:"key_ops",kind:"scalar",T:9,repeated:!0},{no:10,name:"kid",kind:"scalar",T:9,opt:!0},{no:11,name:"kty",kind:"scalar",T:9,opt:!0},{no:12,name:"n",kind:"scalar",T:9,opt:!0},{no:13,name:"oth",kind:"message",T:c3,repeated:!0},{no:14,name:"p",kind:"scalar",T:9,opt:!0},{no:15,name:"q",kind:"scalar",T:9,opt:!0},{no:16,name:"qi",kind:"scalar",T:9,opt:!0},{no:17,name:"use",kind:"scalar",T:9,opt:!0},{no:18,name:"x",kind:"scalar",T:9,opt:!0},{no:19,name:"y",kind:"scalar",T:9,opt:!0},{no:20,name:"x5c",kind:"scalar",T:9,repeated:!0},{no:21,name:"x5t",kind:"scalar",T:9,opt:!0},{no:22,name:"x5u",kind:"scalar",T:9,opt:!0}]),c3=c.makeMessageType("streamlayer.sdkSettings.JWK.OTH",()=>[{no:1,name:"d",kind:"scalar",T:9,opt:!0},{no:2,name:"r",kind:"scalar",T:9,opt:!0},{no:3,name:"t",kind:"scalar",T:9,opt:!0}],{localName:"JWK_OTH"}),pc=c.makeMessageType("streamlayer.sdkSettings.OrganizationSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"button_icon",kind:"scalar",T:9},{no:3,name:"tinode_host",kind:"scalar",T:9},{no:4,name:"audience",kind:"scalar",T:9},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"provider",kind:"scalar",T:9},{no:7,name:"primary_color",kind:"scalar",T:9},{no:8,name:"secondary_color",kind:"scalar",T:9},{no:9,name:"moderation_primary_color",kind:"scalar",T:9},{no:10,name:"link_share_icon",kind:"scalar",T:9},{no:11,name:"link_share_text",kind:"scalar",T:9},{no:12,name:"brand_defaults",kind:"message",T:mc},{no:13,name:"pub",kind:"message",T:u3},{no:14,name:"getstream",kind:"message",T:o3}]),d3=c.makeMessageType("streamlayer.sdkSettings.GamesOverlaySettings",()=>[{no:1,name:"inplay_game",kind:"message",T:V2},{no:2,name:"moderation",kind:"message",T:Z2},{no:3,name:"pinned_leaderboard_id",kind:"scalar",T:9},{no:4,name:"leaderboard_kind",kind:"enum",T:c.getEnumType(e3)}]),To=c.makeMessageType("streamlayer.sdkSettings.GetStreamOverlaySettings",()=>[{no:1,name:"default_channel",kind:"message",T:Xn},{no:2,name:"channels",kind:"message",T:Xn,repeated:!0}]),Pt=c.makeMessageType("streamlayer.sdkSettings.SdkOverlaySettings",()=>[{no:4,name:"twitter",kind:"message",T:r3,oneof:"overlay_settings"},{no:5,name:"betting",kind:"message",T:ho,oneof:"overlay_settings"},{no:6,name:"inplay",kind:"message",T:ho,oneof:"overlay_settings"},{no:7,name:"games",kind:"message",T:d3,oneof:"overlay_settings"},{no:8,name:"getstream",kind:"message",T:To,oneof:"overlay_settings"},{no:9,name:"public_chat",kind:"message",T:To,oneof:"overlay_settings"}]),m3=c.makeMessageType("streamlayer.sdkSettings.SdkOverlayMeta",()=>[{no:1,name:"organization",kind:"message",T:Pt},{no:2,name:"global_preset",kind:"message",T:Pt},{no:3,name:"preset",kind:"message",T:Pt},{no:4,name:"stream",kind:"message",T:Pt}]),kr=c.makeMessageType("streamlayer.sdkSettings.SdkOverlay",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(ut)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:Pt},{no:6,name:"meta",kind:"message",T:m3},{no:7,name:"enable",kind:"scalar",T:8},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);c.makeMessageType("streamlayer.sdkSettings.SdkOverlayUpdateData",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(ut)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:Pt},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);c.makeMessageType("streamlayer.sdkSettings.OverlaysListRequest",[]);c.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse",()=>[{no:1,name:"data",kind:"message",T:f3}]);const f3=c.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse.OverlaysListResponseData",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",T:kr,repeated:!0}],{localName:"OverlaysListResponse_OverlaysListResponseData"});c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:p3}]);const p3=c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse.GenerateSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateSdkKeyResponse_GenerateSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:y3}]);const y3=c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse.RemoveSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveSdkKeyResponse_RemoveSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:g3}]);const g3=c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse.ListSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"ListSdkKeyResponse_ListSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RegisterTwitterRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"stream_id",kind:"scalar",T:9},{no:3,name:"account",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RegisterTwitterResponse",[]);c.makeMessageType("streamlayer.sdkSettings.Preset",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"rule",kind:"message",T:T3},{no:3,name:"settings",kind:"message",T:h3}]);const h3=c.makeMessageType("streamlayer.sdkSettings.PresetSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"advertising",kind:"message",T:yc}]),T3=c.makeMessageType("streamlayer.sdkSettings.PresetRule",()=>[{no:1,name:"key",kind:"enum",T:c.getEnumType(t3)},{no:2,name:"value",kind:"scalar",T:9}]),k3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraints",()=>[{no:1,name:"images",kind:"message",T:ko},{no:2,name:"videos",kind:"message",T:ko}]),ko=c.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraint",()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5},{no:3,name:"max_file_size",kind:"scalar",T:1},{no:4,name:"mime",kind:"scalar",T:9}]),N3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplate",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"constraints",kind:"map",K:9,V:{kind:"message",T:k3}}]);c.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplates",()=>[{no:1,name:"templates",kind:"message",T:N3,repeated:!0}]);const b3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingImage",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"placement",kind:"enum",T:c.getEnumType(n3)}]),M3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingVideo",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"background_color",kind:"scalar",T:9}]),S3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingSettings",()=>[{no:1,name:"frequency",kind:"scalar",T:5},{no:2,name:"images",kind:"message",T:b3,repeated:!0},{no:3,name:"videos",kind:"message",T:M3,repeated:!0}]),I3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingOverlaySettings",()=>[{no:1,name:"overlay_type",kind:"enum",T:c.getEnumType(ut)},{no:2,name:"settings",kind:"map",K:9,V:{kind:"message",T:S3}},{no:3,name:"enabled",kind:"scalar",T:8},{no:4,name:"overlay_name",kind:"scalar",T:9},{no:5,name:"use_custom",kind:"scalar",T:8,opt:!0}]),yc=c.makeMessageType("streamlayer.sdkSettings.Advertising",()=>[{no:1,name:"template_id",kind:"scalar",T:9},{no:2,name:"overlay_settings",kind:"map",K:9,V:{kind:"message",T:I3}}]);c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:v3}]);const v3=c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse.GenerateApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateApiKeyResponse_GenerateApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"token",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:$3}]);const $3=c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse.RemoveApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveApiKeyResponse_RemoveApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.GetApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:A3}]);const A3=c.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse.GetApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyResponse_GetApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse",()=>[{no:1,name:"data",kind:"message",T:E3}]);const E3=c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse.GetApiKeyStudioResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyStudioResponse_GetApiKeyStudioResponseData"}),O3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlBvbGwiPgo8cGF0aCBpZD0iTm90aWZpY2F0aW9uL0ljb24vUG9sbCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05Ljc3NzggMS42ODQyMVY1LjA1MjYzSDEzLjMzMzNDMTMuODI0MyA1LjA1MjYzIDE0LjIyMjIgNC42NzU2MSAxNC4yMjIyIDQuMjEwNTNWMi41MjYzMkMxNC4yMjIyIDIuMDYxMjMgMTMuODI0MyAxLjY4NDIxIDEzLjMzMzMgMS42ODQyMUg5Ljc3NzhaTTIuNjY2NjcgMEMxLjE5MzkxIDAgMCAxLjEzMTA3IDAgMi41MjYzMlY0LjIxMDUzQzAgNS42MDU3NyAxLjE5MzkxIDYuNzM2ODQgMi42NjY2NyA2LjczNjg0SDEzLjMzMzNDMTQuODA2MSA2LjczNjg0IDE2IDUuNjA1NzcgMTYgNC4yMTA1M1YyLjUyNjMyQzE2IDEuMTMxMDcgMTQuODA2MSAwIDEzLjMzMzMgMEgyLjY2NjY3Wk00LjQ0NDQ2IDEwLjk0NzNIMTMuMzMzM0MxMy44MjQzIDEwLjk0NzMgMTQuMjIyMiAxMS4zMjQzIDE0LjIyMjIgMTEuNzg5NFYxMy40NzM2QzE0LjIyMjIgMTMuOTM4NyAxMy44MjQzIDE0LjMxNTcgMTMuMzMzMyAxNC4zMTU3SDQuNDQ0NDZWMTAuOTQ3M1pNMCAxMS43ODk0QzAgMTAuMzk0MiAxLjE5MzkxIDkuMjYzMSAyLjY2NjY3IDkuMjYzMUgxMy4zMzMzQzE0LjgwNjEgOS4yNjMxIDE2IDEwLjM5NDIgMTYgMTEuNzg5NFYxMy40NzM2QzE2IDE0Ljg2ODkgMTQuODA2MSAxNS45OTk5IDEzLjMzMzMgMTUuOTk5OUgyLjY2NjY3QzEuMTkzOTEgMTUuOTk5OSAwIDE0Ljg2ODkgMCAxMy40NzM2VjExLjc4OTRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K",D3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikljb24vTm90aWZpY2F0aW9uL1ByZWRpY2l0b24iPgo8cGF0aCBpZD0iSWNvbi9QcmVkaWN0aW9uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE2IDcuMDA1MjJDMTYgNy4wMDUyMiA5LjIwMDQ4IDYuODE2MDcgOS4yMDA0OCAwQzkuMjAwNDggNi4zNjE2OCAzLjI3NzI5IDYuOTUwNTYgMi40ODc1NiA3LjAwMDc4TDIuNDAwOTQgNy4wMDUyMkMyLjQwMDk0IDcuMDA1MjIgOS4yMDA0OCA3LjE5NDM1IDkuMjAwNDggMTQuMDEwNEM5LjIwMDQ4IDcuNjQ4NzcgMTUuMTIzNCA3LjA1OTg5IDE1LjkxMzEgNy4wMDk2NEwxNiA3LjAwNTIyWk02Ljk3MzgyIDEyLjU2NTJDNi45NzM4MiAxMi41NjUyIDMuNDg2OTEgMTIuNDcyNCAzLjQ4NjkxIDkuMTMwMzNDMy40ODY5MSAxMi4yNDk2IDAuNDQ5NDAyIDEyLjUzODQgMC4wNDQ0MTg2IDEyLjU2M0wwIDEyLjU2NTJDMCAxMi41NjUyIDMuNDg2OTEgMTIuNjU3OSAzLjQ4NjkxIDE2QzMuNDg2OTEgMTIuODgwNyA2LjUyNDI5IDEyLjU5MiA2LjkyOTI3IDEyLjU2NzNMNi45NzM4MiAxMi41NjUyWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==",w3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikljb24vTm90aWZpY2F0aW9uL1RyaXZpYSI+CjxwYXRoIGlkPSJOb3RpZmljYXRpb24vSWNvbi9Ucml2aWEiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi4wMTY2MyAxLjM4MDhDMC43Mzk5MTMgMS41NTU4NiAtMC4xNTMxNTMgMi43MzI3NiAwLjAyMTkxMiA0LjAwOTQ4TDEuMzgwOCAxMy45MTk2QzEuNTU1ODYgMTUuMTk2MyAyLjczMjc2IDE2LjA4OTQgNC4wMDk0OCAxNS45MTQzTDEzLjkxOTYgMTQuNTU1NEMxNS4xOTYzIDE0LjM4MDMgMTYuMDg5NCAxMy4yMDM0IDE1LjkxNDMgMTEuOTI2N0wxNC41NTU0IDIuMDE2NjNDMTQuMzgwMyAwLjczOTkxMyAxMy4yMDM0IC0wLjE1MzE1MyAxMS45MjY3IDAuMDIxOTEyTDIuMDE2NjMgMS4zODA4Wk05LjU5NjEzIDMuNzg4QzkuMTE0MzEgMy40Njk5MSA4LjQ3ODEzIDMuMzAxNTEgNy43NTY2IDMuMzAxNTFDNy41NDM3NyAzLjMwMTUxIDcuMzI2MjUgMy4zMTY3MSA3LjEwODcyIDMuMzQ0NzhDNi4zODgzNiAzLjQ0MDY3IDUuNjg5MDEgMy43OTAzNCA1LjE4OTY1IDQuMzAxMzhDNC42ODQ0NSA0LjgyMDYyIDQuNDM3NyA1LjQ1NTYzIDQuNTE3MjIgNi4wNDE1MUM0LjU3NDUyIDYuNDc0MiA0LjkwMDc4IDYuNzUzNyA1LjM0NjM1IDYuNzUzN0M1LjM5NDI5IDYuNzUzNyA1LjQ0MzQxIDYuNzUwMiA1LjQ5MTM2IDYuNzQ0MzVDNi4wODc3OCA2LjY2NDgzIDYuMjE2NDIgNi4yNTQzNiA2LjM0MDM2IDUuODU2NzVMNi4zNDA0NSA1Ljg1NjQ4QzYuNDgxOTIgNS40MDQwMSA2LjYxNTM0IDQuOTc3MzEgNy4zODU4NSA0Ljg3NDQ0QzcuNDY1MzcgNC44NjM5MSA3LjU0MTM4IDQuODU4MDYgNy42MTUwNiA0Ljg1ODA2QzguMTY5MzkgNC44NTgwNiA4LjUxNDM2IDUuMTUwNDIgOC41ODQ1NCA1LjY4MjUyQzguNjUzNTMgNi4yMDI5MyA4LjI0MzA3IDYuNjE4MDcgNy44MDY4NCA3LjA1NjZMNy44MDM5MyA3LjA1OTU0QzcuMzE1ODIgNy41NTIzMSA2Ljc2MzkgOC4xMDk1IDYuODY4OTUgOC45MDA4M0M2Ljg5NTg1IDkuMTA1NDggNi45ODU5IDkuMjk0OTMgNy4xMjI3MiA5LjQzNjQ0QzcuMjc4MjYgOS41OTkgNy40ODI5IDkuNjg0MzYgNy43MTMzMSA5LjY4NDM2QzcuNzU1NDEgOS42ODQzNiA3Ljc5ODY4IDkuNjgyMDMgNy44NDMxMSA5LjY3NjE4QzguNDY2OTEgOS41OTMyNCA4LjU1MTYyIDkuMjMxMzkgOC42MzMzOCA4Ljg4MjFMOC42MzM2NSA4Ljg4MDk3TDguNjM2NjEgOC44Njg1OUM4LjY2NzIzIDguNzQwMyA4LjY5ODc3IDguNjA4MTMgOC43NTk5NSA4LjQ4ODA0QzguODQ2NDkgOC4zMTYxMyA5LjA2MjgzIDguMTEyNjUgOS4zMTQyOCA3Ljg3ODc1QzkuOTE0MiA3LjMxODU4IDEwLjczNCA2LjU1MTQzIDEwLjU4MiA1LjQxNTg5QzEwLjQ4NzIgNC43MDYwMyAxMC4xNTUxIDQuMTU3NTcgOS41OTYxMSAzLjc4ODAyTDkuNTk2MTMgMy43ODhaTTguMTE2MDUgMTAuMjhDOC4wNjkyNyAxMC4yOCA4LjAyMTMyIDEwLjI4MzYgNy45NzQ1NCAxMC4yODk0QzcuMzgzOTYgMTAuMzY4OSA2Ljk2NzY1IDEwLjkxMjcgNy4wNDU5OSAxMS41MDMzQzcuMTE3MzMgMTIuMDM3NyA3LjU3ODA4IDEyLjQ0MTIgOC4xMTcyIDEyLjQ0MTJDOC4xNjM5NyAxMi40NDEyIDguMjExOTIgMTIuNDM3NyA4LjI1OTg3IDEyLjQzMThDOC44NTA0NSAxMi4zNTIzIDkuMjY1NiAxMS44MDg1IDkuMTg4NDIgMTEuMjE3OUM5LjExNTkxIDEwLjY4MjMgOC42NTUxNyAxMC4yOCA4LjExNjA1IDEwLjI4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==",_3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTEzLjQzMTUgMy4xODI0Nkw1LjUzMzIxIDExLjA4MDhMMS45OTc3MSA3LjU0NTI3QzEuNTQwNTYgNy4wODgxMSAwLjc5OTkxMyA3LjA4ODExIDAuMzQyODY0IDcuNTQ1MjdDLTAuMTE0Mjg4IDguMDAyNDIgLTAuMTE0Mjg4IDguNzQzMDcgMC4zNDI4NjQgOS4yMDAxMUw0LjcwNTY3IDEzLjU2MjlDNC45MzMzMSAxMy43OTA2IDUuMjM0MTUgMTMuOTA2MyA1LjUzMzA3IDEzLjkwNjNDNS44MzIwMiAxMy45MDYzIDYuMTMwOTYgMTMuNzkyNCA2LjM2MDQ4IDEzLjU2MjlMMTUuMDg2MSA0LjgzNzMxQzE1LjU0MzIgNC4zODAxNiAxNS41NDMyIDMuNjM5NTEgMTUuMDg2MSAzLjE4MjQ2QzE0LjYyOSAyLjcyNTMxIDEzLjg4ODQgMi43MjUzMSAxMy40MzEyIDMuMTgyNDZIMTMuNDMxNVoiIGZpbGw9IiMwMEJENjAiLz4KPC9nPgo8L3N2Zz4K",C3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIyIiB5PSIwLjUwNjEwNCIgd2lkdGg9IjE2LjQ5OTIiIGhlaWdodD0iMi4zNTcwMiIgcng9IjEuMTc4NTEiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDIgMC41MDYxMDQpIiBmaWxsPSIjOWUwYTFmIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB4PSIwLjMzMzAwOCIgeT0iMTIuMTcyOSIgd2lkdGg9IjE2LjQ5OTIiIGhlaWdodD0iMi4zNTcwMiIgcng9IjEuMTc4NTEiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwLjMzMzAwOCAxMi4xNzI5KSIgZmlsbD0iIzllMGExZiIvPgo8L2c+Cjwvc3ZnPgo=",No="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K";const x3=A("div")({name:"Panel",class:"p1fl4kim",propsAsIs:!1}),j3=A("div")({name:"QuestionTypeIconWrap",class:"qqhwgfn",propsAsIs:!1}),R3=A("img")({name:"QuestionTypeIcon",class:"q1lyf5nv",propsAsIs:!1}),L3=A("div")({name:"QuestionContent",class:"qlmoky7",propsAsIs:!1}),P3=A("div")({name:"QuestionTypeLabel",class:"qp1y7hu",propsAsIs:!1}),U3=A("div")({name:"QuestionSubject",class:"q1de583k",propsAsIs:!1}),F3=A("button")({name:"QuestionActionTitle",class:"ql7tvph",propsAsIs:!1}),z3=A("button")({name:"QuestionActionIcon",class:"qh0ibjl",propsAsIs:!1}),B3=A("img")({name:"QuestionStatusIcon",class:"q1bdpn1b",propsAsIs:!1}),G3=A("span")({name:"QuestionTypeTitle",class:"q6tdooc",propsAsIs:!1}),Q3=A("span")({name:"ExpiredQuestion",class:"e1f2al71",propsAsIs:!1}),Y3={[xe.POLL]:{label:"Poll",icon:O3},[xe.TRIVIA]:{label:"Trivia",icon:w3},[xe.PREDICTION]:{label:"Prediction",icon:D3}},V3={[un.LOST]:C3,[un.WON]:_3,[un.UNSET]:No,[un.DNP]:No},W3=({questionId:e,questionType:t,questionStatus:n,subject:r,openForVoting:a,openQuestion:i,status:s})=>{const o=Y3[t];return o===void 0?null:T.jsxs(x3,{onClick:()=>i==null?void 0:i(e),children:[T.jsx(j3,{children:T.jsx(R3,{alt:"question-type-icon",src:o.icon})}),T.jsxs(L3,{children:[T.jsxs(P3,{children:[T.jsx(G3,{children:o.label}),t===xe.TRIVIA&&n===It.RESOLVED&&T.jsx(Q3,{children:"Expired"})]}),T.jsx(U3,{children:r||""})]}),a?T.jsx(F3,{children:"play"}):T.jsx(z3,{children:T.jsx(B3,{alt:"question-status-icon",src:V3[s]})})]})};const H3=A("div")({name:"Container",class:"c4iwna9",propsAsIs:!1}),q3=A("div")({name:"Title",class:"th1ieuk",propsAsIs:!1}),Z3=A("div")({name:"ItemsContainer",class:"iiqbvdu",propsAsIs:!1}),K3=({questions:e,openQuestion:t})=>T.jsxs(H3,{children:[T.jsx(q3,{children:"PICK HISTORY"}),T.jsx(Z3,{children:e==null?void 0:e.map(n=>T.jsx(W3,{openQuestion:t,...n},n.questionId))})]}),J3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjc2OTE2IDMuNTAwMDJDMi43NjkxNiA0LjQ5Nzg2IDIuOTQ3MDUgNS4zODM0OCAzLjMwMjgyIDYuMTU2OTJDMi42MjQ5MyA2LjAxODQ3IDIuMDU4ODMgNS43NDg3MiAxLjYwNDUgNS4zNDc2OEMxLjE1MDE3IDQuOTQ2NjMgMC45MjMwMDggNC41NTk5MiAwLjkyMzAwOCA0LjE4NzUyVjMuNTAwMDJIMi43NjkxNlpNMTEuMDc2OCAzLjUwMDAyVjQuMTg3NTJDMTEuMDc2OCA0LjU1OTkyIDEwLjg0OTcgNC45NDY2MyAxMC4zOTUzIDUuMzQ3NjhDOS45NDEgNS43NDg3MiA5LjM3NDkgNi4wMTg0NyA4LjY5NzAxIDYuMTU2OTJDOS4wNTI3OCA1LjM4MzQ4IDkuMjMwNjYgNC40OTc4NiA5LjIzMDY2IDMuNTAwMDJIMTEuMDc2OFpNMTIgNC4xODc1VjMuMjcwODNDMTIgMy4wNzk4NiAxMS45MzI3IDIuOTE3NTQgMTEuNzk4MSAyLjc4Mzg1QzExLjY2MzUgMi42NTAxNyAxMS41IDIuNTgzMzMgMTEuMzA3NyAyLjU4MzMzSDkuMjMwNzdWMS44OTU4M0M5LjIzMDc3IDEuNTgwNzMgOS4xMTc3OSAxLjMxMDk4IDguODkxODMgMS4wODY1OUM4LjY2NTg2IDAuODYyMTk1IDguMzk0MjMgMC43NSA4LjA3NjkyIDAuNzVIMy45MjMwOEMzLjYwNTc3IDAuNzUgMy4zMzQxNCAwLjg2MjE5NSAzLjEwODE3IDEuMDg2NTlDMi44ODIyMSAxLjMxMDk4IDIuNzY5MjMgMS41ODA3MyAyLjc2OTIzIDEuODk1ODNWMi41ODMzM0gwLjY5MjMwOEMwLjQ5OTk5OSAyLjU4MzMzIDAuMzM2NTM5IDIuNjUwMTcgMC4yMDE5MjMgMi43ODM4NUMwLjA2NzMwNyAyLjkxNzU0IDAgMy4wNzk4NiAwIDMuMjcwODNWNC4xODc1QzAgNC41MjY0OCAwLjA5OTc1ODYgNC44Njc4NCAwLjI5OTI3OSA1LjIxMTU5QzAuNDk4Nzk5IDUuNTU1MzQgMC43NjgwMjcgNS44NjU2NyAxLjEwNjk3IDYuMTQyNThDMS40NDU5MiA2LjQxOTQ5IDEuODYxNzggNi42NTIyMyAyLjM1NDU3IDYuODQwODJDMi44NDczNiA3LjAyOTQxIDMuMzY1MzggNy4xMzU2MyAzLjkwODY1IDcuMTU5NTFDNC4xMTA1OCA3LjQxNzMyIDQuMzM4OTQgNy42NDQxIDQuNTkzNzUgNy44Mzk4NEM0Ljc3NjQ0IDguMDAyMTcgNC45MDI2NCA4LjE3NTI0IDQuOTcyMzYgOC4zNTkwNUM1LjA0MjA3IDguNTQyODYgNS4wNzY5MiA4Ljc1NjUxIDUuMDc2OTIgOUM1LjA3NjkyIDkuMjU3ODEgNS4wMDM2MSA5LjQ3NTA0IDQuODU2OTcgOS42NTE2OUM0LjcxMDM0IDkuODI4MzQgNC40NzU5NiA5LjkxNjY3IDQuMTUzODUgOS45MTY2N0MzLjc5MzI3IDkuOTE2NjcgMy40NzIzNiAxMC4wMjUzIDMuMTkxMTEgMTAuMjQyNUMyLjkwOTg1IDEwLjQ1OTcgMi43NjkyMyAxMC43MzMxIDIuNzY5MjMgMTEuMDYyNVYxMS41MjA4QzIuNzY5MjMgMTEuNTg3NyAyLjc5MDg3IDExLjY0MjYgMi44MzQxMyAxMS42ODU1QzIuODc3NCAxMS43Mjg1IDIuOTMyNjkgMTEuNzUgMyAxMS43NUg5QzkuMDY3MzEgMTEuNzUgOS4xMjI2IDExLjcyODUgOS4xNjU4NiAxMS42ODU1QzkuMjA5MTMgMTEuNjQyNiA5LjIzMDc3IDExLjU4NzcgOS4yMzA3NyAxMS41MjA4VjExLjA2MjVDOS4yMzA3NyAxMC43MzMxIDkuMDkwMTUgMTAuNDU5NyA4LjgwODg5IDEwLjI0MjVDOC41Mjc2NCAxMC4wMjUzIDguMjA2NzMgOS45MTY2NyA3Ljg0NjE1IDkuOTE2NjdDNy41MjQwNCA5LjkxNjY3IDcuMjg5NjYgOS44MjgzNCA3LjE0MzAzIDkuNjUxNjlDNi45OTYzOSA5LjQ3NTA0IDYuOTIzMDggOS4yNTc4MSA2LjkyMzA4IDlDNi45MjMwOCA4Ljc1NjUxIDYuOTU3OTMgOC41NDI4NiA3LjAyNzY0IDguMzU5MDVDNy4wOTczNiA4LjE3NTI0IDcuMjIzNTYgOC4wMDIxNyA3LjQwNjI1IDcuODM5ODRDNy42NjEwNiA3LjY0NDEgNy44ODk0MiA3LjQxNzMyIDguMDkxMzUgNy4xNTk1MUM4LjYzNDYyIDcuMTM1NjMgOS4xNTI2NCA3LjAyOTQxIDkuNjQ1NDMgNi44NDA4MkMxMC4xMzgyIDYuNjUyMjMgMTAuNTU0MSA2LjQxOTQ5IDEwLjg5MyA2LjE0MjU4QzExLjIzMiA1Ljg2NTY3IDExLjUwMTIgNS41NTUzNCAxMS43MDA3IDUuMjExNTlDMTEuOTAwMiA0Ljg2Nzg0IDEyIDQuNTI2NDggMTIgNC4xODc1Wk01LjA3MDMzIDUuMzg0OTFMNi4wMzgzIDQuODc1MDNMNy4wMDYyNyA1LjM4NDkxTDYuODIxNCA0LjMwNDk3TDcuNjA0NTEgMy41NDAxNkw2LjUyMjI4IDMuMzgyNkw2LjAzODMgMi40MDAwM0w1LjU1NDMxIDMuMzgyNkw0LjQ3MjA5IDMuNTQwMTZMNS4yNTUxOSA0LjMwNDk3TDUuMDcwMzMgNS4zODQ5MVoiIGZpbGw9IiNGMkM5NEMiLz4KPC9nPgo8L3N2Zz4K",X3=e=>e.split(/\s+/).map(t=>t[0]).join("").toUpperCase();const e4=A("div")({name:"Container",class:"c13i6lze",propsAsIs:!1}),t4=A("div")({name:"Indicator",class:"ix2bv9",propsAsIs:!1}),Dn=({indicator:e,title:t})=>T.jsxs(e4,{children:[T.jsx(t4,{children:e}),T.jsx("p",{children:t})]});const n4=A("div")({name:"Container",class:"c5ghaaw",propsAsIs:!1}),r4=A("div")({name:"Title",class:"txfzjhj",propsAsIs:!1}),a4=A("div")({name:"Indicator",class:"i1v0wmto",propsAsIs:!1}),bo=({indicator:e,title:t})=>T.jsxs(n4,{children:[T.jsx(r4,{children:t}),T.jsx(a4,{children:e})]});const i4=A("div")({name:"Container",class:"canai20",propsAsIs:!1}),s4=A("div")({name:"TopInfo",class:"tda0d57",propsAsIs:!1}),o4=A("div")({name:"BottomInfo",class:"boqy4xv",propsAsIs:!1}),l4=A("div")({name:"User",class:"u1dtpq3t",propsAsIs:!1}),u4=A("img")({name:"Avatar",class:"ar4jfc",propsAsIs:!1}),c4=A("div")({name:"UserInfo",class:"u1trcvj0",propsAsIs:!1}),d4=A("div")({name:"UserName",class:"u1pie8mc",propsAsIs:!1}),m4=A("div")({name:"UserRating",class:"ucsljfb",propsAsIs:!1}),f4=A("img")({name:"TrophyIcon",class:"tyemu1i",propsAsIs:!1}),p4=A("div")({name:"Rts",class:"rggn4k7",propsAsIs:!1}),y4=A("div")({name:"RtsIndicator",class:"rnmjsbm",propsAsIs:!1}),g4=A("div")({name:"Top",class:"t1i7e651",propsAsIs:!1}),h4=A("div")({name:"Ranks",class:"r1mt107z",propsAsIs:!1}),T4=A("div")({name:"AvatarPlaceholder",class:"apag0gc",propsAsIs:!1}),k4=A("button")({name:"UserAccountBtn",class:"uroanb5",propsAsIs:!1}),N4=({avatar:e,name:t,points:n,grade:r,friendsRank:a,globalRank:i,winStreak:s,correct:o,incorrect:u,successRate:m})=>T.jsxs(i4,{children:[T.jsxs(s4,{children:[T.jsxs(l4,{children:[T.jsxs(k4,{children:[e&&T.jsx(u4,{alt:"avatar",src:e}),!e&&T.jsx(T4,{children:X3(t)})]}),T.jsxs(c4,{children:[T.jsx(d4,{children:t}),T.jsxs(m4,{children:[T.jsx(f4,{alt:"rank-icon",src:J3}),T.jsxs(p4,{children:[T.jsx(y4,{children:n||"-"}),"RTS"]}),T.jsxs(g4,{children:["TOP ",r,"%"]})]})]})]}),T.jsxs(h4,{children:[T.jsx(bo,{title:"Friens rank",indicator:a||"-"}),T.jsx(bo,{title:"Global rank",indicator:i||"-"})]})]}),T.jsxs(o4,{children:[T.jsx(Dn,{indicator:s||"-",title:"Win streak"}),T.jsx(Dn,{indicator:o||"-",title:"Correct"}),T.jsx(Dn,{indicator:u||"-",title:"Incorrect"}),T.jsx(Dn,{indicator:`${m||"-"}%`,title:"Success rate"})]})]}),za="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiMwMEJENjAiLz4KPC9nPgo8L3N2Zz4K",b4="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC4wMDE5NTMxMiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMTIiIGZpbGw9IiNGODAwMjIiLz4KPHJlY3QgeD0iOC4yNSIgeT0iNy4wMDE5NSIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcuMDAxOTUpIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNS43NTIiIHdpZHRoPSIxMi4zNzQ0IiBoZWlnaHQ9IjEuNzY3NzciIHJ4PSIwLjg4Mzg4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDcgMTUuNzUyKSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",Mo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K";const gc=A("div")({name:"Container",class:"c4emhbe",propsAsIs:!1}),M4=()=>gc,S4=A(M4())({name:"AnsweredContainer",class:"a1a18ay2",propsAsIs:!0}),So=A("div")({name:"ButtonPct",class:"bvdmnzn",propsAsIs:!1}),Io=A("button")({name:"Button",class:"bz55cek",propsAsIs:!1}),vo=A("img")({name:"Icon",class:"i1u5zlvm",propsAsIs:!1}),$o=A("span")({name:"Title",class:"tfilm7j",propsAsIs:!1}),Ao=A("span")({name:"Indicators",class:"iqdzfbw",propsAsIs:!1}),Eo=A("div")({name:"CheckIconWrap",class:"ciu4mnt",propsAsIs:!1}),Oo=A("div")({name:"Percentage",class:"pl06bzo",propsAsIs:!1}),Do=A("img")({name:"CheckIcon",class:"c5bwq34",propsAsIs:!1}),I4=({icon:e,id:t,title:n,questionId:r,disabled:a,percentage:i,onVote:s,toggleIsLoadingSubmitAnswer:o,correct:u,questionAnswered:m,hasCorrectAnswer:p,answered:g})=>m&&g?T.jsxs(S4,{"data-answeredCorrect":(!p||u).toString(),"data-questionAnswered":"false",children:[T.jsx(So,{style:{width:`${i}%`}}),T.jsxs(Io,{disabled:a,onClick:()=>s(r,t),children:[e&&T.jsx(vo,{alt:"option-icon",src:e}),T.jsx($o,{children:n}),T.jsxs(Ao,{children:[p&&u&&T.jsx(Eo,{children:T.jsx(Do,{alt:"icon-correct",src:g?Mo:za})}),T.jsxs(Oo,{children:[i,"%"]})]})]})]}):T.jsxs(gc,{"data-questionAnswered":m.toString(),children:[m&&T.jsx(So,{style:{width:`${i}%`}}),T.jsxs(Io,{disabled:a,onClick:()=>{o(!0),s(r,t)},children:[e&&T.jsx(vo,{alt:"option-icon",src:e}),T.jsx($o,{children:n}),m&&T.jsxs(Ao,{children:[p&&u&&T.jsx(Eo,{children:T.jsx(Do,{alt:"icon-correct",src:g?Mo:za})}),T.jsxs(Oo,{children:[i,"%"]})]})]})]});const v4=A("div")({name:"Container",class:"cgz6mxc",propsAsIs:!1}),$4=A("div")({name:"Title",class:"ta6van7",propsAsIs:!1}),A4=A("div")({name:"Options",class:"o1msgqq4",propsAsIs:!1}),E4=A("div")({name:"Loader",class:"lq1mbhd",propsAsIs:!1}),O4=A("div")({name:"Feedback",class:"f9kw2xt",propsAsIs:!1}),D4=A("img")({name:"FeedbackIcon",class:"fn7neu6",propsAsIs:!1}),w4=A("div")({name:"FeedbackTitle",class:"fpdq7m5",propsAsIs:!1}),_4=A("div")({name:"FeedbackDescription",class:"f1ljy63t",propsAsIs:!1}),C4=({title:e,questionId:t,options:n,questionAnswered:r,feedbackMessages:a,questionAnsweredCorrectly:i,questionType:s})=>{const[o,u]=x.useState(!1),m=x.useCallback(p=>{u(p)},[u]);return x.useEffect(()=>{m(!1)},[n,m]),T.jsxs(v4,{children:[T.jsx($4,{children:e}),T.jsxs(A4,{children:[o&&T.jsx(E4,{children:"Loading..."}),n.map(p=>T.jsx(I4,{toggleIsLoadingSubmitAnswer:m,questionId:t,...p},p.id))]}),r&&s===xe.TRIVIA&&T.jsxs(O4,{children:[T.jsx(D4,{alt:"reaction-to-answer",src:i?za:b4}),T.jsxs("div",{children:[T.jsx(w4,{children:i?a.correctFeedback.title:a.incorrectFeedback.title}),T.jsx(_4,{children:i?a.correctFeedback.description:a.incorrectFeedback.description})]})]})]})};class x4{}window.storeLogger=Object.create(null);class Nr{constructor(t,n){$(this,"store");$(this,"name");this.store=t,this.name=n}getStore(){return this.store}}const j4=e=>{const t=Object.keys(e);return Oe.computed(t.map(n=>e[n].getStore()),(...n)=>Object.fromEntries(t.map((r,a)=>[r,n[a]])))};class mn extends Nr{constructor(){super(...arguments);$(this,"getValues",()=>this.getStore().get());$(this,"getValue",n=>this.getStore().get()[n]);$(this,"setValue",(n,r)=>this.getStore().setKey(n,r));$(this,"subscribe",(...n)=>this.getStore().subscribe(...n));$(this,"unsubscribe",()=>this.getStore().off())}}const fn=e=>Oe.map(e);var xt=(e=>(e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM",e))(xt||{});const R4={[ut.BETTING]:"betting",[ut.GAMES]:"games",[ut.PUBLIC_CHAT]:"publicChat",[ut.TWITTER]:"twitter"};var Nt=(e=>(e.Ready="ready",e.Suspended="suspended",e))(Nt||{});class hc{constructor({settings:t,...n},r){$(this,"status");$(this,"source");$(this,"config");$(this,"settings");$(this,"listeners",new Set);$(this,"settingsKey");$(this,"enable",()=>{this.status.set("ready")});$(this,"disable",()=>{this.status.set("suspended")});$(this,"setFeatureConfig",({settings:t,...n})=>{let r;for(r in n)this.config.setValue(r,n[r]);if((t==null?void 0:t.overlaySettings.case)===this.settingsKey){const a=t.overlaySettings.value;if(a!==void 0){let i;for(i in a)console.log(i,a[i]),a[i]!==0&&a[i]!==""&&this.settings.setValue(i,a[i])}}});$(this,"update",(t,n)=>{this.source==="STREAM"&&n==="ORGANIZATION"||(this.setFeatureConfig(t),this.source=n)});this.settingsKey=R4[n.type],this.status=Oe.atom("suspended"),this.config=new mn(fn(n),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(t==null?void 0:t.overlaySettings.case)===this.settingsKey?this.settings=new mn(fn(t.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new mn(fn({}),`feature:settings:${this.settingsKey}`),this.source=r}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(t){this.listeners.add(t)}fireEvent(t){for(const n of this.listeners.values())try{n.onEvent(t)}catch(r){console.error(r)}}}class _e extends Nr{constructor(){super(...arguments);$(this,"getValue",()=>this.getStore().get());$(this,"setValue",n=>this.getStore().set(n));$(this,"subscribe",n=>this.getStore().subscribe(n));$(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(n){return this.getStore().listen(n)}get(){return this.getStore().get()}}const Ce=e=>Oe.atom(e),L4=(e,t)=>Oe.computed(e,t);class Ge extends Nr{constructor(n,r,a){super(n,`api:${r}`);$(this,"atomStore");$(this,"getAtomStore",()=>this.atomStore);$(this,"getValue",async()=>{const n=this.getStore();if(n.value===void 0)throw new Error("no store");return await n.value.promise,n.get().data});$(this,"getValues",()=>{throw new Error("not implemented")});$(this,"setValue",n=>this.getStore().set({loading:!1,data:n==null?void 0:n.data}));$(this,"subscribe",n=>this.getStore().subscribe(n));$(this,"unsubscribe",()=>{throw new Error("not implemented")});$(this,"invalidate",()=>{this.store.invalidate()});$(this,"listen",n=>this.getStore().listen(n));$(this,"key",()=>this.getStore().key);$(this,"off",()=>this.getStore().off());this.atomStore=Oe.atom(),a&&n.subscribe(i=>{this.atomStore.set(a(i))})}get(){throw new Error("not implemented")}}function ge(e){return typeof e=="function"}function P4(e){return ge(e==null?void 0:e.lift)}function Xt(e){return function(t){if(P4(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ba=function(e,t){return Ba=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Ba(e,t)};function yt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ba(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function U4(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function o(p){try{m(r.next(p))}catch(g){s(g)}}function u(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?i(p.value):a(p.value).then(o,u)}m((r=r.apply(e,t||[])).next())})}function Tc(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(m){return function(p){return u([m,p])}}function u(m){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,m[0]&&(n=0)),n;)try{if(r=1,a&&(i=m[0]&2?a.return:m[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,m[1])).done)return i;switch(a=0,i&&(m=[m[0]&2,i.value]),m[0]){case 0:case 1:i=m;break;case 4:return n.label++,{value:m[1],done:!1};case 5:n.label++,a=m[1],m=[0];continue;case 7:m=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(m[0]===6||m[0]===2)){n=0;continue}if(m[0]===3&&(!i||m[1]>i[0]&&m[1]<i[3])){n.label=m[1];break}if(m[0]===6&&n.label<i[1]){n.label=i[1],i=m;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(m);break}i[2]&&n.ops.pop(),n.trys.pop();continue}m=t.call(e,n)}catch(p){m=[6,p],a=0}finally{r=i=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Yt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Wt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function zt(e){return this instanceof zt?(this.v=e,this):new zt(e)}function F4(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof zt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}}function z4(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Yt=="function"?Yt(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}}var kc=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nc(e){return ge(e==null?void 0:e.then)}function bc(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Gr=bc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
36
+ */(function(e){const t=pr,n=di,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const a=2147483647;e.kMaxLength=a,o.TYPED_ARRAY_SUPPORT=i(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const f=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(f,l),f.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function s(f){if(f>a)throw new RangeError('The value "'+f+'" is invalid for option "size"');const l=new Uint8Array(f);return Object.setPrototypeOf(l,o.prototype),l}function o(f,l,d){if(typeof f=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return g(f)}return u(f,l,d)}o.poolSize=8192;function u(f,l,d){if(typeof f=="string")return y(f,l);if(ArrayBuffer.isView(f))return M(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(We(f,ArrayBuffer)||f&&We(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(We(f,SharedArrayBuffer)||f&&We(f.buffer,SharedArrayBuffer)))return S(f,l,d);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const h=f.valueOf&&f.valueOf();if(h!=null&&h!==f)return o.from(h,l,d);const N=_(f);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return o.from(f[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}o.from=function(f,l,d){return u(f,l,d)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function m(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function p(f,l,d){return m(f),f<=0?s(f):l!==void 0?typeof d=="string"?s(f).fill(l,d):s(f).fill(l):s(f)}o.alloc=function(f,l,d){return p(f,l,d)};function g(f){return m(f),s(f<0?0:v(f)|0)}o.allocUnsafe=function(f){return g(f)},o.allocUnsafeSlow=function(f){return g(f)};function y(f,l){if((typeof l!="string"||l==="")&&(l="utf8"),!o.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=L(f,l)|0;let h=s(d);const N=h.write(f,l);return N!==d&&(h=h.slice(0,N)),h}function k(f){const l=f.length<0?0:v(f.length)|0,d=s(l);for(let h=0;h<l;h+=1)d[h]=f[h]&255;return d}function M(f){if(We(f,Uint8Array)){const l=new Uint8Array(f);return S(l.buffer,l.byteOffset,l.byteLength)}return k(f)}function S(f,l,d){if(l<0||f.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');let h;return l===void 0&&d===void 0?h=new Uint8Array(f):d===void 0?h=new Uint8Array(f,l):h=new Uint8Array(f,l,d),Object.setPrototypeOf(h,o.prototype),h}function _(f){if(o.isBuffer(f)){const l=v(f.length)|0,d=s(l);return d.length===0||f.copy(d,0,0,l),d}if(f.length!==void 0)return typeof f.length!="number"||Dr(f.length)?s(0):k(f);if(f.type==="Buffer"&&Array.isArray(f.data))return k(f.data)}function v(f){if(f>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return f|0}function O(f){return+f!=f&&(f=0),o.alloc(+f)}o.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==o.prototype},o.compare=function(l,d){if(We(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),We(d,Uint8Array)&&(d=o.from(d,d.offset,d.byteLength)),!o.isBuffer(l)||!o.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let h=l.length,N=d.length;for(let I=0,E=Math.min(h,N);I<E;++I)if(l[I]!==d[I]){h=l[I],N=d[I];break}return h<N?-1:N<h?1:0},o.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return o.alloc(0);let h;if(d===void 0)for(d=0,h=0;h<l.length;++h)d+=l[h].length;const N=o.allocUnsafe(d);let I=0;for(h=0;h<l.length;++h){let E=l[h];if(We(E,Uint8Array))I+E.length>N.length?(o.isBuffer(E)||(E=o.from(E)),E.copy(N,I)):Uint8Array.prototype.set.call(N,E,I);else if(o.isBuffer(E))E.copy(N,I);else throw new TypeError('"list" argument must be an Array of Buffers');I+=E.length}return N};function L(f,l){if(o.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||We(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const d=f.length,h=arguments.length>2&&arguments[2]===!0;if(!h&&d===0)return 0;let N=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return rn(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return An(f).length;default:if(N)return h?-1:rn(f).length;l=(""+l).toLowerCase(),N=!0}}o.byteLength=L;function P(f,l,d){let h=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(f||(f="utf8");;)switch(f){case"hex":return Se(this,l,d);case"utf8":case"utf-8":return q(this,l,d);case"ascii":return we(this,l,d);case"latin1":case"binary":return _e(this,l,d);case"base64":return oe(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ve(this,l,d);default:if(h)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),h=!0}}o.prototype._isBuffer=!0;function F(f,l,d){const h=f[l];f[l]=f[d],f[d]=h}o.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<l;d+=2)F(this,d,d+1);return this},o.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<l;d+=4)F(this,d,d+3),F(this,d+1,d+2);return this},o.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<l;d+=8)F(this,d,d+7),F(this,d+1,d+6),F(this,d+2,d+5),F(this,d+3,d+4);return this},o.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?q(this,0,l):P.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(l){if(!o.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:o.compare(this,l)===0},o.prototype.inspect=function(){let l="";const d=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},r&&(o.prototype[r]=o.prototype.inspect),o.prototype.compare=function(l,d,h,N,I){if(We(l,Uint8Array)&&(l=o.from(l,l.offset,l.byteLength)),!o.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),h===void 0&&(h=l?l.length:0),N===void 0&&(N=0),I===void 0&&(I=this.length),d<0||h>l.length||N<0||I>this.length)throw new RangeError("out of range index");if(N>=I&&d>=h)return 0;if(N>=I)return-1;if(d>=h)return 1;if(d>>>=0,h>>>=0,N>>>=0,I>>>=0,this===l)return 0;let E=I-N,W=h-d;const de=Math.min(E,W),ue=this.slice(N,I),me=l.slice(d,h);for(let se=0;se<de;++se)if(ue[se]!==me[se]){E=ue[se],W=me[se];break}return E<W?-1:W<E?1:0};function z(f,l,d,h,N){if(f.length===0)return-1;if(typeof d=="string"?(h=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,Dr(d)&&(d=N?0:f.length-1),d<0&&(d=f.length+d),d>=f.length){if(N)return-1;d=f.length-1}else if(d<0)if(N)d=0;else return-1;if(typeof l=="string"&&(l=o.from(l,h)),o.isBuffer(l))return l.length===0?-1:U(f,l,d,h,N);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(f,l,d):Uint8Array.prototype.lastIndexOf.call(f,l,d):U(f,[l],d,h,N);throw new TypeError("val must be string, number or Buffer")}function U(f,l,d,h,N){let I=1,E=f.length,W=l.length;if(h!==void 0&&(h=String(h).toLowerCase(),h==="ucs2"||h==="ucs-2"||h==="utf16le"||h==="utf-16le")){if(f.length<2||l.length<2)return-1;I=2,E/=2,W/=2,d/=2}function de(me,se){return I===1?me[se]:me.readUInt16BE(se*I)}let ue;if(N){let me=-1;for(ue=d;ue<E;ue++)if(de(f,ue)===de(l,me===-1?0:ue-me)){if(me===-1&&(me=ue),ue-me+1===W)return me*I}else me!==-1&&(ue-=ue-me),me=-1}else for(d+W>E&&(d=E-W),ue=d;ue>=0;ue--){let me=!0;for(let se=0;se<W;se++)if(de(f,ue+se)!==de(l,se)){me=!1;break}if(me)return ue}return-1}o.prototype.includes=function(l,d,h){return this.indexOf(l,d,h)!==-1},o.prototype.indexOf=function(l,d,h){return z(this,l,d,h,!0)},o.prototype.lastIndexOf=function(l,d,h){return z(this,l,d,h,!1)};function V(f,l,d,h){d=Number(d)||0;const N=f.length-d;h?(h=Number(h),h>N&&(h=N)):h=N;const I=l.length;h>I/2&&(h=I/2);let E;for(E=0;E<h;++E){const W=parseInt(l.substr(E*2,2),16);if(Dr(W))return E;f[d+E]=W}return E}function H(f,l,d,h){return an(rn(l,f.length-d),f,d,h)}function J(f,l,d,h){return an(Or(l),f,d,h)}function ae(f,l,d,h){return an(An(l),f,d,h)}function ce(f,l,d,h){return an(C(l,f.length-d),f,d,h)}o.prototype.write=function(l,d,h,N){if(d===void 0)N="utf8",h=this.length,d=0;else if(h===void 0&&typeof d=="string")N=d,h=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(h)?(h=h>>>0,N===void 0&&(N="utf8")):(N=h,h=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const I=this.length-d;if((h===void 0||h>I)&&(h=I),l.length>0&&(h<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let E=!1;for(;;)switch(N){case"hex":return V(this,l,d,h);case"utf8":case"utf-8":return H(this,l,d,h);case"ascii":case"latin1":case"binary":return J(this,l,d,h);case"base64":return ae(this,l,d,h);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,l,d,h);default:if(E)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),E=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function oe(f,l,d){return l===0&&d===f.length?t.fromByteArray(f):t.fromByteArray(f.slice(l,d))}function q(f,l,d){d=Math.min(f.length,d);const h=[];let N=l;for(;N<d;){const I=f[N];let E=null,W=I>239?4:I>223?3:I>191?2:1;if(N+W<=d){let de,ue,me,se;switch(W){case 1:I<128&&(E=I);break;case 2:de=f[N+1],(de&192)===128&&(se=(I&31)<<6|de&63,se>127&&(E=se));break;case 3:de=f[N+1],ue=f[N+2],(de&192)===128&&(ue&192)===128&&(se=(I&15)<<12|(de&63)<<6|ue&63,se>2047&&(se<55296||se>57343)&&(E=se));break;case 4:de=f[N+1],ue=f[N+2],me=f[N+3],(de&192)===128&&(ue&192)===128&&(me&192)===128&&(se=(I&15)<<18|(de&63)<<12|(ue&63)<<6|me&63,se>65535&&se<1114112&&(E=se))}}E===null?(E=65533,W=1):E>65535&&(E-=65536,h.push(E>>>10&1023|55296),E=56320|E&1023),h.push(E),N+=W}return Me(h)}const le=4096;function Me(f){const l=f.length;if(l<=le)return String.fromCharCode.apply(String,f);let d="",h=0;for(;h<l;)d+=String.fromCharCode.apply(String,f.slice(h,h+=le));return d}function we(f,l,d){let h="";d=Math.min(f.length,d);for(let N=l;N<d;++N)h+=String.fromCharCode(f[N]&127);return h}function _e(f,l,d){let h="";d=Math.min(f.length,d);for(let N=l;N<d;++N)h+=String.fromCharCode(f[N]);return h}function Se(f,l,d){const h=f.length;(!l||l<0)&&(l=0),(!d||d<0||d>h)&&(d=h);let N="";for(let I=l;I<d;++I)N+=Rd[f[I]];return N}function ve(f,l,d){const h=f.slice(l,d);let N="";for(let I=0;I<h.length-1;I+=2)N+=String.fromCharCode(h[I]+h[I+1]*256);return N}o.prototype.slice=function(l,d){const h=this.length;l=~~l,d=d===void 0?h:~~d,l<0?(l+=h,l<0&&(l=0)):l>h&&(l=h),d<0?(d+=h,d<0&&(d=0)):d>h&&(d=h),d<l&&(d=l);const N=this.subarray(l,d);return Object.setPrototypeOf(N,o.prototype),N};function ee(f,l,d){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+l>d)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l],I=1,E=0;for(;++E<d&&(I*=256);)N+=this[l+E]*I;return N},o.prototype.readUintBE=o.prototype.readUIntBE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l+--d],I=1;for(;d>0&&(I*=256);)N+=this[l+--d]*I;return N},o.prototype.readUint8=o.prototype.readUInt8=function(l,d){return l=l>>>0,d||ee(l,1,this.length),this[l]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||ee(l,2,this.length),this[l]|this[l+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||ee(l,2,this.length),this[l]<<8|this[l+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},o.prototype.readBigUInt64LE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,I=this[++l]+this[++l]*2**8+this[++l]*2**16+h*2**24;return BigInt(N)+(BigInt(I)<<BigInt(32))}),o.prototype.readBigUInt64BE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=d*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],I=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+h;return(BigInt(N)<<BigInt(32))+BigInt(I)}),o.prototype.readIntLE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=this[l],I=1,E=0;for(;++E<d&&(I*=256);)N+=this[l+E]*I;return I*=128,N>=I&&(N-=Math.pow(2,8*d)),N},o.prototype.readIntBE=function(l,d,h){l=l>>>0,d=d>>>0,h||ee(l,d,this.length);let N=d,I=1,E=this[l+--N];for(;N>0&&(I*=256);)E+=this[l+--N]*I;return I*=128,E>=I&&(E-=Math.pow(2,8*d)),E},o.prototype.readInt8=function(l,d){return l=l>>>0,d||ee(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},o.prototype.readInt16LE=function(l,d){l=l>>>0,d||ee(l,2,this.length);const h=this[l]|this[l+1]<<8;return h&32768?h|4294901760:h},o.prototype.readInt16BE=function(l,d){l=l>>>0,d||ee(l,2,this.length);const h=this[l+1]|this[l]<<8;return h&32768?h|4294901760:h},o.prototype.readInt32LE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},o.prototype.readInt32BE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},o.prototype.readBigInt64LE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(h<<24);return(BigInt(N)<<BigInt(32))+BigInt(d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),o.prototype.readBigInt64BE=ot(function(l){l=l>>>0,Ue(l,"offset");const d=this[l],h=this[l+7];(d===void 0||h===void 0)&&Re(l,this.length-8);const N=(d<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(N)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+h)}),o.prototype.readFloatLE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),n.read(this,l,!0,23,4)},o.prototype.readFloatBE=function(l,d){return l=l>>>0,d||ee(l,4,this.length),n.read(this,l,!1,23,4)},o.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||ee(l,8,this.length),n.read(this,l,!0,52,8)},o.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||ee(l,8,this.length),n.read(this,l,!1,52,8)};function b(f,l,d,h,N,I){if(!o.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>N||l<I)throw new RangeError('"value" argument is out of bounds');if(d+h>f.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(l,d,h,N){if(l=+l,d=d>>>0,h=h>>>0,!N){const W=Math.pow(2,8*h)-1;b(this,l,d,h,W,0)}let I=1,E=0;for(this[d]=l&255;++E<h&&(I*=256);)this[d+E]=l/I&255;return d+h},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(l,d,h,N){if(l=+l,d=d>>>0,h=h>>>0,!N){const W=Math.pow(2,8*h)-1;b(this,l,d,h,W,0)}let I=h-1,E=1;for(this[d+I]=l&255;--I>=0&&(E*=256);)this[d+I]=l/E&255;return d+h},o.prototype.writeUint8=o.prototype.writeUInt8=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,1,255,0),this[d]=l&255,d+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function D(f,l,d,h,N){Ve(l,h,N,f,d,7);let I=Number(l&BigInt(4294967295));f[d++]=I,I=I>>8,f[d++]=I,I=I>>8,f[d++]=I,I=I>>8,f[d++]=I;let E=Number(l>>BigInt(32)&BigInt(4294967295));return f[d++]=E,E=E>>8,f[d++]=E,E=E>>8,f[d++]=E,E=E>>8,f[d++]=E,d}function j(f,l,d,h,N){Ve(l,h,N,f,d,7);let I=Number(l&BigInt(4294967295));f[d+7]=I,I=I>>8,f[d+6]=I,I=I>>8,f[d+5]=I,I=I>>8,f[d+4]=I;let E=Number(l>>BigInt(32)&BigInt(4294967295));return f[d+3]=E,E=E>>8,f[d+2]=E,E=E>>8,f[d+1]=E,E=E>>8,f[d]=E,d+8}o.prototype.writeBigUInt64LE=ot(function(l,d=0){return D(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=ot(function(l,d=0){return j(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(l,d,h,N){if(l=+l,d=d>>>0,!N){const de=Math.pow(2,8*h-1);b(this,l,d,h,de-1,-de)}let I=0,E=1,W=0;for(this[d]=l&255;++I<h&&(E*=256);)l<0&&W===0&&this[d+I-1]!==0&&(W=1),this[d+I]=(l/E>>0)-W&255;return d+h},o.prototype.writeIntBE=function(l,d,h,N){if(l=+l,d=d>>>0,!N){const de=Math.pow(2,8*h-1);b(this,l,d,h,de-1,-de)}let I=h-1,E=1,W=0;for(this[d+I]=l&255;--I>=0&&(E*=256);)l<0&&W===0&&this[d+I+1]!==0&&(W=1),this[d+I]=(l/E>>0)-W&255;return d+h},o.prototype.writeInt8=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},o.prototype.writeInt16LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},o.prototype.writeInt16BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},o.prototype.writeInt32LE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},o.prototype.writeInt32BE=function(l,d,h){return l=+l,d=d>>>0,h||b(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},o.prototype.writeBigInt64LE=ot(function(l,d=0){return D(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=ot(function(l,d=0){return j(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function G(f,l,d,h,N,I){if(d+h>f.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function X(f,l,d,h,N){return l=+l,d=d>>>0,N||G(f,l,d,4),n.write(f,l,d,h,23,4),d+4}o.prototype.writeFloatLE=function(l,d,h){return X(this,l,d,!0,h)},o.prototype.writeFloatBE=function(l,d,h){return X(this,l,d,!1,h)};function te(f,l,d,h,N){return l=+l,d=d>>>0,N||G(f,l,d,8),n.write(f,l,d,h,52,8),d+8}o.prototype.writeDoubleLE=function(l,d,h){return te(this,l,d,!0,h)},o.prototype.writeDoubleBE=function(l,d,h){return te(this,l,d,!1,h)},o.prototype.copy=function(l,d,h,N){if(!o.isBuffer(l))throw new TypeError("argument should be a Buffer");if(h||(h=0),!N&&N!==0&&(N=this.length),d>=l.length&&(d=l.length),d||(d=0),N>0&&N<h&&(N=h),N===h||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(h<0||h>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),l.length-d<N-h&&(N=l.length-d+h);const I=N-h;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,h,N):Uint8Array.prototype.set.call(l,this.subarray(h,N),d),I},o.prototype.fill=function(l,d,h,N){if(typeof l=="string"){if(typeof d=="string"?(N=d,d=0,h=this.length):typeof h=="string"&&(N=h,h=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!o.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(l.length===1){const E=l.charCodeAt(0);(N==="utf8"&&E<128||N==="latin1")&&(l=E)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<h)throw new RangeError("Out of range index");if(h<=d)return this;d=d>>>0,h=h===void 0?this.length:h>>>0,l||(l=0);let I;if(typeof l=="number")for(I=d;I<h;++I)this[I]=l;else{const E=o.isBuffer(l)?l:o.from(l,N),W=E.length;if(W===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(I=0;I<h-d;++I)this[I+d]=E[I%W]}return this};const Y={};function Z(f,l,d){Y[f]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}Z("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Z("ERR_INVALID_ARG_TYPE",function(f,l){return`The "${f}" argument must be of type number. Received type ${typeof l}`},TypeError),Z("ERR_OUT_OF_RANGE",function(f,l,d){let h=`The value of "${f}" is out of range.`,N=d;return Number.isInteger(d)&&Math.abs(d)>2**32?N=ne(String(d)):typeof d=="bigint"&&(N=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(N=ne(N)),N+="n"),h+=` It must be ${l}. Received ${N}`,h},RangeError);function ne(f){let l="",d=f.length;const h=f[0]==="-"?1:0;for(;d>=h+4;d-=3)l=`_${f.slice(d-3,d)}${l}`;return`${f.slice(0,d)}${l}`}function Ie(f,l,d){Ue(l,"offset"),(f[l]===void 0||f[l+d]===void 0)&&Re(l,f.length-(d+1))}function Ve(f,l,d,h,N,I){if(f>d||f<l){const E=typeof l=="bigint"?"n":"";let W;throw I>3?l===0||l===BigInt(0)?W=`>= 0${E} and < 2${E} ** ${(I+1)*8}${E}`:W=`>= -(2${E} ** ${(I+1)*8-1}${E}) and < 2 ** ${(I+1)*8-1}${E}`:W=`>= ${l}${E} and <= ${d}${E}`,new Y.ERR_OUT_OF_RANGE("value",W,f)}Ie(h,N,I)}function Ue(f,l){if(typeof f!="number")throw new Y.ERR_INVALID_ARG_TYPE(l,"number",f)}function Re(f,l,d){throw Math.floor(f)!==f?(Ue(f,d),new Y.ERR_OUT_OF_RANGE(d||"offset","an integer",f)):l<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE(d||"offset",`>= ${d?1:0} and <= ${l}`,f)}const At=/[^+/0-9A-Za-z-_]/g;function $n(f){if(f=f.split("=")[0],f=f.trim().replace(At,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function rn(f,l){l=l||1/0;let d;const h=f.length;let N=null;const I=[];for(let E=0;E<h;++E){if(d=f.charCodeAt(E),d>55295&&d<57344){if(!N){if(d>56319){(l-=3)>-1&&I.push(239,191,189);continue}else if(E+1===h){(l-=3)>-1&&I.push(239,191,189);continue}N=d;continue}if(d<56320){(l-=3)>-1&&I.push(239,191,189),N=d;continue}d=(N-55296<<10|d-56320)+65536}else N&&(l-=3)>-1&&I.push(239,191,189);if(N=null,d<128){if((l-=1)<0)break;I.push(d)}else if(d<2048){if((l-=2)<0)break;I.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;I.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;I.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return I}function Or(f){const l=[];for(let d=0;d<f.length;++d)l.push(f.charCodeAt(d)&255);return l}function C(f,l){let d,h,N;const I=[];for(let E=0;E<f.length&&!((l-=2)<0);++E)d=f.charCodeAt(E),h=d>>8,N=d%256,I.push(N),I.push(h);return I}function An(f){return t.toByteArray($n(f))}function an(f,l,d,h){let N;for(N=0;N<h&&!(N+d>=l.length||N>=f.length);++N)l[N+d]=f[N];return N}function We(f,l){return f instanceof l||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===l.name}function Dr(f){return f!==f}const Rd=function(){const f="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const h=d*16;for(let N=0;N<16;++N)l[h+N]=f[d]+f[N]}return l}();function ot(f){return typeof BigInt>"u"?Ld:f}function Ld(){throw new Error("BigInt not supported")}})(Pu);var Fu={exports:{}},pe=Fu.exports={},He,qe;function La(){throw new Error("setTimeout has not been defined")}function Pa(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?He=setTimeout:He=La}catch{He=La}try{typeof clearTimeout=="function"?qe=clearTimeout:qe=Pa}catch{qe=Pa}})();function zu(e){if(He===setTimeout)return setTimeout(e,0);if((He===La||!He)&&setTimeout)return He=setTimeout,setTimeout(e,0);try{return He(e,0)}catch{try{return He.call(null,e,0)}catch{return He.call(this,e,0)}}}function Ig(e){if(qe===clearTimeout)return clearTimeout(e);if((qe===Pa||!qe)&&clearTimeout)return qe=clearTimeout,clearTimeout(e);try{return qe(e)}catch{try{return qe.call(null,e)}catch{return qe.call(this,e)}}}var nt=[],Ft=!1,kt,Pn=-1;function vg(){!Ft||!kt||(Ft=!1,kt.length?nt=kt.concat(nt):Pn=-1,nt.length&&Bu())}function Bu(){if(!Ft){var e=zu(vg);Ft=!0;for(var t=nt.length;t;){for(kt=nt,nt=[];++Pn<t;)kt&&kt[Pn].run();Pn=-1,t=nt.length}kt=null,Ft=!1,Ig(e)}}pe.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];nt.push(new Gu(e,t)),nt.length===1&&!Ft&&zu(Bu)};function Gu(e,t){this.fun=e,this.array=t}Gu.prototype.run=function(){this.fun.apply(null,this.array)};pe.title="browser";pe.browser=!0;pe.env={};pe.argv=[];pe.version="";pe.versions={};function st(){}pe.on=st;pe.addListener=st;pe.once=st;pe.off=st;pe.removeListener=st;pe.removeAllListeners=st;pe.emit=st;pe.prependListener=st;pe.prependOnceListener=st;pe.listeners=function(e){return[]};pe.binding=function(e){throw new Error("process.binding is not supported")};pe.cwd=function(){return"/"};pe.chdir=function(e){throw new Error("process.chdir is not supported")};pe.umask=function(){return 0};var $g=Fu.exports;(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Pu,n=$g,r=s=>s&&s.__esModule?s:{default:s},a=r(n),i=globalThis||void 0||self;Object.defineProperty(e,"Buffer",{enumerable:!0,get:()=>t.Buffer}),Object.defineProperty(e,"process",{enumerable:!0,get:()=>a.default}),e.global=i})(Q);function Ag(){const e=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof e.getBigInt64=="function"&&typeof e.getBigUint64=="function"&&typeof e.setBigInt64=="function"&&typeof e.setBigUint64=="function"&&(typeof Q.process!="object"||typeof Q.process.env!="object"||!1)){const a=BigInt("-9223372036854775808"),i=BigInt("9223372036854775807"),s=BigInt("0"),o=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(u){const m=typeof u=="bigint"?u:BigInt(u);if(m>i||m<a)throw new Error(`int64 invalid: ${u}`);return m},uParse(u){const m=typeof u=="bigint"?u:BigInt(u);if(m>o||m<s)throw new Error(`uint64 invalid: ${u}`);return m},enc(u){return e.setBigInt64(0,this.parse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},uEnc(u){return e.setBigInt64(0,this.uParse(u),!0),{lo:e.getInt32(0,!0),hi:e.getInt32(4,!0)}},dec(u,m){return e.setInt32(0,u,!0),e.setInt32(4,m,!0),e.getBigInt64(0,!0)},uDec(u,m){return e.setInt32(0,u,!0),e.setInt32(4,m,!0),e.getBigUint64(0,!0)}}}const n=a=>Oe(/^-?[0-9]+$/.test(a),`int64 invalid: ${a}`),r=a=>Oe(/^[0-9]+$/.test(a),`uint64 invalid: ${a}`);return{zero:"0",supported:!1,parse(a){return typeof a!="string"&&(a=a.toString()),n(a),a},uParse(a){return typeof a!="string"&&(a=a.toString()),r(a),a},enc(a){return typeof a!="string"&&(a=a.toString()),n(a),Hs(a)},uEnc(a){return typeof a!="string"&&(a=a.toString()),r(a),Hs(a)},dec(a,i){return fg(a,i)},uDec(a,i){return Ru(a,i)}}}const Ne=Ag();var fe;(function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"})(fe||(fe={}));class Eg{constructor(t){this.stack=[],this.textEncoder=t??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let t=0;for(let a=0;a<this.chunks.length;a++)t+=this.chunks[a].length;let n=new Uint8Array(t),r=0;for(let a=0;a<this.chunks.length;a++)n.set(this.chunks[a],r),r+=this.chunks[a].length;return this.chunks=[],n}fork(){return this.stack.push({chunks:this.chunks,buf:this.buf}),this.chunks=[],this.buf=[],this}join(){let t=this.finish(),n=this.stack.pop();if(!n)throw new Error("invalid state, fork stack empty");return this.chunks=n.chunks,this.buf=n.buf,this.uint32(t.byteLength),this.raw(t)}tag(t,n){return this.uint32((t<<3|n)>>>0)}raw(t){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(t),this}uint32(t){for(Ra(t);t>127;)this.buf.push(t&127|128),t=t>>>7;return this.buf.push(t),this}int32(t){return Rn(t),Zs(t,this.buf),this}bool(t){return this.buf.push(t?1:0),this}bytes(t){return this.uint32(t.byteLength),this.raw(t)}string(t){let n=this.textEncoder.encode(t);return this.uint32(n.byteLength),this.raw(n)}float(t){wu(t);let n=new Uint8Array(4);return new DataView(n.buffer).setFloat32(0,t,!0),this.raw(n)}double(t){let n=new Uint8Array(8);return new DataView(n.buffer).setFloat64(0,t,!0),this.raw(n)}fixed32(t){Ra(t);let n=new Uint8Array(4);return new DataView(n.buffer).setUint32(0,t,!0),this.raw(n)}sfixed32(t){Rn(t);let n=new Uint8Array(4);return new DataView(n.buffer).setInt32(0,t,!0),this.raw(n)}sint32(t){return Rn(t),t=(t<<1^t>>31)>>>0,Zs(t,this.buf),this}sfixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),a=Ne.enc(t);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(n)}fixed64(t){let n=new Uint8Array(8),r=new DataView(n.buffer),a=Ne.uEnc(t);return r.setInt32(0,a.lo,!0),r.setInt32(4,a.hi,!0),this.raw(n)}int64(t){let n=Ne.enc(t);return Lr(n.lo,n.hi,this.buf),this}sint64(t){let n=Ne.enc(t),r=n.hi>>31,a=n.lo<<1^r,i=(n.hi<<1|n.lo>>>31)^r;return Lr(a,i,this.buf),this}uint64(t){let n=Ne.uEnc(t);return Lr(n.lo,n.hi,this.buf),this}}class Og{constructor(t,n){this.varint64=mg,this.uint32=yg,this.buf=t,this.len=t.length,this.pos=0,this.view=new DataView(t.buffer,t.byteOffset,t.byteLength),this.textDecoder=n??new TextDecoder}tag(){let t=this.uint32(),n=t>>>3,r=t&7;if(n<=0||r<0||r>5)throw new Error("illegal tag: field no "+n+" wire type "+r);return[n,r]}skip(t){let n=this.pos;switch(t){case fe.Varint:for(;this.buf[this.pos++]&128;);break;case fe.Bit64:this.pos+=4;case fe.Bit32:this.pos+=4;break;case fe.LengthDelimited:let r=this.uint32();this.pos+=r;break;case fe.StartGroup:let a;for(;(a=this.tag()[1])!==fe.EndGroup;)this.skip(a);break;default:throw new Error("cant skip wire type "+t)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let t=this.uint32();return t>>>1^-(t&1)}int64(){return Ne.dec(...this.varint64())}uint64(){return Ne.uDec(...this.varint64())}sint64(){let[t,n]=this.varint64(),r=-(t&1);return t=(t>>>1|(n&1)<<31)^r,n=n>>>1^r,Ne.dec(t,n)}bool(){let[t,n]=this.varint64();return t!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Ne.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Ne.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let t=this.uint32(),n=this.pos;return this.pos+=t,this.assertBounds(),this.buf.subarray(n,n+t)}string(){return this.textDecoder.decode(this.bytes())}}function Ua(e,t){return t instanceof Je||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}w.DOUBLE,w.FLOAT,w.INT64,w.UINT64,w.INT32,w.UINT32,w.BOOL,w.STRING,w.BYTES;function lt(e,t,n){if(t===n)return!0;if(e==w.BYTES){if(!(t instanceof Uint8Array)||!(n instanceof Uint8Array)||t.length!==n.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==n[r])return!1;return!0}switch(e){case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return t==n}return!1}function Fa(e,t){switch(e){case w.BOOL:return!1;case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return t==0?Ne.zero:"0";case w.DOUBLE:case w.FLOAT:return 0;case w.BYTES:return new Uint8Array(0);case w.STRING:return"";default:return 0}}function Qu(e,t){const n=t===void 0;let r=fe.Varint,a=t===0;switch(e){case w.STRING:a=n||!t.length,r=fe.LengthDelimited;break;case w.BOOL:a=t===!1;break;case w.DOUBLE:r=fe.Bit64;break;case w.FLOAT:r=fe.Bit32;break;case w.INT64:a=n||t==0;break;case w.UINT64:a=n||t==0;break;case w.FIXED64:a=n||t==0,r=fe.Bit64;break;case w.BYTES:a=n||!t.byteLength,r=fe.LengthDelimited;break;case w.FIXED32:r=fe.Bit32;break;case w.SFIXED32:r=fe.Bit32;break;case w.SFIXED64:a=n||t==0,r=fe.Bit64;break;case w.SINT64:a=n||t==0;break}const i=w[e].toLowerCase();return[r,i,n||a]}const Dt=Symbol("@bufbuild/protobuf/unknown-fields"),Ks={readUnknownFields:!0,readerFactory:e=>new Og(e)},Js={writeUnknownFields:!0,writerFactory:()=>new Eg};function Dg(e){return e?Object.assign(Object.assign({},Ks),e):Ks}function wg(e){return e?Object.assign(Object.assign({},Js),e):Js}function _g(){return{makeReadOptions:Dg,makeWriteOptions:wg,listUnknownFields(e){var t;return(t=e[Dt])!==null&&t!==void 0?t:[]},discardUnknownFields(e){delete e[Dt]},writeUnknownFields(e,t){const r=e[Dt];if(r)for(const a of r)t.tag(a.no,a.wireType).raw(a.data)},onUnknownField(e,t,n,r){const a=e;Array.isArray(a[Dt])||(a[Dt]=[]),a[Dt].push({no:t,wireType:n,data:r})},readMessage(e,t,n,r){const a=e.getType(),i=n===void 0?t.len:t.pos+n;for(;t.pos<i;){const[s,o]=t.tag(),u=a.fields.find(s);if(!u){const y=t.skip(o);r.readUnknownFields&&this.onUnknownField(e,s,o,y);continue}let m=e,p=u.repeated,g=u.localName;switch(u.oneof&&(m=m[u.oneof.localName],m.case!=g&&delete m.value,m.case=g,g="value"),u.kind){case"scalar":case"enum":const y=u.kind=="enum"?w.INT32:u.T;let k=Jn;if(u.kind=="scalar"&&u.L>0&&(k=xg),p){let v=m[g];if(o==fe.LengthDelimited&&y!=w.STRING&&y!=w.BYTES){let O=t.uint32()+t.pos;for(;t.pos<O;)v.push(k(t,y))}else v.push(k(t,y))}else m[g]=k(t,y);break;case"message":const M=u.T;p?m[g].push(Un(t,new M,r)):m[g]instanceof Je?Un(t,m[g],r):(m[g]=Un(t,new M,r),M.fieldWrapper&&!u.oneof&&!u.repeated&&(m[g]=M.fieldWrapper.unwrapField(m[g])));break;case"map":let[S,_]=Cg(u,t,r);m[g][S]=_;break}}}}}function Un(e,t,n){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),n),t}function Cg(e,t,n){const r=t.uint32(),a=t.pos+r;let i,s;for(;t.pos<a;){let[o]=t.tag();switch(o){case 1:i=Jn(t,e.K);break;case 2:switch(e.V.kind){case"scalar":s=Jn(t,e.V.T);break;case"enum":s=t.int32();break;case"message":s=Un(t,new e.V.T,n);break}break}}if(i===void 0){let o=Fa(e.K,It.BIGINT);i=e.K==w.BOOL?o.toString():o}if(typeof i!="string"&&typeof i!="number"&&(i=i.toString()),s===void 0)switch(e.V.kind){case"scalar":s=Fa(e.V.T,It.BIGINT);break;case"enum":s=0;break;case"message":s=new e.V.T;break}return[i,s]}function xg(e,t){const n=Jn(e,t);return typeof n=="bigint"?n.toString():n}function Jn(e,t){switch(t){case w.STRING:return e.string();case w.BOOL:return e.bool();case w.DOUBLE:return e.double();case w.FLOAT:return e.float();case w.INT32:return e.int32();case w.INT64:return e.int64();case w.UINT64:return e.uint64();case w.FIXED64:return e.fixed64();case w.BYTES:return e.bytes();case w.FIXED32:return e.fixed32();case w.SFIXED32:return e.sfixed32();case w.SFIXED64:return e.sfixed64();case w.SINT64:return e.sint64();case w.UINT32:return e.uint32();case w.SINT32:return e.sint32()}}function jg(e,t,n,r,a){e.tag(n.no,fe.LengthDelimited),e.fork();let i=r;switch(n.K){case w.INT32:case w.FIXED32:case w.UINT32:case w.SFIXED32:case w.SINT32:i=Number.parseInt(r);break;case w.BOOL:Oe(r=="true"||r=="false"),i=r=="true";break}switch(dn(e,n.K,1,i,!0),n.V.kind){case"scalar":dn(e,n.V.T,2,a,!0);break;case"enum":dn(e,w.INT32,2,a,!0);break;case"message":za(e,t,n.V.T,2,a);break}e.join()}function za(e,t,n,r,a){if(a!==void 0){const i=Ua(n,a);e.tag(r,fe.LengthDelimited).bytes(i.toBinary(t))}}function dn(e,t,n,r,a){let[i,s,o]=Qu(t,r);(!o||a)&&e.tag(n,i)[s](r)}function Rg(e,t,n,r){if(!r.length)return;e.tag(n,fe.LengthDelimited).fork();let[,a]=Qu(t);for(let i=0;i<r.length;i++)e[a](r[i]);e.join()}function Lg(){return Object.assign(Object.assign({},_g()),{writeMessage(e,t,n){const r=e.getType();for(const a of r.fields.byNumber()){let i,s=a.repeated,o=a.localName;if(a.oneof){const u=e[a.oneof.localName];if(u.case!==o)continue;i=u.value}else i=e[o];switch(a.kind){case"scalar":case"enum":let u=a.kind=="enum"?w.INT32:a.T;if(s)if(a.packed)Rg(t,u,a.no,i);else for(const m of i)dn(t,u,a.no,m,!0);else i!==void 0&&dn(t,u,a.no,i,!!a.oneof||a.opt);break;case"message":if(s)for(const m of i)za(t,n,a.T,a.no,m);else za(t,n,a.T,a.no,i);break;case"map":for(const[m,p]of Object.entries(i))jg(t,n,a,m,p);break}}return n.writeUnknownFields&&this.writeUnknownFields(e,t),t}})}let tt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),yr=[];for(let e=0;e<tt.length;e++)yr[tt[e].charCodeAt(0)]=e;yr["-".charCodeAt(0)]=tt.indexOf("+");yr["_".charCodeAt(0)]=tt.indexOf("/");const mi={dec(e){let t=e.length*3/4;e[e.length-2]=="="?t-=2:e[e.length-1]=="="&&(t-=1);let n=new Uint8Array(t),r=0,a=0,i,s=0;for(let o=0;o<e.length;o++){if(i=yr[e.charCodeAt(o)],i===void 0)switch(e[o]){case"=":a=0;case`
37
+ `:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(a){case 0:s=i,a=1;break;case 1:n[r++]=s<<2|(i&48)>>4,s=i,a=2;break;case 2:n[r++]=(s&15)<<4|(i&60)>>2,s=i,a=3;break;case 3:n[r++]=(s&3)<<6|i,a=0;break}}if(a==1)throw Error("invalid base64 string.");return n.subarray(0,r)},enc(e){let t="",n=0,r,a=0;for(let i=0;i<e.length;i++)switch(r=e[i],n){case 0:t+=tt[r>>2],a=(r&3)<<4,n=1;break;case 1:t+=tt[a|r>>4],a=(r&15)<<2,n=2;break;case 2:t+=tt[a|r>>6],t+=tt[r&63],n=0;break}return n&&(t+=tt[a],t+="=",n==1&&(t+="=")),t}},Xs={ignoreUnknownFields:!1},eo={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Pg(e){return e?Object.assign(Object.assign({},Xs),e):Xs}function Ug(e){return e?Object.assign(Object.assign({},eo),e):eo}function Fg(e){const t=e(zg,to);return{makeReadOptions:Pg,makeWriteOptions:Ug,readMessage(n,r,a,i){if(r==null||Array.isArray(r)||typeof r!="object")throw new Error(`cannot decode message ${n.typeName} from JSON: ${this.debug(r)}`);i=i??new n;const s={};for(const[o,u]of Object.entries(r)){const m=n.fields.findJsonName(o);if(!m){if(!a.ignoreUnknownFields)throw new Error(`cannot decode message ${n.typeName} from JSON: key "${o}" is unknown`);continue}let p=m.localName,g=i;if(m.oneof){if(u===null&&m.kind=="scalar")continue;const y=s[m.oneof.localName];if(y)throw new Error(`cannot decode message ${n.typeName} from JSON: multiple keys for oneof "${m.oneof.name}" present: "${y}", "${o}"`);s[m.oneof.localName]=o,g=g[m.oneof.localName]={case:p},p="value"}if(m.repeated){if(u===null)continue;if(!Array.isArray(u))throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`);const y=g[p];for(const k of u){if(k===null)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(k)}`);let M;switch(m.kind){case"message":M=m.T.fromJson(k,a);break;case"enum":if(M=Ur(m.T,k,a.ignoreUnknownFields),M===void 0)continue;break;case"scalar":try{M=sn(m.T,k,m.L)}catch(S){let _=`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(k)}`;throw S instanceof Error&&S.message.length>0&&(_+=`: ${S.message}`),new Error(_)}break}y.push(M)}}else if(m.kind=="map"){if(u===null)continue;if(Array.isArray(u)||typeof u!="object")throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`);const y=g[p];for(const[k,M]of Object.entries(u)){if(M===null)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: map value null`);let S;switch(m.V.kind){case"message":S=m.V.T.fromJson(M,a);break;case"enum":if(S=Ur(m.V.T,M,a.ignoreUnknownFields),S===void 0)continue;break;case"scalar":try{S=sn(m.V.T,M,It.BIGINT)}catch(_){let v=`cannot decode map value for field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw _ instanceof Error&&_.message.length>0&&(v+=`: ${_.message}`),new Error(v)}break}try{y[sn(m.K,m.K==w.BOOL?k=="true"?!0:k=="false"?!1:k:k,It.BIGINT).toString()]=S}catch(_){let v=`cannot decode map key for field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw _ instanceof Error&&_.message.length>0&&(v+=`: ${_.message}`),new Error(v)}}}else switch(m.kind){case"message":const y=m.T;if(u===null&&y.typeName!="google.protobuf.Value"){if(m.oneof)throw new Error(`cannot decode field ${n.typeName}.${m.name} from JSON: null is invalid for oneof field "${o}"`);continue}g[p]instanceof Je?g[p].fromJson(u,a):(g[p]=y.fromJson(u,a),y.fieldWrapper&&!m.oneof&&(g[p]=y.fieldWrapper.unwrapField(g[p])));break;case"enum":const k=Ur(m.T,u,a.ignoreUnknownFields);k!==void 0&&(g[p]=k);break;case"scalar":try{g[p]=sn(m.T,u,m.L)}catch(M){let S=`cannot decode field ${n.typeName}.${m.name} from JSON: ${this.debug(u)}`;throw M instanceof Error&&M.message.length>0&&(S+=`: ${M.message}`),new Error(S)}break}}return i},writeMessage(n,r){const a=n.getType(),i={};let s;try{for(const o of a.fields.byMember()){let u;if(o.kind=="oneof"){const m=n[o.localName];if(m.value===void 0)continue;if(s=o.findField(m.case),!s)throw"oneof case not found: "+m.case;u=t(s,m.value,r)}else s=o,u=t(s,n[s.localName],r);u!==void 0&&(i[r.useProtoFieldName?s.name:s.jsonName]=u)}}catch(o){const u=s?`cannot encode field ${a.typeName}.${s.name} to JSON`:`cannot encode message ${a.typeName} to JSON`,m=o instanceof Error?o.message:String(o);throw new Error(u+(m.length>0?`: ${m}`:""))}return i},readScalar:sn,writeScalar:to,debug:Yu}}function Yu(e){if(e===null)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":`"${e.split('"').join('\\"')}"`;default:return String(e)}}function sn(e,t,n){switch(e){case w.DOUBLE:case w.FLOAT:if(t===null)return 0;if(t==="NaN")return Number.NaN;if(t==="Infinity")return Number.POSITIVE_INFINITY;if(t==="-Infinity")return Number.NEGATIVE_INFINITY;if(t===""||typeof t=="string"&&t.trim().length!==t.length||typeof t!="string"&&typeof t!="number")break;const r=Number(t);if(Number.isNaN(r)||!Number.isFinite(r))break;return e==w.FLOAT&&wu(r),r;case w.INT32:case w.FIXED32:case w.SFIXED32:case w.SINT32:case w.UINT32:if(t===null)return 0;let a;if(typeof t=="number"?a=t:typeof t=="string"&&t.length>0&&t.trim().length===t.length&&(a=Number(t)),a===void 0)break;return e==w.UINT32?Ra(a):Rn(a),a;case w.INT64:case w.SFIXED64:case w.SINT64:if(t===null)return Ne.zero;if(typeof t!="number"&&typeof t!="string")break;const i=Ne.parse(t);return n?i.toString():i;case w.FIXED64:case w.UINT64:if(t===null)return Ne.zero;if(typeof t!="number"&&typeof t!="string")break;const s=Ne.uParse(t);return n?s.toString():s;case w.BOOL:if(t===null)return!1;if(typeof t!="boolean")break;return t;case w.STRING:if(t===null)return"";if(typeof t!="string")break;try{encodeURIComponent(t)}catch{throw new Error("invalid UTF8")}return t;case w.BYTES:if(t===null||t==="")return new Uint8Array(0);if(typeof t!="string")break;return mi.dec(t)}throw new Error}function Ur(e,t,n){if(t===null)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const r=e.findName(t);if(r||n)return r==null?void 0:r.no;break}throw new Error(`cannot decode enum ${e.typeName} from JSON: ${Yu(t)}`)}function zg(e,t,n,r){var a;if(t===void 0)return t;if(t===0&&!n)return;if(r)return t;if(e.typeName=="google.protobuf.NullValue")return null;const i=e.findNumber(t);return(a=i==null?void 0:i.name)!==null&&a!==void 0?a:t}function to(e,t,n){if(t!==void 0)switch(e){case w.INT32:case w.SFIXED32:case w.SINT32:case w.FIXED32:case w.UINT32:return Oe(typeof t=="number"),t!=0||n?t:void 0;case w.FLOAT:case w.DOUBLE:return Oe(typeof t=="number"),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":t!==0||n?t:void 0;case w.STRING:return Oe(typeof t=="string"),t.length>0||n?t:void 0;case w.BOOL:return Oe(typeof t=="boolean"),t||n?t:void 0;case w.UINT64:case w.FIXED64:case w.INT64:case w.SFIXED64:case w.SINT64:return Oe(typeof t=="bigint"||typeof t=="string"||typeof t=="number"),n||t!=0?t.toString(10):void 0;case w.BYTES:return Oe(t instanceof Uint8Array),n||t.byteLength>0?mi.enc(t):void 0}}function Bg(){return Fg((e,t)=>function(r,a,i){if(r.kind=="map"){const s={};switch(r.V.kind){case"scalar":for(const[u,m]of Object.entries(a)){const p=t(r.V.T,m,!0);Oe(p!==void 0),s[u.toString()]=p}break;case"message":for(const[u,m]of Object.entries(a))s[u.toString()]=m.toJson(i);break;case"enum":const o=r.V.T;for(const[u,m]of Object.entries(a)){Oe(m===void 0||typeof m=="number");const p=e(o,m,!0,i.enumAsInteger);Oe(p!==void 0),s[u.toString()]=p}break}return i.emitDefaultValues||Object.keys(s).length>0?s:void 0}else if(r.repeated){const s=[];switch(r.kind){case"scalar":for(let o=0;o<a.length;o++)s.push(t(r.T,a[o],!0));break;case"enum":for(let o=0;o<a.length;o++)s.push(e(r.T,a[o],!0,i.enumAsInteger));break;case"message":for(let o=0;o<a.length;o++)s.push(Ua(r.T,a[o]).toJson(i));break}return i.emitDefaultValues||s.length>0?s:void 0}else switch(r.kind){case"scalar":return t(r.T,a,!!r.oneof||r.opt||i.emitDefaultValues);case"enum":return e(r.T,a,!!r.oneof||r.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return a!==void 0?Ua(r.T,a).toJson(i):void 0}})}function Gg(){return{setEnumType:Cu,initPartial(e,t){if(e===void 0)return;const n=t.getType();for(const r of n.fields.byMember()){const a=r.localName,i=t,s=e;if(s[a]!==void 0)switch(r.kind){case"oneof":const o=s[a].case;if(o===void 0)continue;const u=r.findField(o);let m=s[a].value;u&&u.kind=="message"&&!(m instanceof u.T)?m=new u.T(m):u&&u.kind==="scalar"&&u.T===w.BYTES&&(m=on(m)),i[a]={case:o,value:m};break;case"scalar":case"enum":let p=s[a];r.T===w.BYTES&&(p=r.repeated?p.map(on):on(p)),i[a]=p;break;case"map":switch(r.V.kind){case"scalar":case"enum":if(r.V.T===w.BYTES)for(const[k,M]of Object.entries(s[a]))i[a][k]=on(M);else Object.assign(i[a],s[a]);break;case"message":const y=r.V.T;for(const k of Object.keys(s[a])){let M=s[a][k];y.fieldWrapper||(M=new y(M)),i[a][k]=M}break}break;case"message":const g=r.T;if(r.repeated)i[a]=s[a].map(y=>y instanceof g?y:new g(y));else if(s[a]!==void 0){const y=s[a];g.fieldWrapper?g.typeName==="google.protobuf.BytesValue"?i[a]=on(y):i[a]=y:i[a]=y instanceof g?y:new g(y)}break}}},equals(e,t,n){return t===n?!0:!t||!n?!1:e.fields.byMember().every(r=>{const a=t[r.localName],i=n[r.localName];if(r.repeated){if(a.length!==i.length)return!1;switch(r.kind){case"message":return a.every((s,o)=>r.T.equals(s,i[o]));case"scalar":return a.every((s,o)=>lt(r.T,s,i[o]));case"enum":return a.every((s,o)=>lt(w.INT32,s,i[o]))}throw new Error(`repeated cannot contain ${r.kind}`)}switch(r.kind){case"message":return r.T.equals(a,i);case"enum":return lt(w.INT32,a,i);case"scalar":return lt(r.T,a,i);case"oneof":if(a.case!==i.case)return!1;const s=r.findField(a.case);if(s===void 0)return!0;switch(s.kind){case"message":return s.T.equals(a.value,i.value);case"enum":return lt(w.INT32,a.value,i.value);case"scalar":return lt(s.T,a.value,i.value)}throw new Error(`oneof cannot contain ${s.kind}`);case"map":const o=Object.keys(a).concat(Object.keys(i));switch(r.V.kind){case"message":const u=r.V.T;return o.every(p=>u.equals(a[p],i[p]));case"enum":return o.every(p=>lt(w.INT32,a[p],i[p]));case"scalar":const m=r.V.T;return o.every(p=>lt(m,a[p],i[p]))}break}})},clone(e){const t=e.getType(),n=new t,r=n;for(const a of t.fields.byMember()){const i=e[a.localName];let s;if(a.repeated)s=i.map(On);else if(a.kind=="map"){s=r[a.localName];for(const[o,u]of Object.entries(i))s[o]=On(u)}else a.kind=="oneof"?s=a.findField(i.case)?{case:i.case,value:On(i.value)}:{case:void 0}:s=On(i);r[a.localName]=s}return n}}}function On(e){if(e===void 0)return e;if(e instanceof Je)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function on(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class Qg{constructor(t,n){this._fields=t,this._normalizer=n}findJsonName(t){if(!this.jsonNames){const n={};for(const r of this.list())n[r.jsonName]=n[r.name]=r;this.jsonNames=n}return this.jsonNames[t]}find(t){if(!this.numbers){const n={};for(const r of this.list())n[r.no]=r;this.numbers=n}return this.numbers[t]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((t,n)=>t.no-n.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const t=this.members;let n;for(const r of this.list())r.oneof?r.oneof!==n&&(n=r.oneof,t.push(n)):t.push(r)}return this.members}}function Vu(e,t){const n=Wu(e);return t?n:Zg(qg(n))}function Yg(e){return Vu(e,!1)}const Vg=Wu;function Wu(e){let t=!1;const n=[];for(let r=0;r<e.length;r++){let a=e.charAt(r);switch(a){case"_":t=!0;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n.push(a),t=!1;break;default:t&&(t=!1,a=a.toUpperCase()),n.push(a);break}}return n.join("")}const Wg=new Set(["constructor","toString","toJSON","valueOf"]),Hg=new Set(["getType","clone","equals","fromBinary","fromJson","fromJsonString","toBinary","toJson","toJsonString","toObject"]),Hu=e=>`${e}$`,qg=e=>Hg.has(e)?Hu(e):e,Zg=e=>Wg.has(e)?Hu(e):e;class Kg{constructor(t){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=t,this.localName=Yg(t)}addField(t){Oe(t.oneof===this,`field ${t.name} not one of ${this.name}`),this.fields.push(t)}findField(t){if(!this._lookup){this._lookup=Object.create(null);for(let n=0;n<this.fields.length;n++)this._lookup[this.fields[n].localName]=this.fields[n]}return this._lookup[t]}}const c=dg("proto3",Bg(),Lg(),Object.assign(Object.assign({},Gg()),{newFieldList(e){return new Qg(e,Jg)},initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const n=t.localName,r=e;if(t.repeated){r[n]=[];continue}switch(t.kind){case"oneof":r[n]={case:void 0};break;case"enum":r[n]=0;break;case"map":r[n]={};break;case"scalar":r[n]=Fa(t.T,t.L);break}}}}));function Jg(e){var t,n,r,a;const i=[];let s;for(const o of typeof e=="function"?e():e){const u=o;if(u.localName=Vu(o.name,o.oneof!==void 0),u.jsonName=(t=o.jsonName)!==null&&t!==void 0?t:Vg(o.name),u.repeated=(n=o.repeated)!==null&&n!==void 0?n:!1,o.kind=="scalar"&&(u.L=(r=o.L)!==null&&r!==void 0?r:It.BIGINT),u.packed=(a=o.packed)!==null&&a!==void 0?a:o.kind=="enum"||o.kind=="scalar"&&o.T!=w.BYTES&&o.T!=w.STRING,o.oneof!==void 0){const m=typeof o.oneof=="string"?o.oneof:o.oneof.name;(!s||s.name!=m)&&(s=new Kg(m)),u.oneof=s,s.addField(u)}i.push(u)}return i}var B;(function(e){e[e.Unary=0]="Unary",e[e.ServerStreaming=1]="ServerStreaming",e[e.ClientStreaming=2]="ClientStreaming",e[e.BiDiStreaming=3]="BiDiStreaming"})(B||(B={}));var no;(function(e){e[e.NoSideEffects=1]="NoSideEffects",e[e.Idempotent=2]="Idempotent"})(no||(no={}));class $e extends Je{constructor(t){super(),this.seconds=Ne.zero,this.nanos=0,c.util.initPartial(t,this)}fromJson(t,n){if(typeof t!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${c.json.debug(t)}`);const r=t.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const a=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(a))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(a<Date.parse("0001-01-01T00:00:00Z")||a>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Ne.parse(a/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this}toJson(t){const n=Number(this.seconds)*1e3;if(n<Date.parse("0001-01-01T00:00:00Z")||n>Date.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let r="Z";if(this.nanos>0){const a=(this.nanos+1e9).toString().substring(1);a.substring(3)==="000000"?r="."+a.substring(0,3)+"Z":a.substring(6)==="000"?r="."+a.substring(0,6)+"Z":r="."+a+"Z"}return new Date(n).toISOString().replace(".000Z",r)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return $e.fromDate(new Date)}static fromDate(t){const n=t.getTime();return new $e({seconds:Ne.parse(Math.floor(n/1e3)),nanos:n%1e3*1e6})}static fromBinary(t,n){return new $e().fromBinary(t,n)}static fromJson(t,n){return new $e().fromJson(t,n)}static fromJsonString(t,n){return new $e().fromJsonString(t,n)}static equals(t,n){return c.util.equals($e,t,n)}}$e.runtime=c;$e.typeName="google.protobuf.Timestamp";$e.fields=c.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Ke extends Je{constructor(t){super(),this.typeUrl="",this.value=new Uint8Array(0),c.util.initPartial(t,this)}toJson(t){var n;if(this.typeUrl==="")return{};const r=this.typeUrlToName(this.typeUrl),a=(n=t==null?void 0:t.typeRegistry)===null||n===void 0?void 0:n.findMessage(r);if(!a)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let s=a.fromBinary(this.value).toJson(t);return(r.startsWith("google.protobuf.")||s===null||Array.isArray(s)||typeof s!="object")&&(s={value:s}),s["@type"]=this.typeUrl,s}fromJson(t,n){var r;if(t===null||Array.isArray(t)||typeof t!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${t===null?"null":Array.isArray(t)?"array":typeof t}`);if(Object.keys(t).length==0)return this;const a=t["@type"];if(typeof a!="string"||a=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const i=this.typeUrlToName(a),s=(r=n==null?void 0:n.typeRegistry)===null||r===void 0?void 0:r.findMessage(i);if(!s)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${a} is not in the type registry`);let o;if(i.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(t,"value"))o=s.fromJson(t.value,n);else{const u=Object.assign({},t);delete u["@type"],o=s.fromJson(u,n)}return this.packFrom(o),this}packFrom(t){this.value=t.toBinary(),this.typeUrl=this.typeNameToUrl(t.getType().typeName)}unpackTo(t){return this.is(t.getType())?(t.fromBinary(this.value),!0):!1}unpack(t){if(this.typeUrl==="")return;const n=t.findMessage(this.typeUrlToName(this.typeUrl));if(n)return n.fromBinary(this.value)}is(t){if(this.typeUrl==="")return!1;const n=this.typeUrlToName(this.typeUrl);let r="";return typeof t=="string"?r=t:r=t.typeName,n===r}typeNameToUrl(t){return`type.googleapis.com/${t}`}typeUrlToName(t){if(!t.length)throw new Error(`invalid type url: ${t}`);const n=t.lastIndexOf("/"),r=n>0?t.substring(n+1):t;if(!r.length)throw new Error(`invalid type url: ${t}`);return r}static pack(t){const n=new Ke;return n.packFrom(t),n}static fromBinary(t,n){return new Ke().fromBinary(t,n)}static fromJson(t,n){return new Ke().fromJson(t,n)}static fromJsonString(t,n){return new Ke().fromJsonString(t,n)}static equals(t,n){return c.util.equals(Ke,t,n)}}Ke.runtime=c;Ke.typeName="google.protobuf.Any";Ke.fields=c.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);var re;(function(e){e[e.Canceled=1]="Canceled",e[e.Unknown=2]="Unknown",e[e.InvalidArgument=3]="InvalidArgument",e[e.DeadlineExceeded=4]="DeadlineExceeded",e[e.NotFound=5]="NotFound",e[e.AlreadyExists=6]="AlreadyExists",e[e.PermissionDenied=7]="PermissionDenied",e[e.ResourceExhausted=8]="ResourceExhausted",e[e.FailedPrecondition=9]="FailedPrecondition",e[e.Aborted=10]="Aborted",e[e.OutOfRange=11]="OutOfRange",e[e.Unimplemented=12]="Unimplemented",e[e.Internal=13]="Internal",e[e.Unavailable=14]="Unavailable",e[e.DataLoss=15]="DataLoss",e[e.Unauthenticated=16]="Unauthenticated"})(re||(re={}));function ro(e){const t=re[e];return typeof t!="string"?e.toString():t[0].toLowerCase()+t.substring(1).replace(/[A-Z]/g,n=>"_"+n.toLowerCase())}class ye extends Error{constructor(t,n=re.Unknown,r,a,i){super(Xg(t,n)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=t,this.code=n,this.metadata=new Headers(r??{}),this.details=a??[],this.cause=i}static from(t,n=re.Unknown){return t instanceof ye?t:t instanceof Error?t.name=="AbortError"?new ye(t.message,re.Canceled):new ye(t.message,n,void 0,void 0,t):new ye(String(t),n,void 0,void 0,t)}findDetails(t){const n="typeName"in t?{findMessage:a=>a===t.typeName?t:void 0}:t,r=[];for(const a of this.details){if(a instanceof Je){n.findMessage(a.getType().typeName)&&r.push(a);continue}const i=n.findMessage(a.type);if(i)try{r.push(i.fromBinary(a.value))}catch{}}return r}}function Xg(e,t){return e.length?`[${ro(t)}] ${e}`:`[${ro(t)}]`}function e1(e,t,n){try{const r=mi.dec(e);return t?t.fromBinary(r,n):r}catch(r){throw ye.from(r,re.DataLoss)}}function qu(e,t){const n={};for(const[r,a]of Object.entries(e.methods)){const i=t(Object.assign(Object.assign({},a),{localName:r,service:e}));i!=null&&(n[r]=i)}return n}function ao(e){let t,n=new Uint8Array(0);function r(a){const i=new Uint8Array(n.length+a.length);i.set(n),i.set(a,n.length),n=i}return new ReadableStream({start(){t=e.getReader()},async pull(a){let i;for(;;){if(i===void 0&&n.byteLength>=5){let u=0;for(let m=1;m<5;m++)u=(u<<8)+n[m];i={flags:n[0],length:u}}if(i!==void 0&&n.byteLength>=i.length+5)break;const o=await t.read();if(o.done)break;r(o.value)}if(i===void 0){if(n.byteLength==0){a.close();return}a.error(new ye("premature end of stream",re.DataLoss));return}const s=n.subarray(5,5+i.length);n=n.subarray(5+i.length),a.enqueue({flags:i.flags,data:s})}})}function io(e,t){const n=new Uint8Array(t.length+5);n.set(t,5);const r=new DataView(n.buffer,n.byteOffset,n.byteLength);return r.setUint8(0,e),r.setUint32(1,t.length),n}var t1=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}},Nn=globalThis&&globalThis.__await||function(e){return this instanceof Nn?(this.v=e,this):new Nn(e)},n1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof Nn?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}},r1=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,i){t[a]=e[a]?function(s){return(n=!n)?{value:Nn(e[a](s)),done:!1}:i?i(s):s}:i}};function Zu(e){return n1(this,arguments,function*(){yield Nn(yield*r1(t1(e)))})}var a1=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}};function i1(e,t){return qu(e,n=>{switch(n.kind){case B.Unary:return s1(t,e,n);case B.ServerStreaming:return o1(t,e,n);default:return null}})}function s1(e,t,n){return function(r,a,i){const s=new AbortController;return i=Ku(s,i),e.unary(t,n,s.signal,i.timeoutMs,i.headers,r,i.contextValues).then(o=>{var u,m;(u=i==null?void 0:i.onHeader)===null||u===void 0||u.call(i,o.header),(m=i==null?void 0:i.onTrailer)===null||m===void 0||m.call(i,o.trailer),a(void 0,o.message)},o=>{const u=ye.from(o,re.Internal);u.code===re.Canceled&&s.signal.aborted||a(u,new n.O)}),()=>s.abort()}}function o1(e,t,n){return function(r,a,i,s){const o=new AbortController;async function u(){var m,p,g,y,k,M;s=Ku(o,s);const S=await e.stream(t,n,s.signal,s.timeoutMs,s.headers,Zu([r]),s.contextValues);(k=s.onHeader)===null||k===void 0||k.call(s,S.header);try{for(var _=!0,v=a1(S.message),O;O=await v.next(),m=O.done,!m;_=!0)y=O.value,_=!1,a(y)}catch(L){p={error:L}}finally{try{!_&&!m&&(g=v.return)&&await g.call(v)}finally{if(p)throw p.error}}(M=s.onTrailer)===null||M===void 0||M.call(s,S.trailer),i(void 0)}return u().catch(m=>{const p=ye.from(m,re.Internal);p.code===re.Canceled&&o.signal.aborted?i(void 0):i(p)}),()=>o.abort()}}function Ku(e,t){return t!=null&&t.signal&&(t.signal.addEventListener("abort",()=>e.abort()),t.signal.aborted&&e.abort()),Object.assign(Object.assign({},t),{signal:e.signal})}var Ju=globalThis&&globalThis.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values=="function"?__values(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}},Qt=globalThis&&globalThis.__await||function(e){return this instanceof Qt?(this.v=e,this):new Qt(e)},l1=globalThis&&globalThis.__asyncDelegator||function(e){var t,n;return t={},r("next"),r("throw",function(a){throw a}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(a,i){t[a]=e[a]?function(s){return(n=!n)?{value:Qt(e[a](s)),done:!1}:i?i(s):s}:i}},u1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof Qt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}};function gr(e,t){return qu(e,n=>{switch(n.kind){case B.Unary:return c1(t,e,n);case B.ServerStreaming:return d1(t,e,n);case B.ClientStreaming:return m1(t,e,n);case B.BiDiStreaming:return f1(t,e,n);default:return null}})}function c1(e,t,n){return async function(r,a){var i,s;const o=await e.unary(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues);return(i=a==null?void 0:a.onHeader)===null||i===void 0||i.call(a,o.header),(s=a==null?void 0:a.onTrailer)===null||s===void 0||s.call(a,o.trailer),o.message}}function d1(e,t,n){return function(r,a){return Xu(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,Zu([r]),a==null?void 0:a.contextValues),a)}}function m1(e,t,n){return async function(r,a){var i,s,o,u,m,p;const g=await e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues);(m=a==null?void 0:a.onHeader)===null||m===void 0||m.call(a,g.header);let y;try{for(var k=!0,M=Ju(g.message),S;S=await M.next(),i=S.done,!i;k=!0)u=S.value,k=!1,y=u}catch(_){s={error:_}}finally{try{!k&&!i&&(o=M.return)&&await o.call(M)}finally{if(s)throw s.error}}if(!y)throw new ye("protocol error: missing response message",re.Internal);return(p=a==null?void 0:a.onTrailer)===null||p===void 0||p.call(a,g.trailer),y}}function f1(e,t,n){return function(r,a){return Xu(e.stream(t,n,a==null?void 0:a.signal,a==null?void 0:a.timeoutMs,a==null?void 0:a.headers,r,a==null?void 0:a.contextValues),a)}}function Xu(e,t){const n=function(){var r,a;return u1(this,arguments,function*(){const i=yield Qt(e);(r=t==null?void 0:t.onHeader)===null||r===void 0||r.call(t,i.header),yield Qt(yield*l1(Ju(i.message))),(a=t==null?void 0:t.onTrailer)===null||a===void 0||a.call(t,i.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>n.next()})}}function p1(...e){const t=new AbortController,n=e.filter(a=>a!==void 0).concat(t.signal);for(const a of n){if(a.aborted){r.apply(a);break}a.addEventListener("abort",r)}function r(){t.signal.aborted||t.abort(ec(this));for(const a of n)a.removeEventListener("abort",r)}return t}function y1(e){const t=new AbortController,n=()=>{t.abort(new ye("the operation timed out",re.DeadlineExceeded))};let r;return e!==void 0&&(e<=0?n():r=setTimeout(n,e)),{signal:t.signal,cleanup:()=>clearTimeout(r)}}function ec(e){if(!e.aborted)return;if(e.reason!==void 0)return e.reason;const t=new Error("This operation was aborted");return t.name="AbortError",t}function so(){return{get(e){return e.id in this?this[e.id]:e.defaultValue},set(e,t){return this[e.id]=t,this},delete(e){return delete this[e.id],this}}}const Fr=128;function oo(e){const t=new Headers,n=new TextDecoder().decode(e).split(`\r
38
+ `);for(const r of n){if(r==="")continue;const a=r.indexOf(":");if(a>0){const i=r.substring(0,a).trim(),s=r.substring(a+1).trim();t.append(i,s)}}return t}const g1="Content-Type",h1="Grpc-Timeout",tc="Grpc-Status",nc="Grpc-Message",T1="Grpc-Status-Details-Bin",k1="User-Agent",N1="X-User-Agent",b1="X-Grpc-Web",M1="application/grpc-web+proto",S1="application/grpc-web+json";class rt extends Je{constructor(t){super(),this.code=0,this.message="",this.details=[],c.util.initPartial(t,this)}static fromBinary(t,n){return new rt().fromBinary(t,n)}static fromJson(t,n){return new rt().fromJson(t,n)}static fromJsonString(t,n){return new rt().fromJsonString(t,n)}static equals(t,n){return c.util.equals(rt,t,n)}}rt.runtime=c;rt.typeName="google.rpc.Status";rt.fields=c.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:Ke,repeated:!0}]);const I1="0";function rc(e){var t;const n=e.get(T1);if(n!=null){const a=e1(n,rt);if(a.code==0)return;const i=new ye(a.message,a.code,e);return i.details=a.details.map(s=>({type:s.typeUrl.substring(s.typeUrl.lastIndexOf("/")+1),value:s.value})),i}const r=e.get(tc);if(r!=null){if(r===I1)return;const a=parseInt(r,10);return a in re?new ye(decodeURIComponent((t=e.get(nc))!==null&&t!==void 0?t:""),a,e):new ye(`invalid grpc-status: ${r}`,re.Internal,e)}}function lo(e,t,n){const r=typeof t=="string"?t:t.typeName,a=typeof n=="string"?n:n.name;return e.toString().replace(/\/?$/,`/${r}/${a}`)}function ac(e,t){return t instanceof Je?t:new e(t)}function v1(e,t){function n(r){return r.done===!0?r:{done:r.done,value:ac(e,r.value)}}return{[Symbol.asyncIterator](){const r=t[Symbol.asyncIterator](),a={next:()=>r.next().then(n)};return r.throw!==void 0&&(a.throw=i=>r.throw(i).then(n)),r.return!==void 0&&(a.return=i=>r.return(i).then(n)),a}}}function $1(e){var t;const n=Object.assign({},e);return(t=n.ignoreUnknownFields)!==null&&t!==void 0||(n.ignoreUnknownFields=!0),n}function uo(e,t,n,r){const a=t?co(e.I,r):mo(e.I,n);return{parse:(t?co(e.O,r):mo(e.O,n)).parse,serialize:a.serialize}}function co(e,t){return{parse(n){try{return e.fromBinary(n,t)}catch(r){const a=r instanceof Error?r.message:String(r);throw new ye(`parse binary: ${a}`,re.InvalidArgument)}},serialize(n){try{return n.toBinary(t)}catch(r){const a=r instanceof Error?r.message:String(r);throw new ye(`serialize binary: ${a}`,re.Internal)}}}}function mo(e,t){var n,r;const a=(n=t==null?void 0:t.textEncoder)!==null&&n!==void 0?n:new TextEncoder,i=(r=t==null?void 0:t.textDecoder)!==null&&r!==void 0?r:new TextDecoder,s=$1(t);return{parse(o){try{const u=i.decode(o);return e.fromJsonString(u,s)}catch(u){throw ye.from(u,re.InvalidArgument)}},serialize(o){try{const u=o.toJsonString(s);return a.encode(u)}catch(u){throw ye.from(u,re.Internal)}}}}function A1(e){const t=sc(e.next,e.interceptors),[n,r,a]=ic(e),i=Object.assign(Object.assign({},e.req),{message:ac(e.req.method.I,e.req.message),signal:n});return t(i).then(s=>(a(),s),r)}function E1(e){const t=sc(e.next,e.interceptors),[n,r,a]=ic(e),i=Object.assign(Object.assign({},e.req),{message:v1(e.req.method.I,e.req.message),signal:n});let s=!1;return n.addEventListener("abort",function(){var o,u;const m=e.req.message[Symbol.asyncIterator]();s||(o=m.throw)===null||o===void 0||o.call(m,this.reason).catch(()=>{}),(u=m.return)===null||u===void 0||u.call(m).catch(()=>{})}),t(i).then(o=>Object.assign(Object.assign({},o),{message:{[Symbol.asyncIterator](){const u=o.message[Symbol.asyncIterator]();return{next(){return u.next().then(m=>(m.done==!0&&(s=!0,a()),m),r)}}}}}),r)}function ic(e){const{signal:t,cleanup:n}=y1(e.timeoutMs),r=p1(e.signal,t);return[r.signal,function(i){const s=ye.from(t.aborted?ec(t):i);return r.abort(s),n(),Promise.reject(s)},function(){n(),r.abort()}]}function sc(e,t){var n;return(n=t==null?void 0:t.concat().reverse().reduce((r,a)=>a(r),e))!==null&&n!==void 0?n:e}function O1(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function fo(e){const t=rc(e);if(t)throw t}function po(e,t,n){const r=new Headers(n??{});return r.set(g1,e?M1:S1),r.set(b1,"1"),r.set(N1,"connect-es/1.1.2"),r.set(k1,"connect-es/1.1.2"),t!==void 0&&r.set(h1,`${t}m`),r}function D1(e){switch(e){case 400:return re.Internal;case 401:return re.Unauthenticated;case 403:return re.PermissionDenied;case 404:return re.Unimplemented;case 429:return re.Unavailable;case 502:return re.Unavailable;case 503:return re.Unavailable;case 504:return re.Unavailable;default:return re.Unknown}}function yo(e,t){var n;if(e>=200&&e<300){const r=rc(t);if(r)throw r;return{foundStatus:t.has(tc)}}throw new ye(decodeURIComponent((n=t.get(nc))!==null&&n!==void 0?n:`HTTP ${e}`),D1(e),t)}var Nt=globalThis&&globalThis.__await||function(e){return this instanceof Nt?(this.v=e,this):new Nt(e)},w1=globalThis&&globalThis.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof Nt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}};function hr(e){var t;O1();const n=(t=e.useBinaryFormat)!==null&&t!==void 0?t:!0;return{async unary(r,a,i,s,o,u,m){var p;const{serialize:g,parse:y}=uo(a,n,e.jsonOptions,e.binaryOptions);return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,await A1({interceptors:e.interceptors,signal:i,timeoutMs:s,req:{stream:!1,service:r,method:a,url:lo(e.baseUrl,r,a),init:{method:"POST",credentials:(p=e.credentials)!==null&&p!==void 0?p:"same-origin",redirect:"error",mode:"cors"},header:po(n,s,o),contextValues:m??so(),message:u},next:async k=>{var M;const _=await((M=e.fetch)!==null&&M!==void 0?M:globalThis.fetch)(k.url,Object.assign(Object.assign({},k.init),{headers:k.header,signal:k.signal,body:io(0,g(k.message))}));if(yo(_.status,_.headers),!_.body)throw"missing response body";const v=ao(_.body).getReader();let O,L;for(;;){const P=await v.read();if(P.done)break;const{flags:F,data:z}=P.value;if(F===Fr){if(O!==void 0)throw"extra trailer";O=oo(z);continue}if(L!==void 0)throw"extra message";L=y(z)}if(O===void 0)throw"missing trailer";if(fo(O),L===void 0)throw"missing message";return{stream:!1,header:_.headers,message:L,trailer:O}}})},async stream(r,a,i,s,o,u,m){var p;const{serialize:g,parse:y}=uo(a,n,e.jsonOptions,e.binaryOptions);function k(S,_,v){return w1(this,arguments,function*(){const L=ao(S).getReader();if(_){if(!(yield Nt(L.read())).done)throw"extra data for trailers-only";return yield Nt(void 0)}let P=!1;for(;;){const F=yield Nt(L.read());if(F.done)break;const{flags:z,data:U}=F.value;if((z&Fr)===Fr){if(P)throw"extra trailer";P=!0;const V=oo(U);fo(V),V.forEach((H,J)=>v.set(J,H));continue}if(P)throw"extra message";yield yield Nt(y(U))}if(!P)throw"missing trailer"})}async function M(S){if(a.kind!=B.ServerStreaming)throw"The fetch API does not support streaming request bodies";const _=await S[Symbol.asyncIterator]().next();if(_.done==!0)throw"missing request message";return io(0,g(_.value))}return s=s===void 0?e.defaultTimeoutMs:s<=0?void 0:s,E1({interceptors:e.interceptors,signal:i,timeoutMs:s,req:{stream:!0,service:r,method:a,url:lo(e.baseUrl,r,a),init:{method:"POST",credentials:(p=e.credentials)!==null&&p!==void 0?p:"same-origin",redirect:"error",mode:"cors"},header:po(n,s,o),contextValues:m??so(),message:u},next:async S=>{var _;const O=await((_=e.fetch)!==null&&_!==void 0?_:globalThis.fetch)(S.url,Object.assign(Object.assign({},S.init),{headers:S.header,signal:S.signal,body:await M(S.message)})),{foundStatus:L}=yo(O.status,O.headers);if(!O.body)throw"missing response body";const P=new Headers;return Object.assign(Object.assign({},S),{header:O.headers,trailer:P,message:k(O.body,L,P)})}})}}}const _1=c.makeEnum("streamlayer.users.UserNotificationPreference",[{no:0,name:"USER_NOTIFICATION_PREFERENCE_UNSET",localName:"UNSET"},{no:1,name:"USER_NOTIFICATION_PREFERENCE_ALL_EVENTS",localName:"ALL_EVENTS"},{no:2,name:"USER_NOTIFICATION_PREFERENCE_IMPORTANT_EVENTS_ONLY",localName:"IMPORTANT_EVENTS_ONLY"},{no:3,name:"USER_NOTIFICATION_PREFERENCE_DAILY_SUMMARY_AND_MENTIONS",localName:"DAILY_SUMMARY_AND_MENTIONS"}]),C1=c.makeMessageType("streamlayer.users.PublicChatUser",()=>[{no:1,name:"name",kind:"scalar",T:9}]),x1=c.makeMessageType("streamlayer.users.UserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:5,name:"avatar",kind:"scalar",T:9},{no:6,name:"public_chat",kind:"message",T:C1},{no:7,name:"public_name",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.users.UserOrganization",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"permissions",kind:"scalar",T:9,repeated:!0}]);const j1=c.makeMessageType("streamlayer.users.UserMetadata",()=>[{no:2,name:"avatar",kind:"scalar",T:9},{no:3,name:"avatar_background_colour",kind:"scalar",T:9},{no:4,name:"timezone",kind:"scalar",T:9},{no:5,name:"notification_preference",kind:"enum",T:c.getEnumType(_1)},{no:6,name:"active",kind:"scalar",T:8},{no:7,name:"first_name",kind:"scalar",T:9},{no:8,name:"last_name",kind:"scalar",T:9},{no:9,name:"roles",kind:"scalar",T:9,repeated:!0}]),R1=c.makeMessageType("streamlayer.users.ExtendedUserAttributes",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"metadata",kind:"message",T:j1}]),fi=c.makeMessageType("streamlayer.users.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:x1}]);c.makeMessageType("streamlayer.users.ExtendedUser",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:R1}]);const L1=c.makeMessageType("streamlayer.users.LoginRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"password",kind:"scalar",T:9}]),P1=c.makeMessageType("streamlayer.users.AuthResponse",()=>[{no:1,name:"meta",kind:"message",T:U1},{no:2,name:"data",kind:"message",T:fi}]),U1=c.makeMessageType("streamlayer.users.AuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9},{no:3,name:"getstream",kind:"scalar",T:9}],{localName:"AuthResponse_AuthResponseMetadata"}),F1=c.makeMessageType("streamlayer.users.RegisterRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),z1=c.makeMessageType("streamlayer.users.Referral",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"watching_game",kind:"scalar",T:9}]),B1=c.makeMessageType("streamlayer.users.RegisterResponse",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"requires_activation",kind:"scalar",T:8},{no:3,name:"referral",kind:"message",T:z1}]),G1=c.makeMessageType("streamlayer.users.RequestPasswordRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),Q1=c.makeMessageType("streamlayer.users.RequestPasswordResponse",()=>[{no:1,name:"requested",kind:"scalar",T:8},{no:2,name:"uid",kind:"scalar",T:9}]),Y1=c.makeMessageType("streamlayer.users.MeRequest",[]),V1=c.makeMessageType("streamlayer.users.MeResponse",()=>[{no:1,name:"data",kind:"message",T:fi}]),W1=c.makeMessageType("streamlayer.users.UpdateMetadataRequest",()=>[{no:1,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:2,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),H1=c.makeMessageType("streamlayer.users.UpdateAvatarRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_avatar",kind:"scalar",T:9,oneof:"avatar"},{no:3,name:"del_avatar",kind:"scalar",T:9,oneof:"avatar"}]),q1=c.makeMessageType("streamlayer.users.UpdateAvatarResponse",[]),Z1=c.makeMessageType("streamlayer.users.UpdatePublicChatNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),K1=c.makeMessageType("streamlayer.users.UpdatePublicChatNameResponse",[]),J1=c.makeMessageType("streamlayer.users.UpdatePublicNameRequest",()=>[{no:1,name:"username",kind:"scalar",T:9},{no:2,name:"set_name",kind:"scalar",T:9,oneof:"name"},{no:3,name:"del_name",kind:"scalar",T:9,oneof:"name"}]),X1=c.makeMessageType("streamlayer.users.UpdatePublicNameResponse",[]),eh=c.makeMessageType("streamlayer.users.UpdateMetadataResponse",[]),th=c.makeMessageType("streamlayer.users.InviteRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"referral",kind:"message",T:nh}]),nh=c.makeMessageType("streamlayer.users.InviteRequest.InviteReferral",()=>[{no:1,name:"watching_game",kind:"scalar",T:9}],{localName:"InviteRequest_InviteReferral"}),rh=c.makeMessageType("streamlayer.users.InviteResponse",[]),ah=c.makeMessageType("streamlayer.users.BypassAuthRequest",()=>[{no:1,name:"user_key",kind:"scalar",T:9},{no:2,name:"schema",kind:"scalar",T:9},{no:3,name:"init",kind:"scalar",T:8}]),ih=c.makeMessageType("streamlayer.users.BypassAuthResponse",()=>[{no:1,name:"meta",kind:"message",T:sh},{no:2,name:"data",kind:"message",T:fi,opt:!0}]),sh=c.makeMessageType("streamlayer.users.BypassAuthResponse.AuthResponseMetadata",()=>[{no:1,name:"jwt",kind:"scalar",T:9,opt:!0},{no:3,name:"token",kind:"scalar",T:9,opt:!0},{no:4,name:"getstream",kind:"scalar",T:9}],{localName:"BypassAuthResponse_AuthResponseMetadata"}),bn={typeName:"streamlayer.users.Users",methods:{login:{name:"Login",I:L1,O:P1,kind:B.Unary},register:{name:"Register",I:F1,O:B1,kind:B.Unary},requestPassword:{name:"RequestPassword",I:G1,O:Q1,kind:B.Unary},me:{name:"Me",I:Y1,O:V1,kind:B.Unary},invite:{name:"Invite",I:th,O:rh,kind:B.Unary},bypassAuth:{name:"BypassAuth",I:ah,O:ih,kind:B.Unary},updateMetadata:{name:"UpdateMetadata",I:W1,O:eh,kind:B.Unary},updateAvatar:{name:"UpdateAvatar",I:H1,O:q1,kind:B.Unary},updatePublicChatName:{name:"UpdatePublicChatName",I:Z1,O:K1,kind:B.Unary},updatePublicName:{name:"UpdatePublicName",I:J1,O:X1,kind:B.Unary}}},oh=async(e,t)=>{const n=hr({baseUrl:e});return await gr(bn,n).requestPassword({id:t}),!0},lh=async(e,t)=>{const n=hr({baseUrl:e});return await gr(bn,n).register({id:t}),!0},uh=async(e,t,n)=>{var s;const r=hr({baseUrl:e}),i=await gr(bn,r).login({id:t,password:n});return(s=i==null?void 0:i.meta)==null?void 0:s.jwt};const ch=A("div")({name:"Panel",class:"pkueuwk",propsAsIs:!1}),go=A("form")({name:"Form",class:"fp66u19",propsAsIs:!1}),ho=A("div")({name:"FormTitle",class:"fwojs5e",propsAsIs:!1}),zr=A("div")({name:"FormDescription",class:"fwvt1dc",propsAsIs:!1}),Br=A("button")({name:"FormSubmit",class:"f16e2wbc",propsAsIs:!1}),dh=A("div")({name:"FormInputContainer",class:"f1xkchzs",propsAsIs:!1}),mh=A("div")({name:"Digits",class:"d132q1j",propsAsIs:!1}),fh=({login:e,anonymousLogin:t,host:n})=>{const[r,a]=x.useState(""),[i,s]=x.useState(""),[o,u]=x.useState(""),m=Fd({acceptedCharacters:/^[0-9]$/,length:4,value:o,onChange:u}),p=async y=>{y.preventDefault();try{const k=r.replaceAll("+","");try{await oh(n,k)}catch{await lh(n,k)}s(k)}catch(k){window.alert(k)}},g=async y=>{if(y.preventDefault(),i&&o)try{const k=await uh(n,i,o);k&&e?await e(k):console.log("token",k)}catch(k){window.alert(k)}};return T.jsxs(ch,{children:[!i&&T.jsxs("div",{children:[T.jsxs(go,{onSubmit:p,children:[T.jsx(ho,{children:"Enter your phone number"}),T.jsx(zr,{children:"Enter your phone up for number to log in or sign an account."}),T.jsx(dh,{children:T.jsx(z0,{value:r,onChange:y=>a(`${y}`)})}),T.jsx(Br,{disabled:!G0(r),type:"submit",children:"request code"})]}),t&&T.jsx(Br,{style:{display:"block",margin:"auto"},onClick:t,children:"anonymous login"})]}),i&&T.jsxs(go,{onSubmit:g,children:[T.jsx(ho,{children:"Enter Verification Code"}),T.jsxs(zr,{children:["Please enter the verification code ",T.jsx("br",{}),"sent to ",T.jsx("b",{children:B0(r)})]}),T.jsxs(mh,{children:[T.jsx("input",{autoFocus:!0,inputMode:"decimal",...m[0]}),T.jsx("input",{inputMode:"decimal",...m[1]}),T.jsx("input",{inputMode:"decimal",...m[2]}),T.jsx("input",{inputMode:"decimal",...m[3]})]}),T.jsx(Br,{disabled:o.length!==4,type:"submit",children:"login"}),T.jsxs(zr,{children:["Didn't get 59 the code? ",T.jsx("br",{}),"Resend Code in",T.jsx(Du,{duration:30,setTimeToExpire:()=>{},isPlaying:!0})]})]})]})};const ph=A("div")({name:"Container",class:"c18fa2p6",propsAsIs:!1}),yh=A("div")({name:"Content",class:"cthywkn",propsAsIs:!1}),gh=A("div")({name:"OnboardingHeader",class:"obeaxxh",propsAsIs:!1}),hh=A("div")({name:"LeftBlock",class:"l1jam9nb",propsAsIs:!1}),Th=A("div")({name:"RightBlock",class:"r17ziiq1",propsAsIs:!1}),kh=A("img")({name:"GameIcon",class:"gxb34q2",propsAsIs:!1}),Nh=A("img")({name:"SponsorLogo",class:"s10k8h8y",propsAsIs:!1}),bh=A("button")({name:"CloseBtn",class:"ca5j1zk",propsAsIs:!1}),Mh=A("img")({name:"IconClose",class:"i6wd7es",propsAsIs:!1}),Sh=A("button")({name:"OnboardingActionBtn",class:"onaxor0",propsAsIs:!1});const Ih=A("div")({name:"Container",class:"c1tc3ie1",propsAsIs:!1}),vh=A("div")({name:"Content",class:"cenyr9j",propsAsIs:!1}),$h=A("img")({name:"Graphic",class:"g17082th",propsAsIs:!1}),Ah=A("div")({name:"Headline",class:"hr58r57",propsAsIs:!1}),Eh=({graphic:e,headline:t})=>T.jsx(Ih,{children:T.jsxs(vh,{children:[T.jsx($h,{alt:"graphic-img-instrucrions",src:e}),T.jsx(Ah,{children:t})]})});const Oh=A("div")({name:"Container",class:"c1k109z3",propsAsIs:!1}),Dh=A("div")({name:"Title",class:"tl3o9j9",propsAsIs:!1}),wh=A("div")({name:"RulesList",class:"rp7yn67",propsAsIs:!1}),_h=A("div")({name:"RulesItem",class:"r18km3gu",propsAsIs:!1}),Ch=A("div")({name:"RuleNumber",class:"rtu7hsj",propsAsIs:!1}),xh=A("div")({name:"RuleText",class:"rfkkuag",propsAsIs:!1}),jh=({rules:e,rulesTitle:t,primaryColor:n})=>T.jsxs(Oh,{children:[T.jsx(Dh,{children:t}),T.jsx(wh,{children:e==null?void 0:e.map((r,a)=>T.jsxs(_h,{children:[T.jsx(Ch,{style:{backgroundColor:n},children:a+1}),T.jsx(xh,{children:r})]},a))})]}),Rh="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNSAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkZyaWVuZHMiPgo8cGF0aCBpZD0iVmVjdG9yIiBkPSJNNC4xOTIzMSA3LjAzMTI1QzIuNjYzNDYgNy4wMzEyNSAxLjQyMzA4IDguMTk5NzMgMS40MjMwOCA5LjYzOTk0QzEuNDIzMDggMTEuMDgwMiAyLjY2MzQ2IDEyLjI0ODYgNC4xOTIzMSAxMi4yNDg2QzUuNzIxMTUgMTIuMjQ4NiA2Ljk2MTU0IDExLjA4MDIgNi45NjE1NCA5LjYzOTk0QzYuOTYxNTQgOC4xOTk3MyA1LjcyMTE1IDcuMDMxMjUgNC4xOTIzMSA3LjAzMTI1Wk00LjE5MjMxIDEyLjI0ODZDMi4xNjIyNiAxMi4yNDg2IDAuNSAxMy44MTQ1IDAuNSAxNS43MjY5VjE3LjYyOUMwLjUgMTcuNjI5IDEuNDIzMDggMTguMzM1NiA0LjE5MjMxIDE4LjMzNTZDNi45NjE1NCAxOC4zMzU2IDcuODg0NjEgMTcuNjI5IDcuODg0NjEgMTcuNjI5VjE1LjcyNjlDNy44ODQ2MSAxMy44MTQ1IDYuMjIyMzYgMTIuMjQ4NiA0LjE5MjMxIDEyLjI0ODZaTTIwLjgwNzcgNy4wMzEyNUMxOS4yNzg4IDcuMDMxMjUgMTguMDM4NSA4LjE5OTczIDE4LjAzODUgOS42Mzk5NEMxOC4wMzg1IDExLjA4MDIgMTkuMjc4OCAxMi4yNDg2IDIwLjgwNzcgMTIuMjQ4NkMyMi4zMzY1IDEyLjI0ODYgMjMuNTc2OSAxMS4wODAyIDIzLjU3NjkgOS42Mzk5NEMyMy41NzY5IDguMTk5NzMgMjIuMzM2NSA3LjAzMTI1IDIwLjgwNzcgNy4wMzEyNVpNMjAuODA3NyAxMi4yNDg2QzE4Ljc3NzYgMTIuMjQ4NiAxNy4xMTU0IDEzLjgxNDUgMTcuMTE1NCAxNS43MjY5VjE3LjYyOUMxNy4xMTU0IDE3LjYyOSAxOC4wMzg1IDE4LjMzNTYgMjAuODA3NyAxOC4zMzU2QzIzLjU3NjkgMTguMzM1NiAyNC41IDE3LjYyOSAyNC41IDE3LjYyOVYxNS43MjY5QzI0LjUgMTMuODE0NSAyMi44Mzc3IDEyLjI0ODYgMjAuODA3NyAxMi4yNDg2Wk0xMi41IDEwLjUwOTVDMTAuOTcxMiAxMC41MDk1IDkuNzMwNzcgMTEuNjc4IDkuNzMwNzcgMTMuMTE4MkM5LjczMDc3IDE0LjU1ODQgMTAuOTcxMiAxNS43MjY5IDEyLjUgMTUuNzI2OUMxNC4wMjg4IDE1LjcyNjkgMTUuMjY5MiAxNC41NTg0IDE1LjI2OTIgMTMuMTE4MkMxNS4yNjkyIDExLjY3OCAxNC4wMjg4IDEwLjUwOTUgMTIuNSAxMC41MDk1Wk0xMi41IDE1LjcyNjlDMTAuNDcgMTUuNzI2OSA4LjgwNzY5IDE3LjI5MjggOC44MDc2OSAxOS4yMDUxVjIxLjEwNzNDOC44MDc2OSAyMS4xMDczIDkuNzMwNzcgMjEuODEzOCAxMi41IDIxLjgxMzhDMTUuMjY5MiAyMS44MTM4IDE2LjE5MjMgMjEuMTA3MyAxNi4xOTIzIDIxLjEwNzNWMTkuMjA1MUMxNi4xOTIzIDE3LjI5MjggMTQuNTMgMTUuNzI2OSAxMi41IDE1LjcyNjlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBpZD0iVmVjdG9yXzIiIGQ9Ik04LjU4NDczIDEuNUM2Ljk2MzkyIDEuNSA1LjY0ODkzIDIuNzM4NzYgNS42NDg5MyA0LjI2NTZDNS42NDg5MyA1Ljc5MjQ1IDYuOTYzOTIgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFDMTAuMjA1NSA3LjAzMTIxIDExLjUyMDUgNS43OTI0NSAxMS41MjA1IDQuMjY1NkMxMS41MjA1IDIuNzM4NzYgMTAuMjA1NSAxLjUgOC41ODQ3MyAxLjVaTTguNTg0NzMgNy4wMzEyMUM4LjI5MDM4IDcuMDMxMjEgNy45OTIyMSA3LjAyNCA3LjY5Nzg3IDcuMTE3NjNDOC4yODY1NiA3Ljg1NTg0IDguNTg0NzMgOC43ODEzMSA4LjU4NDczIDkuNzk2ODFDOC41ODQ3MyAxMC4xNjQxIDguNDkyOTggMTAuNTI0MiA4LjQ5Mjk4IDEwLjg5MTVDOS4yNzY2MyA5Ljc4NjAxIDEwLjU0MTkgOS4wNTg1OSAxMi4wMDk4IDguODc0OTRDMTEuMzI1NiA3Ljc2OTQyIDEwLjA1MjYgNy4wMzEyMSA4LjU4NDczIDcuMDMxMjFaTTE2LjQxMzUgMS41QzE0Ljc5MjcgMS41IDEzLjQ3NzcgMi43Mzg3NiAxMy40Nzc3IDQuMjY1NkMxMy40Nzc3IDUuNzkyNDUgMTQuNzkyNyA3LjAzMTIxIDE2LjQxMzUgNy4wMzEyMUMxOC4wMzQzIDcuMDMxMjEgMTkuMzQ5MyA1Ljc5MjQ1IDE5LjM0OTMgNC4yNjU2QzE5LjM0OTMgMi43Mzg3NiAxOC4wMzQzIDEuNSAxNi40MTM1IDEuNVpNMTYuNDEzNSA3LjAzMTIxQzE0Ljk0NTYgNy4wMzEyMSAxMy42NzI3IDcuNzY5NDIgMTIuOTg4NCA4Ljg3NDk0QzE0LjQ1NjMgOS4wNTg1OSAxNS43MjE2IDkuNzg2MDEgMTYuNTA1MyAxMC44OTE1QzE2LjUwNTMgMTAuNTI0MiAxNi40MTM1IDEwLjE2NDEgMTYuNDEzNSA5Ljc5NjgxQzE2LjQxMzUgOC43ODEzMSAxNi43MTE3IDcuODU1ODQgMTcuMzAwNCA3LjExNzYzQzE3LjAwNiA3LjAyNCAxNi43MDc5IDcuMDMxMjEgMTYuNDEzNSA3LjAzMTIxWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC40Ii8+CjwvZz4KPC9zdmc+Cg==";const Lh=A("div")({name:"Container",class:"ckff0a9",propsAsIs:!1}),Ph=A("div")({name:"Content",class:"czw1kx1",propsAsIs:!1}),Uh=A("div")({name:"InviteGameIconWrap",class:"i2e7ir3",propsAsIs:!1}),Fh=A("img")({name:"InviteGameIcon",class:"i2tfvcu",propsAsIs:!1}),zh=A("div")({name:"Heading",class:"hnq23ee",propsAsIs:!1}),Bh=A("div")({name:"Subtext",class:"s2drh5v",propsAsIs:!1}),Gh=A("button")({name:"InvateBtn",class:"iiwwayv",propsAsIs:!1}),Qh=({inviteCardTitle:e,inviteCardSubtext:t,primaryColor:n})=>T.jsx(Lh,{children:T.jsxs(Ph,{children:[T.jsx(Uh,{style:{backgroundColor:n},children:T.jsx(Fh,{alt:"invite-game-icon",src:Rh})}),T.jsx(zh,{children:e||""}),T.jsx(Bh,{children:t||""}),T.jsx(Gh,{onClick:()=>{},style:{backgroundColor:n},children:"Invite friends!"})]})}),wt={steps:!1,rules:!1,inviteCard:!1},Yh=({gamification:e,closeFeature:t,steps:n,gameIcon:r,sponsorLogo:a,rules:i,rulesBtnLabel:s,rulesTitle:o,primaryColor:u,inviteCardTitle:m,inviteCardSubtext:p,inviteCardBtnLabel:g})=>{const y=async()=>{await e.submitInplay()},k=()=>{t()},[M,S]=x.useState(0),[_,v]=x.useState(wt);x.useEffect(()=>{n!=null&&n.length?v({...wt,steps:!0}):i!=null&&i.length?v({...wt,rules:!0}):v({...wt,inviteCard:!0})},[]);const O=x.useCallback(()=>{n!=null&&n.length&&M<n.length-1?S(L=>++L):i!=null&&i.length&&_.steps?v({...wt,rules:!0}):_.rules&&v({...wt,inviteCard:!0})},[M,n==null?void 0:n.length,i==null?void 0:i.length,_,S,v]);return T.jsxs(ph,{children:[T.jsxs(gh,{children:[T.jsx(hh,{children:r&&T.jsx(kh,{alt:"sponsor-one-onboarding-icon",src:r})}),T.jsxs(Th,{children:[a&&T.jsx(Nh,{alt:"sponsor-two-onboarding-icon",src:a}),T.jsx(bh,{onClick:k,children:T.jsx(Mh,{alt:"icon-close-onboarding",src:ii})})]})]}),T.jsxs(yh,{children:[_.steps&&(n==null?void 0:n.length)&&T.jsx(Eh,{graphic:n[M].graphic,headline:n[M].headline}),_.rules&&T.jsx(jh,{rules:i,rulesTitle:o,primaryColor:u}),_.inviteCard&&T.jsx(Qh,{inviteCardTitle:m,inviteCardSubtext:p,primaryColor:u})]}),T.jsx(Sh,{onClick:_.inviteCard?y:O,children:_.rules?s||"Got it!":_.inviteCard?g||"Play now!":"Next"})]})},Ae=c.makeEnum("streamlayer.interactive.QuestionType",[{no:0,name:"QUESTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_TYPE_POLL",localName:"POLL"},{no:2,name:"QUESTION_TYPE_TRIVIA",localName:"TRIVIA"},{no:3,name:"QUESTION_TYPE_PREDICTION",localName:"PREDICTION"},{no:4,name:"QUESTION_TYPE_FACTOID",localName:"FACTOID"},{no:5,name:"QUESTION_TYPE_TWEET",localName:"TWEET"},{no:6,name:"QUESTION_TYPE_PROMOTION",localName:"PROMOTION"}]),Vh=c.makeEnum("streamlayer.interactive.QuestionSource",[{no:0,name:"QUESTION_SOURCE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SOURCE_AI",localName:"AI"},{no:2,name:"QUESTION_SOURCE_CSV_IMPORT",localName:"CSV_IMPORT"}]),dt=c.makeEnum("streamlayer.interactive.QuestionStatus",[{no:0,name:"QUESTION_STATUS_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_STATUS_NOT_SCHEDULED",localName:"NOT_SCHEDULED"},{no:2,name:"QUESTION_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:3,name:"QUESTION_STATUS_ACTIVE",localName:"ACTIVE"},{no:4,name:"QUESTION_STATUS_RESOLVED",localName:"RESOLVED"}]),Wh=c.makeEnum("streamlayer.interactive.QuestionPosition",[{no:0,name:"QUESTION_POSITION_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_POSITION_DEFAULT",localName:"DEFAULT"},{no:2,name:"QUESTION_POSITION_FIXED_BOTTOM",localName:"FIXED_BOTTOM"}]),Hh=c.makeEnum("streamlayer.interactive.QuestionLayout",[{no:0,name:"QUESTION_LAYOUT_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_LAYOUT_LIST_VIEW",localName:"LIST_VIEW"},{no:2,name:"QUESTION_LAYOUT_GRID_VIEW",localName:"GRID_VIEW"}]),Mn=c.makeEnum("streamlayer.interactive.QuestionImages",[{no:0,name:"QUESTION_IMAGES_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_IMAGES_NONE",localName:"NONE"},{no:2,name:"QUESTION_IMAGES_ROUNDED",localName:"ROUNDED"},{no:3,name:"QUESTION_IMAGES_TRANSPARENT",localName:"TRANSPARENT"},{no:4,name:"QUESTION_IMAGES_CENTERED",localName:"CENTERED"}]),oc=c.makeEnum("streamlayer.interactive.ImagePosition",[{no:0,name:"IMAGE_POSITION_UNSET",localName:"UNSET"},{no:1,name:"IMAGE_POSITION_LEFT",localName:"LEFT"},{no:2,name:"IMAGE_POSITION_RIGHT",localName:"RIGHT"}]),qh=c.makeEnum("streamlayer.interactive.PromotionType",[{no:0,name:"PROMOTION_TYPE_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_TYPE_INGAME_IAB21",localName:"INGAME_IAB21"},{no:2,name:"PROMOTION_TYPE_INGAME_IAB11",localName:"INGAME_IAB11"},{no:3,name:"PROMOTION_TYPE_INGAME_IAB61",localName:"INGAME_IAB61"}]),Zh=c.makeEnum("streamlayer.interactive.PromotionWallet",[{no:0,name:"PROMOTION_WALLET_UNSET",localName:"UNSET"},{no:1,name:"PROMOTION_WALLET_ENABLED",localName:"ENABLED"},{no:2,name:"PROMOTION_WALLET_DISABLED",localName:"DISABLED"}]),Kh=c.makeEnum("streamlayer.interactive.QuestionAutoPostState",[{no:0,name:"QUESTION_AUTO_POST_STATE_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_AUTO_POST_STATE_ON",localName:"ON"},{no:2,name:"QUESTION_AUTO_POST_STATE_OFF",localName:"OFF"},{no:3,name:"QUESTION_AUTO_POST_STATE_PAUSED",localName:"PAUSED"},{no:4,name:"QUESTION_AUTO_POST_STATE_IDLE",localName:"IDLE"}]),Jh=c.makeEnum("streamlayer.interactive.QuestionAutoPostStart",[{no:0,name:"QUESTION_AUTO_POST_START_NONE",localName:"NONE"},{no:1,name:"QUESTION_AUTO_POST_START_TIME",localName:"TIME"}]),Xh=c.makeEnum("streamlayer.interactive.QuestionSkipReason",[{no:0,name:"QUESTION_SKIP_REASON_UNSET",localName:"UNSET"},{no:1,name:"QUESTION_SKIP_REASON_OVERDUE",localName:"OVERDUE"}]),eT=c.makeEnum("streamlayer.interactive.SilenceSetting",[{no:0,name:"SILENCE_SETTING_UNSET",localName:"UNSET"},{no:1,name:"SILENCE_SETTING_ON",localName:"ON"},{no:2,name:"SILENCE_SETTING_OFF",localName:"OFF"}]),tT=c.makeEnum("streamlayer.interactive.ImportStatus",[{no:0,name:"IMPORT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"IMPORT_STATUS_PLANNED",localName:"PLANNED"},{no:2,name:"IMPORT_STATUS_RUNNING",localName:"RUNNING"},{no:3,name:"IMPORT_STATUS_COMPLETED",localName:"COMPLETED"},{no:4,name:"IMPORT_STATUS_FAILED",localName:"FAILED"}]),pi=c.makeMessageType("streamlayer.interactive.QuestionAppearance",()=>[{no:1,name:"layout",kind:"enum",T:c.getEnumType(Hh)},{no:2,name:"images",kind:"enum",T:c.getEnumType(Mn)},{no:3,name:"primary_color",kind:"scalar",T:9},{no:4,name:"position",kind:"enum",T:c.getEnumType(Wh)},{no:5,name:"auto_hide_interval",kind:"scalar",T:4}]),Jt=c.makeMessageType("streamlayer.interactive.Sponsorship",()=>[{no:1,name:"logo",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),Tr=c.makeMessageType("streamlayer.interactive.QuestionNotification",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9},{no:3,name:"indicator_color",kind:"scalar",T:9},{no:4,name:"image_position",kind:"enum",T:c.getEnumType(oc)},{no:5,name:"body",kind:"scalar",T:9},{no:6,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),nT=c.makeMessageType("streamlayer.interactive.QuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13}]),rT=c.makeMessageType("streamlayer.interactive.ExtendedQuestionAnswer",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"text",kind:"scalar",T:9},{no:3,name:"icon",kind:"scalar",T:9},{no:4,name:"correct",kind:"scalar",T:8},{no:5,name:"points",kind:"scalar",T:13},{no:6,name:"percentage",kind:"scalar",T:13},{no:7,name:"you_voted",kind:"scalar",T:8},{no:8,name:"percentage_decimal",kind:"scalar",T:1}]),mt=c.makeMessageType("streamlayer.interactive.AnswerFeedback",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}]),aT=c.makeMessageType("streamlayer.interactive.FileLink",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"thumbnail_url",kind:"scalar",T:9}]),iT=c.makeMessageType("streamlayer.interactive.WebLink",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}]),sT=c.makeMessageType("streamlayer.interactive.CTAButton",()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"color",kind:"scalar",T:9}]),oT=c.makeMessageType("streamlayer.interactive.Banner",()=>[{no:1,name:"image_url",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"cta_button",kind:"message",T:sT}]),yi=c.makeMessageType("streamlayer.interactive.QuestionOptions",()=>[{no:1,name:"poll",kind:"message",T:lT,oneof:"options"},{no:2,name:"trivia",kind:"message",T:uT,oneof:"options"},{no:3,name:"prediction",kind:"message",T:cT,oneof:"options"},{no:4,name:"factoid",kind:"message",T:dT,oneof:"options"},{no:5,name:"tweet",kind:"message",T:mT,oneof:"options"},{no:6,name:"promotion",kind:"message",T:pT,oneof:"options"}]),lT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PollOptions",[],{localName:"QuestionOptions_PollOptions"}),uT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TriviaOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:mt},{no:2,name:"incorrect_feedback",kind:"message",T:mt},{no:3,name:"points",kind:"scalar",T:4}],{localName:"QuestionOptions_TriviaOptions"}),cT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PredictionOptions",()=>[{no:1,name:"correct_feedback",kind:"message",T:mt},{no:2,name:"incorrect_feedback",kind:"message",T:mt}],{localName:"QuestionOptions_PredictionOptions"}),dT=c.makeMessageType("streamlayer.interactive.QuestionOptions.FactoidOptions",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"video",kind:"message",T:aT},{no:4,name:"web_link",kind:"message",T:iT}],{localName:"QuestionOptions_FactoidOptions"}),mT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions",()=>[{no:1,name:"tweet_url",kind:"scalar",T:9},{no:2,name:"tweet_id",kind:"scalar",T:9},{no:3,name:"tweet_meta",kind:"message",T:fT}],{localName:"QuestionOptions_TweetOptions"}),fT=c.makeMessageType("streamlayer.interactive.QuestionOptions.TweetOptions.TweetMetadata",()=>[{no:1,name:"account",kind:"scalar",T:9},{no:2,name:"account_verified",kind:"scalar",T:8},{no:3,name:"has_media",kind:"scalar",T:8}],{localName:"QuestionOptions_TweetOptions_TweetMetadata"}),pT=c.makeMessageType("streamlayer.interactive.QuestionOptions.PromotionOptions",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(qh)},{no:2,name:"sponsor",kind:"message",T:Jt},{no:3,name:"banner",kind:"message",T:oT},{no:4,name:"enable_wallet",kind:"enum",T:c.getEnumType(Zh)}],{localName:"QuestionOptions_PromotionOptions"}),yT=c.makeMessageType("streamlayer.interactive.Tag",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"label",kind:"scalar",T:9},{no:3,name:"last_used_time",kind:"scalar",T:4}]),gT=c.makeMessageType("streamlayer.interactive.QuestionAi",()=>[{no:1,name:"verified",kind:"scalar",T:8}]),lc=c.makeMessageType("streamlayer.interactive.Question",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(Ae)},{no:3,name:"subject",kind:"scalar",T:9,opt:!0},{no:4,name:"options",kind:"message",T:yi},{no:5,name:"appearance",kind:"message",T:pi},{no:6,name:"sponsorship",kind:"message",T:Jt},{no:7,name:"notification",kind:"message",T:Tr},{no:8,name:"answers",kind:"message",T:nT,repeated:!0},{no:9,name:"status",kind:"enum",T:c.getEnumType(dt)},{no:10,name:"position",kind:"scalar",T:13,opt:!0},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"overrides",kind:"map",K:9,V:{kind:"scalar",T:8}},{no:15,name:"event_id",kind:"scalar",T:9},{no:16,name:"stream_timestamp",kind:"message",T:$e},{no:17,name:"tags",kind:"message",T:yT,repeated:!0},{no:18,name:"bypass_notifications",kind:"message",T:Ti},{no:19,name:"import_id",kind:"scalar",T:9},{no:20,name:"activation_trigger_count",kind:"scalar",T:13,opt:!0},{no:21,name:"source",kind:"enum",T:c.getEnumType(Vh)},{no:22,name:"ai",kind:"message",T:gT}]),gi=c.makeMessageType("streamlayer.interactive.ExtendedQuestion",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(Ae)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"options",kind:"message",T:yi},{no:5,name:"appearance",kind:"message",T:pi},{no:6,name:"sponsorship",kind:"message",T:Jt},{no:7,name:"notification",kind:"message",T:Tr},{no:8,name:"answers",kind:"message",T:rT,repeated:!0},{no:9,name:"status",kind:"enum",T:c.getEnumType(dt)},{no:10,name:"position",kind:"scalar",T:13},{no:11,name:"market_closed",kind:"scalar",T:8},{no:12,name:"activated_at",kind:"scalar",T:9},{no:13,name:"answer_set_at",kind:"scalar",T:9},{no:14,name:"event_id",kind:"scalar",T:9},{no:15,name:"bypass_notifications",kind:"message",T:Ti}]);c.makeMessageType("streamlayer.interactive.QuestionTimeline",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(Ae)},{no:3,name:"subject",kind:"scalar",T:9},{no:4,name:"activated_at",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:c.getEnumType(dt)},{no:6,name:"options",kind:"message",T:yi},{no:7,name:"notification",kind:"message",T:Tr}]);const uc=c.makeMessageType("streamlayer.interactive.EventModeration",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"sponsorship",kind:"message",T:Jt},{no:4,name:"onboarding_enabled",kind:"scalar",T:8},{no:5,name:"question",kind:"message",T:hT},{no:6,name:"sponsors",kind:"message",T:NT},{no:7,name:"notification",kind:"message",T:bT},{no:8,name:"activated_at",kind:"message",T:$e},{no:9,name:"deactivated_at",kind:"message",T:$e},{no:10,name:"question_auto_post",kind:"message",T:MT},{no:11,name:"bypass_notifications",kind:"message",T:Ti},{no:12,name:"importer_collaboration",kind:"message",T:wT}]),hT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings",()=>[{no:1,name:"appearance",kind:"message",T:pi},{no:2,name:"trivia",kind:"message",T:TT},{no:3,name:"prediction",kind:"message",T:kT},{no:4,name:"correct_feedbacks",kind:"message",T:mt,repeated:!0},{no:5,name:"incorrect_feedbacks",kind:"message",T:mt,repeated:!0}],{localName:"EventModeration_QuestionSettings"}),TT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.TriviaCardSettings",()=>[{no:1,name:"points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_TriviaCardSettings"}),kT=c.makeMessageType("streamlayer.interactive.EventModeration.QuestionSettings.PredictionCardSettings",()=>[{no:1,name:"max_points",kind:"scalar",T:13}],{localName:"EventModeration_QuestionSettings_PredictionCardSettings"}),NT=c.makeMessageType("streamlayer.interactive.EventModeration.SponsorshipSettings",()=>[{no:1,name:"sponsors",kind:"message",T:Jt,repeated:!0}],{localName:"EventModeration_SponsorshipSettings"}),bT=c.makeMessageType("streamlayer.interactive.EventModeration.NotificationSettings",()=>[{no:1,name:"image",kind:"scalar",T:9},{no:2,name:"indicator_color",kind:"scalar",T:9},{no:3,name:"image_position",kind:"enum",T:c.getEnumType(oc)},{no:4,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}],{localName:"EventModeration_NotificationSettings"}),MT=c.makeMessageType("streamlayer.interactive.QuestionAutoPost",()=>[{no:1,name:"state",kind:"enum",T:c.getEnumType(Kh)},{no:2,name:"interval",kind:"scalar",T:13},{no:3,name:"next_post_time",kind:"message",T:$e},{no:4,name:"start_mode",kind:"enum",T:c.getEnumType(Jh)},{no:5,name:"start_options",kind:"message",T:ST}]),ST=c.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions",()=>[{no:1,name:"time",kind:"message",T:IT,oneof:"options"}]),IT=c.makeMessageType("streamlayer.interactive.QuestionAutoPostStartOptions.TimeOptions",()=>[{no:1,name:"timestamp",kind:"scalar",T:4}],{localName:"QuestionAutoPostStartOptions_TimeOptions"});c.makeMessageType("streamlayer.interactive.AnswerData",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13}]);const hi=c.makeMessageType("streamlayer.interactive.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5},{no:3,name:"cursor",kind:"scalar",T:9}]),vT=c.makeMessageType("streamlayer.interactive.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.interactive.QuestionStats",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"question",kind:"message",T:$T},{no:3,name:"statistics",kind:"message",T:AT,repeated:!0}]);const $T=c.makeMessageType("streamlayer.interactive.QuestionStats.QuestionData",()=>[{no:1,name:"status",kind:"enum",T:c.getEnumType(dt)}],{localName:"QuestionStats_QuestionData"}),AT=c.makeMessageType("streamlayer.interactive.AnswerVotesStats",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"votes",kind:"message",T:ET}]),ET=c.makeMessageType("streamlayer.interactive.AnswerVotesStats.AnswerVotesData",()=>[{no:1,name:"count",kind:"scalar",T:13},{no:2,name:"percentage",kind:"scalar",T:13}],{localName:"AnswerVotesStats_AnswerVotesData"});c.makeMessageType("streamlayer.interactive.ServerNotificationOptions",()=>[{no:1,name:"silence",kind:"scalar",T:8},{no:2,name:"skip_update",kind:"scalar",T:8}]);const Ti=c.makeMessageType("streamlayer.interactive.BypassNotifications",()=>[{no:1,name:"in_app_silence",kind:"enum",T:c.getEnumType(eT)}]),OT=c.makeMessageType("streamlayer.interactive.ImportError",()=>[{no:1,name:"row_id",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]),DT=c.makeMessageType("streamlayer.interactive.ImportProgress",()=>[{no:1,name:"import_id",kind:"scalar",T:9},{no:2,name:"status",kind:"enum",T:c.getEnumType(tT)},{no:3,name:"errors",kind:"message",T:OT,repeated:!0},{no:4,name:"last_updated",kind:"message",T:$e}]),wT=c.makeMessageType("streamlayer.interactive.ImporterCollaboration",()=>[{no:1,name:"imports",kind:"map",K:9,V:{kind:"message",T:DT}}]),un=c.makeEnum("streamlayer.interactive.feed.PickHistoryStatus",[{no:0,name:"PICK_HISTORY_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PICK_HISTORY_STATUS_WON",localName:"WON"},{no:2,name:"PICK_HISTORY_STATUS_LOST",localName:"LOST"},{no:3,name:"PICK_HISTORY_STATUS_DNP",localName:"DNP"}]),cc=c.makeMessageType("streamlayer.interactive.feed.FeedQuestion",()=>[{no:1,name:"question",kind:"message",T:lc},{no:2,name:"notification",kind:"message",T:Tr},{no:3,name:"moderation",kind:"message",T:uc}]),_T=c.makeMessageType("streamlayer.interactive.feed.SubscriptionRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9},{no:2,name:"feed_id",kind:"scalar",T:9}]),CT=c.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:xT}]),xT=c.makeMessageType("streamlayer.interactive.feed.SubscriptionResponse.SubscriptionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:cc}],{localName:"SubscriptionResponse_SubscriptionResponseData"}),jT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionRequest",()=>[{no:1,name:"feed_id",kind:"scalar",T:9},{no:2,name:"question_id",kind:"scalar",T:9}]),RT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:LT}]),LT=c.makeMessageType("streamlayer.interactive.feed.VotingSubscriptionResponse.VotingSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ki,repeated:!0}],{localName:"VotingSubscriptionResponse_VotingSubscriptionResponseData"}),PT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscription",()=>[{no:1,name:"question",kind:"message",T:gi}]),UT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),FT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:zT}]),zT=c.makeMessageType("streamlayer.interactive.feed.QuestionSubscriptionResponse.QuestionSubscriptionResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:PT}],{localName:"QuestionSubscriptionResponse_QuestionSubscriptionResponseData"}),BT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUser",()=>[{no:1,name:"question",kind:"message",T:gi}]),GT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserRequest",()=>[{no:1,name:"question_id",kind:"scalar",T:9}]),QT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse",()=>[{no:1,name:"data",kind:"message",T:YT}]),YT=c.makeMessageType("streamlayer.interactive.feed.QuestionByUserResponse.QuestionByUserResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:BT}],{localName:"QuestionByUserResponse_QuestionByUserResponseData"}),VT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest",()=>[{no:1,name:"filter",kind:"message",T:WT}]),WT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionRequest.SyncQuestionRequestFilter",()=>[{no:1,name:"event_id",kind:"scalar",T:9}],{localName:"SyncQuestionRequest_SyncQuestionRequestFilter"}),HT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:qT}]),qT=c.makeMessageType("streamlayer.interactive.feed.SyncQuestionResponse.SyncQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:cc}],{localName:"SyncQuestionResponse_SyncQuestionResponseData"}),ZT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),KT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:JT}]),JT=c.makeMessageType("streamlayer.interactive.feed.GetQuestionResponse.GetQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:lc}],{localName:"GetQuestionResponse_GetQuestionResponseData"}),XT=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),e2=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse",()=>[{no:1,name:"data",kind:"message",T:t2}]),t2=c.makeMessageType("streamlayer.interactive.feed.QuestionDetailResponse.QuestionDetailResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:gi}],{localName:"QuestionDetailResponse_QuestionDetailResponseData"}),ki=c.makeMessageType("streamlayer.interactive.feed.AnswerVoteResult",()=>[{no:1,name:"answer_id",kind:"scalar",T:9},{no:2,name:"percentage",kind:"scalar",T:13},{no:3,name:"voted",kind:"scalar",T:8},{no:4,name:"correct",kind:"scalar",T:8}]),n2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest",()=>[{no:1,name:"data",kind:"message",T:r2}]),r2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerRequest.SubmitRequestData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9}],{localName:"SubmitAnswerRequest_SubmitRequestData"}),a2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse",()=>[{no:1,name:"data",kind:"message",T:i2}]),i2=c.makeMessageType("streamlayer.interactive.feed.SubmitAnswerResponse.SubmitAnswerResponseData",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ki,repeated:!0}],{localName:"SubmitAnswerResponse_SubmitAnswerResponseData"}),s2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest",()=>[{no:1,name:"data",kind:"message",T:o2}]),o2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayRequest.SubmitRequestData",()=>[{no:1,name:"event_id",kind:"scalar",T:13}],{localName:"SubmitInplayRequest_SubmitRequestData"}),l2=c.makeMessageType("streamlayer.interactive.feed.SubmitInplayResponse",[]),u2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest",()=>[{no:1,name:"data",kind:"message",T:c2}]),c2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionRequest.SkipQuestionRequestData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"reason",kind:"enum",T:c.getEnumType(Xh)}],{localName:"SkipQuestionRequest_SkipQuestionRequestData"}),d2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse",()=>[{no:1,name:"data",kind:"message",T:m2}]),m2=c.makeMessageType("streamlayer.interactive.feed.SkipQuestionResponse.SkipQuestionResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:ki,repeated:!0}],{localName:"SkipQuestionResponse_SkipQuestionResponseData"}),f2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryRequest",()=>[{no:1,name:"question_type",kind:"enum",T:c.getEnumType(Ae),repeated:!0},{no:3,name:"event_id",kind:"scalar",T:9},{no:2,name:"pagination",kind:"message",T:hi}]),p2=c.makeMessageType("streamlayer.interactive.feed.PickHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"answer_id",kind:"scalar",T:9},{no:3,name:"status",kind:"enum",T:c.getEnumType(un)},{no:4,name:"question_type",kind:"enum",T:c.getEnumType(Ae)},{no:5,name:"subject",kind:"scalar",T:9},{no:6,name:"text",kind:"scalar",T:9},{no:7,name:"open_for_voting",kind:"scalar",T:8},{no:8,name:"question_status",kind:"enum",T:c.getEnumType(dt)}]),y2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:g2,repeated:!0},{no:2,name:"meta",kind:"message",T:h2}]),g2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseData",()=>[{no:1,name:"attributes",kind:"message",T:p2}],{localName:"PickHistoryResponse_PickHistoryResponseData"}),h2=c.makeMessageType("streamlayer.interactive.feed.PickHistoryResponse.PickHistoryResponseMetadata",()=>[{no:1,name:"total",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"PickHistoryResponse_PickHistoryResponseMetadata"}),T2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),k2=c.makeMessageType("streamlayer.interactive.feed.InsightHistory",()=>[{no:1,name:"question_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),N2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:b2,repeated:!0}]),b2=c.makeMessageType("streamlayer.interactive.feed.InsightHistoryResponse.InsightHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:k2}],{localName:"InsightHistoryResponse_InsightHistoryResponseData"}),M2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),S2=c.makeMessageType("streamlayer.interactive.feed.TweetHistory",()=>[{no:1,name:"tweet_id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9},{no:4,name:"body",kind:"scalar",T:9},{no:5,name:"account",kind:"scalar",T:9},{no:6,name:"account_verified",kind:"scalar",T:8}]),I2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:v2,repeated:!0}]),v2=c.makeMessageType("streamlayer.interactive.feed.TweetHistoryResponse.TweetHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:S2}],{localName:"TweetHistoryResponse_TweetHistoryResponseData"}),$2=c.makeMessageType("streamlayer.interactive.feed.InteractiveFeed",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"options",kind:"message",T:A2},{no:3,name:"moderation",kind:"message",T:uc}]),A2=c.makeMessageType("streamlayer.interactive.feed.FeedOptions",()=>[{no:1,name:"onboarding_enabled",kind:"scalar",T:8}]),E2=c.makeMessageType("streamlayer.interactive.feed.GetRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),O2=c.makeMessageType("streamlayer.interactive.feed.GetResponse",()=>[{no:1,name:"data",kind:"message",T:D2}]),D2=c.makeMessageType("streamlayer.interactive.feed.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$2}],{localName:"GetResponse_GetResponseData"}),w2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9}]),_2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistory",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"image",kind:"scalar",T:9}]),C2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse",()=>[{no:1,name:"data",kind:"message",T:x2,repeated:!0}]),x2=c.makeMessageType("streamlayer.interactive.feed.PromotionHistoryResponse.PromotionHistoryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:_2}],{localName:"PromotionHistoryResponse_PromotionHistoryResponseData"}),j2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameAppearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}]),R2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameMedia",()=>[{no:1,name:"game_icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),L2=c.makeMessageType("streamlayer.sdkSettings.game.common.GamePrize",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"image",kind:"scalar",T:9}]),P2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameOverview",()=>[{no:1,name:"title",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9},{no:3,name:"auto_activate",kind:"scalar",T:8},{no:4,name:"scoring",kind:"scalar",T:8},{no:5,name:"media",kind:"message",T:R2},{no:6,name:"appearance",kind:"message",T:j2},{no:7,name:"prizes",kind:"message",T:L2,repeated:!0},{no:8,name:"completed",kind:"scalar",T:8}]),U2=c.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardMedia",()=>[{no:1,name:"icon",kind:"scalar",T:9},{no:2,name:"sponsor_logo",kind:"scalar",T:9}]),F2=c.makeMessageType("streamlayer.sdkSettings.game.common.TitleCardAppearance",()=>[{no:1,name:"graphic",kind:"scalar",T:9}]),z2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameTitleCard",()=>[{no:1,name:"visible",kind:"scalar",T:8},{no:2,name:"opt_in",kind:"scalar",T:8},{no:3,name:"title",kind:"scalar",T:9},{no:4,name:"subtitle",kind:"scalar",T:9},{no:5,name:"header",kind:"scalar",T:9},{no:6,name:"media",kind:"message",T:U2},{no:7,name:"appearance",kind:"message",T:F2},{no:8,name:"completed",kind:"scalar",T:8}]),B2=c.makeMessageType("streamlayer.sdkSettings.game.common.OnboardingStep",()=>[{no:1,name:"headline",kind:"scalar",T:9},{no:2,name:"body",kind:"scalar",T:9},{no:3,name:"graphic",kind:"scalar",T:9}]),G2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameOnboarding",()=>[{no:1,name:"steps",kind:"message",T:B2,repeated:!0},{no:2,name:"completed",kind:"scalar",T:8}]),Q2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameRules",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"button_label",kind:"scalar",T:9},{no:4,name:"numbers_color",kind:"scalar",T:9},{no:5,name:"rules",kind:"scalar",T:9,repeated:!0},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"terms",kind:"scalar",T:9},{no:8,name:"terms_url",kind:"scalar",T:9}]),Y2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameInviteCard",()=>[{no:1,name:"heading",kind:"scalar",T:9},{no:2,name:"typeface",kind:"scalar",T:9},{no:3,name:"subtext",kind:"scalar",T:9},{no:4,name:"button_label",kind:"scalar",T:9},{no:5,name:"icon_color",kind:"scalar",T:9},{no:6,name:"terms",kind:"scalar",T:9},{no:7,name:"completed",kind:"scalar",T:8}]),V2=c.makeMessageType("streamlayer.sdkSettings.game.common.GameSettings",()=>[{no:1,name:"overview",kind:"message",T:P2},{no:2,name:"title_card",kind:"message",T:z2},{no:3,name:"onboarding",kind:"message",T:G2},{no:4,name:"rules",kind:"message",T:Q2},{no:5,name:"invite_card",kind:"message",T:Y2},{no:6,name:"completed",kind:"scalar",T:8},{no:7,name:"enable",kind:"scalar",T:8}]),W2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationGeneral",()=>[{no:1,name:"default_color",kind:"scalar",T:9},{no:2,name:"points",kind:"scalar",T:13},{no:3,name:"auto_hide_interval",kind:"scalar",T:4},{no:4,name:"insights_history_enabled",kind:"scalar",T:8},{no:5,name:"pick_history_enabled",kind:"scalar",T:8},{no:6,name:"correct_feedbacks",kind:"message",T:mt,repeated:!0},{no:7,name:"incorrect_feedbacks",kind:"message",T:mt,repeated:!0}]),H2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationNotifications",()=>[{no:1,name:"default_image",kind:"scalar",T:9},{no:2,name:"image_mode",kind:"enum",T:c.getEnumType(Mn)}]),q2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSponsorships",()=>[{no:1,name:"rotate",kind:"scalar",T:8},{no:2,name:"no_sponsor",kind:"scalar",T:8},{no:3,name:"sponsors",kind:"message",T:Jt,repeated:!0}]),Z2=c.makeMessageType("streamlayer.sdkSettings.moderation.common.ModerationSettings",()=>[{no:1,name:"general",kind:"message",T:W2},{no:2,name:"notifications",kind:"message",T:H2},{no:3,name:"sponsorships",kind:"message",T:q2}]),ut=c.makeEnum("streamlayer.sdkSettings.SdkOverlayType",[{no:0,name:"SDK_OVERLAY_TYPE_UNSET",localName:"UNSET"},{no:1,name:"SDK_OVERLAY_TYPE_INPLAY",localName:"INPLAY"},{no:2,name:"SDK_OVERLAY_TYPE_MESSAGING",localName:"MESSAGING"},{no:3,name:"SDK_OVERLAY_TYPE_STATISTICS",localName:"STATISTICS"},{no:4,name:"SDK_OVERLAY_TYPE_BETTING",localName:"BETTING"},{no:5,name:"SDK_OVERLAY_TYPE_TWITTER",localName:"TWITTER"},{no:6,name:"SDK_OVERLAY_TYPE_MERCHANDISE",localName:"MERCHANDISE"},{no:7,name:"SDK_OVERLAY_TYPE_CONTESTS",localName:"CONTESTS"},{no:8,name:"SDK_OVERLAY_TYPE_VOICE_CHAT",localName:"VOICE_CHAT"},{no:9,name:"SDK_OVERLAY_TYPE_TICKETS",localName:"TICKETS"},{no:10,name:"SDK_OVERLAY_TYPE_WHOIS_WATCHING",localName:"WHOIS_WATCHING"},{no:11,name:"SDK_OVERLAY_TYPE_PROFILE",localName:"PROFILE"},{no:12,name:"SDK_OVERLAY_TYPE_GAMES",localName:"GAMES"},{no:13,name:"SDK_OVERLAY_TYPE_GOLF_STATISTICS",localName:"GOLF_STATISTICS"},{no:14,name:"SDK_OVERLAY_TYPE_HIGHLIGHTS",localName:"HIGHLIGHTS"},{no:15,name:"SDK_OVERLAY_TYPE_PUBLIC_CHAT",localName:"PUBLIC_CHAT"}]),K2=c.makeEnum("streamlayer.sdkSettings.BettingFavoriteType",[{no:0,name:"BETTING_FAVORITE_TYPE_UNSET",localName:"UNSET"},{no:1,name:"BETTING_FAVORITE_TYPE_LEAGUE",localName:"LEAGUE"},{no:2,name:"BETTING_FAVORITE_TYPE_TEAM",localName:"TEAM"}]),J2=c.makeEnum("streamlayer.sdkSettings.BettingSettingsTextColor",[{no:0,name:"BETTING_SETTINGS_TEXT_COLOR_UNSET",localName:"UNSET"},{no:1,name:"BETTING_SETTINGS_TEXT_COLOR_PRIMARY",localName:"PRIMARY"},{no:2,name:"BETTING_SETTINGS_TEXT_COLOR_GREY",localName:"GREY"},{no:3,name:"BETTING_SETTINGS_TEXT_COLOR_CUSTOM",localName:"CUSTOM"}]),Ni=c.makeEnum("streamlayer.sdkSettings.GetStreamChannelType",[{no:0,name:"GETSTREAM_CHANNEL_TYPE_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_TYPE_LIVESTREAM"},{no:2,name:"GETSTREAM_CHANNEL_TYPE_MESSAGING"},{no:3,name:"GETSTREAM_CHANNEL_TYPE_TEAM"},{no:4,name:"GETSTREAM_CHANNEL_TYPE_COMMERCE"},{no:5,name:"GETSTREAM_CHANNEL_TYPE_GAMING"},{no:6,name:"GETSTREAM_CHANNEL_TYPE_CUSTOM"}]),X2=c.makeEnum("streamlayer.sdkSettings.GetStreamChannelDefault",[{no:0,name:"GETSTREAM_CHANNEL_DEFAULT_UNSET"},{no:1,name:"GETSTREAM_CHANNEL_DEFAULT_TRUE"},{no:2,name:"GETSTREAM_CHANNEL_DEFAULT_FALSE"}]),dc=c.makeEnum("streamlayer.sdkSettings.GetStreamEnabled",[{no:0,name:"GETSTREAM_ENABLED_UNSET"},{no:1,name:"GETSTREAM_ENABLED_TRUE"},{no:2,name:"GETSTREAM_ENABLED_FALSE"}]),e3=c.makeEnum("streamlayer.sdkSettings.LeaderboardKind",[{no:0,name:"LEADERBOARD_KIND_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_KIND_GLOBAL",localName:"GLOBAL"},{no:2,name:"LEADERBOARD_KIND_FRIENDS",localName:"FRIENDS"}]),t3=c.makeEnum("streamlayer.sdkSettings.PresetRuleKey",[{no:0,name:"PRESET_RULE_KEY_UNSET",localName:"UNSET"},{no:1,name:"PRESET_RULE_KEY_SPORT",localName:"SPORT"},{no:2,name:"PRESET_RULE_KEY_LEAGUE",localName:"LEAGUE"},{no:3,name:"PRESET_RULE_KEY_TEAMS",localName:"TEAMS"}]),n3=c.makeEnum("streamlayer.sdkSettings.AdvertisingPlacement",[{no:0,name:"ADVERTISING_PLACEMENT_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_PLACEMENT_DEFAULT",localName:"DEFAULT"},{no:2,name:"ADVERTISING_PLACEMENT_WATCHPARTY_FULLSIZE",localName:"WATCHPARTY_FULLSIZE"},{no:3,name:"ADVERTISING_PLACEMENT_WATCHPARTY_VIDEOPANEL",localName:"WATCHPARTY_VIDEOPANEL"},{no:4,name:"ADVERTISING_PLACEMENT_OVERLAY_NAVBAR",localName:"OVERLAY_NAVBAR"}]);c.makeEnum("streamlayer.sdkSettings.AdvertisingType",[{no:0,name:"ADVERTISING_TYPE_UNSET",localName:"UNSET"},{no:1,name:"ADVERTISING_TYPE_SPONSORS",localName:"SPONSORS"},{no:2,name:"ADVERTISING_TYPE_INTERSTITIALS",localName:"INTERSTITIALS"},{no:3,name:"ADVERTISING_TYPE_BANNERS",localName:"BANNERS"}]);const r3=c.makeMessageType("streamlayer.sdkSettings.TwitterOverlaySettings",()=>[{no:1,name:"accounts",kind:"scalar",T:9,repeated:!0}]),a3=c.makeMessageType("streamlayer.sdkSettings.BettingFavorite",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"icon",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"type",kind:"enum",T:c.getEnumType(K2)}]),i3=c.makeMessageType("streamlayer.sdkSettings.CtaImage",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]),mc=c.makeMessageType("streamlayer.sdkSettings.BrandDefaults",()=>[{no:1,name:"appearance",kind:"message",T:s3}]),s3=c.makeMessageType("streamlayer.sdkSettings.BrandDefaults.Appearance",()=>[{no:1,name:"primary_color",kind:"scalar",T:9},{no:2,name:"secondary_color",kind:"scalar",T:9},{no:3,name:"accent_color",kind:"scalar",T:9}],{localName:"BrandDefaults_Appearance"}),To=c.makeMessageType("streamlayer.sdkSettings.BettingOverlaySettings",()=>[{no:1,name:"favorites",kind:"message",T:a3,repeated:!0},{no:2,name:"primary_color",kind:"scalar",T:9},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"text_color",kind:"enum",T:c.getEnumType(J2)},{no:5,name:"app_installed_text",kind:"scalar",T:9},{no:6,name:"app_not_installed_text",kind:"scalar",T:9},{no:7,name:"text_color_custom",kind:"scalar",T:9},{no:8,name:"cta_image",kind:"message",T:i3}]),o3=c.makeMessageType("streamlayer.sdkSettings.GetStreamSettingsClient",()=>[{no:1,name:"enabled",kind:"enum",T:c.getEnumType(dc)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:5,name:"default_channel_type",kind:"enum",T:c.getEnumType(Ni)}]),Xn=c.makeMessageType("streamlayer.sdkSettings.GetStreamChannel",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"channel_id",kind:"scalar",T:9},{no:4,name:"channel_type",kind:"enum",T:c.getEnumType(Ni)},{no:5,name:"is_default",kind:"enum",T:c.getEnumType(X2)}]),l3=c.makeMessageType("streamlayer.sdkSettings.GetStreamChannels",()=>[{no:1,name:"enabled",kind:"enum",T:c.getEnumType(dc)},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"app_id",kind:"scalar",T:9},{no:4,name:"default_channel_type",kind:"enum",T:c.getEnumType(Ni)},{no:5,name:"default_channel",kind:"message",T:Xn},{no:6,name:"channels",kind:"message",T:Xn,repeated:!0}]),fc=c.makeMessageType("streamlayer.sdkSettings.StreamSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"custom",kind:"scalar",T:8},{no:3,name:"button_icon",kind:"scalar",T:9},{no:4,name:"primary_color",kind:"scalar",T:9},{no:5,name:"secondary_color",kind:"scalar",T:9},{no:6,name:"moderation_primary_color",kind:"scalar",T:9},{no:7,name:"link_share_icon",kind:"scalar",T:9},{no:8,name:"link_share_text",kind:"scalar",T:9},{no:9,name:"brand_defaults",kind:"message",T:mc},{no:10,name:"getstream",kind:"message",T:l3}]),u3=c.makeMessageType("streamlayer.sdkSettings.JWK",()=>[{no:1,name:"alg",kind:"scalar",T:9,opt:!0},{no:2,name:"crv",kind:"scalar",T:9,opt:!0},{no:3,name:"d",kind:"scalar",T:9,opt:!0},{no:4,name:"dp",kind:"scalar",T:9,opt:!0},{no:5,name:"dq",kind:"scalar",T:9,opt:!0},{no:6,name:"e",kind:"scalar",T:9,opt:!0},{no:7,name:"ext",kind:"scalar",T:8,opt:!0},{no:8,name:"k",kind:"scalar",T:9,opt:!0},{no:9,name:"key_ops",kind:"scalar",T:9,repeated:!0},{no:10,name:"kid",kind:"scalar",T:9,opt:!0},{no:11,name:"kty",kind:"scalar",T:9,opt:!0},{no:12,name:"n",kind:"scalar",T:9,opt:!0},{no:13,name:"oth",kind:"message",T:c3,repeated:!0},{no:14,name:"p",kind:"scalar",T:9,opt:!0},{no:15,name:"q",kind:"scalar",T:9,opt:!0},{no:16,name:"qi",kind:"scalar",T:9,opt:!0},{no:17,name:"use",kind:"scalar",T:9,opt:!0},{no:18,name:"x",kind:"scalar",T:9,opt:!0},{no:19,name:"y",kind:"scalar",T:9,opt:!0},{no:20,name:"x5c",kind:"scalar",T:9,repeated:!0},{no:21,name:"x5t",kind:"scalar",T:9,opt:!0},{no:22,name:"x5u",kind:"scalar",T:9,opt:!0}]),c3=c.makeMessageType("streamlayer.sdkSettings.JWK.OTH",()=>[{no:1,name:"d",kind:"scalar",T:9,opt:!0},{no:2,name:"r",kind:"scalar",T:9,opt:!0},{no:3,name:"t",kind:"scalar",T:9,opt:!0}],{localName:"JWK_OTH"}),pc=c.makeMessageType("streamlayer.sdkSettings.OrganizationSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"button_icon",kind:"scalar",T:9},{no:3,name:"tinode_host",kind:"scalar",T:9},{no:4,name:"audience",kind:"scalar",T:9},{no:5,name:"name",kind:"scalar",T:9},{no:6,name:"provider",kind:"scalar",T:9},{no:7,name:"primary_color",kind:"scalar",T:9},{no:8,name:"secondary_color",kind:"scalar",T:9},{no:9,name:"moderation_primary_color",kind:"scalar",T:9},{no:10,name:"link_share_icon",kind:"scalar",T:9},{no:11,name:"link_share_text",kind:"scalar",T:9},{no:12,name:"brand_defaults",kind:"message",T:mc},{no:13,name:"pub",kind:"message",T:u3},{no:14,name:"getstream",kind:"message",T:o3}]),d3=c.makeMessageType("streamlayer.sdkSettings.GamesOverlaySettings",()=>[{no:1,name:"inplay_game",kind:"message",T:V2},{no:2,name:"moderation",kind:"message",T:Z2},{no:3,name:"pinned_leaderboard_id",kind:"scalar",T:9},{no:4,name:"leaderboard_kind",kind:"enum",T:c.getEnumType(e3)}]),ko=c.makeMessageType("streamlayer.sdkSettings.GetStreamOverlaySettings",()=>[{no:1,name:"default_channel",kind:"message",T:Xn},{no:2,name:"channels",kind:"message",T:Xn,repeated:!0}]),Pt=c.makeMessageType("streamlayer.sdkSettings.SdkOverlaySettings",()=>[{no:4,name:"twitter",kind:"message",T:r3,oneof:"overlay_settings"},{no:5,name:"betting",kind:"message",T:To,oneof:"overlay_settings"},{no:6,name:"inplay",kind:"message",T:To,oneof:"overlay_settings"},{no:7,name:"games",kind:"message",T:d3,oneof:"overlay_settings"},{no:8,name:"getstream",kind:"message",T:ko,oneof:"overlay_settings"},{no:9,name:"public_chat",kind:"message",T:ko,oneof:"overlay_settings"}]),m3=c.makeMessageType("streamlayer.sdkSettings.SdkOverlayMeta",()=>[{no:1,name:"organization",kind:"message",T:Pt},{no:2,name:"global_preset",kind:"message",T:Pt},{no:3,name:"preset",kind:"message",T:Pt},{no:4,name:"stream",kind:"message",T:Pt}]),kr=c.makeMessageType("streamlayer.sdkSettings.SdkOverlay",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(ut)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:Pt},{no:6,name:"meta",kind:"message",T:m3},{no:7,name:"enable",kind:"scalar",T:8},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);c.makeMessageType("streamlayer.sdkSettings.SdkOverlayUpdateData",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType(ut)},{no:3,name:"position",kind:"scalar",T:5},{no:4,name:"overwrite",kind:"scalar",T:8},{no:5,name:"settings",kind:"message",T:Pt},{no:8,name:"sdk_enable",kind:"scalar",T:8},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"icon",kind:"scalar",T:9},{no:11,name:"svg_icon",kind:"scalar",T:9},{no:12,name:"enable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"},{no:13,name:"disable_overwrite",kind:"scalar",T:9,oneof:"overwrite_flag"}]);c.makeMessageType("streamlayer.sdkSettings.OverlaysListRequest",[]);c.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse",()=>[{no:1,name:"data",kind:"message",T:f3}]);const f3=c.makeMessageType("streamlayer.sdkSettings.OverlaysListResponse.OverlaysListResponseData",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"attributes",kind:"message",T:kr,repeated:!0}],{localName:"OverlaysListResponse_OverlaysListResponseData"});c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:p3}]);const p3=c.makeMessageType("streamlayer.sdkSettings.GenerateSdkKeyResponse.GenerateSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateSdkKeyResponse_GenerateSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:y3}]);const y3=c.makeMessageType("streamlayer.sdkSettings.RemoveSdkKeyResponse.RemoveSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveSdkKeyResponse_RemoveSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse",()=>[{no:1,name:"data",kind:"message",T:g3}]);const g3=c.makeMessageType("streamlayer.sdkSettings.ListSdkKeyResponse.ListSdkKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"ListSdkKeyResponse_ListSdkKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RegisterTwitterRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"stream_id",kind:"scalar",T:9},{no:3,name:"account",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RegisterTwitterResponse",[]);c.makeMessageType("streamlayer.sdkSettings.Preset",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"rule",kind:"message",T:T3},{no:3,name:"settings",kind:"message",T:h3}]);const h3=c.makeMessageType("streamlayer.sdkSettings.PresetSettings",()=>[{no:1,name:"overlays",kind:"message",T:kr,repeated:!0},{no:2,name:"advertising",kind:"message",T:yc}]),T3=c.makeMessageType("streamlayer.sdkSettings.PresetRule",()=>[{no:1,name:"key",kind:"enum",T:c.getEnumType(t3)},{no:2,name:"value",kind:"scalar",T:9}]),k3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraints",()=>[{no:1,name:"images",kind:"message",T:No},{no:2,name:"videos",kind:"message",T:No}]),No=c.makeMessageType("streamlayer.sdkSettings.AdvertisingConstraint",()=>[{no:1,name:"width",kind:"scalar",T:5},{no:2,name:"height",kind:"scalar",T:5},{no:3,name:"max_file_size",kind:"scalar",T:1},{no:4,name:"mime",kind:"scalar",T:9}]),N3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplate",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"constraints",kind:"map",K:9,V:{kind:"message",T:k3}}]);c.makeMessageType("streamlayer.sdkSettings.AdvertisingTemplates",()=>[{no:1,name:"templates",kind:"message",T:N3,repeated:!0}]);const b3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingImage",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"placement",kind:"enum",T:c.getEnumType(n3)}]),M3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingVideo",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"preview_url",kind:"scalar",T:9},{no:3,name:"file_url",kind:"scalar",T:9},{no:4,name:"background_color",kind:"scalar",T:9}]),S3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingSettings",()=>[{no:1,name:"frequency",kind:"scalar",T:5},{no:2,name:"images",kind:"message",T:b3,repeated:!0},{no:3,name:"videos",kind:"message",T:M3,repeated:!0}]),I3=c.makeMessageType("streamlayer.sdkSettings.AdvertisingOverlaySettings",()=>[{no:1,name:"overlay_type",kind:"enum",T:c.getEnumType(ut)},{no:2,name:"settings",kind:"map",K:9,V:{kind:"message",T:S3}},{no:3,name:"enabled",kind:"scalar",T:8},{no:4,name:"overlay_name",kind:"scalar",T:9},{no:5,name:"use_custom",kind:"scalar",T:8,opt:!0}]),yc=c.makeMessageType("streamlayer.sdkSettings.Advertising",()=>[{no:1,name:"template_id",kind:"scalar",T:9},{no:2,name:"overlay_settings",kind:"map",K:9,V:{kind:"message",T:I3}}]);c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:v3}]);const v3=c.makeMessageType("streamlayer.sdkSettings.GenerateApiKeyResponse.GenerateApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GenerateApiKeyResponse_GenerateApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"token",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:$3}]);const $3=c.makeMessageType("streamlayer.sdkSettings.RemoveApiKeyResponse.RemoveApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9,repeated:!0}],{localName:"RemoveApiKeyResponse_RemoveApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.GetApiKeyRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse",()=>[{no:1,name:"data",kind:"message",T:A3}]);const A3=c.makeMessageType("streamlayer.sdkSettings.GetApiKeyResponse.GetApiKeyResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyResponse_GetApiKeyResponseData"});c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse",()=>[{no:1,name:"data",kind:"message",T:E3}]);const E3=c.makeMessageType("streamlayer.sdkSettings.GetApiKeyStudioResponse.GetApiKeyStudioResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"scalar",T:9}],{localName:"GetApiKeyStudioResponse_GetApiKeyStudioResponseData"}),O3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlBvbGwiPgo8cGF0aCBpZD0iTm90aWZpY2F0aW9uL0ljb24vUG9sbCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik05Ljc3NzggMS42ODQyMVY1LjA1MjYzSDEzLjMzMzNDMTMuODI0MyA1LjA1MjYzIDE0LjIyMjIgNC42NzU2MSAxNC4yMjIyIDQuMjEwNTNWMi41MjYzMkMxNC4yMjIyIDIuMDYxMjMgMTMuODI0MyAxLjY4NDIxIDEzLjMzMzMgMS42ODQyMUg5Ljc3NzhaTTIuNjY2NjcgMEMxLjE5MzkxIDAgMCAxLjEzMTA3IDAgMi41MjYzMlY0LjIxMDUzQzAgNS42MDU3NyAxLjE5MzkxIDYuNzM2ODQgMi42NjY2NyA2LjczNjg0SDEzLjMzMzNDMTQuODA2MSA2LjczNjg0IDE2IDUuNjA1NzcgMTYgNC4yMTA1M1YyLjUyNjMyQzE2IDEuMTMxMDcgMTQuODA2MSAwIDEzLjMzMzMgMEgyLjY2NjY3Wk00LjQ0NDQ2IDEwLjk0NzNIMTMuMzMzM0MxMy44MjQzIDEwLjk0NzMgMTQuMjIyMiAxMS4zMjQzIDE0LjIyMjIgMTEuNzg5NFYxMy40NzM2QzE0LjIyMjIgMTMuOTM4NyAxMy44MjQzIDE0LjMxNTcgMTMuMzMzMyAxNC4zMTU3SDQuNDQ0NDZWMTAuOTQ3M1pNMCAxMS43ODk0QzAgMTAuMzk0MiAxLjE5MzkxIDkuMjYzMSAyLjY2NjY3IDkuMjYzMUgxMy4zMzMzQzE0LjgwNjEgOS4yNjMxIDE2IDEwLjM5NDIgMTYgMTEuNzg5NFYxMy40NzM2QzE2IDE0Ljg2ODkgMTQuODA2MSAxNS45OTk5IDEzLjMzMzMgMTUuOTk5OUgyLjY2NjY3QzEuMTkzOTEgMTUuOTk5OSAwIDE0Ljg2ODkgMCAxMy40NzM2VjExLjc4OTRaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K",D3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikljb24vTm90aWZpY2F0aW9uL1ByZWRpY2l0b24iPgo8cGF0aCBpZD0iSWNvbi9QcmVkaWN0aW9uIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE2IDcuMDA1MjJDMTYgNy4wMDUyMiA5LjIwMDQ4IDYuODE2MDcgOS4yMDA0OCAwQzkuMjAwNDggNi4zNjE2OCAzLjI3NzI5IDYuOTUwNTYgMi40ODc1NiA3LjAwMDc4TDIuNDAwOTQgNy4wMDUyMkMyLjQwMDk0IDcuMDA1MjIgOS4yMDA0OCA3LjE5NDM1IDkuMjAwNDggMTQuMDEwNEM5LjIwMDQ4IDcuNjQ4NzcgMTUuMTIzNCA3LjA1OTg5IDE1LjkxMzEgNy4wMDk2NEwxNiA3LjAwNTIyWk02Ljk3MzgyIDEyLjU2NTJDNi45NzM4MiAxMi41NjUyIDMuNDg2OTEgMTIuNDcyNCAzLjQ4NjkxIDkuMTMwMzNDMy40ODY5MSAxMi4yNDk2IDAuNDQ5NDAyIDEyLjUzODQgMC4wNDQ0MTg2IDEyLjU2M0wwIDEyLjU2NTJDMCAxMi41NjUyIDMuNDg2OTEgMTIuNjU3OSAzLjQ4NjkxIDE2QzMuNDg2OTEgMTIuODgwNyA2LjUyNDI5IDEyLjU5MiA2LjkyOTI3IDEyLjU2NzNMNi45NzM4MiAxMi41NjUyWiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==",w3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikljb24vTm90aWZpY2F0aW9uL1RyaXZpYSI+CjxwYXRoIGlkPSJOb3RpZmljYXRpb24vSWNvbi9Ucml2aWEiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi4wMTY2MyAxLjM4MDhDMC43Mzk5MTMgMS41NTU4NiAtMC4xNTMxNTMgMi43MzI3NiAwLjAyMTkxMiA0LjAwOTQ4TDEuMzgwOCAxMy45MTk2QzEuNTU1ODYgMTUuMTk2MyAyLjczMjc2IDE2LjA4OTQgNC4wMDk0OCAxNS45MTQzTDEzLjkxOTYgMTQuNTU1NEMxNS4xOTYzIDE0LjM4MDMgMTYuMDg5NCAxMy4yMDM0IDE1LjkxNDMgMTEuOTI2N0wxNC41NTU0IDIuMDE2NjNDMTQuMzgwMyAwLjczOTkxMyAxMy4yMDM0IC0wLjE1MzE1MyAxMS45MjY3IDAuMDIxOTEyTDIuMDE2NjMgMS4zODA4Wk05LjU5NjEzIDMuNzg4QzkuMTE0MzEgMy40Njk5MSA4LjQ3ODEzIDMuMzAxNTEgNy43NTY2IDMuMzAxNTFDNy41NDM3NyAzLjMwMTUxIDcuMzI2MjUgMy4zMTY3MSA3LjEwODcyIDMuMzQ0NzhDNi4zODgzNiAzLjQ0MDY3IDUuNjg5MDEgMy43OTAzNCA1LjE4OTY1IDQuMzAxMzhDNC42ODQ0NSA0LjgyMDYyIDQuNDM3NyA1LjQ1NTYzIDQuNTE3MjIgNi4wNDE1MUM0LjU3NDUyIDYuNDc0MiA0LjkwMDc4IDYuNzUzNyA1LjM0NjM1IDYuNzUzN0M1LjM5NDI5IDYuNzUzNyA1LjQ0MzQxIDYuNzUwMiA1LjQ5MTM2IDYuNzQ0MzVDNi4wODc3OCA2LjY2NDgzIDYuMjE2NDIgNi4yNTQzNiA2LjM0MDM2IDUuODU2NzVMNi4zNDA0NSA1Ljg1NjQ4QzYuNDgxOTIgNS40MDQwMSA2LjYxNTM0IDQuOTc3MzEgNy4zODU4NSA0Ljg3NDQ0QzcuNDY1MzcgNC44NjM5MSA3LjU0MTM4IDQuODU4MDYgNy42MTUwNiA0Ljg1ODA2QzguMTY5MzkgNC44NTgwNiA4LjUxNDM2IDUuMTUwNDIgOC41ODQ1NCA1LjY4MjUyQzguNjUzNTMgNi4yMDI5MyA4LjI0MzA3IDYuNjE4MDcgNy44MDY4NCA3LjA1NjZMNy44MDM5MyA3LjA1OTU0QzcuMzE1ODIgNy41NTIzMSA2Ljc2MzkgOC4xMDk1IDYuODY4OTUgOC45MDA4M0M2Ljg5NTg1IDkuMTA1NDggNi45ODU5IDkuMjk0OTMgNy4xMjI3MiA5LjQzNjQ0QzcuMjc4MjYgOS41OTkgNy40ODI5IDkuNjg0MzYgNy43MTMzMSA5LjY4NDM2QzcuNzU1NDEgOS42ODQzNiA3Ljc5ODY4IDkuNjgyMDMgNy44NDMxMSA5LjY3NjE4QzguNDY2OTEgOS41OTMyNCA4LjU1MTYyIDkuMjMxMzkgOC42MzMzOCA4Ljg4MjFMOC42MzM2NSA4Ljg4MDk3TDguNjM2NjEgOC44Njg1OUM4LjY2NzIzIDguNzQwMyA4LjY5ODc3IDguNjA4MTMgOC43NTk5NSA4LjQ4ODA0QzguODQ2NDkgOC4zMTYxMyA5LjA2MjgzIDguMTEyNjUgOS4zMTQyOCA3Ljg3ODc1QzkuOTE0MiA3LjMxODU4IDEwLjczNCA2LjU1MTQzIDEwLjU4MiA1LjQxNTg5QzEwLjQ4NzIgNC43MDYwMyAxMC4xNTUxIDQuMTU3NTcgOS41OTYxMSAzLjc4ODAyTDkuNTk2MTMgMy43ODhaTTguMTE2MDUgMTAuMjhDOC4wNjkyNyAxMC4yOCA4LjAyMTMyIDEwLjI4MzYgNy45NzQ1NCAxMC4yODk0QzcuMzgzOTYgMTAuMzY4OSA2Ljk2NzY1IDEwLjkxMjcgNy4wNDU5OSAxMS41MDMzQzcuMTE3MzMgMTIuMDM3NyA3LjU3ODA4IDEyLjQ0MTIgOC4xMTcyIDEyLjQ0MTJDOC4xNjM5NyAxMi40NDEyIDguMjExOTIgMTIuNDM3NyA4LjI1OTg3IDEyLjQzMThDOC44NTA0NSAxMi4zNTIzIDkuMjY1NiAxMS44MDg1IDkuMTg4NDIgMTEuMjE3OUM5LjExNTkxIDEwLjY4MjMgOC42NTUxNyAxMC4yOCA4LjExNjA1IDEwLjI4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjwvZz4KPC9zdmc+Cg==",_3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrIj4KPHBhdGggaWQ9IlZlY3RvciIgZD0iTTEzLjQzMTUgMy4xODI0Nkw1LjUzMzIxIDExLjA4MDhMMS45OTc3MSA3LjU0NTI3QzEuNTQwNTYgNy4wODgxMSAwLjc5OTkxMyA3LjA4ODExIDAuMzQyODY0IDcuNTQ1MjdDLTAuMTE0Mjg4IDguMDAyNDIgLTAuMTE0Mjg4IDguNzQzMDcgMC4zNDI4NjQgOS4yMDAxMUw0LjcwNTY3IDEzLjU2MjlDNC45MzMzMSAxMy43OTA2IDUuMjM0MTUgMTMuOTA2MyA1LjUzMzA3IDEzLjkwNjNDNS44MzIwMiAxMy45MDYzIDYuMTMwOTYgMTMuNzkyNCA2LjM2MDQ4IDEzLjU2MjlMMTUuMDg2MSA0LjgzNzMxQzE1LjU0MzIgNC4zODAxNiAxNS41NDMyIDMuNjM5NTEgMTUuMDg2MSAzLjE4MjQ2QzE0LjYyOSAyLjcyNTMxIDEzLjg4ODQgMi43MjUzMSAxMy40MzEyIDMuMTgyNDZIMTMuNDMxNVoiIGZpbGw9IiMwMEJENjAiLz4KPC9nPgo8L3N2Zz4K",C3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIyIiB5PSIwLjUwNjEwNCIgd2lkdGg9IjE2LjQ5OTIiIGhlaWdodD0iMi4zNTcwMiIgcng9IjEuMTc4NTEiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDIgMC41MDYxMDQpIiBmaWxsPSIjOWUwYTFmIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB4PSIwLjMzMzAwOCIgeT0iMTIuMTcyOSIgd2lkdGg9IjE2LjQ5OTIiIGhlaWdodD0iMi4zNTcwMiIgcng9IjEuMTc4NTEiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwLjMzMzAwOCAxMi4xNzI5KSIgZmlsbD0iIzllMGExZiIvPgo8L2c+Cjwvc3ZnPgo=",bo="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIHZpZXdCb3g9IjAgMCAxNiAxNyIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZXZyb24iPgo8cGF0aCBpZD0iQ2hldnJvbl8yIiBkPSJNMTIgOC4xNzIyMkMxMiA4LjI4NzgzIDExLjk3ODEgOC4zOTU1MyAxMS45MzQyIDguNDk1MzNDMTEuODkwMyA4LjU5NTEzIDExLjgyMiA4LjY4OTkyIDExLjcyOTIgOC43Nzk3TDYuMzY5NDkgMTMuOTQzOUM2LjIxNDYyIDE0LjA5NjUgNi4wMjc0MiAxNC4xNzI5IDUuODA3ODcgMTQuMTcyOUM1LjY1NzUyIDE0LjE3MjkgNS41MjE5MSAxNC4xMzc5IDUuNDAxMDQgMTQuMDY3OUM1LjI4MDE2IDEzLjk5OCA1LjE4MzEgMTMuOTAzOSA1LjEwOTg2IDEzLjc4NTZDNS4wMzY2MiAxMy42NjczIDUgMTMuNTM0NSA1IDEzLjM4NzNDNSAxMy4xNzIxIDUuMDgyODggMTIuOTgxOCA1LjI0ODYzIDEyLjgxNjRMMTAuMDgwNyA4LjE3MDk1TDUuMjQ4NjMgMy41Mjc5OUM1LjA4Mjg4IDMuMzY0MjUgNSAzLjE3NDM5IDUgMi45NTg0MUM1IDIuODExMTggNS4wMzY2MiAyLjY3ODQyIDUuMTA5ODYgMi41NjAxM0M1LjE4MzEgMi40NDE4MyA1LjI4MDE2IDIuMzQ3NzEgNS40MDEwNCAyLjI3Nzc3QzUuNTIxOTEgMi4yMDc4MiA1LjY1NzUyIDIuMTcyODUgNS44MDc4NyAyLjE3Mjg1QzYuMDI3NDIgMi4xNzI4NSA2LjIxNDYyIDIuMjQ3MzEgNi4zNjk0OSAyLjM5NjI0TDExLjcyOTIgNy41NjQ3M0MxMS44MjExIDcuNjU0NTEgMTEuODg5IDcuNzQ5MDkgMTEuOTMyOSA3Ljg0ODQ2QzExLjk3NjggNy45NDc4NCAxMS45OTkxIDguMDU1NzYgMTIgOC4xNzIyMloiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K";const x3=A("div")({name:"Panel",class:"p1fl4kim",propsAsIs:!1}),j3=A("div")({name:"QuestionTypeIconWrap",class:"qqhwgfn",propsAsIs:!1}),R3=A("img")({name:"QuestionTypeIcon",class:"q1lyf5nv",propsAsIs:!1}),L3=A("div")({name:"QuestionContent",class:"qlmoky7",propsAsIs:!1}),P3=A("div")({name:"QuestionTypeLabel",class:"qp1y7hu",propsAsIs:!1}),U3=A("div")({name:"QuestionSubject",class:"q1de583k",propsAsIs:!1}),F3=A("button")({name:"QuestionActionTitle",class:"ql7tvph",propsAsIs:!1}),z3=A("button")({name:"QuestionActionIcon",class:"qh0ibjl",propsAsIs:!1}),B3=A("img")({name:"QuestionStatusIcon",class:"q1bdpn1b",propsAsIs:!1}),G3=A("span")({name:"QuestionTypeTitle",class:"q6tdooc",propsAsIs:!1}),Q3=A("span")({name:"ExpiredQuestion",class:"e1f2al71",propsAsIs:!1}),Y3={[Ae.POLL]:{label:"Poll",icon:O3},[Ae.TRIVIA]:{label:"Trivia",icon:w3},[Ae.PREDICTION]:{label:"Prediction",icon:D3}},V3={[un.LOST]:C3,[un.WON]:_3,[un.UNSET]:bo,[un.DNP]:bo},W3=({questionId:e,questionType:t,questionStatus:n,subject:r,openForVoting:a,openQuestion:i,status:s})=>{const o=Y3[t];return o===void 0?null:T.jsxs(x3,{onClick:()=>i==null?void 0:i(e),children:[T.jsx(j3,{children:T.jsx(R3,{alt:"question-type-icon",src:o.icon})}),T.jsxs(L3,{children:[T.jsxs(P3,{children:[T.jsx(G3,{children:o.label}),t===Ae.TRIVIA&&n===dt.RESOLVED&&T.jsx(Q3,{children:"Expired"})]}),T.jsx(U3,{children:r||""})]}),a?T.jsx(F3,{children:"play"}):T.jsx(z3,{children:T.jsx(B3,{alt:"question-status-icon",src:V3[s]})})]})};const H3=A("div")({name:"Container",class:"c4iwna9",propsAsIs:!1}),q3=A("div")({name:"Title",class:"th1ieuk",propsAsIs:!1}),Z3=A("div")({name:"ItemsContainer",class:"iiqbvdu",propsAsIs:!1}),K3=({questions:e,openQuestion:t})=>T.jsxs(H3,{children:[T.jsx(q3,{children:"PICK HISTORY"}),T.jsx(Z3,{children:e==null?void 0:e.map(n=>T.jsx(W3,{openQuestion:t,...n},n.questionId))})]}),J3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlRyb3BoeSI+CjxwYXRoIGlkPSJDb21iaW5lZCBTaGFwZSIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yLjc2OTE2IDMuNTAwMDJDMi43NjkxNiA0LjQ5Nzg2IDIuOTQ3MDUgNS4zODM0OCAzLjMwMjgyIDYuMTU2OTJDMi42MjQ5MyA2LjAxODQ3IDIuMDU4ODMgNS43NDg3MiAxLjYwNDUgNS4zNDc2OEMxLjE1MDE3IDQuOTQ2NjMgMC45MjMwMDggNC41NTk5MiAwLjkyMzAwOCA0LjE4NzUyVjMuNTAwMDJIMi43NjkxNlpNMTEuMDc2OCAzLjUwMDAyVjQuMTg3NTJDMTEuMDc2OCA0LjU1OTkyIDEwLjg0OTcgNC45NDY2MyAxMC4zOTUzIDUuMzQ3NjhDOS45NDEgNS43NDg3MiA5LjM3NDkgNi4wMTg0NyA4LjY5NzAxIDYuMTU2OTJDOS4wNTI3OCA1LjM4MzQ4IDkuMjMwNjYgNC40OTc4NiA5LjIzMDY2IDMuNTAwMDJIMTEuMDc2OFpNMTIgNC4xODc1VjMuMjcwODNDMTIgMy4wNzk4NiAxMS45MzI3IDIuOTE3NTQgMTEuNzk4MSAyLjc4Mzg1QzExLjY2MzUgMi42NTAxNyAxMS41IDIuNTgzMzMgMTEuMzA3NyAyLjU4MzMzSDkuMjMwNzdWMS44OTU4M0M5LjIzMDc3IDEuNTgwNzMgOS4xMTc3OSAxLjMxMDk4IDguODkxODMgMS4wODY1OUM4LjY2NTg2IDAuODYyMTk1IDguMzk0MjMgMC43NSA4LjA3NjkyIDAuNzVIMy45MjMwOEMzLjYwNTc3IDAuNzUgMy4zMzQxNCAwLjg2MjE5NSAzLjEwODE3IDEuMDg2NTlDMi44ODIyMSAxLjMxMDk4IDIuNzY5MjMgMS41ODA3MyAyLjc2OTIzIDEuODk1ODNWMi41ODMzM0gwLjY5MjMwOEMwLjQ5OTk5OSAyLjU4MzMzIDAuMzM2NTM5IDIuNjUwMTcgMC4yMDE5MjMgMi43ODM4NUMwLjA2NzMwNyAyLjkxNzU0IDAgMy4wNzk4NiAwIDMuMjcwODNWNC4xODc1QzAgNC41MjY0OCAwLjA5OTc1ODYgNC44Njc4NCAwLjI5OTI3OSA1LjIxMTU5QzAuNDk4Nzk5IDUuNTU1MzQgMC43NjgwMjcgNS44NjU2NyAxLjEwNjk3IDYuMTQyNThDMS40NDU5MiA2LjQxOTQ5IDEuODYxNzggNi42NTIyMyAyLjM1NDU3IDYuODQwODJDMi44NDczNiA3LjAyOTQxIDMuMzY1MzggNy4xMzU2MyAzLjkwODY1IDcuMTU5NTFDNC4xMTA1OCA3LjQxNzMyIDQuMzM4OTQgNy42NDQxIDQuNTkzNzUgNy44Mzk4NEM0Ljc3NjQ0IDguMDAyMTcgNC45MDI2NCA4LjE3NTI0IDQuOTcyMzYgOC4zNTkwNUM1LjA0MjA3IDguNTQyODYgNS4wNzY5MiA4Ljc1NjUxIDUuMDc2OTIgOUM1LjA3NjkyIDkuMjU3ODEgNS4wMDM2MSA5LjQ3NTA0IDQuODU2OTcgOS42NTE2OUM0LjcxMDM0IDkuODI4MzQgNC40NzU5NiA5LjkxNjY3IDQuMTUzODUgOS45MTY2N0MzLjc5MzI3IDkuOTE2NjcgMy40NzIzNiAxMC4wMjUzIDMuMTkxMTEgMTAuMjQyNUMyLjkwOTg1IDEwLjQ1OTcgMi43NjkyMyAxMC43MzMxIDIuNzY5MjMgMTEuMDYyNVYxMS41MjA4QzIuNzY5MjMgMTEuNTg3NyAyLjc5MDg3IDExLjY0MjYgMi44MzQxMyAxMS42ODU1QzIuODc3NCAxMS43Mjg1IDIuOTMyNjkgMTEuNzUgMyAxMS43NUg5QzkuMDY3MzEgMTEuNzUgOS4xMjI2IDExLjcyODUgOS4xNjU4NiAxMS42ODU1QzkuMjA5MTMgMTEuNjQyNiA5LjIzMDc3IDExLjU4NzcgOS4yMzA3NyAxMS41MjA4VjExLjA2MjVDOS4yMzA3NyAxMC43MzMxIDkuMDkwMTUgMTAuNDU5NyA4LjgwODg5IDEwLjI0MjVDOC41Mjc2NCAxMC4wMjUzIDguMjA2NzMgOS45MTY2NyA3Ljg0NjE1IDkuOTE2NjdDNy41MjQwNCA5LjkxNjY3IDcuMjg5NjYgOS44MjgzNCA3LjE0MzAzIDkuNjUxNjlDNi45OTYzOSA5LjQ3NTA0IDYuOTIzMDggOS4yNTc4MSA2LjkyMzA4IDlDNi45MjMwOCA4Ljc1NjUxIDYuOTU3OTMgOC41NDI4NiA3LjAyNzY0IDguMzU5MDVDNy4wOTczNiA4LjE3NTI0IDcuMjIzNTYgOC4wMDIxNyA3LjQwNjI1IDcuODM5ODRDNy42NjEwNiA3LjY0NDEgNy44ODk0MiA3LjQxNzMyIDguMDkxMzUgNy4xNTk1MUM4LjYzNDYyIDcuMTM1NjMgOS4xNTI2NCA3LjAyOTQxIDkuNjQ1NDMgNi44NDA4MkMxMC4xMzgyIDYuNjUyMjMgMTAuNTU0MSA2LjQxOTQ5IDEwLjg5MyA2LjE0MjU4QzExLjIzMiA1Ljg2NTY3IDExLjUwMTIgNS41NTUzNCAxMS43MDA3IDUuMjExNTlDMTEuOTAwMiA0Ljg2Nzg0IDEyIDQuNTI2NDggMTIgNC4xODc1Wk01LjA3MDMzIDUuMzg0OTFMNi4wMzgzIDQuODc1MDNMNy4wMDYyNyA1LjM4NDkxTDYuODIxNCA0LjMwNDk3TDcuNjA0NTEgMy41NDAxNkw2LjUyMjI4IDMuMzgyNkw2LjAzODMgMi40MDAwM0w1LjU1NDMxIDMuMzgyNkw0LjQ3MjA5IDMuNTQwMTZMNS4yNTUxOSA0LjMwNDk3TDUuMDcwMzMgNS4zODQ5MVoiIGZpbGw9IiNGMkM5NEMiLz4KPC9nPgo8L3N2Zz4K",X3=e=>e.split(/\s+/).map(t=>t[0]).join("").toUpperCase();const e4=A("div")({name:"Container",class:"c13i6lze",propsAsIs:!1}),t4=A("div")({name:"Indicator",class:"ix2bv9",propsAsIs:!1}),Dn=({indicator:e,title:t})=>T.jsxs(e4,{children:[T.jsx(t4,{children:e}),T.jsx("p",{children:t})]});const n4=A("div")({name:"Container",class:"c5ghaaw",propsAsIs:!1}),r4=A("div")({name:"Title",class:"txfzjhj",propsAsIs:!1}),a4=A("div")({name:"Indicator",class:"i1v0wmto",propsAsIs:!1}),Mo=({indicator:e,title:t})=>T.jsxs(n4,{children:[T.jsx(r4,{children:t}),T.jsx(a4,{children:e})]});const i4=A("div")({name:"Container",class:"canai20",propsAsIs:!1}),s4=A("div")({name:"TopInfo",class:"tda0d57",propsAsIs:!1}),o4=A("div")({name:"BottomInfo",class:"boqy4xv",propsAsIs:!1}),l4=A("div")({name:"User",class:"u1dtpq3t",propsAsIs:!1}),u4=A("img")({name:"Avatar",class:"ar4jfc",propsAsIs:!1}),c4=A("div")({name:"UserInfo",class:"u1trcvj0",propsAsIs:!1}),d4=A("div")({name:"UserName",class:"u1pie8mc",propsAsIs:!1}),m4=A("div")({name:"UserRating",class:"ucsljfb",propsAsIs:!1}),f4=A("img")({name:"TrophyIcon",class:"tyemu1i",propsAsIs:!1}),p4=A("div")({name:"Rts",class:"rggn4k7",propsAsIs:!1}),y4=A("div")({name:"RtsIndicator",class:"rnmjsbm",propsAsIs:!1}),g4=A("div")({name:"Top",class:"t1i7e651",propsAsIs:!1}),h4=A("div")({name:"Ranks",class:"r1mt107z",propsAsIs:!1}),T4=A("div")({name:"AvatarPlaceholder",class:"apag0gc",propsAsIs:!1}),k4=A("button")({name:"UserAccountBtn",class:"uroanb5",propsAsIs:!1}),N4=({avatar:e,name:t,points:n,grade:r,friendsRank:a,globalRank:i,winStreak:s,correct:o,incorrect:u,successRate:m})=>T.jsxs(i4,{children:[T.jsxs(s4,{children:[T.jsxs(l4,{children:[T.jsxs(k4,{children:[e&&T.jsx(u4,{alt:"avatar",src:e}),!e&&T.jsx(T4,{children:X3(t)})]}),T.jsxs(c4,{children:[T.jsx(d4,{children:t}),T.jsxs(m4,{children:[T.jsx(f4,{alt:"rank-icon",src:J3}),T.jsxs(p4,{children:[T.jsx(y4,{children:n||"-"}),"RTS"]}),T.jsxs(g4,{children:["TOP ",r,"%"]})]})]})]}),T.jsxs(h4,{children:[T.jsx(Mo,{title:"Friens rank",indicator:a||"-"}),T.jsx(Mo,{title:"Global rank",indicator:i||"-"})]})]}),T.jsxs(o4,{children:[T.jsx(Dn,{indicator:s||"-",title:"Win streak"}),T.jsx(Dn,{indicator:o||"-",title:"Correct"}),T.jsx(Dn,{indicator:u||"-",title:"Incorrect"}),T.jsx(Dn,{indicator:`${m||"-"}%`,title:"Success rate"})]})]}),Ba="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiMwMEJENjAiLz4KPC9nPgo8L3N2Zz4K",b4="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3QgeT0iMC4wMDE5NTMxMiIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiByeD0iMTIiIGZpbGw9IiNGODAwMjIiLz4KPHJlY3QgeD0iOC4yNSIgeT0iNy4wMDE5NSIgd2lkdGg9IjEyLjM3NDQiIGhlaWdodD0iMS43Njc3NyIgcng9IjAuODgzODg0IiB0cmFuc2Zvcm09InJvdGF0ZSg0NSA4LjI1IDcuMDAxOTUpIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCB4PSI3IiB5PSIxNS43NTIiIHdpZHRoPSIxMi4zNzQ0IiBoZWlnaHQ9IjEuNzY3NzciIHJ4PSIwLjg4Mzg4NCIgdHJhbnNmb3JtPSJyb3RhdGUoLTQ1IDcgMTUuNzUyKSIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",So="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IkNoZWNrbWFyayI+CjxwYXRoIGlkPSJTZWxlY3RlZCIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMi4wMDJDMjQgMTguNjI5NCAxOC42Mjc0IDI0LjAwMiAxMiAyNC4wMDJDNS4zNzI1OCAyNC4wMDIgMCAxOC42Mjk0IDAgMTIuMDAyQzAgNS4zNzQ1NCA1LjM3MjU4IDAuMDAxOTUzMTIgMTIgMC4wMDE5NTMxMkMxOC42Mjc0IDAuMDAxOTUzMTIgMjQgNS4zNzQ1NCAyNCAxMi4wMDJaTTE3LjQwODYgOC4xNTM1N0MxNi45NCA3LjY4NDk0IDE2LjE4MDIgNy42ODQ5NCAxNS43MTE2IDguMTUzNTdMMTAuNDA3MiAxNC45NTc5TDcuNjI1NzMgMTMuMTAzNkM3LjA3NDI5IDEyLjczNiA2LjMyOTI1IDEyLjg4NSA1Ljk2MTYzIDEzLjQzNjVDNS41OTQwMSAxMy45ODc5IDUuNzQzMDEgMTQuNzMyOSA2LjI5NDQ1IDE1LjEwMDZMOS44OTQ0NSAxNy41MDA2QzEwLjM3MDQgMTcuODE3OSAxMS4wMDQxIDE3Ljc1NTEgMTEuNDA4NiAxNy4zNTA2TDE3LjQwODYgOS44NTA2M0MxNy44NzcyIDkuMzgyIDE3Ljg3NzIgOC42MjIyIDE3LjQwODYgOC4xNTM1N1oiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8L3N2Zz4K";const gc=A("div")({name:"Container",class:"c4emhbe",propsAsIs:!1}),M4=()=>gc,S4=A(M4())({name:"AnsweredContainer",class:"a1a18ay2",propsAsIs:!0}),Io=A("div")({name:"ButtonPct",class:"bvdmnzn",propsAsIs:!1}),vo=A("button")({name:"Button",class:"bz55cek",propsAsIs:!1}),$o=A("img")({name:"Icon",class:"i1u5zlvm",propsAsIs:!1}),Ao=A("span")({name:"Title",class:"tfilm7j",propsAsIs:!1}),Eo=A("span")({name:"Indicators",class:"iqdzfbw",propsAsIs:!1}),Oo=A("div")({name:"CheckIconWrap",class:"ciu4mnt",propsAsIs:!1}),Gr=A("div")({name:"Percentage",class:"pl06bzo",propsAsIs:!1}),Do=A("img")({name:"CheckIcon",class:"c5bwq34",propsAsIs:!1}),I4=({icon:e,id:t,title:n,questionId:r,disabled:a,percentage:i,onVote:s,toggleIsLoadingSubmitAnswer:o,correct:u,questionAnswered:m,hasCorrectAnswer:p,answered:g,points:y,questionType:k})=>m&&g?T.jsxs(S4,{"data-answeredCorrect":(!p||u).toString(),"data-questionAnswered":"false",children:[T.jsx(Io,{style:{width:`${i}%`}}),T.jsxs(vo,{disabled:a,onClick:()=>s(r,t),children:[e&&T.jsx($o,{alt:"option-icon",src:e}),T.jsx(Ao,{children:n}),T.jsxs(Eo,{children:[p&&u&&T.jsx(Oo,{children:T.jsx(Do,{alt:"icon-correct",src:g?So:Ba})}),T.jsxs(Gr,{children:[i,"%"]})]})]})]}):T.jsxs(gc,{"data-questionAnswered":m.toString(),children:[m&&T.jsx(Io,{style:{width:`${i}%`}}),T.jsxs(vo,{disabled:a,onClick:()=>{o(!0),s(r,t)},children:[e&&T.jsx($o,{alt:"option-icon",src:e}),T.jsx(Ao,{children:n}),m?T.jsxs(Eo,{children:[p&&u&&T.jsx(Oo,{children:T.jsx(Do,{alt:"icon-correct",src:g?So:Ba})}),T.jsxs(Gr,{children:[i,"%"]})]}):k===Ae.PREDICTION?T.jsxs(Gr,{children:[y," pts"]}):null]})]});const v4=A("div")({name:"Container",class:"cgz6mxc",propsAsIs:!1}),$4=A("div")({name:"Title",class:"ta6van7",propsAsIs:!1}),A4=A("div")({name:"Options",class:"o1msgqq4",propsAsIs:!1}),E4=A("div")({name:"Loader",class:"lq1mbhd",propsAsIs:!1}),O4=A("div")({name:"Feedback",class:"f9kw2xt",propsAsIs:!1}),D4=A("img")({name:"FeedbackIcon",class:"fn7neu6",propsAsIs:!1}),w4=A("div")({name:"FeedbackTitle",class:"fpdq7m5",propsAsIs:!1}),_4=A("div")({name:"FeedbackDescription",class:"f1ljy63t",propsAsIs:!1}),C4=({title:e,questionId:t,options:n,questionAnswered:r,feedbackMessages:a,questionAnsweredCorrectly:i,questionType:s})=>{const[o,u]=x.useState(!1),m=x.useCallback(p=>{u(p)},[u]);return x.useEffect(()=>{m(!1)},[n,m]),T.jsxs(v4,{children:[T.jsx($4,{children:e}),T.jsxs(A4,{children:[o&&T.jsx(E4,{children:"Loading..."}),n.map(p=>T.jsx(I4,{toggleIsLoadingSubmitAnswer:m,questionId:t,questionType:s,...p},p.id))]}),r&&s===Ae.TRIVIA&&T.jsxs(O4,{children:[T.jsx(D4,{alt:"reaction-to-answer",src:i?Ba:b4}),T.jsxs("div",{children:[T.jsx(w4,{children:i?a.correctFeedback.title:a.incorrectFeedback.title}),T.jsx(_4,{children:i?a.correctFeedback.description:a.incorrectFeedback.description})]})]})]})};class x4{}window.storeLogger=Object.create(null);class Nr{constructor(t,n){$(this,"store");$(this,"name");this.store=t,this.name=n}getStore(){return this.store}}const j4=e=>{const t=Object.keys(e);return De.computed(t.map(n=>e[n].getStore()),(...n)=>Object.fromEntries(t.map((r,a)=>[r,n[a]])))};class mn extends Nr{constructor(){super(...arguments);$(this,"getValues",()=>this.getStore().get());$(this,"getValue",n=>this.getStore().get()[n]);$(this,"setValue",(n,r)=>this.getStore().setKey(n,r));$(this,"subscribe",(...n)=>this.getStore().subscribe(...n));$(this,"unsubscribe",()=>this.getStore().off())}}const fn=e=>De.map(e);var xt=(e=>(e.ORGANIZATION="ORGANIZATION",e.STREAM="STREAM",e))(xt||{});const R4={[ut.BETTING]:"betting",[ut.GAMES]:"games",[ut.PUBLIC_CHAT]:"publicChat",[ut.TWITTER]:"twitter"};var bt=(e=>(e.Ready="ready",e.Suspended="suspended",e))(bt||{});class hc{constructor({settings:t,...n},r){$(this,"status");$(this,"source");$(this,"config");$(this,"settings");$(this,"listeners",new Set);$(this,"settingsKey");$(this,"enable",()=>{this.status.set("ready")});$(this,"disable",()=>{this.status.set("suspended")});$(this,"setFeatureConfig",({settings:t,...n})=>{let r;for(r in n)this.config.setValue(r,n[r]);if((t==null?void 0:t.overlaySettings.case)===this.settingsKey){const a=t.overlaySettings.value;if(a!==void 0){let i;for(i in a)console.log(i,a[i]),a[i]!==0&&a[i]!==""&&this.settings.setValue(i,a[i])}}});$(this,"update",(t,n)=>{this.source==="STREAM"&&n==="ORGANIZATION"||(this.setFeatureConfig(t),this.source=n)});this.settingsKey=R4[n.type],this.status=De.atom("suspended"),this.config=new mn(fn(n),`feature:config:${this.settingsKey}`),this.settingsKey!==void 0&&(t==null?void 0:t.overlaySettings.case)===this.settingsKey?this.settings=new mn(fn(t.overlaySettings.value),`feature:settings:${this.settingsKey}`):this.settings=new mn(fn({}),`feature:settings:${this.settingsKey}`),this.source=r}get featureConfig(){return this.config.getStore()}get featureSettings(){return this.settings.getStore()}registerEventListener(t){this.listeners.add(t)}fireEvent(t){for(const n of this.listeners.values())try{n.onEvent(t)}catch(r){console.error(r)}}}class Ce extends Nr{constructor(){super(...arguments);$(this,"getValue",()=>this.getStore().get());$(this,"setValue",n=>this.getStore().set(n));$(this,"subscribe",n=>this.getStore().subscribe(n));$(this,"unsubscribe",()=>this.getStore().off())}getValues(){throw new Error("not implemented")}listen(n){return this.getStore().listen(n)}get(){return this.getStore().get()}}const xe=e=>De.atom(e),L4=(e,t)=>De.computed(e,t);class Ge extends Nr{constructor(n,r,a){super(n,`api:${r}`);$(this,"atomStore");$(this,"getAtomStore",()=>this.atomStore);$(this,"getValue",async()=>{const n=this.getStore();if(n.value===void 0)throw new Error("no store");return await n.value.promise,n.get().data});$(this,"getValues",()=>{throw new Error("not implemented")});$(this,"setValue",n=>this.getStore().set({loading:!1,data:n==null?void 0:n.data}));$(this,"subscribe",n=>this.getStore().subscribe(n));$(this,"unsubscribe",()=>{throw new Error("not implemented")});$(this,"invalidate",()=>{this.store.invalidate()});$(this,"listen",n=>this.getStore().listen(n));$(this,"key",()=>this.getStore().key);$(this,"off",()=>this.getStore().off());this.atomStore=De.atom(),a&&n.subscribe(i=>{this.atomStore.set(a(i))})}get(){throw new Error("not implemented")}}function ge(e){return typeof e=="function"}function P4(e){return ge(e==null?void 0:e.lift)}function Xt(e){return function(t){if(P4(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var Ga=function(e,t){return Ga=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},Ga(e,t)};function gt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ga(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function U4(e,t,n,r){function a(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function o(p){try{m(r.next(p))}catch(g){s(g)}}function u(p){try{m(r.throw(p))}catch(g){s(g)}}function m(p){p.done?i(p.value):a(p.value).then(o,u)}m((r=r.apply(e,t||[])).next())})}function Tc(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(m){return function(p){return u([m,p])}}function u(m){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,m[0]&&(n=0)),n;)try{if(r=1,a&&(i=m[0]&2?a.return:m[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,m[1])).done)return i;switch(a=0,i&&(m=[m[0]&2,i.value]),m[0]){case 0:case 1:i=m;break;case 4:return n.label++,{value:m[1],done:!1};case 5:n.label++,a=m[1],m=[0];continue;case 7:m=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(m[0]===6||m[0]===2)){n=0;continue}if(m[0]===3&&(!i||m[1]>i[0]&&m[1]<i[3])){n.label=m[1];break}if(m[0]===6&&n.label<i[1]){n.label=i[1],i=m;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(m);break}i[2]&&n.ops.pop(),n.trys.pop();continue}m=t.call(e,n)}catch(p){m=[6,p],a=0}finally{r=i=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}}function Yt(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Vt(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),a,i=[],s;try{for(;(t===void 0||t-- >0)&&!(a=r.next()).done;)i.push(a.value)}catch(o){s={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function Wt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function zt(e){return this instanceof zt?(this.v=e,this):new zt(e)}function F4(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),a,i=[];return a={},s("next"),s("throw"),s("return"),a[Symbol.asyncIterator]=function(){return this},a;function s(y){r[y]&&(a[y]=function(k){return new Promise(function(M,S){i.push([y,k,M,S])>1||o(y,k)})})}function o(y,k){try{u(r[y](k))}catch(M){g(i[0][3],M)}}function u(y){y.value instanceof zt?Promise.resolve(y.value.v).then(m,p):g(i[0][2],y)}function m(y){o("next",y)}function p(y){o("throw",y)}function g(y,k){y(k),i.shift(),i.length&&o(i[0][0],i[0][1])}}function z4(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Yt=="function"?Yt(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(o,u){s=e[i](s),a(o,u,s.done,s.value)})}}function a(i,s,o,u){Promise.resolve(u).then(function(m){i({value:m,done:o})},s)}}var kc=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Nc(e){return ge(e==null?void 0:e.then)}function bc(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Qr=bc(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
39
39
  `+n.map(function(r,a){return a+1+") "+r.toString()}).join(`
40
- `):"",this.name="UnsubscriptionError",this.errors=n}});function er(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Sn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,a,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Yt(s),u=o.next();!u.done;u=o.next()){var m=u.value;m.remove(this)}}catch(S){t={error:S}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else s.remove(this);var p=this.initialTeardown;if(ge(p))try{p()}catch(S){i=S instanceof Gr?S.errors:[S]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var y=Yt(g),k=y.next();!k.done;k=y.next()){var M=k.value;try{wo(M)}catch(S){i=i??[],S instanceof Gr?i=Wt(Wt([],Vt(i)),Vt(S.errors)):i.push(S)}}}catch(S){r={error:S}}finally{try{k&&!k.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}}if(i)throw new Gr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)wo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&er(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&er(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Mc=Sn.EMPTY;function Sc(e){return e instanceof Sn||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function wo(e){ge(e)?e():e.unsubscribe()}var Ic={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ga={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=Ga.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Wt([e,t],Vt(n))):setTimeout.apply(void 0,Wt([e,t],Vt(n)))},clearTimeout:function(e){var t=Ga.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function vc(e){Ga.setTimeout(function(){throw e})}function Qa(){}function Fn(e){e()}var Ni=function(e){yt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Sc(n)&&n.add(r)):r.destination=Y4,r}return t.create=function(n,r,a){return new Ya(n,r,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Sn),B4=Function.prototype.bind;function Qr(e,t){return B4.call(e,t)}var G4=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){wn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){wn(r)}else wn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){wn(n)}},e}(),Ya=function(e){yt(t,e);function t(n,r,a){var i=e.call(this)||this,s;if(ge(n)||!n)s={next:n??void 0,error:r??void 0,complete:a??void 0};else{var o;i&&Ic.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return i.unsubscribe()},s={next:n.next&&Qr(n.next,o),error:n.error&&Qr(n.error,o),complete:n.complete&&Qr(n.complete,o)}):s=n}return i.destination=new G4(s),i}return t}(Ni);function wn(e){vc(e)}function Q4(e){throw e}var Y4={closed:!0,next:Qa,error:Q4,complete:Qa},bi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $c(e){return e}function V4(e){return e.length===0?$c:e.length===1?e[0]:function(n){return e.reduce(function(r,a){return a(r)},n)}}var je=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var a=this,i=H4(t)?t:new Ya(t,n,r);return Fn(function(){var s=a,o=s.operator,u=s.source;i.add(o?o.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=_o(n),new n(function(a,i){var s=new Ya({next:function(o){try{t(o)}catch(u){i(u),s.unsubscribe()}},error:i,complete:a});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[bi]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return V4(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=_o(t),new t(function(r,a){var i;n.subscribe(function(s){return i=s},function(s){return a(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function _o(e){var t;return(t=e??Ic.Promise)!==null&&t!==void 0?t:Promise}function W4(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}function H4(e){return e&&e instanceof Ni||W4(e)&&Sc(e)}function Ac(e){return ge(e[bi])}function Ec(e){return Symbol.asyncIterator&&ge(e==null?void 0:e[Symbol.asyncIterator])}function Oc(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function q4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Dc=q4();function wc(e){return ge(e==null?void 0:e[Dc])}function _c(e){return F4(this,arguments,function(){var n,r,a,i;return Tc(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,zt(n.read())];case 3:return r=s.sent(),a=r.value,i=r.done,i?[4,zt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,zt(a)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Cc(e){return ge(e==null?void 0:e.getReader)}function en(e){if(e instanceof je)return e;if(e!=null){if(Ac(e))return Z4(e);if(kc(e))return K4(e);if(Nc(e))return J4(e);if(Ec(e))return xc(e);if(wc(e))return X4(e);if(Cc(e))return ek(e)}throw Oc(e)}function Z4(e){return new je(function(t){var n=e[bi]();if(ge(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function K4(e){return new je(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function J4(e){return new je(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,vc)})}function X4(e){return new je(function(t){var n,r;try{for(var a=Yt(e),i=a.next();!i.done;i=a.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}function xc(e){return new je(function(t){tk(e,t).catch(function(n){return t.error(n)})})}function ek(e){return xc(_c(e))}function tk(e,t){var n,r,a,i;return U4(this,void 0,void 0,function(){var s,o;return Tc(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=z4(e),u.label=1;case 1:return[4,n.next()];case 2:if(r=u.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=u.sent(),a={error:o},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ht(e,t,n,r,a){return new nk(e,t,n,r,a)}var nk=function(e){yt(t,e);function t(n,r,a,i,s,o){var u=e.call(this,n)||this;return u.onFinalize=s,u.shouldUnsubscribe=o,u._next=r?function(m){try{r(m)}catch(p){n.error(p)}}:e.prototype._next,u._error=i?function(m){try{i(m)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=a?function(){try{a()}catch(m){n.error(m)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Ni),rk=function(e){yt(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(Sn),tr={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=tr.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,Wt([e,t],Vt(n))):setInterval.apply(void 0,Wt([e,t],Vt(n)))},clearInterval:function(e){var t=tr.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},ak=function(e){yt(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.scheduler=n,a.work=r,a.pending=!1,a}return t.prototype.schedule=function(n,r){var a;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),tr.setInterval(n.flush.bind(n,this),a)},t.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return r;r!=null&&tr.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,r);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var a=!1,i;try{this.work(n)}catch(s){a=!0,i=s||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,a=n.scheduler,i=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,er(i,this),r!=null&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rk),jc={now:function(){return(jc.delegate||Date).now()},delegate:void 0},Co=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=jc.now,e}(),ik=function(e){yt(t,e);function t(n,r){r===void 0&&(r=Co.now);var a=e.call(this,n,r)||this;return a.actions=[],a._active=!1,a}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,a){for(;n=r.shift();)n.unsubscribe();throw a}},t}(Co),Rc=new ik(ak),sk=Rc;function Lc(e){return e&&ge(e.schedule)}function ok(e){return e instanceof Date&&!isNaN(e)}function lk(e,t,n){e===void 0&&(e=0),n===void 0&&(n=sk);var r=-1;return t!=null&&(Lc(t)?n=t:r=t),new je(function(a){var i=ok(e)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){a.closed||(a.next(s++),0<=r?this.schedule(void 0,r):a.complete())},i)})}function uk(e){return e[e.length-1]}function Pc(e){return Lc(uk(e))?e.pop():void 0}function ct(e,t,n,r,a){r===void 0&&(r=0),a===void 0&&(a=!1);var i=t.schedule(function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!a)return i}function Uc(e,t){return t===void 0&&(t=0),Xt(function(n,r){n.subscribe(Ht(r,function(a){return ct(r,e,function(){return r.next(a)},t)},function(){return ct(r,e,function(){return r.complete()},t)},function(a){return ct(r,e,function(){return r.error(a)},t)}))})}function Fc(e,t){return t===void 0&&(t=0),Xt(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function ck(e,t){return en(e).pipe(Fc(t),Uc(t))}function dk(e,t){return en(e).pipe(Fc(t),Uc(t))}function mk(e,t){return new je(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function fk(e,t){return new je(function(n){var r;return ct(n,t,function(){r=e[Dc](),ct(n,t,function(){var a,i,s;try{a=r.next(),i=a.value,s=a.done}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),function(){return ge(r==null?void 0:r.return)&&r.return()}})}function zc(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(function(n){ct(n,t,function(){var r=e[Symbol.asyncIterator]();ct(n,t,function(){r.next().then(function(a){a.done?n.complete():n.next(a.value)})},0,!0)})})}function pk(e,t){return zc(_c(e),t)}function yk(e,t){if(e!=null){if(Ac(e))return ck(e,t);if(kc(e))return mk(e,t);if(Nc(e))return dk(e,t);if(Ec(e))return zc(e,t);if(wc(e))return fk(e,t);if(Cc(e))return pk(e,t)}throw Oc(e)}function Bc(e,t){return t?yk(e,t):en(e)}function Gc(e,t){return Xt(function(n,r){var a=0;n.subscribe(Ht(r,function(i){r.next(e.call(t,i,a++))}))})}function gk(e,t,n,r,a,i,s,o){var u=[],m=0,p=0,g=!1,y=function(){g&&!u.length&&!m&&t.complete()},k=function(S){return m<r?M(S):u.push(S)},M=function(S){i&&t.next(S),m++;var _=!1;en(n(S,p++)).subscribe(Ht(t,function(v){a==null||a(v),i?k(v):t.next(v)},function(){_=!0},void 0,function(){if(_)try{m--;for(var v=function(){var O=u.shift();s?ct(t,s,function(){return M(O)}):M(O)};u.length&&m<r;)v();y()}catch(O){t.error(O)}}))};return e.subscribe(Ht(t,k,function(){g=!0,y()})),function(){o==null||o()}}function br(e,t,n){return n===void 0&&(n=1/0),ge(t)?br(function(r,a){return Gc(function(i,s){return t(r,i,a,s)})(en(e(r,a)))},n):(typeof t=="number"&&(n=t),Xt(function(r,a){return gk(r,a,e,n)}))}function hk(e){return e===void 0&&(e=1/0),br($c,e)}function Tk(){return hk(1)}var kk=bc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qc=function(e){yt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new xo(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new kk},t.prototype.next=function(n){var r=this;Fn(function(){var a,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Yt(r.currentObservers),o=s.next();!o.done;o=s.next()){var u=o.value;u.next(n)}}catch(m){a={error:m}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var r=this;Fn(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var a=r.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;Fn(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,a=this,i=a.hasError,s=a.isStopped,o=a.observers;return i||s?Mc:(this.currentObservers=null,o.push(n),new Sn(function(){r.currentObservers=null,er(o,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,a=r.hasError,i=r.thrownError,s=r.isStopped;a?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new je;return n.source=this,n},t.create=function(n,r){return new xo(n,r)},t}(je),xo=function(e){yt(t,e);function t(n,r){var a=e.call(this)||this;return a.destination=n,a.source=r,a}return t.prototype.next=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,n)},t.prototype.error=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&a!==void 0?a:Mc},t}(Qc);function Nk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tk()(Bc(e,Pc(e)))}var bk=new je(function(e){return e.complete()});function jo(e){return e<=0?function(){return bk}:Xt(function(t,n){var r=0;t.subscribe(Ht(n,function(a){++r<=e&&(n.next(a),e<=r&&n.complete())}))})}function Mk(){return Xt(function(e,t){e.subscribe(Ht(t,Qa))})}function Sk(e){return Gc(function(){return e})}function Yc(e,t){return t?function(n){return Nk(t.pipe(jo(1),Mk()),n.pipe(Yc(e)))}:br(function(n,r){return en(e(n,r)).pipe(jo(1),Sk(n))})}function Ik(e,t){t===void 0&&(t=Rc);var n=lk(e,t);return Yc(function(){return n})}function vk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pc(e);return Bc(e,n)}class $k{constructor(t,n){$(this,"scheduler");$(this,"displayQueue");$(this,"handlers");$(this,"addToQueue",t=>{this.scheduler.next(t)});$(this,"tick",t=>(this.handlers.onAdd(t),vk(t).pipe(Ik(t.delay||0))));$(this,"subscribe",()=>{this.displayQueue.subscribe(this.handlers.onOut)});this.handlers=n,this.scheduler=new Qc,this.displayQueue=this.scheduler.pipe(br(this.tick,t.concurrency)),this.subscribe()}}let Ak=class{constructor(){$(this,"queue");$(this,"queueList");$(this,"displayQueue");$(this,"add",t=>{if(this.isNewNotify(t.id)){const n=t.close,r=t.action;t.close=(...a)=>{n&&n(a),this.hideNotification(t)},t.action=(...a)=>{r&&r(a),this.hideNotification(t)},this.displayQueue.addToQueue(t)}else console.log("skip notification:",t)});$(this,"showNotification",t=>{const n=new Map(this.queue.getValue());n.set(t.id,t),this.queue.setValue(n)});$(this,"hideNotification",t=>{const n=new Map(this.queue.getValue());n.delete(t.id),this.queue.setValue(n)});$(this,"getQueueStore",()=>this.queueList);$(this,"isNewNotify",t=>{const n=localStorage.getItem(`opened:${t}`);return n?!n:!(this.queue.getValue()||new Map).has(t)});$(this,"markAsViewed",t=>{localStorage.setItem(`opened:${t}`,t)});this.queue=new _e(Ce(new Map),"notifications-queue"),this.displayQueue=new $k({concurrency:1},{onAdd:this.showNotification,onOut:this.hideNotification}),this.queueList=L4(this.queue.getStore(),t=>t?[...t.values()]:[])}};const Ek=(e,t,n)=>{e.notifications=new Ak,e.addNotification=e.notifications.add,e.sdk.getNotificationsStore=()=>e.notifications.getQueueStore(),n()},Ok="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=";const Dk=A("div")({name:"Container",class:"c1ul2v99",propsAsIs:!1}),wk=A("div")({name:"BackgroundBlock",class:"bk6opdu",propsAsIs:!1}),_k=A("img")({name:"Icon",class:"i120vbip",propsAsIs:!1}),Ck=A("div")({name:"ContentWrap",class:"c9vc70l",propsAsIs:!1}),xk=A("img")({name:"SponsorLogo",class:"s12vky1e",propsAsIs:!1}),jk=A("span")({name:"SponsorText",class:"s1uwi25b",propsAsIs:!1}),Rk=A("div")({name:"ContentTitle",class:"c19y9gzk",propsAsIs:!1}),Lk=A("div")({name:"ContentSubtitle",class:"c1bzwyj2",propsAsIs:!1}),Pk=A("button")({name:"ActionBtn",class:"au6cp8o",propsAsIs:!1}),Uk=A("button")({name:"CloseBtn",class:"c8545uy",propsAsIs:!1}),Fk=A("img")({name:"IconClose",class:"iqjineo",propsAsIs:!1}),zk=({onClose:e,onPlay:t,header:n,title:r,subtitle:a,graphicBg:i,icon:s,sponsorLogo:o})=>T.jsxs(Dk,{children:[T.jsx(Uk,{onClick:e,children:T.jsx(Fk,{alt:"icon-close-onboarding-inapp",src:Ok})}),T.jsx(wk,{style:{backgroundImage:`url(${i||""})`},children:s&&T.jsx(_k,{alt:"onboarding-inapp-icon",src:s})}),T.jsxs(Ck,{children:[T.jsxs("div",{children:[T.jsx("div",{children:o?T.jsxs(T.Fragment,{children:[T.jsx(xk,{alt:"sponsor-logo",src:o}),T.jsx(jk,{children:"Presents"})]}):n||""}),T.jsx(Rk,{children:r||""}),T.jsx(Lk,{children:a||""})]}),T.jsx(Pk,{onClick:t,children:"Play"})]})]}),Bk=({sdk:e})=>{const t=e.getNotificationsStore(),n=Qe.useStore(t);return n==null?void 0:n.map(r=>{var a,i;return r&&r.type==="_onboarding"?T.jsx(zk,{onClose:()=>{var s;e.closeFeature(),(s=r==null?void 0:r.close)==null||s.call(r)},onPlay:()=>{var s;e.openFeature("games"),(s=r==null?void 0:r.action)==null||s.call(r)},...r.data},r.id):!((a=r==null?void 0:r.data)!=null&&a.question)||!((i=r==null?void 0:r.data)!=null&&i.notification)?null:T.jsx(cm,{openVoiting:()=>{var s;(s=r==null?void 0:r.action)==null||s.call(r)},closeInApp:()=>{var s;(s=r==null?void 0:r.close)==null||s.call(r)},title:r.data.notification.title,icon:r.data.notification.image,color:r.data.notification.indicatorColor},r.id)})},Gk=({store:e})=>{var n;const{data:t}=Qe.useStore(e);return t!=null&&t.summary?T.jsx(N4,{avatar:t.summary.avatar,name:t.summary.name,points:t.summary.points,grade:"0",friendsRank:t.summary.friendsRank,globalRank:t.summary.rank,winStreak:t.summary.streak,correct:t.summary.correct,incorrect:t.summary.incorrect,successRate:(n=t.percentage)==null?void 0:n.average}):T.jsx("div",{children:"wait user..."})},Qk=({store:e,openQuestion:t})=>{const{data:n}=Qe.useStore(e);return n?T.jsx(K3,{openQuestion:t,questions:n}):T.jsx("div",{children:"wait questions..."})},Yk="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGlkPSJUcm9waHkiPgogICAgICA8cGF0aCBpZD0iQ29tYmluZWQgU2hhcGUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi43NjkxNiAzLjUwMDAyQzIuNzY5MTYgNC40OTc4NiAyLjk0NzA1IDUuMzgzNDggMy4zMDI4MiA2LjE1NjkyQzIuNjI0OTMgNi4wMTg0NyAyLjA1ODgzIDUuNzQ4NzIgMS42MDQ1IDUuMzQ3NjhDMS4xNTAxNyA0Ljk0NjYzIDAuOTIzMDA4IDQuNTU5OTIgMC45MjMwMDggNC4xODc1MlYzLjUwMDAySDIuNzY5MTZaTTExLjA3NjggMy41MDAwMlY0LjE4NzUyQzExLjA3NjggNC41NTk5MiAxMC44NDk3IDQuOTQ2NjMgMTAuMzk1MyA1LjM0NzY4QzkuOTQxIDUuNzQ4NzIgOS4zNzQ5IDYuMDE4NDcgOC42OTcwMSA2LjE1NjkyQzkuMDUyNzggNS4zODM0OCA5LjIzMDY2IDQuNDk3ODYgOS4yMzA2NiAzLjUwMDAySDExLjA3NjhaTTEyIDQuMTg3NVYzLjI3MDgzQzEyIDMuMDc5ODYgMTEuOTMyNyAyLjkxNzU0IDExLjc5ODEgMi43ODM4NUMxMS42NjM1IDIuNjUwMTcgMTEuNSAyLjU4MzMzIDExLjMwNzcgMi41ODMzM0g5LjIzMDc3VjEuODk1ODNDOS4yMzA3NyAxLjU4MDczIDkuMTE3NzkgMS4zMTA5OCA4Ljg5MTgzIDEuMDg2NTlDOC42NjU4NiAwLjg2MjE5NSA4LjM5NDIzIDAuNzUgOC4wNzY5MiAwLjc1SDMuOTIzMDhDMy42MDU3NyAwLjc1IDMuMzM0MTQgMC44NjIxOTUgMy4xMDgxNyAxLjA4NjU5QzIuODgyMjEgMS4zMTA5OCAyLjc2OTIzIDEuNTgwNzMgMi43NjkyMyAxLjg5NTgzVjIuNTgzMzNIMC42OTIzMDhDMC40OTk5OTkgMi41ODMzMyAwLjMzNjUzOSAyLjY1MDE3IDAuMjAxOTIzIDIuNzgzODVDMC4wNjczMDcgMi45MTc1NCAwIDMuMDc5ODYgMCAzLjI3MDgzVjQuMTg3NUMwIDQuNTI2NDggMC4wOTk3NTg2IDQuODY3ODQgMC4yOTkyNzkgNS4yMTE1OUMwLjQ5ODc5OSA1LjU1NTM0IDAuNzY4MDI3IDUuODY1NjcgMS4xMDY5NyA2LjE0MjU4QzEuNDQ1OTIgNi40MTk0OSAxLjg2MTc4IDYuNjUyMjMgMi4zNTQ1NyA2Ljg0MDgyQzIuODQ3MzYgNy4wMjk0MSAzLjM2NTM4IDcuMTM1NjMgMy45MDg2NSA3LjE1OTUxQzQuMTEwNTggNy40MTczMiA0LjMzODk0IDcuNjQ0MSA0LjU5Mzc1IDcuODM5ODRDNC43NzY0NCA4LjAwMjE3IDQuOTAyNjQgOC4xNzUyNCA0Ljk3MjM2IDguMzU5MDVDNS4wNDIwNyA4LjU0Mjg2IDUuMDc2OTIgOC43NTY1MSA1LjA3NjkyIDlDNS4wNzY5MiA5LjI1NzgxIDUuMDAzNjEgOS40NzUwNCA0Ljg1Njk3IDkuNjUxNjlDNC43MTAzNCA5LjgyODM0IDQuNDc1OTYgOS45MTY2NyA0LjE1Mzg1IDkuOTE2NjdDMy43OTMyNyA5LjkxNjY3IDMuNDcyMzYgMTAuMDI1MyAzLjE5MTExIDEwLjI0MjVDMi45MDk4NSAxMC40NTk3IDIuNzY5MjMgMTAuNzMzMSAyLjc2OTIzIDExLjA2MjVWMTEuNTIwOEMyLjc2OTIzIDExLjU4NzcgMi43OTA4NyAxMS42NDI2IDIuODM0MTMgMTEuNjg1NUMyLjg3NzQgMTEuNzI4NSAyLjkzMjY5IDExLjc1IDMgMTEuNzVIOUM5LjA2NzMxIDExLjc1IDkuMTIyNiAxMS43Mjg1IDkuMTY1ODYgMTEuNjg1NUM5LjIwOTEzIDExLjY0MjYgOS4yMzA3NyAxMS41ODc3IDkuMjMwNzcgMTEuNTIwOFYxMS4wNjI1QzkuMjMwNzcgMTAuNzMzMSA5LjA5MDE1IDEwLjQ1OTcgOC44MDg4OSAxMC4yNDI1QzguNTI3NjQgMTAuMDI1MyA4LjIwNjczIDkuOTE2NjcgNy44NDYxNSA5LjkxNjY3QzcuNTI0MDQgOS45MTY2NyA3LjI4OTY2IDkuODI4MzQgNy4xNDMwMyA5LjY1MTY5QzYuOTk2MzkgOS40NzUwNCA2LjkyMzA4IDkuMjU3ODEgNi45MjMwOCA5QzYuOTIzMDggOC43NTY1MSA2Ljk1NzkzIDguNTQyODYgNy4wMjc2NCA4LjM1OTA1QzcuMDk3MzYgOC4xNzUyNCA3LjIyMzU2IDguMDAyMTcgNy40MDYyNSA3LjgzOTg0QzcuNjYxMDYgNy42NDQxIDcuODg5NDIgNy40MTczMiA4LjA5MTM1IDcuMTU5NTFDOC42MzQ2MiA3LjEzNTYzIDkuMTUyNjQgNy4wMjk0MSA5LjY0NTQzIDYuODQwODJDMTAuMTM4MiA2LjY1MjIzIDEwLjU1NDEgNi40MTk0OSAxMC44OTMgNi4xNDI1OEMxMS4yMzIgNS44NjU2NyAxMS41MDEyIDUuNTU1MzQgMTEuNzAwNyA1LjIxMTU5QzExLjkwMDIgNC44Njc4NCAxMiA0LjUyNjQ4IDEyIDQuMTg3NVpNNS4wNzAzMyA1LjM4NDkxTDYuMDM4MyA0Ljg3NTAzTDcuMDA2MjcgNS4zODQ5MUw2LjgyMTQgNC4zMDQ5N0w3LjYwNDUxIDMuNTQwMTZMNi41MjIyOCAzLjM4MjZMNi4wMzgzIDIuNDAwMDNMNS41NTQzMSAzLjM4MjZMNC40NzIwOSAzLjU0MDE2TDUuMjU1MTkgNC4zMDQ5N0w1LjA3MDMzIDUuMzg0OTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPC9nPgogIDwvc3ZnPgo=",Vk="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj4KICAgIDxwYXRoIGQ9Ik01LjUgMi43ODg2N1YxMi40MTM3QzUuNSAxMy4xNzI5IDQuODg0MjYgMTMuNzUgNC4xMjUgMTMuNzVIMS4zNzVDMC42MTU3NDIgMTMuNzUgMCAxMy4xMzQzIDAgMTIuNDEzN1YyLjgyNzM0QzAgMi4wNjgwOCAwLjYxNTc0MiAxLjQ5MTAyIDEuMzc1IDEuNDkxMDJINC4xMjVDNC44ODU1NSAxLjQxMzY3IDUuNSAxLjk5Mzc1IDUuNSAyLjc4ODY3Wk0yMiAxMi4zNzA3QzIyIDEzLjUwOTQgMjEuMDc3IDE0LjQzMjMgMTkuOTM3NSAxNC40MzIzSDEzLjY0MjZDMTQuNjIxIDE2LjA2MTMgMTUuMTI1OSAxNy45MDc3IDE1LjEyNTkgMTguNTU4MkMxNS4xMjUgMTkuNTcxNCAxNC4zMzAxIDIwLjYyNSAxMi45OTggMjAuNjI1QzEwLjI4NTQgMjAuNjI1IDExLjg2NTQgMTcuMzUyOSA4LjM0ODgzIDE0LjU0MDZMNy42NDg0NCAxMy45ODJDNy4xNDE0MSAxMy41NzM4IDYuODgzNTkgMTIuOTc2NiA2Ljg3OTMgMTIuMzc1QzYuODc4MjkgMTIuMzc0IDYuODc5MyAxMi4zNzUgNi44NzkzIDEyLjM3NUw2Ljg3NSA1LjVDNi44NzUgNC44NTExNyA3LjE4MDY0IDQuMjM5NzMgNy43IDMuODUwNDNMOS4xNjY5NSAyLjc1MDg2QzEwLjM1NTUgMS44NTYyNSAxMS44MDM1IDEuMzc1IDEzLjI5MDIgMS4zNzVIMTUuODEyNUMxNi45NTIgMS4zNzUgMTcuODc1IDIuMjk3NTQgMTcuODc1IDMuNDM2NjRDMTcuODc1IDMuNTkyODMgMTcuODU0NCAzLjc0MzU3IDE3LjgyMTUgMy44ODk5NkMxOC42NDg0IDQuMTU5MzcgMTkuMjUgNC45MjQyMiAxOS4yNSA1Ljg0Mzc1QzE5LjI1IDYuMjM2ODMgMTkuMTM0MSA2LjYwMDQzIDE4Ljk0MzIgNi45MTI4MUMxOS44OTg4IDcuMDg5ODQgMjAuNjI1IDcuOTI3NzMgMjAuNjI1IDguOTMzMkMyMC42MjUgOS40NzAzMSAyMC40MTQ4IDkuOTU1IDIwLjA3ODQgMTAuMzIyQzIxLjE0OTIgMTAuMzk0MSAyMiAxMS4yNzkzIDIyIDEyLjM3MDdaIiBmaWxsPSJ3aGl0ZSIvPgogIDwvc3ZnPgo=";const Wk=A("div")({name:"Container",class:"c1ibttgl",propsAsIs:!1}),Hk=A("img")({name:"Logo",class:"l16el447",propsAsIs:!1}),qk=A("div")({name:"RightBlock",class:"rb3jndy",propsAsIs:!1}),Zk=A("button")({name:"ExitBtn",class:"e162i9w9",propsAsIs:!1}),Kk=A("img")({name:"ExitIcon",class:"e1uh0tpp",propsAsIs:!1}),Jk=A("div")({name:"Interactive",class:"i13726cq",propsAsIs:!1}),Xk=()=>e=>e.isSuccess?"#f1be1c":"#da3732",Ro=A("div")({name:"ReactionIconWrap",class:"r1weckaj",propsAsIs:!1,vars:{"r1weckaj-0":[Xk()]}}),Lo=A("img")({name:"ReactionIcon",class:"r1u8ekkw",propsAsIs:!1});const eN=A("div")({name:"Container",class:"c1kt0nvm",propsAsIs:!1}),tN=A("div")({name:"Title",class:"tavk3hk",propsAsIs:!1}),nN=A("div")({name:"PointContainer",class:"p1vdx5su",propsAsIs:!1}),rN=A("span")({name:"Point",class:"p68apx3",propsAsIs:!1}),aN=A("span")({name:"PointLabel",class:"p157xd4a",propsAsIs:!1}),Yr=({points:e})=>T.jsxs(eN,{children:[T.jsx(tN,{children:"YOU WON"}),T.jsxs(nN,{children:[T.jsx(rN,{children:e}),T.jsx(aN,{children:"PTS"})]})]}),iN=({logo:e,points:t,questionAnswered:n,questionAnsweredCorrectly:r,questionType:a,closeQuestion:i,setTimeToExpire:s})=>{const o=!n&&a!==xe.PREDICTION,u=n&&a===xe.TRIVIA,m=u&&r,p=u&&!r,g=n&&a===xe.PREDICTION;return T.jsxs(Wk,{children:[T.jsxs(qk,{children:[T.jsxs(Jk,{children:[o&&T.jsx(Du,{setTimeToExpire:s}),m&&T.jsxs(T.Fragment,{children:[T.jsx(Yr,{points:t}),T.jsx(Ro,{isSuccess:!0,children:T.jsx(Lo,{alt:"reaction-icon",src:Yk})})]}),p&&T.jsxs(T.Fragment,{children:[T.jsx(Yr,{points:0}),T.jsx(Ro,{isSuccess:!1,children:T.jsx(Lo,{alt:"reaction-icon",src:Vk})})]}),g&&T.jsx(Yr,{points:t})]}),T.jsx(Zk,{onClick:i,children:T.jsx(Kk,{alt:"exit-icon",src:ai})})]}),e&&T.jsx(Hk,{src:e})]})},sN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCA2OCAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlZlY3RvciI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTYuNjE1NSA3LjQ0MTQ2SDUwLjcwNjZMNTYuMzA3MiAxMy44NjE1TDUwLjcwNjYgMjAuMjgwNUg1Ni40MzU3TDU5LjE1ODcgMTcuMTM3TDYxLjkwNjggMjAuMjgwNUg2Ny44NEw2Mi4xOSAxMy44MzQ4TDY3Ljc2MzYgNy40NDE0Nkg2Mi4wNjA2TDU5LjM4OTcgMTAuNTYwMkw1Ni42MTU1IDcuNDQxNDZaTTYyLjI3MjEgNy45MTY1OUw1OS4zOTY0IDExLjI3NDdMNTYuNDA5MiA3LjkxNjU5SDUxLjc0NDZMNTYuOTMwNyAxMy44NjE1TDUxLjc0NDcgMTkuODA1NEg1Ni4yMjU3TDU5LjE1NzEgMTYuNDIxM0w2Mi4xMTU2IDE5LjgwNTRINjYuNzk4N0w2MS41NjYgMTMuODM1N0w2Ni43MjYxIDcuOTE2NTlINjIuMjcyMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDQuMzYzNSA3LjQ0MTQ2VjQuNTY0MDZINTAuNzA2NlYwLjA1NTk5OThIMzkuNzAyVjIwLjI4MDVINTAuNzA2NlYxNS43NjAxSDQ0LjM2MzVWMTEuNzc5NEg1MC43MDY2VjcuNDQxNDZINDQuMzYzNVpNNTAuMjQwOCA3LjkxNjU5SDQzLjg5NzhWNC4wODg5M0g1MC4yNDA4VjAuNTMxMTMySDQwLjE2NzhWMTkuODA1NEg1MC4yNDA4VjE2LjIzNTJINDMuODk3OFYxMS4zMDQzSDUwLjI0MDhWNy45MTY1OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0zNS4wNiAwLjA1NTk5OThWOC4zMzI4MUgzNS4wMDg3QzMzLjk4MDMgNy4xMjc4NyAzMi42OTY2IDYuNzA4ODEgMzEuMjA3IDYuNzA4ODFDMjguMTU1MiA2LjcwODgxIDI1Ljg1NjEgOC44MjYgMjUuMDQ5MyAxMS42MjM2QzI0LjEyOCA4LjU0MDkyIDIxLjc1NDQgNi42NTA4NCAxOC4yMzQ5IDYuNjUwODRDMTUuMzc2OSA2LjY1MDg0IDEzLjExOTcgNy45NTkzNiAxMS45NDIyIDEwLjA5MThWNy40NDE0Nkg2LjAzNDE2VjQuNTY0MDZIMTIuNDgxNVYwLjA1NTk5OThIMC43NjgwMDVWMjAuMjgwNUg2LjAzNDE2VjExLjc3OTRIMTEuMjgzNkMxMS4xMjcgMTIuNDAzNyAxMS4wNDMyIDEzLjA3MjcgMTEuMDQzMiAxMy43Nzg4QzExLjA0MzIgMTcuOTk3IDE0LjIwMzEgMjAuOTU4IDE4LjIzNDkgMjAuOTU4QzIxLjYyNTggMjAuOTU4IDIzLjg2MDcgMTkuMzM0IDI1LjA0MTkgMTYuMzc0SDIwLjUyODRDMTkuOTE4MyAxNy4yNjQ0IDE5LjQ1NTMgMTcuNTI3NiAxOC4yMzQ5IDE3LjUyNzZDMTYuODE5OSAxNy41Mjc2IDE1LjU5OTUgMTYuMjY4NSAxNS41OTk1IDE0Ljc3NTZIMjQuNzg5NEMyNS4xODgxIDE4LjEyNjIgMjcuNzQ3MiAyMS4wMTYgMzEuMjU4MiAyMS4wMTZDMzIuNzczIDIxLjAxNiAzNC4xNjAxIDIwLjI1NTggMzUuMDA3OCAxOC45NzI5SDM1LjA1OVYyMC4yODI0SDM5LjcwMUwzOS43MDIgMC4wNTU5OTk4SDM1LjA2Wk0xNS43NDY3IDExLjgzOTNDMTYuMDM5MiAxMC41NTQ1IDE3LjAxNjQgOS43MTU0NSAxOC4yMzU4IDkuNzE1NDVDMTkuNTc4MiA5LjcxNTQ1IDIwLjUwNTEgMTAuNTI4OSAyMC43NDkyIDExLjgzOTNDMjAuODUxNyAxMS44MzkzIDE1Ljc0NjcgMTEuODM5MyAxNS43NDY3IDExLjgzOTNaTTMyLjI0MiAxNy4yMDE2QzMwLjUzMDcgMTcuMjAxNiAyOS40NjY4IDE1LjU3NDggMjkuNDY2OCAxMy44NzY3QzI5LjQ2NjggMTIuMDYxNyAzMC4zOTE5IDEwLjMxNiAzMi4yNDIgMTAuMzE2QzM0LjE2MDEgMTAuMzE2IDM0LjkyNCAxMi4wNjE3IDM0LjkyNCAxMy44NzY3QzM0LjkyNCAxNS41OTc2IDM0LjExNDQgMTcuMjAxNiAzMi4yNDIgMTcuMjAxNloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==";const oN=A("div")({name:"QuestionContainer",class:"q15yq4tu",propsAsIs:!1}),lN=({store:e,closeQuestion:t,vote:n})=>{var m;const{data:r}=Qe.useStore(e),[a,i]=x.useState(!1),s=x.useCallback(p=>{i(p)},[i]),o=x.useMemo(()=>r==null?void 0:r.answers.find(p=>p.youVoted===!0),[r]),u=x.useMemo(()=>!!(r!=null&&r.answers.find(p=>p.correct===!0)),[r]);return r?T.jsx(oN,{children:T.jsxs("div",{children:[T.jsx(iN,{points:(o==null?void 0:o.points)||0,questionAnswered:!!o,questionAnsweredCorrectly:o==null?void 0:o.correct,logo:sN,closeQuestion:t,setTimeToExpire:s,questionType:r.type}),T.jsx("div",{children:T.jsx(C4,{title:r.subject,feedbackMessages:(m=r.options)==null?void 0:m.options.value,questionType:r.type,questionId:r.id,questionAnswered:!!o,questionAnsweredCorrectly:o==null?void 0:o.correct,options:r.answers.map(p=>({id:p.id,title:p.text,icon:p.icon,type:r.type,correct:p.correct,percentage:p.percentage,answered:p.youVoted,disabled:!!o||r.marketClosed||a,questionAnswered:!!o,hasCorrectAnswer:u,onVote:n}))})})]})}):null};const _n=A("div")({name:"DemoContainer",class:"dp9wag8",propsAsIs:!1}),uN=A("div")({name:"DemoContainerNotifications",class:"d15x0q1l",propsAsIs:!1}),cN=A("div")({name:"UserStatisticsContainer",class:"u13pbrok",propsAsIs:!1}),dN=A("div")({name:"QuestionsContainer",class:"qaw537u",propsAsIs:!1}),mN=({gamification:e,sdk:t})=>{var m,p,g,y,k,M,S,_,v,O,L,P,F,z,U,V,H,J,ae,ce,oe,q,le;const n=Qe.useStore(e.status),r=Qe.useStore(e.onbordingComplete),{slStreamId:a}=Qe.useStore(t.sdkStore),i=Qe.useStore(e.featureSettings);if(n!==Nt.Ready)return T.jsx("div",{children:"wait..."});if(a!=null&&a.loading)return T.jsx(_n,{children:T.jsx("div",{children:"Event is loading"})});if(!(a!=null&&a.data))return T.jsx(_n,{children:T.jsx("div",{children:"Event is forbidden"})});if(!r)return T.jsx(_n,{children:T.jsx(Yh,{closeFeature:t.closeFeature,gamification:e,steps:(p=(m=i.inplayGame)==null?void 0:m.onboarding)==null?void 0:p.steps,gameIcon:(k=(y=(g=i.inplayGame)==null?void 0:g.overview)==null?void 0:y.media)==null?void 0:k.gameIcon,sponsorLogo:(_=(S=(M=i.inplayGame)==null?void 0:M.overview)==null?void 0:S.media)==null?void 0:_.sponsorLogo,rules:(O=(v=i.inplayGame)==null?void 0:v.rules)==null?void 0:O.rules,rulesBtnLabel:(P=(L=i.inplayGame)==null?void 0:L.rules)==null?void 0:P.buttonLabel,rulesTitle:(z=(F=i.inplayGame)==null?void 0:F.rules)==null?void 0:z.heading,primaryColor:(H=(V=(U=i.inplayGame)==null?void 0:U.overview)==null?void 0:V.appearance)==null?void 0:H.primaryColor,inviteCardTitle:(ae=(J=i.inplayGame)==null?void 0:J.inviteCard)==null?void 0:ae.heading,inviteCardSubtext:(oe=(ce=i.inplayGame)==null?void 0:ce.inviteCard)==null?void 0:oe.subtext,inviteCardBtnLabel:(le=(q=i.inplayGame)==null?void 0:q.inviteCard)==null?void 0:le.buttonLabel})});const s=Me=>{e.openQuestion(Me)},o=()=>{e.closeQuestion()},u=(Me,De)=>{e.submitAnswer(Me,De)};return T.jsxs(_n,{children:[T.jsx(cN,{children:e.userSummary&&T.jsx(Gk,{store:e.userSummary.getStore()})}),T.jsxs(dN,{children:[e.questions&&T.jsx(Qk,{openQuestion:s,store:e.questions.getStore()}),e.openedQuestion&&T.jsx(lN,{closeQuestion:o,vote:u,store:e.openedQuestion.getStore()})]})]})},fN=({sdk:e})=>{const t=async n=>{try{await e.authorizationBypass("streamlayer:streamlayer",n)}catch(r){throw console.log("login err",r),r}};return T.jsx(fh,{login:t,anonymousLogin:e.anonymousAuthorization,host:e.host})},pN=({activeFeature:e,sdk:t})=>{const[n,r]=x.useState(null);if(x.useEffect(()=>{const a=t.getFeatures();if(e)for(const[i,s]of a)i.toLowerCase()===e.toLowerCase()?s.status.get()===Nt.Suspended&&(s.enable(),r(s)):s.status.get()===Nt.Ready&&s.disable();else{for(const[,i]of a)i.status.get()===Nt.Ready&&i.disable();r(null)}return()=>{for(const[,i]of a)i.status.get()===Nt.Ready&&i.disable()}},[e,t]),e==="games"){const a=n;return a?T.jsxs("div",{children:[T.jsx("button",{onClick:()=>t.closeFeature(),children:"close"}),T.jsx(mN,{gamification:a,sdk:t})]}):T.jsx("div",{children:"wait gamification..."})}return T.jsxs("div",{children:[T.jsx("button",{onClick:()=>t.logout(),children:"logout"}),T.jsx("button",{onClick:()=>t.openFeature("games"),children:"gamification"})]})},yN=({sdk:e})=>{const t=Qe.useStore(e.organizationStore()),n=Qe.useStore(e.getUserStore()),r=Qe.useStore(e.getActiveFeature());return t.loading?T.jsx("div",{children:"authentificating..."}):t.data?n.loading?T.jsx("div",{children:"authentificating..."}):n.data?T.jsxs(T.Fragment,{children:[T.jsx(uN,{children:T.jsx(Bk,{sdk:e})}),T.jsx(pN,{sdk:e,activeFeature:r})]}):T.jsx(fN,{sdk:e}):T.jsx("div",{children:"wrong sdk key..."})};const gN="t12mji3x",hN=({children:e})=>T.jsx("div",{className:gN,children:e});let TN=()=>({events:{},emit(e,...t){let n=this.events[e]||[];for(let r=0,a=n.length;r<a;r++)n[r](...t)},on(e,t){var n;return(n=this.events[e])!=null&&n.push(t)||(this.events[e]=[t]),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(a=>t!==a)}}});const kN=({cache:e=new Map,fetcher:t,...n}={})=>{const r=TN();let a=!0;Bo("visibilitychange",()=>{a=!document.hidden,a&&r.emit(Uo)}),Bo("online",()=>r.emit(Fo));const i=new Map,s=new Map,o=new Map;let u={};const m=async([v,O],L,P,F)=>{var z;if(!a)return;const U=oe=>{L.key===v&&(L.set(oe),r.emit(Vr,v,oe,!0))},V=()=>{U({...L.value,...Qo,promise:o.get(v)})},{dedupeTime:H=4e3,fetcher:J}={...P,...u},ae=Go();if(o.has(v)){L.value.loading||V();return}if(!F){const oe=e.get(v);oe&&L.value.data!==oe&&U({data:oe,...gt});const q=s.get(v);if(q&&q+H>ae)return}const ce=Oe.startTask();try{const oe=J(...O);s.set(v,ae),o.set(v,oe),V();const q=await oe;e.set(v,q),U({data:q,...gt}),s.set(v,Go())}catch(oe){(z=P.onError)==null||z.call(P,oe),U({data:L.value.data,error:oe,...gt})}finally{ce(),o.delete(v)}},p=(v,{fetcher:O=t,...L}={})=>{const P=Oe.map({...gt}),F={...n,...L,fetcher:O};P.invalidate=()=>{const{key:q}=P;q&&k(q)},P.mutate=q=>{const{key:le}=P;le&&M(le,q)};let z,U,V,H,J,ae=[];Oe.onStart(P,()=>{const q=!z;[J,z]=NN(v),H=J.subscribe(ve=>{if(ve){const[ee,b]=ve;P.key=ee,m([ee,b],P,F),U=ee,V=b}else P.key=U=V=void 0});const le=J.get();le&&([U,V]=le,q&&ce());const{refetchInterval:Me=0,refetchOnFocus:De,refetchOnReconnect:we}=F,Se=()=>{U&&m([U,V],P,F)};Me>0&&i.set(v,setInterval(Se,Me)),De&&ae.push(r.on(Uo,Se)),we&&ae.push(r.on(Fo,Se)),ae.push(r.on(zo,ve=>{U&&Wr(U,ve)&&m([U,V],P,F,!0)}),r.on(Vr,(ve,ee,b)=>{U&&Wr(U,ve)&&P.value!==ee&&P.value.data!==ee&&P.set(b?ee:{data:ee,...gt})}))});const ce=()=>{U&&V&&m([U,V],P,F)},oe=P.listen;return P.listen=q=>{const le=oe(q);return q(P.value),ce(),le},Oe.onStop(P,()=>{P.value={...gt},z==null||z(),ae.forEach(le=>le()),ae=[],H==null||H();const q=i.get(v);q&&clearInterval(q)}),P},g=v=>{e.delete(v),s.delete(v)},y=(v,O)=>{for(const L of e.keys())Wr(L,v)&&O(L)},k=v=>{y(v,g),r.emit(zo,v)},M=(v,O)=>{y(v,L=>{O===void 0?g(L):e.set(L,O)}),r.emit(Vr,v,O)};function S(v){const O=async P=>{var F,z;const U=(F=u.fetcher)!=null?F:v,V=[];try{L.set({error:void 0,data:void 0,mutate:O,...Qo});const H=await U({data:P,invalidate:J=>{V.push(J)},getCacheUpdater:(J,ae=!0)=>[ce=>{M(J,ce),ae&&V.push(J)},e.get(J)]});return L.setKey("data",H),H}catch(H){(z=n==null?void 0:n.onError)==null||z.call(n,H),L.setKey("error",H)}finally{L.setKey("loading",!1),V.forEach(k)}},L=Oe.map({mutate:O,...gt});return L.mutate=O,L}return[p,S,{__unsafeOverruleSettings:v=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),u=v},invalidateKeys:k,mutateCache:M}]};function Po(e){return typeof e=="string"||typeof e=="number"}const NN=e=>{if(Po(e))return[Oe.atom([""+e,[e]]),()=>{}];let t=Oe.atom(null),n=[];const r=()=>{n.some(i=>i==null)?t.set(null):t.set([n.join(""),n])},a=[];for(let i=0;i<e.length;i++){const s=e[i];if(Po(s)){n.push(s);continue}a.push(s.subscribe(o=>{n[i]=o,r()}))}return r(),[t,()=>a.forEach(i=>i())]},Uo=1,Fo=2,zo=3,Vr=4,Bo=(e,t)=>{typeof window>"u"||addEventListener(e,t)},Wr=(e,t)=>Array.isArray(t)?t.includes(e):typeof t=="function"?t(e):e===t,Go=()=>new Date().getTime(),Qo={loading:!0},gt={loading:!1};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));class bN{constructor(t,n,r,a){$(this,"params");$(this,"stream");$(this,"method");$(this,"name");$(this,"headers");$(this,"listeners");$(this,"state");$(this,"store");$(this,"updateState",t=>{this.state.setValue("status",t),this.state.setValue("ts",new Date),this.addStateLog(`status => ${t}`)});$(this,"addStateLog",t=>{const n=this.state.getStore().get().log;this.state.setValue("log",[...n,`${new Date().toLocaleString()}: ${t}`])});$(this,"addListener",(t,n)=>this.listeners.has(t)?(this.addStateLog(`listener '${t}' not added`),!1):(this.listeners.set(t,n),this.addStateLog(`listener '${t}' added`),!0));$(this,"removeListener",t=>{this.listeners.delete(t),this.addStateLog(`listener '${t}' removed`)});$(this,"connect",()=>{this.updateState("connecting"),this.stream&&(this.addStateLog("disconnect prev connection"),this.stream());const t="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;this.stream=this.method(t,this.onData,this.onStreamError,{headers:this.headers.getValues()}),this.updateState("connected")});$(this,"disconnect",()=>{this.stream&&this.stream(),this.listeners.clear(),this.updateState("disconnected")});$(this,"reconnect",()=>{this.updateState("reconnecting"),this.connect()});$(this,"getStore",()=>{var t;return(t=this.store)==null?void 0:t.getStore()});$(this,"onData",t=>{this.addStateLog(`received data => ${JSON.stringify(t)}`),this.store&&this.store.setValue(t);for(const[,n]of this.listeners)n(t);this.addStateLog(`data routed to ${this.listeners.size} listeners`)});$(this,"onStreamError",t=>{t!==void 0&&(t.code!==re.Canceled&&t.rawMessage!=="[canceled] BodyStreamBuffer was aborted"?(this.updateState("failed"),this.state.setValue("error",t)):this.disconnect())});const i={status:"init",ts:new Date,log:[]};this.state=new mn(fn(i),`subscription:${a.name}:state`),this.name=a.name,this.headers=t,this.listeners=new Map,this.params=r,this.method=n,a.withStore&&(this.store=new _e(Ce(null),`subscription:${a.name}:store`)),"subscribe"in r&&typeof r.subscribe=="function"&&r.subscribe(()=>{this.reconnect()}),this.updateState("ready")}}class MN{constructor(t){$(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});$(this,"transport");$(this,"nanoquery");$(this,"host");$(this,"interceptors",[]);$(this,"$headers");$(this,"clients");$(this,"callbackClients");$(this,"subscriptions");$(this,"addSubscription",(t,n,r)=>{const a=this.subscriptions.get(n);if(a)return a;const i=new bN(this.$headers,t,n,r);return this.subscriptions.set(n,i),i});$(this,"removeSubscription",t=>{t.disconnect(),this.subscriptions.delete(t.params)});$(this,"disconnect",()=>{for(const[t,n]of this.subscriptions)n.disconnect(),this.subscriptions.delete(t)});$(this,"registerInterceptor",t=>{this.interceptors.push(t)});$(this,"removeInterceptor",t=>{this.interceptors=this.interceptors.filter(n=>n!==t)});$(this,"getClient",t=>{const n=t.typeName;if(this.clients.has(n))return this.clients.get(n);const r=gr(t,this.transport);return this.clients.set(n,r),r});$(this,"getCallbackClient",t=>{const n=t.typeName;if(this.callbackClients.has(n))return this.callbackClients.get(n);const r=i1(t,this.transport);return this.callbackClients.set(n,r),r});$(this,"createPromiseClient",(t,{params:n=[],method:r})=>{const a=this.getClient(t),i=t.methods[r].name,s=[t.typeName,i.charAt(0).toLowerCase()+i.slice(1),...Array.isArray(n)?n:[n]],o=[t.typeName,i.charAt(0).toLowerCase()+i.slice(1)];return{client:a,queryKey:s,queryKeyStr:o.join("")}});$(this,"createCallbackClient",t=>({client:this.getCallbackClient(t)}));$(this,"setSdkKey",t=>{this.$headers.setValue("sdk",t)});$(this,"setAuth",t=>{this.$headers.setValue("authorization",t)});$(this,"setHeader",(t,n)=>this.$headers.setValue(t,n));$(this,"getHeader",t=>this.$headers.getValue(t));$(this,"getHeaders",()=>this.$headers.getValues());$(this,"initInterceptors",()=>{if(this.interceptors.length!==0)return;const t=n=>r=>{const a=this.$headers.getValues();for(const i in a)r.header.set(i,a[i]);return n(r)};this.interceptors.push(t)});var i,s;this.host=t,this.$headers=new mn(fn({"sl-device-id":((s=(i=Q.process)==null?void 0:i.env)==null?void 0:s.NX_DEVICE_ID)||"sdk-web-dev"}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.callbackClients=new Map,this.subscriptions=new Map;const[n,r,a]=kN();this.nanoquery={createFetcherStore:n,createMutatorStore:r,utils:a},this.transport=hr({baseUrl:t,interceptors:this.interceptors,useBinaryFormat:!0})}}const SN=c.makeEnum("streamlayer.sports.LeagueSyncStatus",[{no:0,name:"LEAGUE_SYNC_STATUS_UNSET",localName:"UNSET"},{no:1,name:"LEAGUE_SYNC_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:2,name:"LEAGUE_SYNC_STATUS_IN_PROGRESS",localName:"IN_PROGRESS"},{no:3,name:"LEAGUE_SYNC_STATUS_SYNCED",localName:"SYNCED"},{no:4,name:"LEAGUE_SYNC_STATUS_ERROR",localName:"ERROR"}]),Mi=c.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),Si=c.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),Mr=c.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),Vc=c.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),Sr=c.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),Ir=c.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sports.Team",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"alias",kind:"scalar",T:9},{no:5,name:"venue",kind:"message",T:Ir}]);const In=c.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),Wc=c.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Event",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"league_id",kind:"scalar",T:4},{no:4,name:"season_id",kind:"scalar",T:4},{no:5,name:"home_team_id",kind:"scalar",T:4},{no:6,name:"away_team_id",kind:"scalar",T:4},{no:7,name:"winner_team_id",kind:"scalar",T:4},{no:8,name:"scheduled",kind:"scalar",T:9},{no:9,name:"score_home",kind:"scalar",T:5},{no:10,name:"score_away",kind:"scalar",T:5},{no:11,name:"venue",kind:"message",T:Ir},{no:12,name:"event_time",kind:"message",T:In},{no:13,name:"status",kind:"enum",T:c.getEnumType(Mi)},{no:14,name:"periods",kind:"message",T:Wc,repeated:!0},{no:15,name:"start_time",kind:"scalar",T:9},{no:16,name:"end_time",kind:"scalar",T:9},{no:17,name:"endless",kind:"enum",T:c.getEnumType(Si)}]);const Hc=c.makeMessageType("streamlayer.sports.Country",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"abbreviation",kind:"scalar",T:9}]),IN=c.makeMessageType("streamlayer.sports.PlayerAttributes",()=>[{no:1,name:"display_id",kind:"scalar",T:5},{no:3,name:"full_first",kind:"scalar",T:9},{no:4,name:"full_last",kind:"scalar",T:9},{no:5,name:"uniform",kind:"scalar",T:9},{no:6,name:"height",kind:"message",T:vN},{no:7,name:"weight",kind:"message",T:$N},{no:8,name:"birth",kind:"message",T:AN}]),vN=c.makeMessageType("streamlayer.sports.PlayerAttributes.Height",()=>[{no:1,name:"centimeters",kind:"scalar",T:5},{no:2,name:"inches",kind:"scalar",T:5}],{localName:"PlayerAttributes_Height"}),$N=c.makeMessageType("streamlayer.sports.PlayerAttributes.Weight",()=>[{no:1,name:"kilograms",kind:"scalar",T:5},{no:2,name:"pounds",kind:"scalar",T:5}],{localName:"PlayerAttributes_Weight"}),AN=c.makeMessageType("streamlayer.sports.PlayerAttributes.Birth",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"message",T:Hc}],{localName:"PlayerAttributes_Birth"});c.makeMessageType("streamlayer.sports.PlayerAttributes.Birth.BirthDate",()=>[{no:1,name:"year",kind:"scalar",T:5},{no:2,name:"month",kind:"scalar",T:5},{no:3,name:"date",kind:"scalar",T:5},{no:4,name:"full",kind:"scalar",T:9}],{localName:"PlayerAttributes_Birth_BirthDate"});const EN=c.makeMessageType("streamlayer.sports.PlayerTeam",()=>[{no:1,name:"team_id",kind:"scalar",T:4},{no:2,name:"position",kind:"scalar",T:9},{no:3,name:"jersey_number",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Player",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"first_name",kind:"scalar",T:9},{no:10,name:"last_name",kind:"scalar",T:9},{no:14,name:"display_name",kind:"scalar",T:9},{no:11,name:"birth_date",kind:"scalar",T:9},{no:12,name:"nationality",kind:"message",T:Hc},{no:13,name:"attributes",kind:"message",T:IN},{no:15,name:"teams",kind:"message",T:EN,repeated:!0}]);const mt=c.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Season",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"type",kind:"scalar",T:9},{no:6,name:"year",kind:"scalar",T:5},{no:7,name:"league_id",kind:"scalar",T:4}]);const ln=c.makeMessageType("streamlayer.sports.SyncStatusStage",()=>[{no:1,name:"stage",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4},{no:3,name:"datetime",kind:"scalar",T:9},{no:4,name:"error",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:c.getEnumType(SN)}]),ON=c.makeMessageType("streamlayer.sports.SyncStatus",()=>[{no:1,name:"teams",kind:"message",T:ln},{no:2,name:"event",kind:"message",T:ln},{no:3,name:"events",kind:"message",T:ln},{no:4,name:"players",kind:"message",T:ln},{no:5,name:"leagues",kind:"message",T:ln}]),DN=c.makeMessageType("streamlayer.sports.SyncStatusProvider",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"status",kind:"message",T:ON}]);c.makeMessageType("streamlayer.sports.League",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"country",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9},{no:13,name:"sync",kind:"scalar",T:8},{no:14,name:"sport_id",kind:"scalar",T:4},{no:12,name:"sync_status",kind:"message",T:DN,repeated:!0}]);c.makeMessageType("streamlayer.sports.Sport",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"created",kind:"scalar",T:9},{no:3,name:"updated",kind:"scalar",T:9},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9}]);const wN=c.makeMessageType("streamlayer.sports.NflEventStatistics",()=>[{no:1,name:"passes",kind:"scalar",T:5},{no:2,name:"rushes",kind:"scalar",T:5},{no:3,name:"penalties",kind:"scalar",T:5},{no:4,name:"turnovers",kind:"scalar",T:5}]),_N=c.makeMessageType("streamlayer.sports.SoccerEventStatistics",()=>[{no:1,name:"ball_possession",kind:"scalar",T:5},{no:2,name:"throw_ins",kind:"scalar",T:5},{no:3,name:"fouls",kind:"scalar",T:5},{no:4,name:"goal_kicks",kind:"scalar",T:5},{no:5,name:"free_kicks",kind:"scalar",T:5},{no:6,name:"shots_on_target",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"shots_off_target",kind:"scalar",T:5},{no:9,name:"shots_saved",kind:"scalar",T:5},{no:10,name:"offsides",kind:"scalar",T:5},{no:11,name:"shots_blocked",kind:"scalar",T:5},{no:12,name:"yellow_cards",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.EventTeamStatistics",()=>[{no:1,name:"football",kind:"message",T:wN,oneof:"statistics"},{no:2,name:"soccer",kind:"message",T:_N,oneof:"statistics"}]);const ft=c.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),CN=c.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),xN=c.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),jN=c.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:ft},{no:6,name:"away",kind:"message",T:ft},{no:7,name:"status",kind:"enum",T:c.getEnumType(Mi)},{no:8,name:"custom_fields",kind:"message",T:CN},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:Ir},{no:12,name:"schedule",kind:"message",T:xN,repeated:!0},{no:13,name:"endless",kind:"enum",T:c.getEnumType(Si)}]),vt=c.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:Ir},{no:6,name:"event_time",kind:"message",T:In},{no:7,name:"home_team",kind:"message",T:ft},{no:8,name:"away_team",kind:"message",T:ft},{no:9,name:"status",kind:"enum",T:c.getEnumType(Mi)},{no:10,name:"periods",kind:"message",T:Wc,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9}]),Cn=c.makeMessageType("streamlayer.sports.QueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]),Yo=c.makeMessageType("streamlayer.sports.ArrayQueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9,repeated:!0}]);c.makeMessageType("streamlayer.sports.Query",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"match",kind:"message",T:Cn,repeated:!0},{no:3,name:"ne",kind:"message",T:Cn,repeated:!0},{no:4,name:"eq",kind:"message",T:Cn,repeated:!0},{no:5,name:"between",kind:"message",T:Yo,repeated:!0},{no:6,name:"includes",kind:"message",T:Yo,repeated:!0},{no:7,name:"is",kind:"message",T:Cn,repeated:!0}]);const RN=c.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),LN=c.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),Vo=c.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:qc},{no:2,name:"status",kind:"enum",T:c.getEnumType(RN)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),PN=c.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),UN=c.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:c.getEnumType(LN)},{no:2,name:"player",kind:"message",T:PN}]),FN=c.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),zN=c.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),qc=c.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),Wo=c.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:FN,repeated:!0},{no:2,name:"batting",kind:"message",T:zN,repeated:!0},{no:3,name:"pitching",kind:"message",T:qc,repeated:!0}]),BN=c.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:Vo},{no:2,name:"away_pitcher",kind:"message",T:Vo},{no:3,name:"home_statistics",kind:"message",T:Wo},{no:4,name:"away_statistics",kind:"message",T:Wo}]),GN=c.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:ft},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:QN,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),QN=c.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),YN=c.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:UN,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:mt},{no:9,name:"away_team_record",kind:"message",T:mt}]),VN=c.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:GN,repeated:!0}]),WN=c.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:BN}]),HN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:qN},{no:11,name:"rank",kind:"message",T:ZN},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),qN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),ZN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),KN=c.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:HN,repeated:!0}]),JN=c.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),XN=c.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:mt},{no:9,name:"away_team_record",kind:"message",T:mt}]),Ho=c.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),qo=c.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),eb=c.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(JN)},{no:2,name:"home_player",kind:"message",T:qo},{no:3,name:"away_player",kind:"message",T:qo}]),tb=c.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:Ho},{no:2,name:"away_statistics",kind:"message",T:Ho}]),nb=c.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:tb},{no:2,name:"top_performers",kind:"message",T:eb,repeated:!0},{no:3,name:"last_games",kind:"message",T:Zc}]),rb=c.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:ft},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),ab=c.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:rb,repeated:!0}]),Zo=c.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),ib=c.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:Zo,repeated:!0},{no:2,name:"away_players",kind:"message",T:Zo,repeated:!0}]),sb=c.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:ob},{no:11,name:"rank",kind:"message",T:lb},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),ob=c.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),lb=c.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),ub=c.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:sb,repeated:!0}]),Ko=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),Jo=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:Ko,repeated:!0},{no:4,name:"substitutes",kind:"message",T:Ko,repeated:!0}]),cb=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:Jo},{no:2,name:"away_team",kind:"message",T:Jo}]),Hr=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:db}]),db=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),Zc=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:Hr,repeated:!0},{no:2,name:"away",kind:"message",T:Hr,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:Hr,repeated:!0}]),mb=c.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),Kc=c.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),fb=c.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:mt},{no:9,name:"away_team_record",kind:"message",T:mt}]),Xo=c.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),pb=c.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(mb)},{no:2,name:"home_player",kind:"message",T:Xo,repeated:!0},{no:3,name:"away_player",kind:"message",T:Xo,repeated:!0}]),el=c.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),yb=c.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:el},{no:2,name:"away_statistics",kind:"message",T:el}]),gb=c.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:yb},{no:2,name:"top_performers",kind:"message",T:pb,repeated:!0}]),hb=c.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:ft},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),Tb=c.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:hb,repeated:!0}]),qr=c.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:c.getEnumType(Kc)}]),tl=c.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:c.getEnumType(Kc)}]),nl=c.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:qr,repeated:!0},{no:2,name:"goaltender",kind:"message",T:tl},{no:3,name:"forwards",kind:"message",T:qr,repeated:!0},{no:4,name:"defensemen",kind:"message",T:qr,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:tl,repeated:!0}]),kb=c.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:nl},{no:2,name:"away_players",kind:"message",T:nl}]),Nb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:bb},{no:11,name:"rank",kind:"message",T:Mb},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),bb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),Mb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Sb=c.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:Nb,repeated:!0}]),Ib=c.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),vb=c.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),$b=c.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:mt},{no:9,name:"away_team_record",kind:"message",T:mt}]),Ii=c.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),Ab=c.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:Ii},{no:2,name:"attack_stats",kind:"message",T:Rb}]),Eb=c.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:Ii},{no:2,name:"midfield_stats",kind:"message",T:Lb}]),Ob=c.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:Ii},{no:2,name:"defense_stats",kind:"message",T:Pb}]),Db=c.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(Ib)},{no:2,name:"attack_performer",kind:"message",T:Ab},{no:3,name:"midfield_performer",kind:"message",T:Eb},{no:4,name:"defense_performer",kind:"message",T:Ob}]),wb=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),_b=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),Cb=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),rl=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:wb},{no:2,name:"attacking_stats",kind:"message",T:_b},{no:3,name:"defense_stats",kind:"message",T:Cb}]),xb=c.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:rl},{no:2,name:"away_statistics",kind:"message",T:rl},{no:3,name:"perfomers",kind:"message",T:Db}]),jb=c.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:xb},{no:2,name:"last_games",kind:"message",T:Jc}]),Rb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),Lb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),Pb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.soccer.SoccerMatchOdds",()=>[{no:1,name:"home_team_win",kind:"scalar",T:1},{no:2,name:"draw",kind:"scalar",T:1},{no:3,name:"away_team_win",kind:"scalar",T:1}]);const Ub=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),Fb=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:Ub,repeated:!0}]),al=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),il=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:Fb,repeated:!0},{no:3,name:"start_players",kind:"message",T:al,repeated:!0},{no:4,name:"substitutes",kind:"message",T:al,repeated:!0}]),zb=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:il},{no:2,name:"away_team",kind:"message",T:il}]);c.makeMessageType("streamlayer.sports.soccer.SoccerMatchScore",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"mil",kind:"scalar",T:1},{no:3,name:"round",kind:"scalar",T:9},{no:4,name:"live_url",kind:"scalar",T:9}]);const Bb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:ft},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:c.getEnumType(vb)}]),Gb=c.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:Bb,repeated:!0}]),Qb=c.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),Yb=c.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:Qb,repeated:!0}]),Zr=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:Vb}]),Vb=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),Jc=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:Zr,repeated:!0},{no:2,name:"away",kind:"message",T:Zr,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:Zr,repeated:!0}]),$t=c.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),Wb=c.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:YN,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:XN,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:fb,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:$b,oneof:"sport"}]),Hb=c.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:Wb}]),qb=c.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:jN}]),Xc=c.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:qb}]),Zb=c.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:Kb},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"sort",kind:"message",T:Vc},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),Kb=c.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:c.getEnumType(Si)}],{localName:"ListRequest_Filter"}),Jb=c.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:Xb},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"sort",kind:"message",T:Vc}]),Xb=c.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),eM=c.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:Sr},{no:2,name:"data",kind:"message",T:Xc,repeated:!0}]),tM=c.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:Sr},{no:2,name:"data",kind:"message",T:Xc,repeated:!0}]),sl=c.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),ol=c.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:nM}]),nM=c.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:rM}],{localName:"SummaryResponse_ResponseData"}),rM=c.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:WN,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:nb,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:gb,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:jb,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),aM=c.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),iM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:sM}]),sM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:oM}],{localName:"AdminSummaryResponse_ResponseData"}),oM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),lM=c.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"order",kind:"scalar",T:9}]),uM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:cM},{no:2,name:"meta",kind:"message",T:Sr}]),cM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:dM}],{localName:"PlayByPlayResponse_ResponseData"}),dM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:VN,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:ab,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:Tb,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Gb,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),mM=c.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:fM},{no:2,name:"pagination",kind:"message",T:Mr}]),fM=c.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),pM=c.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:Hb,repeated:!0},{no:2,name:"meta",kind:"message",T:Sr}]),yM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:gM}]),gM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),hM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),TM=c.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),kM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:NM}]),NM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:bM}],{localName:"BoxscoreResponse_ResponseData"}),bM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"basketball",kind:"message",T:ib,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:kb,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),MM=c.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),SM=c.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:IM}]),IM=c.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType($t)},{no:2,name:"attributes",kind:"message",T:vM}],{localName:"StandingsResponse_ResponseData"}),vM=c.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:ub,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Sb,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:KN,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Yb,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),$M=c.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),AM=c.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:EM}]),EM=c.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:OM}],{localName:"LineupResponse_ResponseData"}),OM=c.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"soccer",kind:"message",T:zb,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:cb,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),DM=c.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),wM=c.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:_M}]),_M=c.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:CM}],{localName:"LastGamesResponse_ResponseData"}),CM=c.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"soccer",kind:"message",T:Jc,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:Zc,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),xM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),jM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:RM}]),RM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),LM={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:Zb,O:tM,kind:B.Unary},demoList:{name:"DemoList",I:Jb,O:eM,kind:B.Unary},summary:{name:"Summary",I:sl,O:ol,kind:B.Unary},adminSummary:{name:"AdminSummary",I:aM,O:iM,kind:B.Unary},boxscore:{name:"Boxscore",I:TM,O:kM,kind:B.Unary},standings:{name:"Standings",I:MM,O:SM,kind:B.Unary},playByPlay:{name:"PlayByPlay",I:lM,O:uM,kind:B.Unary},schedule:{name:"Schedule",I:mM,O:pM,kind:B.Unary},scheduleDates:{name:"ScheduleDates",I:yM,O:hM,kind:B.Unary},lineup:{name:"Lineup",I:$M,O:AM,kind:B.Unary},retrieveEventId:{name:"RetrieveEventId",I:xM,O:jM,kind:B.Unary},lastGames:{name:"LastGames",I:DM,O:wM,kind:B.Unary},summarySubscription:{name:"SummarySubscription",I:sl,O:ol,kind:B.ServerStreaming}}},PM=c.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),UM=c.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),FM=c.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),zM=c.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),BM=c.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),GM=c.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),QM=c.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),YM=c.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),ed=c.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),VM=c.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),WM=c.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:c.getEnumType(ed)}]),HM=c.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:c.getEnumType(ed)}]),Kr=c.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:WM},{no:2,name:"sound",kind:"message",T:HM}]),vi=c.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:c.getEnumType(PM)},{no:2,name:"messages_notify",kind:"enum",T:c.getEnumType(UM)},{no:3,name:"friends_notify",kind:"enum",T:c.getEnumType(FM)},{no:4,name:"calls_sound",kind:"enum",T:c.getEnumType(BM)},{no:5,name:"messages_sound",kind:"enum",T:c.getEnumType(GM)},{no:6,name:"friends_sound",kind:"enum",T:c.getEnumType(QM)},{no:7,name:"twitter_notify",kind:"enum",T:c.getEnumType(zM)},{no:8,name:"twitter_sound",kind:"enum",T:c.getEnumType(YM)},{no:9,name:"gamification",kind:"message",T:Kr},{no:10,name:"watch_party_invitation",kind:"message",T:Kr},{no:11,name:"twitter_question",kind:"message",T:Kr}]),qM=c.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),ZM=c.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:KM}]),KM=c.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:vi}],{localName:"GetResponse_GetResponseData"}),JM=c.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:vi}]),XM=c.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:eS}]),eS=c.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:vi}],{localName:"UpdateResponse_UpdateResponseData"}),tS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),nS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:rS}]),rS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:fc}],{localName:"GetStreamResponse_GetResponseData"}),aS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),iS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:sS}]),sS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pc}],{localName:"GetOrganizationResponse_GetResponseData"}),oS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),lS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:uS}]),uS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:yc}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),cS=c.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:c.getEnumType(VM)}]),td=c.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:cS},{no:5,name:"external_event_id",kind:"scalar",T:9}]),dS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:td}]),mS=c.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),fS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:pS}]),pS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:mS}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"});c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkRequest",()=>[{no:1,name:"url",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:yS}]);const yS=c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse.RetreiveDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:td}],{localName:"RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData"}),gS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),hS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),TS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:kS}]),kS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:fc}],{localName:"StreamSubscriptionResponse_ResponseData"}),NS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:bS}]),bS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pc}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),vr={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:qM,O:ZM,kind:B.Unary},update:{name:"Update",I:JM,O:XM,kind:B.Unary},getStream:{name:"GetStream",I:tS,O:nS,kind:B.Unary},getOrganization:{name:"GetOrganization",I:aS,O:iS,kind:B.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:oS,O:lS,kind:B.Unary},generateDeepLink:{name:"GenerateDeepLink",I:dS,O:fS,kind:B.Unary},streamSubscription:{name:"StreamSubscription",I:gS,O:TS,kind:B.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:hS,O:NS,kind:B.ServerStreaming}}},MS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(LM,{method:"retrieveEventId",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var o;if(!s||typeof s!="string")return"";try{return((o=(await n.retrieveEventId({id:s})).data)==null?void 0:o.id)||""}catch{return""}}})},SS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getStream",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.getStream({id:s})).data)==null?void 0:u.attributes:void 0}})},IS=(e,t)=>{const{queryKey:n,client:r}=t.createPromiseClient(bn,{method:"me",params:[e]});return t.nanoquery.createFetcherStore(n,{fetcher:()=>r.me({})})},vS=e=>{const{client:t,queryKeyStr:n}=e.createPromiseClient(bn,{method:"bypassAuth"});return e.nanoquery.createMutatorStore(async({data:{userKey:r,schema:a,init:i},getCacheUpdater:s})=>{const[o]=s(n),u=await t.bypassAuth({userKey:r,schema:a,init:i});return o(u),u})},$S=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"get",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{var i;return(i=(await n.get({})).data)==null?void 0:i.attributes}})},AS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getOrganization",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{const a=await n.getOrganization({});return a.data?{...a.data.attributes,id:a.data.id}:void 0}})},ES=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getOrganizationAdvertising",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{var i;return(i=(await n.getOrganizationAdvertising({})).data)==null?void 0:i.attributes}})},OS=(e,t,n)=>{e.transport=new MN(t.host),e.sdk.host=e.transport.host,e.transport.setSdkKey(t.sdkKey),n()};var jt=(e=>(e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended",e))(jt||{});const DS=e=>{const t=new _e(Ce(),"enabled"),n=new _e(Ce("disabled"),"status"),r=new _e(Ce(),"userKey"),a=new _e(Ce(),"userToken");a.listen(y=>{y?localStorage.setItem("sl-user-token",y):localStorage.removeItem("sl-user-token")});const i=new _e(Ce(),"providerStreamId"),s=new Ge(MS(i.getStore(),e),"slStreamId",y=>y==null?void 0:y.data),o=new Ge(IS(a.getStore(),e),"user",y=>{var k,M;return(M=(k=y==null?void 0:y.data)==null?void 0:k.data)==null?void 0:M.id}),u=new Ge($S(a.getStore(),e),"userSettings"),m=new Ge(SS(s.getAtomStore(),e),"streamSettings");s.getAtomStore().listen(y=>{(y===""||y===void 0)&&m.getStore().mutate(void 0)});const p=new Ge(AS(t.getStore(),e),"organizationSettings",y=>{var k;return(k=y==null?void 0:y.data)==null?void 0:k.id}),g=new Ge(ES(p.getAtomStore(),e),"organizationAdvertising");return{enabled:t,status:n,providerStreamId:i,slStreamId:s,streamSettings:m,user:o,userKey:r,userToken:a,userSettings:u,organizationSettings:p,organizationAdvertising:g}};class wS extends Nr{constructor(n){const r=DS(n),a=j4(r);super(a,"core");$(this,"stores");$(this,"subscribe",n=>{let r;for(r in this.stores){const a=n[r];r in n&&a!==void 0&&this.stores[r].subscribe(n[r])}});$(this,"unsubscribe",()=>this.getStore().off());this.stores=r}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}const _S=(e,t,n)=>{e.store=new wS(e.transport),e.stores=e.store.getValues(),e.sdk.sdkStore=e.store.getStore(),e.sdk.organizationStore=()=>e.stores.organizationSettings.getStore(),e.storeUnsubscribe=()=>{e.store.unsubscribe()},n()};class CS extends x4{constructor(n,r){super();$(this,"$coreStore");$(this,"transport");$(this,"$bypassLogin");$(this,"me",async()=>{const n=await this.$coreStore.getValues().user.getValue();return n==null?void 0:n.data});$(this,"login",async(n,r)=>(this.$coreStore.getValues().userKey.setValue(r),await this.$bypassLogin.mutate({schema:n,userKey:r,init:!1}),this.me()));$(this,"isAuthenticated",()=>this.me());$(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("")});$(this,"subscribe",()=>{this.$bypassLogin.subscribe((n,r)=>{var a,i,s,o;r==="data"&&(this.transport.setAuth((i=(a=n==null?void 0:n.data)==null?void 0:a.meta)==null?void 0:i.jwt),this.$coreStore.getValues().userToken.setValue((o=(s=n==null?void 0:n.data)==null?void 0:s.meta)==null?void 0:o.jwt))})});this.$coreStore=n,this.transport=r,this.$bypassLogin=vS(this.transport),this.subscribe()}}const xS=async(e,t,n)=>{e.auth=new CS(e.store,e.transport);const r=localStorage.getItem("sl-user-schema"),a=localStorage.getItem("sl-user-token");r&&a&&(console.log("try to login prev user"),await e.auth.login(r,a)),e.sdk.authorizationBypass=async(i,s)=>{await e.auth.login(i,s),localStorage.setItem("sl-user-schema","streamlayer:streamlayer")},e.sdk.logout=()=>{e.auth.logout()},e.sdk.getUserStore=()=>e.stores.user.getStore(),e.sdk.isUserAuthorized=()=>e.auth.isAuthenticated(),n()},jS=(e,t,n)=>{e.sdk=Object.create(null),e.sdk.initializeApp=async()=>{e.storeSubscribe(),e.stores.enabled.setValue("on"),e.stores.status.setValue(jt.INITIALIZATION);try{const r=await e.stores.organizationSettings.getValue();return r?(e.stores.status.setValue(jt.READY),{enabled:!!r}):(e.stores.status.setValue(jt.FAILED),{err:"failed"})}catch(r){return e.stores.enabled.setValue(),e.stores.status.setValue(jt.FAILED),{err:`${r}`}}},e.sdk.disableApp=()=>{e.stores.enabled.setValue(),e.stores.status.setValue(jt.DISABLED),e.storeUnsubscribe()},e.sdk.createEventSession=r=>{e.stores.providerStreamId.setValue(""),e.stores.providerStreamId.setValue(r)},n()},st={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:E2,O:O2,kind:B.Unary},subscription:{name:"Subscription",I:_T,O:CT,kind:B.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:jT,O:RT,kind:B.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:UT,O:FT,kind:B.ServerStreaming},questionByUser:{name:"QuestionByUser",I:GT,O:QT,kind:B.Unary},syncQuestion:{name:"SyncQuestion",I:VT,O:HT,kind:B.Unary},getQuestion:{name:"GetQuestion",I:ZT,O:KT,kind:B.Unary},questionDetail:{name:"QuestionDetail",I:XT,O:e2,kind:B.Unary},submitAnswer:{name:"SubmitAnswer",I:n2,O:a2,kind:B.Unary},submitInplay:{name:"SubmitInplay",I:s2,O:l2,kind:B.Unary},skipQuestion:{name:"SkipQuestion",I:u2,O:d2,kind:B.Unary},pickHistory:{name:"PickHistory",I:f2,O:y2,kind:B.Unary},insightHistory:{name:"InsightHistory",I:T2,O:N2,kind:B.Unary},tweetHistory:{name:"TweetHistory",I:M2,O:I2,kind:B.Unary},promotionHistory:{name:"PromotionHistory",I:w2,O:C2,kind:B.Unary}}},RS=c.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),nd=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(RS)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:nd,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),$i=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),LS=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:$i},{no:2,name:"percentage",kind:"message",T:PS}]),PS=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),US=c.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:gi},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),FS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:zS,repeated:!0},{no:2,name:"meta",kind:"message",T:BS}]),zS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$i}],{localName:"ListResponse_ListResponseData"}),BS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),GS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),QS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:YS}]),YS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LS}],{localName:"SummaryResponse_SummaryResponseData"}),VS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),WS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:HS}]),HS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:nd}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),qS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:gi},{no:4,name:"sort",kind:"message",T:vT}]),ZS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:KS,repeated:!0},{no:2,name:"meta",kind:"message",T:JS}]),KS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$i}],{localName:"EventLeaderboardResponse_ListResponseData"}),JS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),XS={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:US,O:FS,kind:B.Unary},summary:{name:"Summary",I:GS,O:QS,kind:B.Unary},eventLeaderboards:{name:"EventLeaderboards",I:VS,O:WS,kind:B.Unary},eventLeaderboard:{name:"EventLeaderboard",I:qS,O:ZS,kind:B.Unary}}},eI=(e,t,n)=>{const{client:r,queryKey:a}=n.createPromiseClient(XS,{method:"summary",params:[e,t]});return n.nanoquery.createFetcherStore(a,{fetcher:async(i,s,o,u)=>{var p;return(p=(await r.summary({eventId:o,userId:u})).data)==null?void 0:p.attributes}})},tI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(st,{method:"syncQuestion",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.syncQuestion({filter:{eventId:s}})).data)==null?void 0:u.attributes:void 0}})},nI=(e,t)=>{const{client:n}=t.createCallbackClient(st),r=Oe.atom({eventId:e.get()||"",feedId:""});return e.subscribe((i="")=>{r.set({eventId:i,feedId:""})}),t.addSubscription(n.subscription,r,{name:"feedSubscription"})},rI=(e,t)=>{const{client:n}=t.createCallbackClient(st);return t.addSubscription(n.questionSubscription,{questionId:e},{name:"questionSubscription"})},aI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(st,{method:"questionByUser",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u,m;return(m=(u=(await n.questionByUser({questionId:s})).data)==null?void 0:u.attributes)==null?void 0:m.question}})},iI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(st,{method:"pickHistory",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.pickHistory({eventId:s})).data)==null?void 0:u.map(({attributes:m})=>m):void 0}})},sI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(st,{method:"insightHistory",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.insightHistory({eventId:s})).data)==null?void 0:u.map(({attributes:m})=>m):void 0}})},oI=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"submitAnswer"});return n.submitAnswer({data:t})},lI=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"submitInplay"});return n.submitInplay({data:{eventId:+t}})},uI=(e,t)=>{const{client:n}=e.createPromiseClient(st,{method:"skipQuestion"});return n.skipQuestion({data:{id:t}})};class cI extends hc{constructor(n,r,a){super(n,r);$(this,"userSummary");$(this,"questions");$(this,"insights");$(this,"leaderboardId");$(this,"slStreamId");$(this,"userId");$(this,"organizationId");$(this,"openedQuestionId");$(this,"openedQuestion");$(this,"activeQuestionId");$(this,"moderationId");$(this,"feedId");$(this,"onbordingComplete");$(this,"notifications");$(this,"transport");$(this,"questionSubscription");$(this,"feedSubscription");$(this,"showOnbordingInApp",n=>{var s,o,u,m;if(n)return;const{inplayGame:r}=this.featureSettings.get();if(!r)return;const{titleCard:a,overview:i}=r;this.notifications.add({type:"_onboarding",id:"_",delay:1e5,data:{header:a==null?void 0:a.header,title:a==null?void 0:a.title,subtitle:a==null?void 0:a.subtitle,graphicBg:(s=a==null?void 0:a.appearance)==null?void 0:s.graphic,icon:(o=a==null?void 0:a.media)==null?void 0:o.icon,sponsorLogo:(u=a==null?void 0:a.media)==null?void 0:u.sponsorLogo,primaryColor:(m=i==null?void 0:i.appearance)==null?void 0:m.primaryColor}})});$(this,"getCurrentSessionIdPrefix",n=>{const r=n.eventId||this.slStreamId.get(),a=n.userId||this.userId.get();return`${n.organizationId||this.organizationId.get()}:${a}:${r}:${n.prefix||""}`});$(this,"connect",n=>{var r;this.userSummary=new Ge(eI(this.slStreamId,this.userId,n),"gamification:userSummary"),this.questions=new Ge(iI(this.slStreamId,n),"gamification:questions"),this.insights=new Ge(sI(this.slStreamId,n),"gamification:insights"),this.activeQuestionId=new Ge(tI(this.slStreamId,n),"gamification:activeQuestionId"),this.openedQuestion=new Ge(aI(this.openedQuestionId,n),"gamification:activeQuestionId"),this.questionSubscription&&(this.questionSubscription.disconnect(),this.questionSubscription=void 0),this.openedQuestionId.listen(a=>{var i;a?(this.questionSubscription=rI(a,n),this.questionSubscription.addListener("feed-subscription-opened-question",s=>{window.requestAnimationFrame(()=>{var o,u,m,p,g;(m=this.openedQuestion)==null||m.getStore().mutate((u=(o=s.data)==null?void 0:o.attributes)==null?void 0:u.question),(p=this.openedQuestion)==null||p.getStore().invalidate(),(g=this.userSummary)==null||g.getStore().invalidate()})}),this.questionSubscription.connect()):(console.log("cleanup on close question"),(i=this.openedQuestion)==null||i.getStore().mutate(void 0),this.questionSubscription!==void 0&&n.removeSubscription(this.questionSubscription))}),(r=this.activeQuestionId)==null||r.listen(a=>{var i,s;console.log(a),this.onbordingComplete.get()&&(console.log("1"),(s=(i=a==null?void 0:a.data)==null?void 0:i.notification)!=null&&s.title&&a.data.question.status===It.ACTIVE&&this.notifications.add({type:"_question",action:()=>this.openQuestion(a.data.question.id),close:()=>this.closeQuestion(),delay:5e3,id:this.getCurrentSessionIdPrefix({prefix:`notification-id:${a.data.question.id}`}),data:a.data}))}),this.feedSubscription&&(this.feedSubscription.disconnect(),this.feedSubscription=void 0),this.feedSubscription=nI(this.slStreamId,n),this.feedSubscription.addListener("feed-subscription-active-question",a=>{window.requestAnimationFrame(()=>{var s,o;const i=(s=this.activeQuestionId)==null?void 0:s.getStore();i&&i.mutate((o=a.data)==null?void 0:o.attributes)})}),this.feedSubscription.addListener("feed-subscription-questions-list",()=>{window.requestAnimationFrame(()=>{var a;(a=this.questions)==null||a.invalidate()})})});$(this,"disconnect",()=>{var n,r;(n=this.questionSubscription)==null||n.disconnect(),(r=this.feedSubscription)==null||r.disconnect()});$(this,"submitInplay",async()=>{const n=this.slStreamId.get();n&&(await lI(this.transport,n),this.onbordingComplete.set(!0),localStorage.setItem(`sl-onbording:${this.userId.get()}:${n}`,"true"))});$(this,"submitAnswer",async(n,r)=>{var a;await oI(this.transport,{questionId:n,answerId:r}),(a=this.questions)==null||a.invalidate()});$(this,"skipQuestion",async n=>{var r;await uI(this.transport,n),(r=this.questions)==null||r.invalidate()});$(this,"openQuestion",n=>{this.openedQuestionId.set(n),this.notifications.markAsViewed(this.getCurrentSessionIdPrefix({prefix:`notification-id:${n}`}))});$(this,"closeQuestion",()=>{this.notifications.markAsViewed(this.getCurrentSessionIdPrefix({prefix:`notification-id:${this.openedQuestionId.get()}`})),window.requestAnimationFrame(()=>{this.openedQuestionId.set(void 0)})});if(this.leaderboardId=new _e(Ce(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.slStreamId=a.stores.slStreamId.getAtomStore(),this.userId=a.stores.user.getAtomStore(),this.organizationId=a.stores.organizationSettings.getAtomStore(),this.moderationId=new _e(Ce(),"moderationId").getStore(),this.feedId=new _e(Ce(),"feedId").getStore(),this.onbordingComplete=new _e(Ce(!1),"onbordingComplete").getStore(),this.openedQuestionId=new _e(Ce(),"openedQuestionId").getStore(),this.notifications=a.notifications,this.transport=a.transport,!this.userId.get())this.userId.subscribe(i=>{i&&window.requestAnimationFrame(()=>{const o=!!localStorage.getItem(`sl-onbording:${i}:${this.slStreamId.get()}`);this.onbordingComplete.set(o),this.showOnbordingInApp(o)})});else{const i=this.userId.get(),o=!!localStorage.getItem(`sl-onbording:${i}:${this.slStreamId.get()}`);this.onbordingComplete.set(o),this.showOnbordingInApp(o)}this.status.subscribe(i=>{i===Nt.Ready?this.connect(a.transport):this.disconnect()}),this.onbordingComplete.subscribe(i=>{var s;i&&((s=this.activeQuestionId)==null||s.invalidate())})}}class dI extends hc{}const mI=(e,t,n)=>e.type===ut.GAMES?new cI(e,t,n):new dI(e,t),fI=(e,t,n)=>{e.features=new Map,e.activeFeature=new _e(Ce(),"activeFeature"),e.sdk.getFeatures=()=>e.features,e.sdk.getActiveFeature=()=>e.activeFeature.getStore(),e.sdk.openFeature=r=>{e.activeFeature.setValue(r)},e.sdk.closeFeature=()=>{e.activeFeature.setValue(void 0)},e.initFeature=(r,a=xt.ORGANIZATION)=>{const i=mI(r,a,e);e.features.set(r.name,i)},e.updateFeature=(r,a)=>{var i;(i=e.features.get(r.name))==null||i.update(r,a)},e.destroyFeature=r=>{e.features.delete(r.name)},e.reinitializeFeatures=async()=>{const r=await e.stores.organizationSettings.getValue();e.features.clear();for(const a of(r==null?void 0:r.overlays)||[])e.initFeature(a,xt.ORGANIZATION)},e.stores.providerStreamId.listen(r=>{r||e.reinitializeFeatures()}),e.storeSubscribe=()=>{const r=(i,s)=>{if(s!=null&&s.overlays){i===xt.STREAM&&e.features.clear();for(const o of s.overlays){const u=o.name;e.features.has(u)?e.updateFeature(o,i):e.initFeature(o,i)}}},a={organizationSettings:i=>{if(i.data)try{r(xt.ORGANIZATION,i.data)}catch(s){console.log(s)}},streamSettings:i=>{if(i.data)try{r(xt.STREAM,i.data)}catch(s){console.log(s)}}};e.store.subscribe(a)},n()};var Ai={exports:{}},Ei={exports:{}};function pI(e){var t=new e,n=t;function r(){var i=t;return i.next?t=i.next:(t=new e,n=t),i.next=null,i}function a(i){n.next=i,n=i}return{get:r,release:a}}var yI=pI,gI=yI;function rd(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var r=gI(hI),a=null,i=null,s=0,o=null,u={push:S,drain:Pe,saturated:Pe,pause:p,paused:!1,concurrency:n,running:m,resume:k,idle:M,length:g,getQueue:y,unshift:_,empty:Pe,kill:O,killAndDrain:L,error:P};return u;function m(){return s}function p(){u.paused=!0}function g(){for(var F=a,z=0;F;)F=F.next,z++;return z}function y(){for(var F=a,z=[];F;)z.push(F.value),F=F.next;return z}function k(){if(u.paused){u.paused=!1;for(var F=0;F<u.concurrency;F++)s++,v()}}function M(){return s===0&&u.length()===0}function S(F,z){var U=r.get();U.context=e,U.release=v,U.value=F,U.callback=z||Pe,U.errorHandler=o,s===u.concurrency||u.paused?i?(i.next=U,i=U):(a=U,i=U,u.saturated()):(s++,t.call(e,U.value,U.worked))}function _(F,z){var U=r.get();U.context=e,U.release=v,U.value=F,U.callback=z||Pe,s===u.concurrency||u.paused?a?(U.next=a,a=U):(a=U,i=U,u.saturated()):(s++,t.call(e,U.value,U.worked))}function v(F){F&&r.release(F);var z=a;z?u.paused?s--:(i===a&&(i=null),a=z.next,z.next=null,t.call(e,z.value,z.worked),i===null&&u.empty()):--s===0&&u.drain()}function O(){a=null,i=null,u.drain=Pe}function L(){a=null,i=null,u.drain(),u.drain=Pe}function P(F){o=F}}function Pe(){}function hI(){this.value=null,this.callback=Pe,this.next=null,this.release=Pe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(n,r){var a=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=Pe,e.errorHandler&&i(n,s),a.call(e.context,n,r),e.release(e)}}function TI(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function r(p,g){t.call(this,p).then(function(y){g(null,y)},g)}var a=rd(e,r,n),i=a.push,s=a.unshift;return a.push=o,a.unshift=u,a.drained=m,a;function o(p){var g=new Promise(function(y,k){i(p,function(M,S){if(M){k(M);return}y(S)})});return g.catch(Pe),g}function u(p){var g=new Promise(function(y,k){s(p,function(M,S){if(M){k(M);return}y(S)})});return g.catch(Pe),g}function m(){if(a.idle())return new Promise(function(y){y()});var p=a.drain,g=new Promise(function(y){a.drain=function(){p(),y()}});return g}}Ei.exports=rd;Ei.exports.promise=TI;var ad=Ei.exports,Oi={exports:{}},Bt=typeof Reflect=="object"?Reflect:null,ll=Bt&&typeof Bt.apply=="function"?Bt.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},zn;Bt&&typeof Bt.ownKeys=="function"?zn=Bt.ownKeys:Object.getOwnPropertySymbols?zn=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zn=function(t){return Object.getOwnPropertyNames(t)};function kI(e){console&&console.warn&&console.warn(e)}var id=Number.isNaN||function(t){return t!==t};function ie(){ie.init.call(this)}Oi.exports=ie;Oi.exports.once=SI;ie.EventEmitter=ie;ie.prototype._events=void 0;ie.prototype._eventsCount=0;ie.prototype._maxListeners=void 0;var ul=10;function $r(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ie,"defaultMaxListeners",{enumerable:!0,get:function(){return ul},set:function(e){if(typeof e!="number"||e<0||id(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ul=e}});ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ie.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||id(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function sd(e){return e._maxListeners===void 0?ie.defaultMaxListeners:e._maxListeners}ie.prototype.getMaxListeners=function(){return sd(this)};ie.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var a=t==="error",i=this._events;if(i!==void 0)a=a&&i.error===void 0;else if(!a)return!1;if(a){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[t];if(u===void 0)return!1;if(typeof u=="function")ll(u,this,n);else for(var m=u.length,p=dd(u,m),r=0;r<m;++r)ll(p[r],this,n);return!0};function od(e,t,n,r){var a,i,s;if($r(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),s===void 0)s=i[t]=n,++e._eventsCount;else if(typeof s=="function"?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),a=sd(e),a>0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=s.length,kI(o)}return e}ie.prototype.addListener=function(t,n){return od(this,t,n,!1)};ie.prototype.on=ie.prototype.addListener;ie.prototype.prependListener=function(t,n){return od(this,t,n,!0)};function NI(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ld(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=NI.bind(r);return a.listener=n,r.wrapFn=a,a}ie.prototype.once=function(t,n){return $r(n),this.on(t,ld(this,t,n)),this};ie.prototype.prependOnceListener=function(t,n){return $r(n),this.prependListener(t,ld(this,t,n)),this};ie.prototype.removeListener=function(t,n){var r,a,i,s,o;if($r(n),a=this._events,a===void 0)return this;if(r=a[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){o=r[s].listener,i=s;break}if(i<0)return this;i===0?r.shift():bI(r,i),r.length===1&&(a[t]=r[0]),a.removeListener!==void 0&&this.emit("removeListener",t,o||n)}return this};ie.prototype.off=ie.prototype.removeListener;ie.prototype.removeAllListeners=function(t){var n,r,a;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),s;for(a=0;a<i.length;++a)s=i[a],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(a=n.length-1;a>=0;a--)this.removeListener(t,n[a]);return this};function ud(e,t,n){var r=e._events;if(r===void 0)return[];var a=r[t];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?MI(a):dd(a,a.length)}ie.prototype.listeners=function(t){return ud(this,t,!0)};ie.prototype.rawListeners=function(t){return ud(this,t,!1)};ie.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):cd.call(e,t)};ie.prototype.listenerCount=cd;function cd(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}ie.prototype.eventNames=function(){return this._eventsCount>0?zn(this._events):[]};function dd(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function bI(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function MI(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function SI(e,t){return new Promise(function(n,r){function a(s){e.removeListener(t,i),r(s)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",a),n([].slice.call(arguments))}md(e,t,i,{once:!0}),t!=="error"&&II(e,a,{once:!0})})}function II(e,t,n){typeof e.on=="function"&&md(e,"error",t,n)}function md(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(i){r.once&&e.removeEventListener(t,a),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var fd=Oi.exports,Ar={},pd={},yd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},vI=yd,Di=function(){return vI()&&!!Symbol.toStringTag},cl=typeof Symbol<"u"&&Symbol,$I=yd,AI=function(){return typeof cl!="function"||typeof Symbol!="function"||typeof cl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:$I()},dl={foo:{}},EI=Object,OI=function(){return{__proto__:dl}.foo===dl.foo&&!({__proto__:null}instanceof EI)},DI="Function.prototype.bind called on incompatible ",wI=Object.prototype.toString,_I=Math.max,CI="[object Function]",ml=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},xI=function(t,n){for(var r=[],a=n||0,i=0;a<t.length;a+=1,i+=1)r[i]=t[a];return r},jI=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},RI=function(t){var n=this;if(typeof n!="function"||wI.apply(n)!==CI)throw new TypeError(DI+n);for(var r=xI(arguments,1),a,i=function(){if(this instanceof a){var p=n.apply(this,ml(r,arguments));return Object(p)===p?p:this}return n.apply(t,ml(r,arguments))},s=_I(0,n.length-r.length),o=[],u=0;u<s;u++)o[u]="$"+u;if(a=Function("binder","return function ("+jI(o,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var m=function(){};m.prototype=n.prototype,a.prototype=new m,m.prototype=null}return a},LI=RI,gd=Function.prototype.bind||LI,fl={}.hasOwnProperty,Jr=Function.prototype.call,PI=Jr.bind?Jr.bind(fl):function(e,t){return Jr.call(fl,e,t)},K,qt=SyntaxError,hd=Function,Gt=TypeError,Xr=function(e){try{return hd('"use strict"; return ('+e+").constructor;")()}catch{}},bt=Object.getOwnPropertyDescriptor;if(bt)try{bt({},"")}catch{bt=null}var ea=function(){throw new Gt},UI=bt?function(){try{return arguments.callee,ea}catch{try{return bt(arguments,"callee").get}catch{return ea}}}():ea,_t=AI(),FI=OI(),Te=Object.getPrototypeOf||(FI?function(e){return e.__proto__}:null),Rt={},zI=typeof Uint8Array>"u"||!Te?K:Te(Uint8Array),Mt={"%AggregateError%":typeof AggregateError>"u"?K:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?K:ArrayBuffer,"%ArrayIteratorPrototype%":_t&&Te?Te([][Symbol.iterator]()):K,"%AsyncFromSyncIteratorPrototype%":K,"%AsyncFunction%":Rt,"%AsyncGenerator%":Rt,"%AsyncGeneratorFunction%":Rt,"%AsyncIteratorPrototype%":Rt,"%Atomics%":typeof Atomics>"u"?K:Atomics,"%BigInt%":typeof BigInt>"u"?K:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?K:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?K:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?K:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?K:Float32Array,"%Float64Array%":typeof Float64Array>"u"?K:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?K:FinalizationRegistry,"%Function%":hd,"%GeneratorFunction%":Rt,"%Int8Array%":typeof Int8Array>"u"?K:Int8Array,"%Int16Array%":typeof Int16Array>"u"?K:Int16Array,"%Int32Array%":typeof Int32Array>"u"?K:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_t&&Te?Te(Te([][Symbol.iterator]())):K,"%JSON%":typeof JSON=="object"?JSON:K,"%Map%":typeof Map>"u"?K:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_t||!Te?K:Te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?K:Promise,"%Proxy%":typeof Proxy>"u"?K:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?K:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?K:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_t||!Te?K:Te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?K:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_t&&Te?Te(""[Symbol.iterator]()):K,"%Symbol%":_t?Symbol:K,"%SyntaxError%":qt,"%ThrowTypeError%":UI,"%TypedArray%":zI,"%TypeError%":Gt,"%Uint8Array%":typeof Uint8Array>"u"?K:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?K:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?K:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?K:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?K:WeakMap,"%WeakRef%":typeof WeakRef>"u"?K:WeakRef,"%WeakSet%":typeof WeakSet>"u"?K:WeakSet};if(Te)try{null.error}catch(e){var BI=Te(Te(e));Mt["%Error.prototype%"]=BI}var GI=function e(t){var n;if(t==="%AsyncFunction%")n=Xr("async function () {}");else if(t==="%GeneratorFunction%")n=Xr("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=Xr("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Te&&(n=Te(a.prototype))}return Mt[t]=n,n},pl={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vn=gd,nr=PI,QI=vn.call(Function.call,Array.prototype.concat),YI=vn.call(Function.apply,Array.prototype.splice),yl=vn.call(Function.call,String.prototype.replace),rr=vn.call(Function.call,String.prototype.slice),VI=vn.call(Function.call,RegExp.prototype.exec),WI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,HI=/\\(\\)?/g,qI=function(t){var n=rr(t,0,1),r=rr(t,-1);if(n==="%"&&r!=="%")throw new qt("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new qt("invalid intrinsic syntax, expected opening `%`");var a=[];return yl(t,WI,function(i,s,o,u){a[a.length]=o?yl(u,HI,"$1"):s||i}),a},ZI=function(t,n){var r=t,a;if(nr(pl,r)&&(a=pl[r],r="%"+a[0]+"%"),nr(Mt,r)){var i=Mt[r];if(i===Rt&&(i=GI(r)),typeof i>"u"&&!n)throw new Gt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new qt("intrinsic "+t+" does not exist!")},tn=function(t,n){if(typeof t!="string"||t.length===0)throw new Gt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Gt('"allowMissing" argument must be a boolean');if(VI(/^%?[^%]*%?$/,t)===null)throw new qt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=qI(t),a=r.length>0?r[0]:"",i=ZI("%"+a+"%",n),s=i.name,o=i.value,u=!1,m=i.alias;m&&(a=m[0],YI(r,QI([0,1],m)));for(var p=1,g=!0;p<r.length;p+=1){var y=r[p],k=rr(y,0,1),M=rr(y,-1);if((k==='"'||k==="'"||k==="`"||M==='"'||M==="'"||M==="`")&&k!==M)throw new qt("property names with quotes must have matching quotes");if((y==="constructor"||!g)&&(u=!0),a+="."+y,s="%"+a+"%",nr(Mt,s))o=Mt[s];else if(o!=null){if(!(y in o)){if(!n)throw new Gt("base intrinsic for "+t+" exists, but the property is not available.");return}if(bt&&p+1>=r.length){var S=bt(o,y);g=!!S,g&&"get"in S&&!("originalValue"in S.get)?o=S.get:o=o[y]}else g=nr(o,y),o=o[y];g&&!u&&(Mt[s]=o)}}return o},Td={exports:{}},KI=tn,Va=KI("%Object.defineProperty%",!0),Wa=function(){if(Va)try{return Va({},"a",{value:1}),!0}catch{return!1}return!1};Wa.hasArrayLengthDefineBug=function(){if(!Wa())return null;try{return Va([],"length",{value:1}).length!==1}catch{return!0}};var kd=Wa,JI=tn,Bn=JI("%Object.getOwnPropertyDescriptor%",!0);if(Bn)try{Bn([],"length")}catch{Bn=null}var wi=Bn,XI=kd(),_i=tn,pn=XI&&_i("%Object.defineProperty%",!0);if(pn)try{pn({},"a",{value:1})}catch{pn=!1}var ev=_i("%SyntaxError%"),Ct=_i("%TypeError%"),gl=wi,tv=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ct("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Ct("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ct("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ct("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ct("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ct("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,u=!!gl&&gl(t,n);if(pn)pn(t,n,{configurable:s===null&&u?u.configurable:!s,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:i===null&&u?u.writable:!i});else if(o||!a&&!i&&!s)t[n]=r;else throw new ev("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nd=tn,hl=tv,nv=kd(),Tl=wi,kl=Nd("%TypeError%"),rv=Nd("%Math.floor%"),av=function(t,n){if(typeof t!="function")throw new kl("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||rv(n)!==n)throw new kl("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&Tl){var s=Tl(t,"length");s&&!s.configurable&&(a=!1),s&&!s.writable&&(i=!1)}return(a||i||!r)&&(nv?hl(t,"length",n,!0,!0):hl(t,"length",n)),t};(function(e){var t=gd,n=tn,r=av,a=n("%TypeError%"),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(s,i),u=n("%Object.defineProperty%",!0),m=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var k=o(t,s,arguments);return r(k,1+m(0,y.length-(arguments.length-1)),!0)};var p=function(){return o(t,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p})(Td);var bd=Td.exports,Md=tn,Sd=bd,iv=Sd(Md("String.prototype.indexOf")),Id=function(t,n){var r=Md(t,!!n);return typeof r=="function"&&iv(t,".prototype.")>-1?Sd(r):r},sv=Di(),ov=Id,Ha=ov("Object.prototype.toString"),Er=function(t){return sv&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Ha(t)==="[object Arguments]"},vd=function(t){return Er(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Ha(t)!=="[object Array]"&&Ha(t.callee)==="[object Function]"},lv=function(){return Er(arguments)}();Er.isLegacyArguments=vd;var uv=lv?Er:vd,cv=Object.prototype.toString,dv=Function.prototype.toString,mv=/^\s*(?:function)?\*/,$d=Di(),ta=Object.getPrototypeOf,fv=function(){if(!$d)return!1;try{return Function("return function*() {}")()}catch{}},na,pv=function(t){if(typeof t!="function")return!1;if(mv.test(dv.call(t)))return!0;if(!$d){var n=cv.call(t);return n==="[object GeneratorFunction]"}if(!ta)return!1;if(typeof na>"u"){var r=fv();na=r?ta(r):!1}return ta(t)===na},Ad=Function.prototype.toString,Ut=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,qa,Gn;if(typeof Ut=="function"&&typeof Object.defineProperty=="function")try{qa=Object.defineProperty({},"length",{get:function(){throw Gn}}),Gn={},Ut(function(){throw 42},null,qa)}catch(e){e!==Gn&&(Ut=null)}else Ut=null;var yv=/^\s*class\b/,Za=function(t){try{var n=Ad.call(t);return yv.test(n)}catch{return!1}},ra=function(t){try{return Za(t)?!1:(Ad.call(t),!0)}catch{return!1}},Qn=Object.prototype.toString,gv="[object Object]",hv="[object Function]",Tv="[object GeneratorFunction]",kv="[object HTMLAllCollection]",Nv="[object HTML document.all class]",bv="[object HTMLCollection]",Mv=typeof Symbol=="function"&&!!Symbol.toStringTag,Sv=!(0 in[,]),Ka=function(){return!1};if(typeof document=="object"){var Iv=document.all;Qn.call(Iv)===Qn.call(document.all)&&(Ka=function(t){if((Sv||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Qn.call(t);return(n===kv||n===Nv||n===bv||n===gv)&&t("")==null}catch{}return!1})}var vv=Ut?function(t){if(Ka(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ut(t,null,qa)}catch(n){if(n!==Gn)return!1}return!Za(t)&&ra(t)}:function(t){if(Ka(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Mv)return ra(t);if(Za(t))return!1;var n=Qn.call(t);return n!==hv&&n!==Tv&&!/^\[object HTML/.test(n)?!1:ra(t)},$v=vv,Av=Object.prototype.toString,Ed=Object.prototype.hasOwnProperty,Ev=function(t,n,r){for(var a=0,i=t.length;a<i;a++)Ed.call(t,a)&&(r==null?n(t[a],a,t):n.call(r,t[a],a,t))},Ov=function(t,n,r){for(var a=0,i=t.length;a<i;a++)r==null?n(t.charAt(a),a,t):n.call(r,t.charAt(a),a,t)},Dv=function(t,n,r){for(var a in t)Ed.call(t,a)&&(r==null?n(t[a],a,t):n.call(r,t[a],a,t))},wv=function(t,n,r){if(!$v(n))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),Av.call(t)==="[object Array]"?Ev(t,n,a):typeof t=="string"?Ov(t,n,a):Dv(t,n,a)},_v=wv,aa=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],Cv=typeof globalThis>"u"?Ol:globalThis,xv=function(){for(var t=[],n=0;n<aa.length;n++)typeof Cv[aa[n]]=="function"&&(t[t.length]=aa[n]);return t},ar=_v,jv=xv,Nl=bd,Ci=Id,Yn=wi,Rv=Ci("Object.prototype.toString"),Od=Di(),bl=typeof globalThis>"u"?Ol:globalThis,Ja=jv(),xi=Ci("String.prototype.slice"),ia=Object.getPrototypeOf,Lv=Ci("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},ir={__proto__:null};Od&&Yn&&ia?ar(Ja,function(e){var t=new bl[e];if(Symbol.toStringTag in t){var n=ia(t),r=Yn(n,Symbol.toStringTag);if(!r){var a=ia(n);r=Yn(a,Symbol.toStringTag)}ir["$"+e]=Nl(r.get)}}):ar(Ja,function(e){var t=new bl[e],n=t.slice||t.set;n&&(ir["$"+e]=Nl(n))});var Pv=function(t){var n=!1;return ar(ir,function(r,a){if(!n)try{"$"+r(t)===a&&(n=xi(a,1))}catch{}}),n},Uv=function(t){var n=!1;return ar(ir,function(r,a){if(!n)try{r(t),n=xi(a,1)}catch{}}),n},Dd=function(t){if(!t||typeof t!="object")return!1;if(!Od){var n=xi(Rv(t),8,-1);return Lv(Ja,n)>-1?n:n!=="Object"?!1:Uv(t)}return Yn?Pv(t):null},Fv=Dd,zv=function(t){return!!Fv(t)};(function(e){var t=uv,n=pv,r=Dd,a=zv;function i(C){return C.call.bind(C)}var s=typeof BigInt<"u",o=typeof Symbol<"u",u=i(Object.prototype.toString),m=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),g=i(Boolean.prototype.valueOf);if(s)var y=i(BigInt.prototype.valueOf);if(o)var k=i(Symbol.prototype.valueOf);function M(C,An){if(typeof C!="object")return!1;try{return An(C),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=a;function S(C){return typeof Promise<"u"&&C instanceof Promise||C!==null&&typeof C=="object"&&typeof C.then=="function"&&typeof C.catch=="function"}e.isPromise=S;function _(C){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(C):a(C)||D(C)}e.isArrayBufferView=_;function v(C){return r(C)==="Uint8Array"}e.isUint8Array=v;function O(C){return r(C)==="Uint8ClampedArray"}e.isUint8ClampedArray=O;function L(C){return r(C)==="Uint16Array"}e.isUint16Array=L;function P(C){return r(C)==="Uint32Array"}e.isUint32Array=P;function F(C){return r(C)==="Int8Array"}e.isInt8Array=F;function z(C){return r(C)==="Int16Array"}e.isInt16Array=z;function U(C){return r(C)==="Int32Array"}e.isInt32Array=U;function V(C){return r(C)==="Float32Array"}e.isFloat32Array=V;function H(C){return r(C)==="Float64Array"}e.isFloat64Array=H;function J(C){return r(C)==="BigInt64Array"}e.isBigInt64Array=J;function ae(C){return r(C)==="BigUint64Array"}e.isBigUint64Array=ae;function ce(C){return u(C)==="[object Map]"}ce.working=typeof Map<"u"&&ce(new Map);function oe(C){return typeof Map>"u"?!1:ce.working?ce(C):C instanceof Map}e.isMap=oe;function q(C){return u(C)==="[object Set]"}q.working=typeof Set<"u"&&q(new Set);function le(C){return typeof Set>"u"?!1:q.working?q(C):C instanceof Set}e.isSet=le;function Me(C){return u(C)==="[object WeakMap]"}Me.working=typeof WeakMap<"u"&&Me(new WeakMap);function De(C){return typeof WeakMap>"u"?!1:Me.working?Me(C):C instanceof WeakMap}e.isWeakMap=De;function we(C){return u(C)==="[object WeakSet]"}we.working=typeof WeakSet<"u"&&we(new WeakSet);function Se(C){return we(C)}e.isWeakSet=Se;function ve(C){return u(C)==="[object ArrayBuffer]"}ve.working=typeof ArrayBuffer<"u"&&ve(new ArrayBuffer);function ee(C){return typeof ArrayBuffer>"u"?!1:ve.working?ve(C):C instanceof ArrayBuffer}e.isArrayBuffer=ee;function b(C){return u(C)==="[object DataView]"}b.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&b(new DataView(new ArrayBuffer(1),0,1));function D(C){return typeof DataView>"u"?!1:b.working?b(C):C instanceof DataView}e.isDataView=D;var j=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function G(C){return u(C)==="[object SharedArrayBuffer]"}function X(C){return typeof j>"u"?!1:(typeof G.working>"u"&&(G.working=G(new j)),G.working?G(C):C instanceof j)}e.isSharedArrayBuffer=X;function te(C){return u(C)==="[object AsyncFunction]"}e.isAsyncFunction=te;function Y(C){return u(C)==="[object Map Iterator]"}e.isMapIterator=Y;function Z(C){return u(C)==="[object Set Iterator]"}e.isSetIterator=Z;function ne(C){return u(C)==="[object Generator]"}e.isGeneratorObject=ne;function Ie(C){return u(C)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Ie;function Ve(C){return M(C,m)}e.isNumberObject=Ve;function Ue(C){return M(C,p)}e.isStringObject=Ue;function Re(C){return M(C,g)}e.isBooleanObject=Re;function At(C){return s&&M(C,y)}e.isBigIntObject=At;function $n(C){return o&&M(C,k)}e.isSymbolObject=$n;function rn(C){return Ve(C)||Ue(C)||Re(C)||At(C)||$n(C)}e.isBoxedPrimitive=rn;function Or(C){return typeof Uint8Array<"u"&&(ee(C)||X(C))}e.isAnyArrayBuffer=Or,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(C){Object.defineProperty(e,C,{enumerable:!1,value:function(){throw new Error(C+" is not supported in userland")}})})})(pd);var Bv=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},Xa={exports:{}};typeof Object.create=="function"?Xa.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Xa.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Gv=Xa.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function(D){for(var j=Object.keys(D),G={},X=0;X<j.length;X++)G[j[X]]=Object.getOwnPropertyDescriptor(D,j[X]);return G},n=/%[sdj%]/g;e.format=function(b){if(!F(b)){for(var D=[],j=0;j<arguments.length;j++)D.push(s(arguments[j]));return D.join(" ")}for(var j=1,G=arguments,X=G.length,te=String(b).replace(n,function(Z){if(Z==="%%")return"%";if(j>=X)return Z;switch(Z){case"%s":return String(G[j++]);case"%d":return Number(G[j++]);case"%j":try{return JSON.stringify(G[j++])}catch{return"[Circular]"}default:return Z}}),Y=G[j];j<X;Y=G[++j])O(Y)||!H(Y)?te+=" "+Y:te+=" "+s(Y);return te},e.deprecate=function(b,D){if(typeof Q.process<"u"&&Q.process.noDeprecation===!0)return b;if(typeof Q.process>"u")return function(){return e.deprecate(b,D).apply(this,arguments)};var j=!1;function G(){if(!j){if(Q.process.throwDeprecation)throw new Error(D);Q.process.traceDeprecation?console.trace(D):console.error(D),j=!0}return b.apply(this,arguments)}return G};var r={},a=/^$/;if(Q.process.env.NODE_DEBUG){var i=Q.process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+i+"$","i")}e.debuglog=function(b){if(b=b.toUpperCase(),!r[b])if(a.test(b)){var D=Q.process.pid;r[b]=function(){var j=e.format.apply(e,arguments);console.error("%s %d: %s",b,D,j)}}else r[b]=function(){};return r[b]};function s(b,D){var j={seen:[],stylize:u};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),v(D)?j.showHidden=D:D&&e._extend(j,D),U(j.showHidden)&&(j.showHidden=!1),U(j.depth)&&(j.depth=2),U(j.colors)&&(j.colors=!1),U(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=o),p(j,b,j.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(b,D){var j=s.styles[D];return j?"\x1B["+s.colors[j][0]+"m"+b+"\x1B["+s.colors[j][1]+"m":b}function u(b,D){return b}function m(b){var D={};return b.forEach(function(j,G){D[j]=!0}),D}function p(b,D,j){if(b.customInspect&&D&&ce(D.inspect)&&D.inspect!==e.inspect&&!(D.constructor&&D.constructor.prototype===D)){var G=D.inspect(j,b);return F(G)||(G=p(b,G,j)),G}var X=g(b,D);if(X)return X;var te=Object.keys(D),Y=m(te);if(b.showHidden&&(te=Object.getOwnPropertyNames(D)),ae(D)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return y(D);if(te.length===0){if(ce(D)){var Z=D.name?": "+D.name:"";return b.stylize("[Function"+Z+"]","special")}if(V(D))return b.stylize(RegExp.prototype.toString.call(D),"regexp");if(J(D))return b.stylize(Date.prototype.toString.call(D),"date");if(ae(D))return y(D)}var ne="",Ie=!1,Ve=["{","}"];if(_(D)&&(Ie=!0,Ve=["[","]"]),ce(D)){var Ue=D.name?": "+D.name:"";ne=" [Function"+Ue+"]"}if(V(D)&&(ne=" "+RegExp.prototype.toString.call(D)),J(D)&&(ne=" "+Date.prototype.toUTCString.call(D)),ae(D)&&(ne=" "+y(D)),te.length===0&&(!Ie||D.length==0))return Ve[0]+ne+Ve[1];if(j<0)return V(D)?b.stylize(RegExp.prototype.toString.call(D),"regexp"):b.stylize("[Object]","special");b.seen.push(D);var Re;return Ie?Re=k(b,D,j,Y,te):Re=te.map(function(At){return M(b,D,j,Y,At,Ie)}),b.seen.pop(),S(Re,ne,Ve)}function g(b,D){if(U(D))return b.stylize("undefined","undefined");if(F(D)){var j="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(j,"string")}if(P(D))return b.stylize(""+D,"number");if(v(D))return b.stylize(""+D,"boolean");if(O(D))return b.stylize("null","null")}function y(b){return"["+Error.prototype.toString.call(b)+"]"}function k(b,D,j,G,X){for(var te=[],Y=0,Z=D.length;Y<Z;++Y)we(D,String(Y))?te.push(M(b,D,j,G,String(Y),!0)):te.push("");return X.forEach(function(ne){ne.match(/^\d+$/)||te.push(M(b,D,j,G,ne,!0))}),te}function M(b,D,j,G,X,te){var Y,Z,ne;if(ne=Object.getOwnPropertyDescriptor(D,X)||{value:D[X]},ne.get?ne.set?Z=b.stylize("[Getter/Setter]","special"):Z=b.stylize("[Getter]","special"):ne.set&&(Z=b.stylize("[Setter]","special")),we(G,X)||(Y="["+X+"]"),Z||(b.seen.indexOf(ne.value)<0?(O(j)?Z=p(b,ne.value,null):Z=p(b,ne.value,j-1),Z.indexOf(`
40
+ `):"",this.name="UnsubscriptionError",this.errors=n}});function er(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Sn=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,a,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Yt(s),u=o.next();!u.done;u=o.next()){var m=u.value;m.remove(this)}}catch(S){t={error:S}}finally{try{u&&!u.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else s.remove(this);var p=this.initialTeardown;if(ge(p))try{p()}catch(S){i=S instanceof Qr?S.errors:[S]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var y=Yt(g),k=y.next();!k.done;k=y.next()){var M=k.value;try{wo(M)}catch(S){i=i??[],S instanceof Qr?i=Wt(Wt([],Vt(i)),Vt(S.errors)):i.push(S)}}}catch(S){r={error:S}}finally{try{k&&!k.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}}if(i)throw new Qr(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)wo(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&er(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&er(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),Mc=Sn.EMPTY;function Sc(e){return e instanceof Sn||e&&"closed"in e&&ge(e.remove)&&ge(e.add)&&ge(e.unsubscribe)}function wo(e){ge(e)?e():e.unsubscribe()}var Ic={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Qa={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=Qa.delegate;return a!=null&&a.setTimeout?a.setTimeout.apply(a,Wt([e,t],Vt(n))):setTimeout.apply(void 0,Wt([e,t],Vt(n)))},clearTimeout:function(e){var t=Qa.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function vc(e){Qa.setTimeout(function(){throw e})}function Ya(){}function Fn(e){e()}var bi=function(e){gt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Sc(n)&&n.add(r)):r.destination=Y4,r}return t.create=function(n,r,a){return new Va(n,r,a)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Sn),B4=Function.prototype.bind;function Yr(e,t){return B4.call(e,t)}var G4=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){wn(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){wn(r)}else wn(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){wn(n)}},e}(),Va=function(e){gt(t,e);function t(n,r,a){var i=e.call(this)||this,s;if(ge(n)||!n)s={next:n??void 0,error:r??void 0,complete:a??void 0};else{var o;i&&Ic.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return i.unsubscribe()},s={next:n.next&&Yr(n.next,o),error:n.error&&Yr(n.error,o),complete:n.complete&&Yr(n.complete,o)}):s=n}return i.destination=new G4(s),i}return t}(bi);function wn(e){vc(e)}function Q4(e){throw e}var Y4={closed:!0,next:Ya,error:Q4,complete:Ya},Mi=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function $c(e){return e}function V4(e){return e.length===0?$c:e.length===1?e[0]:function(n){return e.reduce(function(r,a){return a(r)},n)}}var je=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var a=this,i=H4(t)?t:new Va(t,n,r);return Fn(function(){var s=a,o=s.operator,u=s.source;i.add(o?o.call(i,u):u?a._subscribe(i):a._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=_o(n),new n(function(a,i){var s=new Va({next:function(o){try{t(o)}catch(u){i(u),s.unsubscribe()}},error:i,complete:a});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[Mi]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return V4(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=_o(t),new t(function(r,a){var i;n.subscribe(function(s){return i=s},function(s){return a(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function _o(e){var t;return(t=e??Ic.Promise)!==null&&t!==void 0?t:Promise}function W4(e){return e&&ge(e.next)&&ge(e.error)&&ge(e.complete)}function H4(e){return e&&e instanceof bi||W4(e)&&Sc(e)}function Ac(e){return ge(e[Mi])}function Ec(e){return Symbol.asyncIterator&&ge(e==null?void 0:e[Symbol.asyncIterator])}function Oc(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function q4(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Dc=q4();function wc(e){return ge(e==null?void 0:e[Dc])}function _c(e){return F4(this,arguments,function(){var n,r,a,i;return Tc(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,zt(n.read())];case 3:return r=s.sent(),a=r.value,i=r.done,i?[4,zt(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,zt(a)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Cc(e){return ge(e==null?void 0:e.getReader)}function en(e){if(e instanceof je)return e;if(e!=null){if(Ac(e))return Z4(e);if(kc(e))return K4(e);if(Nc(e))return J4(e);if(Ec(e))return xc(e);if(wc(e))return X4(e);if(Cc(e))return ek(e)}throw Oc(e)}function Z4(e){return new je(function(t){var n=e[Mi]();if(ge(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function K4(e){return new je(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function J4(e){return new je(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,vc)})}function X4(e){return new je(function(t){var n,r;try{for(var a=Yt(e),i=a.next();!i.done;i=a.next()){var s=i.value;if(t.next(s),t.closed)return}}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}t.complete()})}function xc(e){return new je(function(t){tk(e,t).catch(function(n){return t.error(n)})})}function ek(e){return xc(_c(e))}function tk(e,t){var n,r,a,i;return U4(this,void 0,void 0,function(){var s,o;return Tc(this,function(u){switch(u.label){case 0:u.trys.push([0,5,6,11]),n=z4(e),u.label=1;case 1:return[4,n.next()];case 2:if(r=u.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];u.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=u.sent(),a={error:o},[3,11];case 6:return u.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:u.sent(),u.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Ht(e,t,n,r,a){return new nk(e,t,n,r,a)}var nk=function(e){gt(t,e);function t(n,r,a,i,s,o){var u=e.call(this,n)||this;return u.onFinalize=s,u.shouldUnsubscribe=o,u._next=r?function(m){try{r(m)}catch(p){n.error(p)}}:e.prototype._next,u._error=i?function(m){try{i(m)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,u._complete=a?function(){try{a()}catch(m){n.error(m)}finally{this.unsubscribe()}}:e.prototype._complete,u}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(bi),rk=function(e){gt(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(Sn),tr={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=tr.delegate;return a!=null&&a.setInterval?a.setInterval.apply(a,Wt([e,t],Vt(n))):setInterval.apply(void 0,Wt([e,t],Vt(n)))},clearInterval:function(e){var t=tr.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},ak=function(e){gt(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.scheduler=n,a.work=r,a.pending=!1,a}return t.prototype.schedule=function(n,r){var a;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=(a=this.id)!==null&&a!==void 0?a:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,a){return a===void 0&&(a=0),tr.setInterval(n.flush.bind(n,this),a)},t.prototype.recycleAsyncId=function(n,r,a){if(a===void 0&&(a=0),a!=null&&this.delay===a&&this.pending===!1)return r;r!=null&&tr.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var a=this._execute(n,r);if(a)return a;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var a=!1,i;try{this.work(n)}catch(s){a=!0,i=s||new Error("Scheduled action threw falsy error")}if(a)return this.unsubscribe(),i},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,a=n.scheduler,i=a.actions;this.work=this.state=this.scheduler=null,this.pending=!1,er(i,this),r!=null&&(this.id=this.recycleAsyncId(a,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(rk),jc={now:function(){return(jc.delegate||Date).now()},delegate:void 0},Co=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=jc.now,e}(),ik=function(e){gt(t,e);function t(n,r){r===void 0&&(r=Co.now);var a=e.call(this,n,r)||this;return a.actions=[],a._active=!1,a}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var a;this._active=!0;do if(a=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,a){for(;n=r.shift();)n.unsubscribe();throw a}},t}(Co),Rc=new ik(ak),sk=Rc;function Lc(e){return e&&ge(e.schedule)}function ok(e){return e instanceof Date&&!isNaN(e)}function lk(e,t,n){e===void 0&&(e=0),n===void 0&&(n=sk);var r=-1;return t!=null&&(Lc(t)?n=t:r=t),new je(function(a){var i=ok(e)?+e-n.now():e;i<0&&(i=0);var s=0;return n.schedule(function(){a.closed||(a.next(s++),0<=r?this.schedule(void 0,r):a.complete())},i)})}function uk(e){return e[e.length-1]}function Pc(e){return Lc(uk(e))?e.pop():void 0}function ct(e,t,n,r,a){r===void 0&&(r=0),a===void 0&&(a=!1);var i=t.schedule(function(){n(),a?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!a)return i}function Uc(e,t){return t===void 0&&(t=0),Xt(function(n,r){n.subscribe(Ht(r,function(a){return ct(r,e,function(){return r.next(a)},t)},function(){return ct(r,e,function(){return r.complete()},t)},function(a){return ct(r,e,function(){return r.error(a)},t)}))})}function Fc(e,t){return t===void 0&&(t=0),Xt(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function ck(e,t){return en(e).pipe(Fc(t),Uc(t))}function dk(e,t){return en(e).pipe(Fc(t),Uc(t))}function mk(e,t){return new je(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function fk(e,t){return new je(function(n){var r;return ct(n,t,function(){r=e[Dc](),ct(n,t,function(){var a,i,s;try{a=r.next(),i=a.value,s=a.done}catch(o){n.error(o);return}s?n.complete():n.next(i)},0,!0)}),function(){return ge(r==null?void 0:r.return)&&r.return()}})}function zc(e,t){if(!e)throw new Error("Iterable cannot be null");return new je(function(n){ct(n,t,function(){var r=e[Symbol.asyncIterator]();ct(n,t,function(){r.next().then(function(a){a.done?n.complete():n.next(a.value)})},0,!0)})})}function pk(e,t){return zc(_c(e),t)}function yk(e,t){if(e!=null){if(Ac(e))return ck(e,t);if(kc(e))return mk(e,t);if(Nc(e))return dk(e,t);if(Ec(e))return zc(e,t);if(wc(e))return fk(e,t);if(Cc(e))return pk(e,t)}throw Oc(e)}function Bc(e,t){return t?yk(e,t):en(e)}function Gc(e,t){return Xt(function(n,r){var a=0;n.subscribe(Ht(r,function(i){r.next(e.call(t,i,a++))}))})}function gk(e,t,n,r,a,i,s,o){var u=[],m=0,p=0,g=!1,y=function(){g&&!u.length&&!m&&t.complete()},k=function(S){return m<r?M(S):u.push(S)},M=function(S){i&&t.next(S),m++;var _=!1;en(n(S,p++)).subscribe(Ht(t,function(v){a==null||a(v),i?k(v):t.next(v)},function(){_=!0},void 0,function(){if(_)try{m--;for(var v=function(){var O=u.shift();s?ct(t,s,function(){return M(O)}):M(O)};u.length&&m<r;)v();y()}catch(O){t.error(O)}}))};return e.subscribe(Ht(t,k,function(){g=!0,y()})),function(){o==null||o()}}function br(e,t,n){return n===void 0&&(n=1/0),ge(t)?br(function(r,a){return Gc(function(i,s){return t(r,i,a,s)})(en(e(r,a)))},n):(typeof t=="number"&&(n=t),Xt(function(r,a){return gk(r,a,e,n)}))}function hk(e){return e===void 0&&(e=1/0),br($c,e)}function Tk(){return hk(1)}var kk=bc(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Qc=function(e){gt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new xo(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new kk},t.prototype.next=function(n){var r=this;Fn(function(){var a,i;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Yt(r.currentObservers),o=s.next();!o.done;o=s.next()){var u=o.value;u.next(n)}}catch(m){a={error:m}}finally{try{o&&!o.done&&(i=s.return)&&i.call(s)}finally{if(a)throw a.error}}}})},t.prototype.error=function(n){var r=this;Fn(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var a=r.observers;a.length;)a.shift().error(n)}})},t.prototype.complete=function(){var n=this;Fn(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,a=this,i=a.hasError,s=a.isStopped,o=a.observers;return i||s?Mc:(this.currentObservers=null,o.push(n),new Sn(function(){r.currentObservers=null,er(o,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,a=r.hasError,i=r.thrownError,s=r.isStopped;a?n.error(i):s&&n.complete()},t.prototype.asObservable=function(){var n=new je;return n.source=this,n},t.create=function(n,r){return new xo(n,r)},t}(je),xo=function(e){gt(t,e);function t(n,r){var a=e.call(this)||this;return a.destination=n,a.source=r,a}return t.prototype.next=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.next)===null||a===void 0||a.call(r,n)},t.prototype.error=function(n){var r,a;(a=(r=this.destination)===null||r===void 0?void 0:r.error)===null||a===void 0||a.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,a;return(a=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&a!==void 0?a:Mc},t}(Qc);function Nk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Tk()(Bc(e,Pc(e)))}var bk=new je(function(e){return e.complete()});function jo(e){return e<=0?function(){return bk}:Xt(function(t,n){var r=0;t.subscribe(Ht(n,function(a){++r<=e&&(n.next(a),e<=r&&n.complete())}))})}function Mk(){return Xt(function(e,t){e.subscribe(Ht(t,Ya))})}function Sk(e){return Gc(function(){return e})}function Yc(e,t){return t?function(n){return Nk(t.pipe(jo(1),Mk()),n.pipe(Yc(e)))}:br(function(n,r){return en(e(n,r)).pipe(jo(1),Sk(n))})}function Ik(e,t){t===void 0&&(t=Rc);var n=lk(e,t);return Yc(function(){return n})}function vk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Pc(e);return Bc(e,n)}class $k{constructor(t,n){$(this,"scheduler");$(this,"displayQueue");$(this,"handlers");$(this,"addToQueue",t=>{this.scheduler.next(t)});$(this,"tick",t=>(this.handlers.onAdd(t),vk(t).pipe(Ik(t.delay||0))));$(this,"subscribe",()=>{this.displayQueue.subscribe(this.handlers.onOut)});this.handlers=n,this.scheduler=new Qc,this.displayQueue=this.scheduler.pipe(br(this.tick,t.concurrency)),this.subscribe()}}let Ak=class{constructor(){$(this,"queue");$(this,"queueList");$(this,"displayQueue");$(this,"add",t=>{if(this.isNewNotify(t.id)){const n=t.close,r=t.action;t.close=(...a)=>{n&&n(a),this.hideNotification(t)},t.action=(...a)=>{r&&r(a),this.hideNotification(t)},this.displayQueue.addToQueue(t)}else console.log("skip notification:",t)});$(this,"showNotification",t=>{const n=new Map(this.queue.getValue());n.set(t.id,t),this.queue.setValue(n)});$(this,"hideNotification",t=>{const n=new Map(this.queue.getValue());n.delete(t.id),this.queue.setValue(n)});$(this,"getQueueStore",()=>this.queueList);$(this,"isNewNotify",t=>{const n=localStorage.getItem(`opened:${t}`);return n?!n:!(this.queue.getValue()||new Map).has(t)});$(this,"markAsViewed",t=>{localStorage.setItem(`opened:${t}`,t)});this.queue=new Ce(xe(new Map),"notifications-queue"),this.displayQueue=new $k({concurrency:1},{onAdd:this.showNotification,onOut:this.hideNotification}),this.queueList=L4(this.queue.getStore(),t=>t?[...t.values()]:[])}};const Ek=(e,t,n)=>{e.notifications=new Ak,e.addNotification=e.notifications.add,e.sdk.getNotificationsStore=()=>e.notifications.getQueueStore(),n()},Ok="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCAxMCAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9Ikdyb3VwIDQ2NSI+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY4IiB4PSIxLjI1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKDQ1IDEuMjUgMCkiIGZpbGw9IndoaXRlIi8+CjxyZWN0IGlkPSJSZWN0YW5nbGUgMzY5IiB5PSI4Ljc1IiB3aWR0aD0iMTIuMzc0NCIgaGVpZ2h0PSIxLjc2Nzc3IiByeD0iMC44ODM4ODQiIHRyYW5zZm9ybT0icm90YXRlKC00NSAwIDguNzUpIiBmaWxsPSJ3aGl0ZSIvPgo8L2c+Cjwvc3ZnPgo=";const Dk=A("div")({name:"Container",class:"c1ul2v99",propsAsIs:!1}),wk=A("div")({name:"BackgroundBlock",class:"bk6opdu",propsAsIs:!1}),_k=A("img")({name:"Icon",class:"i120vbip",propsAsIs:!1}),Ck=A("div")({name:"ContentWrap",class:"c9vc70l",propsAsIs:!1}),xk=A("img")({name:"SponsorLogo",class:"s12vky1e",propsAsIs:!1}),jk=A("span")({name:"SponsorText",class:"s1uwi25b",propsAsIs:!1}),Rk=A("div")({name:"ContentTitle",class:"c19y9gzk",propsAsIs:!1}),Lk=A("div")({name:"ContentSubtitle",class:"c1bzwyj2",propsAsIs:!1}),Pk=A("button")({name:"ActionBtn",class:"au6cp8o",propsAsIs:!1}),Uk=A("button")({name:"CloseBtn",class:"c8545uy",propsAsIs:!1}),Fk=A("img")({name:"IconClose",class:"iqjineo",propsAsIs:!1}),zk=({onClose:e,onPlay:t,header:n,title:r,subtitle:a,graphicBg:i,icon:s,sponsorLogo:o})=>T.jsxs(Dk,{children:[T.jsx(Uk,{onClick:e,children:T.jsx(Fk,{alt:"icon-close-onboarding-inapp",src:Ok})}),T.jsx(wk,{style:{backgroundImage:`url(${i||""})`},children:s&&T.jsx(_k,{alt:"onboarding-inapp-icon",src:s})}),T.jsxs(Ck,{children:[T.jsxs("div",{children:[T.jsx("div",{children:o?T.jsxs(T.Fragment,{children:[T.jsx(xk,{alt:"sponsor-logo",src:o}),T.jsx(jk,{children:"Presents"})]}):n||""}),T.jsx(Rk,{children:r||""}),T.jsx(Lk,{children:a||""})]}),T.jsx(Pk,{onClick:t,children:"Play"})]})]}),Bk=({sdk:e})=>{const t=e.getNotificationsStore(),n=Qe.useStore(t);return n==null?void 0:n.map(r=>{var a,i;return r&&r.type==="_onboarding"?T.jsx(zk,{onClose:()=>{var s;e.closeFeature(),(s=r==null?void 0:r.close)==null||s.call(r)},onPlay:()=>{var s;e.openFeature("games"),(s=r==null?void 0:r.action)==null||s.call(r)},...r.data},r.id):!((a=r==null?void 0:r.data)!=null&&a.question)||!((i=r==null?void 0:r.data)!=null&&i.notification)?null:T.jsx(cm,{openVoiting:()=>{var s;(s=r==null?void 0:r.action)==null||s.call(r)},closeInApp:()=>{var s;(s=r==null?void 0:r.close)==null||s.call(r)},title:r.data.notification.title,icon:r.data.notification.image,color:r.data.notification.indicatorColor},r.id)})},Gk=({store:e})=>{var n;const{data:t}=Qe.useStore(e);return t!=null&&t.summary?T.jsx(N4,{avatar:t.summary.avatar,name:t.summary.name,points:t.summary.points,grade:"0",friendsRank:t.summary.friendsRank,globalRank:t.summary.rank,winStreak:t.summary.streak,correct:t.summary.correct,incorrect:t.summary.incorrect,successRate:(n=t.percentage)==null?void 0:n.average}):T.jsx("div",{children:"wait user..."})},Qk=({store:e,openQuestion:t})=>{const{data:n}=Qe.useStore(e);return n?T.jsx(K3,{openQuestion:t,questions:n}):T.jsx("div",{children:"wait questions..."})},Yk="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIGlkPSJUcm9waHkiPgogICAgICA8cGF0aCBpZD0iQ29tYmluZWQgU2hhcGUiIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMi43NjkxNiAzLjUwMDAyQzIuNzY5MTYgNC40OTc4NiAyLjk0NzA1IDUuMzgzNDggMy4zMDI4MiA2LjE1NjkyQzIuNjI0OTMgNi4wMTg0NyAyLjA1ODgzIDUuNzQ4NzIgMS42MDQ1IDUuMzQ3NjhDMS4xNTAxNyA0Ljk0NjYzIDAuOTIzMDA4IDQuNTU5OTIgMC45MjMwMDggNC4xODc1MlYzLjUwMDAySDIuNzY5MTZaTTExLjA3NjggMy41MDAwMlY0LjE4NzUyQzExLjA3NjggNC41NTk5MiAxMC44NDk3IDQuOTQ2NjMgMTAuMzk1MyA1LjM0NzY4QzkuOTQxIDUuNzQ4NzIgOS4zNzQ5IDYuMDE4NDcgOC42OTcwMSA2LjE1NjkyQzkuMDUyNzggNS4zODM0OCA5LjIzMDY2IDQuNDk3ODYgOS4yMzA2NiAzLjUwMDAySDExLjA3NjhaTTEyIDQuMTg3NVYzLjI3MDgzQzEyIDMuMDc5ODYgMTEuOTMyNyAyLjkxNzU0IDExLjc5ODEgMi43ODM4NUMxMS42NjM1IDIuNjUwMTcgMTEuNSAyLjU4MzMzIDExLjMwNzcgMi41ODMzM0g5LjIzMDc3VjEuODk1ODNDOS4yMzA3NyAxLjU4MDczIDkuMTE3NzkgMS4zMTA5OCA4Ljg5MTgzIDEuMDg2NTlDOC42NjU4NiAwLjg2MjE5NSA4LjM5NDIzIDAuNzUgOC4wNzY5MiAwLjc1SDMuOTIzMDhDMy42MDU3NyAwLjc1IDMuMzM0MTQgMC44NjIxOTUgMy4xMDgxNyAxLjA4NjU5QzIuODgyMjEgMS4zMTA5OCAyLjc2OTIzIDEuNTgwNzMgMi43NjkyMyAxLjg5NTgzVjIuNTgzMzNIMC42OTIzMDhDMC40OTk5OTkgMi41ODMzMyAwLjMzNjUzOSAyLjY1MDE3IDAuMjAxOTIzIDIuNzgzODVDMC4wNjczMDcgMi45MTc1NCAwIDMuMDc5ODYgMCAzLjI3MDgzVjQuMTg3NUMwIDQuNTI2NDggMC4wOTk3NTg2IDQuODY3ODQgMC4yOTkyNzkgNS4yMTE1OUMwLjQ5ODc5OSA1LjU1NTM0IDAuNzY4MDI3IDUuODY1NjcgMS4xMDY5NyA2LjE0MjU4QzEuNDQ1OTIgNi40MTk0OSAxLjg2MTc4IDYuNjUyMjMgMi4zNTQ1NyA2Ljg0MDgyQzIuODQ3MzYgNy4wMjk0MSAzLjM2NTM4IDcuMTM1NjMgMy45MDg2NSA3LjE1OTUxQzQuMTEwNTggNy40MTczMiA0LjMzODk0IDcuNjQ0MSA0LjU5Mzc1IDcuODM5ODRDNC43NzY0NCA4LjAwMjE3IDQuOTAyNjQgOC4xNzUyNCA0Ljk3MjM2IDguMzU5MDVDNS4wNDIwNyA4LjU0Mjg2IDUuMDc2OTIgOC43NTY1MSA1LjA3NjkyIDlDNS4wNzY5MiA5LjI1NzgxIDUuMDAzNjEgOS40NzUwNCA0Ljg1Njk3IDkuNjUxNjlDNC43MTAzNCA5LjgyODM0IDQuNDc1OTYgOS45MTY2NyA0LjE1Mzg1IDkuOTE2NjdDMy43OTMyNyA5LjkxNjY3IDMuNDcyMzYgMTAuMDI1MyAzLjE5MTExIDEwLjI0MjVDMi45MDk4NSAxMC40NTk3IDIuNzY5MjMgMTAuNzMzMSAyLjc2OTIzIDExLjA2MjVWMTEuNTIwOEMyLjc2OTIzIDExLjU4NzcgMi43OTA4NyAxMS42NDI2IDIuODM0MTMgMTEuNjg1NUMyLjg3NzQgMTEuNzI4NSAyLjkzMjY5IDExLjc1IDMgMTEuNzVIOUM5LjA2NzMxIDExLjc1IDkuMTIyNiAxMS43Mjg1IDkuMTY1ODYgMTEuNjg1NUM5LjIwOTEzIDExLjY0MjYgOS4yMzA3NyAxMS41ODc3IDkuMjMwNzcgMTEuNTIwOFYxMS4wNjI1QzkuMjMwNzcgMTAuNzMzMSA5LjA5MDE1IDEwLjQ1OTcgOC44MDg4OSAxMC4yNDI1QzguNTI3NjQgMTAuMDI1MyA4LjIwNjczIDkuOTE2NjcgNy44NDYxNSA5LjkxNjY3QzcuNTI0MDQgOS45MTY2NyA3LjI4OTY2IDkuODI4MzQgNy4xNDMwMyA5LjY1MTY5QzYuOTk2MzkgOS40NzUwNCA2LjkyMzA4IDkuMjU3ODEgNi45MjMwOCA5QzYuOTIzMDggOC43NTY1MSA2Ljk1NzkzIDguNTQyODYgNy4wMjc2NCA4LjM1OTA1QzcuMDk3MzYgOC4xNzUyNCA3LjIyMzU2IDguMDAyMTcgNy40MDYyNSA3LjgzOTg0QzcuNjYxMDYgNy42NDQxIDcuODg5NDIgNy40MTczMiA4LjA5MTM1IDcuMTU5NTFDOC42MzQ2MiA3LjEzNTYzIDkuMTUyNjQgNy4wMjk0MSA5LjY0NTQzIDYuODQwODJDMTAuMTM4MiA2LjY1MjIzIDEwLjU1NDEgNi40MTk0OSAxMC44OTMgNi4xNDI1OEMxMS4yMzIgNS44NjU2NyAxMS41MDEyIDUuNTU1MzQgMTEuNzAwNyA1LjIxMTU5QzExLjkwMDIgNC44Njc4NCAxMiA0LjUyNjQ4IDEyIDQuMTg3NVpNNS4wNzAzMyA1LjM4NDkxTDYuMDM4MyA0Ljg3NTAzTDcuMDA2MjcgNS4zODQ5MUw2LjgyMTQgNC4zMDQ5N0w3LjYwNDUxIDMuNTQwMTZMNi41MjIyOCAzLjM4MjZMNi4wMzgzIDIuNDAwMDNMNS41NTQzMSAzLjM4MjZMNC40NzIwOSAzLjU0MDE2TDUuMjU1MTkgNC4zMDQ5N0w1LjA3MDMzIDUuMzg0OTFaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPC9nPgogIDwvc3ZnPgo=",Vk="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMiIgaGVpZ2h0PSIyMiIgdmlld0JveD0iMCAwIDIyIDIyIiBmaWxsPSJub25lIj4KICAgIDxwYXRoIGQ9Ik01LjUgMi43ODg2N1YxMi40MTM3QzUuNSAxMy4xNzI5IDQuODg0MjYgMTMuNzUgNC4xMjUgMTMuNzVIMS4zNzVDMC42MTU3NDIgMTMuNzUgMCAxMy4xMzQzIDAgMTIuNDEzN1YyLjgyNzM0QzAgMi4wNjgwOCAwLjYxNTc0MiAxLjQ5MTAyIDEuMzc1IDEuNDkxMDJINC4xMjVDNC44ODU1NSAxLjQxMzY3IDUuNSAxLjk5Mzc1IDUuNSAyLjc4ODY3Wk0yMiAxMi4zNzA3QzIyIDEzLjUwOTQgMjEuMDc3IDE0LjQzMjMgMTkuOTM3NSAxNC40MzIzSDEzLjY0MjZDMTQuNjIxIDE2LjA2MTMgMTUuMTI1OSAxNy45MDc3IDE1LjEyNTkgMTguNTU4MkMxNS4xMjUgMTkuNTcxNCAxNC4zMzAxIDIwLjYyNSAxMi45OTggMjAuNjI1QzEwLjI4NTQgMjAuNjI1IDExLjg2NTQgMTcuMzUyOSA4LjM0ODgzIDE0LjU0MDZMNy42NDg0NCAxMy45ODJDNy4xNDE0MSAxMy41NzM4IDYuODgzNTkgMTIuOTc2NiA2Ljg3OTMgMTIuMzc1QzYuODc4MjkgMTIuMzc0IDYuODc5MyAxMi4zNzUgNi44NzkzIDEyLjM3NUw2Ljg3NSA1LjVDNi44NzUgNC44NTExNyA3LjE4MDY0IDQuMjM5NzMgNy43IDMuODUwNDNMOS4xNjY5NSAyLjc1MDg2QzEwLjM1NTUgMS44NTYyNSAxMS44MDM1IDEuMzc1IDEzLjI5MDIgMS4zNzVIMTUuODEyNUMxNi45NTIgMS4zNzUgMTcuODc1IDIuMjk3NTQgMTcuODc1IDMuNDM2NjRDMTcuODc1IDMuNTkyODMgMTcuODU0NCAzLjc0MzU3IDE3LjgyMTUgMy44ODk5NkMxOC42NDg0IDQuMTU5MzcgMTkuMjUgNC45MjQyMiAxOS4yNSA1Ljg0Mzc1QzE5LjI1IDYuMjM2ODMgMTkuMTM0MSA2LjYwMDQzIDE4Ljk0MzIgNi45MTI4MUMxOS44OTg4IDcuMDg5ODQgMjAuNjI1IDcuOTI3NzMgMjAuNjI1IDguOTMzMkMyMC42MjUgOS40NzAzMSAyMC40MTQ4IDkuOTU1IDIwLjA3ODQgMTAuMzIyQzIxLjE0OTIgMTAuMzk0MSAyMiAxMS4yNzkzIDIyIDEyLjM3MDdaIiBmaWxsPSJ3aGl0ZSIvPgogIDwvc3ZnPgo=";const Wk=A("div")({name:"Container",class:"c1ibttgl",propsAsIs:!1}),Hk=A("img")({name:"Logo",class:"l16el447",propsAsIs:!1}),qk=A("div")({name:"RightBlock",class:"rb3jndy",propsAsIs:!1}),Zk=A("button")({name:"ExitBtn",class:"e162i9w9",propsAsIs:!1}),Kk=A("img")({name:"ExitIcon",class:"e1uh0tpp",propsAsIs:!1}),Jk=A("div")({name:"Interactive",class:"i13726cq",propsAsIs:!1}),Xk=()=>e=>e.isSuccess?"#f1be1c":"#da3732",Ro=A("div")({name:"ReactionIconWrap",class:"r1weckaj",propsAsIs:!1,vars:{"r1weckaj-0":[Xk()]}}),Lo=A("img")({name:"ReactionIcon",class:"r1u8ekkw",propsAsIs:!1});const eN=A("div")({name:"Container",class:"c1kt0nvm",propsAsIs:!1}),tN=A("div")({name:"Title",class:"tavk3hk",propsAsIs:!1}),nN=A("div")({name:"PointContainer",class:"p1vdx5su",propsAsIs:!1}),rN=A("span")({name:"Point",class:"p68apx3",propsAsIs:!1}),aN=A("span")({name:"PointLabel",class:"p157xd4a",propsAsIs:!1}),Vr=({points:e})=>T.jsxs(eN,{children:[T.jsx(tN,{children:"YOU WON"}),T.jsxs(nN,{children:[T.jsx(rN,{children:e}),T.jsx(aN,{children:"PTS"})]})]}),iN=({logo:e,points:t,questionAnswered:n,questionAnsweredCorrectly:r,questionType:a,closeQuestion:i,setTimeToExpire:s})=>{const o=!n&&a!==Ae.PREDICTION,u=n&&a===Ae.TRIVIA,m=u&&r,p=u&&!r,g=n&&a===Ae.PREDICTION;return T.jsxs(Wk,{children:[T.jsxs(qk,{children:[T.jsxs(Jk,{children:[o&&T.jsx(Du,{setTimeToExpire:s}),m&&T.jsxs(T.Fragment,{children:[T.jsx(Vr,{points:t}),T.jsx(Ro,{isSuccess:!0,children:T.jsx(Lo,{alt:"reaction-icon",src:Yk})})]}),p&&T.jsxs(T.Fragment,{children:[T.jsx(Vr,{points:0}),T.jsx(Ro,{isSuccess:!1,children:T.jsx(Lo,{alt:"reaction-icon",src:Vk})})]}),g&&T.jsx(Vr,{points:t})]}),T.jsx(Zk,{onClick:i,children:T.jsx(Kk,{alt:"exit-icon",src:ii})})]}),e&&T.jsx(Hk,{src:e})]})},sN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCA2OCAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9IlZlY3RvciI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNTYuNjE1NSA3LjQ0MTQ2SDUwLjcwNjZMNTYuMzA3MiAxMy44NjE1TDUwLjcwNjYgMjAuMjgwNUg1Ni40MzU3TDU5LjE1ODcgMTcuMTM3TDYxLjkwNjggMjAuMjgwNUg2Ny44NEw2Mi4xOSAxMy44MzQ4TDY3Ljc2MzYgNy40NDE0Nkg2Mi4wNjA2TDU5LjM4OTcgMTAuNTYwMkw1Ni42MTU1IDcuNDQxNDZaTTYyLjI3MjEgNy45MTY1OUw1OS4zOTY0IDExLjI3NDdMNTYuNDA5MiA3LjkxNjU5SDUxLjc0NDZMNTYuOTMwNyAxMy44NjE1TDUxLjc0NDcgMTkuODA1NEg1Ni4yMjU3TDU5LjE1NzEgMTYuNDIxM0w2Mi4xMTU2IDE5LjgwNTRINjYuNzk4N0w2MS41NjYgMTMuODM1N0w2Ni43MjYxIDcuOTE2NTlINjIuMjcyMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDQuMzYzNSA3LjQ0MTQ2VjQuNTY0MDZINTAuNzA2NlYwLjA1NTk5OThIMzkuNzAyVjIwLjI4MDVINTAuNzA2NlYxNS43NjAxSDQ0LjM2MzVWMTEuNzc5NEg1MC43MDY2VjcuNDQxNDZINDQuMzYzNVpNNTAuMjQwOCA3LjkxNjU5SDQzLjg5NzhWNC4wODg5M0g1MC4yNDA4VjAuNTMxMTMySDQwLjE2NzhWMTkuODA1NEg1MC4yNDA4VjE2LjIzNTJINDMuODk3OFYxMS4zMDQzSDUwLjI0MDhWNy45MTY1OVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0zNS4wNiAwLjA1NTk5OThWOC4zMzI4MUgzNS4wMDg3QzMzLjk4MDMgNy4xMjc4NyAzMi42OTY2IDYuNzA4ODEgMzEuMjA3IDYuNzA4ODFDMjguMTU1MiA2LjcwODgxIDI1Ljg1NjEgOC44MjYgMjUuMDQ5MyAxMS42MjM2QzI0LjEyOCA4LjU0MDkyIDIxLjc1NDQgNi42NTA4NCAxOC4yMzQ5IDYuNjUwODRDMTUuMzc2OSA2LjY1MDg0IDEzLjExOTcgNy45NTkzNiAxMS45NDIyIDEwLjA5MThWNy40NDE0Nkg2LjAzNDE2VjQuNTY0MDZIMTIuNDgxNVYwLjA1NTk5OThIMC43NjgwMDVWMjAuMjgwNUg2LjAzNDE2VjExLjc3OTRIMTEuMjgzNkMxMS4xMjcgMTIuNDAzNyAxMS4wNDMyIDEzLjA3MjcgMTEuMDQzMiAxMy43Nzg4QzExLjA0MzIgMTcuOTk3IDE0LjIwMzEgMjAuOTU4IDE4LjIzNDkgMjAuOTU4QzIxLjYyNTggMjAuOTU4IDIzLjg2MDcgMTkuMzM0IDI1LjA0MTkgMTYuMzc0SDIwLjUyODRDMTkuOTE4MyAxNy4yNjQ0IDE5LjQ1NTMgMTcuNTI3NiAxOC4yMzQ5IDE3LjUyNzZDMTYuODE5OSAxNy41Mjc2IDE1LjU5OTUgMTYuMjY4NSAxNS41OTk1IDE0Ljc3NTZIMjQuNzg5NEMyNS4xODgxIDE4LjEyNjIgMjcuNzQ3MiAyMS4wMTYgMzEuMjU4MiAyMS4wMTZDMzIuNzczIDIxLjAxNiAzNC4xNjAxIDIwLjI1NTggMzUuMDA3OCAxOC45NzI5SDM1LjA1OVYyMC4yODI0SDM5LjcwMUwzOS43MDIgMC4wNTU5OTk4SDM1LjA2Wk0xNS43NDY3IDExLjgzOTNDMTYuMDM5MiAxMC41NTQ1IDE3LjAxNjQgOS43MTU0NSAxOC4yMzU4IDkuNzE1NDVDMTkuNTc4MiA5LjcxNTQ1IDIwLjUwNTEgMTAuNTI4OSAyMC43NDkyIDExLjgzOTNDMjAuODUxNyAxMS44MzkzIDE1Ljc0NjcgMTEuODM5MyAxNS43NDY3IDExLjgzOTNaTTMyLjI0MiAxNy4yMDE2QzMwLjUzMDcgMTcuMjAxNiAyOS40NjY4IDE1LjU3NDggMjkuNDY2OCAxMy44NzY3QzI5LjQ2NjggMTIuMDYxNyAzMC4zOTE5IDEwLjMxNiAzMi4yNDIgMTAuMzE2QzM0LjE2MDEgMTAuMzE2IDM0LjkyNCAxMi4wNjE3IDM0LjkyNCAxMy44NzY3QzM0LjkyNCAxNS41OTc2IDM0LjExNDQgMTcuMjAxNiAzMi4yNDIgMTcuMjAxNloiIGZpbGw9IndoaXRlIi8+CjwvZz4KPC9zdmc+Cg==";const oN=A("div")({name:"QuestionContainer",class:"q15yq4tu",propsAsIs:!1}),lN=({store:e,closeQuestion:t,vote:n})=>{var m;const{data:r}=Qe.useStore(e),[a,i]=x.useState(!1),s=x.useCallback(p=>{i(p)},[i]),o=x.useMemo(()=>r==null?void 0:r.answers.find(p=>p.youVoted===!0),[r]),u=x.useMemo(()=>!!(r!=null&&r.answers.find(p=>p.correct===!0)),[r]);return r?T.jsx(oN,{children:T.jsxs("div",{children:[T.jsx(iN,{points:(o==null?void 0:o.points)||0,questionAnswered:!!o,questionAnsweredCorrectly:o==null?void 0:o.correct,logo:sN,closeQuestion:t,setTimeToExpire:s,questionType:r.type}),T.jsx("div",{children:T.jsx(C4,{title:r.subject,feedbackMessages:(m=r.options)==null?void 0:m.options.value,questionType:r.type,questionId:r.id,questionAnswered:!!o,questionAnsweredCorrectly:o==null?void 0:o.correct,options:r.answers.map(p=>({id:p.id,title:p.text,icon:p.icon,type:r.type,correct:p.correct,percentage:p.percentage,answered:p.youVoted,disabled:!!o||r.marketClosed||a,questionAnswered:!!o,hasCorrectAnswer:u,points:p.points,onVote:n}))})})]})}):null};const _n=A("div")({name:"DemoContainer",class:"dp9wag8",propsAsIs:!1}),uN=A("div")({name:"DemoContainerNotifications",class:"d15x0q1l",propsAsIs:!1}),cN=A("div")({name:"UserStatisticsContainer",class:"u13pbrok",propsAsIs:!1}),dN=A("div")({name:"QuestionsContainer",class:"qaw537u",propsAsIs:!1}),mN=({gamification:e,sdk:t})=>{var m,p,g,y,k,M,S,_,v,O,L,P,F,z,U,V,H,J,ae,ce,oe,q,le;const n=Qe.useStore(e.status),r=Qe.useStore(e.onbordingComplete),{slStreamId:a}=Qe.useStore(t.sdkStore),i=Qe.useStore(e.featureSettings);if(n!==bt.Ready)return T.jsx("div",{children:"wait..."});if(a!=null&&a.loading)return T.jsx(_n,{children:T.jsx("div",{children:"Event is loading"})});if(!(a!=null&&a.data))return T.jsx(_n,{children:T.jsx("div",{children:"Event is forbidden"})});if(!r)return T.jsx(_n,{children:T.jsx(Yh,{closeFeature:t.closeFeature,gamification:e,steps:(p=(m=i.inplayGame)==null?void 0:m.onboarding)==null?void 0:p.steps,gameIcon:(k=(y=(g=i.inplayGame)==null?void 0:g.overview)==null?void 0:y.media)==null?void 0:k.gameIcon,sponsorLogo:(_=(S=(M=i.inplayGame)==null?void 0:M.overview)==null?void 0:S.media)==null?void 0:_.sponsorLogo,rules:(O=(v=i.inplayGame)==null?void 0:v.rules)==null?void 0:O.rules,rulesBtnLabel:(P=(L=i.inplayGame)==null?void 0:L.rules)==null?void 0:P.buttonLabel,rulesTitle:(z=(F=i.inplayGame)==null?void 0:F.rules)==null?void 0:z.heading,primaryColor:(H=(V=(U=i.inplayGame)==null?void 0:U.overview)==null?void 0:V.appearance)==null?void 0:H.primaryColor,inviteCardTitle:(ae=(J=i.inplayGame)==null?void 0:J.inviteCard)==null?void 0:ae.heading,inviteCardSubtext:(oe=(ce=i.inplayGame)==null?void 0:ce.inviteCard)==null?void 0:oe.subtext,inviteCardBtnLabel:(le=(q=i.inplayGame)==null?void 0:q.inviteCard)==null?void 0:le.buttonLabel})});const s=Me=>{e.openQuestion(Me)},o=()=>{e.closeQuestion()},u=(Me,we)=>{e.submitAnswer(Me,we)};return T.jsxs(_n,{children:[T.jsx(cN,{children:e.userSummary&&T.jsx(Gk,{store:e.userSummary.getStore()})}),T.jsxs(dN,{children:[e.questions&&T.jsx(Qk,{openQuestion:s,store:e.questions.getStore()}),e.openedQuestion&&T.jsx(lN,{closeQuestion:o,vote:u,store:e.openedQuestion.getStore()})]})]})},fN=({sdk:e})=>{const t=async n=>{try{await e.authorizationBypass("streamlayer:streamlayer",n)}catch(r){throw console.log("login err",r),r}};return T.jsx(fh,{login:t,anonymousLogin:e.anonymousAuthorization,host:e.host})},pN=({activeFeature:e,sdk:t})=>{const[n,r]=x.useState(null);if(x.useEffect(()=>{const a=t.getFeatures();if(e)for(const[i,s]of a)i.toLowerCase()===e.toLowerCase()?s.status.get()===bt.Suspended&&(s.enable(),r(s)):s.status.get()===bt.Ready&&s.disable();else{for(const[,i]of a)i.status.get()===bt.Ready&&i.disable();r(null)}return()=>{for(const[,i]of a)i.status.get()===bt.Ready&&i.disable()}},[e,t]),e==="games"){const a=n;return a?T.jsxs("div",{children:[T.jsx("button",{onClick:()=>t.closeFeature(),children:"close"}),T.jsx(mN,{gamification:a,sdk:t})]}):T.jsx("div",{children:"wait gamification..."})}return T.jsxs("div",{children:[T.jsx("button",{onClick:()=>t.logout(),children:"logout"}),T.jsx("button",{onClick:()=>t.openFeature("games"),children:"gamification"})]})},yN=({sdk:e})=>{const t=Qe.useStore(e.organizationStore()),n=Qe.useStore(e.getUserStore()),r=Qe.useStore(e.getActiveFeature());return t.loading?T.jsx("div",{children:"authentificating..."}):t.data?n.loading?T.jsx("div",{children:"authentificating..."}):n.data?T.jsxs(T.Fragment,{children:[T.jsx(uN,{children:T.jsx(Bk,{sdk:e})}),T.jsx(pN,{sdk:e,activeFeature:r})]}):T.jsx(fN,{sdk:e}):T.jsx("div",{children:"wrong sdk key..."})};const gN="t12mji3x",hN=({children:e})=>T.jsx("div",{className:gN,children:e});let TN=()=>({events:{},emit(e,...t){let n=this.events[e]||[];for(let r=0,a=n.length;r<a;r++)n[r](...t)},on(e,t){var n;return(n=this.events[e])!=null&&n.push(t)||(this.events[e]=[t]),()=>{var r;this.events[e]=(r=this.events[e])==null?void 0:r.filter(a=>t!==a)}}});const kN=({cache:e=new Map,fetcher:t,...n}={})=>{const r=TN();let a=!0;Bo("visibilitychange",()=>{a=!document.hidden,a&&r.emit(Uo)}),Bo("online",()=>r.emit(Fo));const i=new Map,s=new Map,o=new Map;let u={};const m=async([v,O],L,P,F)=>{var z;if(!a)return;const U=oe=>{L.key===v&&(L.set(oe),r.emit(Wr,v,oe,!0))},V=()=>{U({...L.value,...Qo,promise:o.get(v)})},{dedupeTime:H=4e3,fetcher:J}={...P,...u},ae=Go();if(o.has(v)){L.value.loading||V();return}if(!F){const oe=e.get(v);oe&&L.value.data!==oe&&U({data:oe,...ht});const q=s.get(v);if(q&&q+H>ae)return}const ce=De.startTask();try{const oe=J(...O);s.set(v,ae),o.set(v,oe),V();const q=await oe;e.set(v,q),U({data:q,...ht}),s.set(v,Go())}catch(oe){(z=P.onError)==null||z.call(P,oe),U({data:L.value.data,error:oe,...ht})}finally{ce(),o.delete(v)}},p=(v,{fetcher:O=t,...L}={})=>{const P=De.map({...ht}),F={...n,...L,fetcher:O};P.invalidate=()=>{const{key:q}=P;q&&k(q)},P.mutate=q=>{const{key:le}=P;le&&M(le,q)};let z,U,V,H,J,ae=[];De.onStart(P,()=>{const q=!z;[J,z]=NN(v),H=J.subscribe(ve=>{if(ve){const[ee,b]=ve;P.key=ee,m([ee,b],P,F),U=ee,V=b}else P.key=U=V=void 0});const le=J.get();le&&([U,V]=le,q&&ce());const{refetchInterval:Me=0,refetchOnFocus:we,refetchOnReconnect:_e}=F,Se=()=>{U&&m([U,V],P,F)};Me>0&&i.set(v,setInterval(Se,Me)),we&&ae.push(r.on(Uo,Se)),_e&&ae.push(r.on(Fo,Se)),ae.push(r.on(zo,ve=>{U&&Hr(U,ve)&&m([U,V],P,F,!0)}),r.on(Wr,(ve,ee,b)=>{U&&Hr(U,ve)&&P.value!==ee&&P.value.data!==ee&&P.set(b?ee:{data:ee,...ht})}))});const ce=()=>{U&&V&&m([U,V],P,F)},oe=P.listen;return P.listen=q=>{const le=oe(q);return q(P.value),ce(),le},De.onStop(P,()=>{P.value={...ht},z==null||z(),ae.forEach(le=>le()),ae=[],H==null||H();const q=i.get(v);q&&clearInterval(q)}),P},g=v=>{e.delete(v),s.delete(v)},y=(v,O)=>{for(const L of e.keys())Hr(L,v)&&O(L)},k=v=>{y(v,g),r.emit(zo,v)},M=(v,O)=>{y(v,L=>{O===void 0?g(L):e.set(L,O)}),r.emit(Wr,v,O)};function S(v){const O=async P=>{var F,z;const U=(F=u.fetcher)!=null?F:v,V=[];try{L.set({error:void 0,data:void 0,mutate:O,...Qo});const H=await U({data:P,invalidate:J=>{V.push(J)},getCacheUpdater:(J,ae=!0)=>[ce=>{M(J,ce),ae&&V.push(J)},e.get(J)]});return L.setKey("data",H),H}catch(H){(z=n==null?void 0:n.onError)==null||z.call(n,H),L.setKey("error",H)}finally{L.setKey("loading",!1),V.forEach(k)}},L=De.map({mutate:O,...ht});return L.mutate=O,L}return[p,S,{__unsafeOverruleSettings:v=>{console.warn("You should only use __unsafeOverruleSettings in test environment"),u=v},invalidateKeys:k,mutateCache:M}]};function Po(e){return typeof e=="string"||typeof e=="number"}const NN=e=>{if(Po(e))return[De.atom([""+e,[e]]),()=>{}];let t=De.atom(null),n=[];const r=()=>{n.some(i=>i==null)?t.set(null):t.set([n.join(""),n])},a=[];for(let i=0;i<e.length;i++){const s=e[i];if(Po(s)){n.push(s);continue}a.push(s.subscribe(o=>{n[i]=o,r()}))}return r(),[t,()=>a.forEach(i=>i())]},Uo=1,Fo=2,zo=3,Wr=4,Bo=(e,t)=>{typeof window>"u"||addEventListener(e,t)},Hr=(e,t)=>Array.isArray(t)?t.includes(e):typeof t=="function"?t(e):e===t,Go=()=>new Date().getTime(),Qo={loading:!0},ht={loading:!1};window.dispatchEvent(new CustomEvent("grpc_devtools_loaded"));class bN{constructor(t,n,r,a){$(this,"params");$(this,"stream");$(this,"method");$(this,"name");$(this,"headers");$(this,"listeners");$(this,"state");$(this,"store");$(this,"updateState",t=>{this.state.setValue("status",t),this.state.setValue("ts",new Date),this.addStateLog(`status => ${t}`)});$(this,"addStateLog",t=>{const n=this.state.getStore().get().log;this.state.setValue("log",[...n,`${new Date().toLocaleString()}: ${t}`])});$(this,"addListener",(t,n)=>this.listeners.has(t)?(this.addStateLog(`listener '${t}' not added`),!1):(this.listeners.set(t,n),this.addStateLog(`listener '${t}' added`),!0));$(this,"removeListener",t=>{this.listeners.delete(t),this.addStateLog(`listener '${t}' removed`)});$(this,"connect",()=>{this.updateState("connecting"),this.stream&&(this.addStateLog("disconnect prev connection"),this.stream());const t="get"in this.params&&typeof this.params.get=="function"?this.params.get():this.params;this.stream=this.method(t,this.onData,this.onStreamError,{headers:this.headers.getValues()}),this.updateState("connected")});$(this,"disconnect",()=>{this.stream&&this.stream(),this.listeners.clear(),this.updateState("disconnected")});$(this,"reconnect",()=>{this.updateState("reconnecting"),this.connect()});$(this,"getStore",()=>{var t;return(t=this.store)==null?void 0:t.getStore()});$(this,"onData",t=>{this.addStateLog(`received data => ${JSON.stringify(t)}`),this.store&&this.store.setValue(t);for(const[,n]of this.listeners)n(t);this.addStateLog(`data routed to ${this.listeners.size} listeners`)});$(this,"onStreamError",t=>{t!==void 0&&(t.code!==re.Canceled&&t.rawMessage!=="[canceled] BodyStreamBuffer was aborted"?(this.updateState("failed"),this.state.setValue("error",t)):this.disconnect())});const i={status:"init",ts:new Date,log:[]};this.state=new mn(fn(i),`subscription:${a.name}:state`),this.name=a.name,this.headers=t,this.listeners=new Map,this.params=r,this.method=n,a.withStore&&(this.store=new Ce(xe(null),`subscription:${a.name}:store`)),"subscribe"in r&&typeof r.subscribe=="function"&&r.subscribe(()=>{this.reconnect()}),this.updateState("ready")}}class MN{constructor(t){$(this,"toJsonOptions",{emitDefaultValues:!1,enumAsInteger:!0,useProtoFieldName:!1});$(this,"transport");$(this,"nanoquery");$(this,"host");$(this,"interceptors",[]);$(this,"$headers");$(this,"clients");$(this,"callbackClients");$(this,"subscriptions");$(this,"addSubscription",(t,n,r)=>{const a=this.subscriptions.get(n);if(a)return a;const i=new bN(this.$headers,t,n,r);return this.subscriptions.set(n,i),i});$(this,"removeSubscription",t=>{t.disconnect(),this.subscriptions.delete(t.params)});$(this,"disconnect",()=>{for(const[t,n]of this.subscriptions)n.disconnect(),this.subscriptions.delete(t)});$(this,"registerInterceptor",t=>{this.interceptors.push(t)});$(this,"removeInterceptor",t=>{this.interceptors=this.interceptors.filter(n=>n!==t)});$(this,"getClient",t=>{const n=t.typeName;if(this.clients.has(n))return this.clients.get(n);const r=gr(t,this.transport);return this.clients.set(n,r),r});$(this,"getCallbackClient",t=>{const n=t.typeName;if(this.callbackClients.has(n))return this.callbackClients.get(n);const r=i1(t,this.transport);return this.callbackClients.set(n,r),r});$(this,"createPromiseClient",(t,{params:n=[],method:r})=>{const a=this.getClient(t),i=t.methods[r].name,s=[t.typeName,i.charAt(0).toLowerCase()+i.slice(1),...Array.isArray(n)?n:[n]],o=[t.typeName,i.charAt(0).toLowerCase()+i.slice(1)];return{client:a,queryKey:s,queryKeyStr:o.join("")}});$(this,"createCallbackClient",t=>({client:this.getCallbackClient(t)}));$(this,"setSdkKey",t=>{this.$headers.setValue("sdk",t)});$(this,"setAuth",t=>{this.$headers.setValue("authorization",t)});$(this,"setHeader",(t,n)=>this.$headers.setValue(t,n));$(this,"getHeader",t=>this.$headers.getValue(t));$(this,"getHeaders",()=>this.$headers.getValues());$(this,"initInterceptors",()=>{if(this.interceptors.length!==0)return;const t=n=>r=>{const a=this.$headers.getValues();for(const i in a)r.header.set(i,a[i]);return n(r)};this.interceptors.push(t)});var i,s;this.host=t,this.$headers=new mn(fn({"sl-device-id":((s=(i=Q.process)==null?void 0:i.env)==null?void 0:s.NX_DEVICE_ID)||"sdk-web-dev"}),"transport:headers"),this.initInterceptors(),this.clients=new Map,this.callbackClients=new Map,this.subscriptions=new Map;const[n,r,a]=kN();this.nanoquery={createFetcherStore:n,createMutatorStore:r,utils:a},this.transport=hr({baseUrl:t,interceptors:this.interceptors,useBinaryFormat:!0})}}const SN=c.makeEnum("streamlayer.sports.LeagueSyncStatus",[{no:0,name:"LEAGUE_SYNC_STATUS_UNSET",localName:"UNSET"},{no:1,name:"LEAGUE_SYNC_STATUS_SCHEDULED",localName:"SCHEDULED"},{no:2,name:"LEAGUE_SYNC_STATUS_IN_PROGRESS",localName:"IN_PROGRESS"},{no:3,name:"LEAGUE_SYNC_STATUS_SYNCED",localName:"SYNCED"},{no:4,name:"LEAGUE_SYNC_STATUS_ERROR",localName:"ERROR"}]),Si=c.makeEnum("streamlayer.sports.EventStatus",[{no:0,name:"EVENT_STATUS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_STATUS_PREGAME",localName:"PREGAME"},{no:2,name:"EVENT_STATUS_ACTIVE",localName:"ACTIVE"},{no:3,name:"EVENT_STATUS_BREAK",localName:"BREAK"},{no:4,name:"EVENT_STATUS_OVERTIME",localName:"OVERTIME"},{no:5,name:"EVENT_STATUS_SHOOTOUTS",localName:"SHOOTOUTS"},{no:6,name:"EVENT_STATUS_POSTGAME",localName:"POSTGAME"},{no:7,name:"EVENT_STATUS_CANCELLED",localName:"CANCELLED"}]),Ii=c.makeEnum("streamlayer.sports.EventEndless",[{no:0,name:"EVENT_ENDLESS_UNSET",localName:"UNSET"},{no:1,name:"EVENT_ENDLESS_ENABLED",localName:"ENABLED"},{no:2,name:"EVENT_ENDLESS_DISABLED",localName:"DISABLED"}]),Mr=c.makeMessageType("streamlayer.sports.Pagination",()=>[{no:1,name:"page",kind:"scalar",T:5},{no:2,name:"page_size",kind:"scalar",T:5}]),Vc=c.makeMessageType("streamlayer.sports.Sort",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"order",kind:"scalar",T:9}]),Sr=c.makeMessageType("streamlayer.sports.Meta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}]),Ir=c.makeMessageType("streamlayer.sports.Venue",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"scalar",T:9},{no:3,name:"stadium",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sports.Team",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"alias",kind:"scalar",T:9},{no:5,name:"venue",kind:"message",T:Ir}]);const In=c.makeMessageType("streamlayer.sports.EventTime",()=>[{no:1,name:"clock",kind:"scalar",T:9},{no:2,name:"period",kind:"scalar",T:5}]),Wc=c.makeMessageType("streamlayer.sports.EventPeriod",()=>[{no:1,name:"number",kind:"scalar",T:5},{no:2,name:"score_home",kind:"scalar",T:5},{no:3,name:"score_away",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Event",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"custom_fields",kind:"scalar",T:9},{no:3,name:"league_id",kind:"scalar",T:4},{no:4,name:"season_id",kind:"scalar",T:4},{no:5,name:"home_team_id",kind:"scalar",T:4},{no:6,name:"away_team_id",kind:"scalar",T:4},{no:7,name:"winner_team_id",kind:"scalar",T:4},{no:8,name:"scheduled",kind:"scalar",T:9},{no:9,name:"score_home",kind:"scalar",T:5},{no:10,name:"score_away",kind:"scalar",T:5},{no:11,name:"venue",kind:"message",T:Ir},{no:12,name:"event_time",kind:"message",T:In},{no:13,name:"status",kind:"enum",T:c.getEnumType(Si)},{no:14,name:"periods",kind:"message",T:Wc,repeated:!0},{no:15,name:"start_time",kind:"scalar",T:9},{no:16,name:"end_time",kind:"scalar",T:9},{no:17,name:"endless",kind:"enum",T:c.getEnumType(Ii)}]);const Hc=c.makeMessageType("streamlayer.sports.Country",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"abbreviation",kind:"scalar",T:9}]),IN=c.makeMessageType("streamlayer.sports.PlayerAttributes",()=>[{no:1,name:"display_id",kind:"scalar",T:5},{no:3,name:"full_first",kind:"scalar",T:9},{no:4,name:"full_last",kind:"scalar",T:9},{no:5,name:"uniform",kind:"scalar",T:9},{no:6,name:"height",kind:"message",T:vN},{no:7,name:"weight",kind:"message",T:$N},{no:8,name:"birth",kind:"message",T:AN}]),vN=c.makeMessageType("streamlayer.sports.PlayerAttributes.Height",()=>[{no:1,name:"centimeters",kind:"scalar",T:5},{no:2,name:"inches",kind:"scalar",T:5}],{localName:"PlayerAttributes_Height"}),$N=c.makeMessageType("streamlayer.sports.PlayerAttributes.Weight",()=>[{no:1,name:"kilograms",kind:"scalar",T:5},{no:2,name:"pounds",kind:"scalar",T:5}],{localName:"PlayerAttributes_Weight"}),AN=c.makeMessageType("streamlayer.sports.PlayerAttributes.Birth",()=>[{no:1,name:"city",kind:"scalar",T:9},{no:2,name:"country",kind:"message",T:Hc}],{localName:"PlayerAttributes_Birth"});c.makeMessageType("streamlayer.sports.PlayerAttributes.Birth.BirthDate",()=>[{no:1,name:"year",kind:"scalar",T:5},{no:2,name:"month",kind:"scalar",T:5},{no:3,name:"date",kind:"scalar",T:5},{no:4,name:"full",kind:"scalar",T:9}],{localName:"PlayerAttributes_Birth_BirthDate"});const EN=c.makeMessageType("streamlayer.sports.PlayerTeam",()=>[{no:1,name:"team_id",kind:"scalar",T:4},{no:2,name:"position",kind:"scalar",T:9},{no:3,name:"jersey_number",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Player",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"first_name",kind:"scalar",T:9},{no:10,name:"last_name",kind:"scalar",T:9},{no:14,name:"display_name",kind:"scalar",T:9},{no:11,name:"birth_date",kind:"scalar",T:9},{no:12,name:"nationality",kind:"message",T:Hc},{no:13,name:"attributes",kind:"message",T:IN},{no:15,name:"teams",kind:"message",T:EN,repeated:!0}]);const ft=c.makeMessageType("streamlayer.sports.TeamRecord",()=>[{no:1,name:"wins",kind:"scalar",T:5},{no:2,name:"losses",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.Season",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:4,name:"name",kind:"scalar",T:9},{no:5,name:"type",kind:"scalar",T:9},{no:6,name:"year",kind:"scalar",T:5},{no:7,name:"league_id",kind:"scalar",T:4}]);const ln=c.makeMessageType("streamlayer.sports.SyncStatusStage",()=>[{no:1,name:"stage",kind:"scalar",T:9},{no:2,name:"timestamp",kind:"scalar",T:4},{no:3,name:"datetime",kind:"scalar",T:9},{no:4,name:"error",kind:"scalar",T:9},{no:5,name:"status",kind:"enum",T:c.getEnumType(SN)}]),ON=c.makeMessageType("streamlayer.sports.SyncStatus",()=>[{no:1,name:"teams",kind:"message",T:ln},{no:2,name:"event",kind:"message",T:ln},{no:3,name:"events",kind:"message",T:ln},{no:4,name:"players",kind:"message",T:ln},{no:5,name:"leagues",kind:"message",T:ln}]),DN=c.makeMessageType("streamlayer.sports.SyncStatusProvider",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"status",kind:"message",T:ON}]);c.makeMessageType("streamlayer.sports.League",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:9,name:"country",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9},{no:13,name:"sync",kind:"scalar",T:8},{no:14,name:"sport_id",kind:"scalar",T:4},{no:12,name:"sync_status",kind:"message",T:DN,repeated:!0}]);c.makeMessageType("streamlayer.sports.Sport",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"created",kind:"scalar",T:9},{no:3,name:"updated",kind:"scalar",T:9},{no:8,name:"custom_fields",kind:"scalar",T:9},{no:10,name:"name",kind:"scalar",T:9},{no:11,name:"alias",kind:"scalar",T:9}]);const wN=c.makeMessageType("streamlayer.sports.NflEventStatistics",()=>[{no:1,name:"passes",kind:"scalar",T:5},{no:2,name:"rushes",kind:"scalar",T:5},{no:3,name:"penalties",kind:"scalar",T:5},{no:4,name:"turnovers",kind:"scalar",T:5}]),_N=c.makeMessageType("streamlayer.sports.SoccerEventStatistics",()=>[{no:1,name:"ball_possession",kind:"scalar",T:5},{no:2,name:"throw_ins",kind:"scalar",T:5},{no:3,name:"fouls",kind:"scalar",T:5},{no:4,name:"goal_kicks",kind:"scalar",T:5},{no:5,name:"free_kicks",kind:"scalar",T:5},{no:6,name:"shots_on_target",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"shots_off_target",kind:"scalar",T:5},{no:9,name:"shots_saved",kind:"scalar",T:5},{no:10,name:"offsides",kind:"scalar",T:5},{no:11,name:"shots_blocked",kind:"scalar",T:5},{no:12,name:"yellow_cards",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.EventTeamStatistics",()=>[{no:1,name:"football",kind:"message",T:wN,oneof:"statistics"},{no:2,name:"soccer",kind:"message",T:_N,oneof:"statistics"}]);const pt=c.makeMessageType("streamlayer.sports.EventTeam",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"is_winner",kind:"scalar",T:8}]),CN=c.makeMessageType("streamlayer.sports.EventCustomFields",()=>[{no:1,name:"preview",kind:"scalar",T:9},{no:2,name:"stream",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"event_ids",kind:"scalar",T:9,repeated:!0},{no:6,name:"subtitle",kind:"scalar",T:9},{no:7,name:"promotitle",kind:"scalar",T:9},{no:8,name:"slate",kind:"scalar",T:9},{no:9,name:"horizontal_preview",kind:"scalar",T:9},{no:10,name:"small_logo",kind:"scalar",T:9},{no:11,name:"description",kind:"scalar",T:9}]),xN=c.makeMessageType("streamlayer.sports.EventProgram",()=>[{no:1,name:"id",kind:"scalar",T:9,opt:!0},{no:2,name:"title",kind:"scalar",T:9},{no:3,name:"start_time",kind:"scalar",T:9},{no:4,name:"end_time",kind:"scalar",T:9},{no:5,name:"thumbnail_url",kind:"scalar",T:9},{no:6,name:"square_thumbnail_url",kind:"scalar",T:9}]),jN=c.makeMessageType("streamlayer.sports.EventData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"sport",kind:"scalar",T:9},{no:3,name:"league",kind:"scalar",T:9},{no:4,name:"scheduled",kind:"scalar",T:9},{no:5,name:"home",kind:"message",T:pt},{no:6,name:"away",kind:"message",T:pt},{no:7,name:"status",kind:"enum",T:c.getEnumType(Si)},{no:8,name:"custom_fields",kind:"message",T:CN},{no:9,name:"start_time",kind:"scalar",T:9},{no:10,name:"end_time",kind:"scalar",T:9},{no:11,name:"venue",kind:"message",T:Ir},{no:12,name:"schedule",kind:"message",T:xN,repeated:!0},{no:13,name:"endless",kind:"enum",T:c.getEnumType(Ii)}]),vt=c.makeMessageType("streamlayer.sports.EventSummary",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"scheduled",kind:"scalar",T:9},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"venue",kind:"message",T:Ir},{no:6,name:"event_time",kind:"message",T:In},{no:7,name:"home_team",kind:"message",T:pt},{no:8,name:"away_team",kind:"message",T:pt},{no:9,name:"status",kind:"enum",T:c.getEnumType(Si)},{no:10,name:"periods",kind:"message",T:Wc,repeated:!0},{no:11,name:"league",kind:"scalar",T:9},{no:12,name:"start_time",kind:"scalar",T:9},{no:13,name:"end_time",kind:"scalar",T:9},{no:14,name:"name",kind:"scalar",T:9},{no:15,name:"logo",kind:"scalar",T:9}]),Cn=c.makeMessageType("streamlayer.sports.QueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9}]),Yo=c.makeMessageType("streamlayer.sports.ArrayQueryOption",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:9,repeated:!0}]);c.makeMessageType("streamlayer.sports.Query",()=>[{no:1,name:"provider",kind:"scalar",T:9},{no:2,name:"match",kind:"message",T:Cn,repeated:!0},{no:3,name:"ne",kind:"message",T:Cn,repeated:!0},{no:4,name:"eq",kind:"message",T:Cn,repeated:!0},{no:5,name:"between",kind:"message",T:Yo,repeated:!0},{no:6,name:"includes",kind:"message",T:Yo,repeated:!0},{no:7,name:"is",kind:"message",T:Cn,repeated:!0}]);const RN=c.makeEnum("streamlayer.sports.baseball.PitcherStatus",[{no:0,name:"PITCHER_STATUS_UNSET",localName:"UNSET"},{no:1,name:"PITCHER_STATUS_WIN",localName:"WIN"},{no:2,name:"PITCHER_STATUS_LOSS",localName:"LOSS"}]),LN=c.makeEnum("streamlayer.sports.baseball.BaseballBase",[{no:0,name:"BASEBALL_BASE_UNSET",localName:"UNSET"},{no:1,name:"BASEBALL_BASE_FIRST",localName:"FIRST"},{no:2,name:"BASEBALL_BASE_SECOND",localName:"SECOND"},{no:3,name:"BASEBALL_BASE_THIRD",localName:"THIRD"}]),Vo=c.makeMessageType("streamlayer.sports.baseball.PitcherSummary",()=>[{no:1,name:"statistics",kind:"message",T:qc},{no:2,name:"status",kind:"enum",T:c.getEnumType(RN)},{no:3,name:"win_rate",kind:"scalar",T:5},{no:4,name:"loss_rate",kind:"scalar",T:5}]),PN=c.makeMessageType("streamlayer.sports.baseball.Runner",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"jersey_number",kind:"scalar",T:9}]),UN=c.makeMessageType("streamlayer.sports.baseball.RunnerOnBase",()=>[{no:1,name:"base_number",kind:"enum",T:c.getEnumType(LN)},{no:2,name:"player",kind:"message",T:PN}]),FN=c.makeMessageType("streamlayer.sports.baseball.Hitting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"hits_per_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"run_batted_in",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"batting_average",kind:"scalar",T:9}]),zN=c.makeMessageType("streamlayer.sports.baseball.Batting",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"at_bat",kind:"scalar",T:9},{no:3,name:"runs",kind:"scalar",T:9},{no:4,name:"hits",kind:"scalar",T:9},{no:5,name:"batting_average",kind:"scalar",T:9}]),qc=c.makeMessageType("streamlayer.sports.baseball.Pitching",()=>[{no:1,name:"player_name",kind:"scalar",T:9},{no:2,name:"innings_pitched",kind:"scalar",T:9},{no:3,name:"hits_by_pitch",kind:"scalar",T:9},{no:4,name:"earned_runs",kind:"scalar",T:9},{no:5,name:"walks",kind:"scalar",T:9},{no:6,name:"strikeouts",kind:"scalar",T:9}]),Wo=c.makeMessageType("streamlayer.sports.baseball.BaseballTeamSummary",()=>[{no:1,name:"hitting",kind:"message",T:FN,repeated:!0},{no:2,name:"batting",kind:"message",T:zN,repeated:!0},{no:3,name:"pitching",kind:"message",T:qc,repeated:!0}]),BN=c.makeMessageType("streamlayer.sports.baseball.BaseballSummary",()=>[{no:1,name:"home_pitcher",kind:"message",T:Vo},{no:2,name:"away_pitcher",kind:"message",T:Vo},{no:3,name:"home_statistics",kind:"message",T:Wo},{no:4,name:"away_statistics",kind:"message",T:Wo}]),GN=c.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:pt},{no:2,name:"inning",kind:"scalar",T:9},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"detail",kind:"message",T:QN,repeated:!0},{no:5,name:"runs",kind:"scalar",T:5},{no:6,name:"hits",kind:"scalar",T:5},{no:7,name:"errors",kind:"scalar",T:5}]),QN=c.makeMessageType("streamlayer.sports.baseball.BaseballPlayByPlayStatistics.BaseballPlayByPlayDetailStatistics",()=>[{no:1,name:"score_home",kind:"scalar",T:5},{no:2,name:"score_away",kind:"scalar",T:5},{no:3,name:"play_text",kind:"scalar",T:9},{no:4,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}],{localName:"BaseballPlayByPlayStatistics_BaseballPlayByPlayDetailStatistics"}),YN=c.makeMessageType("streamlayer.sports.baseball.EventScore",()=>[{no:1,name:"outs",kind:"scalar",T:5},{no:2,name:"inning",kind:"scalar",T:5},{no:3,name:"inning_division",kind:"scalar",T:9},{no:4,name:"is_delayed",kind:"scalar",T:8},{no:5,name:"reason_for_delay",kind:"scalar",T:9},{no:6,name:"runners_on_base",kind:"message",T:UN,repeated:!0},{no:7,name:"taken_bases",kind:"scalar",T:5},{no:8,name:"home_team_record",kind:"message",T:ft},{no:9,name:"away_team_record",kind:"message",T:ft}]),VN=c.makeMessageType("streamlayer.sports.baseball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:GN,repeated:!0}]),WN=c.makeMessageType("streamlayer.sports.baseball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:BN}]),HN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:qN},{no:11,name:"rank",kind:"message",T:ZN},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),qN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding.Streak",()=>[{no:1,name:"losses",kind:"scalar",T:5},{no:2,name:"wins",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),ZN=c.makeMessageType("streamlayer.sports.baseball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),KN=c.makeMessageType("streamlayer.sports.baseball.Standings",()=>[{no:1,name:"standings",kind:"message",T:HN,repeated:!0}]),JN=c.makeEnum("streamlayer.sports.basketball.BasketballPerformerCategory",[{no:0,name:"BASKETBALL_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"BASKETBALL_PERFORMER_CATEGORY_POINTS",localName:"POINTS"},{no:2,name:"BASKETBALL_PERFORMER_CATEGORY_REBOUNDS",localName:"REBOUNDS"},{no:3,name:"BASKETBALL_PERFORMER_CATEGORY_ASSISTS",localName:"ASSISTS"}]),XN=c.makeMessageType("streamlayer.sports.basketball.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:ft},{no:9,name:"away_team_record",kind:"message",T:ft}]),Ho=c.makeMessageType("streamlayer.sports.basketball.BasketballTeamSummary",()=>[{no:1,name:"field_goal_percentage",kind:"scalar",T:1},{no:2,name:"three_pts_percentage",kind:"scalar",T:1},{no:3,name:"free_throw_percentage",kind:"scalar",T:1},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5}]),qo=c.makeMessageType("streamlayer.sports.basketball.BasketballPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:9}]),eb=c.makeMessageType("streamlayer.sports.basketball.BasketballPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(JN)},{no:2,name:"home_player",kind:"message",T:qo},{no:3,name:"away_player",kind:"message",T:qo}]),tb=c.makeMessageType("streamlayer.sports.basketball.BasketballSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:Ho},{no:2,name:"away_statistics",kind:"message",T:Ho}]),nb=c.makeMessageType("streamlayer.sports.basketball.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:tb},{no:2,name:"top_performers",kind:"message",T:eb,repeated:!0},{no:3,name:"last_games",kind:"message",T:Zc}]),rb=c.makeMessageType("streamlayer.sports.basketball.BasketballPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:pt},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),ab=c.makeMessageType("streamlayer.sports.basketball.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:rb,repeated:!0}]),Zo=c.makeMessageType("streamlayer.sports.basketball.PlayerScores",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"points",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"rebounds",kind:"scalar",T:5},{no:6,name:"minutes",kind:"scalar",T:1},{no:7,name:"starter",kind:"scalar",T:8}]),ib=c.makeMessageType("streamlayer.sports.basketball.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:Zo,repeated:!0},{no:2,name:"away_players",kind:"message",T:Zo,repeated:!0}]),sb=c.makeMessageType("streamlayer.sports.basketball.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:ob},{no:11,name:"rank",kind:"message",T:lb},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),ob=c.makeMessageType("streamlayer.sports.basketball.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),lb=c.makeMessageType("streamlayer.sports.basketball.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),ub=c.makeMessageType("streamlayer.sports.basketball.Standings",()=>[{no:1,name:"standings",kind:"message",T:sb,repeated:!0}]),Ko=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),Jo=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineup",()=>[{no:3,name:"start_players",kind:"message",T:Ko,repeated:!0},{no:4,name:"substitutes",kind:"message",T:Ko,repeated:!0}]),cb=c.makeMessageType("streamlayer.sports.basketball.BasketballMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:Jo},{no:2,name:"away_team",kind:"message",T:Jo}]),qr=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:db}]),db=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGame.BasketballLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"BasketballLastGame_BasketballLastGameAttributes"}),Zc=c.makeMessageType("streamlayer.sports.basketball.BasketballLastGames",()=>[{no:1,name:"home",kind:"message",T:qr,repeated:!0},{no:2,name:"away",kind:"message",T:qr,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:qr,repeated:!0}]),mb=c.makeEnum("streamlayer.sports.hockey.HockeyPerformerCategory",[{no:0,name:"HOCKEY_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PERFORMER_CATEGORY_GOALS",localName:"GOALS"},{no:2,name:"HOCKEY_PERFORMER_CATEGORY_SHOTS",localName:"SHOTS"},{no:3,name:"HOCKEY_PERFORMER_CATEGORY_HITS",localName:"HITS"},{no:4,name:"HOCKEY_PERFORMER_CATEGORY_SAVES",localName:"SAVES"}]),Kc=c.makeEnum("streamlayer.sports.hockey.HockeyPlayerPosition",[{no:0,name:"HOCKEY_PLAYER_POSITION_UNSET",localName:"UNSET"},{no:1,name:"HOCKEY_PLAYER_POSITION_CENTER",localName:"CENTER"},{no:2,name:"HOCKEY_PLAYER_POSITION_LEFT_WIND",localName:"LEFT_WIND"},{no:3,name:"HOCKEY_PLAYER_POSITION_RIGHT_WING",localName:"RIGHT_WING"},{no:4,name:"HOCKEY_PLAYER_POSITION_DEFENSE",localName:"DEFENSE"},{no:5,name:"HOCKEY_PLAYER_POSITION_GOALTENDER",localName:"GOALTENDER"}]),fb=c.makeMessageType("streamlayer.sports.hockey.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:ft},{no:9,name:"away_team_record",kind:"message",T:ft}]),Xo=c.makeMessageType("streamlayer.sports.hockey.HockeyPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),pb=c.makeMessageType("streamlayer.sports.hockey.HockeyPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(mb)},{no:2,name:"home_player",kind:"message",T:Xo,repeated:!0},{no:3,name:"away_player",kind:"message",T:Xo,repeated:!0}]),el=c.makeMessageType("streamlayer.sports.hockey.HockeyTeamSummary",()=>[{no:1,name:"shots_on_goal",kind:"scalar",T:5},{no:2,name:"faceoff",kind:"scalar",T:1},{no:3,name:"powerplay",kind:"scalar",T:5},{no:4,name:"penalty_minutes",kind:"scalar",T:5},{no:5,name:"hits",kind:"scalar",T:5},{no:6,name:"blocks",kind:"scalar",T:5},{no:7,name:"giveaways",kind:"scalar",T:5},{no:8,name:"takeaways",kind:"scalar",T:5}]),yb=c.makeMessageType("streamlayer.sports.hockey.HockeySummary",()=>[{no:1,name:"home_statistics",kind:"message",T:el},{no:2,name:"away_statistics",kind:"message",T:el}]),gb=c.makeMessageType("streamlayer.sports.hockey.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:yb},{no:2,name:"top_performers",kind:"message",T:pb,repeated:!0}]),hb=c.makeMessageType("streamlayer.sports.hockey.HockeyPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:pt},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5}]),Tb=c.makeMessageType("streamlayer.sports.hockey.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:hb,repeated:!0}]),Zr=c.makeMessageType("streamlayer.sports.hockey.PlayerScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"goals",kind:"scalar",T:5},{no:4,name:"assists",kind:"scalar",T:5},{no:5,name:"shots",kind:"scalar",T:5},{no:6,name:"penalty_minutes",kind:"scalar",T:1},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:c.getEnumType(Kc)}]),tl=c.makeMessageType("streamlayer.sports.hockey.GoaltenderScore",()=>[{no:1,name:"jersey",kind:"scalar",T:5},{no:2,name:"full_name",kind:"scalar",T:9},{no:3,name:"shots_againts",kind:"scalar",T:5},{no:4,name:"goals_againts",kind:"scalar",T:5},{no:5,name:"saves",kind:"scalar",T:5},{no:6,name:"saves_pct",kind:"scalar",T:5},{no:7,name:"minutes",kind:"scalar",T:9},{no:8,name:"position",kind:"enum",T:c.getEnumType(Kc)}]),nl=c.makeMessageType("streamlayer.sports.hockey.PlayerScores",()=>[{no:1,name:"skaters",kind:"message",T:Zr,repeated:!0},{no:2,name:"goaltender",kind:"message",T:tl},{no:3,name:"forwards",kind:"message",T:Zr,repeated:!0},{no:4,name:"defensemen",kind:"message",T:Zr,repeated:!0},{no:5,name:"goaltenders",kind:"message",T:tl,repeated:!0}]),kb=c.makeMessageType("streamlayer.sports.hockey.Boxscore",()=>[{no:1,name:"home_players",kind:"message",T:nl},{no:2,name:"away_players",kind:"message",T:nl}]),Nb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"pct",kind:"scalar",T:1},{no:9,name:"games_behind",kind:"scalar",T:5},{no:10,name:"streak",kind:"message",T:bb},{no:11,name:"rank",kind:"message",T:Mb},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"conference",kind:"scalar",T:9}]),bb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding.Streak",()=>[{no:1,name:"kind",kind:"scalar",T:9},{no:2,name:"length",kind:"scalar",T:5}],{localName:"TeamStanding_Streak"}),Mb=c.makeMessageType("streamlayer.sports.hockey.TeamStanding.Rank",()=>[{no:1,name:"division",kind:"scalar",T:5},{no:2,name:"conference",kind:"scalar",T:5}],{localName:"TeamStanding_Rank"}),Sb=c.makeMessageType("streamlayer.sports.hockey.Standings",()=>[{no:1,name:"standings",kind:"message",T:Nb,repeated:!0}]),Ib=c.makeEnum("streamlayer.sports.soccer.SoccerPerformerCategory",[{no:0,name:"SOCCER_PERFORMER_CATEGORY_UNSET",localName:"UNSET"},{no:1,name:"SOCCER_PERFORMER_CATEGORY_ATTACK",localName:"ATTACK"},{no:2,name:"SOCCER_PERFORMER_CATEGORY_MIDFIELD",localName:"MIDFIELD"},{no:3,name:"SOCCER_PERFORMER_CATEGORY_DEFENSE",localName:"DEFENSE"}]),vb=c.makeEnum("streamlayer.sports.soccer.SoccerMatchActivityType",[{no:0,name:"SOCCER_MATCH_ACTIVITY_UNSET"},{no:1,name:"SOCCER_MATCH_ACTIVITY_GOAL"},{no:2,name:"SOCCER_MATCH_ACTIVITY_YELLOW_CARD"},{no:3,name:"SOCCER_MATCH_ACTIVITY_RED_CARD"},{no:4,name:"SOCCER_MATCH_ACTIVITY_SUBSTITUTION"},{no:5,name:"SOCCER_MATCH_ACTIVITY_HALF_TIME"},{no:6,name:"SOCCER_MATCH_ACTIVITY_FULL_TIME"}]),$b=c.makeMessageType("streamlayer.sports.soccer.EventScore",()=>[{no:8,name:"home_team_record",kind:"message",T:ft},{no:9,name:"away_team_record",kind:"message",T:ft}]),vi=c.makeMessageType("streamlayer.sports.soccer.SoccerPerformer",()=>[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"photo",kind:"scalar",T:9},{no:3,name:"score",kind:"scalar",T:5}]),Ab=c.makeMessageType("streamlayer.sports.soccer.SoccerAttackPerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:vi},{no:2,name:"attack_stats",kind:"message",T:Rb}]),Eb=c.makeMessageType("streamlayer.sports.soccer.SoccerMidfieldPerformer",()=>[{no:1,name:"perfomer",kind:"message",T:vi},{no:2,name:"midfield_stats",kind:"message",T:Lb}]),Ob=c.makeMessageType("streamlayer.sports.soccer.SoccerDefensePerfomer",()=>[{no:1,name:"perfomer",kind:"message",T:vi},{no:2,name:"defense_stats",kind:"message",T:Pb}]),Db=c.makeMessageType("streamlayer.sports.soccer.SoccerPerformers",()=>[{no:1,name:"category",kind:"enum",T:c.getEnumType(Ib)},{no:2,name:"attack_performer",kind:"message",T:Ab},{no:3,name:"midfield_performer",kind:"message",T:Eb},{no:4,name:"defense_performer",kind:"message",T:Ob}]),wb=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamTopMatchStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"shots",kind:"scalar",T:5},{no:3,name:"shots_on_target",kind:"scalar",T:5},{no:4,name:"passes",kind:"scalar",T:5},{no:5,name:"offsides",kind:"scalar",T:5},{no:6,name:"yellow_cards",kind:"scalar",T:5},{no:7,name:"corner_kicks",kind:"scalar",T:5},{no:8,name:"free_kicks",kind:"scalar",T:5},{no:9,name:"red_cards",kind:"scalar",T:5}]),_b=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamAttackingStats",()=>[{no:1,name:"possession",kind:"scalar",T:1},{no:2,name:"passing_accuracy",kind:"scalar",T:1},{no:3,name:"chances_created",kind:"scalar",T:5},{no:4,name:"successful_crosses",kind:"scalar",T:1}]),Cb=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamDefenseStats",()=>[{no:1,name:"tackles_made",kind:"scalar",T:5},{no:2,name:"interceptions",kind:"scalar",T:5},{no:3,name:"blocked_shots",kind:"scalar",T:5},{no:4,name:"clearances",kind:"scalar",T:5},{no:5,name:"duels_won",kind:"scalar",T:5}]),rl=c.makeMessageType("streamlayer.sports.soccer.SoccerTeamSummary",()=>[{no:1,name:"top_match_stats",kind:"message",T:wb},{no:2,name:"attacking_stats",kind:"message",T:_b},{no:3,name:"defense_stats",kind:"message",T:Cb}]),xb=c.makeMessageType("streamlayer.sports.soccer.SoccerSummary",()=>[{no:1,name:"home_statistics",kind:"message",T:rl},{no:2,name:"away_statistics",kind:"message",T:rl},{no:3,name:"perfomers",kind:"message",T:Db}]),jb=c.makeMessageType("streamlayer.sports.soccer.EventSummary",()=>[{no:1,name:"statistics",kind:"message",T:xb},{no:2,name:"last_games",kind:"message",T:Jc}]),Rb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerAttackingStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"shots",kind:"scalar",T:5},{no:4,name:"shots_on_goal",kind:"scalar",T:5},{no:5,name:"penalty_kick_goals",kind:"scalar",T:5}]),Lb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerMidfieldStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"key_passes",kind:"scalar",T:5},{no:4,name:"crosses",kind:"scalar",T:5},{no:5,name:"corners",kind:"scalar",T:5}]),Pb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayerDefenseStats",()=>[{no:1,name:"goals",kind:"scalar",T:5},{no:2,name:"assists",kind:"scalar",T:5},{no:3,name:"tackles_made",kind:"scalar",T:5},{no:4,name:"interceptions",kind:"scalar",T:5},{no:5,name:"blocked_shots",kind:"scalar",T:5}]);c.makeMessageType("streamlayer.sports.soccer.SoccerMatchOdds",()=>[{no:1,name:"home_team_win",kind:"scalar",T:1},{no:2,name:"draw",kind:"scalar",T:1},{no:3,name:"away_team_win",kind:"scalar",T:1}]);const Ub=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrixPlayer",()=>[{no:1,name:"jersey_number",kind:"scalar",T:5},{no:2,name:"player_name",kind:"scalar",T:9},{no:3,name:"photo",kind:"scalar",T:9}]),Fb=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchFormationMatrix",()=>[{no:1,name:"row_players",kind:"message",T:Ub,repeated:!0}]),al=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchPlayer",()=>[{no:1,name:"first_name",kind:"scalar",T:9},{no:2,name:"last_name",kind:"scalar",T:9},{no:3,name:"display_name",kind:"scalar",T:9},{no:4,name:"photo",kind:"scalar",T:9},{no:5,name:"position",kind:"scalar",T:9},{no:6,name:"jersey",kind:"scalar",T:5}]),il=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineup",()=>[{no:1,name:"formation_string",kind:"scalar",T:9},{no:2,name:"formation_matrix",kind:"message",T:Fb,repeated:!0},{no:3,name:"start_players",kind:"message",T:al,repeated:!0},{no:4,name:"substitutes",kind:"message",T:al,repeated:!0}]),zb=c.makeMessageType("streamlayer.sports.soccer.SoccerMatchLineups",()=>[{no:1,name:"home_team",kind:"message",T:il},{no:2,name:"away_team",kind:"message",T:il}]);c.makeMessageType("streamlayer.sports.soccer.SoccerMatchScore",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"mil",kind:"scalar",T:1},{no:3,name:"round",kind:"scalar",T:9},{no:4,name:"live_url",kind:"scalar",T:9}]);const Bb=c.makeMessageType("streamlayer.sports.soccer.SoccerPlayByPlayStatistics",()=>[{no:1,name:"team",kind:"message",T:pt},{no:2,name:"event_time",kind:"message",T:In},{no:3,name:"score_home",kind:"scalar",T:5},{no:4,name:"score_away",kind:"scalar",T:5},{no:5,name:"play_text",kind:"scalar",T:9},{no:6,name:"scoring",kind:"scalar",T:8},{no:7,name:"play_id",kind:"scalar",T:5},{no:8,name:"type",kind:"enum",T:c.getEnumType(vb)}]),Gb=c.makeMessageType("streamlayer.sports.soccer.PlayByPlay",()=>[{no:1,name:"statistics",kind:"message",T:Bb,repeated:!0}]),Qb=c.makeMessageType("streamlayer.sports.soccer.TeamStanding",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"alias",kind:"scalar",T:9},{no:4,name:"logo",kind:"scalar",T:9},{no:5,name:"colors",kind:"scalar",T:9,repeated:!0},{no:6,name:"wins",kind:"scalar",T:5},{no:7,name:"losses",kind:"scalar",T:5},{no:8,name:"draws",kind:"scalar",T:5},{no:9,name:"games_behind",kind:"scalar",T:5},{no:12,name:"division",kind:"scalar",T:9},{no:13,name:"points",kind:"scalar",T:5},{no:14,name:"position",kind:"scalar",T:5},{no:15,name:"total_goals",kind:"scalar",T:5},{no:16,name:"total_goals_received",kind:"scalar",T:5}]),Yb=c.makeMessageType("streamlayer.sports.soccer.Standings",()=>[{no:1,name:"standings",kind:"message",T:Qb,repeated:!0}]),Kr=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGame",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:Vb}]),Vb=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGame.SoccerLastGameAttributes",()=>[{no:1,name:"league",kind:"scalar",T:9},{no:2,name:"home_team",kind:"scalar",T:9},{no:3,name:"away_team",kind:"scalar",T:9},{no:5,name:"home_score",kind:"scalar",T:5},{no:6,name:"away_score",kind:"scalar",T:5},{no:7,name:"date",kind:"scalar",T:9}],{localName:"SoccerLastGame_SoccerLastGameAttributes"}),Jc=c.makeMessageType("streamlayer.sports.soccer.SoccerLastGames",()=>[{no:1,name:"home",kind:"message",T:Kr,repeated:!0},{no:2,name:"away",kind:"message",T:Kr,repeated:!0},{no:3,name:"head_to_head",kind:"message",T:Kr,repeated:!0}]),$t=c.makeEnum("streamlayer.sports.events.EventType",[{no:0,name:"EVENT_TYPE_UNSET",localName:"UNSET"},{no:1,name:"EVENT_TYPE_BASEBALL",localName:"BASEBALL"},{no:2,name:"EVENT_TYPE_BASKETBALL",localName:"BASKETBALL"},{no:3,name:"EVENT_TYPE_HOCKEY",localName:"HOCKEY"},{no:4,name:"EVENT_TYPE_SOCCER",localName:"SOCCER"},{no:5,name:"EVENT_TYPE_GOLF",localName:"GOLF"}]),Wb=c.makeMessageType("streamlayer.sports.events.ScheduleAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:YN,oneof:"sport"},{no:3,name:"basketball",kind:"message",T:XN,oneof:"sport"},{no:4,name:"hockey",kind:"message",T:fb,oneof:"sport"},{no:5,name:"soccer",kind:"message",T:$b,oneof:"sport"}]),Hb=c.makeMessageType("streamlayer.sports.events.ScheduleResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:Wb}]),qb=c.makeMessageType("streamlayer.sports.events.ListResponseAttributes",()=>[{no:1,name:"common",kind:"message",T:jN}]),Xc=c.makeMessageType("streamlayer.sports.events.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:qb}]),Zb=c.makeMessageType("streamlayer.sports.events.ListRequest",()=>[{no:1,name:"filter",kind:"message",T:Kb},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"sort",kind:"message",T:Vc},{no:4,name:"ids",kind:"scalar",T:4,repeated:!0},{no:5,name:"organization_id",kind:"scalar",T:9}]),Kb=c.makeMessageType("streamlayer.sports.events.ListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9},{no:3,name:"start_date_time",kind:"scalar",T:9},{no:4,name:"end_date_time",kind:"scalar",T:9},{no:5,name:"sport",kind:"scalar",T:9},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"endless",kind:"enum",T:c.getEnumType(Ii)}],{localName:"ListRequest_Filter"}),Jb=c.makeMessageType("streamlayer.sports.events.DemoListRequest",()=>[{no:1,name:"filter",kind:"message",T:Xb},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"sort",kind:"message",T:Vc}]),Xb=c.makeMessageType("streamlayer.sports.events.DemoListRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"DemoListRequest_Filter"}),eM=c.makeMessageType("streamlayer.sports.events.DemoListResponse",()=>[{no:1,name:"meta",kind:"message",T:Sr},{no:2,name:"data",kind:"message",T:Xc,repeated:!0}]),tM=c.makeMessageType("streamlayer.sports.events.ListResponse",()=>[{no:1,name:"meta",kind:"message",T:Sr},{no:2,name:"data",kind:"message",T:Xc,repeated:!0}]),sl=c.makeMessageType("streamlayer.sports.events.SummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),ol=c.makeMessageType("streamlayer.sports.events.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:nM}]),nM=c.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:rM}],{localName:"SummaryResponse_ResponseData"}),rM=c.makeMessageType("streamlayer.sports.events.SummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:WN,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:nb,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:gb,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:jb,oneof:"sports"}],{localName:"SummaryResponse_ResponseData_SummaryResponseAttributes"}),aM=c.makeMessageType("streamlayer.sports.events.AdminSummaryRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"organization_id",kind:"scalar",T:9}]),iM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse",()=>[{no:1,name:"data",kind:"message",T:sM}]),sM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"attributes",kind:"message",T:oM}],{localName:"AdminSummaryResponse_ResponseData"}),oM=c.makeMessageType("streamlayer.sports.events.AdminSummaryResponse.ResponseData.SummaryResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt}],{localName:"AdminSummaryResponse_ResponseData_SummaryResponseAttributes"}),lM=c.makeMessageType("streamlayer.sports.events.PlayByPlayRequest",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"pagination",kind:"message",T:Mr},{no:3,name:"order",kind:"scalar",T:9}]),uM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse",()=>[{no:1,name:"data",kind:"message",T:cM},{no:2,name:"meta",kind:"message",T:Sr}]),cM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:dM}],{localName:"PlayByPlayResponse_ResponseData"}),dM=c.makeMessageType("streamlayer.sports.events.PlayByPlayResponse.ResponseData.PlayByPlayResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"baseball",kind:"message",T:VN,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:ab,oneof:"sports"},{no:4,name:"hockey",kind:"message",T:Tb,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Gb,oneof:"sports"}],{localName:"PlayByPlayResponse_ResponseData_PlayByPlayResponseAttributes"}),mM=c.makeMessageType("streamlayer.sports.events.ScheduleRequest",()=>[{no:1,name:"filter",kind:"message",T:fM},{no:2,name:"pagination",kind:"message",T:Mr}]),fM=c.makeMessageType("streamlayer.sports.events.ScheduleRequest.Filter",()=>[{no:1,name:"date",kind:"scalar",T:9},{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleRequest_Filter"}),pM=c.makeMessageType("streamlayer.sports.events.ScheduleResponse",()=>[{no:1,name:"data",kind:"message",T:Hb,repeated:!0},{no:2,name:"meta",kind:"message",T:Sr}]),yM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest",()=>[{no:1,name:"filter",kind:"message",T:gM}]),gM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesRequest.Filter",()=>[{no:2,name:"league",kind:"scalar",T:9}],{localName:"ScheduleDatesRequest_Filter"}),hM=c.makeMessageType("streamlayer.sports.events.ScheduleDatesResponse",()=>[{no:1,name:"data",kind:"scalar",T:9,repeated:!0}]),TM=c.makeMessageType("streamlayer.sports.events.BoxscoreRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),kM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse",()=>[{no:1,name:"data",kind:"message",T:NM}]),NM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:bM}],{localName:"BoxscoreResponse_ResponseData"}),bM=c.makeMessageType("streamlayer.sports.events.BoxscoreResponse.ResponseData.BoxscoreResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"basketball",kind:"message",T:ib,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:kb,oneof:"sports"}],{localName:"BoxscoreResponse_ResponseData_BoxscoreResponseAttributes"}),MM=c.makeMessageType("streamlayer.sports.events.StandingsRequest",()=>[{no:1,name:"league",kind:"scalar",T:9}]),SM=c.makeMessageType("streamlayer.sports.events.StandingsResponse",()=>[{no:1,name:"data",kind:"message",T:IM}]),IM=c.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData",()=>[{no:1,name:"type",kind:"enum",T:c.getEnumType($t)},{no:2,name:"attributes",kind:"message",T:vM}],{localName:"StandingsResponse_ResponseData"}),vM=c.makeMessageType("streamlayer.sports.events.StandingsResponse.ResponseData.StandingsResponseAttributes",()=>[{no:2,name:"basketball",kind:"message",T:ub,oneof:"sports"},{no:3,name:"hockey",kind:"message",T:Sb,oneof:"sports"},{no:4,name:"baseball",kind:"message",T:KN,oneof:"sports"},{no:5,name:"soccer",kind:"message",T:Yb,oneof:"sports"}],{localName:"StandingsResponse_ResponseData_StandingsResponseAttributes"}),$M=c.makeMessageType("streamlayer.sports.events.LineupRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),AM=c.makeMessageType("streamlayer.sports.events.LineupResponse",()=>[{no:1,name:"data",kind:"message",T:EM}]),EM=c.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:OM}],{localName:"LineupResponse_ResponseData"}),OM=c.makeMessageType("streamlayer.sports.events.LineupResponse.ResponseData.LineupResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"soccer",kind:"message",T:zb,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:cb,oneof:"sports"}],{localName:"LineupResponse_ResponseData_LineupResponseAttributes"}),DM=c.makeMessageType("streamlayer.sports.events.LastGamesRequest",()=>[{no:1,name:"id",kind:"scalar",T:4}]),wM=c.makeMessageType("streamlayer.sports.events.LastGamesResponse",()=>[{no:1,name:"data",kind:"message",T:_M}]),_M=c.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4},{no:2,name:"type",kind:"enum",T:c.getEnumType($t)},{no:3,name:"attributes",kind:"message",T:CM}],{localName:"LastGamesResponse_ResponseData"}),CM=c.makeMessageType("streamlayer.sports.events.LastGamesResponse.ResponseData.LastGamesResponseAttributes",()=>[{no:1,name:"summary",kind:"message",T:vt},{no:2,name:"soccer",kind:"message",T:Jc,oneof:"sports"},{no:3,name:"basketball",kind:"message",T:Zc,oneof:"sports"}],{localName:"LastGamesResponse_ResponseData_LastGamesResponseAttributes"}),xM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),jM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse",()=>[{no:1,name:"data",kind:"message",T:RM}]),RM=c.makeMessageType("streamlayer.sports.events.RetrieveEventIdResponse.RetrieveEventIdResponseData",()=>[{no:1,name:"id",kind:"scalar",T:4}],{localName:"RetrieveEventIdResponse_RetrieveEventIdResponseData"}),LM={typeName:"streamlayer.sports.events.Events",methods:{list:{name:"List",I:Zb,O:tM,kind:B.Unary},demoList:{name:"DemoList",I:Jb,O:eM,kind:B.Unary},summary:{name:"Summary",I:sl,O:ol,kind:B.Unary},adminSummary:{name:"AdminSummary",I:aM,O:iM,kind:B.Unary},boxscore:{name:"Boxscore",I:TM,O:kM,kind:B.Unary},standings:{name:"Standings",I:MM,O:SM,kind:B.Unary},playByPlay:{name:"PlayByPlay",I:lM,O:uM,kind:B.Unary},schedule:{name:"Schedule",I:mM,O:pM,kind:B.Unary},scheduleDates:{name:"ScheduleDates",I:yM,O:hM,kind:B.Unary},lineup:{name:"Lineup",I:$M,O:AM,kind:B.Unary},retrieveEventId:{name:"RetrieveEventId",I:xM,O:jM,kind:B.Unary},lastGames:{name:"LastGames",I:DM,O:wM,kind:B.Unary},summarySubscription:{name:"SummarySubscription",I:sl,O:ol,kind:B.ServerStreaming}}},PM=c.makeEnum("streamlayer.sdkSettings.client.VisibleStatus",[{no:0,name:"VISIBLE_STATUS_UNSET",localName:"UNSET"},{no:1,name:"VISIBLE_STATUS_INCOGNITO",localName:"INCOGNITO"},{no:2,name:"VISIBLE_STATUS_VISIBLE",localName:"VISIBLE"}]),UM=c.makeEnum("streamlayer.sdkSettings.client.MessagesNotify",[{no:0,name:"MESSAGES_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_NOTIFY_ALLOW",localName:"ALLOW"}]),FM=c.makeEnum("streamlayer.sdkSettings.client.FriendsNotify",[{no:0,name:"FRIENDS_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_NOTIFY_ALLOW",localName:"ALLOW"}]),zM=c.makeEnum("streamlayer.sdkSettings.client.TwitterNotify",[{no:0,name:"TWITTER_NOTIFY_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_NOTIFY_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_NOTIFY_ALLOW",localName:"ALLOW"}]),BM=c.makeEnum("streamlayer.sdkSettings.client.CallsSound",[{no:0,name:"CALLS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"CALLS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"CALLS_SOUND_ALLOW",localName:"ALLOW"}]),GM=c.makeEnum("streamlayer.sdkSettings.client.MessagesSound",[{no:0,name:"MESSAGES_SOUND_UNSET",localName:"UNSET"},{no:1,name:"MESSAGES_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"MESSAGES_SOUND_ALLOW",localName:"ALLOW"}]),QM=c.makeEnum("streamlayer.sdkSettings.client.FriendsSound",[{no:0,name:"FRIENDS_SOUND_UNSET",localName:"UNSET"},{no:1,name:"FRIENDS_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"FRIENDS_SOUND_ALLOW",localName:"ALLOW"}]),YM=c.makeEnum("streamlayer.sdkSettings.client.TwitterSound",[{no:0,name:"TWITTER_SOUND_UNSET",localName:"UNSET"},{no:1,name:"TWITTER_SOUND_DISALLOW",localName:"DISALLOW"},{no:2,name:"TWITTER_SOUND_ALLOW",localName:"ALLOW"}]),ed=c.makeEnum("streamlayer.sdkSettings.client.SettingsAllow",[{no:0,name:"SETTINGS_ALLOW_UNSET",localName:"UNSET"},{no:1,name:"SETTINGS_ALLOW_DISALLOW",localName:"DISALLOW"},{no:2,name:"SETTINGS_ALLOW_ALLOW",localName:"ALLOW"}]),VM=c.makeEnum("streamlayer.sdkSettings.client.ManagedGroupType",[{no:0,name:"MANAGED_GROUP_TYPE_UNSET",localName:"UNSET"},{no:1,name:"MANAGED_GROUP_TYPE_CHAT",localName:"CHAT"},{no:2,name:"MANAGED_GROUP_TYPE_WP",localName:"WP"}]),WM=c.makeMessageType("streamlayer.sdkSettings.client.NotifySettings",()=>[{no:1,name:"allow",kind:"enum",T:c.getEnumType(ed)}]),HM=c.makeMessageType("streamlayer.sdkSettings.client.SoundSettings",()=>[{no:1,name:"allow",kind:"enum",T:c.getEnumType(ed)}]),Jr=c.makeMessageType("streamlayer.sdkSettings.client.ClientSettingsNotifications",()=>[{no:1,name:"notify",kind:"message",T:WM},{no:2,name:"sound",kind:"message",T:HM}]),$i=c.makeMessageType("streamlayer.sdkSettings.client.ClientSettings",()=>[{no:1,name:"visible_status",kind:"enum",T:c.getEnumType(PM)},{no:2,name:"messages_notify",kind:"enum",T:c.getEnumType(UM)},{no:3,name:"friends_notify",kind:"enum",T:c.getEnumType(FM)},{no:4,name:"calls_sound",kind:"enum",T:c.getEnumType(BM)},{no:5,name:"messages_sound",kind:"enum",T:c.getEnumType(GM)},{no:6,name:"friends_sound",kind:"enum",T:c.getEnumType(QM)},{no:7,name:"twitter_notify",kind:"enum",T:c.getEnumType(zM)},{no:8,name:"twitter_sound",kind:"enum",T:c.getEnumType(YM)},{no:9,name:"gamification",kind:"message",T:Jr},{no:10,name:"watch_party_invitation",kind:"message",T:Jr},{no:11,name:"twitter_question",kind:"message",T:Jr}]),qM=c.makeMessageType("streamlayer.sdkSettings.client.GetRequest",[]),ZM=c.makeMessageType("streamlayer.sdkSettings.client.GetResponse",()=>[{no:1,name:"data",kind:"message",T:KM}]),KM=c.makeMessageType("streamlayer.sdkSettings.client.GetResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$i}],{localName:"GetResponse_GetResponseData"}),JM=c.makeMessageType("streamlayer.sdkSettings.client.UpdateRequest",()=>[{no:2,name:"settings",kind:"message",T:$i}]),XM=c.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse",()=>[{no:1,name:"data",kind:"message",T:eS}]),eS=c.makeMessageType("streamlayer.sdkSettings.client.UpdateResponse.UpdateResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:$i}],{localName:"UpdateResponse_UpdateResponseData"}),tS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),nS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse",()=>[{no:1,name:"data",kind:"message",T:rS}]),rS=c.makeMessageType("streamlayer.sdkSettings.client.GetStreamResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:fc}],{localName:"GetStreamResponse_GetResponseData"}),aS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationRequest",[]),iS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse",()=>[{no:1,name:"data",kind:"message",T:sS}]),sS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationResponse.GetResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pc}],{localName:"GetOrganizationResponse_GetResponseData"}),oS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:9,opt:!0}]),lS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse",()=>[{no:1,name:"data",kind:"message",T:uS}]),uS=c.makeMessageType("streamlayer.sdkSettings.client.GetOrganizationAdvertisingResponse.GetOrganizationAdvertisingResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:yc}],{localName:"GetOrganizationAdvertisingResponse_GetOrganizationAdvertisingResponseData"}),cS=c.makeMessageType("streamlayer.sdkSettings.client.ManagedGroup",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"fantasy_group_id",kind:"scalar",T:9},{no:3,name:"group_type",kind:"enum",T:c.getEnumType(VM)}]),td=c.makeMessageType("streamlayer.sdkSettings.client.DeepLinkData",()=>[{no:1,name:"group_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9},{no:3,name:"gamification",kind:"scalar",T:8},{no:4,name:"managed_group",kind:"message",T:cS},{no:5,name:"external_event_id",kind:"scalar",T:9}]),dS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkRequest",()=>[{no:1,name:"data",kind:"message",T:td}]),mS=c.makeMessageType("streamlayer.sdkSettings.client.DeepLink",()=>[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"link_id",kind:"scalar",T:9}]),fS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:pS}]),pS=c.makeMessageType("streamlayer.sdkSettings.client.GenerateDeepLinkResponse.GenerateDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:mS}],{localName:"GenerateDeepLinkResponse_GenerateDeepLinkResponseData"});c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkRequest",()=>[{no:1,name:"url",kind:"scalar",T:9}]);c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse",()=>[{no:1,name:"data",kind:"message",T:yS}]);const yS=c.makeMessageType("streamlayer.sdkSettings.client.RetreiveDeepLinkResponse.RetreiveDeepLinkResponseData",()=>[{no:1,name:"attributes",kind:"message",T:td}],{localName:"RetreiveDeepLinkResponse_RetreiveDeepLinkResponseData"}),gS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionRequest",()=>[{no:1,name:"id",kind:"scalar",T:9}]),hS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionRequest",[]),TS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:kS}]),kS=c.makeMessageType("streamlayer.sdkSettings.client.StreamSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:fc}],{localName:"StreamSubscriptionResponse_ResponseData"}),NS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse",()=>[{no:1,name:"data",kind:"message",T:bS}]),bS=c.makeMessageType("streamlayer.sdkSettings.client.OrganizationSubscriptionResponse.ResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:pc}],{localName:"OrganizationSubscriptionResponse_ResponseData"}),vr={typeName:"streamlayer.sdkSettings.client.Client",methods:{get:{name:"Get",I:qM,O:ZM,kind:B.Unary},update:{name:"Update",I:JM,O:XM,kind:B.Unary},getStream:{name:"GetStream",I:tS,O:nS,kind:B.Unary},getOrganization:{name:"GetOrganization",I:aS,O:iS,kind:B.Unary},getOrganizationAdvertising:{name:"GetOrganizationAdvertising",I:oS,O:lS,kind:B.Unary},generateDeepLink:{name:"GenerateDeepLink",I:dS,O:fS,kind:B.Unary},streamSubscription:{name:"StreamSubscription",I:gS,O:TS,kind:B.ServerStreaming},organizationSubscription:{name:"OrganizationSubscription",I:hS,O:NS,kind:B.ServerStreaming}}},MS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(LM,{method:"retrieveEventId",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var o;if(!s||typeof s!="string")return"";try{return((o=(await n.retrieveEventId({id:s})).data)==null?void 0:o.id)||""}catch{return""}}})},SS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getStream",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.getStream({id:s})).data)==null?void 0:u.attributes:void 0}})},IS=(e,t)=>{const{queryKey:n,client:r}=t.createPromiseClient(bn,{method:"me",params:[e]});return t.nanoquery.createFetcherStore(n,{fetcher:()=>r.me({})})},vS=e=>{const{client:t,queryKeyStr:n}=e.createPromiseClient(bn,{method:"bypassAuth"});return e.nanoquery.createMutatorStore(async({data:{userKey:r,schema:a,init:i},getCacheUpdater:s})=>{const[o]=s(n),u=await t.bypassAuth({userKey:r,schema:a,init:i});return o(u),u})},$S=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"get",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{var i;return(i=(await n.get({})).data)==null?void 0:i.attributes}})},AS=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getOrganization",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{const a=await n.getOrganization({});return a.data?{...a.data.attributes,id:a.data.id}:void 0}})},ES=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(vr,{method:"getOrganizationAdvertising",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async()=>{var i;return(i=(await n.getOrganizationAdvertising({})).data)==null?void 0:i.attributes}})},OS=(e,t,n)=>{e.transport=new MN(t.host),e.sdk.host=e.transport.host,e.transport.setSdkKey(t.sdkKey),n()};var jt=(e=>(e.DISABLED="disabled",e.INITIALIZATION="initialization",e.READY="ready",e.FAILED="failed",e.SUSPENDED="suspended",e))(jt||{});const DS=e=>{const t=new Ce(xe(),"enabled"),n=new Ce(xe("disabled"),"status"),r=new Ce(xe(),"userKey"),a=new Ce(xe(),"userToken");a.listen(y=>{y?localStorage.setItem("sl-user-token",y):localStorage.removeItem("sl-user-token")});const i=new Ce(xe(),"providerStreamId"),s=new Ge(MS(i.getStore(),e),"slStreamId",y=>y==null?void 0:y.data),o=new Ge(IS(a.getStore(),e),"user",y=>{var k,M;return(M=(k=y==null?void 0:y.data)==null?void 0:k.data)==null?void 0:M.id}),u=new Ge($S(a.getStore(),e),"userSettings"),m=new Ge(SS(s.getAtomStore(),e),"streamSettings");s.getAtomStore().listen(y=>{(y===""||y===void 0)&&m.getStore().mutate(void 0)});const p=new Ge(AS(t.getStore(),e),"organizationSettings",y=>{var k;return(k=y==null?void 0:y.data)==null?void 0:k.id}),g=new Ge(ES(p.getAtomStore(),e),"organizationAdvertising");return{enabled:t,status:n,providerStreamId:i,slStreamId:s,streamSettings:m,user:o,userKey:r,userToken:a,userSettings:u,organizationSettings:p,organizationAdvertising:g}};class wS extends Nr{constructor(n){const r=DS(n),a=j4(r);super(a,"core");$(this,"stores");$(this,"subscribe",n=>{let r;for(r in this.stores){const a=n[r];r in n&&a!==void 0&&this.stores[r].subscribe(n[r])}});$(this,"unsubscribe",()=>this.getStore().off());this.stores=r}getValue(){throw new Error("Not implemented")}getValues(){return this.stores}setValue(){throw new Error("Not implemented")}}const _S=(e,t,n)=>{e.store=new wS(e.transport),e.stores=e.store.getValues(),e.sdk.sdkStore=e.store.getStore(),e.sdk.organizationStore=()=>e.stores.organizationSettings.getStore(),e.storeUnsubscribe=()=>{e.store.unsubscribe()},n()};class CS extends x4{constructor(n,r){super();$(this,"$coreStore");$(this,"transport");$(this,"$bypassLogin");$(this,"me",async()=>{const n=await this.$coreStore.getValues().user.getValue();return n==null?void 0:n.data});$(this,"login",async(n,r)=>(this.$coreStore.getValues().userKey.setValue(r),await this.$bypassLogin.mutate({schema:n,userKey:r,init:!1}),this.me()));$(this,"isAuthenticated",()=>this.me());$(this,"logout",()=>{this.$coreStore.getValues().user.setValue(),this.$coreStore.getValues().userKey.setValue(),this.$coreStore.getValues().userToken.setValue(),this.transport.setAuth("")});$(this,"subscribe",()=>{this.$bypassLogin.subscribe((n,r)=>{var a,i,s,o;r==="data"&&(this.transport.setAuth((i=(a=n==null?void 0:n.data)==null?void 0:a.meta)==null?void 0:i.jwt),this.$coreStore.getValues().userToken.setValue((o=(s=n==null?void 0:n.data)==null?void 0:s.meta)==null?void 0:o.jwt))})});this.$coreStore=n,this.transport=r,this.$bypassLogin=vS(this.transport),this.subscribe()}}const xS=async(e,t,n)=>{e.auth=new CS(e.store,e.transport);const r=localStorage.getItem("sl-user-schema"),a=localStorage.getItem("sl-user-token");r&&a&&(console.log("try to login prev user"),await e.auth.login(r,a)),e.sdk.authorizationBypass=async(i,s)=>{await e.auth.login(i,s),localStorage.setItem("sl-user-schema","streamlayer:streamlayer")},e.sdk.logout=()=>{e.auth.logout()},e.sdk.getUserStore=()=>e.stores.user.getStore(),e.sdk.isUserAuthorized=()=>e.auth.isAuthenticated(),n()},jS=(e,t,n)=>{e.sdk=Object.create(null),e.sdk.initializeApp=async()=>{e.storeSubscribe(),e.stores.enabled.setValue("on"),e.stores.status.setValue(jt.INITIALIZATION);try{const r=await e.stores.organizationSettings.getValue();return r?(e.stores.status.setValue(jt.READY),{enabled:!!r}):(e.stores.status.setValue(jt.FAILED),{err:"failed"})}catch(r){return e.stores.enabled.setValue(),e.stores.status.setValue(jt.FAILED),{err:`${r}`}}},e.sdk.disableApp=()=>{e.stores.enabled.setValue(),e.stores.status.setValue(jt.DISABLED),e.storeUnsubscribe()},e.sdk.createEventSession=r=>{e.stores.providerStreamId.setValue(""),e.stores.providerStreamId.setValue(r)},n()},Xe={typeName:"streamlayer.interactive.feed.Feed",methods:{get:{name:"Get",I:E2,O:O2,kind:B.Unary},subscription:{name:"Subscription",I:_T,O:CT,kind:B.ServerStreaming},votingSubscription:{name:"VotingSubscription",I:jT,O:RT,kind:B.ServerStreaming},questionSubscription:{name:"QuestionSubscription",I:UT,O:FT,kind:B.ServerStreaming},questionByUser:{name:"QuestionByUser",I:GT,O:QT,kind:B.Unary},syncQuestion:{name:"SyncQuestion",I:VT,O:HT,kind:B.Unary},getQuestion:{name:"GetQuestion",I:ZT,O:KT,kind:B.Unary},questionDetail:{name:"QuestionDetail",I:XT,O:e2,kind:B.Unary},submitAnswer:{name:"SubmitAnswer",I:n2,O:a2,kind:B.Unary},submitInplay:{name:"SubmitInplay",I:s2,O:l2,kind:B.Unary},skipQuestion:{name:"SkipQuestion",I:u2,O:d2,kind:B.Unary},pickHistory:{name:"PickHistory",I:f2,O:y2,kind:B.Unary},insightHistory:{name:"InsightHistory",I:T2,O:N2,kind:B.Unary},tweetHistory:{name:"TweetHistory",I:M2,O:I2,kind:B.Unary},promotionHistory:{name:"PromotionHistory",I:w2,O:C2,kind:B.Unary}}},RS=c.makeEnum("streamlayer.interactive.leaderboard.LeaderboardType",[{no:0,name:"LEADERBOARD_TYPE_UNSET",localName:"UNSET"},{no:1,name:"LEADERBOARD_TYPE_TOURNAMENT",localName:"TOURNAMENT"},{no:2,name:"LEADERBOARD_TYPE_EVENT",localName:"EVENT"}]),nd=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:c.getEnumType(RS)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"event_ids",kind:"scalar",T:3,repeated:!0},{no:5,name:"leaderboards",kind:"message",T:nd,repeated:!0},{no:6,name:"created_at",kind:"scalar",T:3}]),Ai=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardItem",()=>[{no:1,name:"streak",kind:"scalar",T:5},{no:2,name:"correct",kind:"scalar",T:5},{no:3,name:"incorrect",kind:"scalar",T:5},{no:4,name:"points",kind:"scalar",T:5},{no:5,name:"rank",kind:"scalar",T:5},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"avatar",kind:"scalar",T:9},{no:8,name:"user_id",kind:"scalar",T:9},{no:9,name:"recent_correct",kind:"scalar",T:5},{no:10,name:"streak_loss",kind:"scalar",T:5},{no:11,name:"friends_rank",kind:"scalar",T:5},{no:12,name:"in_top",kind:"scalar",T:5}]),LS=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem",()=>[{no:1,name:"summary",kind:"message",T:Ai},{no:2,name:"percentage",kind:"message",T:PS}]),PS=c.makeMessageType("streamlayer.interactive.leaderboard.LeaderboardSummaryItem.SummaryPercentage",()=>[{no:1,name:"correct",kind:"scalar",T:5},{no:2,name:"average",kind:"scalar",T:5}],{localName:"LeaderboardSummaryItem_SummaryPercentage"}),US=c.makeMessageType("streamlayer.interactive.leaderboard.ListRequest",()=>[{no:1,name:"pagination",kind:"message",T:hi},{no:2,name:"users_ids",kind:"scalar",T:9,repeated:!0},{no:3,name:"event_id",kind:"scalar",T:4},{no:4,name:"leaderboard_id",kind:"scalar",T:9}]),FS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse",()=>[{no:1,name:"data",kind:"message",T:zS,repeated:!0},{no:2,name:"meta",kind:"message",T:BS}]),zS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ai}],{localName:"ListResponse_ListResponseData"}),BS=c.makeMessageType("streamlayer.interactive.leaderboard.ListResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"ListResponse_ListResponseMeta"}),GS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryRequest",()=>[{no:1,name:"event_id",kind:"scalar",T:4},{no:2,name:"user_id",kind:"scalar",T:9},{no:3,name:"leaderboard_id",kind:"scalar",T:9},{no:4,name:"users_ids",kind:"scalar",T:9,repeated:!0}]),QS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse",()=>[{no:1,name:"data",kind:"message",T:YS}]),YS=c.makeMessageType("streamlayer.interactive.leaderboard.SummaryResponse.SummaryResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:LS}],{localName:"SummaryResponse_SummaryResponseData"}),VS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsRequest",()=>[{no:1,name:"organization_id",kind:"scalar",T:9},{no:2,name:"event_id",kind:"scalar",T:9}]),WS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse",()=>[{no:2,name:"data",kind:"message",T:HS}]),HS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardsResponse.EventLeaderboardsResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:nd}],{localName:"EventLeaderboardsResponse_EventLeaderboardsResponseData"}),qS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardRequest",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"organization_id",kind:"scalar",T:9},{no:3,name:"pagination",kind:"message",T:hi},{no:4,name:"sort",kind:"message",T:vT}]),ZS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse",()=>[{no:1,name:"data",kind:"message",T:KS,repeated:!0},{no:2,name:"meta",kind:"message",T:JS}]),KS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseData",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"attributes",kind:"message",T:Ai}],{localName:"EventLeaderboardResponse_ListResponseData"}),JS=c.makeMessageType("streamlayer.interactive.leaderboard.EventLeaderboardResponse.ListResponseMeta",()=>[{no:1,name:"count",kind:"scalar",T:5},{no:2,name:"page",kind:"scalar",T:5},{no:3,name:"page_size",kind:"scalar",T:5}],{localName:"EventLeaderboardResponse_ListResponseMeta"}),XS={typeName:"streamlayer.interactive.leaderboard.Leaderboard",methods:{list:{name:"List",I:US,O:FS,kind:B.Unary},summary:{name:"Summary",I:GS,O:QS,kind:B.Unary},eventLeaderboards:{name:"EventLeaderboards",I:VS,O:WS,kind:B.Unary},eventLeaderboard:{name:"EventLeaderboard",I:qS,O:ZS,kind:B.Unary}}},eI=(e,t,n)=>{const{client:r,queryKey:a}=n.createPromiseClient(XS,{method:"summary",params:[e,t]});return n.nanoquery.createFetcherStore(a,{fetcher:async(i,s,o,u)=>{var p;return(p=(await r.summary({eventId:o,userId:u})).data)==null?void 0:p.attributes}})},tI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(Xe,{method:"syncQuestion",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.syncQuestion({filter:{eventId:s}})).data)==null?void 0:u.attributes:void 0}})},nI=(e,t)=>{const{client:n}=t.createCallbackClient(Xe),r=De.atom({eventId:e.get()||"",feedId:""});return e.subscribe((i="")=>{r.set({eventId:i,feedId:""})}),t.addSubscription(n.subscription,r,{name:"feedSubscription"})},rI=(e,t)=>{const{client:n}=t.createCallbackClient(Xe);return t.addSubscription(n.questionSubscription,{questionId:e},{name:"questionSubscription"})},aI=async(e,t)=>{var a,i;const{client:n}=t.createPromiseClient(Xe,{method:"questionByUser",params:[e]});return(i=(a=(await n.questionByUser({questionId:e})).data)==null?void 0:a.attributes)==null?void 0:i.question},iI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(Xe,{method:"questionByUser",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u,m;return(m=(u=(await n.questionByUser({questionId:s})).data)==null?void 0:u.attributes)==null?void 0:m.question}})},sI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(Xe,{method:"pickHistory",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.pickHistory({eventId:s})).data)==null?void 0:u.map(({attributes:m})=>m):void 0}})},oI=(e,t)=>{const{client:n,queryKey:r}=t.createPromiseClient(Xe,{method:"insightHistory",params:[e]});return t.nanoquery.createFetcherStore(r,{fetcher:async(a,i,s)=>{var u;return s?(u=(await n.insightHistory({eventId:s})).data)==null?void 0:u.map(({attributes:m})=>m):void 0}})},lI=(e,t)=>{const{client:n}=e.createPromiseClient(Xe,{method:"submitAnswer"});return n.submitAnswer({data:t})},uI=(e,t)=>{const{client:n}=e.createPromiseClient(Xe,{method:"submitInplay"});return n.submitInplay({data:{eventId:+t}})},cI=(e,t)=>{const{client:n}=e.createPromiseClient(Xe,{method:"skipQuestion"});return n.skipQuestion({data:{id:t}})};class dI extends hc{constructor(n,r,a){super(n,r);$(this,"userSummary");$(this,"questions");$(this,"insights");$(this,"leaderboardId");$(this,"slStreamId");$(this,"userId");$(this,"organizationId");$(this,"openedQuestionId");$(this,"openedQuestion");$(this,"activeQuestionId");$(this,"moderationId");$(this,"feedId");$(this,"onbordingComplete");$(this,"notifications");$(this,"transport");$(this,"questionSubscription");$(this,"feedSubscription");$(this,"showOnbordingInApp",n=>{var s,o,u,m;if(n)return;const{inplayGame:r}=this.featureSettings.get();if(!r)return;const{titleCard:a,overview:i}=r;this.notifications.add({type:"_onboarding",id:"_",delay:1e5,data:{header:a==null?void 0:a.header,title:a==null?void 0:a.title,subtitle:a==null?void 0:a.subtitle,graphicBg:(s=a==null?void 0:a.appearance)==null?void 0:s.graphic,icon:(o=a==null?void 0:a.media)==null?void 0:o.icon,sponsorLogo:(u=a==null?void 0:a.media)==null?void 0:u.sponsorLogo,primaryColor:(m=i==null?void 0:i.appearance)==null?void 0:m.primaryColor}})});$(this,"getCurrentSessionIdPrefix",n=>{const r=n.eventId||this.slStreamId.get(),a=n.userId||this.userId.get();return`${n.organizationId||this.organizationId.get()}:${a}:${r}:${n.prefix||""}`});$(this,"connect",n=>{var r;this.userSummary=new Ge(eI(this.slStreamId,this.userId,n),"gamification:userSummary"),this.questions=new Ge(sI(this.slStreamId,n),"gamification:questions"),this.insights=new Ge(oI(this.slStreamId,n),"gamification:insights"),this.activeQuestionId=new Ge(tI(this.slStreamId,n),"gamification:activeQuestionId"),this.openedQuestion=new Ge(iI(this.openedQuestionId,n),"gamification:activeQuestionId"),this.questionSubscription&&(this.questionSubscription.disconnect(),this.questionSubscription=void 0),this.openedQuestionId.listen(a=>{var i;a?(this.questionSubscription=rI(a,n),this.questionSubscription.addListener("feed-subscription-opened-question",s=>{window.requestAnimationFrame(()=>{var o,u,m,p,g;(m=this.openedQuestion)==null||m.getStore().mutate((u=(o=s.data)==null?void 0:o.attributes)==null?void 0:u.question),(p=this.openedQuestion)==null||p.getStore().invalidate(),(g=this.userSummary)==null||g.getStore().invalidate()})}),this.questionSubscription.connect()):(console.log("cleanup on close question"),(i=this.openedQuestion)==null||i.getStore().mutate(void 0),this.questionSubscription!==void 0&&n.removeSubscription(this.questionSubscription))}),(r=this.activeQuestionId)==null||r.listen(a=>{var i,s;this.onbordingComplete.get()&&(console.log("1"),(s=(i=a==null?void 0:a.data)==null?void 0:i.notification)!=null&&s.title&&a.data.question.status===dt.ACTIVE&&this.notifications.add({type:"_question",action:()=>this.openQuestion(a.data.question.id),close:()=>this.closeQuestion(),delay:5e3,id:this.getCurrentSessionIdPrefix({prefix:`notification-id:${a.data.question.id}`}),data:a.data}))}),this.feedSubscription&&(this.feedSubscription.disconnect(),this.feedSubscription=void 0),this.feedSubscription=nI(this.slStreamId,n),this.feedSubscription.addListener("feed-subscription-active-question",a=>{window.requestAnimationFrame(()=>{var s,o;const i=(s=this.activeQuestionId)==null?void 0:s.getStore();i&&i.mutate((o=a.data)==null?void 0:o.attributes)})}),this.feedSubscription.addListener("feed-subscription-prediction-close",a=>{window.requestAnimationFrame(async()=>{var m,p;const i=(p=(m=a.data)==null?void 0:m.attributes)==null?void 0:p.question;if(!i)return;const{status:s,type:o,id:u}=i;if(s===dt.RESOLVED&&o===Ae.PREDICTION){const g=await aI(u,n),y=g==null?void 0:g.answers.find(({correct:k})=>k);this.notifications.add({type:"_question",action:()=>this.openQuestion(u),close:()=>this.closeQuestion(),delay:5e3,id:this.getCurrentSessionIdPrefix({prefix:`notification-id:${u}-prediction-close`}),data:{question:g,notification:{title:y!=null&&y.youVoted?`Congratulations! You answered correctly! You won ${y.points} pts!`:`Better luck next time! Correct: ${y==null?void 0:y.text}!`}}})}})}),this.feedSubscription.addListener("feed-subscription-questions-list",()=>{window.requestAnimationFrame(()=>{var a;(a=this.questions)==null||a.invalidate()})})});$(this,"disconnect",()=>{var n,r;(n=this.questionSubscription)==null||n.disconnect(),(r=this.feedSubscription)==null||r.disconnect()});$(this,"submitInplay",async()=>{const n=this.slStreamId.get();n&&(await uI(this.transport,n),this.onbordingComplete.set(!0),localStorage.setItem(`sl-onbording:${this.userId.get()}:${n}`,"true"))});$(this,"submitAnswer",async(n,r)=>{var a;await lI(this.transport,{questionId:n,answerId:r}),(a=this.questions)==null||a.invalidate()});$(this,"skipQuestion",async n=>{var r;await cI(this.transport,n),(r=this.questions)==null||r.invalidate()});$(this,"openQuestion",n=>{this.openedQuestionId.set(n),this.notifications.markAsViewed(this.getCurrentSessionIdPrefix({prefix:`notification-id:${n}`}))});$(this,"closeQuestion",()=>{this.notifications.markAsViewed(this.getCurrentSessionIdPrefix({prefix:`notification-id:${this.openedQuestionId.get()}`})),window.requestAnimationFrame(()=>{this.openedQuestionId.set(void 0)})});if(this.leaderboardId=new Ce(xe(this.settings.getValue("pinnedLeaderboardId")),"pinnedLeaderboardId").getStore(),this.slStreamId=a.stores.slStreamId.getAtomStore(),this.userId=a.stores.user.getAtomStore(),this.organizationId=a.stores.organizationSettings.getAtomStore(),this.moderationId=new Ce(xe(),"moderationId").getStore(),this.feedId=new Ce(xe(),"feedId").getStore(),this.onbordingComplete=new Ce(xe(!1),"onbordingComplete").getStore(),this.openedQuestionId=new Ce(xe(),"openedQuestionId").getStore(),this.notifications=a.notifications,this.transport=a.transport,!this.userId.get())this.userId.subscribe(i=>{i&&window.requestAnimationFrame(()=>{const o=!!localStorage.getItem(`sl-onbording:${i}:${this.slStreamId.get()}`);this.onbordingComplete.set(o),this.showOnbordingInApp(o)})});else{const i=this.userId.get(),o=!!localStorage.getItem(`sl-onbording:${i}:${this.slStreamId.get()}`);this.onbordingComplete.set(o),this.showOnbordingInApp(o)}this.status.subscribe(i=>{i===bt.Ready?this.connect(a.transport):this.disconnect()}),this.onbordingComplete.subscribe(i=>{var s;i&&((s=this.activeQuestionId)==null||s.invalidate())})}}class mI extends hc{}const fI=(e,t,n)=>e.type===ut.GAMES?new dI(e,t,n):new mI(e,t),pI=(e,t,n)=>{e.features=new Map,e.activeFeature=new Ce(xe(),"activeFeature"),e.sdk.getFeatures=()=>e.features,e.sdk.getActiveFeature=()=>e.activeFeature.getStore(),e.sdk.openFeature=r=>{e.activeFeature.setValue(r)},e.sdk.closeFeature=()=>{e.activeFeature.setValue(void 0)},e.initFeature=(r,a=xt.ORGANIZATION)=>{const i=fI(r,a,e);e.features.set(r.name,i)},e.updateFeature=(r,a)=>{var i;(i=e.features.get(r.name))==null||i.update(r,a)},e.destroyFeature=r=>{e.features.delete(r.name)},e.reinitializeFeatures=async()=>{const r=await e.stores.organizationSettings.getValue();e.features.clear();for(const a of(r==null?void 0:r.overlays)||[])e.initFeature(a,xt.ORGANIZATION)},e.stores.providerStreamId.listen(r=>{r||e.reinitializeFeatures()}),e.storeSubscribe=()=>{const r=(i,s)=>{if(s!=null&&s.overlays){i===xt.STREAM&&e.features.clear();for(const o of s.overlays){const u=o.name;e.features.has(u)?e.updateFeature(o,i):e.initFeature(o,i)}}},a={organizationSettings:i=>{if(i.data)try{r(xt.ORGANIZATION,i.data)}catch(s){console.log(s)}},streamSettings:i=>{if(i.data)try{r(xt.STREAM,i.data)}catch(s){console.log(s)}}};e.store.subscribe(a)},n()};var Ei={exports:{}},Oi={exports:{}};function yI(e){var t=new e,n=t;function r(){var i=t;return i.next?t=i.next:(t=new e,n=t),i.next=null,i}function a(i){n.next=i,n=i}return{get:r,release:a}}var gI=yI,hI=gI;function rd(e,t,n){if(typeof e=="function"&&(n=t,t=e,e=null),n<1)throw new Error("fastqueue concurrency must be greater than 1");var r=hI(TI),a=null,i=null,s=0,o=null,u={push:S,drain:Pe,saturated:Pe,pause:p,paused:!1,concurrency:n,running:m,resume:k,idle:M,length:g,getQueue:y,unshift:_,empty:Pe,kill:O,killAndDrain:L,error:P};return u;function m(){return s}function p(){u.paused=!0}function g(){for(var F=a,z=0;F;)F=F.next,z++;return z}function y(){for(var F=a,z=[];F;)z.push(F.value),F=F.next;return z}function k(){if(u.paused){u.paused=!1;for(var F=0;F<u.concurrency;F++)s++,v()}}function M(){return s===0&&u.length()===0}function S(F,z){var U=r.get();U.context=e,U.release=v,U.value=F,U.callback=z||Pe,U.errorHandler=o,s===u.concurrency||u.paused?i?(i.next=U,i=U):(a=U,i=U,u.saturated()):(s++,t.call(e,U.value,U.worked))}function _(F,z){var U=r.get();U.context=e,U.release=v,U.value=F,U.callback=z||Pe,s===u.concurrency||u.paused?a?(U.next=a,a=U):(a=U,i=U,u.saturated()):(s++,t.call(e,U.value,U.worked))}function v(F){F&&r.release(F);var z=a;z?u.paused?s--:(i===a&&(i=null),a=z.next,z.next=null,t.call(e,z.value,z.worked),i===null&&u.empty()):--s===0&&u.drain()}function O(){a=null,i=null,u.drain=Pe}function L(){a=null,i=null,u.drain(),u.drain=Pe}function P(F){o=F}}function Pe(){}function TI(){this.value=null,this.callback=Pe,this.next=null,this.release=Pe,this.context=null,this.errorHandler=null;var e=this;this.worked=function(n,r){var a=e.callback,i=e.errorHandler,s=e.value;e.value=null,e.callback=Pe,e.errorHandler&&i(n,s),a.call(e.context,n,r),e.release(e)}}function kI(e,t,n){typeof e=="function"&&(n=t,t=e,e=null);function r(p,g){t.call(this,p).then(function(y){g(null,y)},g)}var a=rd(e,r,n),i=a.push,s=a.unshift;return a.push=o,a.unshift=u,a.drained=m,a;function o(p){var g=new Promise(function(y,k){i(p,function(M,S){if(M){k(M);return}y(S)})});return g.catch(Pe),g}function u(p){var g=new Promise(function(y,k){s(p,function(M,S){if(M){k(M);return}y(S)})});return g.catch(Pe),g}function m(){if(a.idle())return new Promise(function(y){y()});var p=a.drain,g=new Promise(function(y){a.drain=function(){p(),y()}});return g}}Oi.exports=rd;Oi.exports.promise=kI;var ad=Oi.exports,Di={exports:{}},Bt=typeof Reflect=="object"?Reflect:null,ll=Bt&&typeof Bt.apply=="function"?Bt.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)},zn;Bt&&typeof Bt.ownKeys=="function"?zn=Bt.ownKeys:Object.getOwnPropertySymbols?zn=function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:zn=function(t){return Object.getOwnPropertyNames(t)};function NI(e){console&&console.warn&&console.warn(e)}var id=Number.isNaN||function(t){return t!==t};function ie(){ie.init.call(this)}Di.exports=ie;Di.exports.once=II;ie.EventEmitter=ie;ie.prototype._events=void 0;ie.prototype._eventsCount=0;ie.prototype._maxListeners=void 0;var ul=10;function $r(e){if(typeof e!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}Object.defineProperty(ie,"defaultMaxListeners",{enumerable:!0,get:function(){return ul},set:function(e){if(typeof e!="number"||e<0||id(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");ul=e}});ie.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};ie.prototype.setMaxListeners=function(t){if(typeof t!="number"||t<0||id(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this};function sd(e){return e._maxListeners===void 0?ie.defaultMaxListeners:e._maxListeners}ie.prototype.getMaxListeners=function(){return sd(this)};ie.prototype.emit=function(t){for(var n=[],r=1;r<arguments.length;r++)n.push(arguments[r]);var a=t==="error",i=this._events;if(i!==void 0)a=a&&i.error===void 0;else if(!a)return!1;if(a){var s;if(n.length>0&&(s=n[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var u=i[t];if(u===void 0)return!1;if(typeof u=="function")ll(u,this,n);else for(var m=u.length,p=dd(u,m),r=0;r<m;++r)ll(p[r],this,n);return!0};function od(e,t,n,r){var a,i,s;if($r(n),i=e._events,i===void 0?(i=e._events=Object.create(null),e._eventsCount=0):(i.newListener!==void 0&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),s=i[t]),s===void 0)s=i[t]=n,++e._eventsCount;else if(typeof s=="function"?s=i[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),a=sd(e),a>0&&s.length>a&&!s.warned){s.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=s.length,NI(o)}return e}ie.prototype.addListener=function(t,n){return od(this,t,n,!1)};ie.prototype.on=ie.prototype.addListener;ie.prototype.prependListener=function(t,n){return od(this,t,n,!0)};function bI(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function ld(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},a=bI.bind(r);return a.listener=n,r.wrapFn=a,a}ie.prototype.once=function(t,n){return $r(n),this.on(t,ld(this,t,n)),this};ie.prototype.prependOnceListener=function(t,n){return $r(n),this.prependListener(t,ld(this,t,n)),this};ie.prototype.removeListener=function(t,n){var r,a,i,s,o;if($r(n),a=this._events,a===void 0)return this;if(r=a[t],r===void 0)return this;if(r===n||r.listener===n)--this._eventsCount===0?this._events=Object.create(null):(delete a[t],a.removeListener&&this.emit("removeListener",t,r.listener||n));else if(typeof r!="function"){for(i=-1,s=r.length-1;s>=0;s--)if(r[s]===n||r[s].listener===n){o=r[s].listener,i=s;break}if(i<0)return this;i===0?r.shift():MI(r,i),r.length===1&&(a[t]=r[0]),a.removeListener!==void 0&&this.emit("removeListener",t,o||n)}return this};ie.prototype.off=ie.prototype.removeListener;ie.prototype.removeAllListeners=function(t){var n,r,a;if(r=this._events,r===void 0)return this;if(r.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):r[t]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete r[t]),this;if(arguments.length===0){var i=Object.keys(r),s;for(a=0;a<i.length;++a)s=i[a],s!=="removeListener"&&this.removeAllListeners(s);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(n=r[t],typeof n=="function")this.removeListener(t,n);else if(n!==void 0)for(a=n.length-1;a>=0;a--)this.removeListener(t,n[a]);return this};function ud(e,t,n){var r=e._events;if(r===void 0)return[];var a=r[t];return a===void 0?[]:typeof a=="function"?n?[a.listener||a]:[a]:n?SI(a):dd(a,a.length)}ie.prototype.listeners=function(t){return ud(this,t,!0)};ie.prototype.rawListeners=function(t){return ud(this,t,!1)};ie.listenerCount=function(e,t){return typeof e.listenerCount=="function"?e.listenerCount(t):cd.call(e,t)};ie.prototype.listenerCount=cd;function cd(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n=="function")return 1;if(n!==void 0)return n.length}return 0}ie.prototype.eventNames=function(){return this._eventsCount>0?zn(this._events):[]};function dd(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function MI(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}function SI(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}function II(e,t){return new Promise(function(n,r){function a(s){e.removeListener(t,i),r(s)}function i(){typeof e.removeListener=="function"&&e.removeListener("error",a),n([].slice.call(arguments))}md(e,t,i,{once:!0}),t!=="error"&&vI(e,a,{once:!0})})}function vI(e,t,n){typeof e.on=="function"&&md(e,"error",t,n)}function md(e,t,n,r){if(typeof e.on=="function")r.once?e.once(t,n):e.on(t,n);else if(typeof e.addEventListener=="function")e.addEventListener(t,function a(i){r.once&&e.removeEventListener(t,a),n(i)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e)}var fd=Di.exports,Ar={},pd={},yd=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},n=Symbol("test"),r=Object(n);if(typeof n=="string"||Object.prototype.toString.call(n)!=="[object Symbol]"||Object.prototype.toString.call(r)!=="[object Symbol]")return!1;var a=42;t[n]=a;for(n in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==n||!Object.prototype.propertyIsEnumerable.call(t,n))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(t,n);if(s.value!==a||s.enumerable!==!0)return!1}return!0},$I=yd,wi=function(){return $I()&&!!Symbol.toStringTag},cl=typeof Symbol<"u"&&Symbol,AI=yd,EI=function(){return typeof cl!="function"||typeof Symbol!="function"||typeof cl("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:AI()},dl={foo:{}},OI=Object,DI=function(){return{__proto__:dl}.foo===dl.foo&&!({__proto__:null}instanceof OI)},wI="Function.prototype.bind called on incompatible ",_I=Object.prototype.toString,CI=Math.max,xI="[object Function]",ml=function(t,n){for(var r=[],a=0;a<t.length;a+=1)r[a]=t[a];for(var i=0;i<n.length;i+=1)r[i+t.length]=n[i];return r},jI=function(t,n){for(var r=[],a=n||0,i=0;a<t.length;a+=1,i+=1)r[i]=t[a];return r},RI=function(e,t){for(var n="",r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n},LI=function(t){var n=this;if(typeof n!="function"||_I.apply(n)!==xI)throw new TypeError(wI+n);for(var r=jI(arguments,1),a,i=function(){if(this instanceof a){var p=n.apply(this,ml(r,arguments));return Object(p)===p?p:this}return n.apply(t,ml(r,arguments))},s=CI(0,n.length-r.length),o=[],u=0;u<s;u++)o[u]="$"+u;if(a=Function("binder","return function ("+RI(o,",")+"){ return binder.apply(this,arguments); }")(i),n.prototype){var m=function(){};m.prototype=n.prototype,a.prototype=new m,m.prototype=null}return a},PI=LI,gd=Function.prototype.bind||PI,fl={}.hasOwnProperty,Xr=Function.prototype.call,UI=Xr.bind?Xr.bind(fl):function(e,t){return Xr.call(fl,e,t)},K,qt=SyntaxError,hd=Function,Gt=TypeError,ea=function(e){try{return hd('"use strict"; return ('+e+").constructor;")()}catch{}},Mt=Object.getOwnPropertyDescriptor;if(Mt)try{Mt({},"")}catch{Mt=null}var ta=function(){throw new Gt},FI=Mt?function(){try{return arguments.callee,ta}catch{try{return Mt(arguments,"callee").get}catch{return ta}}}():ta,_t=EI(),zI=DI(),Te=Object.getPrototypeOf||(zI?function(e){return e.__proto__}:null),Rt={},BI=typeof Uint8Array>"u"||!Te?K:Te(Uint8Array),St={"%AggregateError%":typeof AggregateError>"u"?K:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?K:ArrayBuffer,"%ArrayIteratorPrototype%":_t&&Te?Te([][Symbol.iterator]()):K,"%AsyncFromSyncIteratorPrototype%":K,"%AsyncFunction%":Rt,"%AsyncGenerator%":Rt,"%AsyncGeneratorFunction%":Rt,"%AsyncIteratorPrototype%":Rt,"%Atomics%":typeof Atomics>"u"?K:Atomics,"%BigInt%":typeof BigInt>"u"?K:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?K:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?K:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?K:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?K:Float32Array,"%Float64Array%":typeof Float64Array>"u"?K:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?K:FinalizationRegistry,"%Function%":hd,"%GeneratorFunction%":Rt,"%Int8Array%":typeof Int8Array>"u"?K:Int8Array,"%Int16Array%":typeof Int16Array>"u"?K:Int16Array,"%Int32Array%":typeof Int32Array>"u"?K:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_t&&Te?Te(Te([][Symbol.iterator]())):K,"%JSON%":typeof JSON=="object"?JSON:K,"%Map%":typeof Map>"u"?K:Map,"%MapIteratorPrototype%":typeof Map>"u"||!_t||!Te?K:Te(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?K:Promise,"%Proxy%":typeof Proxy>"u"?K:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?K:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?K:Set,"%SetIteratorPrototype%":typeof Set>"u"||!_t||!Te?K:Te(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?K:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_t&&Te?Te(""[Symbol.iterator]()):K,"%Symbol%":_t?Symbol:K,"%SyntaxError%":qt,"%ThrowTypeError%":FI,"%TypedArray%":BI,"%TypeError%":Gt,"%Uint8Array%":typeof Uint8Array>"u"?K:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?K:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?K:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?K:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?K:WeakMap,"%WeakRef%":typeof WeakRef>"u"?K:WeakRef,"%WeakSet%":typeof WeakSet>"u"?K:WeakSet};if(Te)try{null.error}catch(e){var GI=Te(Te(e));St["%Error.prototype%"]=GI}var QI=function e(t){var n;if(t==="%AsyncFunction%")n=ea("async function () {}");else if(t==="%GeneratorFunction%")n=ea("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=ea("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var a=e("%AsyncGenerator%");a&&Te&&(n=Te(a.prototype))}return St[t]=n,n},pl={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},vn=gd,nr=UI,YI=vn.call(Function.call,Array.prototype.concat),VI=vn.call(Function.apply,Array.prototype.splice),yl=vn.call(Function.call,String.prototype.replace),rr=vn.call(Function.call,String.prototype.slice),WI=vn.call(Function.call,RegExp.prototype.exec),HI=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,qI=/\\(\\)?/g,ZI=function(t){var n=rr(t,0,1),r=rr(t,-1);if(n==="%"&&r!=="%")throw new qt("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new qt("invalid intrinsic syntax, expected opening `%`");var a=[];return yl(t,HI,function(i,s,o,u){a[a.length]=o?yl(u,qI,"$1"):s||i}),a},KI=function(t,n){var r=t,a;if(nr(pl,r)&&(a=pl[r],r="%"+a[0]+"%"),nr(St,r)){var i=St[r];if(i===Rt&&(i=QI(r)),typeof i>"u"&&!n)throw new Gt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:a,name:r,value:i}}throw new qt("intrinsic "+t+" does not exist!")},tn=function(t,n){if(typeof t!="string"||t.length===0)throw new Gt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Gt('"allowMissing" argument must be a boolean');if(WI(/^%?[^%]*%?$/,t)===null)throw new qt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=ZI(t),a=r.length>0?r[0]:"",i=KI("%"+a+"%",n),s=i.name,o=i.value,u=!1,m=i.alias;m&&(a=m[0],VI(r,YI([0,1],m)));for(var p=1,g=!0;p<r.length;p+=1){var y=r[p],k=rr(y,0,1),M=rr(y,-1);if((k==='"'||k==="'"||k==="`"||M==='"'||M==="'"||M==="`")&&k!==M)throw new qt("property names with quotes must have matching quotes");if((y==="constructor"||!g)&&(u=!0),a+="."+y,s="%"+a+"%",nr(St,s))o=St[s];else if(o!=null){if(!(y in o)){if(!n)throw new Gt("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mt&&p+1>=r.length){var S=Mt(o,y);g=!!S,g&&"get"in S&&!("originalValue"in S.get)?o=S.get:o=o[y]}else g=nr(o,y),o=o[y];g&&!u&&(St[s]=o)}}return o},Td={exports:{}},JI=tn,Wa=JI("%Object.defineProperty%",!0),Ha=function(){if(Wa)try{return Wa({},"a",{value:1}),!0}catch{return!1}return!1};Ha.hasArrayLengthDefineBug=function(){if(!Ha())return null;try{return Wa([],"length",{value:1}).length!==1}catch{return!0}};var kd=Ha,XI=tn,Bn=XI("%Object.getOwnPropertyDescriptor%",!0);if(Bn)try{Bn([],"length")}catch{Bn=null}var _i=Bn,ev=kd(),Ci=tn,pn=ev&&Ci("%Object.defineProperty%",!0);if(pn)try{pn({},"a",{value:1})}catch{pn=!1}var tv=Ci("%SyntaxError%"),Ct=Ci("%TypeError%"),gl=_i,nv=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new Ct("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new Ct("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new Ct("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new Ct("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new Ct("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new Ct("`loose`, if provided, must be a boolean");var a=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,o=arguments.length>6?arguments[6]:!1,u=!!gl&&gl(t,n);if(pn)pn(t,n,{configurable:s===null&&u?u.configurable:!s,enumerable:a===null&&u?u.enumerable:!a,value:r,writable:i===null&&u?u.writable:!i});else if(o||!a&&!i&&!s)t[n]=r;else throw new tv("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Nd=tn,hl=nv,rv=kd(),Tl=_i,kl=Nd("%TypeError%"),av=Nd("%Math.floor%"),iv=function(t,n){if(typeof t!="function")throw new kl("`fn` is not a function");if(typeof n!="number"||n<0||n>4294967295||av(n)!==n)throw new kl("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],a=!0,i=!0;if("length"in t&&Tl){var s=Tl(t,"length");s&&!s.configurable&&(a=!1),s&&!s.writable&&(i=!1)}return(a||i||!r)&&(rv?hl(t,"length",n,!0,!0):hl(t,"length",n)),t};(function(e){var t=gd,n=tn,r=iv,a=n("%TypeError%"),i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(s,i),u=n("%Object.defineProperty%",!0),m=n("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(y){if(typeof y!="function")throw new a("a function is required");var k=o(t,s,arguments);return r(k,1+m(0,y.length-(arguments.length-1)),!0)};var p=function(){return o(t,i,arguments)};u?u(e.exports,"apply",{value:p}):e.exports.apply=p})(Td);var bd=Td.exports,Md=tn,Sd=bd,sv=Sd(Md("String.prototype.indexOf")),Id=function(t,n){var r=Md(t,!!n);return typeof r=="function"&&sv(t,".prototype.")>-1?Sd(r):r},ov=wi(),lv=Id,qa=lv("Object.prototype.toString"),Er=function(t){return ov&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:qa(t)==="[object Arguments]"},vd=function(t){return Er(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&qa(t)!=="[object Array]"&&qa(t.callee)==="[object Function]"},uv=function(){return Er(arguments)}();Er.isLegacyArguments=vd;var cv=uv?Er:vd,dv=Object.prototype.toString,mv=Function.prototype.toString,fv=/^\s*(?:function)?\*/,$d=wi(),na=Object.getPrototypeOf,pv=function(){if(!$d)return!1;try{return Function("return function*() {}")()}catch{}},ra,yv=function(t){if(typeof t!="function")return!1;if(fv.test(mv.call(t)))return!0;if(!$d){var n=dv.call(t);return n==="[object GeneratorFunction]"}if(!na)return!1;if(typeof ra>"u"){var r=pv();ra=r?na(r):!1}return na(t)===ra},Ad=Function.prototype.toString,Ut=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,Za,Gn;if(typeof Ut=="function"&&typeof Object.defineProperty=="function")try{Za=Object.defineProperty({},"length",{get:function(){throw Gn}}),Gn={},Ut(function(){throw 42},null,Za)}catch(e){e!==Gn&&(Ut=null)}else Ut=null;var gv=/^\s*class\b/,Ka=function(t){try{var n=Ad.call(t);return gv.test(n)}catch{return!1}},aa=function(t){try{return Ka(t)?!1:(Ad.call(t),!0)}catch{return!1}},Qn=Object.prototype.toString,hv="[object Object]",Tv="[object Function]",kv="[object GeneratorFunction]",Nv="[object HTMLAllCollection]",bv="[object HTML document.all class]",Mv="[object HTMLCollection]",Sv=typeof Symbol=="function"&&!!Symbol.toStringTag,Iv=!(0 in[,]),Ja=function(){return!1};if(typeof document=="object"){var vv=document.all;Qn.call(vv)===Qn.call(document.all)&&(Ja=function(t){if((Iv||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=Qn.call(t);return(n===Nv||n===bv||n===Mv||n===hv)&&t("")==null}catch{}return!1})}var $v=Ut?function(t){if(Ja(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ut(t,null,Za)}catch(n){if(n!==Gn)return!1}return!Ka(t)&&aa(t)}:function(t){if(Ja(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(Sv)return aa(t);if(Ka(t))return!1;var n=Qn.call(t);return n!==Tv&&n!==kv&&!/^\[object HTML/.test(n)?!1:aa(t)},Av=$v,Ev=Object.prototype.toString,Ed=Object.prototype.hasOwnProperty,Ov=function(t,n,r){for(var a=0,i=t.length;a<i;a++)Ed.call(t,a)&&(r==null?n(t[a],a,t):n.call(r,t[a],a,t))},Dv=function(t,n,r){for(var a=0,i=t.length;a<i;a++)r==null?n(t.charAt(a),a,t):n.call(r,t.charAt(a),a,t)},wv=function(t,n,r){for(var a in t)Ed.call(t,a)&&(r==null?n(t[a],a,t):n.call(r,t[a],a,t))},_v=function(t,n,r){if(!Av(n))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=r),Ev.call(t)==="[object Array]"?Ov(t,n,a):typeof t=="string"?Dv(t,n,a):wv(t,n,a)},Cv=_v,ia=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],xv=typeof globalThis>"u"?Ol:globalThis,jv=function(){for(var t=[],n=0;n<ia.length;n++)typeof xv[ia[n]]=="function"&&(t[t.length]=ia[n]);return t},ar=Cv,Rv=jv,Nl=bd,xi=Id,Yn=_i,Lv=xi("Object.prototype.toString"),Od=wi(),bl=typeof globalThis>"u"?Ol:globalThis,Xa=Rv(),ji=xi("String.prototype.slice"),sa=Object.getPrototypeOf,Pv=xi("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r<t.length;r+=1)if(t[r]===n)return r;return-1},ir={__proto__:null};Od&&Yn&&sa?ar(Xa,function(e){var t=new bl[e];if(Symbol.toStringTag in t){var n=sa(t),r=Yn(n,Symbol.toStringTag);if(!r){var a=sa(n);r=Yn(a,Symbol.toStringTag)}ir["$"+e]=Nl(r.get)}}):ar(Xa,function(e){var t=new bl[e],n=t.slice||t.set;n&&(ir["$"+e]=Nl(n))});var Uv=function(t){var n=!1;return ar(ir,function(r,a){if(!n)try{"$"+r(t)===a&&(n=ji(a,1))}catch{}}),n},Fv=function(t){var n=!1;return ar(ir,function(r,a){if(!n)try{r(t),n=ji(a,1)}catch{}}),n},Dd=function(t){if(!t||typeof t!="object")return!1;if(!Od){var n=ji(Lv(t),8,-1);return Pv(Xa,n)>-1?n:n!=="Object"?!1:Fv(t)}return Yn?Uv(t):null},zv=Dd,Bv=function(t){return!!zv(t)};(function(e){var t=cv,n=yv,r=Dd,a=Bv;function i(C){return C.call.bind(C)}var s=typeof BigInt<"u",o=typeof Symbol<"u",u=i(Object.prototype.toString),m=i(Number.prototype.valueOf),p=i(String.prototype.valueOf),g=i(Boolean.prototype.valueOf);if(s)var y=i(BigInt.prototype.valueOf);if(o)var k=i(Symbol.prototype.valueOf);function M(C,An){if(typeof C!="object")return!1;try{return An(C),!0}catch{return!1}}e.isArgumentsObject=t,e.isGeneratorFunction=n,e.isTypedArray=a;function S(C){return typeof Promise<"u"&&C instanceof Promise||C!==null&&typeof C=="object"&&typeof C.then=="function"&&typeof C.catch=="function"}e.isPromise=S;function _(C){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(C):a(C)||D(C)}e.isArrayBufferView=_;function v(C){return r(C)==="Uint8Array"}e.isUint8Array=v;function O(C){return r(C)==="Uint8ClampedArray"}e.isUint8ClampedArray=O;function L(C){return r(C)==="Uint16Array"}e.isUint16Array=L;function P(C){return r(C)==="Uint32Array"}e.isUint32Array=P;function F(C){return r(C)==="Int8Array"}e.isInt8Array=F;function z(C){return r(C)==="Int16Array"}e.isInt16Array=z;function U(C){return r(C)==="Int32Array"}e.isInt32Array=U;function V(C){return r(C)==="Float32Array"}e.isFloat32Array=V;function H(C){return r(C)==="Float64Array"}e.isFloat64Array=H;function J(C){return r(C)==="BigInt64Array"}e.isBigInt64Array=J;function ae(C){return r(C)==="BigUint64Array"}e.isBigUint64Array=ae;function ce(C){return u(C)==="[object Map]"}ce.working=typeof Map<"u"&&ce(new Map);function oe(C){return typeof Map>"u"?!1:ce.working?ce(C):C instanceof Map}e.isMap=oe;function q(C){return u(C)==="[object Set]"}q.working=typeof Set<"u"&&q(new Set);function le(C){return typeof Set>"u"?!1:q.working?q(C):C instanceof Set}e.isSet=le;function Me(C){return u(C)==="[object WeakMap]"}Me.working=typeof WeakMap<"u"&&Me(new WeakMap);function we(C){return typeof WeakMap>"u"?!1:Me.working?Me(C):C instanceof WeakMap}e.isWeakMap=we;function _e(C){return u(C)==="[object WeakSet]"}_e.working=typeof WeakSet<"u"&&_e(new WeakSet);function Se(C){return _e(C)}e.isWeakSet=Se;function ve(C){return u(C)==="[object ArrayBuffer]"}ve.working=typeof ArrayBuffer<"u"&&ve(new ArrayBuffer);function ee(C){return typeof ArrayBuffer>"u"?!1:ve.working?ve(C):C instanceof ArrayBuffer}e.isArrayBuffer=ee;function b(C){return u(C)==="[object DataView]"}b.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&b(new DataView(new ArrayBuffer(1),0,1));function D(C){return typeof DataView>"u"?!1:b.working?b(C):C instanceof DataView}e.isDataView=D;var j=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function G(C){return u(C)==="[object SharedArrayBuffer]"}function X(C){return typeof j>"u"?!1:(typeof G.working>"u"&&(G.working=G(new j)),G.working?G(C):C instanceof j)}e.isSharedArrayBuffer=X;function te(C){return u(C)==="[object AsyncFunction]"}e.isAsyncFunction=te;function Y(C){return u(C)==="[object Map Iterator]"}e.isMapIterator=Y;function Z(C){return u(C)==="[object Set Iterator]"}e.isSetIterator=Z;function ne(C){return u(C)==="[object Generator]"}e.isGeneratorObject=ne;function Ie(C){return u(C)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=Ie;function Ve(C){return M(C,m)}e.isNumberObject=Ve;function Ue(C){return M(C,p)}e.isStringObject=Ue;function Re(C){return M(C,g)}e.isBooleanObject=Re;function At(C){return s&&M(C,y)}e.isBigIntObject=At;function $n(C){return o&&M(C,k)}e.isSymbolObject=$n;function rn(C){return Ve(C)||Ue(C)||Re(C)||At(C)||$n(C)}e.isBoxedPrimitive=rn;function Or(C){return typeof Uint8Array<"u"&&(ee(C)||X(C))}e.isAnyArrayBuffer=Or,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(C){Object.defineProperty(e,C,{enumerable:!1,value:function(){throw new Error(C+" is not supported in userland")}})})})(pd);var Gv=function(t){return t&&typeof t=="object"&&typeof t.copy=="function"&&typeof t.fill=="function"&&typeof t.readUInt8=="function"},ei={exports:{}};typeof Object.create=="function"?ei.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:ei.exports=function(t,n){if(n){t.super_=n;var r=function(){};r.prototype=n.prototype,t.prototype=new r,t.prototype.constructor=t}};var Qv=ei.exports;(function(e){var t=Object.getOwnPropertyDescriptors||function(D){for(var j=Object.keys(D),G={},X=0;X<j.length;X++)G[j[X]]=Object.getOwnPropertyDescriptor(D,j[X]);return G},n=/%[sdj%]/g;e.format=function(b){if(!F(b)){for(var D=[],j=0;j<arguments.length;j++)D.push(s(arguments[j]));return D.join(" ")}for(var j=1,G=arguments,X=G.length,te=String(b).replace(n,function(Z){if(Z==="%%")return"%";if(j>=X)return Z;switch(Z){case"%s":return String(G[j++]);case"%d":return Number(G[j++]);case"%j":try{return JSON.stringify(G[j++])}catch{return"[Circular]"}default:return Z}}),Y=G[j];j<X;Y=G[++j])O(Y)||!H(Y)?te+=" "+Y:te+=" "+s(Y);return te},e.deprecate=function(b,D){if(typeof Q.process<"u"&&Q.process.noDeprecation===!0)return b;if(typeof Q.process>"u")return function(){return e.deprecate(b,D).apply(this,arguments)};var j=!1;function G(){if(!j){if(Q.process.throwDeprecation)throw new Error(D);Q.process.traceDeprecation?console.trace(D):console.error(D),j=!0}return b.apply(this,arguments)}return G};var r={},a=/^$/;if(Q.process.env.NODE_DEBUG){var i=Q.process.env.NODE_DEBUG;i=i.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),a=new RegExp("^"+i+"$","i")}e.debuglog=function(b){if(b=b.toUpperCase(),!r[b])if(a.test(b)){var D=Q.process.pid;r[b]=function(){var j=e.format.apply(e,arguments);console.error("%s %d: %s",b,D,j)}}else r[b]=function(){};return r[b]};function s(b,D){var j={seen:[],stylize:u};return arguments.length>=3&&(j.depth=arguments[2]),arguments.length>=4&&(j.colors=arguments[3]),v(D)?j.showHidden=D:D&&e._extend(j,D),U(j.showHidden)&&(j.showHidden=!1),U(j.depth)&&(j.depth=2),U(j.colors)&&(j.colors=!1),U(j.customInspect)&&(j.customInspect=!0),j.colors&&(j.stylize=o),p(j,b,j.depth)}e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function o(b,D){var j=s.styles[D];return j?"\x1B["+s.colors[j][0]+"m"+b+"\x1B["+s.colors[j][1]+"m":b}function u(b,D){return b}function m(b){var D={};return b.forEach(function(j,G){D[j]=!0}),D}function p(b,D,j){if(b.customInspect&&D&&ce(D.inspect)&&D.inspect!==e.inspect&&!(D.constructor&&D.constructor.prototype===D)){var G=D.inspect(j,b);return F(G)||(G=p(b,G,j)),G}var X=g(b,D);if(X)return X;var te=Object.keys(D),Y=m(te);if(b.showHidden&&(te=Object.getOwnPropertyNames(D)),ae(D)&&(te.indexOf("message")>=0||te.indexOf("description")>=0))return y(D);if(te.length===0){if(ce(D)){var Z=D.name?": "+D.name:"";return b.stylize("[Function"+Z+"]","special")}if(V(D))return b.stylize(RegExp.prototype.toString.call(D),"regexp");if(J(D))return b.stylize(Date.prototype.toString.call(D),"date");if(ae(D))return y(D)}var ne="",Ie=!1,Ve=["{","}"];if(_(D)&&(Ie=!0,Ve=["[","]"]),ce(D)){var Ue=D.name?": "+D.name:"";ne=" [Function"+Ue+"]"}if(V(D)&&(ne=" "+RegExp.prototype.toString.call(D)),J(D)&&(ne=" "+Date.prototype.toUTCString.call(D)),ae(D)&&(ne=" "+y(D)),te.length===0&&(!Ie||D.length==0))return Ve[0]+ne+Ve[1];if(j<0)return V(D)?b.stylize(RegExp.prototype.toString.call(D),"regexp"):b.stylize("[Object]","special");b.seen.push(D);var Re;return Ie?Re=k(b,D,j,Y,te):Re=te.map(function(At){return M(b,D,j,Y,At,Ie)}),b.seen.pop(),S(Re,ne,Ve)}function g(b,D){if(U(D))return b.stylize("undefined","undefined");if(F(D)){var j="'"+JSON.stringify(D).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return b.stylize(j,"string")}if(P(D))return b.stylize(""+D,"number");if(v(D))return b.stylize(""+D,"boolean");if(O(D))return b.stylize("null","null")}function y(b){return"["+Error.prototype.toString.call(b)+"]"}function k(b,D,j,G,X){for(var te=[],Y=0,Z=D.length;Y<Z;++Y)_e(D,String(Y))?te.push(M(b,D,j,G,String(Y),!0)):te.push("");return X.forEach(function(ne){ne.match(/^\d+$/)||te.push(M(b,D,j,G,ne,!0))}),te}function M(b,D,j,G,X,te){var Y,Z,ne;if(ne=Object.getOwnPropertyDescriptor(D,X)||{value:D[X]},ne.get?ne.set?Z=b.stylize("[Getter/Setter]","special"):Z=b.stylize("[Getter]","special"):ne.set&&(Z=b.stylize("[Setter]","special")),_e(G,X)||(Y="["+X+"]"),Z||(b.seen.indexOf(ne.value)<0?(O(j)?Z=p(b,ne.value,null):Z=p(b,ne.value,j-1),Z.indexOf(`
41
41
  `)>-1&&(te?Z=Z.split(`
42
42
  `).map(function(Ie){return" "+Ie}).join(`
43
43
  `).slice(2):Z=`
@@ -46,9 +46,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
46
46
  `))):Z=b.stylize("[Circular]","special")),U(Y)){if(te&&X.match(/^\d+$/))return Z;Y=JSON.stringify(""+X),Y.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Y=Y.slice(1,-1),Y=b.stylize(Y,"name")):(Y=Y.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Y=b.stylize(Y,"string"))}return Y+": "+Z}function S(b,D,j){var G=b.reduce(function(X,te){return te.indexOf(`
47
47
  `)>=0,X+te.replace(/\u001b\[\d\d?m/g,"").length+1},0);return G>60?j[0]+(D===""?"":D+`
48
48
  `)+" "+b.join(`,
49
- `)+" "+j[1]:j[0]+D+" "+b.join(", ")+" "+j[1]}e.types=pd;function _(b){return Array.isArray(b)}e.isArray=_;function v(b){return typeof b=="boolean"}e.isBoolean=v;function O(b){return b===null}e.isNull=O;function L(b){return b==null}e.isNullOrUndefined=L;function P(b){return typeof b=="number"}e.isNumber=P;function F(b){return typeof b=="string"}e.isString=F;function z(b){return typeof b=="symbol"}e.isSymbol=z;function U(b){return b===void 0}e.isUndefined=U;function V(b){return H(b)&&q(b)==="[object RegExp]"}e.isRegExp=V,e.types.isRegExp=V;function H(b){return typeof b=="object"&&b!==null}e.isObject=H;function J(b){return H(b)&&q(b)==="[object Date]"}e.isDate=J,e.types.isDate=J;function ae(b){return H(b)&&(q(b)==="[object Error]"||b instanceof Error)}e.isError=ae,e.types.isNativeError=ae;function ce(b){return typeof b=="function"}e.isFunction=ce;function oe(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||typeof b=="symbol"||typeof b>"u"}e.isPrimitive=oe,e.isBuffer=Bv;function q(b){return Object.prototype.toString.call(b)}function le(b){return b<10?"0"+b.toString(10):b.toString(10)}var Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function De(){var b=new Date,D=[le(b.getHours()),le(b.getMinutes()),le(b.getSeconds())].join(":");return[b.getDate(),Me[b.getMonth()],D].join(" ")}e.log=function(){console.log("%s - %s",De(),e.format.apply(e,arguments))},e.inherits=Gv,e._extend=function(b,D){if(!D||!H(D))return b;for(var j=Object.keys(D),G=j.length;G--;)b[j[G]]=D[j[G]];return b};function we(b,D){return Object.prototype.hasOwnProperty.call(b,D)}var Se=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(Se&&D[Se]){var j=D[Se];if(typeof j!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,Se,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var G,X,te=new Promise(function(ne,Ie){G=ne,X=Ie}),Y=[],Z=0;Z<arguments.length;Z++)Y.push(arguments[Z]);Y.push(function(ne,Ie){ne?X(ne):G(Ie)});try{D.apply(this,Y)}catch(ne){X(ne)}return te}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Se&&Object.defineProperty(j,Se,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,t(D))},e.promisify.custom=Se;function ve(b,D){if(!b){var j=new Error("Promise was rejected with a falsy value");j.reason=b,b=j}return D(b)}function ee(b){if(typeof b!="function")throw new TypeError('The "original" argument must be of type Function');function D(){for(var j=[],G=0;G<arguments.length;G++)j.push(arguments[G]);var X=j.pop();if(typeof X!="function")throw new TypeError("The last argument must be of type Function");var te=this,Y=function(){return X.apply(te,arguments)};b.apply(this,j).then(function(Z){Q.process.nextTick(Y.bind(null,null,Z))},function(Z){Q.process.nextTick(ve.bind(null,Z,Y))})}return Object.setPrototypeOf(D,Object.getPrototypeOf(b)),Object.defineProperties(D,t(b)),D}e.callbackify=ee})(Ar);const{inherits:Qv,format:sa}=Ar;function ht(e,t,n=Error){if(!e)throw new Error("Avvio error code must not be empty");if(!t)throw new Error("Avvio base error message must not be empty");function r(a,i,s){if(!new.target)return new r(a,i,s);Error.captureStackTrace(this,r),this.code=e,this.message=t,this.name="AvvioError",a&&i&&s?this.message=sa(t,a,i,s):a&&i?this.message=sa(t,a,i):a?this.message=sa(t,a):this.message=t}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Qv(r,n),r}var wd={createError:ht,AVV_ERR_EXPOSE_ALREADY_DEFINED:ht("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:ht("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:ht("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:ht("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:ht("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:ht("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")},Yv=function e(t,n,r){n===void 0&&(n=""),r||(r={});var a=function(u){var m={"│":"|","└":"`","├":"+","─":"-","┬":"-"};return r.unicode===!1?m[u]:u};typeof t=="string"&&(t={label:t});var i=t.nodes||[],s=(t.label||"").split(`
49
+ `)+" "+j[1]:j[0]+D+" "+b.join(", ")+" "+j[1]}e.types=pd;function _(b){return Array.isArray(b)}e.isArray=_;function v(b){return typeof b=="boolean"}e.isBoolean=v;function O(b){return b===null}e.isNull=O;function L(b){return b==null}e.isNullOrUndefined=L;function P(b){return typeof b=="number"}e.isNumber=P;function F(b){return typeof b=="string"}e.isString=F;function z(b){return typeof b=="symbol"}e.isSymbol=z;function U(b){return b===void 0}e.isUndefined=U;function V(b){return H(b)&&q(b)==="[object RegExp]"}e.isRegExp=V,e.types.isRegExp=V;function H(b){return typeof b=="object"&&b!==null}e.isObject=H;function J(b){return H(b)&&q(b)==="[object Date]"}e.isDate=J,e.types.isDate=J;function ae(b){return H(b)&&(q(b)==="[object Error]"||b instanceof Error)}e.isError=ae,e.types.isNativeError=ae;function ce(b){return typeof b=="function"}e.isFunction=ce;function oe(b){return b===null||typeof b=="boolean"||typeof b=="number"||typeof b=="string"||typeof b=="symbol"||typeof b>"u"}e.isPrimitive=oe,e.isBuffer=Gv;function q(b){return Object.prototype.toString.call(b)}function le(b){return b<10?"0"+b.toString(10):b.toString(10)}var Me=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function we(){var b=new Date,D=[le(b.getHours()),le(b.getMinutes()),le(b.getSeconds())].join(":");return[b.getDate(),Me[b.getMonth()],D].join(" ")}e.log=function(){console.log("%s - %s",we(),e.format.apply(e,arguments))},e.inherits=Qv,e._extend=function(b,D){if(!D||!H(D))return b;for(var j=Object.keys(D),G=j.length;G--;)b[j[G]]=D[j[G]];return b};function _e(b,D){return Object.prototype.hasOwnProperty.call(b,D)}var Se=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(D){if(typeof D!="function")throw new TypeError('The "original" argument must be of type Function');if(Se&&D[Se]){var j=D[Se];if(typeof j!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(j,Se,{value:j,enumerable:!1,writable:!1,configurable:!0}),j}function j(){for(var G,X,te=new Promise(function(ne,Ie){G=ne,X=Ie}),Y=[],Z=0;Z<arguments.length;Z++)Y.push(arguments[Z]);Y.push(function(ne,Ie){ne?X(ne):G(Ie)});try{D.apply(this,Y)}catch(ne){X(ne)}return te}return Object.setPrototypeOf(j,Object.getPrototypeOf(D)),Se&&Object.defineProperty(j,Se,{value:j,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(j,t(D))},e.promisify.custom=Se;function ve(b,D){if(!b){var j=new Error("Promise was rejected with a falsy value");j.reason=b,b=j}return D(b)}function ee(b){if(typeof b!="function")throw new TypeError('The "original" argument must be of type Function');function D(){for(var j=[],G=0;G<arguments.length;G++)j.push(arguments[G]);var X=j.pop();if(typeof X!="function")throw new TypeError("The last argument must be of type Function");var te=this,Y=function(){return X.apply(te,arguments)};b.apply(this,j).then(function(Z){Q.process.nextTick(Y.bind(null,null,Z))},function(Z){Q.process.nextTick(ve.bind(null,Z,Y))})}return Object.setPrototypeOf(D,Object.getPrototypeOf(b)),Object.defineProperties(D,t(b)),D}e.callbackify=ee})(Ar);const{inherits:Yv,format:oa}=Ar;function Tt(e,t,n=Error){if(!e)throw new Error("Avvio error code must not be empty");if(!t)throw new Error("Avvio base error message must not be empty");function r(a,i,s){if(!new.target)return new r(a,i,s);Error.captureStackTrace(this,r),this.code=e,this.message=t,this.name="AvvioError",a&&i&&s?this.message=oa(t,a,i,s):a&&i?this.message=oa(t,a,i):a?this.message=oa(t,a):this.message=t}return r.prototype[Symbol.toStringTag]="Error",r.prototype.toString=function(){return`${this.name} [${this.code}]: ${this.message}`},Yv(r,n),r}var wd={createError:Tt,AVV_ERR_EXPOSE_ALREADY_DEFINED:Tt("AVV_ERR_EXPOSE_ALREADY_DEFINED","'%s' () is already defined, specify an expose option"),AVV_ERR_CALLBACK_NOT_FN:Tt("AVV_ERR_CALLBACK_NOT_FN","Callback for '%s' hook is not a function. Received: '%s'"),AVV_ERR_PLUGIN_NOT_VALID:Tt("AVV_ERR_PLUGIN_NOT_VALID","Plugin must be a function or a promise. Received: '%s'"),AVV_ERR_ROOT_PLG_BOOTED:Tt("AVV_ERR_PLUGIN_NOT_VALID","Root plugin has already booted"),AVV_ERR_PARENT_PLG_LOADED:Tt("AVV_ERR_PARENT_PLG_LOADED","Impossible to load '%s' plugin because the parent '%s' was already loaded"),AVV_ERR_READY_TIMEOUT:Tt("AVV_ERR_READY_TIMEOUT","Plugin did not start in time: '%s'. You may have forgotten to call 'done' function or to resolve a Promise")},Vv=function e(t,n,r){n===void 0&&(n=""),r||(r={});var a=function(u){var m={"│":"|","└":"`","├":"+","─":"-","┬":"-"};return r.unicode===!1?m[u]:u};typeof t=="string"&&(t={label:t});var i=t.nodes||[],s=(t.label||"").split(`
50
50
  `),o=`
51
51
  `+n+(i.length?a("│"):" ")+" ";return n+s.join(o)+`
52
- `+i.map(function(u,m){var p=m===i.length-1,g=u.nodes&&u.nodes.length,y=n+(p?" ":a("│"))+" ";return n+a(p?"└":"├")+a("─")+a(g?"┬":"─")+" "+e(u,y,r).slice(n.length+2)}).join("")};const Vv=Yv,Ml=Symbol("avvio.TimeTree.untrackNode"),oa=Symbol("avvio.TimeTree.trackNode"),Sl=Symbol("avvio.TimeTree.getParent"),Il=Symbol("avvio.TimeTree.getNode"),vl=Symbol("avvio.TimeTree.addNode");let Wv=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[oa](t){this.tableId.set(t.id,t),this.tableLabel.has(t.label)?this.tableLabel.get(t.label).push(t):this.tableLabel.set(t.label,[t])}[Ml](t){this.tableId.delete(t.id);const n=this.tableLabel.get(t.label);if(n.id){this.tableLabel.delete(t.label);return}n.pop(),n.length===0&&this.tableLabel.delete(t.label)}[Sl](t){if(t===null)return this.root;const n=this.tableLabel.get(t);return n.id?n:n[n.length-1]}[Il](t){return this.tableId.get(t)}[vl](t,n,r){if(t===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[oa](this.root),this.root.id;const i=this[Sl](t),s=`${n}-${Math.random()}`,o={id:s,parent:t,start:r,label:n,nodes:[]};return i.nodes.push(o),this[oa](o),s}start(t,n,r=Date.now()){return this[vl](t,n,r)}stop(t,n=Date.now()){const r=this[Il](t);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[Ml](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const t=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(a=>t(a))),r),n=t(this.toJSON());return Vv(n)}};var Hv=Wv,ji={exports:{}},ei={exports:{}},la,$l;function qv(){if($l)return la;$l=1;var e=1e3,t=e*60,n=t*60,r=n*24,a=r*7,i=r*365.25;la=function(p,g){g=g||{};var y=typeof p;if(y==="string"&&p.length>0)return s(p);if(y==="number"&&isFinite(p))return g.long?u(p):o(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function s(p){if(p=String(p),!(p.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(g){var y=parseFloat(g[1]),k=(g[2]||"ms").toLowerCase();switch(k){case"years":case"year":case"yrs":case"yr":case"y":return y*i;case"weeks":case"week":case"w":return y*a;case"days":case"day":case"d":return y*r;case"hours":case"hour":case"hrs":case"hr":case"h":return y*n;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function o(p){var g=Math.abs(p);return g>=r?Math.round(p/r)+"d":g>=n?Math.round(p/n)+"h":g>=t?Math.round(p/t)+"m":g>=e?Math.round(p/e)+"s":p+"ms"}function u(p){var g=Math.abs(p);return g>=r?m(p,g,r,"day"):g>=n?m(p,g,n,"hour"):g>=t?m(p,g,t,"minute"):g>=e?m(p,g,e,"second"):p+" ms"}function m(p,g,y,k){var M=g>=y*1.5;return Math.round(p/y)+" "+k+(M?"s":"")}return la}function Zv(e){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=a,n.enabled=s,n.humanize=qv(),n.destroy=m,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function t(p){let g=0;for(let y=0;y<p.length;y++)g=(g<<5)-g+p.charCodeAt(y),g|=0;return n.colors[Math.abs(g)%n.colors.length]}n.selectColor=t;function n(p){let g,y=null,k,M;function S(..._){if(!S.enabled)return;const v=S,O=Number(new Date),L=O-(g||O);v.diff=L,v.prev=g,v.curr=O,g=O,_[0]=n.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let P=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(z,U)=>{if(z==="%%")return"%";P++;const V=n.formatters[U];if(typeof V=="function"){const H=_[P];z=V.call(v,H),_.splice(P,1),P--}return z}),n.formatArgs.call(v,_),(v.log||n.log).apply(v,_)}return S.namespace=p,S.useColors=n.useColors(),S.color=n.selectColor(p),S.extend=r,S.destroy=n.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(k!==n.namespaces&&(k=n.namespaces,M=n.enabled(p)),M),set:_=>{y=_}}),typeof n.init=="function"&&n.init(S),S}function r(p,g){const y=n(this.namespace+(typeof g>"u"?":":g)+p);return y.log=this.log,y}function a(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];let g;const y=(typeof p=="string"?p:"").split(/[\s,]+/),k=y.length;for(g=0;g<k;g++)y[g]&&(p=y[g].replace(/\*/g,".*?"),p[0]==="-"?n.skips.push(new RegExp("^"+p.slice(1)+"$")):n.names.push(new RegExp("^"+p+"$")))}function i(){const p=[...n.names.map(o),...n.skips.map(o).map(g=>"-"+g)].join(",");return n.enable(""),p}function s(p){if(p[p.length-1]==="*")return!0;let g,y;for(g=0,y=n.skips.length;g<y;g++)if(n.skips[g].test(p))return!1;for(g=0,y=n.names.length;g<y;g++)if(n.names[g].test(p))return!0;return!1}function o(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function u(p){return p instanceof Error?p.stack||p.message:p}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Kv=Zv;(function(e,t){t.formatArgs=r,t.save=a,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;u.splice(1,0,m,"color: inherit");let p=0,g=0;u[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(p++,y==="%c"&&(g=p))}),u.splice(g,0,m)}t.log=console.debug||console.log||(()=>{});function a(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof Q.process<"u"&&"env"in Q.process&&(u=Q.process.env.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=Kv(t);const{formatters:o}=e.exports;o.j=function(u){try{return JSON.stringify(u)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(ei,ei.exports);var _d=ei.exports;const Jv=ad,Xv=fd.EventEmitter,e$=Ar.inherits,ke=_d("avvio"),{AVV_ERR_READY_TIMEOUT:t$}=wd,ua=Symbol.for("plugin-meta");function n$(e,t){return e[ua]&&e[ua].name?e[ua].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
53
- `).slice(0,2).map(n=>n.trim()).join(" -- ")}function r$(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function nn(e,t,n,r,a){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=a===void 0?e._timeout:a,this.name=n$(t,n),this.isAfter=r,this.q=Jv(e,a$,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}e$(nn,Xv);nn.prototype.exec=function(e,t){const n=this.func;let r=!1;const a=this.name;if(this.parent._error&&!this.isAfter){ke("skipping loading of plugin as parent errored and it is not an after",a),Q.process.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(u){return ke("override errored",a),t(u)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,ke("exec",a);let i;const s=u=>{if(r){ke("loading complete",a);return}this._error=u,ke(u?"exec errored":"exec completed",a),r=!0,i&&clearTimeout(i),t(u)};this.timeout>0&&(ke("setting up timeout",a,this.timeout),i=setTimeout(function(){ke("timed out",a),i=null;const u=new t$(a);u.fn=n,s(u)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const o=n(this.server,this.opts,s);o&&typeof o.then=="function"&&(ke("exec: resolving promise",a),o.then(()=>Q.process.nextTick(s),u=>Q.process.nextTick(s,u)))};nn.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(ke("rejecting promise",this.name,n),this._promise.reject(n)):(ke("resolving promise",this.name),this._promise.resolve()),this._promise=null,Q.process.nextTick(r,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=r$(),t=this._promise.promise,this.server?e():this.on("start",e)),t};nn.prototype.enqueue=function(e,t){ke("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};nn.prototype.finish=function(e,t){ke("finish",this.name,e);const n=()=>{this.loaded||(ke("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const r=()=>{if(ke("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const a=()=>{ke("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(a,a),this._promise=null}else n();else ke("delayed",this.name),this.q.drain=()=>{ke("drain",this.name),this.q.drain=i$,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function a$(e,t){const n=this;Q.process.nextTick(Ri.bind(n),e,t)}function Ri(e,t){if(typeof e.func.then=="function"){e.func.then(r=>{typeof r.default=="function"&&(r=r.default),e.func=r,Ri.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,r=>{e.finish(r,a=>{this._current.shift(),t(a)})})}function i$(){}ji.exports=nn;ji.exports.loadPlugin=Ri;var s$=ji.exports;const Al=ad,o$=fd.EventEmitter,l$=Ar.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:ca,AVV_ERR_CALLBACK_NOT_FN:yn,AVV_ERR_PLUGIN_NOT_VALID:u$,AVV_ERR_ROOT_PLG_BOOTED:c$,AVV_ERR_READY_TIMEOUT:d$}=wd,m$=Hv,ti=s$,Zt=_d("avvio"),sr=Symbol("kAvvio"),da=Symbol("kThenifyDoNotWrap");function f$(e,t,n){const r=t.expose||{},a=r.use||"use",i=r.after||"after",s=r.ready||"ready",o=r.onClose||"onClose",u=r.close||"close";if(e[a])throw new ca(a);if(e[i])throw new ca(i);if(e[s])throw new ca(s);e[a]=function(m,p){return n.use(m,p),this},Object.defineProperty(e,"then",{get:Cd.bind(n)}),e[sr]=!0,e[i]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(ma(m,this)),this)},e[s]=function(m){if(m&&typeof m!="function")throw new yn(s,typeof m);return n.ready(m?ma(m,this):void 0)},e[o]=function(m){if(typeof m!="function")throw new yn(o,typeof m);return n.onClose(T$(m,this)),this},e[u]=function(m){if(m&&typeof m!="function")throw new yn(u,typeof m);return m?(n.close(ma(m,this)),this):n.close()}}function be(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof be)){const r=new be(e,t,n);return e&&f$(e,t,r),r}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new m$,this._readyQ=Al(this,xd,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=El},this._closeQ=Al(this,h$,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=El},this._doStart=null,this._root=new ti(this,p$.bind(this),t,!1,0),this._root.once("start",(r,a,i)=>{const s=this.pluginTree.start(null,a,i);this._root.once("loaded",(o,u,m)=>{this.pluginTree.stop(s,m)})}),ti.loadPlugin.call(this,this._root,r=>{Zt("root plugin ready");try{this.emit("preReady"),this._root=null}catch(a){r=r||this._error||a}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function p$(e,t,n){this._doStart=n,t.autostart&&this.start()}l$(be,o$);be.prototype.start=function(){return this.started=!0,Q.process.nextTick(this._doStart),this};be.prototype.override=function(e,t,n){return e};function y$(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new u$(typeof e);return e}be.prototype[sr]=!0;be.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};be.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&Q.process.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(be.prototype,"then",{get:Cd});be.prototype._addPlugin=function(e,t,n){if(e=y$(e),t=t||{},this.booted)throw new c$;const r=this._current[0],a=new ti(this,e,t,n);if(a.once("start",(i,s,o)=>{const u=this.pluginTree.start(r.name,s,o);a.once("loaded",(m,p,g)=>{this.pluginTree.stop(u,g)})}),r.loaded)throw new Error(a.name,r.name);return r.enqueue(a,i=>{i&&(this._error=i)}),a};be.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,r,a){xd.call(this,e,a)}return this};be.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};be.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new yn("close",typeof e)}else t=new Promise(function(n,r){e=function(a){if(a)return r(a);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),Q.process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};be.prototype.ready=function(e){if(e){if(typeof e!="function")throw new yn("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(a),this.start();const r=this._current[0].server;function a(i,s,o){i?n(i):t(r),Q.process.nextTick(o)}})};be.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};be.prototype.toJSON=function(){return this.pluginTree.toJSON()};function El(){}function Cd(){if(this.booted){Zt("thenify returning null because we are already booted");return}if(this[da]){this[da]=!1;return}return Zt("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[da]=!0,e(this._server)),t)}function xd(e,t){const n=this._server,r=this._error;let a;if(this._error=null,e.length===0)this._error=r,a=e(),a&&!a[sr]&&typeof a.then=="function"?a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i)):Q.process.nextTick(t);else if(e.length===1)a=e(r),a&&!a[sr]&&typeof a.then=="function"?a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i)):Q.process.nextTick(t);else if(this._timeout===0){const i=s=>{this._error=s,t(this._error)};e.length===2?e(r,i):e(r,n,i)}else g$.call(this,e,r,n,t)}function g$(e,t,n,r){const a=e.name;Zt("setting up ready timeout",a,this._timeout);let i=setTimeout(()=>{Zt("timed out",a),i=null;const o=new d$(a);o.fn=e,this._error=o,r(o)},this._timeout);e.length===2?e(t,s.bind(this)):e(t,n,s.bind(this));function s(o){i&&(clearTimeout(i),this._error=o,r(this._error))}}function h$(e,t){const n=this._server,r=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let a;r?a=e(n):a=e(this._error),a&&typeof a.then=="function"?(Zt("resolving close/onClose promise"),a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i))):Q.process.nextTick(t)}else e.length===2?e(r?n:this._error,t):r?e(n,t):e(this._error,n,t)}function T$(e,t){return n.bind(t);function n(r,a){let i;e.length===0?(i=e(),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e.length===1?(i=e(this),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e(this,a)}}function ma(e,t){return n.bind(t);function n(r,a){let i;e?e.length===0?(i=e(),i&&i.then?i.then(function(){Q.process.nextTick(a,r)},a):Q.process.nextTick(a,r)):e.length===1?(i=e(r),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e.length===2?e(r,a):e(r,this,a):Q.process.nextTick(a)}}Ai.exports=be;Ai.exports.express=function(e){return be(e,{expose:{use:"load"}})};var k$=Ai.exports;const N$=ri(k$);function b$(e,t=!0){const n=t?"https://grpc-web.streamlayer.io:443":"https://grpc-web.next.streamlayer.io:443",r=N$(Object.create(null),{autostart:!1});return r.use(jS),r.use(OS,{sdkKey:e,host:n}),r.use(_S),r.use(xS),r.use(fI),r.use(Ek),r.after(async(a,i,s)=>{if(a)throw a;await i.sdk.initializeApp(),s()}),r.onClose(()=>{console.log("close")}),r}window.instance=null;const jd=(e,t,n)=>{const[r,a]=x.useState(null);return x.useEffect(()=>{let i=!1;if(!e)throw new Error("sdk key should be provided");const s=b$(e,n);if(t)for(const o of t)s.use(o);return s.ready().then(o=>{i||(window.instance=o,a(o.sdk))}).catch(o=>console.log(o)),()=>{i=!0,s.close(function(o){if(o)throw o})}},[e]),r};var ni=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(ni||{});const Li=x.createContext({status:0}),M$=({sdkKey:e,plugins:t,children:n,production:r=!0})=>{const a=jd(e,t,r),i=x.useMemo(()=>a?{sdk:a,status:2}:{status:1},[a]);return T.jsx(hN,{children:T.jsx(Li.Provider,{value:i,children:n})})},S$=()=>{const{sdk:e}=x.useContext(Li);return e},I$=()=>{const{sdk:e,status:t}=x.useContext(Li);if(t===ni.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return t===ni.CONNECTED?T.jsx("div",{children:"wait"}):e===void 0?T.jsx("div",{children:"sdk not initialized"}):T.jsx(yN,{sdk:e})};exports.StreamLayerProvider=M$;exports.StreamLayerSDKReact=I$;exports.useStreamLayer=S$;exports.useStreamLayerApp=jd;
52
+ `+i.map(function(u,m){var p=m===i.length-1,g=u.nodes&&u.nodes.length,y=n+(p?" ":a("│"))+" ";return n+a(p?"└":"├")+a("─")+a(g?"┬":"─")+" "+e(u,y,r).slice(n.length+2)}).join("")};const Wv=Vv,Ml=Symbol("avvio.TimeTree.untrackNode"),la=Symbol("avvio.TimeTree.trackNode"),Sl=Symbol("avvio.TimeTree.getParent"),Il=Symbol("avvio.TimeTree.getNode"),vl=Symbol("avvio.TimeTree.addNode");let Hv=class{constructor(){this.root=null,this.tableId=new Map,this.tableLabel=new Map}[la](t){this.tableId.set(t.id,t),this.tableLabel.has(t.label)?this.tableLabel.get(t.label).push(t):this.tableLabel.set(t.label,[t])}[Ml](t){this.tableId.delete(t.id);const n=this.tableLabel.get(t.label);if(n.id){this.tableLabel.delete(t.label);return}n.pop(),n.length===0&&this.tableLabel.delete(t.label)}[Sl](t){if(t===null)return this.root;const n=this.tableLabel.get(t);return n.id?n:n[n.length-1]}[Il](t){return this.tableId.get(t)}[vl](t,n,r){if(t===null)return this.root={id:"root",label:n,start:r,nodes:[]},this[la](this.root),this.root.id;const i=this[Sl](t),s=`${n}-${Math.random()}`,o={id:s,parent:t,start:r,label:n,nodes:[]};return i.nodes.push(o),this[la](o),s}start(t,n,r=Date.now()){return this[vl](t,n,r)}stop(t,n=Date.now()){const r=this[Il](t);r&&(r.stop=n,r.diff=r.stop-r.start||0,this[Ml](r))}toJSON(){return Object.assign({},this.root)}prittyPrint(){const t=r=>(r.label=`${r.label} ${r.diff} ms`,r.nodes.length>0&&(r.nodes=r.nodes.map(a=>t(a))),r),n=t(this.toJSON());return Wv(n)}};var qv=Hv,Ri={exports:{}},ti={exports:{}},ua,$l;function Zv(){if($l)return ua;$l=1;var e=1e3,t=e*60,n=t*60,r=n*24,a=r*7,i=r*365.25;ua=function(p,g){g=g||{};var y=typeof p;if(y==="string"&&p.length>0)return s(p);if(y==="number"&&isFinite(p))return g.long?u(p):o(p);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(p))};function s(p){if(p=String(p),!(p.length>100)){var g=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(p);if(g){var y=parseFloat(g[1]),k=(g[2]||"ms").toLowerCase();switch(k){case"years":case"year":case"yrs":case"yr":case"y":return y*i;case"weeks":case"week":case"w":return y*a;case"days":case"day":case"d":return y*r;case"hours":case"hour":case"hrs":case"hr":case"h":return y*n;case"minutes":case"minute":case"mins":case"min":case"m":return y*t;case"seconds":case"second":case"secs":case"sec":case"s":return y*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return y;default:return}}}}function o(p){var g=Math.abs(p);return g>=r?Math.round(p/r)+"d":g>=n?Math.round(p/n)+"h":g>=t?Math.round(p/t)+"m":g>=e?Math.round(p/e)+"s":p+"ms"}function u(p){var g=Math.abs(p);return g>=r?m(p,g,r,"day"):g>=n?m(p,g,n,"hour"):g>=t?m(p,g,t,"minute"):g>=e?m(p,g,e,"second"):p+" ms"}function m(p,g,y,k){var M=g>=y*1.5;return Math.round(p/y)+" "+k+(M?"s":"")}return ua}function Kv(e){n.debug=n,n.default=n,n.coerce=u,n.disable=i,n.enable=a,n.enabled=s,n.humanize=Zv(),n.destroy=m,Object.keys(e).forEach(p=>{n[p]=e[p]}),n.names=[],n.skips=[],n.formatters={};function t(p){let g=0;for(let y=0;y<p.length;y++)g=(g<<5)-g+p.charCodeAt(y),g|=0;return n.colors[Math.abs(g)%n.colors.length]}n.selectColor=t;function n(p){let g,y=null,k,M;function S(..._){if(!S.enabled)return;const v=S,O=Number(new Date),L=O-(g||O);v.diff=L,v.prev=g,v.curr=O,g=O,_[0]=n.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let P=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(z,U)=>{if(z==="%%")return"%";P++;const V=n.formatters[U];if(typeof V=="function"){const H=_[P];z=V.call(v,H),_.splice(P,1),P--}return z}),n.formatArgs.call(v,_),(v.log||n.log).apply(v,_)}return S.namespace=p,S.useColors=n.useColors(),S.color=n.selectColor(p),S.extend=r,S.destroy=n.destroy,Object.defineProperty(S,"enabled",{enumerable:!0,configurable:!1,get:()=>y!==null?y:(k!==n.namespaces&&(k=n.namespaces,M=n.enabled(p)),M),set:_=>{y=_}}),typeof n.init=="function"&&n.init(S),S}function r(p,g){const y=n(this.namespace+(typeof g>"u"?":":g)+p);return y.log=this.log,y}function a(p){n.save(p),n.namespaces=p,n.names=[],n.skips=[];let g;const y=(typeof p=="string"?p:"").split(/[\s,]+/),k=y.length;for(g=0;g<k;g++)y[g]&&(p=y[g].replace(/\*/g,".*?"),p[0]==="-"?n.skips.push(new RegExp("^"+p.slice(1)+"$")):n.names.push(new RegExp("^"+p+"$")))}function i(){const p=[...n.names.map(o),...n.skips.map(o).map(g=>"-"+g)].join(",");return n.enable(""),p}function s(p){if(p[p.length-1]==="*")return!0;let g,y;for(g=0,y=n.skips.length;g<y;g++)if(n.skips[g].test(p))return!1;for(g=0,y=n.names.length;g<y;g++)if(n.names[g].test(p))return!0;return!1}function o(p){return p.toString().substring(2,p.toString().length-2).replace(/\.\*\?$/,"*")}function u(p){return p instanceof Error?p.stack||p.message:p}function m(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}var Jv=Kv;(function(e,t){t.formatArgs=r,t.save=a,t.load=i,t.useColors=n,t.storage=s(),t.destroy=(()=>{let u=!1;return()=>{u||(u=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(u){if(u[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+u[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;u.splice(1,0,m,"color: inherit");let p=0,g=0;u[0].replace(/%[a-zA-Z%]/g,y=>{y!=="%%"&&(p++,y==="%c"&&(g=p))}),u.splice(g,0,m)}t.log=console.debug||console.log||(()=>{});function a(u){try{u?t.storage.setItem("debug",u):t.storage.removeItem("debug")}catch{}}function i(){let u;try{u=t.storage.getItem("debug")}catch{}return!u&&typeof Q.process<"u"&&"env"in Q.process&&(u=Q.process.env.DEBUG),u}function s(){try{return localStorage}catch{}}e.exports=Jv(t);const{formatters:o}=e.exports;o.j=function(u){try{return JSON.stringify(u)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(ti,ti.exports);var _d=ti.exports;const Xv=ad,e$=fd.EventEmitter,t$=Ar.inherits,ke=_d("avvio"),{AVV_ERR_READY_TIMEOUT:n$}=wd,ca=Symbol.for("plugin-meta");function r$(e,t){return e[ca]&&e[ca].name?e[ca].name:typeof t<"u"&&typeof t!="function"&&t.name?t.name:e.name?e.name:e.toString().split(`
53
+ `).slice(0,2).map(n=>n.trim()).join(" -- ")}function a$(){const e={};return e.promise=new Promise((t,n)=>{e.resolve=t,e.reject=n}),e}function nn(e,t,n,r,a){this.started=!1,this.func=t,this.opts=n,this.onFinish=null,this.parent=e,this.timeout=a===void 0?e._timeout:a,this.name=r$(t,n),this.isAfter=r,this.q=Xv(e,i$,1),this.q.pause(),this._error=null,this.loaded=!1,this._promise=null}t$(nn,e$);nn.prototype.exec=function(e,t){const n=this.func;let r=!1;const a=this.name;if(this.parent._error&&!this.isAfter){ke("skipping loading of plugin as parent errored and it is not an after",a),Q.process.nextTick(t);return}if(this.isAfter)this.server=e;else try{this.server=this.parent.override(e,n,this.opts)}catch(u){return ke("override errored",a),t(u)}this.opts=typeof this.opts=="function"?this.opts(this.server):this.opts,ke("exec",a);let i;const s=u=>{if(r){ke("loading complete",a);return}this._error=u,ke(u?"exec errored":"exec completed",a),r=!0,i&&clearTimeout(i),t(u)};this.timeout>0&&(ke("setting up timeout",a,this.timeout),i=setTimeout(function(){ke("timed out",a),i=null;const u=new n$(a);u.fn=n,s(u)},this.timeout)),this.started=!0,this.emit("start",this.server?this.server.name:null,this.name,Date.now());const o=n(this.server,this.opts,s);o&&typeof o.then=="function"&&(ke("exec: resolving promise",a),o.then(()=>Q.process.nextTick(s),u=>Q.process.nextTick(s,u)))};nn.prototype.loadedSoFar=function(){if(this.loaded)return Promise.resolve();const e=()=>{this.server.after((n,r)=>{this._error=n,this.q.pause(),n?(ke("rejecting promise",this.name,n),this._promise.reject(n)):(ke("resolving promise",this.name),this._promise.resolve()),this._promise=null,Q.process.nextTick(r,n)}),this.q.resume()};let t;return this._promise?t=Promise.resolve():(this._promise=a$(),t=this._promise.promise,this.server?e():this.on("start",e)),t};nn.prototype.enqueue=function(e,t){ke("enqueue",this.name,e.name),this.emit("enqueue",this.server?this.server.name:null,this.name,Date.now()),this.q.push(e,t)};nn.prototype.finish=function(e,t){ke("finish",this.name,e);const n=()=>{this.loaded||(ke("loaded",this.name),this.emit("loaded",this.server?this.server.name:null,this.name,Date.now()),this.loaded=!0,t(e))};if(e){this._promise&&(this._promise.reject(e),this._promise=null),n();return}const r=()=>{if(ke("check",this.name,this.q.length(),this.q.running(),this._promise),this.q.length()===0&&this.q.running()===0)if(this._promise){const a=()=>{ke("wrap"),queueMicrotask(r)};this._promise.resolve(),this._promise.promise.then(a,a),this._promise=null}else n();else ke("delayed",this.name),this.q.drain=()=>{ke("drain",this.name),this.q.drain=s$,queueMicrotask(r)}};queueMicrotask(r),this.q.resume()};function i$(e,t){const n=this;Q.process.nextTick(Li.bind(n),e,t)}function Li(e,t){if(typeof e.func.then=="function"){e.func.then(r=>{typeof r.default=="function"&&(r=r.default),e.func=r,Li.call(this,e,t)},t);return}const n=this._current[0];this._current.unshift(e),e.exec(n&&n.server||this._server,r=>{e.finish(r,a=>{this._current.shift(),t(a)})})}function s$(){}Ri.exports=nn;Ri.exports.loadPlugin=Li;var o$=Ri.exports;const Al=ad,l$=fd.EventEmitter,u$=Ar.inherits,{AVV_ERR_EXPOSE_ALREADY_DEFINED:da,AVV_ERR_CALLBACK_NOT_FN:yn,AVV_ERR_PLUGIN_NOT_VALID:c$,AVV_ERR_ROOT_PLG_BOOTED:d$,AVV_ERR_READY_TIMEOUT:m$}=wd,f$=qv,ni=o$,Zt=_d("avvio"),sr=Symbol("kAvvio"),ma=Symbol("kThenifyDoNotWrap");function p$(e,t,n){const r=t.expose||{},a=r.use||"use",i=r.after||"after",s=r.ready||"ready",o=r.onClose||"onClose",u=r.close||"close";if(e[a])throw new da(a);if(e[i])throw new da(i);if(e[s])throw new da(s);e[a]=function(m,p){return n.use(m,p),this},Object.defineProperty(e,"then",{get:Cd.bind(n)}),e[sr]=!0,e[i]=function(m){return typeof m!="function"?n._loadRegistered():(n.after(fa(m,this)),this)},e[s]=function(m){if(m&&typeof m!="function")throw new yn(s,typeof m);return n.ready(m?fa(m,this):void 0)},e[o]=function(m){if(typeof m!="function")throw new yn(o,typeof m);return n.onClose(k$(m,this)),this},e[u]=function(m){if(m&&typeof m!="function")throw new yn(u,typeof m);return m?(n.close(fa(m,this)),this):n.close()}}function be(e,t,n){if(typeof e=="function"&&arguments.length===1&&(n=e,t={},e=null),typeof t=="function"&&(n=t,t={}),t=t||{},!(this instanceof be)){const r=new be(e,t,n);return e&&p$(e,t,r),r}t.autostart!==!1&&(t.autostart=!0),e=e||this,this._timeout=Number(t.timeout)||0,this._server=e,this._current=[],this._error=null,this._isOnCloseHandlerKey=Symbol("isOnCloseHandler"),this._lastUsed=null,this.setMaxListeners(0),n&&this.once("start",n),this.started=!1,this.booted=!1,this.pluginTree=new f$,this._readyQ=Al(this,xd,1),this._readyQ.pause(),this._readyQ.drain=()=>{this.emit("start"),this._readyQ.drain=El},this._closeQ=Al(this,T$,1),this._closeQ.pause(),this._closeQ.drain=()=>{this.emit("close"),this._closeQ.drain=El},this._doStart=null,this._root=new ni(this,y$.bind(this),t,!1,0),this._root.once("start",(r,a,i)=>{const s=this.pluginTree.start(null,a,i);this._root.once("loaded",(o,u,m)=>{this.pluginTree.stop(s,m)})}),ni.loadPlugin.call(this,this._root,r=>{Zt("root plugin ready");try{this.emit("preReady"),this._root=null}catch(a){r=r||this._error||a}if(r){if(this._error=r,this._readyQ.length()===0)throw r}else this.booted=!0;this._readyQ.resume()})}function y$(e,t,n){this._doStart=n,t.autostart&&this.start()}u$(be,l$);be.prototype.start=function(){return this.started=!0,Q.process.nextTick(this._doStart),this};be.prototype.override=function(e,t,n){return e};function g$(e){if(e&&typeof e=="object"&&typeof e.default=="function"&&(e=e.default),!(e&&(typeof e=="function"||typeof e.then=="function")))throw new c$(typeof e);return e}be.prototype[sr]=!0;be.prototype.use=function(e,t){return this._lastUsed=this._addPlugin(e,t,!1),this};be.prototype._loadRegistered=function(){const e=this._current[0];return!this.started&&!this.booted&&Q.process.nextTick(()=>this._root.q.resume()),e?e.loadedSoFar():Promise.resolve()};Object.defineProperty(be.prototype,"then",{get:Cd});be.prototype._addPlugin=function(e,t,n){if(e=g$(e),t=t||{},this.booted)throw new d$;const r=this._current[0],a=new ni(this,e,t,n);if(a.once("start",(i,s,o)=>{const u=this.pluginTree.start(r.name,s,o);a.once("loaded",(m,p,g)=>{this.pluginTree.stop(u,g)})}),r.loaded)throw new Error(a.name,r.name);return r.enqueue(a,i=>{i&&(this._error=i)}),a};be.prototype.after=function(e){if(!e)return this._loadRegistered();this._addPlugin(t.bind(this),{},!0);function t(n,r,a){xd.call(this,e,a)}return this};be.prototype.onClose=function(e){if(typeof e!="function")throw new Error("not a function");e[this._isOnCloseHandlerKey]=!0,this._closeQ.unshift(e,t.bind(this));function t(n){n&&(this._error=n)}return this};be.prototype.close=function(e){let t;if(e){if(typeof e!="function")throw new yn("close",typeof e)}else t=new Promise(function(n,r){e=function(a){if(a)return r(a);n()}});return this.ready(()=>{this._error=null,this._closeQ.push(e),Q.process.nextTick(this._closeQ.resume.bind(this._closeQ))}),t};be.prototype.ready=function(e){if(e){if(typeof e!="function")throw new yn("ready",typeof e);this._readyQ.push(e),queueMicrotask(this.start.bind(this));return}return new Promise((t,n)=>{this._readyQ.push(a),this.start();const r=this._current[0].server;function a(i,s,o){i?n(i):t(r),Q.process.nextTick(o)}})};be.prototype.prettyPrint=function(){return this.pluginTree.prittyPrint()};be.prototype.toJSON=function(){return this.pluginTree.toJSON()};function El(){}function Cd(){if(this.booted){Zt("thenify returning null because we are already booted");return}if(this[ma]){this[ma]=!1;return}return Zt("thenify"),(e,t)=>this._loadRegistered().then(()=>(this[ma]=!0,e(this._server)),t)}function xd(e,t){const n=this._server,r=this._error;let a;if(this._error=null,e.length===0)this._error=r,a=e(),a&&!a[sr]&&typeof a.then=="function"?a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i)):Q.process.nextTick(t);else if(e.length===1)a=e(r),a&&!a[sr]&&typeof a.then=="function"?a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i)):Q.process.nextTick(t);else if(this._timeout===0){const i=s=>{this._error=s,t(this._error)};e.length===2?e(r,i):e(r,n,i)}else h$.call(this,e,r,n,t)}function h$(e,t,n,r){const a=e.name;Zt("setting up ready timeout",a,this._timeout);let i=setTimeout(()=>{Zt("timed out",a),i=null;const o=new m$(a);o.fn=e,this._error=o,r(o)},this._timeout);e.length===2?e(t,s.bind(this)):e(t,n,s.bind(this));function s(o){i&&(clearTimeout(i),this._error=o,r(this._error))}}function T$(e,t){const n=this._server,r=e[this._isOnCloseHandlerKey];if(e.length===0||e.length===1){let a;r?a=e(n):a=e(this._error),a&&typeof a.then=="function"?(Zt("resolving close/onClose promise"),a.then(()=>Q.process.nextTick(t),i=>Q.process.nextTick(t,i))):Q.process.nextTick(t)}else e.length===2?e(r?n:this._error,t):r?e(n,t):e(this._error,n,t)}function k$(e,t){return n.bind(t);function n(r,a){let i;e.length===0?(i=e(),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e.length===1?(i=e(this),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e(this,a)}}function fa(e,t){return n.bind(t);function n(r,a){let i;e?e.length===0?(i=e(),i&&i.then?i.then(function(){Q.process.nextTick(a,r)},a):Q.process.nextTick(a,r)):e.length===1?(i=e(r),i&&i.then?i.then(function(){Q.process.nextTick(a)},a):Q.process.nextTick(a)):e.length===2?e(r,a):e(r,this,a):Q.process.nextTick(a)}}Ei.exports=be;Ei.exports.express=function(e){return be(e,{expose:{use:"load"}})};var N$=Ei.exports;const b$=ai(N$);function M$(e,t=!0){const n=t?"https://grpc-web.streamlayer.io:443":"https://grpc-web.next.streamlayer.io:443",r=b$(Object.create(null),{autostart:!1});return r.use(jS),r.use(OS,{sdkKey:e,host:n}),r.use(_S),r.use(xS),r.use(pI),r.use(Ek),r.after(async(a,i,s)=>{if(a)throw a;await i.sdk.initializeApp(),s()}),r.onClose(()=>{console.log("close")}),r}window.instance=null;const jd=(e,t,n)=>{const[r,a]=x.useState(null);return x.useEffect(()=>{let i=!1;if(!e)throw new Error("sdk key should be provided");const s=M$(e,n);if(t)for(const o of t)s.use(o);return s.ready().then(o=>{i||(window.instance=o,a(o.sdk))}).catch(o=>console.log(o)),()=>{i=!0,s.close(function(o){if(o)throw o})}},[e]),r};var ri=(e=>(e[e.UNSET=0]="UNSET",e[e.CONNECTED=1]="CONNECTED",e[e.READY=2]="READY",e))(ri||{});const Pi=x.createContext({status:0}),S$=({sdkKey:e,plugins:t,children:n,production:r=!0})=>{const a=jd(e,t,r),i=x.useMemo(()=>a?{sdk:a,status:2}:{status:1},[a]);return T.jsx(hN,{children:T.jsx(Pi.Provider,{value:i,children:n})})},I$=()=>{const{sdk:e}=x.useContext(Pi);return e},v$=()=>{const{sdk:e,status:t}=x.useContext(Pi);if(t===ri.UNSET)throw new Error("Wrap app in `StreamLayerProvider`");return t===ri.CONNECTED?T.jsx("div",{children:"wait"}):e===void 0?T.jsx("div",{children:"sdk not initialized"}):T.jsx(yN,{sdk:e})};exports.StreamLayerProvider=S$;exports.StreamLayerSDKReact=v$;exports.useStreamLayer=I$;exports.useStreamLayerApp=jd;
54
54
  //# sourceMappingURL=https://127.0.0.1:3030/index.js.map