PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/tiktechtok.org/wp-content/plugins/woocommerce-payments/dist/index.js |
/*! For license information please see index.js.LICENSE.txt */ (()=>{var e={4184:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var i=o.apply(null,n);i&&e.push(i)}}else if("object"===a)if(n.toString===Object.prototype.toString)for(var s in n)r.call(n,s)&&n[s]&&e.push(s);else e.push(n.toString())}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,i=Object.setPrototypeOf,s=Object.isFrozen,c=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,d=Object.freeze,u=Object.seal,m=Object.create,p="undefined"!=typeof Reflect&&Reflect,y=p.apply,h=p.construct;y||(y=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),u||(u=function(e){return e}),h||(h=function(e,t){return n(e,r(t))});var f,_=N(Array.prototype.forEach),g=N(Array.prototype.pop),v=N(Array.prototype.push),w=N(String.prototype.toLowerCase),b=N(String.prototype.toString),E=N(String.prototype.match),$=N(String.prototype.replace),S=N(String.prototype.indexOf),C=N(String.prototype.trim),k=N(RegExp.prototype.test),I=(f=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(f,t)});function N(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return y(e,t,r)}}function x(e,t,n){n=n||w,i&&i(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var a=n(o);a!==o&&(s(t)||(t[r]=a),o=a)}e[o]=!0}return e}function T(e){var t,n=m(null);for(t in e)!0===y(a,e,[t])&&(n[t]=e[t]);return n}function O(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return N(n.get);if("function"==typeof n.value)return N(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var L=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),A=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),R=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),P=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),j=d(["#text"]),F=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),z=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),V=u(/\{\{[\w\W]*|[\w\W]*\}\}/gm),H=u(/<%[\w\W]*|[\w\W]*%>/gm),Y=u(/\${[\w\W]*}/gm),W=u(/^data-[\-\w.\u00B7-\uFFFF]/),G=u(/^aria-[\-\w]+$/),q=u(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=u(/^(?:\w+script|data):/i),Q=u(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=u(/^html$/i),J=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J(),o=function(e){return t(e)};if(o.version="2.4.5",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var a=n.document,i=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,l=n.Node,u=n.Element,m=n.NodeFilter,p=n.NamedNodeMap,y=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,f=n.DOMParser,N=n.trustedTypes,X=u.prototype,ee=O(X,"cloneNode"),te=O(X,"nextSibling"),ne=O(X,"childNodes"),re=O(X,"parentNode");if("function"==typeof c){var oe=i.createElement("template");oe.content&&oe.content.ownerDocument&&(i=oe.content.ownerDocument)}var ae=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(N,a),ie=ae?ae.createHTML(""):"",se=i,ce=se.implementation,le=se.createNodeIterator,de=se.createDocumentFragment,ue=se.getElementsByTagName,me=a.importNode,pe={};try{pe=T(i).documentMode?i.documentMode:{}}catch(e){}var ye={};o.isSupported="function"==typeof re&&ce&&void 0!==ce.createHTMLDocument&&9!==pe;var he,fe,_e=V,ge=H,ve=Y,we=W,be=G,Ee=Z,$e=Q,Se=q,Ce=null,ke=x({},[].concat(r(L),r(A),r(M),r(R),r(j))),Ie=null,Ne=x({},[].concat(r(F),r(z),r(B),r(U))),xe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Oe=null,Le=!0,Ae=!0,Me=!1,De=!0,Re=!1,Pe=!1,je=!1,Fe=!1,ze=!1,Be=!1,Ue=!1,Ve=!0,He=!1,Ye=!0,We=!1,Ge={},qe=null,Ze=x({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,Ke=x({},["audio","video","img","source","image","track"]),Je=null,Xe=x({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",tt="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml",rt=nt,ot=!1,at=null,it=x({},[et,tt,nt],b),st=["application/xhtml+xml","text/html"],ct=null,lt=i.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ut=function(t){ct&&ct===t||(t&&"object"===e(t)||(t={}),t=T(t),he=he=-1===st.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,fe="application/xhtml+xml"===he?b:w,Ce="ALLOWED_TAGS"in t?x({},t.ALLOWED_TAGS,fe):ke,Ie="ALLOWED_ATTR"in t?x({},t.ALLOWED_ATTR,fe):Ne,at="ALLOWED_NAMESPACES"in t?x({},t.ALLOWED_NAMESPACES,b):it,Je="ADD_URI_SAFE_ATTR"in t?x(T(Xe),t.ADD_URI_SAFE_ATTR,fe):Xe,Qe="ADD_DATA_URI_TAGS"in t?x(T(Ke),t.ADD_DATA_URI_TAGS,fe):Ke,qe="FORBID_CONTENTS"in t?x({},t.FORBID_CONTENTS,fe):Ze,Te="FORBID_TAGS"in t?x({},t.FORBID_TAGS,fe):{},Oe="FORBID_ATTR"in t?x({},t.FORBID_ATTR,fe):{},Ge="USE_PROFILES"in t&&t.USE_PROFILES,Le=!1!==t.ALLOW_ARIA_ATTR,Ae=!1!==t.ALLOW_DATA_ATTR,Me=t.ALLOW_UNKNOWN_PROTOCOLS||!1,De=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Re=t.SAFE_FOR_TEMPLATES||!1,Pe=t.WHOLE_DOCUMENT||!1,ze=t.RETURN_DOM||!1,Be=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,Fe=t.FORCE_BODY||!1,Ve=!1!==t.SANITIZE_DOM,He=t.SANITIZE_NAMED_PROPS||!1,Ye=!1!==t.KEEP_CONTENT,We=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,rt=t.NAMESPACE||nt,xe=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(xe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(xe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(xe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Re&&(Ae=!1),Be&&(ze=!0),Ge&&(Ce=x({},r(j)),Ie=[],!0===Ge.html&&(x(Ce,L),x(Ie,F)),!0===Ge.svg&&(x(Ce,A),x(Ie,z),x(Ie,U)),!0===Ge.svgFilters&&(x(Ce,M),x(Ie,z),x(Ie,U)),!0===Ge.mathMl&&(x(Ce,R),x(Ie,B),x(Ie,U))),t.ADD_TAGS&&(Ce===ke&&(Ce=T(Ce)),x(Ce,t.ADD_TAGS,fe)),t.ADD_ATTR&&(Ie===Ne&&(Ie=T(Ie)),x(Ie,t.ADD_ATTR,fe)),t.ADD_URI_SAFE_ATTR&&x(Je,t.ADD_URI_SAFE_ATTR,fe),t.FORBID_CONTENTS&&(qe===Ze&&(qe=T(qe)),x(qe,t.FORBID_CONTENTS,fe)),Ye&&(Ce["#text"]=!0),Pe&&x(Ce,["html","head","body"]),Ce.table&&(x(Ce,["tbody"]),delete Te.tbody),d&&d(t),ct=t)},mt=x({},["mi","mo","mn","ms","mtext"]),pt=x({},["foreignobject","desc","title","annotation-xml"]),yt=x({},["title","style","font","a","script"]),ht=x({},A);x(ht,M),x(ht,D);var ft=x({},R);x(ft,P);var _t=function(e){v(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},gt=function(e,t){try{v(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Ie[e])if(ze||Be)try{_t(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},vt=function(e){var t,n;if(Fe)e="<remove></remove>"+e;else{var r=E(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&rt===nt&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ae?ae.createHTML(e):e;if(rt===nt)try{t=(new f).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=ce.createDocument(rt,"template",null);try{t.documentElement.innerHTML=ot?ie:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),rt===nt?ue.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},wt=function(e){return le.call(e.ownerDocument||e,e,m.SHOW_ELEMENT|m.SHOW_COMMENT|m.SHOW_TEXT,null,!1)},bt=function(t){return"object"===e(l)?t instanceof l:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},Et=function(e,t,n){ye[e]&&_(ye[e],(function(e){e.call(o,t,n,ct)}))},$t=function(e){var t,n;if(Et("beforeSanitizeElements",e,null),(n=e)instanceof h&&("string"!=typeof n.nodeName||"string"!=typeof n.textContent||"function"!=typeof n.removeChild||!(n.attributes instanceof y)||"function"!=typeof n.removeAttribute||"function"!=typeof n.setAttribute||"string"!=typeof n.namespaceURI||"function"!=typeof n.insertBefore||"function"!=typeof n.hasChildNodes))return _t(e),!0;if(k(/[\u0080-\uFFFF]/,e.nodeName))return _t(e),!0;var r=fe(e.nodeName);if(Et("uponSanitizeElement",e,{tagName:r,allowedTags:Ce}),e.hasChildNodes()&&!bt(e.firstElementChild)&&(!bt(e.content)||!bt(e.content.firstElementChild))&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return _t(e),!0;if("select"===r&&k(/<template/i,e.innerHTML))return _t(e),!0;if(!Ce[r]||Te[r]){if(!Te[r]&&Ct(r)){if(xe.tagNameCheck instanceof RegExp&&k(xe.tagNameCheck,r))return!1;if(xe.tagNameCheck instanceof Function&&xe.tagNameCheck(r))return!1}if(Ye&&!qe[r]){var a=re(e)||e.parentNode,i=ne(e)||e.childNodes;if(i&&a)for(var s=i.length-1;s>=0;--s)a.insertBefore(ee(i[s],!0),te(e))}return _t(e),!0}return e instanceof u&&!function(e){var t=re(e);t&&t.tagName||(t={namespaceURI:rt,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return!!at[e.namespaceURI]&&(e.namespaceURI===tt?t.namespaceURI===nt?"svg"===n:t.namespaceURI===et?"svg"===n&&("annotation-xml"===r||mt[r]):Boolean(ht[n]):e.namespaceURI===et?t.namespaceURI===nt?"math"===n:t.namespaceURI===tt?"math"===n&&pt[r]:Boolean(ft[n]):e.namespaceURI===nt?!(t.namespaceURI===tt&&!pt[r])&&!(t.namespaceURI===et&&!mt[r])&&!ft[n]&&(yt[n]||!ht[n]):!("application/xhtml+xml"!==he||!at[e.namespaceURI]))}(e)?(_t(e),!0):"noscript"!==r&&"noembed"!==r||!k(/<\/no(script|embed)/i,e.innerHTML)?(Re&&3===e.nodeType&&(t=e.textContent,t=$(t,_e," "),t=$(t,ge," "),t=$(t,ve," "),e.textContent!==t&&(v(o.removed,{element:e.cloneNode()}),e.textContent=t)),Et("afterSanitizeElements",e,null),!1):(_t(e),!0)},St=function(e,t,n){if(Ve&&("id"===t||"name"===t)&&(n in i||n in lt))return!1;if(Ae&&!Oe[t]&&k(we,t));else if(Le&&k(be,t));else if(!Ie[t]||Oe[t]){if(!(Ct(e)&&(xe.tagNameCheck instanceof RegExp&&k(xe.tagNameCheck,e)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(e))&&(xe.attributeNameCheck instanceof RegExp&&k(xe.attributeNameCheck,t)||xe.attributeNameCheck instanceof Function&&xe.attributeNameCheck(t))||"is"===t&&xe.allowCustomizedBuiltInElements&&(xe.tagNameCheck instanceof RegExp&&k(xe.tagNameCheck,n)||xe.tagNameCheck instanceof Function&&xe.tagNameCheck(n))))return!1}else if(Je[t]);else if(k(Se,$(n,$e,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==S(n,"data:")||!Qe[e])if(Me&&!k(Ee,$(n,$e,"")));else if(n)return!1;return!0},Ct=function(e){return e.indexOf("-")>0},kt=function(t){var n,r,a,i;Et("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie};for(i=s.length;i--;){var l=n=s[i],d=l.name,u=l.namespaceURI;if(r="value"===d?n.value:C(n.value),a=fe(d),c.attrName=a,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,Et("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(gt(d,t),c.keepAttr))if(De||!k(/\/>/i,r)){Re&&(r=$(r,_e," "),r=$(r,ge," "),r=$(r,ve," "));var m=fe(t.nodeName);if(St(m,a,r)){if(!He||"id"!==a&&"name"!==a||(gt(d,t),r="user-content-"+r),ae&&"object"===e(N)&&"function"==typeof N.getAttributeType)if(u);else switch(N.getAttributeType(m,a)){case"TrustedHTML":r=ae.createHTML(r);break;case"TrustedScriptURL":r=ae.createScriptURL(r)}try{u?t.setAttributeNS(u,d,r):t.setAttribute(d,r),g(o.removed)}catch(e){}}}else gt(d,t)}Et("afterSanitizeAttributes",t,null)}},It=function e(t){var n,r=wt(t);for(Et("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Et("uponSanitizeShadowNode",n,null),$t(n)||(n.content instanceof s&&e(n.content),kt(n));Et("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,i,c,d,u,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ot=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!bt(t)){if("function"!=typeof t.toString)throw I("toString is not a function");if("string"!=typeof(t=t.toString()))throw I("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(bt(t))return n.toStaticHTML(t.outerHTML)}return t}if(je||ut(m),o.removed=[],"string"==typeof t&&(We=!1),We){if(t.nodeName){var p=fe(t.nodeName);if(!Ce[p]||Te[p])throw I("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)1===(i=(r=vt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ze&&!Re&&!Pe&&-1===t.indexOf("<"))return ae&&Ue?ae.createHTML(t):t;if(!(r=vt(t)))return ze?null:Ue?ie:""}r&&Fe&&_t(r.firstChild);for(var y=wt(We?t:r);c=y.nextNode();)3===c.nodeType&&c===d||$t(c)||(c.content instanceof s&&It(c.content),kt(c),d=c);if(d=null,We)return t;if(ze){if(Be)for(u=de.call(r.ownerDocument);r.firstChild;)u.appendChild(r.firstChild);else u=r;return(Ie.shadowroot||Ie.shadowrootmod)&&(u=me.call(a,u,!0)),u}var h=Pe?r.outerHTML:r.innerHTML;return Pe&&Ce["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&k(K,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),Re&&(h=$(h,_e," "),h=$(h,ge," "),h=$(h,ve," ")),ae&&Ue?ae.createHTML(h):h},o.setConfig=function(e){ut(e),je=!0},o.clearConfig=function(){ct=null,je=!1},o.isValidAttribute=function(e,t,n){ct||ut({});var r=fe(e),o=fe(t);return St(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(ye[e]=ye[e]||[],v(ye[e],t))},o.removeHook=function(e){if(ye[e])return g(ye[e])},o.removeHooks=function(e){ye[e]&&(ye[e]=[])},o.removeAllHooks=function(){ye={}},o}()}()},8607:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-add-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},3836:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-checkmark-circle",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658A9.98 9.98 0 0012 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10a9.94 9.94 0 00-.966-4.266L11 17.768z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},457:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-checkmark",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8222:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-chevron-left",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},1784:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-cloud-download",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18 9c-.009 0-.017.002-.025.003A6.496 6.496 0 005 9.5a6.5 6.5 0 00.186 1.519C5.123 11.016 5.064 11 5 11a4 4 0 00-4 4c0 1.202.541 2.267 1.38 3h18.593C22.196 17.089 23 15.643 23 14a5 5 0 00-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},4006:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-cross-small",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8771:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-cross",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M18.36 19.78L12 13.41l-6.36 6.37-1.42-1.42L10.59 12 4.22 5.64l1.42-1.42L12 10.59l6.36-6.36 1.41 1.41L13.41 12l6.36 6.36z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7199:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-domains",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm6.918 6h-3.215a49.088 49.088 0 00-.565-3.357A8.048 8.048 0 0118.918 8zm-5.904-3.928c.068.352.387 2.038.645 3.928h-3.318c.258-1.89.577-3.576.645-3.928C11.319 4.029 11.656 4 12 4s.681.029 1.014.072zM14 12c0 .598-.043 1.286-.109 2h-3.782c-.066-.714-.109-1.402-.109-2s.043-1.286.109-2h3.782c.066.714.109 1.402.109 2zM8.862 4.643A49.088 49.088 0 008.297 8H5.082a8.048 8.048 0 013.78-3.357zM4.263 10h3.821C8.033 10.668 8 11.344 8 12s.033 1.332.085 2H4.263C4.097 13.359 4 12.692 4 12s.098-1.359.263-2zm.819 6h3.215c.188 1.424.42 2.65.565 3.357A8.048 8.048 0 015.082 16zm5.904 3.928A77.282 77.282 0 0110.341 16h3.318a78.303 78.303 0 01-.645 3.928c-.333.043-.67.072-1.014.072s-.681-.029-1.014-.072zm4.152-.571c.145-.707.377-1.933.565-3.357h3.215a8.048 8.048 0 01-3.78 3.357zM19.737 14h-3.821c.051-.668.084-1.344.084-2s-.033-1.332-.085-2h3.821c.166.641.264 1.308.264 2s-.097 1.359-.263 2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},2247:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-globe",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.931C7.06 19.436 4 16.072 4 12l1 1h2v-2h2l3-3V6h-2L9 5v-.411a7.945 7.945 0 016 0V6l-1 1v2l1 1 3.13-3.13A7.983 7.983 0 0119.736 10H18l-2 2v2l1 1h2l.286.286C18.029 18.061 15.239 20 12 20z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7719:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-help-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4 8a4 4 0 00-8 0h2c0-1.103.897-2 2-2s2 .897 2 2-.897 2-2 2a1 1 0 00-1 1v2h2v-1.141A3.991 3.991 0 0016 10zm-3 6h-2v2h2v-2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},1250:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-help",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 16h-2v-2h2v2zm0-4.141V15h-2v-2a1 1 0 011-1c1.103 0 2-.897 2-2s-.897-2-2-2-2 .897-2 2H8a4 4 0 018 0 3.991 3.991 0 01-3 3.859z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},4514:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-image",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M20 6v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2h12a2 2 0 012 2zm-2 0H6v6.38l2.19-2.19 5.23 5.23 1-1a1.59 1.59 0 012.11.11L18 16V6zm-5 3.5a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7132:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-info-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},6680:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-minus",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M3 11h18v2H3z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},5683:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-notice-outline",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 4c4.411 0 8 3.589 8 8s-3.589 8-8 8-8-3.589-8-8 3.589-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},7489:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-notice",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},1683:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-plus",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M21 13h-8v8h-2v-8H3v-2h8V3h2v8h8v2z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8163:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-scheduled",s,!!function(e){return 0==e%18}(n)&&"needs-offset",!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M10.498 18.001l-3.705-3.705 1.415-1.415 2.294 2.294 5.293-5.293 1.415 1.415-6.712 6.704zM21 6v13a2 2 0 01-2 2H5a2 2 0 01-2-2V6a2 2 0 012-2h1V2h2v2h8V2h2v2h1a2 2 0 012 2zm-2 2H5v11h14V8z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},8249:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-sync",s,!1,!1,!1].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4a8 8 0 018 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12a8 8 0 008 8v-2c-3.308 0-6-2.692-6-6z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},4109:(e,t,n)=>{"use strict";t.Z=function(e){var t=e.size,n=void 0===t?24:t,r=e.onClick,s=(e.icon,e.className),c=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,a),l=["gridicon","gridicons-trash",s,!1,!1,!!function(e){return 0==e%18}(n)&&"needs-offset-y"].filter(Boolean).join(" ");return o.default.createElement("svg",i({className:l,height:n,width:n,onClick:r},c,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),o.default.createElement("g",null,o.default.createElement("path",{d:"M6.187 8h11.625l-.695 11.125A2 2 0 0115.121 21H8.879a2 2 0 01-1.996-1.875L6.187 8zM19 5v2H5V5h3V4a2 2 0 012-2h4a2 2 0 012 2v1h3zm-9 0h4V4h-4v1z"})))};var r,o=(r=n(9196))&&r.__esModule?r:{default:r},a=["size","onClick","icon","className"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)}},6928:e=>{e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findAll=function(e){var t=e.autoEscape,a=e.caseSensitive,i=void 0!==a&&a,s=e.findChunks,c=void 0===s?r:s,l=e.sanitize,d=e.searchWords,u=e.textToHighlight;return o({chunksToHighlight:n({chunks:c({autoEscape:t,caseSensitive:i,sanitize:l,searchWords:d,textToHighlight:u})}),totalLength:u?u.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?a:r,i=e.searchWords,s=e.textToHighlight;return s=o(s),i.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var a=new RegExp(r,n?"g":"gi"),i=void 0;i=a.exec(s);){var c=i.index,l=a.lastIndex;l>c&&e.push({highlight:!1,start:c,end:l}),i.index===a.lastIndex&&a.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var a=0;t.forEach((function(e){o(a,e.start,!1),o(e.start,e.end,!0),a=e.end})),o(a,n,!1)}return r};function a(e){return e}}])},8679:(e,t,n)=>{"use strict";var r=n(1296),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?i:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var l=Object.defineProperty,d=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(y){var o=p(n);o&&o!==y&&e(t,o,r)}var i=d(n);u&&(i=i.concat(u(n)));for(var s=c(t),h=c(n),f=0;f<i.length;++f){var _=i[f];if(!(a[_]||r&&r[_]||h&&h[_]||s&&s[_])){var g=m(n,_);try{l(t,_,g)}catch(e){}}}}return t}},6103:(e,t)=>{"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,d=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,m=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,y=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,f=n?Symbol.for("react.lazy"):60116,_=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case d:case u:case a:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case m:case f:case h:case c:return e;default:return t}}case o:return t}}}function E(e){return b(e)===u}t.AsyncMode=d,t.ConcurrentMode=u,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=m,t.Fragment=a,t.Lazy=f,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||b(e)===d},t.isConcurrentMode=E,t.isContextConsumer=function(e){return b(e)===l},t.isContextProvider=function(e){return b(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return b(e)===m},t.isFragment=function(e){return b(e)===a},t.isLazy=function(e){return b(e)===f},t.isMemo=function(e){return b(e)===h},t.isPortal=function(e){return b(e)===o},t.isProfiler=function(e){return b(e)===s},t.isStrictMode=function(e){return b(e)===i},t.isSuspense=function(e){return b(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===u||e===s||e===i||e===p||e===y||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===m||e.$$typeof===g||e.$$typeof===v||e.$$typeof===w||e.$$typeof===_)},t.typeOf=b},1296:(e,t,n)=>{"use strict";e.exports=n(6103)},5197:e=>{var t;t=function(e){"use strict";return function(){for(var t=[["Afghanistan (‫اÙغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Õ€Õ¡ÕµÕ¡Õ½Õ¿Õ¡Õ¶)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (AzÉ™rbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البØرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (БеларуÑÑŒ)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (БоÑна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (БългариÑ)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (ä¸å›½)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (ΚÏÏ€Ïος)","cy","357"],["Czech Republic (ÄŒeská republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (სáƒáƒ¥áƒáƒ თველáƒ)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ãsland)","is","354"],["India (à¤à¤¾à¤°à¤¤)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישר×ל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (КазахÑтан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (КыргызÑтан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["North Macedonia (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (ì¡°ì„ ë¯¼ì£¼ì£¼ì˜ ì¸ë¯¼ 공화êµ)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عÙمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫Ùلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (РоÑÑиÑ)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and PrÃncipe (São Tomé e PrÃncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민êµ)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (à·à·Šâ€à¶»à·“ ලංකà·à·€)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (å°ç£)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتØدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (OÊ»zbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصØراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Ã…land Islands","ax","358",1,["18"]]],n=0;n<t.length;n++){var r=t[n];t[n]={name:r[0],iso2:r[1],dialCode:r[2],priority:r[3]||0,areaCodes:r[4]||null}}function o(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)}}var a={getInstance:function(e){var t=e.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[t]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=a);var i=0,s={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],l=function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r++)t(n[r],e[n[r]])},d=function(e){l(window.intlTelInputGlobals.instances,(function(t){window.intlTelInputGlobals.instances[t][e]()}))},u=function(){function n(e,t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.id=i++,this.telInput=e,this.activeItem=null,this.highlightedItem=null;var o=t||{};this.options={},l(s,(function(e,t){r.options[e]=o.hasOwnProperty(e)?o[e]:t})),this.hadInitialPlaceholder=Boolean(e.getAttribute("placeholder"))}var r,a;return r=n,a=[{key:"_init",value:function(){var e=this;if(this.options.nationalMode&&(this.options.autoHideDialCode=!1),this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1),this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.isMobile&&(document.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=document.body)),"undefined"!=typeof Promise){var t=new Promise((function(t,n){e.resolveAutoCountryPromise=t,e.rejectAutoCountryPromise=n})),n=new Promise((function(t,n){e.resolveUtilsScriptPromise=t,e.rejectUtilsScriptPromise=n}));this.promise=Promise.all([t,n])}else this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){};this.selectedCountryData={},this._processCountryData(),this._generateMarkup(),this._setInitialState(),this._initListeners(),this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries(),this._processCountryCodes(),this._processPreferredCountries(),this.options.localizedCountries&&this._translateCountriesByLocale(),(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(t,n,r){n.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var o=0;o<this.countryCodes[n].length;o++)if(this.countryCodes[n][o]===t)return;var a=r!==e?r:this.countryCodes[n].length;this.countryCodes[n][a]=t}},{key:"_processAllCountries",value:function(){if(this.options.onlyCountries.length){var e=this.options.onlyCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(t){return e.indexOf(t.iso2)>-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(e){return-1===n.indexOf(e.iso2)}))}else this.countries=t}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;e<this.countries.length;e++){var t=this.countries[e].iso2.toLowerCase();this.options.localizedCountries.hasOwnProperty(t)&&(this.countries[e].name=this.options.localizedCountries[t])}}},{key:"_countryNameSort",value:function(e,t){return e.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e<this.countries.length;e++){var t=this.countries[e];this.dialCodes[t.dialCode]||(this.dialCodes[t.dialCode]=!0),this._addCountryCode(t.iso2,t.dialCode,t.priority)}for(var n=0;n<this.countries.length;n++){var r=this.countries[n];if(r.areaCodes)for(var o=this.countryCodes[r.dialCode][0],a=0;a<r.areaCodes.length;a++){for(var i=r.areaCodes[a],s=1;s<i.length;s++){var c=r.dialCode+i.substr(0,s);this._addCountryCode(o,c),this._addCountryCode(r.iso2,c)}this._addCountryCode(r.iso2,r.dialCode+i)}}}},{key:"_processPreferredCountries",value:function(){this.preferredCountries=[];for(var e=0;e<this.options.preferredCountries.length;e++){var t=this.options.preferredCountries[e].toLowerCase(),n=this._getCountryData(t,!1,!0);n&&this.preferredCountries.push(n)}}},{key:"_createEl",value:function(e,t,n){var r=document.createElement(e);return t&&l(t,(function(e,t){return r.setAttribute(e,t)})),n&&n.appendChild(r),r}},{key:"_generateMarkup",value:function(){this.telInput.hasAttribute("autocomplete")||this.telInput.form&&this.telInput.form.hasAttribute("autocomplete")||this.telInput.setAttribute("autocomplete","off");var e="iti";this.options.allowDropdown&&(e+=" iti--allow-dropdown"),this.options.separateDialCode&&(e+=" iti--separate-dial-code"),this.options.customContainer&&(e+=" ",e+=this.options.customContainer);var t=this._createEl("div",{class:e});if(this.telInput.parentNode.insertBefore(t,this.telInput),this.flagsContainer=this._createEl("div",{class:"iti__flag-container"},t),t.appendChild(this.telInput),this.selectedFlag=this._createEl("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.flagsContainer),this.selectedFlagInner=this._createEl("div",{class:"iti__flag"},this.selectedFlag),this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{class:"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred",!0),this._createEl("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList)),this.options.hiddenInput){var n=this.options.hiddenInput,r=this.telInput.getAttribute("name");if(r){var o=r.lastIndexOf("[");-1!==o&&(n="".concat(r.substr(0,o),"[").concat(n,"]"))}this.hiddenInput=this._createEl("input",{type:"hidden",name:n}),t.appendChild(this.hiddenInput)}}},{key:"_appendListItems",value:function(e,t,n){for(var r="",o=0;o<e.length;o++){var a=e[o],i=n?"-preferred":"";r+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(a.iso2).concat(i,"' role='option' data-dial-code='").concat(a.dialCode,"' data-country-code='").concat(a.iso2,"' aria-selected='false'>"),r+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(a.iso2,"'></div></div>"),r+="<span class='iti__country-name'>".concat(a.name,"</span>"),r+="<span class='iti__dial-code'>+".concat(a.dialCode,"</span>"),r+="</li>"}this.countryList.insertAdjacentHTML("beforeend",r)}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,n=!e||"+"!==e.charAt(0)||t&&"+"===t.charAt(0)?t:e,r=this._getDialCode(n),o=this._isRegionlessNanp(n),a=this.options,i=a.initialCountry,s=a.nationalMode,c=a.autoHideDialCode,l=a.separateDialCode;r&&!o?this._updateFlagFromNumber(n):"auto"!==i&&(i?this._setFlag(i.toLowerCase()):r&&o?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||s||c||l||(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoHideDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(t){e.countryList.classList.contains("iti__hide")?e.telInput.focus():t.preventDefault()};var t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!e.countryList.classList.contains("iti__hide")||e.telInput.disabled||e.telInput.readOnly||e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(t){e.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(t.key)&&(t.preventDefault(),t.stopPropagation(),e._showDropdown()),"Tab"===t.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout((function(){return d("handleAutoCountry")}))}),(function(){return d("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);e&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,n){n&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var t=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=t.top+n,o=this.countryList.offsetHeight,a=r+this.telInput.offsetHeight+o<n+window.innerHeight,i=r-o>n;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!a&&i),this.options.dropdownContainer){var s=!a&&i?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||e._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",r=null;this._handleKeydownOnDropdown=function(t){t.preventDefault(),"ArrowUp"===t.key||"Up"===t.key||"ArrowDown"===t.key||"Down"===t.key?e._handleUpDownKey(t.key):"Enter"===t.key?e._handleEnterKey():"Escape"===t.key?e._closeDropdown():/^[a-zA-ZÀ-ÿа-ÑÐ-Я ]$/.test(t.key)&&(r&&clearTimeout(r),n+=t.key.toLowerCase(),e._searchForCountry(n),r=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,e)){var n=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(this.countries[t].iso2));this._highlightListItem(n,!1),this._scrollTo(n,!0);break}}},{key:"_startsWith",value:function(e,t){return e.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(e){var t=e;if(this.options.formatOnDisplay&&window.intlTelInputUtils&&this.selectedCountryData){var n=!this.options.separateDialCode&&(this.options.nationalMode||"+"!==t.charAt(0)),r=intlTelInputUtils.numberFormat,o=r.NATIONAL,a=r.INTERNATIONAL,i=n?o:a;t=intlTelInputUtils.formatNumber(t,this.selectedCountryData.iso2,i)}t=this._beforeSetNumber(t),this.telInput.value=t}},{key:"_updateFlagFromNumber",value:function(e){var t=e,n=this.selectedCountryData.dialCode,r="1"===n;t&&this.options.nationalMode&&r&&"+"!==t.charAt(0)&&("1"!==t.charAt(0)&&(t="1".concat(t)),t="+".concat(t)),this.options.separateDialCode&&n&&"+"!==t.charAt(0)&&(t="+".concat(n).concat(t));var o=this._getDialCode(t,!0),a=this._getNumeric(t),i=null;if(o){var s=this.countryCodes[this._getNumeric(o)],c=-1!==s.indexOf(this.selectedCountryData.iso2)&&a.length<=o.length-1;if(!("1"===n&&this._isRegionlessNanp(a)||c))for(var l=0;l<s.length;l++)if(s[l]){i=s[l];break}}else"+"===t.charAt(0)&&a.length?i="":t&&"+"!==t||(i=this.defaultCountry);return null!==i&&this._setFlag(i)}},{key:"_isRegionlessNanp",value:function(e){var t=this._getNumeric(e);if("1"===t.charAt(0)){var n=t.substr(1,3);return-1!==c.indexOf(n)}return!1}},{key:"_highlightListItem",value:function(e,t){var n=this.highlightedItem;n&&n.classList.remove("iti__highlight"),this.highlightedItem=e,this.highlightedItem.classList.add("iti__highlight"),t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(e,n,r){for(var o=n?t:this.countries,a=0;a<o.length;a++)if(o[a].iso2===e)return o[a];if(r)return null;throw new Error("No country data for '".concat(e,"'"))}},{key:"_setFlag",value:function(e){var t=this.selectedCountryData.iso2?this.selectedCountryData:{};this.selectedCountryData=e?this._getCountryData(e,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(e));var n=e?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",n),this.options.separateDialCode){var r=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"";this.selectedDialCode.innerHTML=r;var o=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth();this.telInput.style.paddingLeft="".concat(o+6,"px")}if(this._updatePlaceholder(),this.options.allowDropdown){var a=this.activeItem;if(a&&(a.classList.remove("iti__active"),a.setAttribute("aria-selected","false")),e){var i=this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e,"-preferred"))||this.countryList.querySelector("#iti-".concat(this.id,"__item-").concat(e));i.setAttribute("aria-selected","true"),i.classList.add("iti__active"),this.activeItem=i,this.selectedFlag.setAttribute("aria-activedescendant",i.getAttribute("id"))}}return t.iso2!==e}},{key:"_getHiddenSelectedFlagWidth",value:function(){var e=this.telInput.parentNode.cloneNode();e.style.visibility="hidden",document.body.appendChild(e);var t=this.flagsContainer.cloneNode();e.appendChild(t);var n=this.selectedFlag.cloneNode(!0);t.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),r}},{key:"_updatePlaceholder",value:function(){var e="aggressive"===this.options.autoPlaceholder||!this.hadInitialPlaceholder&&"polite"===this.options.autoPlaceholder;if(window.intlTelInputUtils&&e){var t=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,t):"";n=this._beforeSetNumber(n),"function"==typeof this.options.customPlaceholder&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.setAttribute("placeholder",n)}}},{key:"_selectListItem",value:function(e){var t=this._setFlag(e.getAttribute("data-country-code"));this._closeDropdown(),this._updateDialCode(e.getAttribute("data-dial-code"),!0),this.telInput.focus();var n=this.telInput.value.length;this.telInput.setSelectionRange(n,n),t&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.dropdownArrow.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._handleKeydownOnDropdown),document.documentElement.removeEventListener("click",this._handleClickOffToClose),this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList),this.countryList.removeEventListener("click",this._handleClickCountryList),this.options.dropdownContainer&&(this.isMobile||window.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(e,t){var n=this.countryList,r=window.pageYOffset||document.documentElement.scrollTop,o=n.offsetHeight,a=n.getBoundingClientRect().top+r,i=a+o,s=e.offsetHeight,c=e.getBoundingClientRect().top+r,l=c+s,d=c-a+n.scrollTop,u=o/2-s/2;if(c<a)t&&(d-=u),n.scrollTop=d;else if(l>i){t&&(d+=u);var m=o-s;n.scrollTop=d-m}}},{key:"_updateDialCode",value:function(e,t){var n,r=this.telInput.value,o="+".concat(e);if("+"===r.charAt(0)){var a=this._getDialCode(r);n=a?r.replace(a,o):o}else{if(this.options.nationalMode||this.options.separateDialCode)return;if(r)n=o+r;else{if(!t&&this.options.autoHideDialCode)return;n=o}}this.telInput.value=n}},{key:"_getDialCode",value:function(e,t){var n="";if("+"===e.charAt(0))for(var r="",o=0;o<e.length;o++){var a=e.charAt(o);if(!isNaN(parseInt(a,10))){if(r+=a,t)this.countryCodes[r]&&(n=e.substr(0,o+1));else if(this.dialCodes[r]){n=e.substr(0,o+1);break}if(r.length===this.countryCodeMaxLen)break}}return n}},{key:"_getFullNumber",value:function(){var e=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,n=this._getNumeric(e);return(this.options.separateDialCode&&"+"!==e.charAt(0)&&t&&n?"+".concat(t):"")+e}},{key:"_beforeSetNumber",value:function(e){var t=e;if(this.options.separateDialCode){var n=this._getDialCode(t);if(n){var r=" "===t[(n="+".concat(this.selectedCountryData.dialCode)).length]||"-"===t[n.length]?n.length+1:n.length;t=t.substr(r)}}return this._cap(t)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.options.initialCountry&&(this.defaultCountry=window.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder()),this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var e=this.telInput.form;if(this.options.allowDropdown){this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown);var t=this._getClosestLabel();t&&t.removeEventListener("click",this._handleLabelClick)}this.hiddenInput&&e&&e.removeEventListener("submit",this._handleHiddenInputSubmit),this.options.autoHideDialCode&&(e&&e.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent)),this.telInput.removeEventListener("keyup",this._handleKeyupEvent),this.telInput.removeEventListener("cut",this._handleClipboardEvent),this.telInput.removeEventListener("paste",this._handleClipboardEvent),this.telInput.removeAttribute("data-intl-tel-input-id");var n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n),n.parentNode.removeChild(n),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(e){if(window.intlTelInputUtils){var t=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),t,e)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var e=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),e)}return-99}},{key:"isValidNumber",value:function(){var e=this._getFullNumber().trim(),t=this.options.nationalMode?this.selectedCountryData.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(e,t):null}},{key:"setCountry",value:function(e){var t=e.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(t))||(this._setFlag(t),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(e){var t=this._updateFlagFromNumber(e);this._updateValFromNumber(e),t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(e){this.options.placeholderNumberType=e,this._updatePlaceholder()}}],a&&o(r.prototype,a),n}();a.getCountryData=function(){return t};var m=function(e,t,n){var r=document.createElement("script");r.onload=function(){d("handleUtils"),t&&t()},r.onerror=function(){d("rejectUtilsScriptPromise"),n&&n()},r.className="iti-load-utils",r.async=!0,r.src=e,document.body.appendChild(r)};return a.loadUtils=function(e){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise((function(t,n){return m(e,t,n)}));m(e)}return null},a.defaults=s,a.version="17.0.15",function(e,t){var n=new u(e,t);return n._init(),e.setAttribute("data-intl-tel-input-id",n.id),window.intlTelInputGlobals.instances[n.id]=n,n}}()},e.exports?e.exports=t():window.intlTelInput=t()},1553:()=>{!function(){var e=this||self;function t(t,n){t=t.split(".");var r,o=e;t[0]in o||void 0===o.execScript||o.execScript("var "+t[0]);for(;t.length&&(r=t.shift());)t.length||void 0===n?o=o[r]&&o[r]!==Object.prototype[r]?o[r]:o[r]={}:o[r]=n}function n(e,t){function n(){}n.prototype=t.prototype,e.$=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.fa=function(e,n,r){for(var o=Array(arguments.length-2),a=2;a<arguments.length;a++)o[a-2]=arguments[a];return t.prototype[n].apply(e,o)}}function r(e,t){return e>t?1:e<t?-1:0}function o(e,t){switch(this.g=e,this.m=!!t.o,this.i=t.h,this.v=t.type,this.u=!1,this.i){case s:case c:case l:case d:case u:case i:case a:this.u=!0}this.l=t.defaultValue}var a=1,i=2,s=3,c=4,l=6,d=16,u=18;function m(e,t){for(this.i=e,this.g={},e=0;e<t.length;e++){var n=t[e];this.g[n.g]=n}}function p(){this.g={},this.l=this.j().g,this.i=this.m=null}function y(e,t){for(var n=function(e){return function(e,t){e.sort(function(e,t){return e.g-t.g}||r)}(e=function(e){var t,n=[],r=0;for(t in e)n[r++]=e[t];return n}(e.g)),e}(e.j()),o=0;o<n.length;o++){var a=n[o],i=a.g;if(null!=t.g[i]){e.i&&delete e.i[a.g];var s=11==a.i||10==a.i;if(a.m){a=g(t,i);for(var c=0;c<a.length;c++)b(e,i,s?a[c].clone():a[c])}else a=h(t,i),s?(s=h(e,i))?y(s,a):w(e,i,a.clone()):w(e,i,a)}}}function h(e,t){var n=e.g[t];if(null==n)return null;if(e.m){if(!(t in e.i)){var r=e.m,o=e.l[t];if(null!=n)if(o.m){for(var a=[],i=0;i<n.length;i++)a[i]=r.i(o,n[i]);n=a}else n=r.i(o,n);return e.i[t]=n}return e.i[t]}return n}function f(e,t,n){var r=h(e,t);return e.l[t].m?r[n||0]:r}function _(e,t){if(null!=e.g[t])e=f(e,t,void 0);else e:{if(void 0===(e=e.l[t]).l)if((t=e.v)===Boolean)e.l=!1;else if(t===Number)e.l=0;else{if(t!==String){e=new t;break e}e.l=e.u?"0":""}e=e.l}return e}function g(e,t){return h(e,t)||[]}function v(e,t){return e.l[t].m?null!=e.g[t]?e.g[t].length:0:null!=e.g[t]?1:0}function w(e,t,n){e.g[t]=n,e.i&&(e.i[t]=n)}function b(e,t,n){e.g[t]||(e.g[t]=[]),e.g[t].push(n),e.i&&delete e.i[t]}function E(e,t){var n,r=[];for(n in t)0!=n&&r.push(new o(n,t[n]));return new m(e,r)}function $(){}p.prototype.has=function(e){return null!=this.g[e.g]},p.prototype.get=function(e,t){return f(this,e.g,t)},p.prototype.set=function(e,t){w(this,e.g,t)},p.prototype.add=function(e,t){b(this,e.g,t)},p.prototype.clone=function(){var e=new this.constructor;return e!=this&&(e.g={},e.i&&(e.i={}),y(e,this)),e},$.prototype.g=function(e){throw new e.i,Error("Unimplemented")},$.prototype.i=function(e,t){if(11==e.i||10==e.i)return t instanceof p?t:this.g(e.v.prototype.j(),t);if(14==e.i)return"string"==typeof t&&S.test(t)&&0<(e=Number(t))?e:t;if(!e.u)return t;if((e=e.v)===String){if("number"==typeof t)return String(t)}else if(e===Number&&"string"==typeof t&&("Infinity"===t||"-Infinity"===t||"NaN"===t||S.test(t)))return Number(t);return t};var S=/^-?[0-9]+$/;function C(){}function k(){}function I(e,t){null!=e&&this.g.apply(this,arguments)}function N(){p.call(this)}n(C,$),C.prototype.g=function(e,t){return(e=new e.i).m=this,e.g=t,e.i={},e},n(k,C),k.prototype.i=function(e,t){return 8==e.i?!!t:$.prototype.i.apply(this,arguments)},k.prototype.g=function(e,t){return k.$.g.call(this,e,t)},I.prototype.i="",I.prototype.set=function(e){this.i=""+e},I.prototype.g=function(e,t,n){if(this.i+=String(e),null!=t)for(var r=1;r<arguments.length;r++)this.i+=arguments[r];return this},I.prototype.toString=function(){return this.i},n(N,p);var x=null;function T(){p.call(this)}n(T,p);var O=null;function L(){p.call(this)}n(L,p);var A=null;function M(){p.call(this)}N.prototype.j=function(){var e=x;return e||(x=e=E(N,{0:{name:"NumberFormat",s:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,h:9,type:String},2:{name:"format",required:!0,h:9,type:String},3:{name:"leading_digits_pattern",o:!0,h:9,type:String},4:{name:"national_prefix_formatting_rule",h:9,type:String},6:{name:"national_prefix_optional_when_formatting",h:8,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",h:9,type:String}})),e},N.j=N.prototype.j,T.prototype.j=function(){var e=O;return e||(O=e=E(T,{0:{name:"PhoneNumberDesc",s:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",h:9,type:String},9:{name:"possible_length",o:!0,h:5,type:Number},10:{name:"possible_length_local_only",o:!0,h:5,type:Number},6:{name:"example_number",h:9,type:String}})),e},T.j=T.prototype.j,L.prototype.j=function(){var e=A;return e||(A=e=E(L,{0:{name:"PhoneMetadata",s:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",h:11,type:T},2:{name:"fixed_line",h:11,type:T},3:{name:"mobile",h:11,type:T},4:{name:"toll_free",h:11,type:T},5:{name:"premium_rate",h:11,type:T},6:{name:"shared_cost",h:11,type:T},7:{name:"personal_number",h:11,type:T},8:{name:"voip",h:11,type:T},21:{name:"pager",h:11,type:T},25:{name:"uan",h:11,type:T},27:{name:"emergency",h:11,type:T},28:{name:"voicemail",h:11,type:T},29:{name:"short_code",h:11,type:T},30:{name:"standard_rate",h:11,type:T},31:{name:"carrier_specific",h:11,type:T},33:{name:"sms_services",h:11,type:T},24:{name:"no_international_dialling",h:11,type:T},9:{name:"id",required:!0,h:9,type:String},10:{name:"country_code",h:5,type:Number},11:{name:"international_prefix",h:9,type:String},17:{name:"preferred_international_prefix",h:9,type:String},12:{name:"national_prefix",h:9,type:String},13:{name:"preferred_extn_prefix",h:9,type:String},15:{name:"national_prefix_for_parsing",h:9,type:String},16:{name:"national_prefix_transform_rule",h:9,type:String},18:{name:"same_mobile_and_fixed_line_pattern",h:8,defaultValue:!1,type:Boolean},19:{name:"number_format",o:!0,h:11,type:N},20:{name:"intl_number_format",o:!0,h:11,type:N},22:{name:"main_country_for_code",h:8,defaultValue:!1,type:Boolean},23:{name:"leading_digits",h:9,type:String},26:{name:"leading_zero_possible",h:8,defaultValue:!1,type:Boolean}})),e},L.j=L.prototype.j,n(M,p);var D=null,R={ea:0,da:1,ca:5,ba:10,aa:20};M.prototype.j=function(){var e=D;return e||(D=e=E(M,{0:{name:"PhoneNumber",s:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,h:5,type:Number},2:{name:"national_number",required:!0,h:4,type:Number},3:{name:"extension",h:9,type:String},4:{name:"italian_leading_zero",h:8,type:Boolean},8:{name:"number_of_leading_zeros",h:5,defaultValue:1,type:Number},5:{name:"raw_input",h:9,type:String},6:{name:"country_code_source",h:14,defaultValue:0,type:R},7:{name:"preferred_domestic_carrier_code",h:9,type:String}})),e},M.ctor=M,M.ctor.j=M.prototype.j;var P={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".split(" "),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"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],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"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},j={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"1|([457]\\d{6})$","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"1|([2457]\\d{6})$","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-49]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93888[013-9]\\d{5}|9(?:29(?:54|66)|3(?:777|865))[2-8]\\d{5}|93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7,8}",,,,"8001234567"],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","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",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\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"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\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"]],[[,"(\\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})","$1 $2 $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]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"1|([267]\\d{6})$","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"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],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\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{6})","$1",["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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"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]],[,,"(?:(?: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}",,,,"212345678",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|(183[12])",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["130"]]],[[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}",,,,,,,[6,7,8,10,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"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]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}",,,,"123123456",,,,[7]],[,,"36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:2(?:[3568]\\d|4[0-57-9])|45\\d|69[5-7]|8(?:[2-5]\\d|83))\\d{4}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"1|([2-9]\\d{6})$","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|44|67)|7(?:36|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"[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]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\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(?:28|4[14]|5)|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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[04-7]|44|69|7[0579])|90(?:0[0-8]|1[36]|2[0-3568]|3[013-689]|[47][2-68]|5[1-68]|6[0-378]|9[34679]))\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[0458]|2[25]|3[15-8]|48|[56]0|7[078]|9\\d)\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[56]|9[016-9])|4(?:4[569]|5[4-6]|6[56]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[1267]|5[1-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"43[07-9]\\d{5}|(?:48|8[7-9]\\d|9(?:8\\d|9[69]))\\d{6}",,,,"48123456",,,[8,9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}",,,,"17001234"],[,,"(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"80\\d{6}",,,,"80123456"],[,,"(?:87|9[014578])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"22\\d{6}",,,,"22201234"],[,,"(?:29|31|6[1257-9]|7[125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"[25689]\\d{7}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68])\\d{5}",,,,"20211234"],[,,"(?:5[1-35-8]|6\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[25689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:2[7-9]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39])\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"1|([2-8]\\d{6})$","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-24679]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"300\\d{7}|[34]00\\d{5}|4(?:02|37)0\\d{4}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"4020\\d{4}|[34]00\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-4]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"1|([3-8]\\d{6})$","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\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"]]],[[,"(\\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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"(?:321|7(?:[1-7]\\d|8[01]))\\d{5}",,,,"71123456",,,[8]],[,,"(?:0800|800\\d)\\d{6}",,,,"0800012345",,,[10]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|20)|2[0-25-7]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[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],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"(?:2(?:04|[23]6|[48]9|50)|3(?:06|43|6[578])|4(?:03|1[68]|3[178]|50|74)|5(?:06|1[49]|48|79|8[17])|6(?:04|13|39|47|72)|7(?:0[59]|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678"],[,,"600[2-9]\\d{6}",,,,"6002012345"],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CC:[,[,,"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]],[,,"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}",,,,"891621234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[0257]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80(?:0\\d\\d|120)\\d{4}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02]\\d{9}",,,,,,,[10]],[,,"2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|[23][45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}",,,,"2123456789"],[,,"0704[0-7]\\d{5}|0(?:[15]\\d\\d|7(?:0[0-37-9]|[4-9][7-9]))\\d{6}",,,,"0123456789"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[034]\\d|1[0-35-9]|2[1-9]|5[0-2])|600))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[034]\\d|1[0-35-9]|2[1-9]|5[0-2])|600))|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\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-3]"],"($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"]]],[[,"(\\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-3]"],"($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"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"[26]\\d{8}|88\\d{6,7}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[5-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6,7}",,,,"88012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"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],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[0135-9])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"400\\d{7}|950\\d{7,8}|(?:10|2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"0|(1(?:[12]\\d|79)\\d\\d)",,"00",,[[,"(\\d{5,6})","$1",["96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\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","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","26|3(?:[0268]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|50|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9])|(?:34|85[23])[0-8]|(?:1|58)[1-9]|(?:63|95)[06-9]|(?:33|85[23]9)[0-46-9]|(?:10|2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","26|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:1|58|85[23]10)[1-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","(?:10|2[0-57-9])(?:100|9[56])"],"0$1","$CC $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","$CC $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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:(?:1\\d|[36])\\d{3}|9101)\\d{6}|[124-8]\\d{7}",,,,,,,[8,10,11],[7]],[,,"60[124-8][2-9]\\d{6}|[124-8][2-9]\\d{6}",,,,"12345678",,,[8,10],[7]],[,,"3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[2-6]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0([3579]|4(?:[14]4|56))?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],[,"(\\d{3})(\\d{7})","$1 $2",["[39]"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d)(\\d{7})","$1 $2",["[146][2-9]|[2578]"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)"],[,"(\\d{3})(\\d{7})","$1 $2",["[39]"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"5\\d{7}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\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",["5"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:[34][36]|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"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]],[,,"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}",,,,"891641234",,,[9],[8]],[,,"4(?:83[0-38]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9[4-79]\\d{6}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:1\\d|2[02-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[05]\\d|[23]1|[46][1-8])\\d{1,9}",,,,,,,[4,5,6,7,8,9,10,11,12,13,14,15],[2,3]],[,,"32\\d{9,11}|49[2-6]\\d{10}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"1|([2-7]\\d{6})$","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8001|8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[0135689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:23|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[24-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\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",["[189]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[01]\\d|6[1267]|7[0-57]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]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]"]]],[[,"(\\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]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-59]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[78]|2[69]|39|4[5-7]|5[1-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"9\\d{8}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-59]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[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]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"[2-9]\\d{5}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d|91)\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"(?:[1-35]\\d|4[1-9])\\d{7}",,,,"123456789"],[,,"(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7(?:00|[3-9]\\d))\\d{6}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:(?:0[2-7]\\d|6(?:0[0-4]|10|[256]\\d))\\d|7(?:[47]\\d\\d|658))\\d{4}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[47]\\d{6}|76\\d{6})","$1",,,[[,"(\\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",["11|[67]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0359])|(?:5[0-26-9]|[78][0-49])\\d\\d|6(?:[0-4]\\d\\d|50[0-24-69]))|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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-278])))|(?: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}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"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}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\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"]],,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"1|([2-9]\\d{6})$","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|(?:11|33)33|[25]222)[0-4]\\d{3}|5(?:00(?:0\\d|50)|11(?:00|1\\d|2[0-4])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"(?:[56]94|80\\d|976)\\d{6}",,,,,,,[9]],[,,"594(?:[023]\\d|1[01]|4[03-9]|5[6-9]|6[0-3]|80|9[0-4])\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-48])\\d{4}",,,,"694201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976\\d{6}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"0|([25-9]\\d{5})$","1481$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2(?:[0346-8]\\d|5[67])|5(?:[0457]\\d|6[01]|9[1-9]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"(?:[25]\\d\\d|606)\\d{5}",,,,,,,[8]],[,,"21(?:6[24-7]\\d|90[0-2])\\d{3}|2(?:00|2[25])\\d{5}",,,,"20012345"],[,,"(?:5[146-8]\\d|606)\\d{5}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d|70)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-389])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[0-356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[1-68]|1[0-2]|2[0-68]|3[1289]|4[0-24-9]|5[3-579]|6[0189]|7[08]|8[0-689]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55\\d)\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",,,,,,,[10,11,12]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789",,,[10]],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678",,,[10]],[,,"800\\d{7,9}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567",,,[10]],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567",,,[10]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123",,,[10]],,,[,,,,,,,,,[-1]]],GT:[,[,,"(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"[3-5]\\d{7}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[0236-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"1|([3-9]\\d{6})$","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"(?:862\\d|9008)\\d{3}|(?:[2-46]\\d|77)\\d{5}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}",,,,"2201234"],[,,"6\\d{6}",,,,"6091234"],[,,"(?:289|862)\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4}(?:\\d(?:\\d(?:\\d{4})?)?)?|(?:[235-79]\\d|46)\\d{6}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:4[0-8]|5[0-5]|9\\d))|58(?:0[1-8]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:46(?:[07][0-7]|1[0-6]|4[0-57-9]|5[0-8]|6[0-4])|573[0-6]|6(?:26[013-7]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|929[03-9])\\d{4}|(?:46[238]|5(?:[1-59][0-46-9]|6[0-4689]|7[0-2469])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\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"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0-39]|1[1-367]|[23]\\d|4[03-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[78]|2[3-59]|3[13-9]|4[0-68]|5[1-35])|5(?:0[7-9]|16|4[03-5]|5\\d|6[014-6]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[04]|4[0-378]|[78][0-8]|9[01])|7(?:6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"9(?:751\\d{5}|8\\d{6,7})|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",,,,"921234567",,,[8,9]],[,,"80[01]\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"[2-489]\\d{7}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"[34]\\d{7}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-489]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|680[29])\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|680[29])\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?: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],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\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"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[01]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"7(?:380|8(?:33|55|77|81))\\d{5}|7(?:18|2[23]|3[237]|47|6[58]|7\\d|82|9[235-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624(?:230|[5-8]\\d\\d)\\d{3}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"0|([25-8]\\d{5})$","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|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]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:(?:[0-3]\\d|4[0145])\\d|5[15]0|8(?:1\\d|88)|9(?:0[013]|[19]\\d|21|77|8[7-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IR",98,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-245]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[027-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[28]))\\d{4}",,,,"6111234"],[,,"80[08]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|55\\d{8}|8\\d{5}(?:\\d{2,4})?",,,,,,,[6,7,8,9,10,11,12]],[,,"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}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\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])|[38]"]],[,"(\\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"]]],[[,"(\\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])|[38]"]],[,"(\\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"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"0|([0-24-8]\\d{5})$","1534$1",,,,,[,,"76(?:464|652)\\d{5}|76(?:0[0-2]|2[356]|34|4[01347]|5[49]|6[0-369]|77|81|9[139])\\d{6}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?: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}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[0237-9]|[23]\\d|40|5[06]|6[2-589]|7[05]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:0[2-9]|[14-9]\\d|2[013-9]|3[3-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"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]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"0",,,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\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|63)|9(?:49|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]|636)|9(?:496|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]|636[457-9])|9(?:496|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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007","0077"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\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"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\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|63)|9(?:49|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]|636)|9(?:496|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]|636[457-9])|9(?:496|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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-6]|1[0-5]|2[014])|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[24-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|(?:[235-8]\\d|99)\\d{7}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|7(?:[07]\\d|55)|880|99[05-9])\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"1|([2-7]\\d{6})$","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"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],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[16]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"18\\d{5}|(?:[2569]\\d|41)\\d{6}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|222|333|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|22|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|3(?:00|33)|5(?:00|5\\d)))\\d{4}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[245]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|25|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"1|([2-9]\\d{6})$","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",,,,,,,[10,14],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9])|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-246-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,[10],[5,6,7]],[,,"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",,,,"7710009998",,,[10]],[,,"8(?:00|108\\d{3})\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,"751\\d{7}",,,,"7511234567",,,[10]],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}",,,,,,,[10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[239]\\d|5[24-9]|7[6-8])|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[27-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}",,,,"1123456"],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"1|([2-8]\\d{6})$","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:4(?:5[4-9]|[6-9]\\d)|5[0-4]\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"8002[28]\\d\\d|80(?:05\\d|9)\\d{4}",,,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"0|(1001)",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[0-4])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:2|33|5\\d|77|88)\\d{7}|[4-6]\\d{6}",,,,,,,[7,8,9]],[,,"(?:2\\d{3}|33333)\\d{4}",,,,"21234567",,,[8,9]],[,,"(?:(?:330|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\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",["[3578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\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]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"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]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\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])"],,"$CC $1"],[,"(\\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])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\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]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"2\\d{7}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5(?:29(?:[189][05]|2[29]|3[01])|38[89][05])\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|90)|3(?:[0-47]\\d|5[02-9]|6[02-8]|80|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[01]\\d|6[1267]|7[0-57]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29|38)[89]","5(?:29|38)[89]0"],"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"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"(?:[3489]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"(?:800|90\\d)\\d{5}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["87"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,"8[07]0\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-489]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"0|([24-9]\\d{6})$","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[56])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:2(?:[23]\\d|5[0-24578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:3555|4(?:60\\d|747)|94(?:[01]\\d|2[0-4]))\\d{3}|7(?:[0-25-8]\\d|3[2-4]|42|9[23])\\d{5}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5[02-9]\\d{6}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[239])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"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],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|8[89]|9[4-8])\\d|7(?:3|40|[5-9]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:[01][1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[57-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|920)\\d{5}|(?:5[05]|8[05689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[5-8]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[12]1"],"0$1"],[,"(\\d{4})(\\d{4})","$1 $2",["[57-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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"0800\\d{3}|(?:28|[68]\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345",,,[8]],[,,"6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",,,,"66123456",,,[8]],[,,"0800\\d{3}",,,,"0800501",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"1|([2-9]\\d{6})$","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"(?:69|80)\\d{7}|(?:59|97)6\\d{6}",,,,,,,[9]],[,,"596(?:[04-7]\\d|10|2[7-9]|3[04-9]|8[09]|9[4-9])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",,,,"696201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976(?:6\\d|7[0-367])\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"1|([34]\\d{6})$","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800[3467]\\d{4}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:5|8\\d\\d)\\d{7}|[2-468]\\d{6}",,,,,,,[7,8,10]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123",,,[7,8]],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|5(?:2[5-9]|4[3-589]|[57]\\d|8[0-689]|9[0-8])\\d{5}",,,,"52512345",,,[8]],[,,"802\\d{7}|80[0-2]\\d{4}",,,,"8001234",,,[7,10]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["5"]],[,"(\\d{5})(\\d{5})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[57][02468]|6[024-68]|8[024689]))\\d{4}",,,,"6701234",,,[7]],[,,"46[46]\\d{4}|(?:7\\d|9[13-9])\\d{5}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9[13-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4[05]0\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"(?:[19]\\d|[23]1|77|88)\\d{7}|1\\d{6}",,,,,,,[7,9]],[,,"(?:1[2-9]|21\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|88|9[89])\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"1(?:(?:44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[017]\\d|[235][1-9]|4[0-35-9]|6[0-46-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"6571\\d{6}|(?:2(?:0[01]|2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"6571\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:1888[69]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:(?:[269]|59)\\d|[37][1-9]|4[235-9])\\d|8(?:1[23]|[236]\\d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\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])|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[36-8]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"[2-57-9]\\d{5}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,,,,,,,,[-1]],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[2-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[04]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\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[04]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|8(?:01|19)[01])\\d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|[89]\\d{6,9}|1\\d{4,5}",,,,,,,[5,6,7,8,9,10]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"6[1-58]\\d{7}",,,,"612345678",,,[9]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\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-57-9]"],"0$1"]],[[,"(\\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-57-9]"],"0$1"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],NP:[,[,,"(?:1\\d|9)\\d{9}|[1-9]\\d{7}",,,,,,,[8,10,11],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[245]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,"1(?:66001|800\\d\\d)\\d{5}",,,,"16600101234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]],[,"(\\d{4})(\\d{2})(\\d{5})","$1-$2-$3",["1"]]],[[,"(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],[,"(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-579]|6[2-6])"],"0$1"],[,"(\\d{3})(\\d{7})","$1-$2",["9"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[47]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"888[4-9]\\d{3}",,,,"8884012",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2[0-27-9]\\d{7,8}|21\\d{6}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"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)|[59]|80"],"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|86"],"0$1"]],,[,,"[28]6\\d{6,7}",,,,"26123456",,,[8,9]],,,[,,,,,,,,,[-1]],[,,"8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",,,,,,,[7,8,9]],[,,"2[2-6]\\d{6}",,,,"23123456",,,[8]],[,,"1505\\d{4}|(?:7(?:[1289]\\d|70)|9(?:0[1-9]|[1-9]\\d))\\d{5}",,,,"92123456",,,[8]],[,,"8007\\d{4,5}|(?:500|800[05])\\d{4}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10,11]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[258]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[05]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[6-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6(?:[02-9]\\d|1[0-8])\\d|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4,5}|(?:00800|800\\d)\\d{6}",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"19(?:1[124]|77|90)00","0"," Anexo ",,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"4\\d{5}(?:\\d{2})?|8\\d{7,8}",,,,,,,[6,8,9]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",,,,"3123456",,,[7]],[,,"(?:7\\d|8[18])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-47]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",,,,"232345678",,,[6,8,9,10],[4,5,7]],[,,"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"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],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?: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]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[014]\\d|2[0-5]|3[0-7]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}(?:\\d{3})?",,,,"80012345",,,[8,11]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"6\\d{5}(?:\\d{2})?|8\\d{9}|[1-9]\\d{6}(?:\\d{2})?",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?: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])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"211(?:1\\d|3[1-5])\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\d{5})","$1",["19"]],[,"(\\d{3})(\\d{3})","$1 $2",["11|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"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"(?:[45]|80\\d\\d)\\d{5}",,,,,,,[6,9]],[,,"(?:4[1-3]|50)\\d{4}",,,,"430123",,,[6]],[,,"(?:4[02-4]|5[05])\\d{4}",,,,"551234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|[35][1-689]|4[1-59]|6[1-35689]|7[1-9]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6[0356]92(?:30|9\\d)\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70(?:7\\d|8[17])\\d{5}",,,,"707123456"],,,[,,"600\\d{6}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:46[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"[2-7]\\d{7}|800\\d{4}(?:\\d{2})?|2\\d{6}",,,,,,,[7,8,9]],[,,"4141\\d{4}|(?:23|4[04])\\d{6}",,,,"44123456",,,[8]],[,,"(?:28|[35-7]\\d)\\d{6}",,,,"33123456",,,[8]],[,,"800\\d{4}(?:\\d{2})?",,,,"8001234",,,[7,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[126]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]]],,[,,"2(?:[12]\\d|61)\\d{4}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"9769\\d{5}|(?:26|[68]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|30[0-5])\\d{4}",,,,"262161234"],[,,"(?:69(?:2\\d\\d|3(?:[06][0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-27]|8[0-8]|9[0-479]))|9769\\d)\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,"26[23]|69|[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[019])\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"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],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"8\\d{13}|[347-9]\\d{9}",,,,,,,[10,14],[7]],[,,"(?:3(?:0[12]|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,[10],[7]],[,,"9\\d{9}",,,,"9123456789",,,[10]],[,,"8(?:0[04]|108\\d{3})\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|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)"]],[[,"(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-6]2|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-6]2|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)"]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[2389]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"579[01]\\d{5}|5(?:[013-689]\\d|7[0-36-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"8000\\d{3}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[5-8]\\d{5}",,,,"2510123"],[,,"8000\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[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,12]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\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"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\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]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[1-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"895[0-2]\\d{4}|(?:8(?:0[1-4]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[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"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-4]|[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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:1\\d|55|[67]0)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-489])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\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{4})(\\d{3})","$1 $2",["909","9090"],"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"]],[[,"(\\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"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[237-9]\\d|66)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[0-5]|66|7[3-9]|8[08]|9[09])\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d|93)\\d{7}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}",,,,"301012345"],[,,"75(?:01|[38]3)\\d{5}|7(?:[06-8]\\d|21|5[4-7]|90)\\d{6}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"(?:(?:15|(?:3[59]|4[89]|79|8[08])\\d|6(?:0[5-7]|[1-9]\\d)|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:6\\d|7[1-9])\\d{6}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\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",["24|[67]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3478]|64|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[1257-9])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",,,,"21234567",,,[8]],[,,"66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"1|(5\\d{6})$","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9(?:22|[3-689]\\d)\\d{6}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\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]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"1|([2-479]\\d{6})$","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[023568]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[09]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",,,,,,,[8,9,10,13]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"(?:001800\\d|1800)\\d{6}",,,,"1800123456",,,[10,13]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"(?:00|[1-57-9]\\d)\\d{7}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"41[18]\\d{6}|(?:[034]0|1[01]|2[02]|5[05]|7[017]|8[08]|9\\d)\\d{7}",,,,"917123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810",,,,,,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"55[0-37-9]\\d{4}",,,,"5510123",,,[7]],"TO",676,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"(?:444|811\\d{3})\\d{4}",,,,,,,[7,10]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:0[13]|1[89]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"1|([2-46-8]\\d{6})$","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[26-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[1-9]|7[1-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\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{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\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{2})(\\d{3})(\\d{4})","$1 $2 $3",["4[45][0-5]|5(?:0|6[37])|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]","4[45][0-5]|5(?:0|6(?:3[14-7]|7))|6(?:[12][018]|[36-8])|7|89|9[1-9]|(?:48|57)[0137-9]"],"0$1"],[,"(\\d{4})(\\d{5})","$1 $2",["[3-6]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:(?:24|81)0|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[0147]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"726[01]\\d{5}|7(?:[0157-9]\\d|20|36|[46][0-4])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}",,,,,,,[10],[7]],[,,"5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?: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[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|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[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"5(?:05(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|44))|82(?:2(?:0[0-3]|[268]2)|3(?:0[02]|33)|4(?:00|4[24]|65|82)|5(?:00|29|83)|6(?:00|66|82)|777|8(?:00|88)|9(?:00|9[89])))\\d{4}|(?: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[12]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[39]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[19]|6[1-47]|7[0-5]|8[056])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[0179]|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[08]|3[0-289]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01579]|5[12469]|7[0-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"4\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",,,,,,,[7,8,10]],[,,"(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"(?:4\\d{5}|80[05])\\d{4}|405\\d{4}",,,,"8001234",,,[7,10]],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"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{4})","$1 $2 $3",["4"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"(?:33|55|[679]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:33|88|9[0-57-9])\\d{3}|55(?:50[013]|90\\d)|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"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,12]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VC",1,"011","1",,,"1|([2-7]\\d{6})$","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"1|([2-578]\\d{6})$","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[0-38]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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[12]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"1|([2-9]\\d{6})$","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[689]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:0[13]|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:[58]\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:0[1-9]|1[01])\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",,,,,,,[6,9]],[,,"72\\d{4}",,,,"721234",,,[6]],[,,"(?:72|8[23])\\d{4}",,,,"821234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234",,,[6]]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[0137]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7[24-68]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"80\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[67]|5[0-3]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"269|63",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"(?:63|80)0\\d{6}|(?:21|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[679]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"630\\d{6}",,,,"630012345"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"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],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[178]\\d|3[1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"(?:005|[1-9]\\d\\d)\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:005|[1-9]\\d\\d)\\d{5}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["\\d"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"7\\d{11}|[35-7]\\d{8}",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,"(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"[0-36-9]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|285\\d{9}|(?:[19]\\d|49)\\d{6}",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"342\\d{4}|(?:337|49)\\d{6}|3(?:2|47|7\\d{3})\\d{7}",,,,"3421234",,,[7,8,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"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})|(?:(?:285\\d\\d|3(?:45|[69]\\d{3}))\\d|9[89])\\d{6}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["16|342"]],[,"(\\d{2})(\\d{6})","$1 $2",["4"]],[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[19]"]],[,"(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["34[57]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],[,"(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-3]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"(?:210|370\\d\\d)\\d{7}|51\\d{7}(?:\\d{3})?",,,,,,,[9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210|(?:370[1-9]|51[013]0)\\d)\\d{7}|5100\\d{5}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["2"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[35]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]};function F(){this.g={}}F.i=void 0,F.g=function(){return F.i?F.i:F.i=new F};var z={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","1":"1","ï¼’":"2","3":"3","ï¼”":"4","5":"5","ï¼–":"6","ï¼—":"7","8":"8","ï¼™":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9"},B={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","ï¼":"0","1":"1","ï¼’":"2","3":"3","ï¼”":"4","5":"5","ï¼–":"6","ï¼—":"7","8":"8","ï¼™":"9","Ù ":"0","Ù¡":"1","Ù¢":"2","Ù£":"3","Ù¤":"4","Ù¥":"5","Ù¦":"6","Ù§":"7","Ù¨":"8","Ù©":"9","Û°":"0","Û±":"1","Û²":"2","Û³":"3","Û´":"4","Ûµ":"5","Û¶":"6","Û·":"7","Û¸":"8","Û¹":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},U=/^[+\uff0b]+/,V=/([0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9])/,H=/[+\uff0b0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9]/,Y=/[\\\/] *x/,W=/[^0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9A-Za-z#]+$/,G=/(?:.*?[A-Za-z]){3}.*/;function q(e){return"([0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]{1,"+e+"})"}function Z(){return";ext="+q("20")+"|[  \\t,]*(?:e?xt(?:ensi(?:oÌ?|ó))?n?|ï½…?xtn?|доб|anexo)[:\\..]?[  \\t,-]*"+q("20")+"#?|[  \\t,]*(?:[xx##~~]|int|int)[:\\..]?[  \\t,-]*"+q("9")+"#?|[- ]+"+q("6")+"#|[  \\t]*(?:,{2}|;)[:\\..]?[  \\t,-]*"+q("15")+"#?|[  \\t]*(?:,)+[:\\..]?[  \\t,-]*"+q("9")+"#?"}var Q=new RegExp("(?:"+Z()+")$","i"),K=new RegExp("^[0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]{2}$|^[++]*(?:[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~*]*[0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]){3,}[-xâ€-―−ーï¼-ï¼ Â Â​â  ()()[].\\[\\]/~â“∼~*A-Za-z0-9ï¼-ï¼™Ù -Ù©Û°-Û¹]*(?:"+Z()+")?$","i"),J=/(\$\d)/;function X(e){return!(2>e.length)&&be(K,e)}function ee(e){return be(G,e)?re(e,B):re(e,z)}function te(e){var t=ee(e.toString());e.i="",e.g(t)}function ne(e){return null!=e&&(1!=v(e,9)||-1!=g(e,9)[0])}function re(e,t){for(var n,r=new I,o=e.length,a=0;a<o;++a)null!=(n=t[(n=e.charAt(a)).toUpperCase()])&&r.g(n);return r.toString()}function oe(e){return null!=e&&isNaN(e)&&e.toUpperCase()in j}function ae(e,t,n){if(0==f(t,2)&&null!=t.g[5]){var r=_(t,5);if(0<r.length)return r}r=_(t,1);var o=se(t);if(0==n)return ce(r,0,o,"");if(!(r in P))return o;e=ie(e,r,ye(r)),t=null!=t.g[3]&&0!=f(t,3).length?3==n?";ext="+f(t,3):null!=e.g[13]?f(e,13)+_(t,3):" ext. "+_(t,3):"";e:{for(var a,i=(e=0==g(e,20).length||2==n?g(e,19):g(e,20)).length,s=0;s<i;++s){var c=v(a=e[s],3);if((0==c||0==o.search(f(a,3,c-1)))&&be(c=new RegExp(f(a,1)),o)){e=a;break e}}e=null}return null!=e&&(e=_(i=e,2),a=new RegExp(f(i,1)),_(i,5),i=_(i,4),o=2==n&&null!=i&&0<i.length?o.replace(a,e.replace(J,i)):o.replace(a,e),3==n&&(o=(o=o.replace(/^[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/,"")).replace(/[-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \u00a0\u00ad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\[\]/~\u2053\u223c\uff5e]+/g,"-"))),ce(r,n,o,t)}function ie(e,t,n){return ue(e,"001"==n?""+t:n)}function se(e){if(null==e.g[2])return"";var t=""+f(e,2);return null!=e.g[4]&&f(e,4)&&0<_(e,8)?Array(_(e,8)+1).join("0")+t:t}function ce(e,t,n,r){switch(t){case 0:return"+"+e+n+r;case 1:return"+"+e+" "+n+r;case 3:return"tel:+"+e+"-"+n+r;default:return n+r}}function le(e,t){switch(t){case 4:return f(e,5);case 3:return f(e,4);case 1:return f(e,3);case 0:case 2:return f(e,2);case 5:return f(e,6);case 6:return f(e,8);case 7:return f(e,7);case 8:return f(e,21);case 9:return f(e,25);case 10:return f(e,28);default:return f(e,1)}}function de(e,t){return me(e,f(t,1))?me(e,f(t,5))?4:me(e,f(t,4))?3:me(e,f(t,6))?5:me(e,f(t,8))?6:me(e,f(t,7))?7:me(e,f(t,21))?8:me(e,f(t,25))?9:me(e,f(t,28))?10:me(e,f(t,2))?f(t,18)||me(e,f(t,3))?2:0:!f(t,18)&&me(e,f(t,3))?1:-1:-1}function ue(e,t){if(null==t)return null;t=t.toUpperCase();var n=e.g[t];if(null==n){if(null==(n=j[t]))return null;n=(new k).g(L.j(),n),e.g[t]=n}return n}function me(e,t){var n=e.length;return!(0<v(t,9)&&-1==g(t,9).indexOf(n))&&be(_(t,2),e)}function pe(e,t){if(null==t)return null;var n=_(t,1);if(null==(n=P[n]))e=null;else if(1==n.length)e=n[0];else e:{t=se(t);for(var r,o=n.length,a=0;a<o;a++){var i=ue(e,r=n[a]);if(null!=i.g[23]){if(0==t.search(f(i,23))){e=r;break e}}else if(-1!=de(t,i)){e=r;break e}}e=null}return e}function ye(e){return null==(e=P[e])?"ZZ":e[0]}function he(e,t,n,r){var o=le(n,r),a=0==v(o,9)?g(f(n,1),9):g(o,9);if(o=g(o,10),2==r){if(!ne(le(n,0)))return he(e,t,n,1);ne(e=le(n,1))&&((a=a.concat(0==v(e,9)?g(f(n,1),9):g(e,9))).sort(),0==o.length?o=g(e,10):(o=o.concat(g(e,10))).sort())}return-1==a[0]?5:(t=t.length,-1<o.indexOf(t)?4:(n=a[0])==t?0:n>t?2:a[a.length-1]<t?3:-1<a.indexOf(t,1)?0:5)}function fe(e,t){var n=se(t);return(t=_(t,1))in P?he(e,n,t=ie(e,t,ye(t)),-1):1}function _e(e,t,n,r,o,a){if(0==t.length)return 0;var i;t=new I(t),null!=n&&(i=f(n,11)),null==i&&(i="NonMatch");var s=t.toString();if(0==s.length)i=20;else if(U.test(s))s=s.replace(U,""),t.i="",t.g(ee(s)),i=1;else{if(s=new RegExp(i),te(t),0==(i=t.toString()).search(s)){s=i.match(s)[0].length;var c=i.substring(s).match(V);c&&null!=c[1]&&0<c[1].length&&"0"==re(c[1],z)?i=!1:(t.i="",t.g(i.substring(s)),i=!0)}else i=!1;i=i?5:20}if(o&&w(a,6,i),20!=i){if(2>=t.i.length)throw Error("Phone number too short after IDD");e:{if(0!=(e=t.toString()).length&&"0"!=e.charAt(0))for(o=e.length,t=1;3>=t&&t<=o;++t)if((n=parseInt(e.substring(0,t),10))in P){r.g(e.substring(t)),r=n;break e}r=0}if(0!=r)return w(a,1,r),r;throw Error("Invalid country calling code")}return null!=n&&(s=""+(i=_(n,10)),0==(c=t.toString()).lastIndexOf(s,0)&&(s=new I(c.substring(s.length)),c=f(n,1),c=new RegExp(_(c,2)),ge(s,n,null),s=s.toString(),!be(c,t.toString())&&be(c,s)||3==he(e,t.toString(),n,-1)))?(r.g(s),o&&w(a,6,10),w(a,1,i),i):(w(a,1,0),0)}function ge(e,t,n){var r=e.toString(),o=r.length,a=f(t,15);if(0!=o&&null!=a&&0!=a.length){var i=new RegExp("^(?:"+a+")");if(o=i.exec(r)){var s=be(a=new RegExp(_(f(t,1),2)),r),c=o.length-1;null==(t=f(t,16))||0==t.length||null==o[c]||0==o[c].length?s&&!be(a,r.substring(o[0].length))||(null!=n&&0<c&&null!=o[c]&&n.g(o[1]),e.set(r.substring(o[0].length))):(r=r.replace(i,t),(!s||be(a,r))&&(null!=n&&0<c&&n.g(o[1]),e.set(r)))}}}function ve(e,t,n){if(!oe(n)&&0<t.length&&"+"!=t.charAt(0))throw Error("Invalid country calling code");return we(e,t,n,!0)}function we(e,t,n,r){if(null==t)throw Error("The string supplied did not seem to be a phone number");if(250<t.length)throw Error("The string supplied is too long to be a phone number");var o=new I,a=t.indexOf(";phone-context=");if(0<=a){var i=a+15;if("+"==t.charAt(i)){var s=t.indexOf(";",i);0<s?o.g(t.substring(i,s)):o.g(t.substring(i))}i=t.indexOf("tel:"),o.g(t.substring(0<=i?i+4:0,a))}else a=o.g,0<=(i=t.search(H))?0<=(s=(i=(i=t.substring(i)).replace(W,"")).search(Y))&&(i=i.substring(0,s)):i="",a.call(o,i);if(0<(i=(a=o.toString()).indexOf(";isub="))&&(o.i="",o.g(a.substring(0,i))),!X(o.toString()))throw Error("The string supplied did not seem to be a phone number");if(a=o.toString(),!(oe(n)||null!=a&&0<a.length&&U.test(a)))throw Error("Invalid country calling code");a=new M,r&&w(a,5,t);e:{if(0<=(i=(t=o.toString()).search(Q))&&X(t.substring(0,i)))for(var c=(s=t.match(Q)).length,l=1;l<c;++l)if(null!=s[l]&&0<s[l].length){o.i="",o.g(t.substring(0,i)),t=s[l];break e}t=""}0<t.length&&w(a,3,t),i=ue(e,n),t=new I,s=0,c=o.toString();try{s=_e(e,c,i,t,r,a)}catch(n){if("Invalid country calling code"!=n.message||!U.test(c))throw n;if(0==(s=_e(e,c=c.replace(U,""),i,t,r,a)))throw n}if(0!=s?(o=ye(s))!=n&&(i=ie(e,s,o)):(te(o),t.g(o.toString()),null!=n?w(a,1,s=_(i,10)):r&&(delete a.g[6],a.i&&delete a.i[6])),2>t.i.length)throw Error("The string supplied is too short to be a phone number");if(null!=i&&(n=new I,ge(o=new I(t.toString()),i,n),2!=(e=he(e,o.toString(),i,-1))&&4!=e&&5!=e&&(t=o,r&&0<n.toString().length&&w(a,7,n.toString()))),2>(e=(r=t.toString()).length))throw Error("The string supplied is too short to be a phone number");if(17<e)throw Error("The string supplied is too long to be a phone number");if(1<r.length&&"0"==r.charAt(0)){for(w(a,4,!0),e=1;e<r.length-1&&"0"==r.charAt(e);)e++;1!=e&&w(a,8,e)}return w(a,2,parseInt(r,10)),a}function be(e,t){return!(!(e="string"==typeof e?t.match("^(?:"+e+")$"):t.match(e))||e[0].length!=t.length)}t("intlTelInputUtils",{}),t("intlTelInputUtils.formatNumber",(function(e,t,n){try{var r=F.g(),o=ve(r,e,t),a=fe(r,o);return 0==a||4==a?ae(r,o,void 0===n?0:n):e}catch(t){return e}})),t("intlTelInputUtils.getExampleNumber",(function(e,t,n){try{var r=F.g();e:{if(oe(e)){var o=le(ue(r,e),n);try{if(null!=o.g[6]){var a=we(r,f(o,6),e,!1);break e}}catch(e){}}a=null}return ae(r,a,t?2:1)}catch(e){return""}})),t("intlTelInputUtils.getExtension",(function(e,t){try{return f(ve(F.g(),e,t),3)}catch(e){return""}})),t("intlTelInputUtils.getNumberType",(function(e,t){try{var n=F.g(),r=ve(n,e,t),o=pe(n,r),a=ie(n,_(r,1),o);if(null==a)var i=-1;else i=de(se(r),a);return i}catch(e){return-99}})),t("intlTelInputUtils.getValidationError",(function(e,t){try{var n=F.g();return fe(n,ve(n,e,t))}catch(e){return"Invalid country calling code"==e.message?1:"Phone number too short after IDD"==e.message||"The string supplied is too short to be a phone number"==e.message?2:"The string supplied is too long to be a phone number"==e.message?3:-99}})),t("intlTelInputUtils.isValidNumber",(function(e,t){try{var n,r=F.g(),o=ve(r,e,t),a=pe(r,o),i=_(o,1),s=ie(r,i,a);if(!(n=null==s)){var c;if(c="001"!=a){var l=ue(r,a);if(null==l)throw Error("Invalid region code: "+a);c=i!=_(l,10)}n=c}if(n)var d=!1;else d=-1!=de(se(o),s);return d}catch(e){return!1}})),t("intlTelInputUtils.numberFormat",{E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3}),t("intlTelInputUtils.numberType",{FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1}),t("intlTelInputUtils.validationError",{IS_POSSIBLE:0,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,TOO_LONG:3,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_LENGTH:5})}()},8699:(e,t,n)=>{e.exports=n(5197)},9588:e=>{e.exports=function(e,t){var n,r,o=0;function a(){var a,i,s=n,c=arguments.length;e:for(;s;){if(s.args.length===arguments.length){for(i=0;i<c;i++)if(s.args[i]!==arguments[i]){s=s.next;continue e}return s!==n&&(s===r&&(r=s.prev),s.prev.next=s.next,s.next&&(s.next.prev=s.prev),s.next=n,s.prev=null,n.prev=s,n=s),s.val}s=s.next}for(a=new Array(c),i=0;i<c;i++)a[i]=arguments[i];return s={args:a,val:e.apply(null,a)},n?(n.prev=s,s.next=n):r=s,o===t.maxSize?(r=r.prev).next=null:o++,n=s,s.val}return t=t||{},a.clear=function(){n=null,r=null,o=0},a}},4155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,c=[],l=!1,d=-1;function u(){l&&s&&(l=!1,s.length?c=s.concat(c):d=-1,c.length&&m())}function m(){if(!l){var e=i(u);l=!0;for(var t=c.length;t;){for(s=c,c=[];++d<t;)s&&s[d].run();d=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function y(){}r.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];c.push(new p(e,t)),1!==c.length||l||i(m)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=y,r.addListener=y,r.once=y,r.off=y,r.removeListener=y,r.removeAllListeners=y,r.emit=y,r.prependListener=y,r.prependOnceListener=y,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},2703:(e,t,n)=>{"use strict";var r=n(414);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=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:a,resetWarningCache:o};return n.PropTypes=n,n}},5697:(e,t,n)=>{e.exports=n(2703)()},414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9921:(e,t)=>{"use strict";if("function"==typeof Symbol&&Symbol.for){var n=Symbol.for;n("react.element"),n("react.portal"),n("react.fragment"),n("react.strict_mode"),n("react.profiler"),n("react.provider"),n("react.context"),n("react.forward_ref"),n("react.suspense"),n("react.suspense_list"),n("react.memo"),n("react.lazy"),n("react.block"),n("react.server.block"),n("react.fundamental"),n("react.debug_trace_mode"),n("react.legacy_hidden")}},9864:(e,t,n)=>{"use strict";n(9921)},471:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0NTMgNzMiPjxyZWN0IHdpZHRoPSIzLjkiIGhlaWdodD0iMTIuMiIgZmlsbD0iIzY0Q0E0MyIgcng9IjEuOSIgdHJhbnNmb3JtPSJtYXRyaXgoLS44MyAuNTYgLjU2IC44MyA0MDQgNDguNikiLz48cmVjdCB3aWR0aD0iMy4xIiBoZWlnaHQ9IjkuNiIgZmlsbD0iI0ZGMkQ1NSIgcng9IjEuNSIgdHJhbnNmb3JtPSJtYXRyaXgoLS42NyAuNzQgLjc0IC42NyA0MTggMTMuNSkiLz48cmVjdCB3aWR0aD0iMy42IiBoZWlnaHQ9IjExLjQiIGZpbGw9IiMxMTdBQzkiIHJ4PSIxLjgiIHRyYW5zZm9ybT0ibWF0cml4KC0uNjQgLS43NyAtLjc3IC42NCAzOTEuOCAyNSkiLz48cmVjdCB3aWR0aD0iMy45IiBoZWlnaHQ9IjEyLjIiIGZpbGw9IiNGRjgwODUiIHJ4PSIxLjkiIHRyYW5zZm9ybT0ibWF0cml4KC0uNCAtLjkxIC0uOTEgLjQgMTcxIDE0LjcpIi8+PHJlY3Qgd2lkdGg9IjUuMyIgaGVpZ2h0PSIxNi44IiBmaWxsPSIjRkY4MDg1IiByeD0iMi43IiB0cmFuc2Zvcm09Im1hdHJpeCguNCAuOTIgLjkyIC0uNCAzMjguMSA1MC42KSIvPjxjaXJjbGUgY3g9IjMuNCIgY3k9IjMuNCIgcj0iMy40IiBmaWxsPSIjRjBCODQ5IiB0cmFuc2Zvcm09Im1hdHJpeCgtLjk1IC0uMzEgLS4zMSAuOTUgNDM4IDU4LjQpIi8+PGNpcmNsZSBjeD0iMi4zIiBjeT0iMi4zIiByPSIyLjMiIGZpbGw9IiNCRjVBRjIiIHRyYW5zZm9ybT0ibWF0cml4KC0uOTUgLS4zMSAtLjMxIC45NSA0NTIuOSA0Mi41KSIvPjxjaXJjbGUgY3g9IjEuNSIgY3k9IjEuNSIgcj0iMS41IiBmaWxsPSIjQkY1QUYyIiB0cmFuc2Zvcm09Im1hdHJpeCgtLjk1IC0uMzEgLS4zMSAuOTUgMzc1LjMgNjIuMykiLz48Y2lyY2xlIGN4PSIyLjMiIGN5PSIyLjMiIHI9IjIuMyIgZmlsbD0iIzA5QjU4NSIgdHJhbnNmb3JtPSJtYXRyaXgoLS45NSAtLjMxIC0uMzEgLjk1IDE2My42IDUyLjYpIi8+PHJlY3Qgd2lkdGg9IjUuMyIgaGVpZ2h0PSIxNi44IiB4PSIzMTQuMyIgeT0iMTcuMiIgZmlsbD0iIzk4NEE5QyIgcng9IjIuNyIgdHJhbnNmb3JtPSJyb3RhdGUoLTUyIDMxNC4zIDE3LjIpIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjNjRDQTQzIiByeD0iMS45IiB0cmFuc2Zvcm09Im1hdHJpeCguNjIgLS43OSAuNzkgLjYyIDI3IDM0LjcpIi8+PHJlY3Qgd2lkdGg9IjMuNiIgaGVpZ2h0PSIxMS40IiBmaWxsPSIjRTdDMDM3IiByeD0iMS44IiB0cmFuc2Zvcm09InJvdGF0ZSgtMTcxLjQgMTM0LjggNCkiLz48cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSI5LjQiIGZpbGw9IiNFN0MwMzciIHJ4PSIxLjUiIHRyYW5zZm9ybT0icm90YXRlKDc2LjkgNzQgMTU5LjIpIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjMzM2MUNDIiByeD0iMS45IiB0cmFuc2Zvcm09InJvdGF0ZSgzOC4yIDUyLjYgNDE3LjQpIi8+PGNpcmNsZSBjeD0iOTAuNSIgY3k9IjQ1LjciIHI9IjMuNCIgZmlsbD0iI0YwQjg0OSIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgOTAuNSA0NS43KSIvPjxjaXJjbGUgY3g9IjU5LjkiIGN5PSIyNy4xIiByPSIyLjMiIGZpbGw9IiNCRjVBRjIiIHRyYW5zZm9ybT0icm90YXRlKC0yIDU5LjkgMjcuMSkiLz48Y2lyY2xlIGN4PSIzMDcuMSIgY3k9IjYwLjgiIHI9IjEuNSIgZmlsbD0iI0YwQzkzMCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMzA3LjEgNjAuOCkiLz48Y2lyY2xlIGN4PSIzNTcuMyIgY3k9IjI4LjUiIHI9IjEuNSIgZmlsbD0iI0YwQzkzMCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMzU3LjMgMjguNSkiLz48Y2lyY2xlIGN4PSIyMzcuMiIgY3k9IjQ3LjQiIHI9IjEuNSIgZmlsbD0iIzMzNjFDQyIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMjM3LjIgNDcuNCkiLz48Y2lyY2xlIGN4PSIyOTAuOSIgY3k9IjM5LjkiIHI9IjEuOSIgZmlsbD0iIzM3RTY4OCIgdHJhbnNmb3JtPSJyb3RhdGUoLTIgMjkwLjkgNDApIi8+PHJlY3Qgd2lkdGg9IjMuOSIgaGVpZ2h0PSIxMi4yIiBmaWxsPSIjNjRDQTQzIiByeD0iMS45IiB0cmFuc2Zvcm09InJvdGF0ZSgtNzAuMyA5Ny41IC00Ni44KSIvPjxyZWN0IHdpZHRoPSIzLjkiIGhlaWdodD0iMTIuMiIgeD0iMTMxLjMiIHk9IjI1LjEiIGZpbGw9IiMzMzYxQ0MiIHJ4PSIxLjkiIHRyYW5zZm9ybT0icm90YXRlKDYgMTMxLjMgMjUuMSkiLz48Y2lyY2xlIGN4PSIzLjQiIGN5PSIzLjQiIHI9IjMuNCIgZmlsbD0iI0YwQjg0OSIgdHJhbnNmb3JtPSJyb3RhdGUoLTM0LjIgMTE3IDYuMykiLz48Y2lyY2xlIGN4PSIxOTUuOCIgY3k9IjMzLjIiIHI9IjIuMyIgZmlsbD0iI0JGNUFGMiIgdHJhbnNmb3JtPSJyb3RhdGUoLTM0IDE5NS44IDMzLjIpIi8+PGNpcmNsZSBjeD0iMS41IiBjeT0iMS41IiByPSIxLjUiIGZpbGw9IiMzMzYxQ0MiIHRyYW5zZm9ybT0icm90YXRlKC0zNC4yIDEzNy43IC02OC4zKSIvPjxjaXJjbGUgY3g9IjEuOSIgY3k9IjEuOSIgcj0iMS45IiBmaWxsPSIjMzdFNjg4IiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQuMiA3Ny43IDI0KSIvPjxjaXJjbGUgY3g9IjEuOSIgY3k9IjEuOSIgcj0iMS45IiBmaWxsPSIjRjBDOTMwIiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQuMiAzNy4zIC0zMy42KSIvPjxjaXJjbGUgY3g9IjIzMS40IiBjeT0iMjEuMyIgcj0iMi4zIiBmaWxsPSIjMDlCNTg1IiB0cmFuc2Zvcm09InJvdGF0ZSgtMzQgMjMxLjQgMjEuMykiLz48Y2lyY2xlIGN4PSIyLjMiIGN5PSIyLjMiIHI9IjIuMyIgZmlsbD0iI0ZGM0IzMCIgdHJhbnNmb3JtPSJtYXRyaXgoLjgzIC0uNTYgLjU2IC44MyA5NyAxNC44KSIvPjwvc3ZnPgo="},1629:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNzMwIDU1NyI+PHBhdGggZmlsbD0iIzAwMCIgZD0iTTEwMTQuMzUgMTA0LjMzaDg4LjI2YzMxLjE1IDAgNTYuMTIgNy40MiA3NC45MSAyMi4yNXMyOC4xOCAzNC4zNiAyOC4xOCA1OC41OWMwIDI1LjQ2LTkuNjQgNDUuNDktMjguNjcgNTkuODMtMTkuMDQgMTQuMzQtNDUuNDkgMjEuNzUtNzkuMzYgMjEuNzVoLTEyLjM2djk5LjYzaC03MS40NVYxMDQuMzNoLjQ5Wm03MS4yIDUwLjE4djYxLjhjMTYuMDctLjI0IDI3Ljk0LTIuNzEgMzUuMzYtNy42NSA3LjY2LTQuOTUgMTEuMzctMTIuNjEgMTEuMzctMjMgMC0xMS4zNy0zLjcxLTE5LjI4LTExLjEzLTIzLjczLTcuMTctNC43LTE5LjAzLTcuMTctMzUuNi03LjQyWm0zNDEuOTEgMjExLjg3aC03NC4xN2wtMTIuMTEtNDMuNzZoLTc1LjRsLTEyLjM2IDQzLjc2aC03Mi42OWw4My4zMi0yNjIuMDVoODAuMWw4My4zMSAyNjIuMDVabS05OS44OC05MC45N2MtMTAuNjMtMzkuMDctMTguNzktNzYuMTUtMjMuOTgtMTExLjI1aC0uOTlhMTA2NC44OSAxMDY0Ljg5IDAgMCAxLTIzLjczIDExMS4yNWg0OC43Wm01Ny4xMS0xNzEuMDhoODAuMWMxNy44IDM3LjU4IDMwLjY2IDY2Ljc1IDM4LjU3IDg3LjAyaC45OWM3LjkxLTIxLjAxIDIwLjc2LTQ5Ljk0IDM4LjA3LTg3LjAyaDgxLjgzbC04NC4zIDE0My4zOXYxMTguNDJoLTcyLjE5VjI0Ny43MmwtODMuMDctMTQzLjRabTI2MS44MSAwaDkwLjI0YzEyLjg1IDU2LjYxIDIyLjk5IDEwNS4wNyAzMC40IDE0NS44Nmw3LjY3LTQwLjU1YzMuMjEtMTUuODIgNi40My0zMS4xNSAxMC4xMy00Ni4yM2wxMy44NS01OC44NGg5MS45N2wzNS44NCAyNjIuMDZoLTcwLjdsLTE5LjA0LTE4MC4yMi00NCAxODAuMjJoLTQ4LjIxbC00Ni4yMy0xODAuNDctMTguMyAxODAuNDdoLTY3LjQ5bDMzLjg3LTI2Mi4zWm0zMDEuNjEgMGgxNDQuMzh2NTUuNjJoLTcyLjkzdjQ4LjIxaDYzLjI5djU0LjM5aC02My4yOXY0Ny43MWg3My40MnY1NS44OGgtMTQ0Ljg3VjEwNC4zM1ptMTcxLjMzIDBoNzEuOTRsOTAuNzMgMTUxLjA1LTIuNDctMjguMThWMTA0LjMzaDcxLjQ0djI2Mi4wNWgtNzMuMTdsLTg4Ljc2LTE0OC44MiAxLjk4IDMyLjYzdjExNi4yaC03MS40NVYxMDQuMzJoLS4yNFptMjUwLjQzIDBoMTcwLjM0djU5LjgzaC00OS4ydjIwMi4yMmgtNzIuMTlWMTY0LjE2aC00OC43di01OS44M2gtLjI1Wm0xOTkuNTEgMjU3LjF2LTYxLjA2YzIyLjUgMTAuODggNDEuNTMgMTYuNTcgNTcuMTEgMTYuNTcgOC45IDAgMTYuMDctMS45OCAyMS4yNi02LjE4IDUuMTktNC4yIDcuNjYtOS42NCA3LjY2LTE2LjMyIDAtNS4xOS0xLjk3LTEwLjEzLTYuMTgtMTQuODMtNC4yLTQuNy0xMS4zNy0xMC4xNC0yMS41LTE2LjU3LTI0LjczLTE1LjgyLTQyLjUzLTMwLjQtNTMuNjUtNDMuNzUtMTEuMTMtMTMuNi0xNi41Ny0yOC42OC0xNi41Ny00NS4yNSAwLTIyLjc0IDguNjYtNDEuMDMgMjUuNzItNTUuMzcgMTcuMDUtMTQuMzQgMzkuMy0yMS41MSA2Ni41LTIxLjUxIDIwLjAyIDAgNDAuMDUgMy43IDU5LjgzIDEwLjg4djU4LjU5Yy0yMS4yNy05LjY0LTM4LjMyLTE0LjU5LTUxLjY3LTE0LjU5LTguOSAwLTE1LjgzIDEuNzMtMjAuNzcgNS40NC01LjE5IDMuNy03LjY2IDguNjUtNy42NiAxNC44MyAwIDEwLjg4IDExLjg2IDIzLjI0IDM1LjYgMzcuMDkgMTQuMDkgOC4xNiAyOC40MyAxOS41MyA0My4wMSAzNC4zNiAxNC41OSAxNC44MyAyMS43NiAzMS42NSAyMS43NiA1MS4xOCAwIDIyLjc0LTkuNCA0MS4yOC0yOC40MyA1Ni4xMi0xOS4wNCAxNC44My00My4wMiAyMi4yNS03Mi4xOSAyMi4yNS0yMC4yNy0uMjUtNDAuMDUtNC4yLTU5LjgzLTExLjg3WiIvPjxwYXRoIGZpbGw9IiM3RjU0QjMiIGZpbGwtcnVsZT0iZXZlbm9kZCIgZD0iTTg3LjI3IDBoNzYwLjdDODk1LjkzIDAgOTM1IDM5LjA2IDkzNSA4Ny4wMnYyOTAuMjRjMCA0Ny45Ni0zOS4wNiA4Ny4wMi04Ny4wMiA4Ny4wMkg1NzUuMDRMNjEyLjM3IDU1NmwtMTY0LjktOTEuNzJIODcuMDJDMzkuMDYgNDY0LjI4IDAgNDI1LjIyIDAgMzc3LjI2Vjg3LjAyQzAgMzkuMDYgMzkuMDYgMCA4Ny4yNyAwWiIgY2xpcC1ydWxlPSJldmVub2RkIi8+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTQ3LjIyIDc4Ljg2QTMyLjI4IDMyLjI4IDAgMCAxIDcxLjIgNjdjMTkuMjgtMS4yNCAzMC40IDcuOSAzMy4zOCAyNy40NCAxMS44NiA3OS42IDI0LjcyIDE0Ny4zNCAzOC4zMSAyMDIuOTdMMjI2LjcgMTM4LjJjNy42Ny0xNC4zNCAxNy4wNi0yMiAyOC42OC0yMi43NSAxNi44MS0xLjIzIDI3LjIgOS40IDMxLjQgMzIuMTRhNzI0LjYxIDcyNC42MSAwIDAgMCAzNi4xIDEzMC41M0MzMzMgMTgxLjIyIDM0OS44MSAxMTEgMzczLjMgNjcuNzVhMjkuMzMgMjkuMzMgMCAwIDEgMjUuMjEtMTYuODEgMzIuNjggMzIuNjggMCAwIDEgMjMuOTggNy42NiAyOS42NCAyOS42NCAwIDAgMSAxMS42MiAyMmMuNSA2LjQzLS43NCAxMi44Ni0zLjcgMTguMy0xNC44NCAyNy42OS0yNy4yIDczLjY3LTM2Ljg0IDEzNy45NS05LjQgNjIuMDUtMTMuMSAxMTAuNzUtMTAuNjMgMTQ1LjYxYTQ1LjYgNDUuNiAwIDAgMS00LjQ1IDI0Ljk3IDI0LjIgMjQuMiAwIDAgMS0yMC4yNyAxMy44NWMtMTAuMTQuNzQtMjAuMDMtMy45Ni0zMC4xNy0xNC4xLTM1LjYtMzYuMzQtNjMuNzgtOTAuNDgtODQuNTUtMTYyLjQyLTI0LjQ3IDQ4Ljk1LTQzLjAxIDg1Ljc5LTU1LjEzIDExMC4wMS0yMi41IDQzLjI3LTQxLjc4IDY1LjI3LTU3LjYgNjYuNS0xMC4zOC43NS0xOS4yOC03LjktMjYuNDUtMjYuMi0xOS41My00OS45NC00MC41NS0xNDYuNi02My4wNC0yOTBhMzEuOSAzMS45IDAgMCAxIDUuOTMtMjYuMlptNTgxLjcyIDYwLjA4YTg5LjE4IDg5LjE4IDAgMCAwLTYxLjA3LTQ0LjI1IDk4Ljg5IDk4Ljg5IDAgMCAwLTIwLjc2LTIuMjNjLTM2LjYgMC02Ni41IDE5LjA0LTg5Ljc1IDU3LjFhMjAxLjU4IDIwMS41OCAwIDAgMC0yOS42NiAxMDcuNTVjMCAyOS40MiA2LjE4IDU0LjY0IDE4LjMgNzUuNjVhODkuMTkgODkuMTkgMCAwIDAgNjEuMDUgNDQuMjUgOTguODggOTguODggMCAwIDAgMjAuNzcgMi4yM2MzNi44NCAwIDY2Ljc1LTE5LjA0IDg5Ljc0LTU3LjExYTIwMy41MiAyMDMuNTIgMCAwIDAgMjkuNjctMTA4LjI4YzAtMjkuNDItNi4xOC01NC40LTE4LjMtNzQuOTFaTTU4MC43MyAyNDVjLTUuMiAyNC45Ny0xNC44NCA0My43Ni0yOS4xNyA1Ni42MS0xMS4xMyAxMC4xNC0yMS41MSAxNC4xLTMwLjkgMTIuMzYtOS40LTEuNzMtMTYuODItMTAuMTMtMjIuNS0yNC43Mi00LjItMTEuMTMtNi42OC0yMi43NS02LjY4LTM0Ljg2IDAtOS40Ljk5LTE4Ljc5IDIuNzItMjcuOTNhMTI1LjU2IDEyNS41NiAwIDAgMSAyMC4yNy00NS41YzEyLjYxLTE4LjU0IDI1Ljk2LTI2LjQ1IDM5LjgtMjMuNDggOS40IDEuOTggMTYuODIgMTAuMTQgMjIuNSAyNC43MiA0LjIgMTEuMTMgNi42OCAyMi43NSA2LjY4IDM0LjYxIDAgOS40LS43NSAxOC44LTIuNzIgMjguMTlabTI4Ny41MS0xMDYuMDZhODkuMTggODkuMTggMCAwIDAtNjEuMDYtNDQuMjUgOTguODkgOTguODkgMCAwIDAtMjAuNzctMi4yM2MtMzYuNTggMC02Ni41IDE5LjA0LTg5Ljc0IDU3LjFhMjAxLjU5IDIwMS41OSAwIDAgMC0yOS42NiAxMDcuNTVjMCAyOS40MiA2LjE4IDU0LjY0IDE4LjI5IDc1LjY1YTg5LjE5IDg5LjE5IDAgMCAwIDYxLjA2IDQ0LjI1IDk4Ljg4IDk4Ljg4IDAgMCAwIDIwLjc3IDIuMjNjMzYuODQgMCA2Ni43NS0xOS4wNCA4OS43NC01Ny4xMWEyMDMuNTIgMjAzLjUyIDAgMCAwIDI5LjY3LTEwOC4yOGMwLTI5LjQyLTYuMTgtNTQuNC0xOC4zLTc0LjkxWk04MjAuMDQgMjQ1Yy01LjIgMjQuOTctMTQuODQgNDMuNzYtMjkuMTggNTYuNjEtMTEuMTIgMTAuMTQtMjEuNSAxNC4xLTMwLjkgMTIuMzYtOS40LTEuNzMtMTYuODEtMTAuMTMtMjIuNS0yNC43Mi00LjItMTEuMTMtNi42Ny0yMi43NS02LjY3LTM0Ljg2IDAtOS40Ljk5LTE4Ljc5IDIuNzItMjcuOTNhMTI1LjU2IDEyNS41NiAwIDAgMSAyMC4yNy00NS41YzEyLjYtMTguNTQgMjUuOTYtMjYuNDUgMzkuOC0yMy40OCA5LjQgMS45OCAxNi44MiAxMC4xNCAyMi41IDI0LjcyIDQuMiAxMS4xMyA2LjY4IDIyLjc1IDYuNjggMzQuNjEgMCA5LjQtLjc1IDE4LjgtMi43MiAyOC4xOVoiLz48L3N2Zz4="},6384:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/amex.svg?ver=9035aad80e3ae7ac653c"},2765:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/apple-pay.svg?ver=126e07a26632bc8a9c21"},2738:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/diners.svg?ver=136a8dbbb13e63765263"},5994:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/google-pay.svg?ver=30aba48019e36097a19d"},3237:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/mastercard.svg?ver=d21057587f14a719da45"},2464:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/unionpay.svg?ver=590378d28822ade6ea0b"},9464:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/cards/visa.svg?ver=f10d76e13a47cb867cca"},2722:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/logo.svg?ver=cc343b18b042f1622414"},2851:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/affirm.svg?ver=1151b0d701a5ea6ebcae"},1274:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/afterpay.svg?ver=b9fe34a47e37828e09ae"},1270:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/bancontact.svg?ver=439d3f59385fa74e675e"},5962:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/bank-debit.svg?ver=d0e134b0067cbbf6403f"},7884:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/cc.svg?ver=e99146e27d67e25c0717"},5085:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/clearpay.svg?ver=1092499f79ea6d761029"},7077:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/eps.svg?ver=7bd9ed62d1b21ca35ceb"},6120:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/giropay.svg?ver=1100c024fff0503b41f7"},3116:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/ideal.svg?ver=c2cc71cf802e14c4f042"},6752:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/jcb.svg?ver=3351f2584f4a62ad094d"},6774:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/klarna.svg?ver=e031a517911ff23ecaaa"},6349:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/link.svg?ver=6d4a7fba4cf334b96652"},725:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/p24.svg?ver=85e0cf9bc6526516d85f"},8125:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/sepa-debit.svg?ver=9e42854526214016710d"},3516:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/sofort.svg?ver=b6780ad95a25d8b7b634"},5086:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/payment-methods/woo.svg?ver=c063471dc31ce4748a14"},4116:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/woopay.svg?ver=182127aba8ef46006ea8"},1948:(e,t,n)=>{"use strict";e.exports=n.p+"../assets/images/woopayments.svg?ver=f85a85f7bfa59aaf86c4"},9196:e=>{"use strict";e.exports=window.React}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})(),n.p=window.wcpayAssets.url,(()=>{"use strict";var e={};n.r(e),n.d(e,{getAllDepositsOverviews:()=>Vs,getAllDepositsOverviewsError:()=>Hs,getDeposit:()=>zs,getDepositQueryError:()=>qs,getDeposits:()=>Ws,getDepositsCount:()=>Gs,getDepositsOverview:()=>Bs,getDepositsOverviewError:()=>Us,getDepositsSummary:()=>Qs,getDepositsSummaryError:()=>Ks,getInstantDeposit:()=>Js});var t={};n.r(t),n.d(t,{submitInstantDeposit:()=>Sc,updateAllDepositsOverviews:()=>hc,updateDeposit:()=>mc,updateDeposits:()=>_c,updateDepositsCount:()=>gc,updateDepositsOverview:()=>pc,updateDepositsSummary:()=>bc,updateErrorForAllDepositsOverviews:()=>fc,updateErrorForDepositQuery:()=>vc,updateErrorForDepositsOverview:()=>yc,updateErrorForDepositsSummary:()=>Ec,updateInstantDeposit:()=>$c});var r={};n.r(r),n.d(r,{getAllDepositsOverviews:()=>Ic,getDeposit:()=>Cc,getDeposits:()=>Tc,getDepositsCSV:()=>xc,getDepositsOverview:()=>kc,getDepositsSummary:()=>Oc});var o={};n.r(o),n.d(o,{getFraudOutcomeTransactions:()=>Hc,getFraudOutcomeTransactionsError:()=>Yc,getFraudOutcomeTransactionsSummary:()=>Gc,getFraudOutcomeTransactionsSummaryError:()=>qc,getTransactions:()=>jc,getTransactionsError:()=>Fc,getTransactionsSummary:()=>Bc,getTransactionsSummaryError:()=>Uc});var a={};n.r(a),n.d(a,{updateErrorForFraudOutcomeTransactions:()=>el,updateErrorForFraudOutcomeTransactionsSummary:()=>nl,updateErrorForTransactions:()=>Qc,updateErrorForTransactionsSummary:()=>Jc,updateFraudOutcomeTransactions:()=>Xc,updateFraudOutcomeTransactionsSummary:()=>tl,updateTransactions:()=>Zc,updateTransactionsSummary:()=>Kc});var i={};n.r(i),n.d(i,{formatQueryFilters:()=>rl,getFraudOutcomeTransactions:()=>sl,getFraudOutcomeTransactionsExport:()=>ll,getFraudOutcomeTransactionsSummary:()=>cl,getTransactions:()=>ol,getTransactionsCSV:()=>al,getTransactionsSummary:()=>il});var s={};n.r(s),n.d(s,{getCharge:()=>pl,getChargeError:()=>yl,getChargeFromOrder:()=>hl,getChargeFromOrderError:()=>fl});var c={};n.r(c),n.d(c,{updateCharge:()=>_l,updateErrorForCharge:()=>gl});var l={};n.r(l),n.d(l,{getCharge:()=>vl,getChargeFromOrder:()=>wl});var d={};n.r(d),n.d(d,{getTimeline:()=>El,getTimelineError:()=>$l});var u={};n.r(u),n.d(u,{updateErrorForTimeline:()=>Cl,updateTimeline:()=>Sl});var m={};n.r(m),n.d(m,{getTimeline:()=>kl});var p={};n.r(p),n.d(p,{getCachedDispute:()=>Ll,getDispute:()=>Tl,getDisputeError:()=>Ol,getDisputes:()=>Al,getDisputesSummary:()=>Ml});var y={};n.r(y),n.d(y,{refundCharge:()=>Fl,updateErrorForPaymentIntent:()=>jl,updatePaymentIntent:()=>Pl});var h={};n.r(h),n.d(h,{getPaymentIntent:()=>zl});var f={};n.r(f),n.d(f,{acceptDispute:()=>Yl,updateDispute:()=>Bl,updateDisputes:()=>Vl,updateDisputesSummary:()=>Hl,updateErrorForDispute:()=>Ul});var _={};n.r(_),n.d(_,{getDispute:()=>ql,getDisputes:()=>Zl,getDisputesCSV:()=>Gl,getDisputesSummary:()=>Ql});var g={};n.r(g),n.d(g,{getAccountBrandingLogo:()=>qd,getAccountBusinessName:()=>Pd,getAccountBusinessSupportAddress:()=>Fd,getAccountBusinessSupportAddressCity:()=>Vd,getAccountBusinessSupportAddressCountry:()=>zd,getAccountBusinessSupportAddressLine1:()=>Bd,getAccountBusinessSupportAddressLine2:()=>Ud,getAccountBusinessSupportAddressPostalCode:()=>Yd,getAccountBusinessSupportAddressState:()=>Hd,getAccountBusinessSupportEmail:()=>Wd,getAccountBusinessSupportPhone:()=>Gd,getAccountBusinessURL:()=>jd,getAccountDomesticCurrency:()=>Zd,getAccountStatementDescriptor:()=>Md,getAccountStatementDescriptorKana:()=>Rd,getAccountStatementDescriptorKanji:()=>Dd,getAdvancedFraudProtectionSettings:()=>Cu,getAvailablePaymentMethodIds:()=>Od,getCompletedWaitingPeriod:()=>tu,getCurrentProtectionLevel:()=>Su,getDepositDelayDays:()=>eu,getDepositRestrictions:()=>ru,getDepositScheduleInterval:()=>Qd,getDepositScheduleMonthlyAnchor:()=>Xd,getDepositScheduleWeeklyAnchor:()=>Jd,getDepositStatus:()=>nu,getEnabledPaymentMethodIds:()=>Td,getExportLanguage:()=>Kd,getIsCardPresentEligible:()=>fu,getIsClientSecretEncryptionEnabled:()=>xd,getIsDebugLogEnabled:()=>cu,getIsDevModeEnabled:()=>iu,getIsManualCaptureEnabled:()=>ou,getIsMultiCurrencyEnabled:()=>lu,getIsPaymentRequestEnabled:()=>su,getIsSavedCardsEnabled:()=>yu,getIsStripeBillingEnabled:()=>Iu,getIsStripeBillingMigrationInProgress:()=>Nu,getIsSubscriptionsPluginActive:()=>vu,getIsTestModeEnabled:()=>au,getIsWCPayEnabled:()=>Nd,getIsWCPaySubscriptionsEligible:()=>gu,getIsWCPaySubscriptionsEnabled:()=>_u,getIsWooPayEnabled:()=>wu,getPaymentMethodStatuses:()=>Ld,getPaymentRequestButtonSize:()=>mu,getPaymentRequestButtonTheme:()=>pu,getPaymentRequestButtonType:()=>uu,getPaymentRequestLocations:()=>du,getSavingError:()=>hu,getSettings:()=>kd,getShowWooPayIncompatibilityNotice:()=>ku,getStripeBillingMigratedCount:()=>Tu,getStripeBillingSubscriptionCount:()=>xu,getWooPayCustomMessage:()=>bu,getWooPayLocations:()=>$u,getWooPayStoreLogo:()=>Eu,isSavingSettings:()=>Ad});var v={};n.r(v),n.d(v,{saveSettings:()=>dm,submitStripeBillingSubscriptionMigration:()=>vm,updateAccountBrandingLogo:()=>am,updateAccountBusinessName:()=>em,updateAccountBusinessSupportAddress:()=>nm,updateAccountBusinessSupportEmail:()=>rm,updateAccountBusinessSupportPhone:()=>om,updateAccountBusinessURL:()=>tm,updateAccountStatementDescriptor:()=>Ku,updateAccountStatementDescriptorKana:()=>Xu,updateAccountStatementDescriptorKanji:()=>Ju,updateAdvancedFraudProtectionSettings:()=>_m,updateAvailablePaymentMethodIds:()=>Uu,updateDepositScheduleInterval:()=>im,updateDepositScheduleMonthlyAnchor:()=>cm,updateDepositScheduleWeeklyAnchor:()=>sm,updateEnabledPaymentMethodIds:()=>Bu,updateExportLanguage:()=>lm,updateIsCardPresentEligible:()=>Au,updateIsClientSecretEncryptionEnabled:()=>Mu,updateIsDebugLogEnabled:()=>qu,updateIsManualCaptureEnabled:()=>Wu,updateIsMultiCurrencyEnabled:()=>Zu,updateIsPaymentRequestEnabled:()=>zu,updateIsSavedCardsEnabled:()=>Lu,updateIsSavingSettings:()=>Vu,updateIsStripeBillingEnabled:()=>gm,updateIsTestModeEnabled:()=>Gu,updateIsWCPayEnabled:()=>Fu,updateIsWCPaySubscriptionsEnabled:()=>Qu,updateIsWooPayEnabled:()=>mm,updatePaymentRequestButtonSize:()=>Ru,updatePaymentRequestButtonTheme:()=>Pu,updatePaymentRequestButtonType:()=>Du,updatePaymentRequestLocations:()=>um,updateProtectionLevel:()=>fm,updateSelectedPaymentMethod:()=>Hu,updateSettings:()=>ju,updateUnselectedPaymentMethod:()=>Yu,updateWooPayCustomMessage:()=>pm,updateWooPayLocations:()=>hm,updateWooPayStoreLogo:()=>ym});var w={};n.r(w),n.d(w,{getSettings:()=>wm});var b={};n.r(b),n.d(b,{getAvailableCurrencies:()=>Rm,getCurrencies:()=>Dm,getCurrencySettings:()=>Fm,getDefaultCurrency:()=>jm,getEnabledCurrencies:()=>Pm,getStoreSettings:()=>zm});var E={};n.r(E),n.d(E,{submitCurrencySettings:()=>qm,submitEnabledCurrenciesUpdate:()=>Gm,submitStoreSettingsUpdate:()=>Zm,updateAvailableCurrencies:()=>Um,updateCurrencies:()=>Bm,updateCurrencySettings:()=>Ym,updateDefaultCurrency:()=>Hm,updateEnabledCurrencies:()=>Vm,updateStoreSettings:()=>Wm});var $={};n.r($),n.d($,{getCurrencies:()=>Qm,getCurrencySettings:()=>Km,getStoreSettings:()=>Jm});var S={};n.r(S),n.d(S,{getCardReaderStats:()=>op,getCardReaderStatsError:()=>ap,getCardReaders:()=>ip});var C={};n.r(C),n.d(C,{updateCardReaderStats:()=>sp,updateCardReaders:()=>cp,updateErrorForCardReaderStats:()=>lp,updateErrorForCardReaders:()=>dp});var k={};n.r(k),n.d(k,{getCardReaderStats:()=>up,getCardReaders:()=>mp});var I={};n.r(I),n.d(I,{getActiveLoanSummary:()=>_p,getActiveLoanSummaryError:()=>gp,getLoans:()=>vp,getLoansError:()=>wp});var N={};n.r(N),n.d(N,{updateActiveLoanSummary:()=>bp,updateErrorForActiveLoanSummary:()=>Ep,updateErrorForLoans:()=>Sp,updateLoans:()=>$p});var x={};n.r(x),n.d(x,{getActiveLoanSummary:()=>Cp,getLoans:()=>kp});var T={};n.r(T),n.d(T,{getDocuments:()=>Op,getDocumentsError:()=>Lp,getDocumentsSummary:()=>Mp,getDocumentsSummaryError:()=>Dp});var O={};n.r(O),n.d(O,{updateDocuments:()=>Rp,updateDocumentsSummary:()=>jp,updateErrorForDocuments:()=>Pp,updateErrorForDocumentsSummary:()=>Fp});var L={};n.r(L),n.d(L,{formatQueryFilters:()=>zp,getDocuments:()=>Bp,getDocumentsSummary:()=>Up});var A={};n.r(A),n.d(A,{getPaymentIntent:()=>Hp,getPaymentIntentError:()=>Yp});var M={};n.r(M),n.d(M,{getAuthorization:()=>Xp,getAuthorizations:()=>Jp,getAuthorizationsError:()=>ey,getAuthorizationsSummary:()=>ny,getAuthorizationsSummaryError:()=>ry,getIsRequesting:()=>oy});var D={};n.r(D),n.d(D,{setIsRequestingAuthorization:()=>ly,submitCancelAuthorization:()=>uy,submitCaptureAuthorization:()=>dy,updateAuthorization:()=>sy,updateAuthorizations:()=>ay,updateAuthorizationsSummary:()=>cy,updateErrorForAuthorizations:()=>iy,updateErrorForAuthorizationsSummary:()=>my});var R={};n.r(R),n.d(R,{getAuthorization:()=>yy,getAuthorizations:()=>py,getAuthorizationsSummary:()=>hy});var P={};n.r(P),n.d(P,{getFile:()=>by,getFileError:()=>Ey});var j={};n.r(j),n.d(j,{updateErrorForFiles:()=>Sy,updateFiles:()=>$y});var F={};n.r(F),n.d(F,{getFile:()=>Cy});var z={};n.r(z),n.d(z,{Text:()=>gh,block:()=>vh,destructive:()=>bh,highlighterText:()=>$h,muted:()=>Eh,positive:()=>wh,upperCase:()=>Sh});const B=window.wp.i18n,U=window.wp.hooks;window.wp.mediaelement;var V=n(9196),H=n.n(V);const Y=window.wp.element,W=window.lodash;var G=n.n(W),q=n(4184),Z=n.n(q);const Q=window.wp.a11y,K=window.wp.primitives,J=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"}));function X(){return X=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},X.apply(this,arguments)}const ee=window.wp.deprecated;var te=n.n(ee);const ne=window.wp.compose,re=window.wp.dom;function oe(e,t,n){const{defaultView:r}=t,{frameElement:o}=r;if(!o||t===n.ownerDocument)return e;const a=o.getBoundingClientRect();return new r.DOMRect(e.left+a.left,e.top+a.top,e.width,e.height)}let ae=0;function ie(e){const t=document.scrollingElement||document.body;e&&(ae=t.scrollTop);const n=e?"add":"remove";t.classList[n]("lockscroll"),document.documentElement.classList[n]("lockscroll"),e||(t.scrollTop=ae)}let se=0;function ce(){return(0,Y.useEffect)((()=>(0===se&&ie(!0),++se,()=>{1===se&&ie(!1),--se})),[]),null}const le=(0,Y.createContext)({registerSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{},getSlot:()=>{},getFills:()=>{},subscribe:()=>{}});function de(e){let{name:t,children:n,registerFill:r,unregisterFill:o}=e;const a=(e=>{const{getSlot:t,subscribe:n}=(0,Y.useContext)(le),[r,o]=(0,Y.useState)(t(e));return(0,Y.useEffect)((()=>(o(t(e)),n((()=>{o(t(e))})))),[e]),r})(t),i=(0,Y.useRef)({name:t,children:n});return(0,Y.useLayoutEffect)((()=>(r(t,i.current),()=>o(t,i.current))),[]),(0,Y.useLayoutEffect)((()=>{i.current.children=n,a&&a.forceUpdate()}),[n]),(0,Y.useLayoutEffect)((()=>{t!==i.current.name&&(o(i.current.name,i.current),i.current.name=t,r(t,i.current))}),[t]),a&&a.node?((0,W.isFunction)(n)&&(n=n(a.props.fillProps)),(0,Y.createPortal)(n,a.node)):null}const ue=e=>(0,Y.createElement)(le.Consumer,null,(t=>{let{registerFill:n,unregisterFill:r}=t;return(0,Y.createElement)(de,X({},e,{registerFill:n,unregisterFill:r}))}));class me extends Y.Component{constructor(){super(...arguments),this.isUnmounted=!1,this.bindNode=this.bindNode.bind(this)}componentDidMount(){const{registerSlot:e}=this.props;e(this.props.name,this)}componentWillUnmount(){const{unregisterSlot:e}=this.props;this.isUnmounted=!0,e(this.props.name,this)}componentDidUpdate(e){const{name:t,unregisterSlot:n,registerSlot:r}=this.props;e.name!==t&&(n(e.name),r(t,this))}bindNode(e){this.node=e}forceUpdate(){this.isUnmounted||super.forceUpdate()}render(){const{children:e,name:t,fillProps:n={},getFills:r}=this.props,o=(0,W.map)(r(t,this),(e=>{const t=(0,W.isFunction)(e.children)?e.children(n):e.children;return Y.Children.map(t,((e,t)=>{if(!e||(0,W.isString)(e))return e;const n=e.key||t;return(0,Y.cloneElement)(e,{key:n})}))})).filter((0,W.negate)(Y.isEmptyElement));return(0,Y.createElement)(Y.Fragment,null,(0,W.isFunction)(e)?e(o):o)}}const pe=e=>(0,Y.createElement)(le.Consumer,null,(t=>{let{registerSlot:n,unregisterSlot:r,getFills:o}=t;return(0,Y.createElement)(me,X({},e,{registerSlot:n,unregisterSlot:r,getFills:o}))}));window.wp.warning;var ye=n(4155);const he=(0,Y.createContext)({slots:{},fills:{},registerSlot:()=>{void 0!==ye&&ye.env},updateSlot:()=>{},unregisterSlot:()=>{},registerFill:()=>{},unregisterFill:()=>{}});function fe(e){const t=(0,Y.useContext)(he),n=t.slots[e]||{},r=t.fills[e],o=(0,Y.useMemo)((()=>r||[]),[r]);return{...n,updateSlot:(0,Y.useCallback)((n=>{t.updateSlot(e,n)}),[e,t.updateSlot]),unregisterSlot:(0,Y.useCallback)((n=>{t.unregisterSlot(e,n)}),[e,t.unregisterSlot]),fills:o,registerFill:(0,Y.useCallback)((n=>{t.registerFill(e,n)}),[e,t.registerFill]),unregisterFill:(0,Y.useCallback)((n=>{t.unregisterFill(e,n)}),[e,t.unregisterFill])}}var _e=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),ge=Math.abs,ve=String.fromCharCode,we=Object.assign;function be(e){return e.trim()}function Ee(e,t,n){return e.replace(t,n)}function $e(e,t){return e.indexOf(t)}function Se(e,t){return 0|e.charCodeAt(t)}function Ce(e,t,n){return e.slice(t,n)}function ke(e){return e.length}function Ie(e){return e.length}function Ne(e,t){return t.push(e),e}var xe=1,Te=1,Oe=0,Le=0,Ae=0,Me="";function De(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:xe,column:Te,length:i,return:""}}function Re(e,t){return we(De("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pe(){return Ae=Le>0?Se(Me,--Le):0,Te--,10===Ae&&(Te=1,xe--),Ae}function je(){return Ae=Le<Oe?Se(Me,Le++):0,Te++,10===Ae&&(Te=1,xe++),Ae}function Fe(){return Se(Me,Le)}function ze(){return Le}function Be(e,t){return Ce(Me,e,t)}function Ue(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ve(e){return xe=Te=1,Oe=ke(Me=e),Le=0,[]}function He(e){return Me="",e}function Ye(e){return be(Be(Le-1,qe(91===e?e+2:40===e?e+1:e)))}function We(e){for(;(Ae=Fe())&&Ae<33;)je();return Ue(e)>2||Ue(Ae)>3?"":" "}function Ge(e,t){for(;--t&&je()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Be(e,ze()+(t<6&&32==Fe()&&32==je()))}function qe(e){for(;je();)switch(Ae){case e:return Le;case 34:case 39:34!==e&&39!==e&&qe(Ae);break;case 40:41===e&&qe(e);break;case 92:je()}return Le}function Ze(e,t){for(;je()&&e+Ae!==57&&(e+Ae!==84||47!==Fe()););return"/*"+Be(t,Le-1)+"*"+ve(47===e?e:je())}function Qe(e){for(;!Ue(Fe());)je();return Be(e,Le)}var Ke="-ms-",Je="-moz-",Xe="-webkit-",et="comm",tt="rule",nt="decl",rt="@keyframes";function ot(e,t){for(var n="",r=Ie(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function at(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case nt:return e.return=e.return||e.value;case et:return"";case rt:return e.return=e.value+"{"+ot(e.children,r)+"}";case tt:e.value=e.props.join(",")}return ke(n=ot(e.children,r))?e.return=e.value+"{"+n+"}":""}function it(e){return He(st("",null,null,null,[""],e=Ve(e),0,[0],e))}function st(e,t,n,r,o,a,i,s,c){for(var l=0,d=0,u=i,m=0,p=0,y=0,h=1,f=1,_=1,g=0,v="",w=o,b=a,E=r,$=v;f;)switch(y=g,g=je()){case 40:if(108!=y&&58==Se($,u-1)){-1!=$e($+=Ee(Ye(g),"&","&\f"),"&\f")&&(_=-1);break}case 34:case 39:case 91:$+=Ye(g);break;case 9:case 10:case 13:case 32:$+=We(y);break;case 92:$+=Ge(ze()-1,7);continue;case 47:switch(Fe()){case 42:case 47:Ne(lt(Ze(je(),ze()),t,n),c);break;default:$+="/"}break;case 123*h:s[l++]=ke($)*_;case 125*h:case 59:case 0:switch(g){case 0:case 125:f=0;case 59+d:-1==_&&($=Ee($,/\f/g,"")),p>0&&ke($)-u&&Ne(p>32?dt($+";",r,n,u-1):dt(Ee($," ","")+";",r,n,u-2),c);break;case 59:$+=";";default:if(Ne(E=ct($,t,n,l,d,o,s,v,w=[],b=[],u),a),123===g)if(0===d)st($,t,E,E,w,a,u,s,b);else switch(99===m&&110===Se($,3)?100:m){case 100:case 108:case 109:case 115:st(e,E,E,r&&Ne(ct(e,E,E,0,0,o,s,v,o,w=[],u),b),o,b,u,s,r?w:b);break;default:st($,E,E,E,[""],b,0,s,b)}}l=d=p=0,h=_=1,v=$="",u=i;break;case 58:u=1+ke($),p=y;default:if(h<1)if(123==g)--h;else if(125==g&&0==h++&&125==Pe())continue;switch($+=ve(g),g*h){case 38:_=d>0?1:($+="\f",-1);break;case 44:s[l++]=(ke($)-1)*_,_=1;break;case 64:45===Fe()&&($+=Ye(je())),m=Fe(),d=u=ke(v=$+=Qe(ze())),g++;break;case 45:45===y&&2==ke($)&&(h=0)}}return a}function ct(e,t,n,r,o,a,i,s,c,l,d){for(var u=o-1,m=0===o?a:[""],p=Ie(m),y=0,h=0,f=0;y<r;++y)for(var _=0,g=Ce(e,u+1,u=ge(h=i[y])),v=e;_<p;++_)(v=be(h>0?m[_]+" "+g:Ee(g,/&\f/g,m[_])))&&(c[f++]=v);return De(e,t,n,0===o?tt:s,c,l,d)}function lt(e,t,n){return De(e,t,n,et,ve(Ae),Ce(e,2,-2),0)}function dt(e,t,n,r){return De(e,t,n,nt,Ce(e,0,r),Ce(e,r+1,-1),r)}var ut=function(e,t,n){for(var r=0,o=0;r=o,o=Fe(),38===r&&12===o&&(t[n]=1),!Ue(o);)je();return Be(e,Le)},mt=new WeakMap,pt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||mt.get(n))&&!r){mt.set(e,!0);for(var o=[],a=function(e,t){return He(function(e,t){var n=-1,r=44;do{switch(Ue(r)){case 0:38===r&&12===Fe()&&(t[n]=1),e[n]+=ut(Le-1,t,n);break;case 2:e[n]+=Ye(r);break;case 4:if(44===r){e[++n]=58===Fe()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ve(r)}}while(r=je());return e}(Ve(e),t))}(t,o),i=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<i.length;l++,c++)e.props[c]=o[s]?a[s].replace(/&\f/g,i[l]):i[l]+" "+a[s]}}},yt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ht(e,t){switch(function(e,t){return 45^Se(e,0)?(((t<<2^Se(e,0))<<2^Se(e,1))<<2^Se(e,2))<<2^Se(e,3):0}(e,t)){case 5103:return Xe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Xe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Xe+e+Je+e+Ke+e+e;case 6828:case 4268:return Xe+e+Ke+e+e;case 6165:return Xe+e+Ke+"flex-"+e+e;case 5187:return Xe+e+Ee(e,/(\w+).+(:[^]+)/,Xe+"box-$1$2"+Ke+"flex-$1$2")+e;case 5443:return Xe+e+Ke+"flex-item-"+Ee(e,/flex-|-self/,"")+e;case 4675:return Xe+e+Ke+"flex-line-pack"+Ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Xe+e+Ke+Ee(e,"shrink","negative")+e;case 5292:return Xe+e+Ke+Ee(e,"basis","preferred-size")+e;case 6060:return Xe+"box-"+Ee(e,"-grow","")+Xe+e+Ke+Ee(e,"grow","positive")+e;case 4554:return Xe+Ee(e,/([^-])(transform)/g,"$1"+Xe+"$2")+e;case 6187:return Ee(Ee(Ee(e,/(zoom-|grab)/,Xe+"$1"),/(image-set)/,Xe+"$1"),e,"")+e;case 5495:case 3959:return Ee(e,/(image-set\([^]*)/,Xe+"$1$`$1");case 4968:return Ee(Ee(e,/(.+:)(flex-)?(.*)/,Xe+"box-pack:$3"+Ke+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Xe+e+e;case 4095:case 3583:case 4068:case 2532:return Ee(e,/(.+)-inline(.+)/,Xe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ke(e)-1-t>6)switch(Se(e,t+1)){case 109:if(45!==Se(e,t+4))break;case 102:return Ee(e,/(.+:)(.+)-([^]+)/,"$1"+Xe+"$2-$3$1"+Je+(108==Se(e,t+3)?"$3":"$2-$3"))+e;case 115:return~$e(e,"stretch")?ht(Ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Se(e,t+1))break;case 6444:switch(Se(e,ke(e)-3-(~$e(e,"!important")&&10))){case 107:return Ee(e,":",":"+Xe)+e;case 101:return Ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Xe+(45===Se(e,14)?"inline-":"")+"box$3$1"+Xe+"$2$3$1"+Ke+"$2box$3")+e}break;case 5936:switch(Se(e,t+11)){case 114:return Xe+e+Ke+Ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Xe+e+Ke+Ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Xe+e+Ke+Ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Xe+e+Ke+e+e}return e}var ft=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case nt:e.return=ht(e.value,e.length);break;case rt:return ot([Re(e,{value:Ee(e.value,"@","@"+Xe)})],r);case tt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return ot([Re(e,{props:[Ee(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ot([Re(e,{props:[Ee(t,/:(plac\w+)/,":"+Xe+"input-$1")]}),Re(e,{props:[Ee(t,/:(plac\w+)/,":-moz-$1")]}),Re(e,{props:[Ee(t,/:(plac\w+)/,Ke+"input-$1")]})],r)}return""}))}}],_t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,o,a=e.stylisPlugins||ft,i={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var c,l,d,u,m=[at,(u=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],p=(l=[pt,yt].concat(a,m),d=Ie(l),function(e,t,n,r){for(var o="",a=0;a<d;a++)o+=l[a](e,t,n,r)||"";return o});o=function(e,t,n,r){c=n,ot(it(e?e+"{"+t.styles+"}":t.styles),p),r&&(y.inserted[t.name]=!0)};var y={key:t,sheet:new _e({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return y.sheet.hydrate(s),y},gt={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function vt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var wt=/[A-Z]|^ms/g,bt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Et=function(e){return 45===e.charCodeAt(1)},$t=function(e){return null!=e&&"boolean"!=typeof e},St=vt((function(e){return Et(e)?e:e.replace(wt,"-$&").toLowerCase()})),Ct=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(bt,(function(e,t,n){return It={name:t,styles:n,next:It},t}))}return 1===gt[e]||Et(e)||"number"!=typeof t||0===t?t:t+"px"};function kt(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return It={name:n.name,styles:n.styles,next:It},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)It={name:r.name,styles:r.styles,next:It},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=kt(e,t,n[o])+";";else for(var a in n){var i=n[a];if("object"!=typeof i)null!=t&&void 0!==t[i]?r+=a+"{"+t[i]+"}":$t(i)&&(r+=St(a)+":"+Ct(a,i)+";");else if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=kt(e,t,i);switch(a){case"animation":case"animationName":r+=St(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var c=0;c<i.length;c++)$t(i[c])&&(r+=St(a)+":"+Ct(a,i[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var o=It,a=n(e);return It=o,kt(e,t,a)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var It,Nt,xt=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Tt=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,o="";It=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,o+=kt(n,t,a)):o+=a[0];for(var i=1;i<e.length;i++)o+=kt(n,t,e[i]),r&&(o+=a[i]);xt.lastIndex=0;for(var s,c="";null!==(s=xt.exec(o));)c+="-"+s[1];var l=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(o)+c;return{name:l,styles:o,next:It}},Ot=!!V.useInsertionEffect&&V.useInsertionEffect,Lt=Ot||function(e){return e()},At=(Ot||V.useLayoutEffect,V.createContext("undefined"!=typeof HTMLElement?_t({key:"css"}):null)),Mt=At.Provider,Dt=V.createContext({}),Rt=n(9588),Pt=n.n(Rt),jt=new Uint8Array(16);function Ft(){if(!Nt&&!(Nt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Nt(jt)}const zt=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var Bt=[],Ut=0;Ut<256;++Ut)Bt.push((Ut+256).toString(16).substr(1));const Vt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Bt[e[t+0]]+Bt[e[t+1]]+Bt[e[t+2]]+Bt[e[t+3]]+"-"+Bt[e[t+4]]+Bt[e[t+5]]+"-"+Bt[e[t+6]]+Bt[e[t+7]]+"-"+Bt[e[t+8]]+Bt[e[t+9]]+"-"+Bt[e[t+10]]+Bt[e[t+11]]+Bt[e[t+12]]+Bt[e[t+13]]+Bt[e[t+14]]+Bt[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&zt.test(e)}(n))throw TypeError("Stringified UUID is invalid");return n},Ht=function(e,t,n){var r=(e=e||{}).random||(e.rng||Ft)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Vt(r)},Yt=new Set,Wt=Pt()((e=>{let t=Ht().replace(/[0-9]/g,"");for(;Yt.has(t);)t=Ht().replace(/[0-9]/g,"");return Yt.add(t),_t({container:e,key:t})}));function Gt(e){let{children:t,document:n}=e;if(!n)return null;const r=Wt(n.head);return(0,Y.createElement)(Mt,{value:r},t)}function qt(){const[,e]=(0,Y.useState)({}),t=(0,Y.useRef)(!0);return(0,Y.useEffect)((()=>()=>{t.current=!1}),[]),()=>{t.current&&e({})}}function Zt(e){let{name:t,children:n}=e;const r=fe(t),o=(0,Y.useRef)({rerender:qt()});if((0,Y.useEffect)((()=>(r.registerFill(o),()=>{r.unregisterFill(o)})),[r.registerFill,r.unregisterFill]),!r.ref||!r.ref.current)return null;"function"==typeof n&&(n=n(r.fillProps));const a=(0,Y.createElement)(Gt,{document:r.ref.current.ownerDocument},n);return(0,Y.createPortal)(a,r.ref.current)}const Qt=(0,Y.forwardRef)((function(e,t){let{name:n,fillProps:r={},as:o="div",...a}=e;const i=(0,Y.useContext)(he),s=(0,Y.useRef)();return(0,Y.useLayoutEffect)((()=>(i.registerSlot(n,s,r),()=>{i.unregisterSlot(n,s)})),[i.registerSlot,i.unregisterSlot,n]),(0,Y.useLayoutEffect)((()=>{i.updateSlot(n,r)})),(0,Y.createElement)(o,X({ref:(0,ne.useMergeRefs)([t,s])},a))}));function Kt(e){return(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(ue,e),(0,Y.createElement)(Zt,e))}const Jt=(0,Y.forwardRef)(((e,t)=>{let{bubblesVirtually:n,...r}=e;return n?(0,Y.createElement)(Qt,X({},r,{ref:t})):(0,Y.createElement)(pe,r)}));function Xt(e){return"appear"===e?"top":"left"}const en="Popover",tn=(0,Y.createContext)();function nn(e,t){const{paddingTop:n,paddingBottom:r,paddingLeft:o,paddingRight:a}=function(e){return e.ownerDocument.defaultView.getComputedStyle(e)}(t),i=n?parseInt(n,10):0,s=r?parseInt(r,10):0,c=o?parseInt(o,10):0,l=a?parseInt(a,10):0;return{x:e.left+c,y:e.top+i,width:e.width-c-l,height:e.height-i-s,left:e.left+c,right:e.right-l,top:e.top+i,bottom:e.bottom-s}}function rn(e,t,n){n?e.getAttribute(t)!==n&&e.setAttribute(t,n):e.hasAttribute(t)&&e.removeAttribute(t)}function on(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";e.style[t]!==n&&(e.style[t]=n)}function an(e,t,n){n?e.classList.contains(t)||e.classList.add(t):e.classList.contains(t)&&e.classList.remove(t)}const sn=(0,Y.forwardRef)(((e,t)=>{let{headerTitle:n,onClose:r,children:o,className:a,noArrow:i=!0,isAlternate:s,position:c="bottom right",range:l,focusOnMount:d="firstElement",anchorRef:u,shouldAnchorIncludePadding:m,anchorRect:p,getAnchorRect:y,expandOnMobile:h,animate:f=!0,onFocusOutside:_,__unstableStickyBoundaryElement:g,__unstableSlotName:v=en,__unstableObserveElement:w,__unstableBoundaryParent:b,__unstableForcePosition:E,__unstableForceXAlignment:$,__unstableEditorCanvasWrapper:S,...C}=e;const k=(0,Y.useRef)(null),I=(0,Y.useRef)(null),N=(0,Y.useRef)(),x=(0,ne.useViewportMatch)("medium","<"),[T,O]=(0,Y.useState)(),L=(0,Y.useContext)(tn)||v,A=fe(L),M=h&&x,[D,R]=(0,ne.useResizeObserver)();i=M||i,(0,Y.useLayoutEffect)((()=>{if(M)return an(N.current,"is-without-arrow",i),an(N.current,"is-alternate",s),rn(N.current,"data-x-axis"),rn(N.current,"data-y-axis"),on(N.current,"top"),on(N.current,"left"),on(I.current,"maxHeight"),void on(I.current,"maxWidth");const e=()=>{if(!N.current||!I.current)return;let e=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(t)return t;if(n){if(!e.current)return;const t=n(e.current);return oe(t,t.ownerDocument||e.current.ownerDocument,a)}if(!1!==r){if(!(r&&window.Range&&window.Element&&window.DOMRect))return;if("function"==typeof(null==r?void 0:r.cloneRange))return oe((0,re.getRectangleFromRange)(r),r.endContainer.ownerDocument,a);if("function"==typeof(null==r?void 0:r.getBoundingClientRect)){const e=oe(r.getBoundingClientRect(),r.ownerDocument,a);return o?e:nn(e,r)}const{top:e,bottom:t}=r,n=e.getBoundingClientRect(),i=t.getBoundingClientRect(),s=oe(new window.DOMRect(n.left,n.top,n.width,i.bottom-n.top),e.ownerDocument,a);return o?s:nn(s,r)}if(!e.current)return;const{parentNode:i}=e.current,s=oe(i.getBoundingClientRect(),i.ownerDocument,a);return o?s:nn(s,i)}(k,p,y,u,m,N.current);if(!e)return;const{offsetParent:t,ownerDocument:n}=N.current;let r,o=0;if(t&&t!==n.body){const n=t.getBoundingClientRect();o=n.top,e=new window.DOMRect(e.left-n.left,e.top-n.top,e.width,e.height)}b&&(r=N.current.parentElement);const a=R.height?R:I.current.getBoundingClientRect(),{popoverTop:l,popoverLeft:d,xAxis:h,yAxis:f,contentHeight:_,contentWidth:v}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"top",r=arguments.length>3?arguments[3]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,i=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0;const[l,d="center",u]=n.split(" "),m=function(e,t,n,r,o,a,i,s,c){const{height:l}=t;if(o){const t=o.getBoundingClientRect(),r=t.top+l-i,a=t.bottom-l-i;if(e.top<=r)return!c||l+10<c.scrollTop+e.top?{yAxis:n,popoverTop:Math.min(e.bottom,r)}:{yAxis:"bottom",popoverTop:Math.min(e.bottom,a)}}let d=e.top+e.height/2;"bottom"===r?d=e.bottom:"top"===r&&(d=e.top);const u={popoverTop:d,contentHeight:(d-l/2>0?l/2:d)+(d+l/2>window.innerHeight?window.innerHeight-d:l/2)},m={popoverTop:e.top,contentHeight:e.top-10-l>0?l:e.top-10},p={popoverTop:e.bottom,contentHeight:e.bottom+10+l>window.innerHeight?window.innerHeight-10-e.bottom:l};let y,h=n,f=null;if(!o&&!s)if("middle"===n&&u.contentHeight===l)h="middle";else if("top"===n&&m.contentHeight===l)h="top";else if("bottom"===n&&p.contentHeight===l)h="bottom";else{h=m.contentHeight>p.contentHeight?"top":"bottom";const e="top"===h?m.contentHeight:p.contentHeight;f=e!==l?e:null}return y="middle"===h?u.popoverTop:"top"===h?m.popoverTop:p.popoverTop,{yAxis:h,popoverTop:y,contentHeight:f}}(e,t,l,u,r,0,o,i,c),p=function(e,t,n,r,o,a,i,s,c){const{width:l}=t;"left"===n&&(0,B.isRTL)()?n="right":"right"===n&&(0,B.isRTL)()&&(n="left"),"left"===r&&(0,B.isRTL)()?r="right":"right"===r&&(0,B.isRTL)()&&(r="left");const d=Math.round(e.left+e.width/2),u={popoverLeft:d,contentWidth:(d-l/2>0?l/2:d)+(d+l/2>window.innerWidth?window.innerWidth-d:l/2)};let m=e.left;"right"===r?m=e.right:"middle"===a||c||(m=d);let p=e.right;"left"===r?p=e.left:"middle"===a||c||(p=d);const y={popoverLeft:m,contentWidth:m-l>0?l:m},h={popoverLeft:p,contentWidth:p+l>window.innerWidth?window.innerWidth-p:l};let f,_=n,g=null;if(!o&&!s)if("center"===n&&u.contentWidth===l)_="center";else if("left"===n&&y.contentWidth===l)_="left";else if("right"===n&&h.contentWidth===l)_="right";else{_=y.contentWidth>h.contentWidth?"left":"right";const e="left"===_?y.contentWidth:h.contentWidth;l>window.innerWidth&&(g=window.innerWidth),e!==l&&(_="center",u.popoverLeft=window.innerWidth/2)}return f="center"===_?u.popoverLeft:"left"===_?y.popoverLeft:h.popoverLeft,i&&(f=Math.min(f,i.offsetLeft+i.offsetWidth-l),(0,B.isRTL)()||(f=Math.max(f,0))),{xAxis:_,popoverLeft:f,contentWidth:g}}(e,t,d,u,r,m.yAxis,a,i,s);return{...p,...m}}(e,a,c,g,N.current,o,r,E,$,S);"number"==typeof l&&"number"==typeof d&&(on(N.current,"top",l+"px"),on(N.current,"left",d+"px")),an(N.current,"is-without-arrow",i||"center"===h&&"middle"===f),an(N.current,"is-alternate",s),rn(N.current,"data-x-axis",h),rn(N.current,"data-y-axis",f),on(I.current,"maxHeight","number"==typeof _?_+"px":""),on(I.current,"maxWidth","number"==typeof v?v+"px":""),O(({left:"right",right:"left"}[h]||"center")+" "+({top:"bottom",bottom:"top"}[f]||"middle"))};e();const{ownerDocument:t}=N.current,{defaultView:n}=t,r=n.setInterval(e,500);let o;const a=()=>{n.cancelAnimationFrame(o),o=n.requestAnimationFrame(e)};n.addEventListener("click",a),n.addEventListener("resize",e),n.addEventListener("scroll",e,!0);const l=function(e){if(e)return e.endContainer?e.endContainer.ownerDocument:e.top?e.top.ownerDocument:e.ownerDocument}(u);let d;return l&&l!==t&&(l.defaultView.addEventListener("resize",e),l.defaultView.addEventListener("scroll",e,!0)),w&&(d=new n.MutationObserver(e),d.observe(w,{attributes:!0})),()=>{var i,s;n.clearInterval(r),n.removeEventListener("resize",e),n.removeEventListener("scroll",e,!0),n.removeEventListener("click",a),n.cancelAnimationFrame(o),l&&l!==t&&(null===(i=l.defaultView)||void 0===i||i.removeEventListener("resize",e),null===(s=l.defaultView)||void 0===s||s.removeEventListener("scroll",e,!0)),d&&d.disconnect()}}),[M,p,y,u,m,c,R,g,w,b]);const P=(e,t)=>{"focus-outside"===e&&_?_(t):r&&r()},[j,F]=(0,ne.__experimentalUseDialog)({focusOnMount:d,__unstableOnClose:P,onClose:P}),z=(0,ne.useMergeRefs)([N,j,t]),U=Boolean(f&&T)&&function(e){if("loading"===e.type)return Z()("components-animate__loading");const{type:t,origin:n=Xt(t)}=e;if("appear"===t){const[e,t="center"]=n.split(" ");return Z()("components-animate__appear",{["is-from-"+t]:"center"!==t,["is-from-"+e]:"middle"!==e})}return"slide-in"===t?Z()("components-animate__slide-in","is-from-"+n):void 0}({type:"appear",origin:T});let V=(0,Y.createElement)("div",X({className:Z()("components-popover",a,U,{"is-expanded":M,"is-without-arrow":i,"is-alternate":s})},C,{ref:z},F,{tabIndex:"-1"}),M&&(0,Y.createElement)(ce,null),M&&(0,Y.createElement)("div",{className:"components-popover__header"},(0,Y.createElement)("span",{className:"components-popover__header-title"},n),(0,Y.createElement)(Jn,{className:"components-popover__close",icon:J,onClick:r})),(0,Y.createElement)("div",{ref:I,className:"components-popover__content"},(0,Y.createElement)("div",{style:{position:"relative"}},D,o)));return A.ref&&(V=(0,Y.createElement)(Kt,{name:L},V)),u||p?V:(0,Y.createElement)("span",{ref:k},V)}));sn.Slot=(0,Y.forwardRef)((function(e,t){let{name:n=en}=e;return(0,Y.createElement)(Jt,{bubblesVirtually:!0,name:n,className:"popover-slot",ref:t})})),sn.__unstableSlotNameProvider=tn.Provider;const cn=sn,ln=function(e){let t,n,{shortcut:r,className:o}=e;return r?((0,W.isString)(r)&&(t=r),(0,W.isObject)(r)&&(t=r.display,n=r.ariaLabel),(0,Y.createElement)("span",{className:o,"aria-label":n},t)):null},dn=700,un=(0,Y.createElement)("div",{className:"event-catcher"}),mn=e=>{let{eventHandlers:t,child:n,childrenWithPopover:r}=e;return(0,Y.cloneElement)((0,Y.createElement)("span",{className:"disabled-element-wrapper"},(0,Y.cloneElement)(un,t),(0,Y.cloneElement)(n,{children:r})),t)},pn=e=>{let{child:t,eventHandlers:n,childrenWithPopover:r}=e;return(0,Y.cloneElement)(t,{...n,children:r})},yn=(e,t,n)=>{if(1!==Y.Children.count(e))return;const r=Y.Children.only(e);r.props.disabled||"function"==typeof r.props[t]&&r.props[t](n)},hn=function(e){const{children:t,position:n,text:r,shortcut:o,delay:a=dn}=e,[i,s]=(0,Y.useState)(!1),[c,l]=(0,Y.useState)(!1),d=(0,ne.useDebounce)(l,a),u=e=>{yn(t,"onMouseDown",e),document.addEventListener("mouseup",y),s(!0)},m=e=>{yn(t,"onMouseUp",e),document.removeEventListener("mouseup",y),s(!1)},p=e=>"mouseUp"===e?m:"mouseDown"===e?u:void 0,y=p("mouseUp"),h=(e,n)=>r=>{if(yn(t,e,r),r.currentTarget.disabled)return;if("focus"===r.type&&i)return;d.cancel();const o=(0,W.includes)(["focus","mouseenter"],r.type);o!==c&&(n?d(o):l(o))},f=()=>{d.cancel(),document.removeEventListener("mouseup",y)};if((0,Y.useEffect)((()=>f),[]),1!==Y.Children.count(t))return t;const _={onMouseEnter:h("onMouseEnter",!0),onMouseLeave:h("onMouseLeave"),onClick:h("onClick"),onFocus:h("onFocus"),onBlur:h("onBlur"),onMouseDown:p("mouseDown")},g=Y.Children.only(t),{children:v,disabled:w}=g.props,b=w?mn:pn,E=(e=>{let{grandchildren:t,isOver:n,position:r,text:o,shortcut:a}=e;return(0,Y.concatChildren)(t,n&&(0,Y.createElement)(cn,{focusOnMount:!1,position:r,className:"components-tooltip","aria-hidden":"true",animate:!1,noArrow:!0},o,(0,Y.createElement)(ln,{className:"components-tooltip__shortcut",shortcut:a})))})({grandchildren:v,isOver:c,position:n,text:r,shortcut:o});return b({child:g,eventHandlers:_,childrenWithPopover:E})},fn=function(e){let{icon:t,className:n,...r}=e;const o=["dashicon","dashicons","dashicons-"+t,n].filter(Boolean).join(" ");return(0,Y.createElement)("span",X({className:o},r))},_n=function(e){let{icon:t=null,size:n=24,...r}=e;if("string"==typeof t)return(0,Y.createElement)(fn,X({icon:t},r));if((0,Y.isValidElement)(t)&&fn===t.type)return(0,Y.cloneElement)(t,{...r});if("function"==typeof t)return t.prototype instanceof Y.Component?(0,Y.createElement)(t,{size:n,...r}):t({size:n,...r});if(t&&("svg"===t.type||t.type===K.SVG)){const e={width:n,height:n,...t.props,...r};return(0,Y.createElement)(K.SVG,e)}return(0,Y.isValidElement)(t)?(0,Y.cloneElement)(t,{size:n,...r}):t};var gn=n(4155);const vn=(0,Y.createContext)({}),wn=()=>(0,Y.useContext)(vn);function bn(e){let{value:t}=e;const n=wn(),r=(0,Y.useRef)(t);return function(e,n){const o=(0,Y.useRef)(!1);(0,Y.useEffect)((()=>{o.current?(0,W.isEqual)(r.current,t)&&r.current!==t&&void 0!==gn&&gn.env:o.current=!0}),n)}(0,[t]),(0,Y.useMemo)((()=>(0,W.merge)((0,W.cloneDeep)(n),t)),[n,t])}const En=(0,Y.memo)((e=>{let{children:t,value:n}=e;const r=bn({value:n});return(0,Y.createElement)(vn.Provider,{value:r},t)})),$n="data-wp-component",Sn="data-wp-c16t",Cn="__contextSystemKey__",kn=Pt()((function(e){return`components-${(0,W.kebabCase)(e)}`}));function In(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}function Nn(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function xn(e,t,n){var r=[],o=In(e,r,n);return r.length<2?n:o+t(r)}var Tn=function e(t){for(var n="",r=0;r<t.length;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(n&&(n+=" "),n+=a)}}return n},On=function(e){var t=_t({key:"css"});t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Tt(n,t.registered,void 0);return function(e,t,n){!function(e,t,n){var r=e.key+"-"+t.name;void 0===e.registered[r]&&(e.registered[r]=t.styles)}(e,t);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,o),t.key+"-"+o.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return xn(t.registered,n,Tn(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Tt(n,t.registered);Nn(t,o)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=Tt(n,t.registered),a="animation-"+o.name;return Nn(t,{name:o.name,styles:"@keyframes "+a+"{"+o.styles+"}"}),a},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:In.bind(null,t.registered),merge:xn.bind(null,t.registered,n)}}(),Ln=(On.flush,On.hydrate,On.cx);On.merge,On.getRegisteredStyles,On.injectGlobal,On.keyframes,On.css,On.sheet,On.cache;const An=()=>{const e=(0,V.useContext)(At),t=(0,Y.useCallback)((function(){if(null===e)throw new Error("The `useCx` hook should be only used within a valid Emotion Cache Context");for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Ln(...n.map((t=>(e=>null!=e&&["name","styles"].every((t=>void 0!==e[t])))(t)?(function(e,t,n){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(e,t),`${e.key}-${t.name}`):t)))}),[e]);return t};var Mn=n(4155);function Dn(e,t){const n=wn();void 0===t&&void 0!==Mn&&Mn.env;const r=(null==n?void 0:n[t])||{},o={[Sn]:!0,...(a=t,{[$n]:a})};var a;const{_overrides:i,...s}=r,c=Object.entries(s).length?Object.assign({},s,e):e,l=An()(kn(t),e.className),d="function"==typeof c.renderChildren?c.renderChildren(c):c.children;for(const e in c)o[e]=c[e];for(const e in i)o[e]=i[e];return o.children=d,o.className=l,o}var Rn=n(4155);function Pn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{memo:r=!1}=n;let o=(0,Y.forwardRef)(e);r&&(o=(0,Y.memo)(o)),void 0===t&&void 0!==Rn&&Rn.env;let a=o[Cn]||[t];return Array.isArray(t)&&(a=[...a,...t]),"string"==typeof t&&(a=[...a,t]),o.displayName=t,o[Cn]=(0,W.uniq)(a),o.selector=`.${kn(t)}`,o}function jn(e){if(!e)return[];let t=[];return e[Cn]&&(t=e[Cn]),e.type&&e.type[Cn]&&(t=e.type[Cn]),t}const Fn={border:0,clip:"rect(1px, 1px, 1px, 1px)",WebkitClipPath:"inset( 50% )",clipPath:"inset( 50% )",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",wordWrap:"normal"};var zn=/^((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)-.*))$/,Bn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Un=vt((function(e){return zn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Vn=function(e){return"theme"!==e},Hn=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Un:Vn},Yn=function(e,t,n){var r;if(t){var o=t.shouldForwardProp;r=e.__emotion_forwardProp&&o?function(t){return e.__emotion_forwardProp(t)&&o(t)}:o}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Wn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Bn(t,n,r),Lt((function(){return function(e,t,n){Bn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o=t;do{e.insert(t===o?"."+r:"",o,e.sheet,!0),o=o.next}while(void 0!==o)}}(t,n,r)})),null},Gn=function e(t,n){var r,o,a=t.__emotion_real===t,i=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,o=n.target);var s=Yn(t,n,a),c=s||Hn(i),l=!c("as");return function(){var d=arguments,u=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&u.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)u.push.apply(u,d);else{u.push(d[0][0]);for(var m=d.length,p=1;p<m;p++)u.push(d[p],d[0][p])}var y,h=(y=function(e,t,n){var r,a,d,m,p=l&&e.as||i,y="",h=[],f=e;if(null==e.theme){for(var _ in f={},e)f[_]=e[_];f.theme=V.useContext(Dt)}"string"==typeof e.className?(r=t.registered,a=h,d=e.className,m="",d.split(" ").forEach((function(e){void 0!==r[e]?a.push(r[e]+";"):m+=e+" "})),y=m):null!=e.className&&(y=e.className+" ");var g=Tt(u.concat(h),t.registered,f);y+=t.key+"-"+g.name,void 0!==o&&(y+=" "+o);var v=l&&void 0===s?Hn(p):c,w={};for(var b in e)l&&"as"===b||v(b)&&(w[b]=e[b]);return w.className=y,w.ref=n,V.createElement(V.Fragment,null,V.createElement(Wn,{cache:t,serialized:g,isStringTag:"string"==typeof p}),V.createElement(p,w))},(0,V.forwardRef)((function(e,t){var n=(0,V.useContext)(At);return y(e,n,t)})));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof i?i:i.displayName||i.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=u,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+o}}),h.withComponent=function(t,r){return e(t,X({},n,r,{shouldForwardProp:Yn(h,r,!0)})).apply(void 0,u)},h}};const qn=Gn("div",{target:"em57xhy0"})("");qn.selector=".components-view",qn.displayName="View";const Zn=qn,Qn=Pn((function(e,t){const{style:n,...r}=Dn(e,"VisuallyHidden");return(0,Y.createElement)(Zn,X({ref:t},r,{style:{...Fn,...n||{}}}))}),"VisuallyHidden"),Kn=["onMouseDown","onClick"],Jn=(0,Y.forwardRef)((function e(t,n){const{href:r,target:o,isSmall:a,isPressed:i,isBusy:s,isDestructive:c,className:l,disabled:d,icon:u,iconPosition:m="left",iconSize:p,showTooltip:y,tooltipPosition:h,shortcut:f,label:_,children:g,text:v,variant:w,__experimentalIsFocusable:b,describedBy:E,...$}=function(e){let{isDefault:t,isPrimary:n,isSecondary:r,isTertiary:o,isLink:a,variant:i,...s}=e,c=i;var l,d,u,m,p;return n&&(null!==(l=c)&&void 0!==l||(c="primary")),o&&(null!==(d=c)&&void 0!==d||(c="tertiary")),r&&(null!==(u=c)&&void 0!==u||(c="secondary")),t&&(te()("Button isDefault prop",{since:"5.4",alternative:'variant="secondary"',version:"6.2"}),null!==(m=c)&&void 0!==m||(c="secondary")),a&&(null!==(p=c)&&void 0!==p||(c="link")),{...s,variant:c}}(t),S=(0,ne.useInstanceId)(e,"components-button__description"),C=Z()("components-button",l,{"is-secondary":"secondary"===w,"is-primary":"primary"===w,"is-small":a,"is-tertiary":"tertiary"===w,"is-pressed":i,"is-busy":s,"is-link":"link"===w,"is-destructive":c,"has-text":!!u&&!!g,"has-icon":!!u}),k=d&&!b,I=void 0===r||k?"button":"a",N="a"===I?{href:r,target:o}:{type:"button",disabled:k,"aria-pressed":i};if(d&&b){N["aria-disabled"]=!0;for(const e of Kn)$[e]=e=>{e.stopPropagation(),e.preventDefault()}}const x=!k&&(y&&_||f||!!_&&(!g||(0,W.isArray)(g)&&!g.length)&&!1!==y),T=E?S:null,O=$["aria-describedby"]||T,L=(0,Y.createElement)(I,X({},N,$,{className:C,"aria-label":$["aria-label"]||_,"aria-describedby":O,ref:n}),u&&"left"===m&&(0,Y.createElement)(_n,{icon:u,size:p}),v&&(0,Y.createElement)(Y.Fragment,null,v),u&&"right"===m&&(0,Y.createElement)(_n,{icon:u,size:p}),g);return x?(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(hn,{text:E||_,shortcut:f,position:h},L),E&&(0,Y.createElement)(Qn,null,(0,Y.createElement)("span",{id:T},E))):(0,Y.createElement)(Y.Fragment,null,L,E&&(0,Y.createElement)(Qn,null,(0,Y.createElement)("span",{id:T},E)))}));function Xn(e){switch(e){case"success":case"warning":case"info":return"polite";default:return"assertive"}}const er=function(e){let{className:t,status:n="info",children:r,spokenMessage:o=r,onRemove:a=W.noop,isDismissible:i=!0,actions:s=[],politeness:c=Xn(n),__unstableHTML:l,onDismiss:d=W.noop}=e;!function(e,t){const n="string"==typeof e?e:(0,Y.renderToString)(e);(0,Y.useEffect)((()=>{n&&(0,Q.speak)(n,t)}),[n,t])}(o,c);const u=Z()(t,"components-notice","is-"+n,{"is-dismissible":i});return l&&(r=(0,Y.createElement)(Y.RawHTML,null,r)),(0,Y.createElement)("div",{className:u},(0,Y.createElement)("div",{className:"components-notice__content"},r,(0,Y.createElement)("div",{className:"components-notice__actions"},s.map(((e,t)=>{let{className:n,label:r,isPrimary:o,variant:a,noDefaultClasses:i=!1,onClick:s,url:c}=e,l=a;return"primary"===a||i||(l=c?"link":"secondary"),void 0===l&&o&&(l="primary"),(0,Y.createElement)(Jn,{key:t,href:c,variant:l,onClick:c?void 0:s,className:Z()("components-notice__action",n)},r)})))),i&&(0,Y.createElement)(Jn,{className:"components-notice__dismiss",icon:J,label:(0,B.__)("Dismiss this notice"),onClick:e=>{var t;null==e||null===(t=e.preventDefault)||void 0===t||t.call(e),d(),a()},showTooltip:!1}))};function tr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Tt(t)}n(8679);const nr={name:"12ip69d",styles:"background:transparent;display:block;margin:0!important;pointer-events:none;position:absolute;will-change:box-shadow"},rr="4px";function or(e){var t,n;if(void 0===e)return;if(!e)return"0";const r="number"==typeof e?e:Number(e);return"undefined"!=typeof window&&null!==(t=window.CSS)&&void 0!==t&&null!==(n=t.supports)&&void 0!==n&&n.call(t,"margin",e.toString())||Number.isNaN(r)?e.toString():`calc(${rr} * ${e})`}var ar={grad:.9,turn:360,rad:360/(2*Math.PI)},ir=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},sr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},cr=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},lr=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},dr=function(e){return{r:cr(e.r,0,255),g:cr(e.g,0,255),b:cr(e.b,0,255),a:cr(e.a)}},ur=function(e){return{r:sr(e.r),g:sr(e.g),b:sr(e.b),a:sr(e.a,3)}},mr=/^#([0-9a-f]{3,8})$/i,pr=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},yr=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),i=a-Math.min(t,n,r),s=i?a===t?(n-r)/i:a===n?2+(r-t)/i:4+(t-n)/i:0;return{h:60*(s<0?s+6:s),s:a?i/a*100:0,v:a/255*100,a:o}},hr=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),i=r*(1-n),s=r*(1-(t-a)*n),c=r*(1-(1-t+a)*n),l=a%6;return{r:255*[r,s,i,i,c,r][l],g:255*[c,r,r,s,i,i][l],b:255*[i,i,c,r,r,s][l],a:o}},fr=function(e){return{h:lr(e.h),s:cr(e.s,0,100),l:cr(e.l,0,100),a:cr(e.a)}},_r=function(e){return{h:sr(e.h),s:sr(e.s),l:sr(e.l),a:sr(e.a,3)}},gr=function(e){return hr((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},vr=function(e){return{h:(t=yr(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},wr=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,br=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Er=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,$r=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Sr={string:[[function(e){var t=mr.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?sr(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?sr(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=Er.exec(e)||$r.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:dr({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=wr.exec(e)||br.exec(e);if(!t)return null;var n,r,o=fr({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(ar[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return gr(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=void 0===o?1:o;return ir(t)&&ir(n)&&ir(r)?dr({r:Number(t),g:Number(n),b:Number(r),a:Number(a)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,a=void 0===o?1:o;if(!ir(t)||!ir(n)||!ir(r))return null;var i=fr({h:Number(t),s:Number(n),l:Number(r),a:Number(a)});return gr(i)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,a=void 0===o?1:o;if(!ir(t)||!ir(n)||!ir(r))return null;var i=function(e){return{h:lr(e.h),s:cr(e.s,0,100),v:cr(e.v,0,100),a:cr(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(a)});return hr(i)},"hsv"]]},Cr=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},kr=function(e,t){var n=vr(e);return{h:n.h,s:cr(n.s+100*t,0,100),l:n.l,a:n.a}},Ir=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},Nr=function(e,t){var n=vr(e);return{h:n.h,s:n.s,l:cr(n.l+100*t,0,100),a:n.a}},xr=function(){function e(e){this.parsed=function(e){return"string"==typeof e?Cr(e.trim(),Sr.string):"object"==typeof e&&null!==e?Cr(e,Sr.object):[null,void 0]}(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return sr(Ir(this.rgba),2)},e.prototype.isDark=function(){return Ir(this.rgba)<.5},e.prototype.isLight=function(){return Ir(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=ur(this.rgba)).r,n=e.g,r=e.b,a=(o=e.a)<1?pr(sr(255*o)):"","#"+pr(t)+pr(n)+pr(r)+a;var e,t,n,r,o,a},e.prototype.toRgb=function(){return ur(this.rgba)},e.prototype.toRgbString=function(){return t=(e=ur(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return _r(vr(this.rgba))},e.prototype.toHslString=function(){return t=(e=_r(vr(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=yr(this.rgba),{h:sr(e.h),s:sr(e.s),v:sr(e.v),a:sr(e.a,3)};var e},e.prototype.invert=function(){return Tr({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),Tr(kr(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),Tr(kr(this.rgba,-e))},e.prototype.grayscale=function(){return Tr(kr(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),Tr(Nr(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),Tr(Nr(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?Tr({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):sr(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=vr(this.rgba);return"number"==typeof e?Tr({h:e,s:t.s,l:t.l,a:t.a}):sr(t.h)},e.prototype.isEqual=function(e){return this.toHex()===Tr(e).toHex()},e}(),Tr=function(e){return e instanceof xr?e:new xr(e)},Or=[],Lr=function(e){e.forEach((function(e){Or.indexOf(e)<0&&(e(xr,Sr),Or.push(e))}))};function Ar(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var o in n)r[n[o]]=o;var a={};e.prototype.toName=function(t){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var o,i,s=r[this.toHex()];if(s)return s;if(null==t?void 0:t.closest){var c=this.toRgb(),l=1/0,d="black";if(!a.length)for(var u in n)a[u]=new e(n[u]).toRgb();for(var m in n){var p=(o=c,i=a[m],Math.pow(o.r-i.r,2)+Math.pow(o.g-i.g,2)+Math.pow(o.b-i.b,2));p<l&&(l=p,d=m)}return d}},t.string.push([function(t){var r=t.toLowerCase(),o="transparent"===r?"#0000":n[r];return o?new e(o).toRgb():null},"name"])}function Mr(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Tr(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").alpha(e).toRgbString()}Lr([Ar]);const Dr={black:"#000",white:"#fff"},Rr={blue:{medium:{focus:"#007cba",focusDark:"#fff"}},gray:{900:"#1e1e1e",700:"#757575",600:"#949494",400:"#ccc",300:"#ddd",200:"#e0e0e0",100:"#f0f0f0"},darkGray:{primary:"#1e1e1e",heading:"#050505"},mediumGray:{text:"#757575"},lightGray:{ui:"#949494",secondary:"#ccc",tertiary:"#e7e8e9"}},Pr={900:"#191e23",800:"#23282d",700:"#32373c",600:"#40464d",500:"#555d66",400:"#606a73",300:"#6c7781",200:"#7e8993",150:"#8d96a0",100:"#8f98a1",placeholder:Mr(Rr.gray[900],.62)},jr={900:Mr("#000510",.9),800:Mr("#00000a",.85),700:Mr("#06060b",.8),600:Mr("#000913",.75),500:Mr("#0a1829",.7),400:Mr("#0a1829",.65),300:Mr("#0e1c2e",.62),200:Mr("#162435",.55),100:Mr("#223443",.5),backgroundFill:Mr(Pr[700],.7)},Fr={900:Mr("#304455",.45),800:Mr("#425863",.4),700:Mr("#667886",.35),600:Mr("#7b86a2",.3),500:Mr("#9197a2",.25),400:Mr("#95959c",.2),300:Mr("#829493",.15),200:Mr("#8b8b96",.1),100:Mr("#747474",.05)},zr={900:"#a2aab2",800:"#b5bcc2",700:"#ccd0d4",600:"#d7dade",500:"#e2e4e7",400:"#e8eaeb",300:"#edeff0",200:"#f3f4f5",100:"#f8f9f9",placeholder:Mr(Dr.white,.65)},Br={900:Mr(Dr.white,.5),800:Mr(Dr.white,.45),700:Mr(Dr.white,.4),600:Mr(Dr.white,.35),500:Mr(Dr.white,.3),400:Mr(Dr.white,.25),300:Mr(Dr.white,.2),200:Mr(Dr.white,.15),100:Mr(Dr.white,.1),backgroundFill:Mr(zr[300],.8)},Ur={wordpress:{700:"#00669b"},dark:{900:"#0071a1"},medium:{900:"#006589",800:"#00739c",700:"#007fac",600:"#008dbe",500:"#00a0d2",400:"#33b3db",300:"#66c6e4",200:"#bfe7f3",100:"#e5f5fa",highlight:"#b3e7fe",focus:"#007cba"}},Vr={theme:`var( --wp-admin-theme-color, ${Ur.wordpress[700]})`,themeDark10:`var( --wp-admin-theme-color-darker-10, ${Ur.medium.focus})`},Hr={theme:Vr.theme,background:Dr.white,backgroundDisabled:zr[200],border:Rr.gray[700],borderHover:Rr.gray[700],borderFocus:Vr.themeDark10,borderDisabled:Rr.gray[400],borderLight:Rr.gray[300],label:Pr[500],textDisabled:Pr[150],textDark:Dr.white,textLight:Dr.black},Yr=Object.assign({},Dr,{darkGray:(0,W.merge)({},Pr,Rr.darkGray),darkOpacity:jr,darkOpacityLight:Fr,mediumGray:Rr.mediumGray,gray:Rr.gray,lightGray:(0,W.merge)({},zr,Rr.lightGray),lightGrayLight:Br,blue:(0,W.merge)({},Ur,Rr.blue),alert:{yellow:"#f0b849",red:"#d94f4f",green:"#4ab866"},admin:Vr,ui:Hr}),Wr="36px",Gr="12px",qr={controlSurfaceColor:Yr.white,controlTextActiveColor:Yr.ui.theme,controlPaddingX:Gr,controlPaddingXLarge:`calc(${Gr} * 1.3334)`,controlPaddingXSmall:`calc(${Gr} / 1.3334)`,controlBackgroundColor:Yr.white,controlBorderRadius:"2px",controlBorderColor:Yr.gray[700],controlBoxShadow:"transparent",controlBorderColorHover:Yr.gray[700],controlBoxShadowFocus:`0 0 0 0.5px ${Yr.admin.theme}`,controlDestructiveBorderColor:Yr.alert.red,controlHeight:Wr,controlHeightXSmall:`calc( ${Wr} * 0.6 )`,controlHeightSmall:`calc( ${Wr} * 0.8 )`,controlHeightLarge:`calc( ${Wr} * 1.2 )`,controlHeightXLarge:`calc( ${Wr} * 1.4 )`},Zr={toggleGroupControlBackgroundColor:qr.controlBackgroundColor,toggleGroupControlBorderColor:Yr.ui.border,toggleGroupControlBackdropBackgroundColor:qr.controlSurfaceColor,toggleGroupControlBackdropBorderColor:Yr.ui.border,toggleGroupControlBackdropBoxShadow:"transparent",toggleGroupControlButtonColorActive:qr.controlBackgroundColor},Qr=Object.assign({},qr,Zr,{colorDivider:"rgba(0, 0, 0, 0.1)",colorScrollbarThumb:"rgba(0, 0, 0, 0.2)",colorScrollbarThumbHover:"rgba(0, 0, 0, 0.5)",colorScrollbarTrack:"rgba(0, 0, 0, 0.04)",elevationIntensity:1,radiusBlockUi:"2px",borderWidth:"1px",borderWidthFocus:"1.5px",borderWidthTab:"4px",spinnerSize:16,fontSize:"13px",fontSizeH1:"calc(2.44 * 13px)",fontSizeH2:"calc(1.95 * 13px)",fontSizeH3:"calc(1.56 * 13px)",fontSizeH4:"calc(1.25 * 13px)",fontSizeH5:"13px",fontSizeH6:"calc(0.8 * 13px)",fontSizeInputMobile:"16px",fontSizeMobile:"15px",fontSizeSmall:"calc(0.92 * 13px)",fontSizeXSmall:"calc(0.75 * 13px)",fontLineHeightBase:"1.2",fontWeight:"normal",fontWeightHeading:"600",gridBase:"4px",cardBorderRadius:"2px",cardPaddingXSmall:`${or(2)}`,cardPaddingSmall:`${or(4)}`,cardPaddingMedium:`${or(4)} ${or(6)}`,cardPaddingLarge:`${or(6)} ${or(8)}`,surfaceBackgroundColor:Yr.white,surfaceBackgroundSubtleColor:"#F3F3F3",surfaceBackgroundTintColor:"#F5F5F5",surfaceBorderColor:"rgba(0, 0, 0, 0.1)",surfaceBorderBoldColor:"rgba(0, 0, 0, 0.15)",surfaceBorderSubtleColor:"rgba(0, 0, 0, 0.05)",surfaceBackgroundTertiaryColor:Yr.white,surfaceColor:Yr.white,transitionDuration:"200ms",transitionDurationFast:"160ms",transitionDurationFaster:"120ms",transitionDurationFastest:"100ms",transitionTimingFunction:"cubic-bezier(0.08, 0.52, 0.52, 1)",transitionTimingFunctionControl:"cubic-bezier(0.12, 0.8, 0.32, 1)"});function Kr(e){return`0 ${e}px ${2*e}px 0\n\trgba(0 ,0, 0, ${e/20})`}const Jr=Pn((function(e,t){const n=function(e){const{active:t,borderRadius:n="inherit",className:r,focus:o,hover:a,isInteractive:i=!1,offset:s=0,value:c=0,...l}=Dn(e,"Elevation"),d=An(),u=(0,Y.useMemo)((()=>{let e=(0,W.isNil)(a)?2*c:a,l=(0,W.isNil)(t)?c/2:t;i||(e=(0,W.isNil)(a)?void 0:a,l=(0,W.isNil)(t)?void 0:t);const u=`box-shadow ${Qr.transitionDuration} ${Qr.transitionTimingFunction}`,m={};return m.Base=tr({borderRadius:n,bottom:s,boxShadow:Kr(c),opacity:Qr.elevationIntensity,left:s,right:s,top:s,transition:u},function(){let e;switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transition"){case"transition":e="transition-duration: 0ms;";break;case"animation":e="animation-duration: 1ms;";break;default:e="\n\t\t\t\tanimation-duration: 1ms;\n\t\t\t\ttransition-duration: 0ms;\n\t\t\t"}return`\n\t\t@media ( prefers-reduced-motion: reduce ) {\n\t\t\t${e};\n\t\t}\n\t`}("transition"),"",""),(0,W.isNil)(e)||(m.hover=tr("*:hover>&{box-shadow:",Kr(e),";}","")),(0,W.isNil)(l)||(m.active=tr("*:active>&{box-shadow:",Kr(l),";}","")),(0,W.isNil)(o)||(m.focus=tr("*:focus>&{box-shadow:",Kr(o),";}","")),d(nr,m.Base,m.hover&&m.hover,m.focus&&m.focus,m.active&&m.active,r)}),[t,n,r,d,o,a,i,s,c]);return{...l,className:u,"aria-hidden":!0}}(e);return(0,Y.createElement)(Zn,X({},n,{ref:t}))}),"Elevation"),Xr=Jr,eo=`calc(${Qr.cardBorderRadius} - 1px)`,to=tr("box-shadow:0 0 0 1px ",Qr.surfaceBorderColor,";outline:none;",""),no={name:"1showjb",styles:"border-bottom:1px solid;box-sizing:border-box;&:last-child{border-bottom:none;}"},ro={name:"14n5oej",styles:"border-top:1px solid;box-sizing:border-box;&:first-of-type{border-top:none;}"},oo={name:"13udsys",styles:"height:100%"},ao={name:"6ywzd",styles:"box-sizing:border-box;height:auto;max-height:100%"},io={name:"c990dr",styles:"box-sizing:border-box;display:block;width:100%"},so=tr("&:first-of-type{border-top-left-radius:",eo,";border-top-right-radius:",eo,";}&:last-of-type{border-bottom-left-radius:",eo,";border-bottom-right-radius:",eo,";}",""),co=tr("border-color:",Qr.colorDivider,";",""),lo={name:"1t90u8d",styles:"box-shadow:none"},uo={name:"1e1ncky",styles:"border:none"},mo=tr("border-radius:",eo,";",""),po=tr("padding:",Qr.cardPaddingXSmall,";",""),yo={large:tr("padding:",Qr.cardPaddingLarge,";",""),medium:tr("padding:",Qr.cardPaddingMedium,";",""),small:tr("padding:",Qr.cardPaddingSmall,";",""),xSmall:po,extraSmall:po},ho=tr("background-color:",Yr.lightGray[200],";",""),fo=tr("background-color:",Qr.surfaceColor,";color:",Yr.darkGray.primary,";position:relative;","");Qr.surfaceBackgroundColor;const _o=tr("",""),go=tr("background:",Qr.surfaceBackgroundTintColor,";",""),vo=tr("background:",Qr.surfaceBackgroundTertiaryColor,";",""),wo=e=>[e,e].join(" "),bo=e=>["90deg",[Qr.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),Eo=e=>[[Qr.surfaceBackgroundColor,e].join(" "),"transparent 1%"].join(","),$o=[`linear-gradient( ${[`${Qr.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`,`linear-gradient( ${["90deg",`${Qr.surfaceBorderSubtleColor} 1px`,"transparent 1px"].join(",")} )`].join(","),So=(e,t,n)=>{switch(e){case"dotted":return((e,t)=>tr("background:",(e=>[`linear-gradient( ${bo(e)} ) center`,`linear-gradient( ${Eo(e)} ) center`,Qr.surfaceBorderBoldColor].join(","))(t),";background-size:",wo(e),";",""))(t,n);case"grid":return(e=>tr("background:",Qr.surfaceBackgroundColor,";background-image:",$o,";background-size:",wo(e),";",""))(t);case"primary":return _o;case"secondary":return go;case"tertiary":return vo}};function Co(e){const{backgroundSize:t=12,borderBottom:n=!1,borderLeft:r=!1,borderRight:o=!1,borderTop:a=!1,className:i,variant:s="primary",...c}=Dn(e,"Surface"),l=An(),d=(0,Y.useMemo)((()=>{const e={};return e.borders=function(e){let{borderBottom:t,borderLeft:n,borderRight:r,borderTop:o}=e;const a=`1px solid ${Qr.surfaceBorderColor}`;return tr({borderBottom:t?a:void 0,borderLeft:n?a:void 0,borderRight:r?a:void 0,borderTop:o?a:void 0},"","")}({borderBottom:n,borderLeft:r,borderRight:o,borderTop:a}),l(fo,e.borders,So(s,`${t}px`,t-1+"px"),i)}),[t,n,r,o,a,i,l,s]);return{...c,className:d}}const ko=Pn((function(e,t){const{children:n,elevation:r,isBorderless:o,isRounded:a,size:i,...s}=function(e){const{className:t,elevation:n=0,isBorderless:r=!1,isRounded:o=!0,size:a="medium",...i}=Dn(function(e){let{elevation:t,isElevated:n,...r}=e;const o={...r};let a=t;var i;return n&&(te()("Card isElevated prop",{since:"5.9",alternative:"elevation"}),null!==(i=a)&&void 0!==i||(a=2)),void 0!==a&&(o.elevation=a),o}(e),"Card"),s=An();return{...Co({...i,className:(0,Y.useMemo)((()=>s(to,r&&lo,o&&mo,t)),[t,s,r,o])}),elevation:n,isBorderless:r,isRounded:o,size:a}}(e),c=a?Qr.cardBorderRadius:0,l=An(),d=(0,Y.useMemo)((()=>l(tr({borderRadius:c},"",""))),[l,c]),u=(0,Y.useMemo)((()=>{const e={size:i,isBorderless:o};return{CardBody:e,CardHeader:e,CardFooter:e}}),[o,i]);return(0,Y.createElement)(En,{value:u},(0,Y.createElement)(Zn,X({},s,{ref:t}),(0,Y.createElement)(Zn,{className:l(oo)},n),(0,Y.createElement)(Xr,{className:d,isInteractive:!1,value:r?1:0}),(0,Y.createElement)(Xr,{className:d,isInteractive:!1,value:r})))}),"Card"),Io=tr("@media only screen and ( min-device-width: 40em ){&::-webkit-scrollbar{height:12px;width:12px;}&::-webkit-scrollbar-track{background-color:transparent;}&::-webkit-scrollbar-track{background:",Qr.colorScrollbarTrack,";border-radius:8px;}&::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:",Qr.colorScrollbarThumb,";border:2px solid rgba( 0, 0, 0, 0 );border-radius:7px;}&:hover::-webkit-scrollbar-thumb{background-color:",Qr.colorScrollbarThumbHover,";}}",""),No={name:"13udsys",styles:"height:100%"},xo={name:"7zq9w",styles:"scroll-behavior:smooth"},To={name:"q33xhg",styles:"overflow-x:auto;overflow-y:hidden"},Oo={name:"103x71s",styles:"overflow-x:hidden;overflow-y:auto"},Lo={name:"umwchj",styles:"overflow-y:auto"},Ao=Pn((function(e,t){const n=function(e){const{className:t,scrollDirection:n="y",smoothScroll:r=!1,...o}=Dn(e,"Scrollable"),a=An();return{...o,className:(0,Y.useMemo)((()=>a(No,Io,r&&xo,"x"===n&&To,"y"===n&&Oo,"auto"===n&&Lo,t)),[t,a,n,r])}}(e);return(0,Y.createElement)(Zn,X({},n,{ref:t}))}),"Scrollable"),Mo=Pn((function(e,t){const{isScrollable:n,...r}=function(e){const{className:t,isScrollable:n=!1,isShady:r=!1,size:o="medium",...a}=Dn(e,"CardBody"),i=An();return{...a,className:(0,Y.useMemo)((()=>i(ao,so,yo[o],r&&ho,"components-card__body",t)),[t,i,r,o]),isScrollable:n}}(e);return n?(0,Y.createElement)(Ao,X({},r,{ref:t})):(0,Y.createElement)(Zn,X({},r,{ref:t}))}),"CardBody");function Do(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(n),!0).forEach((function(t){Do(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ro(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jo(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zo(Object(n),!0).forEach((function(t){Fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Uo(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Vo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ho(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Vo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vo(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){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.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Yo=(0,V.createContext)({}),Wo=function(e,t,n){void 0===n&&(n=t.children);var r=(0,V.useContext)(Yo);return r.useCreateElement?r.useCreateElement(e,t,n):"string"==typeof e&&function(e){return"function"==typeof e}(n)?(t.children,n(Uo(t,["children"]))):(0,V.createElement)(e,t,n)};function Go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(n),!0).forEach((function(t){Go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qo(e){var t;if(!function(e){return"object"==typeof e&&null!=e}(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null===(t=n.constructor)||void 0===t?void 0:t.toString())===Object.toString()}function Ko(e,t){for(var n={},r={},o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];t.indexOf(i)>=0?n[i]=e[i]:r[i]=e[i]}return[n,r]}function Jo(e,t){if(void 0===t&&(t=[]),!Qo(e.state))return Ko(e,t);var n=Ko(e,[].concat(t,["state"])),r=n[0],o=n[1],a=r.state,i=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(r,["state"]);return[Zo(Zo({},a),i),o]}function Xo(e,t){if(e===t)return!0;if(!e)return!1;if(!t)return!1;if("object"!=typeof e)return!1;if("object"!=typeof t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var a=0,i=n;a<i.length;a++){var s=i[a];if(e[s]!==t[s])return!1}return!0}function ea(e){return"normalizePropsAreEqualInner"===e.name?e:function(t,n){return Qo(t.state)&&Qo(n.state)?e(Zo(Zo({},t.state),t),Zo(Zo({},n.state),n)):e(t,n)}}function ta(e){var t=e.as,n=e.useHook,r=e.memo,o=e.propsAreEqual,a=void 0===o?null==n?void 0:n.unstable_propsAreEqual:o,i=e.keys,s=void 0===i?(null==n?void 0:n.__keys)||[]:i,c=e.useCreateElement,l=void 0===c?Wo:c,d=function(e,r){var o=e.as,a=void 0===o?t:o,i=Uo(e,["as"]);if(n){var c,d=Jo(i,s),u=d[0],m=d[1],p=n(u,Bo({ref:r},m)),y=p.wrapElement,h=Uo(p,["wrapElement"]),f=(null===(c=a.render)||void 0===c?void 0:c.__keys)||a.__keys,_=f&&Jo(i,f)[0],g=_?Bo(Bo({},h),_):h,v=l(a,g);return y?y(v):v}return l(a,Bo({ref:r},i))};return d=function(e){return(0,V.forwardRef)(e)}(d),r&&(d=function(e,t){return(0,V.memo)(e,t)}(d,a&&ea(a))),d.__keys=s,d.unstable_propsAreEqual=ea(a||Xo),d}function na(e,t){(0,V.useDebugValue)(e);var n=(0,V.useContext)(Yo);return null!=n[e]?n[e]:t}function ra(e){var t,n,r,o=(r=e.compose,Array.isArray(r)?r:void 0!==r?[r]:[]),a=function(t,n){if(e.useOptions&&(t=e.useOptions(t,n)),e.name&&(t=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Options";(0,V.useDebugValue)(r);var o=na(r);return o?Bo(Bo({},t),o(t,n)):t}(e.name,t,n)),e.compose)for(var r,a=Ho(o);!(r=a()).done;)t=r.value.__useOptions(t,n);return t},i=function(t,n,r){if(void 0===t&&(t={}),void 0===n&&(n={}),void 0===r&&(r=!1),r||(t=a(t,n)),e.useProps&&(n=e.useProps(t,n)),e.name&&(n=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var r="use"+e+"Props";(0,V.useDebugValue)(r);var o=na(r);return o?o(t,n):n}(e.name,t,n)),e.compose)if(e.useComposeOptions&&(t=e.useComposeOptions(t,n)),e.useComposeProps)n=e.useComposeProps(t,n);else for(var i,s=Ho(o);!(i=s()).done;)n=(0,i.value)(t,n,!0);var c={},l=n||{};for(var d in l)void 0!==l[d]&&(c[d]=l[d]);return c};i.__useOptions=a;var s=o.reduce((function(e,t){return e.push.apply(e,t.__keys||[]),e}),[]);return i.__keys=[].concat(s,(null===(t=e.useState)||void 0===t?void 0:t.__keys)||[],e.keys||[]),i.unstable_propsAreEqual=e.propsAreEqual||(null===(n=o[0])||void 0===n?void 0:n.unstable_propsAreEqual)||Xo,i}var oa=ra({name:"Role",keys:["unstable_system"],propsAreEqual:function(e,t){var n=e.unstable_system,r=jo(e,["unstable_system"]),o=t.unstable_system,a=jo(t,["unstable_system"]);return!(n!==o&&!Xo(n,o))&&Xo(r,a)}}),aa=(ta({as:"div",useHook:oa}),ra({name:"Separator",compose:oa,keys:["orientation"],useOptions:function(e){var t=e.orientation;return Po({orientation:void 0===t?"horizontal":t},jo(e,["orientation"]))},useProps:function(e,t){return Po({role:"separator","aria-orientation":e.orientation},t)}})),ia=ta({as:"hr",memo:!0,useHook:aa});const sa=new RegExp(/-left/g),ca=new RegExp(/-right/g),la=new RegExp(/Left/g),da=new RegExp(/Right/g),ua=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,W.mapKeys)(e,((e,t)=>function(e){return"left"===e?"right":"right"===e?"left":sa.test(e)?e.replace(sa,"-right"):ca.test(e)?e.replace(ca,"-left"):la.test(e)?e.replace(la,"Right"):da.test(e)?e.replace(da,"Left"):e}(t)))};function ma(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return()=>t?(0,B.isRTL)()?tr(t,""):tr(e,""):(0,B.isRTL)()?tr(ua(e),""):tr(e,"")}ma.watch=()=>(0,B.isRTL)();const pa={vertical:{start:"marginLeft",end:"marginRight"},horizontal:{start:"marginTop",end:"marginBottom"}};var ya={name:"1u4hpl4",styles:"display:inline"};const ha=Gn("hr",{target:"e19on6iw0"})("border:0;margin:0;",(e=>{let{"aria-orientation":t="horizontal"}=e;return"vertical"===t?ya:void 0})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return tr({["vertical"===t?"borderRight":"borderBottom"]:"1px solid currentColor"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal"}=e;return tr({height:"vertical"===t?"auto":0,width:"vertical"===t?0:"auto"},"","")})," ",(e=>{let{"aria-orientation":t="horizontal",margin:n,marginStart:r,marginEnd:o}=e;return tr(ma({[pa[t].start]:or(null!=r?r:n),[pa[t].end]:or(null!=o?o:n)})(),"","")}),";"),fa=Pn((function(e,t){const n=Dn(e,"Divider");return(0,Y.createElement)(ia,X({as:ha},n,{ref:t}))}),"Divider"),_a=Pn((function(e,t){const n=function(e){const{className:t,...n}=Dn(e,"CardDivider"),r=An();return{...n,className:(0,Y.useMemo)((()=>r(io,co,"components-card__divider",t)),[t,r])}}(e);return(0,Y.createElement)(fa,X({},n,{ref:t}))}),"CardDivider"),ga=window.wp.apiFetch;var va=n.n(ga);const wa=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{fillRule:"evenodd",d:"M5.5 9.5v-2h13v2h-13zm0 3v4h13v-4h-13zM4 7a1 1 0 011-1h14a1 1 0 011 1v10a1 1 0 01-1 1H5a1 1 0 01-1-1V7z",clipRule:"evenodd"}));var ba=n(2247),Ea=n(8163);const $a=window.wp.domReady;var Sa=n.n($a);const Ca=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.wcpaySettings&&Object.assign(t,{is_test_mode:wcpaySettings.testMode,jetpack_connected:wcpaySettings.isJetpackConnected,wcpay_version:wcpaySettings.version,woo_country_code:wcpaySettings.connect.country}),Sa()((()=>{var n,r;(null!==(r=null===(n=null===wc||void 0===wc?void 0:wc.tracks)||void 0===n?void 0:n.recordEvent)&&void 0!==r?r:wcTracks.recordEvent)(e,t)}))},ka="https://cdn.sift.com/s.js",Ia="https://js.stripe.com/v3",Na={sift:e=>{let{beacon_key:t,session_id:n,user_id:r}=e;const o=window._sift=window._sift||[];if(o.push(["_setAccount",t]),o.push(["_setUserId",r]),o.push(["_setSessionId",n]),o.push(["_trackPageview"]),!document.querySelector(`[src="${ka}"]`)){const e=document.createElement("script");e.src=ka,e.async=!0,document.body.appendChild(e)}},stripe:()=>{if(!document.querySelector(`[src^="${Ia}"]`)){const e=document.createElement("script");e.src=Ia,e.async=!0,document.body.appendChild(e)}}},xa=["40em","52em","64em"],Ta={name:"zjik7",styles:"display:flex"},Oa={name:"qgaee5",styles:"display:block;max-height:100%;max-width:100%;min-height:0;min-width:0"},La={name:"82a6rk",styles:"flex:1"},Aa={name:"13nosa1",styles:">*{min-height:0;}"},Ma={name:"1pwxzk4",styles:">*{min-width:0;}"};function Da(e){const{align:t="center",className:n,direction:r="row",expanded:o=!0,gap:a=2,justify:i="space-between",wrap:s=!1,...c}=Dn(function(e){let{isReversed:t,...n}=e;return void 0!==t?(te()("Flex isReversed",{alternative:'Flex direction="row-reverse" or "column-reverse"',since:"5.9"}),{...n,direction:t?"row-reverse":"row"}):n}(e),"Flex"),l=function(e){const t=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{defaultIndex:t=0}=e;if("number"!=typeof t)throw new TypeError(`Default breakpoint index should be a number. Got: ${t}, ${typeof t}`);if(t<0||t>xa.length-1)throw new RangeError(`Default breakpoint index out of range. Theme has ${xa.length} breakpoints, got index ${t}`);const[n,r]=(0,Y.useState)(t);return(0,Y.useEffect)((()=>{const e=()=>{const e=xa.filter((e=>"undefined"!=typeof window&&window.matchMedia(`screen and (min-width: ${e})`).matches)).length;n!==e&&r(e)};return e(),"undefined"!=typeof window&&window.addEventListener("resize",e),()=>{"undefined"!=typeof window&&window.removeEventListener("resize",e)}}),[n]),n}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});if(!Array.isArray(e)&&"function"!=typeof e)return e;const n=e||[];return n[t>=n.length?n.length-1:t]}(Array.isArray(r)?r:[r]),d="string"==typeof l&&!!l.includes("column"),u="string"==typeof l&&l.includes("reverse"),m=An();return{...c,className:(0,Y.useMemo)((()=>{const e={};return e.Base=tr({alignItems:d?"normal":t,flexDirection:l,flexWrap:s?"wrap":void 0,justifyContent:i,height:d&&o?"100%":void 0,width:!d&&o?"100%":void 0,marginBottom:s?`calc(${or(a)} * -1)`:void 0},"",""),e.Items=tr(">*+*:not( marquee ){margin-top:",d?or(a):void 0,";",ma({marginLeft:d||u?void 0:or(a),marginRight:!d&&u?or(a):void 0})(),";}",""),e.WrapItems=tr(">*:not( marquee ){margin-bottom:",or(a),";",ma({marginLeft:!d&&u?or(a):void 0,marginRight:d||u?void 0:or(a)})(),";}>*:last-child:not( marquee ){",ma({marginLeft:!d&&u?0:void 0,marginRight:d||u?void 0:0})(),";}",""),m(Ta,e.Base,s?e.WrapItems:e.Items,d?Aa:Ma,n)}),[t,n,m,l,o,a,d,u,i,s,ma.watch()]),isColumn:d}}const Ra=(0,Y.createContext)({flexItemDisplay:void 0}),Pa=Pn((function(e,t){const{children:n,isColumn:r,...o}=Da(e);return(0,Y.createElement)(Ra.Provider,{value:{flexItemDisplay:r?"block":void 0}},(0,Y.createElement)(Zn,X({},o,{ref:t}),n))}),"Flex");function ja(e){const{className:t,display:n,isBlock:r=!1,...o}=Dn(e,"FlexItem"),a={},i=(0,Y.useContext)(Ra).flexItemDisplay;return a.Base=tr({display:n||i},"",""),{...o,className:An()(Oa,a.Base,r&&La,t)}}const Fa=Pn((function(e,t){const n=ja(e);return(0,Y.createElement)(Zn,X({},n,{ref:t}))}),"FlexItem");var za=n(457),Ba=n(5683),Ua=n(7132);const Va=function(e){const{icon:t,actions:n,children:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["icon","actions","children"]);o.className=Z()("wcpay-inline-notice",`wcpay-inline-${o.status}-notice`,o.className);let a=t;if(!0===a)switch(o.status){case"success":a=V.createElement(za.Z,null);break;case"error":case"warning":a=V.createElement(Ba.Z,null);break;default:a=V.createElement(Ua.Z,null)}const i="wcpay-inline-notice__action",s=null==n?void 0:n.map(((e,t)=>{var n,r;return"url"in e?V.createElement("a",{key:t,className:i,href:e.url},e.label):V.createElement(Jn,{key:t,className:i,onClick:e.onClick,isBusy:null!==(n=e.isBusy)&&void 0!==n&&n,disabled:null!==(r=e.disabled)&&void 0!==r&&r},e.label)}));return V.createElement(er,Object.assign({},o),V.createElement(Pa,{align:"center",justify:"flex-start"},a&&V.createElement(Fa,{className:`wcpay-inline-notice__icon wcpay-inline-${o.status}-notice__icon`},V.createElement(_n,{icon:a,size:24})),V.createElement(Fa,{className:`wcpay-inline-notice__content wcpay-inline-${o.status}-notice__content`},r,s&&V.createElement(Pa,{className:"wcpay-inline-notice__content__actions",align:"baseline",justify:"flex-start",gap:4},s))))};class Ha extends Y.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){this.props.onError&&this.props.onError(e,t)}render(){return this.state.error?(0,Y.createElement)(Va,{icon:!0,status:"error",isDismissible:!1},(0,B.__)("There was an error rendering this view. Please contact support for assistance if the problem persists.","woocommerce-payments"),(0,Y.createElement)("br",null),this.state.error.toString()):this.props.children}}const Ya=Ha,Wa=e=>{let{children:t,maxWidth:n,isNarrow:r,className:o=""}=e;const a=n?{maxWidth:n}:void 0,i=[o,"woocommerce-payments-page"];return r&&i.push("is-narrow"),(0,Y.useEffect)((()=>{(e=>{for(const t in e){const n=Na[t];n&&e[t]&&n(e[t])}})("undefined"!=typeof wcpaySettings?wcpaySettings.fraudServices:[])}),[]),V.createElement("div",{className:i.join(" "),style:a},V.createElement(Ya,null,t))},Ga=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M16.7 7.1l-6.3 8.5-3.3-2.5-.9 1.2 4.5 3.4L17.9 8z"})),qa=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M12 3.2c-4.8 0-8.8 3.9-8.8 8.8 0 4.8 3.9 8.8 8.8 8.8 4.8 0 8.8-3.9 8.8-8.8 0-4.8-4-8.8-8.8-8.8zm0 16c-4 0-7.2-3.3-7.2-7.2C4.8 8 8 4.8 12 4.8s7.2 3.3 7.2 7.2c0 4-3.2 7.2-7.2 7.2zM11 17h2v-6h-2v6zm0-8h2V7h-2v2z"}));var Za=n(4006);const Qa={success:Ga,error:Ba.Z,warning:Ba.Z,info:qa},Ka=e=>{let{icon:t,children:n,actions:r=[],className:o,status:a="info",isDismissible:i=!0,onRemove:s}=e;((e,t)=>{const n="string"==typeof t?t:(0,Y.renderToString)(t),r="error"===e?"assertive":"polite";(0,Y.useEffect)((()=>{n&&(0,Q.speak)(n,r)}),[n,r])})(a,n);const c=!0===t?Qa[a]:t,l=Z()(o,"wcpay-banner-notice","is-"+a);return H().createElement("div",{className:l},c&&H().createElement(_n,{icon:c,className:"wcpay-banner-notice__icon"}),H().createElement("div",{className:"wcpay-banner-notice__content"},n,r.length>0&&H().createElement("div",{className:"wcpay-banner-notice__actions"},r.map(((e,t)=>{let{className:n,label:r,variant:o,onClick:a,url:i,urlTarget:s}=e,c=o;return"primary"!==o&&(c=i?"link":"secondary"),H().createElement(Jn,{key:t,href:i,variant:c,onClick:i?void 0:a,className:n,target:s},r)})))),i&&H().createElement(Jn,{className:"wcpay-banner-notice__dismiss",icon:Za.Z,label:(0,B.__)("Dismiss this notice","woocommerce-payments"),onClick:()=>null==s?void 0:s(),showTooltip:!1}))},Ja={button:(0,B.__)("Finish setup","woocommerce-payments"),heading:e=>(0,B.sprintf)((0,B.__)("Hi%s, run your business and manage your payments all in one place, with no setup costs or monthly fees.","woocommerce"),e?` ${e}`:""),usp1:(0,B.__)("Offer card payments, Apple Pay, iDeal, Affirm, Afterpay, and accept in-person payments with the Woo mobile app.","woocommerce-payments"),usp2:(0,B.__)("Sell to international markets and accept over 135 currencies with local payment methods.","woocommerce-payments"),usp3:(0,B.__)("Earn recurring revenue and get deposits into your bank account.","woocommerce-payments"),agreement:(0,Y.createInterpolateElement)((0,B.__)("By clicking “Finish setupâ€, you agree to the <a1>Terms of Service</a1> and acknowledge that you have read our <a2>Privacy Policy</a2>.","woocommerce-payments"),{a1:H().createElement("a",{href:"https://wordpress.com/tos",target:"_blank",rel:"noopener noreferrer"}),a2:H().createElement("a",{href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer"})}),agreementWithWooPay:(0,Y.createInterpolateElement)((0,B.__)("By clicking “Finish setupâ€, you agree to the <a1>Terms of Service</a1> (including WooPay <a3>merchant terms</a3>) and acknowledge that you have read our <a2>Privacy Policy</a2>.","woocommerce-payments"),{a1:H().createElement("a",{href:"https://wordpress.com/tos",target:"_blank",rel:"noopener noreferrer"}),a2:H().createElement("a",{href:"https://automattic.com/privacy/",target:"_blank",rel:"noopener noreferrer"}),a3:H().createElement("a",{href:"https://wordpress.com/tos/#more-woopay-specifically",target:"_blank",rel:"noopener noreferrer"})}),paymentMethods:(0,B.__)("WooPayments is pre-integrated with popular payment options:","woocommerce-payments"),infoNotice:{description:(0,B.__)("In order to receive deposits with WooPayments, you'll need to share business details to verify who you are.","woocommerce-payments"),button:(0,B.__)("Learn more about how to receive deposits.","woocommerce-payments")},infoModal:{title:(0,B.sprintf)((0,B.__)("Verifying your information with %s","woocommerce-payments"),"WooPayments"),whyWeAsk:{heading:(0,B.__)("Why we ask for personal financial information","woocommerce-payments"),description:(0,B.sprintf)((0,B.__)("As you continue the process of signing up for %s, we'll ask for information about your business, including the business owner's date of birth and tax ID number. We know you may wonder why we ask for this information, and how it will be used. The “Know Your Customer†process, explained below, helps us provide a safe, ethical environment for all financial transactions.","woocommerce-payments"),"WooPayments")},whatIsKyc:{heading:(0,B.__)("What is “Know Your Customerâ€?","woocommerce-payments"),description:(0,B.__)("“Know Your Customer†standards are used by banks and other financial institutions to confirm that customers are who they say they are. By confirming their customers' identities, banks and financial institutions can help keep transactions safe from fraud and other suspicious activities.","woocommerce-payments")},whyShareInfo:{heading:(0,B.__)("Why do I have to share this information?","woocommerce-payments"),description:(0,B.__)("Before we build a payment relationship with a customer, we ask for the information listed above to validate the business owner's identity and tax ID number, and to ensure that we can connect the listed bank account with the business itself.","woocommerce-payments"),description2:(0,B.__)("The ultimate goal of the “Know Your Customer†process is to help your business get up and running with payments as soon as possible while protecting your business and your customers. We follow the same regulations as other financial institutions so that we can ensure we operate in an ethical and trustworthy manner. We want to protect your business and the payments that we manage for you. The “Know Your Customer†process helps us protect you.","woocommerce-payments")},whatElse:{heading:(0,B.__)("What else should I keep in mind while completing this process?","woocommerce-payments"),description:(0,B.sprintf)((0,B.__)("If you're setting up %s for someone else, it's best to have that person complete the account creation process. As you can see above, we ask for very specific information about the business owner - and you might not have all the details at hand. It's not always possible to change account information once it's been saved, especially if the site accepts live transactions before the correct account information is entered.","woocommerce-payments"),"WooPayments")},isMyDataSafe:{heading:(0,B.sprintf)((0,B.__)("Is my data safe with %s?","woocommerce-payments"),"WooPayments"),description:(0,B.sprintf)((0,B.__)("We take every step required to safeguard your personal data. %s is built in partnership with Stripe to store your data in a safe and secure manner.","woocommerce-payments"),"WooPayments")},howQuickly:{heading:(0,B.__)("How quickly will you confirm my identity and allow me to process payments?","woocommerce-payments"),description:(0,B.__)("We'll do our best to work with Stripe to confirm your identity as quickly as we can. Typically, we'll confirm your application within a couple of days.","woocommerce-payments")},whatInformation:{heading:(0,B.__)("What information should I have at hand before I start the “Know Your Customer†process?","woocommerce-payments"),description:(0,B.__)("Here's a brief list of the information you'll need to finish payment signup:")},businessOwnerInfo:{heading:(0,B.__)("Business owner info:","woocommerce-payments"),fields:[(0,B.__)("Legal name","woocommerce-payments"),(0,B.__)("Date of birth","woocommerce-payments"),(0,B.__)("Home address","woocommerce-payments"),(0,B.__)("Email address","woocommerce-payments"),(0,B.__)("Mobile phone number","woocommerce-payments"),(0,B.__)("Bank account information","woocommerce-payments"),(0,B.__)("Social Security number (SSN) or Taxpayer Identification Number","woocommerce-payments")]},businessInfo:{heading:(0,B.__)("Business info:","woocommerce-payments"),fields:[(0,B.__)("Country where your business is based","woocommerce-payments "),(0,B.__)("Type of business","woocommerce-payments "),(0,B.__)("Industry","woocommerce-payments "),(0,B.__)("Company address","woocommerce-payments "),(0,B.__)("Company phone number","woocommerce-payments "),(0,B.__)("Company URL","woocommerce-payments ")]}},stepsHeading:(0,B.__)("You’re only steps away from getting paid","woocommerce-payments"),step1:{heading:(0,B.__)("Create and connect your account","woocommerce-payments"),description:(0,B.__)("To ensure safe and secure transactions, a WordPress.com account is required.","woocommerce-payments")},step2:{heading:(0,B.__)("Provide a few business details","woocommerce-payments"),description:(0,B.__)("Next we’ll ask you to verify your business and payment details to enable deposits.","woocommerce-payments")},step3:{heading:(0,B.__)("Setup complete!","woocommerce-payments"),description:(0,B.sprintf)((0,B.__)("You’re ready to start using the features and benefits of %s.","woocommerce-payments"),"WooPayments")},onboardingDisabled:(0,B.__)("We've temporarily paused new account creation. We'll notify you when we resume!","woocommerce-payments"),incentive:{limitedTimeOffer:(0,B.__)("Limited time offer","woocommerce-payments"),details:(0,B.__)("Discount will be applied to payments processed via WooPayments upon completion of installation, setup, and connection.","woocommerce-payments"),termsAndConditions:e=>(0,Y.createInterpolateElement)((0,B.__)("*See <a>Terms and Conditions</a> for details.","woocommerce-payments"),{a:H().createElement("a",{href:e,target:"_blank",rel:"noopener noreferrer"})}),error:(0,B.__)("There was an error applying the promotion. Please contact support for assistance if the problem persists","woocommerce-payments")},nonSupportedCountry:(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("<b>%1$s is not currently available in your location</b>. To be eligible for %1$s, your business address must be in one of the following <a>supported countries</a>.","woocommerce-payments"),"WooPayments"),{b:H().createElement("b",null),a:H().createElement("a",{href:"https://woo.com/document/woopayments/compatibility/countries/",target:"_blank",rel:"noopener noreferrer"})})};var Xa=n(1270),ei=n(7077),ti=n(6120),ni=n(3516),ri=n(8125),oi=n(725),ai=n(3116),ii=n(5962),si=n(2851),ci=n(1274),li=n(5085),di=n(6752),ui=n(6774),mi=n(9464),pi=n(3237),yi=n(6384),hi=n(5086),fi=n(2765),_i=n(5994),gi=n(2738),vi=n(2464),wi=n(6349),bi=n(7884);const Ei=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return r=>{var{className:o}=r,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["className"]);return H().createElement("img",Object.assign({className:Z()("payment-method__icon",n?"":"no-outline",o),src:e,alt:t},a))}},$i=Ei(si,(0,B.__)("Affirm","woocommerce-payments")),Si=Ei(ci,(0,B.__)("Afterpay","woocommerce-payments")),Ci=Ei(li,(0,B.__)("Clearpay","woocommerce-payments")),ki=Ei(yi,(0,B.__)("American Express","woocommerce-payments")),Ii=Ei(fi,(0,B.__)("Apple Pay","woocommerce-payments")),Ni=Ei(Xa,(0,B.__)("Bancontact","woocommerce-payments")),xi=Ei(ii,(0,B.__)("BECS Direct Debit","woocommerce-payments")),Ti=Ei(bi,(0,B.__)("Credit card / Debit card","woocommerce-payments"),!1),Oi=Ei(gi,(0,B.__)("Diners Club","woocommerce-payments")),Li=Ei(ei,(0,B.__)("BECS Direct Debit","woocommerce-payments")),Ai=Ei(ti,(0,B.__)("Giropay","woocommerce-payments")),Mi=Ei(_i,(0,B.__)("Google Pay","woocommerce-payments")),Di=Ei(ai,(0,B.__)("iDEAL","woocommerce-payments")),Ri=Ei(di,(0,B.__)("JCB","woocommerce-payments")),Pi=Ei(ui,(0,B.__)("Klarna","woocommerce-payments")),ji=(Ei(wi,(0,B.__)("Link","woocommerce-payments")),Ei(pi,(0,B.__)("Mastercard","woocommerce-payments"))),Fi=Ei(oi,(0,B.__)("Przelewy24 (P24)","woocommerce-payments")),zi=Ei(ri,(0,B.__)("SEPA Direct Debit","woocommerce-payments")),Bi=Ei(ni,(0,B.__)("Sofort","woocommerce-payments")),Ui=Ei(vi,(0,B.__)("UnionPay","woocommerce-payments")),Vi=Ei(mi,(0,B.__)("Visa","woocommerce-payments")),Hi=Ei(hi,(0,B.__)("WooPay","woocommerce-payments")),Yi=()=>{var e;return H().createElement(H().Fragment,null,H().createElement("p",null,Ja.paymentMethods),H().createElement("div",{className:"connect-account-page__payment-methods__icons"},H().createElement(Vi,null),H().createElement(ji,null),H().createElement(ki,null),wcpaySettings.isWooPayStoreCountryAvailable&&H().createElement(Hi,null),H().createElement(Ii,null),H().createElement(Mi,null),H().createElement(Oi,null),H().createElement(Ui,null),H().createElement(Ri,null),H().createElement($i,null),"GB"===(null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.connect)||void 0===e?void 0:e.country)?H().createElement(Ci,null):H().createElement(Si,null),H().createElement("span",null,"& more.")))};var Wi=n(7856);const Gi=e=>{return H().createElement("div",{className:"connect-account-page__incentive"},H().createElement("div",{className:"connect-account-page__incentive-pill"},Ja.incentive.limitedTimeOffer),H().createElement("h2",{dangerouslySetInnerHTML:(t=e.description+"*",{__html:(0,Wi.sanitize)(t,{ALLOWED_TAGS:["a","b","em","i","strong","p","br"],ALLOWED_ATTR:["target","href","rel","name","download"]})})}),H().createElement("p",null,Ja.incentive.details),H().createElement("p",null,Ja.incentive.termsAndConditions(e.tc_url)));var t},qi=window.wp.keycodes,Zi=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Qi=new Set(["alert","status","log","marquee","timer"]);let Ki=[],Ji=!1;let Xi=0;const es=(0,Y.forwardRef)((function e(t,n){const{bodyOpenClassName:r="modal-open",role:o="dialog",title:a=null,focusOnMount:i=!0,shouldCloseOnEsc:s=!0,shouldCloseOnClickOutside:c=!0,isDismissible:l=!0,aria:d={labelledby:null,describedby:null},onRequestClose:u,icon:m,closeButtonLabel:p,children:y,style:h,overlayClassName:f,className:_,contentLabel:g,onKeyDown:v,isFullScreen:w=!1,__experimentalHideHeader:b=!1}=t,E=(0,Y.useRef)(),$=(0,ne.useInstanceId)(e),S=a?`components-modal-header-${$}`:d.labelledby,C=(0,ne.useFocusOnMount)(i),k=(0,ne.useConstrainedTabbing)(),I=(0,ne.useFocusReturn)(),N=(0,ne.__experimentalUseFocusOutside)(u);return(0,Y.useEffect)((()=>(Xi++,1===Xi&&(function(e){if(Ji)return;const t=document.body.children;(0,W.forEach)(t,(t=>{t!==e&&function(e){const t=e.getAttribute("role");return!("SCRIPT"===e.tagName||e.hasAttribute("aria-hidden")||e.hasAttribute("aria-live")||Qi.has(t))}(t)&&(t.setAttribute("aria-hidden","true"),Ki.push(t))})),Ji=!0}(E.current),document.body.classList.add(r)),()=>{Xi--,0===Xi&&(document.body.classList.remove(r),Ji&&((0,W.forEach)(Ki,(e=>{e.removeAttribute("aria-hidden")})),Ki=[],Ji=!1))})),[]),(0,Y.createPortal)((0,Y.createElement)("div",{ref:(0,ne.useMergeRefs)([E,n]),className:Z()("components-modal__screen-overlay",f),onKeyDown:function(e){s&&e.keyCode===qi.ESCAPE&&!e.defaultPrevented&&(e.preventDefault(),u&&u(e))}},(0,Y.createElement)(Gt,{document},(0,Y.createElement)("div",X({className:Z()("components-modal__frame",_,{"is-full-screen":w}),style:h,ref:(0,ne.useMergeRefs)([k,I,C]),role:o,"aria-label":g,"aria-labelledby":g?null:S,"aria-describedby":d.describedby,tabIndex:"-1"},c?N:{},{onKeyDown:v}),(0,Y.createElement)("div",{className:Z()("components-modal__content",{"hide-header":b}),role:"document"},!b&&(0,Y.createElement)("div",{className:"components-modal__header"},(0,Y.createElement)("div",{className:"components-modal__header-heading-container"},m&&(0,Y.createElement)("span",{className:"components-modal__icon-container","aria-hidden":!0},m),a&&(0,Y.createElement)("h1",{id:S,className:"components-modal__header-heading"},a)),l&&(0,Y.createElement)(Jn,{onClick:u,icon:Zi,label:p||(0,B.__)("Close dialog")})),y)))),document.body)})),ts=()=>H().createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"-4 -4 24 24"},H().createElement("path",{fillRule:"evenodd",d:"M8 1.33a4.67 4.67 0 0 0-2.67 8.5v1.5c0 .37.3.67.67.67h4c.37 0 .67-.3.67-.67v-1.5A4.66 4.66 0 0 0 8 1.33ZM6 14c0 .37.3.67.67.67h2.66c.37 0 .67-.3.67-.67v-.67H6V14Zm3.33-4.87.57-.4a3.33 3.33 0 1 0-3.8 0l.57.4v1.54h2.66V9.13Z",clipRule:"evenodd"})),ns=e=>{let{color:t,className:n,children:r}=e;return H().createElement("div",{className:Z()("wcpay-component-tip-box",t,n)},H().createElement(ts,null),H().createElement("div",{className:"wcpay-component-tip-box__content"},r))},rs=e=>e.map((e=>H().createElement("li",{key:e},e))),os=()=>{const[e,t]=(0,V.useState)(!1),n=()=>t(!1);return H().createElement(H().Fragment,null,H().createElement(ns,{color:"gray"},Ja.infoNotice.description," ",H().createElement(Jn,{variant:"link",onClick:()=>{Ca("wcpay_connect_account_kyc_modal_opened"),t(!0)}},Ja.infoNotice.button)),e&&H().createElement(es,{title:Ja.infoModal.title,isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:n,className:"connect-account-page__info-modal"},H().createElement("div",null,H().createElement("h4",null,Ja.infoModal.whyWeAsk.heading," "),H().createElement("p",null,Ja.infoModal.whyWeAsk.description),H().createElement("h4",null,Ja.infoModal.whatIsKyc.heading," "),H().createElement("p",null,Ja.infoModal.whatIsKyc.description),H().createElement("h4",null,Ja.infoModal.whyShareInfo.heading," "),H().createElement("p",null,Ja.infoModal.whyShareInfo.description),H().createElement("p",null,Ja.infoModal.whyShareInfo.description2),H().createElement("h4",null,Ja.infoModal.whatElse.heading," "),H().createElement("p",null,Ja.infoModal.whatElse.description),H().createElement("h4",null,Ja.infoModal.isMyDataSafe.heading," "),H().createElement("p",null,Ja.infoModal.isMyDataSafe.description),H().createElement("h4",null,Ja.infoModal.howQuickly.heading," "),H().createElement("p",null,Ja.infoModal.howQuickly.description),H().createElement("h4",null,Ja.infoModal.whatInformation.heading," "),H().createElement("p",null,Ja.infoModal.whatInformation.description),H().createElement(er,{status:"warning",isDismissible:!1},H().createElement("b",null,Ja.infoModal.businessOwnerInfo.heading),H().createElement("ul",null,rs(Ja.infoModal.businessOwnerInfo.fields))),H().createElement(er,{status:"warning",isDismissible:!1},H().createElement("b",null,Ja.infoModal.businessInfo.heading),H().createElement("ul",null,rs(Ja.infoModal.businessInfo.fields)))),H().createElement("hr",null),H().createElement("div",{className:"connect-account-page__info-modal__footer"},H().createElement(Jn,{variant:"primary",onClick:n},(0,B.__)("Got it","woocommerce-payments")))))};function as(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function is(e,t){let n,r,o=[];for(let a=0;a<e.length;a++){const i=e[a];if("string"!==i.type){if(void 0===t[i.value])throw new Error(`Invalid interpolation, missing component node: \`${i.value}\``);if("object"!=typeof t[i.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${i.value}\``);if("componentClose"===i.type)throw new Error(`Missing opening component token: \`${i.value}\``);if("componentOpen"===i.type){n=t[i.value],r=a;break}o.push(t[i.value])}else o.push(i.value)}if(n){const a=function(e,t){const n=t[e];let r=0;for(let o=e+1;o<t.length;o++){const e=t[o];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return o;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(r,e),i=is(e.slice(r+1,a),t),s=(0,V.cloneElement)(n,{},i);if(o.push(s),a<e.length-1){const n=is(e.slice(a+1),t);o=o.concat(n)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,V.createElement)(V.Fragment,null,...o)}function ss(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(as)}(t);try{return is(o,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}const cs=window.wc.components,ls=e=>(0,Y.createElement)(cs.Link,X({},e,{href:"https://woo.com/document/woopayments/compatibility/countries/",target:"_blank",rel:"noopener noreferrer",type:"external"})),ds=e=>{let{countries:t,onDeclined:n,onConfirmed:r}=e;const[o,a]=(0,Y.useState)(!0),[i,s]=(0,Y.useState)(!1);if(!o)return null;const c=()=>{a(!1),n()},l=ss({mixedString:(0,B.sprintf)((0,B.__)("It appears you're attempting to set up %1$s from an unsupported country. In order to complete the set up of %1$s, your store is required to have a business entity in one of the following countries: {{list /}} {{link}}Learn more{{/link}} about setting up business entities in foreign countries.","woocommerce-payments"),"WooPayments"),components:{link:(0,Y.createElement)(ls,null),list:(0,Y.createElement)(cs.List,{items:t})}});return(0,Y.createElement)(es,{title:"WooPayments",isDismissible:!0,shouldCloseOnClickOutside:!0,shouldCloseOnEsc:!0,onRequestClose:c,className:"woocommerce-payments__onboarding_location_check-modal"},(0,Y.createElement)("div",{className:"woocommerce-payments__onboarding_location_check-wrapper"},(0,Y.createElement)("div",{className:"woocommerce-payments__onboarding_location_check-modal-message"},l),(0,Y.createElement)("div",{className:"woocommerce-payments__onboarding_location_check-footer"},(0,Y.createElement)(Jn,{isSecondary:!0,onClick:()=>{s(!0),r()},isBusy:i},(0,B.__)("Continue","woocommerce-payments")),(0,Y.createElement)(Jn,{isPrimary:!0,onClick:c,disabled:i},(0,B.__)("Cancel","woocommerce-payments")))))};var us=n(1948);const ms=()=>{var e,t,n;const r=null===(t=null===(e=wcSettings.admin)||void 0===e?void 0:e.currentUserData)||void 0===t?void 0:t.first_name,o=wcpaySettings.connectIncentive,a=null===(n=wcpaySettings.progressiveOnboarding)||void 0===n?void 0:n.isNewFlowEnabled,[i,s]=(0,V.useState)(wcpaySettings.errorMessage),[c,l]=(0,V.useState)(!1),{connectUrl:d,connect:{availableCountries:u,country:m}}=wcpaySettings,p=!!u[m];return(0,V.useEffect)((()=>{Ca("page_view",Object.assign({path:"payments_connect_v2"},o&&{incentive_id:o.id}))}),[]),H().createElement(Wa,{isNarrow:!0,className:"connect-account-page"},i&&H().createElement(er,{className:"wcpay-connect-error-notice",status:"error",isDismissible:!1},i),wcpaySettings.onBoardingDisabled?H().createElement(ko,null,H().createElement(Mo,null,Ja.onboardingDisabled)):H().createElement(H().Fragment,null,!p&&H().createElement(Ka,{status:"error",isDismissible:!1},Ja.nonSupportedCountry),H().createElement(ko,null,H().createElement("div",{className:"connect-account-page__heading"},H().createElement("img",{src:us,alt:"logo"}),H().createElement("h2",null,Ja.heading(r))),H().createElement("div",{className:"connect-account-page__content"},H().createElement("div",{className:"connect-account-page__content-usp"},H().createElement(_n,{icon:wa}),Ja.usp1,H().createElement(_n,{icon:ba.Z}),Ja.usp2,H().createElement(_n,{icon:Ea.Z}),Ja.usp3),H().createElement(Jn,{variant:"primary",isBusy:c,disabled:c,onClick:()=>{return e=void 0,t=void 0,r=function*(){if(l(!0),Ca("wcpay_connect_account_clicked",Object.assign({wpcom_connection:wcpaySettings.isJetpackConnected?"Yes":"No",is_new_onboarding_flow:a},o&&{incentive_id:o.id})),o)try{const e=yield va()({path:`/wc-analytics/admin/notes/experimental-activate-promo/${o.id}`,method:"POST"});if(!(null==e?void 0:e.success))throw new Error}catch(e){s(Ja.incentive.error)}if(!p)return(()=>{const e=Object.values(u).sort().map((e=>({title:e}))),t=document.createElement("div");t.id="wcpay-onboarding-location-check-container",(0,Y.render)(H().createElement(ds,{countries:e,onDeclined:()=>{l(!1)},onConfirmed:()=>{window.location.href=d}}),t),document.body.appendChild(t)})();window.location.href=d},new((n=void 0)||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}},Ja.button),H().createElement("p",null,wcpaySettings.isWooPayStoreCountryAvailable?Ja.agreementWithWooPay:Ja.agreement)),H().createElement(_a,null),H().createElement("div",{className:"connect-account-page__payment-methods"},H().createElement(Yi,null))),o&&H().createElement(Gi,Object.assign({},o)),H().createElement(ko,{className:"connect-account-page__details"},H().createElement("h2",null,Ja.stepsHeading),H().createElement(os,null),H().createElement("div",{className:"connect-account-page__steps"},H().createElement("div",{className:"connect-account-page__step"},H().createElement("span",null,"1"),H().createElement("h3",null,Ja.step1.heading),H().createElement("p",null,Ja.step1.description)),H().createElement("div",{className:"connect-account-page__step"},H().createElement("span",null,"2"),H().createElement("h3",null,Ja.step2.heading),H().createElement("p",null,Ja.step2.description)),H().createElement("div",{className:"connect-account-page__step"},H().createElement("span",null,"3"),H().createElement("h3",null,Ja.step3.heading),H().createElement("p",null,Ja.step3.description))))))},ps=window.wp.data,ys=window.wp.url,hs=window.moment;var fs=n.n(hs);const _s=window.wp.date,gs="/wc/v3/payments",vs="wc/payments",ws=window.wc.number,bs=e=>(0,ys.addQueryArgs)("admin.php",e),Es=e=>{const t=`${wpApiSettings.root.replace(/\/$/,"")}`;return(0,ys.addQueryArgs)(`${t}${gs}/documents/${e}`,{_wpnonce:wpApiSettings.nonce})},$s=()=>bs({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"}),Ss=e=>(0,W.capitalize)(e).replace(/_/g," "),Cs=function(e){const t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?fs()(e).endOf("day").utc().toISOString():fs()(e).startOf("day").utc().toISOString();return e&&(0,_s.dateI18n)("Y-m-d H:i:s",t,!0)},ks=e=>{const t=document.documentElement.lang,n={thousandSeparator:","};return["fr","pl"].some((e=>t.startsWith(e)))?n.thousandSeparator=" ":"de-CH"===t?n.thousandSeparator="'":["de","nl","it","es","pt"].some((e=>t.startsWith(e)))&&(n.thousandSeparator="."),(0,W.partial)(ws.numberFormat,n)(e)},Is=()=>{var e,t,n;return"undefined"==typeof wcpaySettings||null!==(e=null===(t=wcpaySettings)||void 0===t||null===(n=t.reporting)||void 0===n?void 0:n.exportModalDismissed)&&void 0!==e&&e},Ns=()=>{var e;return"undefined"==typeof wcpaySettings||"en_US"===(null===(e=wcpaySettings.locale)||void 0===e?void 0:e.code)},xs=(e,t)=>{let n="en_US";return Ns()?n:("undefined"!=typeof wcpaySettings&&(n=null!==(r=null===(o=wcpaySettings)||void 0===o||null===(a=o.locale)||void 0===a?void 0:a.code)&&void 0!==r?r:n),""!==e?e:null!=t?t:n);var r,o,a},Ts={documents:(0,B.__)("document","woocommerce-payments"),deposits:(0,B.__)("deposit","woocommerce-payments"),disputes:(0,B.__)("dispute","woocommerce-payments"),loans:(0,B.__)("loan","woocommerce-payments"),payments:(0,B.__)("order","woocommerce-payments"),transactions:(0,B.__)("order","woocommerce-payments")},Os={documents:(0,B.__)("created","woocommerce-payments"),deposits:(0,B.__)("created","woocommerce-payments"),disputes:(0,B.__)("created","woocommerce-payments"),loans:(0,B.__)("created","woocommerce-payments"),payments:(0,B.__)("placed","woocommerce-payments"),transactions:(0,B.__)("placed","woocommerce-payments")},Ls=e=>{let{currentPage:t,actions:n,isDetailsView:r=!1,isDevMode:o=!1}=e;return function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"undefined"==typeof wcpaySettings?e:"1"===wcpaySettings.testMode||e}()?H().createElement(Ka,{status:"warning",isDismissible:!1,actions:n},((e,t,n)=>{switch(e){case"overview":return n?H().createElement(H().Fragment,null,ss({mixedString:(0,B.sprintf)((0,B.__)("{{strong}}%1$s is in sandbox mode.{{/strong}} You need to set up a live %1$s account before you can accept real transactions.","woocommerce-payments"),"WooPayments"),components:{strong:H().createElement("strong",null)}})):H().createElement(H().Fragment,null,ss({mixedString:(0,B.sprintf)((0,B.__)("{{strong}}%1$s is in test mode.{{/strong}} All transactions will be simulated. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),"WooPayments"),components:{strong:H().createElement("strong",null),learnMoreLink:H().createElement(cs.Link,{href:"https://woo.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer"})}}));case"documents":case"deposits":case"disputes":case"payments":case"loans":case"transactions":return t?H().createElement(H().Fragment,null,ss({mixedString:(0,B.sprintf)((0,B._n)("%1$s was in test mode when this %2$s was %3$s. To view live %2$ss, disable test mode in {{settingsLink}}%1$s settings{{/settingsLink}}.","%1$s was in test mode when these %2$ss were %3$s. To view live %2$ss, disable test mode in {{settingsLink}}%1$s settings{{/settingsLink}}.","deposits"===e?2:1,"woocommerce-payments"),"WooPayments",Ts[e],Os[e]),components:{settingsLink:H().createElement("a",{href:$s()})}})):H().createElement(H().Fragment,null,ss({mixedString:(0,B.sprintf)((0,B.__)("Viewing test %1$s. To view live %1s, disable test mode in {{settingsLink}}%2s settings{{/settingsLink}}.","woocommerce-payments"),e,"WooPayments"),components:{settingsLink:H().createElement("a",{href:$s()})}}))}})(t,r,o)):null},As=e=>{let{monthlyAnchor:t,capitalize:n=!0}=e;const r=fs().locale().startsWith("en")?"en":fs().locale();let o=fs()().locale(r).date(t).format("Do");return 31===t&&(o=(0,B.__)("Last day of the month","woocommerce-payments")),n||(o=o.toLowerCase()),o},Ms=e=>{let{depositsSchedule:t,showNextDepositDate:n}=e;const r=(e=>{const t=fs().locale().startsWith("en")?"en":fs().locale(),n="MMMM Do, YYYY",r=fs()().locale(t),o=r.clone();switch(e.interval){case"daily":return o.add(1,"days").format(n);case"weekly":const t=r.day(e.weekly_anchor);return(t.isAfter(o,"day")?t:t.add(1,"weeks")).format(n);case"monthly":const a=r.clone();return o.date()>=e.monthly_anchor&&a.date(1).add(1,"months"),a.daysInMonth()<e.monthly_anchor?a.endOf("month"):a.date(e.monthly_anchor),a.format(n);default:return(0,B.__)("—","woocommerce-payments")}})(t),o=n?(0,B.sprintf)((0,B.__)(" – your next deposit is scheduled for {{strong}}%s{{/strong}}","woocommerce-payments"),r):"";switch(t.interval){case"daily":return ss({mixedString:(0,B.sprintf)((0,B.__)("Available funds are automatically dispatched {{strong}}every day{{/strong}}%s.","woocommerce-payments"),o),components:{strong:H().createElement("strong",null)}});case"weekly":const e=fs()().locale("en").day(t.weekly_anchor).locale(fs().locale()).format("dddd");return ss({mixedString:(0,B.sprintf)((0,B.__)("Available funds are automatically dispatched {{strong}}every %1$s{{/strong}}%2$s.","woocommerce-payments"),e,o),components:{strong:H().createElement("strong",null)}});case"monthly":const n=t.monthly_anchor;return ss(31===n?{mixedString:(0,B.sprintf)((0,B.__)("Available funds are automatically dispatched {{strong}}on the last day of every month{{/strong}}%s.","woocommerce-payments"),o),components:{strong:H().createElement("strong",null)}}:{mixedString:(0,B.sprintf)((0,B.__)("Available funds are automatically dispatched {{strong}}on the %1$s of every month{{/strong}}%2$s.","woocommerce-payments"),As({monthlyAnchor:n,capitalize:!1}),o),components:{strong:H().createElement("strong",null)}});default:return H().createElement(H().Fragment,null)}},Ds=window.wp.dataControls,Rs={SET_DEPOSIT:"SET_DEPOSIT",SET_DEPOSITS_OVERVIEW:"SET_DEPOSITS_OVERVIEW",SET_ERROR_FOR_DEPOSITS_OVERVIEW:"SET_ERROR_FOR_DEPOSITS_OVERVIEW",SET_DEPOSITS:"SET_DEPOSITS",SET_DEPOSITS_COUNT:"SET_DEPOSITS_COUNT",SET_ERROR_FOR_DEPOSIT_QUERY:"SET_ERROR_FOR_DEPOSIT_QUERY",SET_DEPOSITS_SUMMARY:"SET_DEPOSITS_SUMMARY",SET_ERROR_FOR_DEPOSITS_SUMMARY:"SET_ERROR_FOR_DEPOSITS_SUMMARY",SET_INSTANT_DEPOSIT:"SET_INSTANT_DEPOSIT",SET_ALL_DEPOSITS_OVERVIEWS:"SET_ALL_DEPOSITS_OVERVIEWS",SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:"SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS"},Ps=e=>JSON.stringify(e,Object.keys(e).sort()),js={byId:{},queries:{},count:0,instant:{}},Fs=e=>e&&e.deposits||{},zs=(e,t)=>(Fs(e).byId||{})[t],Bs=e=>(Fs(e).overview||{}).data,Us=e=>(Fs(e).overview||{}).error,Vs=e=>{const t=Fs(e).overviews||{};if(!t.data)return{account:null,currencies:[]};const{deposit:n,balance:r,account:o}=t.data,a={lastPaid:n.last_paid,pending:r.pending,available:r.available,instant:r.instant},i={};for(const[e,t]of Object.entries(a))null==t||t.forEach((t=>{const{currency:n}=t;i[n]||(i[n]={currency:n,lastPaid:void 0,pending:void 0,available:void 0,instant:void 0}),i[n][e]=t}));const s=Object.values(i);return{account:o,currencies:[...s.filter((e=>o.default_currency===e.currency)),...s.filter((e=>o.default_currency!==e.currency))]}},Hs=e=>(Fs(e).overviews||{}).error,Ys=(e,t)=>{const n=Ps(t);return(Fs(e).queries||{})[n]||{}},Ws=(e,t)=>(Ys(e,t).data||[]).map(zs.bind(void 0,e)),Gs=e=>Fs(e).count,qs=(e,t)=>Ys(e,t).error||{},Zs=(e,t)=>{const n=Ps(t);return(Fs(e).summary||{})[n]||{}},Qs=(e,t)=>Zs(e,t).data||{},Ks=(e,t)=>Zs(e,t).error||{},Js=e=>(Fs(e).instant||{}).data,Xs=window.wc.currency;var ec=n.n(Xs);const tc={aud:(0,B.__)("Australian dollar","woocommerce-payments"),cad:(0,B.__)("Canadian dollar","woocommerce-payments"),chf:(0,B.__)("Swiss franc","woocommerce-payments"),dkk:(0,B.__)("Danish krone","woocommerce-payments"),eur:(0,B.__)("Euro","woocommerce-payments"),gbp:(0,B.__)("Pound sterling","woocommerce-payments"),nok:(0,B.__)("Norwegian krone","woocommerce-payments"),nzd:(0,B.__)("New Zealand dollar","woocommerce-payments"),sek:(0,B.__)("Swedish krona","woocommerce-payments"),usd:(0,B.__)("United States (US) dollar","woocommerce-payments")},nc=e=>tc[e.toLowerCase()]||e.toUpperCase(),rc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const{currencyData:n,connect:{country:r="US"}}=wcpaySettings,o=(0,W.find)(n,{code:e.toUpperCase()});if(o){if(null!==t&&t.toUpperCase()!==e.toUpperCase()||n[r]){const e=t?(0,W.find)(n,{code:t.toUpperCase()}):n[r];e&&(o.decimalSeparator=e.decimalSeparator,o.thousandSeparator=e.thousandSeparator,o.symbolPosition=e.symbolPosition)}return ec()(o)}return null},oc=e=>wcpaySettings.zeroDecimalCurrencies.includes(e.toLowerCase()),ac=(e,t)=>(oc(t)||(e/=100),e),ic=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const r=oc(t);r||(e/=100);const o=e<0,a=o?-1*e:e,i=o?"-":"",s=rc(t,n);if(null===s)return i+dc(a,t,r);try{return i+("function"==typeof s.formatAmount?uc(s.formatAmount(a)):uc(s.formatCurrency(a)))}catch(e){return i+uc(dc(a,t,r))}},sc=(e,t)=>(-1===e.toString().indexOf(t)&&(e=e+" "+t),e),cc=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"USD",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=ic(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null);return wcpaySettings.shouldUseExplicitPrice?(n&&(r=lc(r)),sc(r,t.toUpperCase())):r};function lc(e){return e.replace(/[^0-9,.' ]/g,"").trim()}function dc(e,t,n){try{return e.toLocaleString(void 0,{style:"currency",currency:t,currencyDisplay:"narrowSymbol",dummy:n})}catch(r){return(0,B.sprintf)(n?"%s %i":"%s %.2f",t.toUpperCase(),e)}}function uc(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}function mc(e){return{type:Rs.SET_DEPOSIT,data:e}}function pc(e){return{type:Rs.SET_DEPOSITS_OVERVIEW,data:e}}function yc(e,t){return{type:Rs.SET_ERROR_FOR_DEPOSITS_OVERVIEW,error:t}}function hc(e){return{type:Rs.SET_ALL_DEPOSITS_OVERVIEWS,data:e}}function fc(e,t){return{type:Rs.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS,error:t}}function _c(e,t){return{type:Rs.SET_DEPOSITS,query:e,data:t}}function gc(e){return{type:Rs.SET_DEPOSITS_COUNT,data:e}}function vc(e,t,n){return{type:Rs.SET_ERROR_FOR_DEPOSIT_QUERY,query:e,data:t,error:n}}function bc(e,t){return{type:Rs.SET_DEPOSITS_SUMMARY,query:e,data:t}}function Ec(e,t,n){return{type:Rs.SET_ERROR_FOR_DEPOSITS_SUMMARY,query:e,data:t,error:n}}function $c(e){return{type:Rs.SET_INSTANT_DEPOSIT,data:e}}function*Sc(e){try{yield(0,ps.dispatch)(vs).startResolution("getInstantDeposit",[e]);const t=yield(0,Ds.apiFetch)({path:"/wc/v3/payments/deposits",method:"POST",data:{type:"instant",currency:e}});yield $c(t),yield(0,ps.dispatch)(vs).invalidateResolutionForStoreSelector("getDeposits"),yield(0,ps.dispatch)(vs).invalidateResolutionForStoreSelector("getDepositsOverview"),yield(0,ps.dispatch)(vs).invalidateResolutionForStoreSelector("getAllDepositsOverviews"),yield(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.sprintf)((0,B.__)("Instant deposit for %s in transit.","woocommerce-payments"),ic(t.amount)),{actions:[{label:(0,B.__)("View details","woocommerce-payments"),url:bs({page:"wc-admin",path:"/payments/deposits/details",id:t.id})}]})}catch{yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error creating instant deposit.","woocommerce-payments"))}finally{yield(0,ps.dispatch)(vs).finishResolution("getInstantDeposit",[e])}}function*Cc(e){const t=(0,ys.addQueryArgs)(`${gs}/deposits/${e}`);try{const e=yield(0,Ds.apiFetch)({path:t});yield mc(e)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving deposit.","woocommerce-payments"))}}function*kc(){const e=(0,ys.addQueryArgs)(`${gs}/deposits/overview`);try{const t=yield(0,Ds.apiFetch)({path:e});yield pc(t)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving deposits overview.","woocommerce-payments")),yield yc()}}function*Ic(){const e=(0,ys.addQueryArgs)(`${gs}/deposits/overview-all`);try{const t=yield(0,Ds.apiFetch)({path:e});yield hc(t)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving all deposits' overviews.","woocommerce-payments")),yield fc()}}const Nc=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Cs(e.dateBefore,!0),date_after:Cs(e.dateAfter),date_between:e.dateBetween&&[Cs(e.dateBetween[0]),Cs(e.dateBetween[1],!0)],status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function xc(e){return(0,ys.addQueryArgs)(`${gs}/deposits/download`,Nc(e))}function*Tc(e){const t=(0,ys.addQueryArgs)(`${gs}/deposits`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...Nc(e)});try{const n=yield(0,Ds.apiFetch)({path:t})||{};yield _c(e,n.data),yield gc(n.total_count);for(const e in n.data)yield ps.controls.dispatch(vs,"finishResolution","getDeposit",[n.data[e].id])}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving deposits.","woocommerce-payments")),yield vc(e,null,t)}}function*Oc(e){const t=(0,ys.addQueryArgs)(`${gs}/deposits/summary`,Nc(e));try{const n=yield(0,Ds.apiFetch)({path:t});yield bc(e,n)}catch(t){yield Ec(e,null,t)}}const Lc=()=>(0,ps.useSelect)((e=>{const{getAllDepositsOverviews:t,getAllDepositsOverviewsError:n,isResolving:r,hasFinishedResolution:o}=e(vs);return{overviews:t(),overviewError:n(),isLoading:!o("getAllDepositsOverviews")||r("getAllDepositsOverviews")}})),Ac=e=>{let{paged:t,per_page:n,orderby:r="date",order:o="desc",store_currency_is:a,match:i,date_before:s,date_after:c,date_between:l,status_is:d,status_is_not:u}=e;return(0,ps.useSelect)((e=>{const{getDeposits:m,getDepositsCount:p,getDepositQueryError:y,isResolving:h}=e(vs),f={paged:Number.isNaN(parseInt(null!=t?t:"",10))?"1":t,perPage:Number.isNaN(parseInt(null!=n?n:"",10))?"25":n,orderby:r,order:o,storeCurrencyIs:a,match:i,dateBefore:s,dateAfter:c,dateBetween:l&&l.sort(((e,t)=>fs()(e).diff(fs()(t)))),statusIs:d,statusIsNot:u};return{deposits:m(f),depositsCount:p(),depositsError:y(f),isLoading:h("getDeposits",[f])}}),[t,n,r,o,a,i,s,c,JSON.stringify(l),d,u])},Mc={SET_TRANSACTIONS:"SET_TRANSACTIONS",SET_ERROR_FOR_TRANSACTIONS:"SET_ERROR_FOR_TRANSACTIONS",SET_TRANSACTIONS_SUMMARY:"SET_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_TRANSACTIONS_SUMMARY",SET_FRAUD_OUTCOME_TRANSACTIONS:"SET_FRAUD_OUTCOME_TRANSACTIONS",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS",SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY",SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:"SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY"},Dc={summary:{},fraudProtection:{review:{summary:{}},block:{summary:{}}}},Rc=e=>e&&e.transactions||{},Pc=(e,t)=>{const n=Ps(t);return Rc(e)[n]||{}},jc=(e,t)=>Pc(e,t).data||[],Fc=(e,t)=>Pc(e,t).error||{},zc=(e,t)=>{const n=Ps(t);return Rc(e).summary[n]||{}},Bc=(e,t)=>zc(e,t).data||{},Uc=(e,t)=>zc(e,t).error||{},Vc=(e,t,n)=>{var r,o;const a=Ps(n);return(null===(r=Rc(e).fraudProtection)||void 0===r||null===(o=r[t])||void 0===o?void 0:o[a])||{}},Hc=(e,t,n)=>Vc(e,t,n).data||[],Yc=(e,t,n)=>Vc(e,t,n).error||{},Wc=(e,t,n)=>{var r,o;const a=Ps(n);return(null===(r=Rc(e).fraudProtection)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.summary[a])||{}},Gc=(e,t,n)=>Wc(e,t,n).data||{},qc=(e,t,n)=>Wc(e,t,n).error||{};function Zc(e,t){return{type:Mc.SET_TRANSACTIONS,query:e,data:t}}function Qc(e,t,n){return{type:Mc.SET_ERROR_FOR_TRANSACTIONS,query:e,data:t,error:n}}function Kc(e,t){return{type:Mc.SET_TRANSACTIONS_SUMMARY,query:e,data:t}}function Jc(e,t,n){return{type:Mc.SET_ERROR_FOR_TRANSACTIONS_SUMMARY,query:e,data:t,error:n}}function Xc(e,t,n){return{type:Mc.SET_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:n}}function el(e,t,n){return{type:Mc.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS,status:e,query:t,data:null,error:n}}function tl(e,t,n){return{type:Mc.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:n}}function nl(e,t,n){return{type:Mc.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY,status:e,query:t,data:null,error:n}}const rl=e=>({user_email:e.userEmail,match:e.match,date_before:Cs(e.dateBefore,!0),date_after:Cs(e.dateAfter),date_between:e.dateBetween&&[Cs(e.dateBetween[0]),Cs(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot,source_device_is:e.sourceDeviceIs,source_device_is_not:e.sourceDeviceIsNot,channel_is:e.channelIs,channel_is_not:e.channelIsNot,customer_country_is:e.customerCountryIs,customer_country_is_not:e.customerCountryIsNot,risk_level_is:e.riskLevelIs,risk_level_is_not:e.riskLevelIsNot,store_currency_is:e.storeCurrencyIs,loan_id_is:e.loanIdIs,deposit_id:e.depositId,customer_currency_is:e.customerCurrencyIs,customer_currency_is_not:e.customerCurrencyIsNot,search:e.search,user_timezone:fs()(new Date).format("Z"),locale:e.locale});function*ol(e){const t=(0,ys.addQueryArgs)(`${gs}/transactions`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...rl(e)});try{const n=yield(0,Ds.apiFetch)({path:t});yield Zc(e,n.data||[])}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving transactions.","woocommerce-payments")),yield Qc(e,null,t)}}function al(e){return(0,ys.addQueryArgs)(`${gs}/transactions/download`,rl(e))}function*il(e){const t=(0,ys.addQueryArgs)(`${gs}/transactions/summary`,rl(e));try{const n=yield(0,Ds.apiFetch)({path:t});yield Kc(e,n)}catch(t){yield Jc(e,null,t)}}function*sl(e,t){const n=(0,ys.addQueryArgs)(`${gs}/transactions/fraud-outcomes`,{status:e,page:t.paged,sort:t.orderby,pagesize:t.perPage,direction:t.order,additional_status:t.additionalStatus,...rl(t)});try{const r=yield(0,Ds.apiFetch)({path:n});yield Xc(e,t,r.data||[])}catch(n){if("wcpay_fraud_outcome_not_found"===n.code)return void(yield Xc(e,t,[]));yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving transactions.","woocommerce-payments")),yield el(e,t,n)}}function*cl(e,t){const n=(0,ys.addQueryArgs)(`${gs}/transactions/fraud-outcomes/summary`,{status:e,additional_status:t.additionalStatus}),r={count:0,total:0};try{const o=yield(0,Ds.apiFetch)({path:n});yield tl(e,t,o||r)}catch(n){if("wcpay_fraud_outcome_not_found"===n.code)return void(yield tl(e,t,r));yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving on review transactions.","woocommerce-payments")),yield nl(e,t,n)}}function ll(e,t){return(0,ys.addQueryArgs)(`${gs}/transactions/fraud-outcomes/download`,{status:e,sort:t.orderby,direction:t.order,additional_status:t.additionalStatus,...rl(t)})}const dl=(e,t,n)=>{let{paged:r,per_page:o,orderby:a,order:i,search:s}=t;return(0,ps.useSelect)((t=>{const{getFraudOutcomeTransactions:c,getFraudOutcomeTransactionsError:l,isResolving:d}=t(vs),u={paged:Number.isNaN(parseInt(null!=r?r:"",10))?"1":r,perPage:Number.isNaN(parseInt(null!=o?o:"",10))?"25":o,orderby:a||"date",order:i||"desc",search:s,additionalStatus:n};return{transactions:c(e,u),transactionsError:l(e,u),isLoading:d("getFraudOutcomeTransactions",[e,u])}}),[r,o,a,i,JSON.stringify(s)])},ul=(e,t,n)=>{let{search:r}=t;return(0,ps.useSelect)((t=>{const{getFraudOutcomeTransactionsSummary:o,getFraudOutcomeTransactionsSummaryError:a,isResolving:i}=t(vs),s={search:r,additionalStatus:n};return{transactionsSummary:o(e,s),transactionsSummaryError:a(e,s),isLoading:i("getFraudOutcomeTransactionsSummary",[e,s])}}),[e,JSON.stringify(r)])},ml={SET_CHARGE:"SET_CHARGE",SET_ERROR_FOR_CHARGE:"SET_ERROR_FOR_CHARGE"},pl=(e,t)=>e.charges[t]&&e.charges[t].data?e.charges[t].data:{},yl=(e,t)=>e.charges[t]&&e.charges[t].error?e.charges[t].error:{},hl=(e,t)=>pl(e,t),fl=(e,t)=>yl(e,t);function _l(e,t){return{type:ml.SET_CHARGE,id:e,data:t}}function gl(e,t,n){return{type:ml.SET_ERROR_FOR_CHARGE,id:e,data:t,error:n}}function*vl(e){try{const t=yield(0,Ds.apiFetch)({path:`${gs}/charges/${e}`});yield _l(e,t)}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving transaction.","woocommerce-payments")),yield gl(e,null,t)}}function*wl(e){try{const t=yield(0,Ds.apiFetch)({path:`${gs}/charges/order/${e}`});yield _l(e,t)}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving transaction.","woocommerce-payments")),yield gl(e,null,t)}}const bl={SET_TIMELINE:"SET_TIMELINE",SET_ERROR_FOR_TIMELINE:"SET_ERROR_FOR_TIMELINE"},El=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].data?e.timeline[t].data:{},$l=(e,t)=>e.timeline&&e.timeline[t]&&e.timeline[t].error?e.timeline[t].error:{};function Sl(e,t){return{id:e,type:bl.SET_TIMELINE,data:t}}function Cl(e,t){return{id:e,type:bl.SET_ERROR_FOR_TIMELINE,error:t}}function*kl(e){try{const t=yield(0,Ds.apiFetch)({path:`${gs}/timeline/${e}`});yield Sl(e,t.data)}catch(t){yield Cl(e,t)}}const Il={SET_DISPUTE:"SET_DISPUTE",SET_ERROR_FOR_DISPUTE:"SET_ERROR_FOR_DISPUTE",SET_DISPUTES:"SET_DISPUTES",SET_DISPUTES_SUMMARY:"SET_DISPUTES_SUMMARY"},Nl={byId:{},queries:{},summary:{},cached:{}},xl=e=>e&&e.disputes||{},Tl=(e,t)=>(xl(e).byId||{})[t],Ol=(e,t)=>{var n;return null===(n=(xl(e).byId||{})[t])||void 0===n?void 0:n.error},Ll=(e,t)=>(xl(e).cached||{})[t],Al=(e,t)=>{const n=((e,t)=>{const n=Ps(t);return(xl(e).queries||{})[n]||{}})(e,t).data||[];return n.map(Ll.bind(void 0,e))},Ml=(e,t)=>((e,t)=>{const n=Ps(t);return(xl(e).summary||{})[n]||{}})(e,t).data||{};var Dl;!function(e){e.SET_PAYMENT_INTENT="SET_PAYMENT_INTENT",e.SET_ERROR_FOR_PAYMENT_INTENT="SET_ERROR_FOR_PAYMENT_INTENT"}(Dl||(Dl={}));const Rl=Dl;function Pl(e,t){return{type:Rl.SET_PAYMENT_INTENT,id:e,data:t}}function jl(e,t){return{type:Rl.SET_ERROR_FOR_PAYMENT_INTENT,id:e,error:t}}function*Fl(e,t){var n;const r=e.payment_intent;try{yield(0,Ds.apiFetch)({path:"/wc/v3/payments/refund/",method:"post",data:{charge_id:e.id,amount:e.amount,reason:t,order_id:null===(n=null==e?void 0:e.order)||void 0===n?void 0:n.number}}),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getTimeline"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield ps.controls.dispatch("core/notices","createSuccessNotice",(0,B.sprintf)((0,B.__)("Refunded payment #%s.","woocommerce-payments"),r))}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.sprintf)((0,B.__)("There has been an error refunding the payment #%s. Please try again later.","woocommerce-payments"),r))}}function*zl(e){try{const t=yield(0,Ds.apiFetch)({path:`${gs}/payment_intents/${e}`});yield Pl(e,t)}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving transaction.","woocommerce-payments")),yield jl(e,t)}}function Bl(e){return{type:Il.SET_DISPUTE,data:e}}function Ul(e,t,n){return{type:Il.SET_ERROR_FOR_DISPUTE,id:e,data:t,error:n}}function Vl(e,t){return{type:Il.SET_DISPUTES,query:e,data:t}}function Hl(e,t){return{type:Il.SET_DISPUTES_SUMMARY,query:e,data:t}}function*Yl(e){const{id:t,payment_intent:n}=e;try{yield ps.controls.dispatch(vs,"startResolution","getDispute",[t]);const e=yield(0,Ds.apiFetch)({path:`${gs}/disputes/${t}/close`,method:"post"});yield Bl(e),yield zl(n),yield ps.controls.dispatch(vs,"finishResolution","getDispute",[t]);const r=e.order?(0,B.sprintf)((0,B.__)("You have accepted the dispute for order #%s.","woocommerce-payments"),e.order.number):(0,B.__)("You have accepted the dispute.","woocommerce-payments");yield ps.controls.dispatch("core/notices","createSuccessNotice",r)}catch(e){const n=(0,B.__)("There has been an error accepting the dispute. Please try again later.","woocommerce-payments");yield ps.controls.dispatch("core/notices","createErrorNotice",n),yield ps.controls.dispatch(vs,"finishResolution","getDispute",[t])}}const Wl=e=>({user_email:e.userEmail,match:e.match,store_currency_is:e.storeCurrencyIs,date_before:Cs(e.dateBefore,!0),date_after:Cs(e.dateAfter),date_between:e.dateBetween&&[Cs(e.dateBetween[0]),Cs(e.dateBetween[1],!0)],search:e.search,status_is:e.statusIs,status_is_not:e.statusIsNot,locale:e.locale});function Gl(e){return(0,ys.addQueryArgs)(`${gs}/disputes/download`,Wl(e))}function*ql(e){const t=(0,ys.addQueryArgs)(`${gs}/disputes/${e}`);try{const e=yield(0,Ds.apiFetch)({path:t});yield Bl(e)}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving dispute.","woocommerce-payments")),yield Ul(e,void 0,t)}}function*Zl(e){const t=(0,ys.addQueryArgs)(`${gs}/disputes`,{page:e.paged,pagesize:e.perPage,sort:(0,W.snakeCase)(e.orderBy),direction:e.order,...Wl(e)});try{const n=yield(0,Ds.apiFetch)({path:t})||{};yield Vl(e,n.data)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving disputes.","woocommerce-payments"))}}function*Ql(e){const t=(0,ys.addQueryArgs)(`${gs}/disputes/summary`,{page:e.paged,pagesize:e.perPage,...Wl(e)});try{const n=yield(0,Ds.apiFetch)({path:t});yield Hl(e,n)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving the summary of disputes.","woocommerce-payments"))}}const Kl=window.wc.wcSettings,Jl={bank_cannot_process:{display:(0,B.__)("Bank cannot process","woocommerce-payments")},check_returned:{display:(0,B.__)("Check returned","woocommerce-payments")},credit_not_processed:{display:(0,B.__)("Credit not processed","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If your customer was not refunded appropriately, you will need to accept the dispute, or resolve the issue with your customer. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The customer claims that the purchased product was returned or the transaction was otherwise canceled, but you have not yet provided a refund or credit.","woocommerce-payments")],required:[(0,B.__)("Demonstrate that you have refunded your customer through other means or that your customer is not entitled to a refund. You cannot issue a refund while a payment is being disputed. If you believe that your customer was entitled a refund that you did not provide, you can accept the dispute.","woocommerce-payments")],respond:[(0,B.__)("You should first get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,B.__)("If the cardholder agrees to withdraw the dispute, you should still submit evidence for the dispute using the forms on the next screen. In addition to the following evidence, your submission should include correspondence with the cardholder saying they would withdraw the dispute and a written statement from their card issuer confirming that the dispute has been withdrawn.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims a credit was not processed.","woocommerce-payments")},customer_initiated:{display:(0,B.__)("Customer initiated","woocommerce-payments")},debit_not_authorized:{display:(0,B.__)("Debit not authorized","woocommerce-payments")},duplicate:{display:(0,B.__)("Duplicate","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If there were duplicate payments, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The customer claims they were charged multiple times for the same product or service.","woocommerce-payments")],required:[(0,B.__)("Demonstrate that each payment was for a separate product or service.","woocommerce-payments")],respond:[(0,B.__)("Determine if your customer was incorrectly charged multiple times.","woocommerce-payments"),(0,B.__)("If they were not, collect any and all information documenting that each payment was made separately, such as copies of receipts. If the receipts don’t include the items purchased, be sure to include an itemized list. Each receipt should clearly indicate that the payments are for separate purchases of items or services. If you’ve been able to get in touch with the customer you should be sure to address any concerns they had in your evidence.","woocommerce-payments"),(0,B.__)("If there have been two or more separate payments, you should get in touch with your customer. If you understand what their complaint is, there is a chance for you to explain the misunderstanding or to make it right. If you’re able to resolve the issue with your customer, you can ask that they withdraw the dispute.","woocommerce-payments"),(0,B.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims this is a duplicate transaction.","woocommerce-payments")},fraudulent:{display:(0,B.__)("Transaction unauthorized","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If you believe the payment was actually made using a stolen credit card, you will need to accept the dispute. The credit card networks place liability for accepting unauthorized transactions with you, the business.","woocommerce-payments")],summary:[(0,B.__)("This is the most common reason for a dispute, and happens when a cardholder claims that they didn’t authorize the payment. This can happen if the card was lost or stolen and used to make an unauthorized transaction. It can also happen if the cardholder doesn’t recognize the payment as it appears on the billing statement from their card issuer.","woocommerce-payments")],required:[(0,B.__)("Provide adequate payment and order details so that a legitimate customer recognizes it, or proves to the card issuer that their cardholder authorized the transaction.","woocommerce-payments")],respond:[(0,B.__)("Try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction.","woocommerce-payments"),(0,B.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,B.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims this is an unauthorized transaction.","woocommerce-payments")},general:{display:(0,B.__)("General","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments")],summary:[(0,B.__)("This is an uncategorized dispute, so you should contact the customer for additional details to find out why the payment was disputed.","woocommerce-payments")]},incorrect_account_details:{display:(0,B.__)("Incorrect account details","woocommerce-payments")},insufficient_funds:{display:(0,B.__)("Insufficient funds","woocommerce-payments")},product_not_received:{display:(0,B.__)("Product not received","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If you can not prove the customer received their product or service, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The customer claims they did not receive the products or services purchased.","woocommerce-payments")],required:[(0,B.__)("Prove that the customer received a physical product or offline service, or made use of a digital product or online service. This must have occurred prior to the date the dispute was initiated.","woocommerce-payments")],respond:[(0,B.__)("First, get in touch with your customer. Understanding why they filed the dispute will be important for helping make sure your customer gets the product and will give you critical information to prevent this from happening to others.","woocommerce-payments"),(0,B.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims the product was not received.","woocommerce-payments")},product_unacceptable:{display:(0,B.__)("Product unacceptable","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If you can not prove the customer received their product or service as described, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The product or service was received but was defective, damaged, or not as described.","woocommerce-payments")],required:[(0,B.__)("Demonstrate that the product or service was delivered as described at the time of purchase.","woocommerce-payments")],respond:[(0,B.__)("If the product or service is as described, provide specific information (invoice, contract, etc.) to refute the cardholder’s claims. Quality disputes are where the customer does not agree with the condition of merchandise or service received (e.g., a car repair situation or quality of a hotel room). There may be instances where you will need to obtain a neutral third-party opinion to help corroborate your claim against the cardholder. Provide as much specific information and documentation as possible to refute the cardholder’s claims. It is recommended that you address each point that the cardholder has made.","woocommerce-payments"),(0,B.__)("If the customer has not yet returned the product or canceled the service, provide specific information to that effect. You should double-check your incoming shipping records to verify that you have not received a return before you respond. If you have processed a credit or reversal for this transaction, provide evidence of this which includes the amount and date processed.","woocommerce-payments"),(0,B.__)("For products that have been repaired or replaced, provide evidence that the cardholder agreed to a repair or replacement, it has been received by the customer, and the repair or replacement has not since been disputed.","woocommerce-payments"),(0,B.__)("If your customer made no attempt to return the product or cancel the service, or if you provided a replacement product or service, make sure to note that as well.","woocommerce-payments"),(0,B.__)("If the customer withdraws their dispute you should still submit evidence using the forms on the next screen. Be sure to provide a letter or email from the cardholder stating that they are no longer in dispute.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims the product was unacceptable.","woocommerce-payments")},subscription_canceled:{display:(0,B.__)("Subscription canceled","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The customer claims that you continued to charge them after a subscription was canceled.","woocommerce-payments")],required:[(0,B.__)("Prove that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],respond:[(0,B.__)("First, get in touch with your customer. If you understand what they believe happened, there is a chance for you to explain the misunderstanding or to make it right. ","woocommerce-payments"),(0,B.__)("Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence using the forms on the next screen. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,B.__)("Otherwise, use the forms on the next screen to submit evidence that the subscription was still active and that the customer was aware of, and did not follow, your cancellation procedure.","woocommerce-payments")],claim:(0,B.__)("The cardholder claims a subscription was canceled.","woocommerce-payments")},unrecognized:{display:(0,B.__)("Unrecognized","woocommerce-payments"),overview:[(0,B.__)("If you believe the dispute is invalid, you can challenge it by submitting the appropriate evidence using the response forms on the next screen.","woocommerce-payments"),(0,B.__)("If you can not prove the customer’s subscription was canceled, and or they did not follow your cancellation policy, you should accept the dispute. You cannot issue a refund while a payment is being disputed. The credit card networks place liability for accepting disputed payments with you, the business.","woocommerce-payments")],summary:[(0,B.__)("The customer doesn’t recognize the payment appearing on their card statement.","woocommerce-payments")],required:[(0,B.__)("Get your customer to withdraw the dispute by helping them identify the payment. Otherwise, challenge the dispute with appropriate evidence that proves the purchase was legitimate. ","woocommerce-payments")],respond:[(0,B.__)("First, try to get in touch with your customer. Sometimes people forget about payments they make or don’t recognize the way they appear on their card statement. If this is the case, ask them to contact their card issuer and let them know they no longer dispute the transaction. Even if your customer agrees to withdraw the dispute, you must still submit appropriate evidence. Simply saying that your customer is going to withdraw the dispute is not sufficient evidence.","woocommerce-payments"),(0,B.__)("It may be more efficient—and provide a better customer experience—to accept an accidental dispute and charge the customer again, if appropriate. Even when a dispute is withdrawn, it usually takes approximately 75 days to be finalized. Remember, it doesn’t matter to the card networks whether you win or lose a dispute; what matters is how many disputes a business receives, regardless of how many disputes are won.","woocommerce-payments")]}},Xl={warning_needs_response:(0,B.__)("Inquiry: Needs response","woocommerce-payments"),warning_under_review:(0,B.__)("Inquiry: Under review","woocommerce-payments"),warning_closed:(0,B.__)("Inquiry: Closed","woocommerce-payments"),needs_response:(0,B.__)("Needs response","woocommerce-payments"),under_review:(0,B.__)("Under review","woocommerce-payments"),charge_refunded:(0,B.__)("Charge refunded","woocommerce-payments"),won:(0,B.__)("Won","woocommerce-payments"),lost:(0,B.__)("Lost","woocommerce-payments")},ed=Object.entries(Xl).map((e=>{let[t,n]=e;return{label:n,value:t}})).filter((function(e){return null!=e})),td=["needs_response","warning_needs_response"],nd=[{label:(0,B.__)("Dispute currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","search","filter","status_is","status_is","date_before","date_after","date_between"],showFilters:()=>!1,filters:[{label:(0,B.__)("All currencies","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,B.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","search","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,B.__)("Needs response","woocommerce-payments"),value:"awaiting_response"},{label:(0,B.__)("All disputes","woocommerce-payments"),value:"all"},{label:(0,B.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],rd=(0,Kl.getSetting)("wcVersion"),od=parseFloat(rd),ad={title:od<7.8?(0,B.__)("Disputes match {{select /}} filters","woocommerce-payments"):(0,B.__)("Disputes match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,B.__)("Disputed on date","woocommerce-payments"),remove:(0,B.__)("Remove dispute date filter","woocommerce-payments"),rule:(0,B.__)("Select a dispute date filter match","woocommerce-payments"),title:od<7.8?(0,B.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a dispute date","woocommerce-payments")},rules:[{value:"before",label:(0,B.__)("Before","woocommerce-payments")},{value:"after",label:(0,B.__)("After","woocommerce-payments")},{value:"between",label:(0,B.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,B.__)("Status","woocommerce-payments"),remove:(0,B.__)("Remove dispute status filter","woocommerce-payments"),rule:(0,B.__)("Select a dispute status filter match","woocommerce-payments"),title:od<7.8?(0,B.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a dispute status","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","dispute status","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","dispute status","woocommerce-payments")}],input:{component:"SelectControl",options:ed}}}},id=e=>{let{paged:t,per_page:n,store_currency_is:r,match:o,date_before:a,date_after:i,date_between:s,filter:c,status_is:l,status_is_not:d,orderby:u,order:m}=e;return(0,ps.useSelect)((e=>{const{getDisputes:p,isResolving:y}=e(vs),h="awaiting_response"===c?td:void 0,f={paged:Number.isNaN(parseInt(null!=t?t:"",10))?"1":t,perPage:Number.isNaN(parseInt(null!=n?n:"",10))?"25":n,storeCurrencyIs:r,match:o,dateBefore:a,dateAfter:i,dateBetween:s&&s.sort(((e,t)=>fs()(e).diff(fs()(t)))),search:h,statusIs:l,statusIsNot:d,orderBy:u||"created",order:m||"desc"};return{disputes:p(f),isLoading:y("getDisputes",[f])}}),[t,n,r,o,a,i,JSON.stringify(s),c,l,d,u,m])},sd={SET_SETTINGS:"SET_SETTINGS",SET_SETTINGS_VALUES:"SET_SETTINGS_VALUES",SET_IS_SAVING_SETTINGS:"SET_IS_SAVING_SETTINGS",SET_SELECTED_PAYMENT_METHOD:"SET_SELECTED_PAYMENT_METHOD",SET_UNSELECTED_PAYMENT_METHOD:"SET_UNSELECTED_PAYMENT_METHOD"},cd={isSaving:!1,savingError:null,data:{}},ld="advanced",dd="block",ud="review",md="avs_verification",pd="address_mismatch",yd="international_ip_address",hd="ip_address_mismatch",fd="order_items_threshold",_d="purchase_price_threshold",gd="item_count",vd="order_total",wd="equals",bd="greater_than",Ed="less_than",$d={},Sd=[],Cd=e=>e&&e.settings||$d,kd=e=>Cd(e).data||$d,Id=e=>kd(e).account_business_support_address||$d,Nd=e=>kd(e).is_wcpay_enabled||!1,xd=e=>kd(e).is_client_secret_encryption_enabled||!1,Td=e=>kd(e).enabled_payment_method_ids||Sd,Od=e=>kd(e).available_payment_method_ids||Sd,Ld=e=>kd(e).payment_method_statuses||Sd,Ad=e=>Cd(e).isSaving||!1,Md=e=>kd(e).account_statement_descriptor||"",Dd=e=>kd(e).account_statement_descriptor_kanji||"",Rd=e=>kd(e).account_statement_descriptor_kana||"",Pd=e=>kd(e).account_business_name||"",jd=e=>kd(e).account_business_url||"",Fd=e=>kd(e).account_business_support_address||"",zd=e=>Id(e).country||"",Bd=e=>Id(e).line1||"",Ud=e=>Id(e).line2||"",Vd=e=>Id(e).city||"",Hd=e=>Id(e).state||"",Yd=e=>Id(e).postal_code||"",Wd=e=>kd(e).account_business_support_email||"",Gd=e=>kd(e).account_business_support_phone||"",qd=e=>kd(e).account_branding_logo||"",Zd=e=>kd(e).account_domestic_currency||"",Qd=e=>kd(e).deposit_schedule_interval||"",Kd=e=>kd(e).reporting_export_language||"",Jd=e=>kd(e).deposit_schedule_weekly_anchor||"",Xd=e=>kd(e).deposit_schedule_monthly_anchor||"",eu=e=>kd(e).deposit_delay_days||"7",tu=e=>kd(e).deposit_completed_waiting_period||!1,nu=e=>kd(e).deposit_status||"",ru=e=>kd(e).deposit_restrictions||"",ou=e=>kd(e).is_manual_capture_enabled||!1,au=e=>kd(e).is_test_mode_enabled||!1,iu=e=>kd(e).is_dev_mode_enabled||!1,su=e=>kd(e).is_payment_request_enabled||!1,cu=e=>kd(e).is_debug_log_enabled||!1,lu=e=>kd(e).is_multi_currency_enabled||!1,du=e=>kd(e).payment_request_enabled_locations||Sd,uu=e=>kd(e).payment_request_button_type||"",mu=e=>kd(e).payment_request_button_size||"",pu=e=>kd(e).payment_request_button_theme||"",yu=e=>kd(e).is_saved_cards_enabled||!1,hu=e=>Cd(e).savingError,fu=e=>kd(e).is_card_present_eligible||!1,_u=e=>kd(e).is_wcpay_subscriptions_enabled||!1,gu=e=>kd(e).is_wcpay_subscriptions_eligible||!1,vu=e=>kd(e).is_subscriptions_plugin_active||!1,wu=e=>kd(e).is_woopay_enabled||!1,bu=e=>kd(e).woopay_custom_message||"",Eu=e=>kd(e).woopay_store_logo||"",$u=e=>kd(e).woopay_enabled_locations||Sd,Su=e=>kd(e).current_protection_level||"basic",Cu=e=>kd(e).advanced_fraud_protection_settings||Sd,ku=e=>kd(e).show_woopay_incompatibility_notice||!1,Iu=e=>kd(e).is_stripe_billing_enabled||!1,Nu=e=>kd(e).is_migrating_stripe_billing||!1,xu=e=>kd(e).stripe_billing_subscription_count||0,Tu=e=>kd(e).stripe_billing_migrated_count||0;function Ou(e){return{type:sd.SET_SETTINGS_VALUES,payload:e}}function Lu(e){return Ou({is_saved_cards_enabled:e})}function Au(e){return Ou({is_card_present_eligible:e})}function Mu(e){return Ou({is_client_secret_encryption_enabled:e})}function Du(e){return Ou({payment_request_button_type:e})}function Ru(e){return Ou({payment_request_button_size:e})}function Pu(e){return Ou({payment_request_button_theme:e})}function ju(e){return{type:sd.SET_SETTINGS,data:e}}function Fu(e){return Ou({is_wcpay_enabled:e})}function zu(e){return Ou({is_payment_request_enabled:e})}function Bu(e){return Ou({enabled_payment_method_ids:[...e]})}function Uu(e){return Ou({available_payment_method_ids:[...e]})}function Vu(e,t){return{type:sd.SET_IS_SAVING_SETTINGS,isSaving:e,error:t}}function Hu(e){return{type:sd.SET_SELECTED_PAYMENT_METHOD,id:e}}function Yu(e){return{type:sd.SET_UNSELECTED_PAYMENT_METHOD,id:e}}function Wu(e){return Ou({is_manual_capture_enabled:e})}function Gu(e){return Ou({is_test_mode_enabled:e})}function qu(e){return Ou({is_debug_log_enabled:e})}function Zu(e){return Ou({is_multi_currency_enabled:e})}function Qu(e){return Ou({is_wcpay_subscriptions_enabled:e})}function Ku(e){return Ou({account_statement_descriptor:e})}function Ju(e){return Ou({account_statement_descriptor_kanji:e})}function Xu(e){return Ou({account_statement_descriptor_kana:e})}function em(e){return Ou({account_business_name:e})}function tm(e){return Ou({account_business_url:e})}function nm(e){return Ou({account_business_support_address:e})}function rm(e){return Ou({account_business_support_email:e})}function om(e){return Ou({account_business_support_phone:e})}function am(e){return Ou({account_branding_logo:e})}function im(e){return Ou({deposit_schedule_interval:e})}function sm(e){return Ou({deposit_schedule_weekly_anchor:e})}function cm(e){return Ou({deposit_schedule_monthly_anchor:""===e?null:parseInt(e,10)})}function lm(e){return Ou({reporting_export_language:e})}function*dm(){let e=null;try{const e=(0,ps.select)(vs).getSettings();yield Vu(!0,null),yield(0,Ds.apiFetch)({path:`${gs}/settings`,method:"post",data:e}),yield(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.__)("Settings saved.","woocommerce-payments"))}catch(t){e=t,yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error saving settings.","woocommerce-payments")),e.server_error&&(yield(0,ps.dispatch)("core/notices").createErrorNotice(e.server_error))}finally{yield Vu(!1,e)}return null===e}function um(e){return Ou({payment_request_enabled_locations:[...e]})}function mm(e){return Ou({is_woopay_enabled:e})}function pm(e){return Ou({woopay_custom_message:e})}function ym(e){return Ou({woopay_store_logo:e})}function hm(e){return Ou({woopay_enabled_locations:[...e]})}function fm(e){return Ou({current_protection_level:e})}function _m(e){return Ou({advanced_fraud_protection_settings:e})}function gm(e){return Ou({is_stripe_billing_enabled:e})}function*vm(){try{yield(0,ps.dispatch)(vs).startResolution("scheduleStripeBillingMigration"),yield(0,Ds.apiFetch)({path:`${gs}/settings/schedule-stripe-billing-migration`,method:"post"})}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error starting the Stripe Billing migration.","woocommerce-payments"))}yield(0,ps.dispatch)(vs).finishResolution("scheduleStripeBillingMigration")}function*wm(){const e=`${gs}/settings`;try{const t=yield(0,Ds.apiFetch)({path:e});yield ju(t)}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error retrieving settings.","woocommerce-payments"))}}const bm=()=>{const{updateEnabledPaymentMethodIds:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getEnabledPaymentMethodIds())),e]},Em=()=>{const{updateAccountBusinessName:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAccountBusinessName())),e]},$m=()=>{const{updateAccountBusinessURL:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAccountBusinessURL())),e]},Sm=()=>{const{updateAccountBusinessSupportAddress:e}=(0,ps.useDispatch)(vs),t=(0,ps.useSelect)((e=>{const{getAccountBusinessSupportAddress:t,getAccountBusinessSupportAddressCountry:n,getAccountBusinessSupportAddressLine1:r,getAccountBusinessSupportAddressLine2:o,getAccountBusinessSupportAddressCity:a,getAccountBusinessSupportAddressState:i,getAccountBusinessSupportAddressPostalCode:s}=e(vs);return[t(),n(),r(),o(),a(),i(),s()]}));return[...t,e]},Cm=()=>{const{updateAccountBusinessSupportEmail:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAccountBusinessSupportEmail())),e]},km=()=>{const{updateAccountBusinessSupportPhone:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAccountBusinessSupportPhone())),e]},Im=()=>{const{updateExportLanguage:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getExportLanguage())),e]},Nm=()=>{const{updateIsManualCaptureEnabled:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getIsManualCaptureEnabled())),e]},xm=()=>(0,ps.useSelect)((e=>e(vs).getSettings())),Tm=()=>{const{saveSettings:e}=(0,ps.useDispatch)(vs),t=(0,ps.useSelect)((e=>e(vs).isSavingSettings()));return{isLoading:(0,ps.useSelect)((e=>{e(vs).getSettings();const t=e(vs).isResolving("getSettings"),n=e(vs).hasFinishedResolution("getSettings");return t||!n})),saveSettings:e,isSaving:t}},Om=()=>(0,ps.useSelect)((e=>e(vs).getSavingError()),[]),Lm={SET_CURRENCIES:"SET_CURRENCIES",SET_AVAILABLE_CURRENCIES:"SET_AVAILABLE_CURRENCIES",SET_ENABLED_CURRENCIES:"SET_ENABLED_CURRENCIES",SET_DEFAULT_CURRENCY:"SET_DEFAULT_CURRENCY",SET_CURRENCY_SETTINGS:"SET_CURRENCY_SETTINGS",SET_STORE_SETTINGS:"SET_STORE_SETTINGS"},Am={},Mm=e=>e&&e.multiCurrency||{},Dm=e=>Mm(e).currencies||{},Rm=e=>Dm(e).available||{},Pm=e=>Dm(e).enabled||{},jm=e=>Dm(e).default||{},Fm=e=>Mm(e).currency_settings||{},zm=e=>Mm(e).settings||{};function Bm(e){return{type:Lm.SET_CURRENCIES,data:e}}function Um(e){return{type:Lm.SET_AVAILABLE_CURRENCIES,data:e}}function Vm(e){return{type:Lm.SET_ENABLED_CURRENCIES,data:e}}function Hm(e){return{type:Lm.SET_DEFAULT_CURRENCY,data:e}}function Ym(e,t){return{type:Lm.SET_CURRENCY_SETTINGS,data:{code:e,data:t}}}function Wm(e){return{type:Lm.SET_STORE_SETTINGS,data:e}}function*Gm(e){const t=Object.keys((0,ps.select)(vs).getEnabledCurrencies()),n=e.filter((e=>!t.includes(e))),r=t.filter((t=>!e.includes(t)));try{const t=yield(0,Ds.apiFetch)({path:`${gs}/multi-currency/update-enabled-currencies`,method:"POST",data:{enabled:e}});yield Bm(t),yield(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.__)("Enabled currencies updated.","woocommerce-payments")),Ca("wcpay_multi_currency_enabled_currencies_updated",{added_currencies:n,removed_currencies:r})}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error updating enabled currencies.","woocommerce-payments"))}}function*qm(e,t){try{const n=yield(0,Ds.apiFetch)({path:`${gs}/multi-currency/currencies/${e}`,method:"POST",data:t});yield Ym(e,n),yield(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.__)("Currency settings updated.","woocommerce-payments"))}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error updating currency settings.","woocommerce-payments"))}}function Zm(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function*(){try{const r=yield(0,Ds.apiFetch)({path:`${gs}/multi-currency/update-settings`,method:"POST",data:{wcpay_multi_currency_enable_auto_currency:e?"yes":"no",wcpay_multi_currency_enable_storefront_switcher:t?"yes":"no"}});if(yield Wm(r),n)return;yield(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.__)("Store settings saved.","woocommerce-payments"))}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error saving store settings.","woocommerce-payments"))}}()}function*Qm(){const e=`${gs}/multi-currency/currencies`;try{const t=yield(0,Ds.apiFetch)({path:e});yield Bm(t)}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error retrieving currencies.","woocommerce-payments"))}}function*Km(e){const t=`${gs}/multi-currency/currencies/${e}`;try{const n=yield(0,Ds.apiFetch)({path:t});yield Ym(e,n)}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error retrieving single currency settings.","woocommerce-payments"))}}function*Jm(){const e=`${gs}/multi-currency/get-settings`;try{const t=yield(0,Ds.apiFetch)({path:e});yield Wm(t)}catch(e){yield(0,ps.dispatch)("core/notices").createErrorNotice((0,B.__)("Error retrieving store settings.","woocommerce-payments"))}}const Xm=()=>(0,ps.useSelect)((e=>{const{getCurrencies:t,isResolving:n}=e(vs);return{currencies:t(),isLoading:n("getCurrencies",[])}}),[]),ep=()=>{const e=(0,ps.useSelect)((e=>{const{getEnabledCurrencies:t}=e(vs);return t()})),{submitEnabledCurrenciesUpdate:t}=(0,ps.useDispatch)(vs);return{enabledCurrencies:e,submitEnabledCurrenciesUpdate:t}},tp=()=>{const{storeSettings:e,isLoading:t}=(0,ps.useSelect)((e=>{const{getStoreSettings:t,isResolving:n}=e(vs);return{storeSettings:t(),isLoading:n("getStoreSettings",[])}})),{submitStoreSettingsUpdate:n}=(0,ps.useDispatch)(vs);return{storeSettings:e,isLoading:t,submitStoreSettingsUpdate:n}},np=()=>(0,ps.useSelect)((e=>{const{getDefaultCurrency:t}=e(vs);return t()})),rp={SET_CARD_READER_STATS:"SET_CARD_READER_STATS",SET_ERROR_FOR_CARD_READER_STATS:"SET_ERROR_FOR_CARD_READER_STATS",SET_READERS:"SET_READERS",SET_ERROR_FOR_CARD_READERS:"SET_ERROR_FOR_CARD_READERS"},op=(e,t)=>e.readers[t]&&e.readers[t].data?e.readers[t].data:{},ap=(e,t)=>e.readers[t]&&e.readers[t].error?e.readers[t].error:{},ip=e=>e.readers&&e.readers.list?e.readers.list:{};function sp(e,t){return{type:rp.SET_CARD_READER_STATS,id:e,data:t}}function cp(e,t){return{type:rp.SET_READERS,query:e,data:t}}function lp(e,t,n){return{type:rp.SET_CARD_ERROR_FOR_READER_STATS,id:e,data:t,error:n}}function dp(e,t){return{type:rp.SET_CARD_ERROR_FOR_READERS,data:e,error:t}}function*up(e,t){try{const n=yield(0,Ds.apiFetch)({path:`${gs}/readers/charges/${t}`});yield sp(e,n)}catch(t){yield lp(e,null,t)}}function*mp(e){const t=(0,ys.addQueryArgs)(`${gs}/readers`,{limit:e.limit});try{const n=yield(0,Ds.apiFetch)({path:t})||{};yield cp(e,n)}catch(e){yield dp(null,e)}}var pp;!function(e){e.SET_ACTIVE_LOAN_SUMMARY="SET_ACTIVE_LOAN_SUMMARY",e.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY="SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY",e.SET_LOANS="SET_LOANS",e.SET_ERROR_FOR_LOANS="SET_ERROR_FOR_LOANS"}(pp||(pp={}));const yp=pp,hp={},fp=e=>e&&e.capital||{},_p=e=>fp(e).summary,gp=e=>fp(e).summaryError,vp=e=>fp(e).loans||[],wp=e=>fp(e).loansError;function bp(e){return{type:yp.SET_ACTIVE_LOAN_SUMMARY,data:e}}function Ep(e){return{type:yp.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY,error:e}}function $p(e){return{type:yp.SET_LOANS,data:e.data}}function Sp(e){return{type:yp.SET_ERROR_FOR_LOANS,error:e}}function*Cp(){const e=`${gs}/capital/active_loan_summary`;try{const t=yield(0,Ds.apiFetch)({path:e});yield bp(t)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Ep(e)}}function*kp(){const e=`${gs}/capital/loans`;try{const t=yield(0,Ds.apiFetch)({path:e});yield $p(t)}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving the active loan summary.","woocommerce-payments")),yield Sp(e)}}const Ip={SET_DOCUMENTS:"SET_DOCUMENTS",SET_ERROR_FOR_DOCUMENTS:"SET_ERROR_FOR_DOCUMENTS",SET_DOCUMENTS_SUMMARY:"SET_DOCUMENTS_SUMMARY",SET_ERROR_FOR_DOCUMENTS_SUMMARY:"SET_ERROR_FOR_DOCUMENTS_SUMMARY"},Np={summary:{}},xp=e=>e&&e.documents||{},Tp=(e,t)=>{const n=Ps(t);return xp(e)[n]||{}},Op=(e,t)=>Tp(e,t).data||[],Lp=(e,t)=>Tp(e,t).error||{},Ap=(e,t)=>{const n=Ps(t);return xp(e).summary[n]||{}},Mp=(e,t)=>Ap(e,t).data||{},Dp=(e,t)=>Ap(e,t).error||{};function Rp(e,t){return{type:Ip.SET_DOCUMENTS,query:e,data:t}}function Pp(e,t,n){return{type:Ip.SET_ERROR_FOR_DOCUMENTS,query:e,data:t,error:n}}function jp(e,t){return{type:Ip.SET_DOCUMENTS_SUMMARY,query:e,data:t}}function Fp(e,t,n){return{type:Ip.SET_ERROR_FOR_DOCUMENTS_SUMMARY,query:e,data:t,error:n}}const zp=e=>({user_email:e.userEmail,match:e.match,date_before:Cs(e.dateBefore,!0),date_after:Cs(e.dateAfter),date_between:e.dateBetween&&[Cs(e.dateBetween[0]),Cs(e.dateBetween[1],!0)],type_is:e.typeIs,type_is_not:e.typeIsNot});function*Bp(e){const t=(0,ys.addQueryArgs)(`${gs}/documents`,{page:e.paged,pagesize:e.perPage,sort:e.orderby,direction:e.order,...zp(e)});try{const n=yield(0,Ds.apiFetch)({path:t});yield Rp(e,n.data||[])}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving documents.","woocommerce-payments")),yield Pp(e,null,t)}}function*Up(e){const t=(0,ys.addQueryArgs)(`${gs}/documents/summary`,zp(e));try{const n=yield(0,Ds.apiFetch)({path:t});yield jp(e,n)}catch(t){yield Fp(e,null,t)}}const Vp={},Hp=(e,t)=>{let{paymentIntents:n}=e;const r=null==n?void 0:n[t];return(null==r?void 0:r.data)||{}},Yp=(e,t)=>{let{paymentIntents:n}=e;const r=null==n?void 0:n[t];return(null==r?void 0:r.error)||{}},Wp=e=>-1!==e.indexOf("ch_")||-1!==e.indexOf("py_"),Gp=e=>{const{data:t,error:n,isLoading:r}=(0,ps.useSelect)((t=>{const n=t(vs);if(Wp(e))return((e,t)=>{const{getCharge:n,isResolving:r,getChargeError:o,hasFinishedResolution:a}=t;return{data:n(e),error:o(e),isLoading:r("getCharge",[e])||!a("getCharge",[e])}})(e,n);const{getPaymentIntent:r,getPaymentIntentError:o,isResolving:a,hasFinishedResolution:i}=n;return{data:r(e)||{},error:o(e),isLoading:a("getPaymentIntent",[e])||!i("getPaymentIntent",[e])}}),[e]),{refundCharge:o}=(0,ps.useDispatch)(vs);return{data:t,error:n,isLoading:r,doRefund:(e,t)=>o(e,t)}},qp={SET_AUTHORIZATIONS:"SET_AUTHORIZATIONS",SET_AUTHORIZATION:"SET_AUTHORIZATION",SET_ERROR_FOR_AUTHORIZATIONS:"SET_ERROR_FOR_AUTHORIZATIONS",SET_AUTHORIZATIONS_SUMMARY:"SET_AUTHORIZATIONS_SUMMARY",SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:"SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY",SET_IS_REQUESTING_AUTHORIZATION:"SET_IS_REQUESTING_AUTHORIZATION"},Zp={summary:{},byId:{},isRequesting:!1},Qp=e=>e&&e.authorizations||{},Kp=(e,t)=>{const n=Ps(t);return Qp(e)[n]||{}},Jp=(e,t)=>Kp(e,t).data||[],Xp=(e,t)=>(Qp(e).byId||{})[t],ey=(e,t)=>Kp(e,t).error||{},ty=(e,t)=>{const n=Ps(t);return Qp(e).summary[n]||{}},ny=(e,t)=>ty(e,t).data||{},ry=(e,t)=>ty(e,t).error||{},oy=e=>Qp(e).isRequesting;function ay(e,t){return{type:qp.SET_AUTHORIZATIONS,data:t,query:e}}function iy(e,t){return{type:qp.SET_ERROR_FOR_AUTHORIZATIONS,query:e,error:t}}function sy(e){return{type:qp.SET_AUTHORIZATION,data:e}}function cy(e,t){return{type:qp.SET_AUTHORIZATIONS_SUMMARY,data:t,query:e}}function ly(e){return{type:qp.SET_IS_REQUESTING_AUTHORIZATION,data:e}}function*dy(e,t){try{yield ps.controls.dispatch(vs,"startResolution","getAuthorization",[e]),yield ps.controls.dispatch(vs,"setIsRequestingAuthorization",!0);const n=yield(0,Ds.apiFetch)({path:`/wc/v3/payments/orders/${t}/capture_authorization`,method:"post",data:{payment_intent_id:e}}),r={payment_intent_id:n.id,captured:"succeeded"===n.status};yield sy(r),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getAuthorizations"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getTimeline"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield ps.controls.dispatch("core/notices","createSuccessNotice",(0,B.sprintf)((0,B.__)("Payment for order #%s captured successfully.","woocommerce-payments"),t))}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.sprintf)((0,B.__)("There has been an error capturing the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield ps.controls.dispatch(vs,"finishResolution","getAuthorization",[e]),yield ps.controls.dispatch(vs,"setIsRequestingAuthorization",!1)}}function*uy(e,t){try{yield ps.controls.dispatch(vs,"startResolution","getAuthorization",[e]),yield ps.controls.dispatch(vs,"setIsRequestingAuthorization",!0);const n=yield(0,Ds.apiFetch)({path:`/wc/v3/payments/orders/${t}/cancel_authorization`,method:"post",data:{payment_intent_id:e}}),r={payment_intent_id:n.id,captured:"succeeded"===n.status};yield sy(r),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getAuthorizations"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getAuthorizationsSummary"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactions"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getFraudOutcomeTransactionsSummary"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getTimeline"),yield ps.controls.dispatch(vs,"invalidateResolutionForStoreSelector","getPaymentIntent"),yield ps.controls.dispatch("core/notices","createSuccessNotice",(0,B.sprintf)((0,B.__)("Payment for order #%s canceled successfully.","woocommerce-payments"),t))}catch(e){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.sprintf)((0,B.__)("There has been an error canceling the payment for order #%s. Please try again later.","woocommerce-payments"),t))}finally{yield ps.controls.dispatch(vs,"finishResolution","getAuthorization",[e]),yield ps.controls.dispatch(vs,"setIsRequestingAuthorization",!1)}}function my(e,t){return{type:qp.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY,query:e,error:t}}function*py(e){var t;let{paged:n=1,per_page:r=25,orderby:o="created",order:a="asc"}=e;"capture_by"===o&&(o="created");const i=(0,ys.addQueryArgs)(`${gs}/authorizations`,{page:n,pagesize:r,sort:o,direction:a});try{const n=yield(0,Ds.apiFetch)({path:i});yield ay(e,null!==(t=n.data)&&void 0!==t?t:[])}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield iy(e,t)}}function*yy(e){try{if(e){const t=yield(0,Ds.apiFetch)({path:`${gs}/authorizations/${e}`}),{is_captured:n,payment_intent_id:r,created:o}=t;yield sy({payment_intent_id:r,captured:n,created:o})}}catch(e){"authorization_missing"!==e.code&&(yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving authorization.","woocommerce-payments")))}}function*hy(e){const t=(0,ys.addQueryArgs)(`${gs}/authorizations/summary`,{pagesize:e.per_page,sort:e.orderby,direction:e.order,page:e.paged});try{const n=yield(0,Ds.apiFetch)({path:t});yield cy(e,null!=n?n:[])}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving uncaptured transactions.","woocommerce-payments")),yield my(e,t)}}const fy=e=>(0,ps.useSelect)((t=>{const{getAuthorizationsSummary:n,getAuthorizationsSummaryError:r,isResolving:o}=t(vs);return{authorizationsSummary:n(e),authorizationsSummaryError:r(e),isLoading:o("getAuthorizationsSummary",[e])}})),_y=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const{authorization:r,isRequesting:o,isLoading:a}=(0,ps.useSelect)((t=>{const{getAuthorization:r,getIsRequesting:o,isResolving:a}=t(vs);return{authorization:n?r(e):null,isLoading:a("getAuthorization",[e]),isRequesting:o()}})),{submitCaptureAuthorization:i,submitCancelAuthorization:s}=(0,ps.useDispatch)(vs);return{authorization:r,isLoading:a,isRequesting:o,doCaptureAuthorization:()=>i(e,t),doCancelAuthorization:()=>s(e,t)}};var gy;!function(e){e.SET_FILE="SET_FILE",e.SET_ERROR_FOR_FILES="SET_ERROR_FOR_FILES"}(gy||(gy={}));const vy=gy,wy={},by=(e,t)=>{let{files:n}=e;const r=null==n?void 0:n[t];return(null==r?void 0:r.data)||{}},Ey=(e,t)=>{let{files:n}=e;const r=null==n?void 0:n[t];return(null==r?void 0:r.error)||{}};function $y(e,t){return{type:vy.SET_FILE,id:e,data:t}}function Sy(e,t){return{type:vy.SET_ERROR_FOR_FILES,id:e,error:t}}function*Cy(e){try{const t=yield(0,Ds.apiFetch)({path:`${gs}/file/${e}/details`});yield $y(e,t)}catch(t){yield ps.controls.dispatch("core/notices","createErrorNotice",(0,B.__)("Error retrieving file.","woocommerce-payments")),yield Sy(e,t)}}(0,ps.registerStore)(vs,{reducer:(0,ps.combineReducers)({deposits:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:js,{type:t,query:n={},data:r=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=Ps(n);switch(t){case Rs.SET_DEPOSIT:return{...e,byId:{...e.byId,[r.id]:r}};case Rs.SET_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,data:r}};case Rs.SET_ERROR_FOR_DEPOSITS_OVERVIEW:return{...e,overview:{...e.overview,error:o}};case Rs.SET_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,data:r}};case Rs.SET_ERROR_FOR_ALL_DEPOSITS_OVERVIEWS:return{...e,overviews:{...e.overviews,error:o}};case Rs.SET_DEPOSITS:return{...e,byId:{...e.byId,...(0,W.keyBy)(r,"id")},queries:{...e.queries,[a]:{data:(0,W.map)(r,"id")}}};case Rs.SET_DEPOSITS_COUNT:return{...e,count:r};case Rs.SET_ERROR_FOR_DEPOSIT_QUERY:return{...e,queries:{...e.queries,[a]:{error:o}}};case Rs.SET_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:r}}};case Rs.SET_ERROR_FOR_DEPOSITS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}};case Rs.SET_INSTANT_DEPOSIT:return{...e,instant:{...e.instant,data:r}}}return e},transactions:function(){var e,t,n,r,o,a,i,s;let c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dc,{type:l,query:d={},data:u=[],error:m,status:p}=arguments.length>1?arguments[1]:void 0;const y=Ps(d);switch(l){case Mc.SET_TRANSACTIONS:return{...c,[y]:{data:u}};case Mc.SET_ERROR_FOR_TRANSACTIONS:return{...c,[y]:{error:m}};case Mc.SET_TRANSACTIONS_SUMMARY:return{...c,summary:{...c.summary,[y]:{data:u}}};case Mc.SET_ERROR_FOR_TRANSACTIONS_SUMMARY:return{...c,summary:{...c.summary,[y]:{error:m}}};case Mc.SET_FRAUD_OUTCOME_TRANSACTIONS:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(e=c.fraudProtection)||void 0===e?void 0:e[p])||{},[y]:{data:u}}}};case Mc.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(t=c.fraudProtection)||void 0===t?void 0:t[p])||{},[y]:{error:m}}}};case Mc.SET_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(n=c.fraudProtection)||void 0===n?void 0:n[p])||{},summary:{...(null===(r=c.fraudProtection)||void 0===r||null===(o=r[p])||void 0===o?void 0:o.summary)||{},[y]:{data:u}}}}};case Mc.SET_ERROR_FOR_FRAUD_OUTCOME_TRANSACTIONS_SUMMARY:return{...c,fraudProtection:{...c.fraudProtection,[p]:{...(null===(a=c.fraudProtection)||void 0===a?void 0:a[p])||{},summary:{...(null===(i=c.fraudProtection)||void 0===i||null===(s=i[p])||void 0===s?void 0:s.summary)||{},[y]:{error:m}}}}}}return c},charges:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case ml.SET_CHARGE:e={...e,[n]:{...e[n],data:r}};break;case ml.SET_ERROR_FOR_CHARGE:e={...e,[n]:{...e[n],error:o}}}return e},timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case bl.SET_TIMELINE:e={...e,[n]:{data:r}};break;case bl.SET_ERROR_FOR_TIMELINE:e={...e,[n]:{...e[n],error:o}}}return e},disputes:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Nl,{type:t,query:n={},data:r=[],id:o,error:a}=arguments.length>1?arguments[1]:void 0;const i=Ps(n);switch(t){case Il.SET_DISPUTE:return{...e,byId:{...e.byId,[r.id]:r}};case Il.SET_ERROR_FOR_DISPUTE:e={...e,byId:{...e.byId,[o]:{error:a}}};break;case Il.SET_DISPUTES:return{...e,cached:{...e.cached,...(0,W.keyBy)(r,"dispute_id")},queries:{...e.queries,[i]:{data:(0,W.map)(r,"dispute_id")}}};case Il.SET_DISPUTES_SUMMARY:return{...e,summary:{...e.summary,[i]:{data:r}}}}return e},settings:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:cd,{type:t,...n}=arguments.length>1?arguments[1]:void 0;switch(t){case sd.SET_SETTINGS:return{...e,data:n.data};case sd.SET_SETTINGS_VALUES:return{...e,savingError:null,data:{...e.data,...n.payload}};case sd.SET_IS_SAVING_SETTINGS:return{...e,isSaving:n.isSaving,savingError:n.error};case sd.SET_SELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.concat(n.id)}};case sd.SET_UNSELECTED_PAYMENT_METHOD:return{...e,data:{...e.data,enabled_payment_method_ids:e.data.enabled_payment_method_ids.filter((e=>e!==n.id))}}}return e},multiCurrency:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Am,{type:t,data:n=[]}=arguments.length>1?arguments[1]:void 0;switch(t){case Lm.SET_CURRENCIES:return{...e,currencies:n,available:n.available,enabled:n.enabled,default:n.default};case Lm.SET_AVAILABLE_CURRENCIES:return{...e,currencies:{...e,available:n.available},available:n.available};case Lm.SET_ENABLED_CURRENCIES:return{...e,currencies:{...e,enabled:n.enabled},enabled:n.enabled};case Lm.SET_DEFAULT_CURRENCY:return{...e,currencies:{...e,default:n.default},default:n.default};case Lm.SET_CURRENCY_SETTINGS:return{...e,currency_settings:{...e.currency_settings,[n.code]:n.data}};case Lm.SET_STORE_SETTINGS:return{...e,settings:{enable_auto_currency:n.wcpay_multi_currency_enable_auto_currency,enable_storefront_switcher:n.wcpay_multi_currency_enable_storefront_switcher,site_theme:n.site_theme,date_format:n.date_format,time_format:n.time_format,store_url:n.store_url}}}return e},readers:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{type:t,id:n,data:r,error:o}=arguments.length>1?arguments[1]:void 0;switch(t){case rp.SET_CARD_READER_STATS:e={...e,[n]:{...e[n],data:r}};break;case rp.SET_ERROR_FOR_CARD_READER_STATS:e={...e,[n]:{...e[n],error:o}};break;case rp.SET_READERS:e={...e,list:r}}return e},capital:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hp,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yp.SET_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:t.data,summaryError:void 0});case yp.SET_ERROR_FOR_ACTIVE_LOAN_SUMMARY:return Object.assign(Object.assign({},e),{summary:void 0,summaryError:t.error});case yp.SET_LOANS:return Object.assign(Object.assign({},e),{loans:t.data,loansError:void 0});case yp.SET_ERROR_FOR_LOANS:return Object.assign(Object.assign({},e),{loans:void 0,loansError:t.error})}return e},documents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Np,{type:t,query:n={},data:r=[],error:o}=arguments.length>1?arguments[1]:void 0;const a=Ps(n);switch(t){case Ip.SET_DOCUMENTS:return{...e,[a]:{data:r}};case Ip.SET_ERROR_FOR_DOCUMENTS:return{...e,[a]:{error:o}};case Ip.SET_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{data:r}}};case Ip.SET_ERROR_FOR_DOCUMENTS_SUMMARY:return{...e,summary:{...e.summary,[a]:{error:o}}}}return e},paymentIntents:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Vp,t=arguments.length>1?arguments[1]:void 0;const{type:n,id:r}=t;switch(n){case Rl.SET_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),{data:t.data})});case Rl.SET_ERROR_FOR_PAYMENT_INTENT:return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),{error:t.error})});default:return e}},authorizations:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zp,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case qp.SET_AUTHORIZATION:{const{data:n}=t;return Object.assign(Object.assign({},e),{byId:Object.assign(Object.assign({},e.byId),{[n.payment_intent_id]:Object.assign(Object.assign({},e.byId[n.payment_intent_id]),n)})})}case qp.SET_AUTHORIZATIONS:{const{data:n,query:r}=t;return Object.assign(Object.assign({},e),{[Ps(r)]:{data:n}})}case qp.SET_ERROR_FOR_AUTHORIZATIONS:{const{error:n,query:r}=t;return Object.assign(Object.assign({},e),{[Ps(r)]:{error:n}})}case qp.SET_AUTHORIZATIONS_SUMMARY:{const{data:n,query:r}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[Ps(r)]:{data:n||{}}})})}case qp.SET_ERROR_FOR_AUTHORIZATIONS_SUMMARY:{const{query:n,error:r}=t;return Object.assign(Object.assign({},e),{summary:Object.assign(Object.assign({},e.summary),{[Ps(n)]:{error:r||""}})})}case qp.SET_IS_REQUESTING_AUTHORIZATION:{const{data:n}=t;return Object.assign(Object.assign({},e),{isRequesting:n})}}return e},files:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wy,t=arguments.length>1?arguments[1]:void 0;const{type:n,id:r}=t;switch(n){case vy.SET_FILE:return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),{data:t.data})});case vy.SET_ERROR_FOR_FILES:return Object.assign(Object.assign({},e),{[r]:Object.assign(Object.assign({},e[r]),{error:t.error})});default:return e}}}),actions:{...t,...a,...c,...u,...f,...v,...E,...C,...N,...O,...y,...D,...j},controls:Ds.controls,selectors:{...e,...o,...s,...d,...p,...g,...b,...S,...I,...T,...A,...M,...P},resolvers:{...r,...i,...l,...m,..._,...w,...$,...k,...x,...L,...h,...R,...F}});const ky=window.wc.navigation,Iy=window.wc.csvExport,Ny={deposit:(0,B.__)("Deposit","woocommerce-payments"),withdrawal:(0,B.__)("Withdrawal","woocommerce-payments")},xy={paid:(0,B.__)("Paid","woocommerce-payments"),pending:(0,B.__)("Pending","woocommerce-payments"),in_transit:(0,B.__)("In transit","woocommerce-payments"),canceled:(0,B.__)("Canceled","woocommerce-payments"),failed:(0,B.__)("Failed","woocommerce-payments")},Ty=(e,t)=>bs({page:"wc-admin",path:`/payments/${t}/details`,id:e}),Oy=e=>{let{id:t,parentSegment:n}=e;return t?H().createElement(cs.Link,{href:Ty(t,n)},H().createElement(Ua.Z,{size:18})):null},Ly=e=>{let{href:t,children:n,...r}=e;return t?(0,Y.createElement)(cs.Link,X({href:t,className:"woocommerce-table__clickable-cell",tabIndex:"-1"},r),n):n},Ay=Object.entries(xy).map((e=>{let[t,n]=e;return{label:n,value:t}})),My=[{label:(0,B.__)("Deposit currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","filter","date_before","date_after","date_between","status_is","status_is_not","match"],showFilters:()=>!1,filters:[{label:(0,B.__)("All","woocommerce-payments"),value:"---"}],defaultValue:"---"},{label:(0,B.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,B.__)("All deposits","woocommerce-payments"),value:"all"},{label:(0,B.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],Dy=(0,Kl.getSetting)("wcVersion"),Ry=parseFloat(Dy),Py={title:Ry<7.8?(0,B.__)("Deposits match {{select /}} filters","woocommerce-payments"):(0,B.__)("Deposits match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,B.__)("Date","woocommerce-payments"),remove:(0,B.__)("Remove deposit date filter","woocommerce-payments"),rule:(0,B.__)("Select a deposit date filter match","woocommerce-payments"),title:Ry<7.8?(0,B.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a deposit date","woocommerce-payments")},rules:[{value:"before",label:(0,B.__)("Before","woocommerce-payments")},{value:"after",label:(0,B.__)("After","woocommerce-payments")},{value:"between",label:(0,B.__)("Between","woocommerce-payments")}],input:{component:"Date"}},status:{labels:{add:(0,B.__)("Status","woocommerce-payments"),remove:(0,B.__)("Remove deposit status filter","woocommerce-payments"),rule:(0,B.__)("Select a deposit status filter match","woocommerce-payments"),title:Ry<7.8?(0,B.__)("{{title}}Status{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Status</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a deposit status","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","deposit status","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","deposit status","woocommerce-payments")}],input:{component:"SelectControl",options:Ay}}}},jy=e=>{return(0,Y.createElement)(cs.ReportFilters,{filters:(t=My,t.forEach((t=>{if("store_currency_is"===t.param){const n=e.storeCurrencies||[];t.filters=[t.filters[0],...n.map((e=>({label:nc(e),value:e})))],t.filters.length>2&&(t.showFilters=()=>!0)}})),t),advancedFilters:Py,showDatePicker:!1,path:"/payments/deposits",query:(0,ky.getQuery)()});var t};var Fy=n(1784);const zy=e=>{let{isDisabled:t,onClick:n}=e;return H().createElement(Jn,{className:"woocommerce-table__download-button",disabled:t,onClick:n},H().createElement(Fy.Z,null),H().createElement("span",{className:"woocommerce-table__download-button__label"},(0,B.__)("Download","woocommerce-payments")))},By=window.ReactDOM;var Uy=n.n(By);const Vy=document.getElementById("wpbody-content")||document.body,Hy=(e,t)=>!(!t||t!==e.target&&!(e.target instanceof Node&&t.contains(e.target))),Yy=(0,V.memo)((e=>{let{children:t,parentElement:n}=e;const r=(0,V.useRef)(null);return r.current||(r.current=document.createElement("div"),n.appendChild(r.current)),(0,V.useEffect)((()=>()=>{r.current&&(n.removeChild(r.current),r.current=null)}),[n]),(0,By.createPortal)(t,r.current)})),Wy=e=>{let{className:t,children:n,content:r,parentElement:o=Vy,hideDelayMs:a=600,isVisible:i,onHide:s,maxWidth:c="250px"}=e;const l=(0,V.useRef)(null),d=(0,V.useRef)(null),u=((e,t)=>{let{hideDelayMs:n=600,triggerRef:r,tooltipRef:o,parentElement:a,onHide:i=W.noop}=t;const[s,c]=(0,V.useState)(e),l=(0,V.useRef)(!1),d=(0,V.useRef)(i);return(0,V.useEffect)((()=>{d.current=i}),[i]),(0,V.useEffect)((()=>{let t=null;if(l.current){if(e)return a.dispatchEvent(new Event("wcpay-tooltip-open")),void c(!0);if(s)return t=setTimeout((()=>{c(!1),d.current()}),n),()=>{t&&clearTimeout(t)}}else l.current=!0}),[c,n,e,s,a]),(0,V.useEffect)((()=>{if(!s)return;const e=()=>{c(!1),d.current()},t=e=>{var t;Hy(e,null===(t=r.current)||void 0===t?void 0:t.firstChild)||Hy(e,o.current)||(c(!1),d.current())};return document.addEventListener("click",t),a.addEventListener("wcpay-tooltip-open",e),()=>{document.removeEventListener("click",t),a.removeEventListener("wcpay-tooltip-open",e)}}),[e,s,r,o,a]),s})(!!i,{hideDelayMs:a,triggerRef:l,tooltipRef:d,parentElement:o,onHide:s});return(0,V.useEffect)((()=>{const e=()=>{var e;if(!u)return;const t=d.current,n=null===(e=l.current)||void 0===e?void 0:e.firstChild;if(!t||!n)return;if(!(n instanceof HTMLElement))return;t.style.maxWidth=c;const r=n.getBoundingClientRect(),o=t.getBoundingClientRect().height;t.style.top=r.top-o-8+"px";let a=n.offsetWidth/2+r.left-t.offsetWidth/2;const i=window.innerWidth-(r.left+t.offsetWidth);a<0?a=45:i<0&&(a-=85),t.style.left=`${a}px`,t.style.visibility="visible",t.style.opacity="1"};e();const t=(0,W.debounce)(e,150);return window.addEventListener("resize",t),document.addEventListener("scroll",t),()=>{window.removeEventListener("resize",t),document.removeEventListener("scroll",t)}}),[u,c]),H().createElement(H().Fragment,null,H().createElement("div",{className:"wcpay-tooltip__content-wrapper",ref:l},n),u&&H().createElement(Yy,{parentElement:o},H().createElement("div",{ref:d,className:Z()("wcpay-tooltip__tooltip-wrapper",{"is-hiding":!i}),role:"tooltip"},H().createElement("div",{className:Z()("wcpay-tooltip__tooltip",t)},r))))};var Gy=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const qy=e=>{var{isVisible:t,onHide:n=W.noop,children:r,buttonIcon:o,buttonLabel:a,buttonSize:i=16}=e,s=Gy(e,["isVisible","onHide","children","buttonIcon","buttonLabel","buttonSize"]);const[c,l]=(0,V.useState)(!1),[d,u]=(0,V.useState)(!1),m=()=>{l(!0)},p=()=>{l(!1),n()};return H().createElement("button",{className:"wcpay-tooltip__content-wrapper",onMouseEnter:m,onMouseLeave:p,onFocus:m,onBlur:p,onClick:()=>{u((e=>!e)),d&&n()},type:"button"},H().createElement(Wy,Object.assign({},s,{onHide:()=>{l(!1),u(!1),n()},isVisible:t||c||d}),o?H().createElement(_n,{icon:o,size:i,"aria-label":a}):r))},Zy=e=>{var{isVisible:t,onHide:n=W.noop,buttonIcon:r,buttonLabel:o,buttonSize:a=16,children:i,className:s}=e,c=Gy(e,["isVisible","onHide","buttonIcon","buttonLabel","buttonSize","children","className"]);const[l,d]=(0,V.useState)(!1),u=(0,V.useRef)(null);return H().createElement("button",{className:"wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper",onClick:()=>{d((e=>!e)),l&&n()},type:"button",ref:u},H().createElement(Wy,Object.assign({},c,{parentElement:u.current||void 0,onHide:()=>{d(!1),n()},isVisible:t||l,className:Z()("wcpay-tooltip--click__tooltip",s)}),r?H().createElement("div",{tabIndex:0,role:"button","aria-label":o},H().createElement(_n,{icon:r,size:a})):i))},Qy=e=>{let{message:t,type:n="primary",className:r,tooltip:o}=e;const a=["chip",`chip-${n}`,null!=r?r:""];return o?H().createElement(qy,{content:o},H().createElement("span",{className:a.join(" ").trim()},t)):H().createElement("span",{className:a.join(" ").trim()},t)},Ky={pending:"warning",in_transit:"success",paid:"success",failed:"alert",canceled:"alert"},Jy=e=>{let{status:t}=e;return V.createElement(Qy,{type:Ky[t],message:xy[t]})},Xy=function(e){let{icon:t,size:n=24,...r}=e;return(0,Y.cloneElement)(t,{width:n,height:n,...r})},eh=(0,Y.createElement)(K.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Y.createElement)(K.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),th={"default.fontFamily":"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif","default.fontSize":"13px","helpText.fontSize":"12px",mobileTextMinFontSize:"16px"};function nh(e){return(0,W.get)(th,e,"")}const rh=Gn("div",{target:"ej5x27r4"})("font-family:",nh("default.fontFamily"),";font-size:",nh("default.fontSize"),";"),oh=Gn("div",{target:"ej5x27r3"})((e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&tr("margin-bottom:",or(2),";","")})," .components-panel__row &{margin-bottom:inherit;}"),ah=tr("display:inline-block;margin-bottom:",or(2),";",""),ih=Gn("label",{target:"ej5x27r2"})(ah,";");var sh={name:"11yad0w",styles:"margin-bottom:revert"};const ch=Gn("p",{target:"ej5x27r1"})("margin-top:",or(2),";margin-bottom:0;font-size:",nh("helpText.fontSize"),";font-style:normal;color:",Yr.mediumGray.text,";",(e=>{let{__nextHasNoMarginBottom:t=!1}=e;return!t&&sh}),";"),lh=Gn("span",{target:"ej5x27r0"})(ah,";"),dh=e=>{let{__nextHasNoMarginBottom:t=!1,id:n,label:r,hideLabelFromVision:o=!1,help:a,className:i,children:s}=e;return(0,Y.createElement)(rh,{className:Z()("components-base-control",i)},(0,Y.createElement)(oh,{className:"components-base-control__field",__nextHasNoMarginBottom:t},r&&n&&(o?(0,Y.createElement)(Qn,{as:"label",htmlFor:n},r):(0,Y.createElement)(ih,{className:"components-base-control__label",htmlFor:n},r)),r&&!n&&(o?(0,Y.createElement)(Qn,{as:"label"},r):(0,Y.createElement)(dh.VisualLabel,null,r)),s),!!a&&(0,Y.createElement)(ch,{id:n?n+"__help":void 0,className:"components-base-control__help",__nextHasNoMarginBottom:t},a))};dh.VisualLabel=e=>{let{className:t,children:n}=e;return(0,Y.createElement)(lh,{className:Z()("components-base-control__label",t)},n)};const uh=dh,mh={name:"hdknak",styles:"display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"},ph="…",yh={auto:"auto",head:"head",middle:"middle",tail:"tail",none:"none"},hh={ellipsis:ph,ellipsizeMode:yh.auto,limit:0,numberOfLines:0};let fh;Lr([Ar]);const _h=Pt()((function(e){var t,n;if("string"!=typeof e)return"";if("string"==typeof(n=e)&&Tr(n).isValid())return e;if(!e.includes("var("))return"";if("undefined"==typeof document)return"";const r=function(){if("undefined"!=typeof document){if(!fh){const e=document.createElement("div");e.setAttribute("data-g2-color-computation-node",""),document.body.appendChild(e),fh=e}return fh}}();if(!r)return"";r.style.background=e;const o=null===(t=window)||void 0===t?void 0:t.getComputedStyle(r).background;return r.style.background="",o||""}));const gh=tr("color:",Yr.darkGray.primary,";line-height:",Qr.fontLineHeightBase,";margin:0;",""),vh={name:"4zleql",styles:"display:block"},wh=tr("color:",Yr.alert.green,";",""),bh=tr("color:",Yr.alert.red,";",""),Eh=tr("color:",Yr.mediumGray.text,";",""),$h=tr("mark{background:",Yr.alert.yellow,";border-radius:2px;box-shadow:0 0 0 1px rgba( 0, 0, 0, 0.05 ) inset,0 -1px 0 rgba( 0, 0, 0, 0.1 ) inset;}",""),Sh={name:"50zrmy",styles:"text-transform:uppercase"};var Ch=n(6928);const kh=Pt()((e=>{const t={};for(const n in e)t[n.toLowerCase()]=e[n];return t})),Ih=13,Nh={body:Ih,caption:10,footnote:11,largeTitle:28,subheadline:12,title:20};function xh(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ih;if(e in Nh)return xh(Nh[e]);if("number"!=typeof e){const t=parseFloat(e);if(Number.isNaN(t))return e;e=t}return`calc((${e} / ${Ih}) * ${Qr.fontSize})`}[1,2,3,4,5,6].flatMap((e=>[e,e.toString()]));var Th={name:"50zrmy",styles:"text-transform:uppercase"};function Oh(e){const{adjustLineHeightForInnerControls:t,align:n,children:r,className:o,color:a,ellipsizeMode:i,isDestructive:s=!1,display:c,highlightEscape:l=!1,highlightCaseSensitive:d=!1,highlightWords:u,highlightSanitize:m,isBlock:p=!1,letterSpacing:y,lineHeight:h,optimizeReadabilityFor:f,size:_,truncate:g=!1,upperCase:v=!1,variant:w,weight:b=Qr.fontWeight,...E}=Dn(e,"Text");let $=r;const S=Array.isArray(u),C="caption"===_;if(S){if("string"!=typeof r)throw new TypeError("`children` of `Text` must only be `string` types when `highlightWords` is defined");$=function(e){let{activeClassName:t="",activeIndex:n=-1,activeStyle:r,autoEscape:o,caseSensitive:a=!1,children:i,findChunks:s,highlightClassName:c="",highlightStyle:l={},highlightTag:d="mark",sanitize:u,searchWords:m=[],unhighlightClassName:p="",unhighlightStyle:y}=e;if(!i)return null;if("string"!=typeof i)return i;const h=i,f=(0,Ch.findAll)({autoEscape:o,caseSensitive:a,findChunks:s,sanitize:u,searchWords:m,textToHighlight:h}),_=d;let g,v=-1,w="";return f.map(((e,o)=>{const i=h.substr(e.start,e.end-e.start);if(e.highlight){let e;v++,"object"==typeof c?a?e=c[i]:(c=kh(c),e=c[i.toLowerCase()]):e=c;const s=v===+n;w=`${e} ${s?t:""}`,g=!0===s&&null!==r?Object.assign({},l,r):l;const d={children:i,className:w,key:o,style:g};return"string"!=typeof _&&(d.highlightIndex=v),(0,Y.createElement)(_,d)}return(0,Y.createElement)("span",{children:i,className:p,key:o,style:y})}))}({autoEscape:l,children:r,caseSensitive:d,searchWords:u,sanitize:m})}const k=An();let I;!0===g&&(I="auto"),!1===g&&(I="none");const N=function(e){const{className:t,children:n,ellipsis:r=ph,ellipsizeMode:o=yh.auto,limit:a=0,numberOfLines:i=0,...s}=Dn(e,"Truncate"),c=An(),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t={...hh,...arguments.length>1?arguments[1]:void 0},{ellipsis:n,ellipsizeMode:r,limit:o}=t;if(r===yh.none)return e;let a,i;switch(r){case yh.head:a=0,i=o;break;case yh.middle:a=Math.floor(o/2),i=Math.floor(o/2);break;default:a=o,i=0}const s=r!==yh.auto?function(e,t,n,r){if("string"!=typeof e)return"";const o=e.length,a=~~t,i=~~n,s=(0,W.isNil)(r)?ph:r;return 0===a&&0===i||a>=o||i>=o||a+i>=o?e:0===i?e.slice(0,a)+s:e.slice(0,a)+s+e.slice(o-i)}(e,a,i,n):e;return s}("string"==typeof n?n:"",{ellipsis:r,ellipsizeMode:o,limit:a,numberOfLines:i}),d=o===yh.auto;return{...s,className:(0,Y.useMemo)((()=>{const e={};return e.numberOfLines=tr("-webkit-box-orient:vertical;-webkit-line-clamp:",i,";display:-webkit-box;overflow:hidden;",""),c(d&&!i&&mh,d&&!!i&&e.numberOfLines,t)}),[t,c,i,d]),children:l}}({...E,className:(0,Y.useMemo)((()=>{const e={},r=function(e,t){if(t)return t;if(!e)return;let n=`calc(${Qr.controlHeight} + ${or(2)})`;switch(e){case"large":n=`calc(${Qr.controlHeightLarge} + ${or(2)})`;break;case"small":n=`calc(${Qr.controlHeightSmall} + ${or(2)})`;break;case"xSmall":n=`calc(${Qr.controlHeightXSmall} + ${or(2)})`}return n}(t,h);if(e.Base=tr({color:a,display:c,fontSize:xh(_),fontWeight:b,lineHeight:r,letterSpacing:y,textAlign:n},"",""),e.upperCase=Th,e.optimalTextColor=null,f){const t="dark"==("#000000"===function(e){const t=_h(e);return Tr(t).isLight()?"#000000":"#ffffff"}(f)?"dark":"light");e.optimalTextColor=tr(t?{color:Yr.black}:{color:Yr.white},"","")}return k(gh,e.Base,e.optimalTextColor,s&&bh,!!S&&$h,p&&vh,C&&Eh,w&&z[w],v&&e.upperCase,o)}),[t,n,o,a,k,c,p,C,s,S,y,h,f,_,v,w,b]),children:r,ellipsizeMode:i||I});return!g&&Array.isArray(r)&&($=Y.Children.map(r,(e=>{return(0,W.isPlainObject)(e)&&"props"in e?(n=["Link"],(t=e)&&("string"==typeof n?jn(t).includes(n):Array.isArray(n)&&n.some((e=>jn(t).includes(e))))?(0,Y.cloneElement)(e,{size:e.props.size||"inherit"}):e):e;var t,n}))),{...N,children:g?N.children:$}}const Lh=Pn((function(e,t){const n=Oh(e);return(0,Y.createElement)(Zn,X({as:"span"},n,{ref:t}))}),"Text");var Ah={name:"1739oy8",styles:"z-index:1"};const Mh=e=>{let{isFocused:t}=e;return t?Ah:""};var Dh={name:"2o6p8u",styles:"justify-content:space-between"},Rh={name:"14qk3ip",styles:"align-items:flex-start;flex-direction:column-reverse"},Ph={name:"hbng6e",styles:"align-items:flex-start;flex-direction:column"};const jh=e=>{let{labelPosition:t}=e;switch(t){case"top":return Ph;case"bottom":return Rh;case"edge":return Dh;default:return""}},Fh=Gn(Pa,{target:"em5sgkm7"})("position:relative;border-radius:2px;padding-top:0;",Mh," ",jh,";");var zh={name:"wyxldh",styles:"margin:0 !important"},Bh={name:"1d3w5wq",styles:"width:100%"};const Uh=Gn("div",{target:"em5sgkm6"})("align-items:center;box-sizing:border-box;border-radius:inherit;display:flex;flex:1;position:relative;",(e=>{let{disabled:t}=e;return tr({backgroundColor:t?Yr.ui.backgroundDisabled:Yr.ui.background},"","")})," ",(e=>{let{hideLabel:t}=e;return t?zh:null})," ",(e=>{let{__unstableInputWidth:t,labelPosition:n}=e;return t?"side"===n?"":tr("edge"===n?{flex:`0 0 ${t}`}:{width:t},"",""):Bh}),";"),Vh=(Gn("input",{target:"em5sgkm5"})("&&&{background-color:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Yr.black,";display:block;font-family:inherit;margin:0;outline:none;width:100%;",(e=>{let t,n,{isDragging:r,dragCursor:o}=e;return r&&(t=tr("cursor:",o,";user-select:none;&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none!important;margin:0!important;}","")),r&&o&&(n=tr("&:active{cursor:",o,";}","")),tr(t," ",n,";","")})," ",(e=>{let{disabled:t}=e;return t?tr({color:Yr.ui.textDisabled},"",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"},r=n[t]||n.default;return r?tr("font-size:","16px",";@media ( min-width: 600px ){font-size:",r,";}",""):""})," ",(e=>{let{inputSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30,paddingLeft:8,paddingRight:8},small:{height:24,lineHeight:1,minHeight:24,paddingLeft:8,paddingRight:8},"__unstable-large":{height:40,lineHeight:1,minHeight:40,paddingLeft:16,paddingRight:16}};return tr(n[t]||n.default,"","")})," &::-webkit-input-placeholder{line-height:normal;}}"),e=>{let{labelPosition:t}=e,n=8;return"edge"!==t&&"side"!==t||(n=0),tr({marginTop:0,marginRight:0,marginBottom:n,marginLeft:0},"","")}),Hh=Gn(Lh,{target:"em5sgkm4"})("&&&{box-sizing:border-box;color:currentColor;display:block;padding-top:0;padding-bottom:0;max-width:100%;z-index:1;",Vh," overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}"),Yh=e=>(0,Y.createElement)(Hh,X({},e,{as:"label"})),Wh=Gn(Fa,{target:"em5sgkm3"})({name:"1b6uupn",styles:"max-width:calc( 100% - 10px )"}),Gh=Gn("div",{target:"em5sgkm2"})("&&&{box-sizing:border-box;border-radius:inherit;bottom:0;left:0;margin:0;padding:0;pointer-events:none;position:absolute;right:0;top:0;",(e=>{let t,{disabled:n,isFocused:r}=e,o=r?Yr.ui.borderFocus:Yr.ui.border;return r&&(t=`0 0 0 1px ${Yr.ui.borderFocus} inset`),n&&(o=Yr.ui.borderDisabled),tr({boxShadow:t,borderColor:o,borderStyle:"solid",borderWidth:1},"","")})," ",ma({paddingLeft:2}),";}"),qh=Gn("span",{target:"em5sgkm1"})({name:"pvvbxf",styles:"box-sizing:border-box;display:block"}),Zh=Gn("span",{target:"em5sgkm0"})({name:"jgf79h",styles:"align-items:center;align-self:stretch;box-sizing:border-box;display:flex"}),Qh=(0,Y.memo)((function(e){let{disabled:t=!1,isFocused:n=!1}=e;return(0,Y.createElement)(Gh,{"aria-hidden":"true",className:"components-input-control__backdrop",disabled:t,isFocused:n})})),Kh=Qh;function Jh(e){let{children:t,hideLabelFromVision:n,htmlFor:r,...o}=e;return t?n?(0,Y.createElement)(Qn,{as:"label",htmlFor:r},t):(0,Y.createElement)(Yh,X({htmlFor:r},o),t):null}const Xh=(0,Y.forwardRef)((function e(t,n){let{__unstableInputWidth:r,children:o,className:a,disabled:i=!1,hideLabelFromVision:s=!1,labelPosition:c,id:l,isFocused:d=!1,label:u,prefix:m,size:p="default",suffix:y,...h}=t;const f=function(t){const n=(0,ne.useInstanceId)(e);return t||`input-base-control-${n}`}(l),_=s||!u;return(0,Y.createElement)(Fh,X({},h,function(e){const t={};switch(e){case"top":t.direction="column",t.gap=0;break;case"bottom":t.direction="column-reverse",t.gap=0;break;case"edge":t.justify="space-between"}return t}(c),{className:a,isFocused:d,labelPosition:c,ref:n}),(0,Y.createElement)(Wh,null,(0,Y.createElement)(Jh,{className:"components-input-control__label",hideLabelFromVision:s,labelPosition:c,htmlFor:f,size:p},u)),(0,Y.createElement)(Uh,{__unstableInputWidth:r,className:"components-input-control__container",disabled:i,hideLabel:_,labelPosition:c},m&&(0,Y.createElement)(qh,{className:"components-input-control__prefix"},m),o,y&&(0,Y.createElement)(Zh,{className:"components-input-control__suffix"},y),(0,Y.createElement)(Kh,{disabled:i,isFocused:d})))})),ef=Gn("select",{target:"e1mv6sxx1"})("&&&{appearance:none;background:transparent;box-sizing:border-box;border:none;box-shadow:none!important;color:",Yr.black,";display:block;font-family:inherit;margin:0;width:100%;",(e=>{let{disabled:t}=e;return t?tr({color:Yr.ui.textDisabled},"",""):""}),";",(e=>{let{selectSize:t}=e;const n={default:"13px",small:"11px","__unstable-large":"13px"}[t];return n?tr("font-size:","16px",";@media ( min-width: 600px ){font-size:",n,";}",""):""}),";",(e=>{let{selectSize:t}=e;const n={default:{height:30,lineHeight:1,minHeight:30},small:{height:24,lineHeight:1,minHeight:24},"__unstable-large":{height:40,lineHeight:1,minHeight:40}};return tr(n[t]||n.default,"","")}),";",(e=>{let{selectSize:t="default"}=e;return ma({default:{paddingLeft:8,paddingRight:24},small:{paddingLeft:8,paddingRight:24},"__unstable-large":{paddingLeft:16,paddingRight:32}}[t])}),";}"),tf=Gn("div",{target:"e1mv6sxx0"})("align-items:center;bottom:0;box-sizing:border-box;display:flex;padding:0 4px;pointer-events:none;position:absolute;top:0;",ma({right:0})," svg{display:block;}");const nf=(0,Y.forwardRef)((function e(t,n){let{className:r,disabled:o=!1,help:a,hideLabelFromVision:i,id:s,label:c,multiple:l=!1,onBlur:d=W.noop,onChange:u=W.noop,onFocus:m=W.noop,options:p=[],size:y="default",value:h,labelPosition:f="top",children:_,prefix:g,suffix:v,...w}=t;const[b,E]=(0,Y.useState)(!1),$=function(t){const n=(0,ne.useInstanceId)(e);return t||`inspector-select-control-${n}`}(s),S=a?`${$}__help`:void 0;if((0,W.isEmpty)(p)&&!_)return null;const C=Z()("components-select-control",r);return(0,Y.createElement)(uh,{help:a,id:$},(0,Y.createElement)(Xh,{className:C,disabled:o,hideLabelFromVision:i,id:$,isFocused:b,label:c,size:y,suffix:v||(0,Y.createElement)(tf,null,(0,Y.createElement)(Xy,{icon:eh,size:18})),prefix:g,labelPosition:f},(0,Y.createElement)(ef,X({},w,{"aria-describedby":S,className:"components-select-control__input",disabled:o,id:$,multiple:l,onBlur:e=>{d(e),E(!1)},onChange:e=>{if(l){const t=Array.from(e.target.options).filter((e=>{let{selected:t}=e;return t})),n=t.map((e=>{let{value:t}=e;return t}));u(n)}else u(e.target.value,{event:e})},onFocus:e=>{m(e),E(!0)},ref:n,selectSize:y,value:h}),_||p.map(((e,t)=>{const n=e.id||`${e.label}-${e.value}-${t}`;return(0,Y.createElement)("option",{key:n,value:e.value,disabled:e.disabled},e.label)})))))})),rf=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M7 11.5h10V13H7z"}));function of(e){let{label:t,className:n,heading:r,checked:o,indeterminate:a,help:i,onChange:s,...c}=e;r&&te()("`heading` prop in `CheckboxControl`",{alternative:"a separate element to implement a heading",since:"5.8"});const[l,d]=(0,Y.useState)(!1),[u,m]=(0,Y.useState)(!1),p=(0,ne.useRefEffect)((e=>{e&&(e.indeterminate=!!a,d(e.matches(":checked")),m(e.matches(":indeterminate")))}),[o,a]),y=`inspector-checkbox-control-${(0,ne.useInstanceId)(of)}`;return(0,Y.createElement)(uh,{label:r,id:y,help:i,className:Z()("components-checkbox-control",n)},(0,Y.createElement)("span",{className:"components-checkbox-control__input-container"},(0,Y.createElement)("input",X({ref:p,id:y,className:"components-checkbox-control__input",type:"checkbox",value:"1",onChange:e=>s(e.target.checked),checked:o,"aria-describedby":i?y+"__help":void 0},c)),u?(0,Y.createElement)(Xy,{icon:rf,className:"components-checkbox-control__indeterminate",role:"presentation"}):null,l?(0,Y.createElement)(Xy,{icon:Ga,className:"components-checkbox-control__checked",role:"presentation"}):null),(0,Y.createElement)("label",{className:"components-checkbox-control__label",htmlFor:y},t))}const af=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M18.2 17c0 .7-.6 1.2-1.2 1.2H7c-.7 0-1.2-.6-1.2-1.2V7c0-.7.6-1.2 1.2-1.2h3.2V4.2H7C5.5 4.2 4.2 5.5 4.2 7v10c0 1.5 1.2 2.8 2.8 2.8h10c1.5 0 2.8-1.2 2.8-2.8v-3.6h-1.5V17zM14.9 3v1.5h3.7l-6.4 6.4 1.1 1.1 6.4-6.4v3.7h1.5V3h-6.3z"})),sf=Gn(Xy,{target:"etxm6pv0"})({name:"rvs7bx",styles:"width:1em;height:1em;margin:0;vertical-align:middle;fill:currentColor"}),cf=(0,Y.forwardRef)((function(e,t){let{href:n,children:r,className:o,rel:a="",...i}=e;a=(0,W.uniq)((0,W.compact)([...a.split(" "),"external","noreferrer","noopener"])).join(" ");const s=Z()("components-external-link",o);return(0,Y.createElement)("a",X({},i,{className:s,href:n,target:"_blank",rel:a,ref:t}),r,(0,Y.createElement)(Qn,{as:"span"},(0,B.__)("(opens in a new tab)")),(0,Y.createElement)(sf,{icon:af,className:"components-external-link__icon"}))}));var lf=n(7199);const df=e=>{var{children:t,actions:n,className:r}=e,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","actions","className"]);return H().createElement(es,Object.assign({className:Z()("wcpay-confirmation-modal",r)},o),t,H().createElement(K.HorizontalRule,{className:"wcpay-confirmation-modal__separator"}),H().createElement("div",{className:"wcpay-confirmation-modal__footer"},n))};const uf=e=>{let{totalItems:t,exportType:n,onClose:r,onSubmit:o}=e;const{updateOptions:a}=(0,ps.useDispatch)("wc/admin/options"),{saveSettings:i}=Tm(),[s,c]=Im(),[l,d]=(0,V.useState)(s),[u,m]=(0,V.useState)(!0),p=H().createElement(H().Fragment,null,H().createElement(Jn,{isSecondary:!0,onClick:r},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{isPrimary:!0,onClick:()=>{return e=void 0,t=void 0,r=function*(){o(l),u&&(yield a({wcpay_reporting_export_modal_dismissed:u}),c(l),i(),wcpaySettings.reporting.exportModalDismissed=!0)},new((n=void 0)||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}},(0,B.__)("Download","woocommerce-payments")));return H().createElement(df,{title:(e=>{switch(e){case"transactions":return(0,B.__)("Export transactions report","woocommerce-payments");case"deposits":return(0,B.__)("Export deposits report","woocommerce-payments");case"disputes":return(0,B.__)("Export disputes report","woocommerce-payments");default:return(0,B.__)("Export report","woocommerce-payments")}})(n),isDismissible:!1,className:"reporting-export-modal",actions:p,onRequestClose:()=>!1},H().createElement("div",{className:"reporting-export-modal__items-number"},ss({mixedString:(e=>{switch(e){case"transactions":return(0,B.__)("Exporting {{total/}} transactions…","woocommerce-payments");case"deposits":return(0,B.__)("Exporting {{total/}} deposits…","woocommerce-payments");case"disputes":return(0,B.__)("Exporting {{total/}} disputes…","woocommerce-payments");default:return(0,B.__)("Exporting {{total/}} rows…","woocommerce-payments")}})(n),components:{total:H().createElement("strong",null,t)}})),H().createElement("div",{className:"reporting-export-modal__settings"},H().createElement("h4",null,"Settings"),H().createElement("div",{className:"reporting-export-modal__settings--language"},H().createElement("div",{className:"reporting-export-modal__settings--language-label"},H().createElement(lf.Z,{className:"domains-icon"}),H().createElement("span",{className:"export-label"},(e=>{switch(e){case"transactions":return(0,B.__)("Export transactions report in","woocommerce-payments");case"deposits":return(0,B.__)("Export deposits report in","woocommerce-payments");case"disputes":return(0,B.__)("Export disputes report in","woocommerce-payments");default:return(0,B.__)("Export report in","woocommerce-payments")}})(n))),H().createElement("div",{className:"reporting-export-modal__settings--language-select"},H().createElement(nf,{label:"",value:l,onChange:e=>{d(e)},options:[{label:(0,B.__)("English (United States)","woocommerce-payments"),value:"en_US"},{label:(0,B.__)("Site Language - ","woocommerce-payments")+wcpaySettings.locale.native_name,value:wcpaySettings.locale.code}]}))),H().createElement("div",{className:"reporting-export-modal__settings--remember"},H().createElement(of,{label:(0,B.__)("Remember the language settings.","woocommerce-payments"),help:ss({mixedString:(0,B.__)("Don't worry, you can always change this later in the {{learnMoreLink}}Payment Settings{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement(cf,{href:bs({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})})}}),checked:u,onChange:e=>{m(e)},"data-testid":"export-modal-remember"}))))};var mf=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};const pf=()=>{var e;const[t]=Im(),[n,r]=(0,V.useState)(!1),{createNotice:o}=(0,ps.useDispatch)("core/notices"),{deposits:a,isLoading:i}=Ac((0,ky.getQuery)()),{depositsSummary:s,isLoading:c}=(e=>{let{match:t,store_currency_is:n,date_before:r,date_after:o,date_between:a,status_is:i,status_is_not:s}=e;return(0,ps.useSelect)((e=>{const{getDepositsSummary:c,isResolving:l}=e(vs),d={match:t,storeCurrencyIs:n,dateBefore:r,dateAfter:o,dateBetween:a,statusIs:i,statusIsNot:s};return{depositsSummary:c(d),isLoading:l("getDepositsSummary",[d])}}),[n,t,r,o,JSON.stringify(a),i,s])})((0,ky.getQuery)()),[l,d]=(0,V.useState)(!1),u=!(0,ky.getQuery)().orderby||"date"===(0,ky.getQuery)().orderby,m=(0,Y.useMemo)((()=>(e=>[{key:"details",label:"",required:!0,cellClassName:"info-button "+(e?"is-sorted":""),isLeftAligned:!0},{key:"date",label:(0,B.__)("Date","woocommerce-payments"),screenReaderLabel:(0,B.__)("Date","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:(0,B.__)("Type","woocommerce-payments"),screenReaderLabel:(0,B.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),screenReaderLabel:(0,B.__)("Status","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"bankAccount",label:(0,B.__)("Bank account","woocommerce-payments"),screenReaderLabel:(0,B.__)("Bank account","woocommerce-payments"),isLeftAligned:!0}])(u)),[u]),p=s.count||0,y=a.map((e=>{const t=t=>H().createElement(Ly,{href:Ty(e.id,"deposits"),onClick:()=>Ca("wcpay_deposits_row_click")},t),n=H().createElement(Oy,{id:e.id,parentSegment:"deposits"}),r=H().createElement(cs.Link,{href:Ty(e.id,"deposits"),onClick:()=>Ca("wcpay_deposits_row_click")},(0,_s.dateI18n)("M j, Y",fs().utc(e.date).toISOString(),!0)),o={details:{value:e.id,display:n},date:{value:e.date,display:r},type:{value:Ny[e.type],display:t(Ny[e.type])},amount:{value:ac(e.amount,e.currency),display:t(cc(e.amount,e.currency))},status:{value:xy[e.status],display:t(H().createElement(Jy,{status:e.status}))},bankAccount:{value:e.bankAccount,display:t(e.bankAccount)}};return m.map((e=>{let{key:t}=e;return o[t]||{display:null}}))})),h="string"==typeof(0,ky.getQuery)().store_currency_is,f=2>(s.store_currencies||[]).length;let _;void 0!==s.count&&void 0!==s.total&&!1===c&&(_=[{label:(0,B._n)("deposit","deposits",s.count,"woocommerce-payments"),value:`${ks(s.count)}`}],(f||h)&&_.push({label:(0,B.__)("total","woocommerce-payments"),value:`${cc(s.total,s.currency)}`}));const g=s.store_currencies||(h?[(0,ky.getQuery)().store_currency_is]:[]),v=(0,B.__)("Deposits","woocommerce-payments"),w=!!y.length,b=e=>mf(void 0,void 0,void 0,(function*(){const n=(0,ky.getQuery)(),{page:r,path:a}=n,i=(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}}(n,["page","path"]),wcpaySettings.currentUserEmail),s=xs(e,t),{date_before:c,date_after:l,date_between:d,match:u,status_is:m,status_is_not:y,store_currency_is:h}=(0,ky.getQuery)(),f=!!(c||l||d||m||y||h),_=(0,B.sprintf)((0,B.__)("You are about to export %d deposits. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),p);if(f||p<1e3||window.confirm(_))try{const{exported_deposits:e}=yield va()({path:xc({userEmail:i,locale:s,dateAfter:l,dateBefore:c,dateBetween:d,match:u,statusIs:m,statusIsNot:y,storeCurrencyIs:h}),method:"POST"});o("success",(0,B.sprintf)((0,B.__)("Your export will be emailed to %s","woocommerce-payments"),i)),Ca("wcpay_deposits_download",{exported_deposits:e,total_deposits:e,download_type:"endpoint"})}catch(e){o("error",(0,B.__)("There was a problem generating your export.","woocommerce-payments"))}})),E=()=>{d(!1)};return H().createElement(Wa,null,H().createElement(jy,{storeCurrencies:g}),H().createElement(cs.TableCard,{className:"wcpay-deposits-list woocommerce-report-table",title:(0,B.__)("Deposit history","woocommerce-payments"),isLoading:i,rowsPerPage:(0,W.parseInt)(null!==(e=(0,ky.getQuery)().per_page)&&void 0!==e?e:"")||25,totalRows:p,headers:m,rows:y,summary:_,query:(0,ky.getQuery)(),onQueryChange:ky.onQueryChange,actions:[w&&H().createElement(zy,{key:"download",isDisabled:i||n,onClick:()=>mf(void 0,void 0,void 0,(function*(){if(r(!0),"endpoint"==(p>y.length?"endpoint":"browser"))Ns()||Is()?b(""):d(!0);else{const e=(0,ky.getQuery)(),t=[Object.assign(Object.assign({},m[0]),{label:(0,B.__)("Deposit Id","woocommerce-payments")}),...m.slice(1)],n=y.map((e=>[e[0],Object.assign(Object.assign({},e[1]),{value:(0,_s.dateI18n)("Y-m-d",fs().utc(e[1].value).toISOString(),!0)}),...e.slice(2)]));(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)(v,e),(0,Iy.generateCSVDataFromTable)(t,n)),Ca("wcpay_deposits_download",{exported_deposits:y.length,total_deposits:s.count,download_type:"browser"})}r(!1)}))})]}),!Ns()&&!Is()&&l&&H().createElement(uf,{onClose:E,onSubmit:e=>{b(e),E()},totalItems:p,exportType:"deposits"}))},yf=()=>{var e,t;const{overviews:{account:n}}=Lc(),{isNextDepositNoticeDismissed:r,handleDismissNextDepositNotice:o}=(()=>{const{updateOptions:e}=(0,ps.useDispatch)("wc/admin/options"),[t,n]=(0,V.useState)(wcpaySettings.isNextDepositNoticeDismissed);return{isNextDepositNoticeDismissed:t,handleDismissNextDepositNotice:()=>{n(!0),wcpaySettings.isNextDepositNoticeDismissed=!0,e({wcpay_next_deposit_notice_dismissed:!0})}}})(),a="deposits_unrestricted"===(null===(e=wcpaySettings.accountStatus.deposits)||void 0===e?void 0:e.restrictions),i=null===(t=wcpaySettings.accountStatus.deposits)||void 0===t?void 0:t.completed_waiting_period;return a&&i&&n&&!r?H().createElement(Ka,{status:"info",isDismissible:!0,onRemove:o},H().createElement(Ms,{depositsSchedule:n.deposits_schedule})):null},hf=()=>(Tm(),H().createElement(Wa,null,H().createElement(Ls,{currentPage:"deposits"}),H().createElement(yf,null),H().createElement(pf,null))),ff=Pn((function(e,t){const n=function(e){const{className:t,isBorderless:n=!1,isShady:r=!1,size:o="medium",...a}=Dn(e,"CardHeader"),i=An();return{...a,className:(0,Y.useMemo)((()=>i(no,so,co,yo[o],n&&uo,r&&ho,"components-card__header",t)),[t,i,n,r,o])}}(e);return(0,Y.createElement)(Pa,X({},n,{ref:t}))}),"CardHeader"),_f=e=>{const t=e.order;return t&&t.number?H().createElement(cs.Link,{href:t.url,type:"external"},t.number):H().createElement("span",null,"–")},gf={normal:(0,B.__)("Normal","woocommerce-payments"),elevated:(0,B.__)("Elevated","woocommerce-payments"),highest:(0,B.__)("Highest","woocommerce-payments"),not_assessed:(0,B.__)("N/A","woocommerce-payments"),unknown:(0,B.__)("N/A","woocommerce-payments")},vf=e=>{let{type:t="",className:n="",children:r}=e;const o=Z()("wcpay-pill"+(["primary","success","alert","danger","light"].includes(t)?"__"+t:""),n);return H().createElement(cs.Pill,{className:o},r)},wf=["normal","elevated","highest"],bf={normal:"success",elevated:"alert",highest:"danger",not_assessed:"light"};function Ef(e){return gf[wf[e]]||gf.not_assessed}const $f=e=>{let{risk:t}=e;const n=wf[t];return H().createElement(vf,{type:bf[n]},Ef(t))},Sf={charge:(0,B.__)("Charge","woocommerce-payments"),payment:(0,B.__)("Payment","woocommerce-payments"),payment_failure_refund:(0,B.__)("Payment failure refund","woocommerce-payments"),payment_refund:(0,B.__)("Payment refund","woocommerce-payments"),refund:(0,B.__)("Refund","woocommerce-payments"),refund_failure:(0,B.__)("Refund failure","woocommerce-payments"),dispute:(0,B.__)("Dispute","woocommerce-payments"),dispute_reversal:(0,B.__)("Dispute reversal","woocommerce-payments"),card_reader_fee:(0,B.__)("Reader fee","woocommerce-payments"),financing_payout:(0,B.__)("Loan dispersement","woocommerce-payments"),financing_paydown:(0,B.__)("Loan repayment","woocommerce-payments")},Cf={android:(0,B.__)("Android","woocommerce-payments"),ios:(0,B.__)("iPhone","woocommerce-payments")},kf={online:(0,B.__)("Online","woocommerce-payments"),in_person:(0,B.__)("In-Person","woocommerce-payments")},If={0:(0,B.__)("Normal","woocommerce-payments"),1:(0,B.__)("Elevated","woocommerce-payments"),2:(0,B.__)("Highest","woocommerce-payments")},Nf=["issuer_declined","invalid"],xf=["blocked"],Tf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.outcome?e.outcome.type:""},Of=function(){return!0===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).disputed},Lf=function(){return 0<(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).amount_refunded},Af=function(){return!0===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).refunded},Mf=(e,t)=>{var n,r;return(null===(n=null==e?void 0:e.order)||void 0===n?void 0:n.fraud_meta_box_type)||(null===(r=null==t?void 0:t.order)||void 0===r?void 0:r.fraud_meta_box_type)||""},Df=(e,t)=>{const n=Mf(e,t);return!!n&&"requires_capture"===(null==t?void 0:t.status)&&"review"===n},Rf=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return Df(e,t)?"fraud_outcome_review":((e,t)=>{const n=Mf(e,t);return!!n&&["block","review_blocked"].includes(n)})(e,t)?"fraud_outcome_block":function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&Nf.includes(Tf(e))}(e)?"failed":function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"failed"===e.status&&xf.includes(Tf(e))}(e)?"blocked":Of(e)?"disputed_"+function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==e?void 0:e.status)||""}(e.dispute):function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Lf(e)&&!Af(e)}(e)?"refunded_partial":Af(e)?"refunded_full":function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!1===e.refunded&&(0,W.get)(e,"refunds.data",[]).length>0}(e)?"refund_failed":function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"succeeded"===e.status&&!0===e.paid}(e)?function(){return!0===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).captured}(e)?"paid":"authorized":e.status},Pf=e=>"card_present"===e||"interac_present"===e||"in_person"===e?(0,B.__)("In-Person","woocommerce-payments"):(0,B.__)("Online","woocommerce-payments"),jf=e=>{let{depositId:t,dateAvailable:n}=e;if(t&&n){const e=bs({page:"wc-admin",path:"/payments/deposits/details",id:t}),r=(0,_s.dateI18n)("M j, Y",fs().utc(n).toISOString(),!0);return H().createElement(cs.Link,{href:e},r)}return H().createElement(H().Fragment,null,(0,B.__)("Future deposit","woocommerce-payments"),H().createElement(Zy,{content:ss({mixedString:(0,B.__)("This transaction will be included in an upcoming automated deposit. The date of the deposit will be displayed here once it is scheduled. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement(cf,{href:"https://woo.com/document/woopayments/deposits/deposit-schedule/#pending-funds"})}}),buttonIcon:H().createElement(Ua.Z,null)}))};var Ff=n(8249);const zf=e=>{let{amount:t,currency:n,fallback:r,baseCurrency:o}=e;var a,i;const s=r?hn:null===(i=null===(a=null===window||void 0===window?void 0:window.wp)||void 0===a?void 0:a.components)||void 0===i?void 0:i.Tooltip;return H().createElement(s,{text:(0,B.sprintf)((0,B.__)("Converted from %s","woocommerce-payments"),cc(t,n,!1,o)),position:"bottom center"},H().createElement("span",{className:"conversion-indicator","data-testid":"conversion-indicator",style:{height:"18px",width:"18px"}},H().createElement(Ff.Z,{size:18})))},Bf=e=>{let{amount:t,currency:n,fromAmount:r,fromCurrency:o}=e;var a,i;const s=cc(t,n);if(n===o)return H().createElement(H().Fragment,null,s);const c=!!(null===(i=null===(a=null===window||void 0===window?void 0:window.wp)||void 0===a?void 0:a.components)||void 0===i?void 0:i.Tooltip);return H().createElement("div",{className:Z()("converted-amount",!c&&"converted-amount--fallback")},H().createElement(zf,{amount:r,currency:o,fallback:!c,baseCurrency:n}),s)},Uf=window.wp.htmlEntities;function Vf(e,t){if(!t)return null;const n=e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());return-1===n?null:{suggestionBeforeMatch:(0,Uf.decodeEntities)(e.substring(0,n)),suggestionMatch:(0,Uf.decodeEntities)(e.substring(n,n+t.length)),suggestionAfterMatch:(0,Uf.decodeEntities)(e.substring(n+t.length))}}const Hf={name:"transactions",className:"woocommerce-search__transactions-result",options(e){const t=e?{search_term:e}:{};return va()({path:(0,ys.addQueryArgs)("/wc/v3/payments/transactions/search",t)})},isDebounced:!0,getOptionIdentifier:e=>e.label,getOptionKeywords:e=>[e.label],getFreeTextOptions:e=>[{key:"all",label:V.createElement("span",{key:"name",className:"woocommerce-search__result-name"},ss({mixedString:(0,B.__)("All transactions with customer names or billing emails that include {{query /}}","woocommerce-payments"),components:{query:V.createElement("strong",{className:"components-form-token-field__suggestion-match"},e)}})),value:{label:e}}],getOptionLabel(e,t){const n=Vf(e.label,t);return V.createElement("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},null==n?void 0:n.suggestionBeforeMatch,V.createElement("strong",{className:"components-form-token-field__suggestion-match"},null==n?void 0:n.suggestionMatch),null==n?void 0:n.suggestionAfterMatch)},getOptionCompletion:e=>({key:e.label,label:e.label})},Yf=Object.entries(Sf).map((e=>{let[t,n]=e;return"card_reader_fee"===t?null:{label:n,value:t}})).filter((function(e){return null!=e})),Wf=("undefined"!=typeof wcpaySettings?wcpaySettings.accountLoans.loans:[]).map((e=>{const t=e.split("|");return{label:(0,B.sprintf)("ID: %s | %s",t[0],"active"===t[1]?(0,B.__)("In Progress","woocommerce-payments"):(0,B.__)("Paid in Full","woocommerce-payments")),value:t[0]}}),[]),Gf=Object.entries(Cf).map((e=>{let[t,n]=e;return{label:n,value:t}})),qf=Object.entries(kf).map((e=>{let[t,n]=e;return{label:n,value:t}})),Zf=Object.entries(If).map((e=>{let[t,n]=e;return{label:n,value:t}})),Qf=Object.entries(wcSettings.countries).map((e=>{let[t,n]=e;return{label:n,value:t}})),Kf=e=>{let{storeCurrencies:t,customerCurrencies:n}=e;const r=(0,V.useMemo)((()=>(e=>{const t=(0,Kl.getSetting)("wcVersion"),n=parseFloat(t);return{title:n<7.8?(0,B.__)("Transactions match {{select /}} filters","woocommerce-payments"):(0,B.__)("Transactions match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,B.__)("Date","woocommerce-payments"),remove:(0,B.__)("Remove transaction date filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction date filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction date","woocommerce-payments")},rules:[{value:"before",label:(0,B.__)("Before","woocommerce-payments")},{value:"after",label:(0,B.__)("After","woocommerce-payments")},{value:"between",label:(0,B.__)("Between","woocommerce-payments")}],input:{component:"Date"}},customer_currency:{labels:{add:(0,B.__)("Customer currency","woocommerce-payments"),remove:(0,B.__)("Remove transaction customer currency filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction customer currency filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Customer currency{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Customer currency</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a customer currency","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","transaction customer currency","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","transaction customer currency","woocommerce-payments")}],input:{component:"SelectControl",options:e}},type:{labels:{add:(0,B.__)("Type","woocommerce-payments"),remove:(0,B.__)("Remove transaction type filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction type filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction type","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","transaction type","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","transaction type","woocommerce-payments")}],input:{component:"SelectControl",options:Yf}},loan_id_is:{labels:{add:(0,B.__)("Loan","woocommerce-payments"),remove:(0,B.__)("Remove loan filter","woocommerce-payments"),rule:(0,B.__)("Select a loan","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Loan{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Loan</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a loan","woocommerce-payments")},input:{component:"SelectControl",type:"loans",options:Wf}},source_device:{labels:{add:(0,B.__)("Device Type","woocommerce-payments"),remove:(0,B.__)("Remove transaction device type filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction device type filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Device type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Device type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction device type","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","Source device","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","Source device","woocommerce-payments")}],input:{component:"SelectControl",options:Gf}},channel:{labels:{add:(0,B.__)("Channel","woocommerce-payments"),remove:(0,B.__)("Remove transaction channel filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction channel filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Channel{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Channel</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction channel","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","Channel","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","Channel","woocommerce-payments")}],input:{component:"SelectControl",options:qf}},customer_country:{labels:{add:(0,B.__)("Customer Country","woocommerce-payments"),remove:(0,B.__)("Remove transaction customer country filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction customer country filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Customer country{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Customer country</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction customer country","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","Customer Country","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","Customer Country","woocommerce-payments")}],input:{component:"SelectControl",options:Qf}},risk_level:{labels:{add:(0,B.__)("Risk Level","woocommerce-payments"),remove:(0,B.__)("Remove transaction Risk Level filter","woocommerce-payments"),rule:(0,B.__)("Select a transaction Risk Level filter match","woocommerce-payments"),title:n<7.8?(0,B.__)("{{title}}Risk Level{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Risk Level</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a transaction Risk Level","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","Risk Level","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","Risk Level","woocommerce-payments")}],input:{component:"SelectControl",options:Zf}}}}})(n.map((e=>({label:nc(e),value:e}))))),[n]),o=(0,V.useMemo)((()=>{return e=t.map((e=>({label:nc(e),value:e}))),n=t.length>1,[{label:(0,B.__)("Deposit currency","woocommerce-payments"),param:"store_currency_is",staticParams:["paged","per_page","orderby","order","search","filter","type_is","type_is_not","date_before","date_after","date_between","source_device_is","source_device_is_not","channel_is","channel_is_not","customer_country_is","customer_country_is_not","risk_level_is","risk_level_is_not"],showFilters:()=>n,filters:[{label:(0,B.__)("All currencies","woocommerce-payments"),value:"---"},...e],defaultValue:"---"},{label:(0,B.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order","search","store_currency_is"],showFilters:()=>!0,filters:[{label:(0,B.__)("All transactions","woocommerce-payments"),value:"all"},{label:(0,B.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}];var e,n}),[t]);return H().createElement("div",{className:"woocommerce-filters-transactions"},H().createElement(cs.ReportFilters,{key:null==n?void 0:n.length,filters:o,advancedFilters:r,showDatePicker:!1,path:"/payments/transactions",query:(0,ky.getQuery)(),onAdvancedFilterAction:e=>{"filter"===e&&Ca("page_view",{path:"payments_transactions",filter:"advanced"})}}))},Jf={alior_bank:"Alior Bank",bank_millennium:"Bank Millenium",bank_nowy_bfg_sa:"Bank Nowy BFG S.A.",bank_pekao_sa:"Bank PEKAO S.A",banki_spbdzielcze:"Banki SpBdzielcze",blik:"Blik via redirect",bnp_paribas:"BNP Paribas",boz:"BOZ",citi_handlowy:"CitiHandlowy",credit_agricole:"Credit Agricole",envelobank:"EnveloBank",etransfer_pocztowy24:"e-Transfer Poctowy24",getin_bank:"Getin Bank",ideabank:"IdeaBank",ing:"ING",inteligo:"inteligo",mbank_mtransfer:"mBank-mtransfer",nest_przelew:"Nest Przelew",noble_pay:"Noble Pay",pbac_z_ipko:"PBac z iPKO (PKO+BP)",plus_bank:"Plus Bank",santander_przelew24:"Santander-przelew24",tmobile_usbugi_bankowe:"T-Mobile Usbugi Bankowe",toyota_bank:"Toyota Bank",volkswagen_bank:"Volkswagen Bank"};var Xf;!function(e){e.AFFIRM="affirm",e.AFTERPAY_CLEARPAY="afterpay_clearpay",e.AU_BECS_DEBIT="au_becs_debit",e.BANCONTACT="bancontact",e.CARD="card",e.CARD_PRESENT="card_present",e.EPS="eps",e.KLARNA="klarna",e.GIROPAY="giropay",e.IDEAL="ideal",e.LINK="link",e.P24="p24",e.SEPA_DEBIT="sepa_debit",e.SOFORT="sofort"}(Xf||(Xf={}));const e_={ach_credit_transfer:(0,B.__)("ACH Credit Transfer","woocommerce-payments"),ach_debit:(0,B.__)("ACH Debit","woocommerce-payments"),acss_debit:(0,B.__)("ACSS Debit","woocommerce-payments"),affirm:(0,B.__)("Affirm","woocommerce-payments"),afterpay_clearpay:(0,B.__)("Afterpay","woocommerce-payments"),alipay:(0,B.__)("Alipay","woocommerce-payments"),amex:(0,B.__)("American Express","woocommerce-payments"),au_becs_debit:(0,B.__)("AU BECS Debit","woocommerce-payments"),bancontact:(0,B.__)("Bancontact","woocommerce-payments"),card:(0,B.__)("Card Payment","woocommerce-payments"),card_present:(0,B.__)("In-Person Card Payment","woocommerce-payments"),diners:(0,B.__)("Diners Club","woocommerce-payments"),discover:(0,B.__)("Discover","woocommerce-payments"),eps:(0,B.__)("EPS","woocommerce-payments"),giropay:(0,B.__)("giropay","woocommerce-payments"),ideal:(0,B.__)("iDEAL","woocommerce-payments"),jcb:(0,B.__)("JCB","woocommerce-payments"),klarna:(0,B.__)("Klarna","woocommerce-payments"),link:(0,B.__)("Link","woocommerce-payments"),mastercard:(0,B.__)("Mastercard","woocommerce-payments"),multibanco:(0,B.__)("Multibanco","woocommerce-payments"),p24:(0,B.__)("P24","woocommerce-payments"),sepa_debit:(0,B.__)("SEPA Debit","woocommerce-payments"),sofort:(0,B.__)("SOFORT","woocommerce-payments"),stripe_account:(0,B.__)("Stripe Account","woocommerce-payments"),unionpay:(0,B.__)("Union Pay","woocommerce-payments"),visa:(0,B.__)("Visa","woocommerce-payments"),wechat:(0,B.__)("WeChat","woocommerce-payments")},t_=Xf;var n_=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},r_=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const o_=e=>{var t;if(!e.source_identifier)return H().createElement(V.Fragment,null);switch(e.source){case"giropay":return H().createElement(V.Fragment,null,e.source_identifier);case"p24":return H().createElement(V.Fragment,null,null!==(t=Jf[e.source_identifier])&&void 0!==t?t:"");default:return H().createElement(V.Fragment,null," •••• "," ",e.source_identifier)}},a_=e=>{let t="";return"ios"===e.source_device?t=(0,B.__)("Tap to Pay on iPhone","woocommerce-payments"):"android"===e.source_device&&(t=(0,B.__)("Tap to Pay on Android","woocommerce-payments")),H().createElement(qy,{isVisible:!1,content:t},H().createElement("span",{className:"woocommerce-taptopay__icon"}))},i_=e=>{var t,n,r,o,a,i,s;const[c,l]=(0,V.useState)(!1),{createNotice:d}=(0,ps.useDispatch)("core/notices"),{transactions:u,isLoading:m}=((e,t)=>{let{paged:n,per_page:r,orderby:o,order:a,match:i,date_before:s,date_after:c,date_between:l,type_is:d,type_is_not:u,source_device_is:m,source_device_is_not:p,channel_is:y,channel_is_not:h,customer_country_is:f,customer_country_is_not:_,risk_level_is:g,risk_level_is_not:v,store_currency_is:w,customer_currency_is:b,customer_currency_is_not:E,loan_id_is:$,search:S}=e;return(0,ps.useSelect)((e=>{const{getTransactions:C,getTransactionsError:k,isResolving:I}=e(vs),N={paged:Number.isNaN(parseInt(null!=n?n:"",10))?"1":n,perPage:Number.isNaN(parseInt(null!=r?r:"",10))?"25":r,orderby:o||"date",order:a||"desc",match:i,dateBefore:s,dateAfter:c,dateBetween:l&&l.sort(((e,t)=>fs()(e).diff(fs()(t)))),typeIs:d,typeIsNot:u,sourceDeviceIs:m,sourceDeviceIsNot:p,storeCurrencyIs:w,customerCurrencyIs:b,customerCurrencyIsNot:E,channelIs:y,channelIsNot:h,customerCountryIs:f,customerCountryIsNot:_,riskLevelIs:g,riskLevelIsNot:v,loanIdIs:$,depositId:t,search:S};return{transactions:C(N),transactionsError:k(N),isLoading:I("getTransactions",[N])}}),[n,r,o,a,i,s,c,JSON.stringify(l),d,u,m,p,w,b,E,y,h,f,_,g,v,$,t,JSON.stringify(S)])})((0,ky.getQuery)(),null!==(t=e.depositId)&&void 0!==t?t:""),{transactionsSummary:p,isLoading:y}=((e,t)=>{let{match:n,date_before:r,date_after:o,date_between:a,type_is:i,type_is_not:s,source_device_is:c,source_device_is_not:l,store_currency_is:d,customer_currency_is:u,customer_currency_is_not:m,channel_is:p,channel_is_not:y,customer_country_is:h,customer_country_is_not:f,risk_level_is:_,risk_level_is_not:g,loan_id_is:v,search:w}=e;return(0,ps.useSelect)((e=>{const{getTransactionsSummary:b,isResolving:E}=e(vs),$={match:n,dateBefore:r,dateAfter:o,dateBetween:a,typeIs:i,typeIsNot:s,sourceDeviceIs:c,sourceDeviceIsNot:l,storeCurrencyIs:d,customerCurrencyIs:u,customerCurrencyIsNot:m,channelIs:p,channelIsNot:y,customerCountryIs:h,customerCountryIsNot:f,riskLevelIs:_,riskLevelIsNot:g,loanIdIs:v,depositId:t,search:w};return{transactionsSummary:b($),isLoading:E("getTransactionsSummary",[$])}}),[n,r,o,JSON.stringify(a),i,s,c,l,d,u,m,p,y,h,f,_,g,v,t,JSON.stringify(w)])})((0,ky.getQuery)(),null!==(n=e.depositId)&&void 0!==n?n:""),[h,f]=(0,V.useState)(!1),[_]=Im(),g=(0,Y.useMemo)((()=>{return t=!e.depositId,n=wcpaySettings.isSubscriptionsActive,[{key:"transaction_id",label:(0,B.__)("Transaction Id","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"date",label:(0,B.__)("Date / Time (UTC)","woocommerce-payments"),screenReaderLabel:(0,B.__)("Date and time in UTC","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"type",label:(0,B.__)("Type","woocommerce-payments"),screenReaderLabel:(0,B.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"channel",label:(0,B.__)("Channel","woocommerce-payments"),screenReaderLabel:(0,B.__)("Channel","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"customer_currency",label:(0,B.__)("Paid Currency","woocommerce-payments"),screenReaderLabel:(0,B.__)("Customer Currency","woocommerce-payments"),isSortable:!0,visible:!1},{key:"customer_amount",label:(0,B.__)("Amount Paid","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount in Customer Currency","woocommerce-payments"),isNumeric:!0,isSortable:!0,visible:!1},{key:"deposit_currency",label:(0,B.__)("Deposit Currency","woocommerce-payments"),screenReaderLabel:(0,B.__)("Deposit Currency","woocommerce-payments"),isSortable:!0,visible:!1},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount in Deposit Curency","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"fees",label:(0,B.__)("Fees","woocommerce-payments"),screenReaderLabel:(0,B.__)("Fees","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"net",label:(0,B.__)("Net","woocommerce-payments"),screenReaderLabel:(0,B.__)("Net","woocommerce-payments"),isNumeric:!0,required:!0,isSortable:!0},{key:"order",label:(0,B.__)("Order #","woocommerce-payments"),screenReaderLabel:(0,B.__)("Order number","woocommerce-payments"),required:!0},n&&{key:"subscriptions",label:(0,B.__)("Subscription #","woocommerce-payments"),screenReaderLabel:(0,B.__)("Subscription number","woocommerce-payments")},{key:"source",label:(0,B.__)("Payment Method","woocommerce-payments"),screenReaderLabel:(0,B.__)("Payment Method","woocommerce-payments"),cellClassName:"is-center-aligned"},{key:"customer_name",label:(0,B.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,B.__)("Customer","woocommerce-payments"),isLeftAligned:!0},{key:"customer_email",label:(0,B.__)("Email","woocommerce-payments"),screenReaderLabel:(0,B.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customer_country",label:(0,B.__)("Country","woocommerce-payments"),screenReaderLabel:(0,B.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"risk_level",label:(0,B.__)("Risk level","woocommerce-payments"),screenReaderLabel:(0,B.__)("Risk level","woocommerce-payments"),visible:!1,isLeftAligned:!0},t&&{key:"deposit_id",label:(0,B.__)("Deposit ID","woocommerce-payments"),screenReaderLabel:(0,B.__)("Deposit ID","woocommerce-payments"),cellClassName:"deposit",isLeftAligned:!0,visible:!1},t&&{key:"deposit",label:(0,B.__)("Deposit date","woocommerce-payments"),screenReaderLabel:(0,B.__)("Deposit date","woocommerce-payments"),cellClassName:"deposit",isLeftAligned:!0},t&&{key:"deposit_status",label:(0,B.__)("Deposit status","woocommerce-payments"),visible:!1}].filter(Boolean);var t,n}),[e.depositId]),v=p.count||0,w=u.map((e=>{var t,n;const r=Ty(e.payment_intent_id||e.charge_id,"transactions")+"&transaction_id="+e.transaction_id+"&transaction_type="+(e.metadata&&"card_reader_fee"===e.metadata.charge_type?e.metadata.charge_type:e.type),o="financing_payout"===e.type||"financing_paydown"===e.type&&""===e.charge_id?e=>e:e=>H().createElement(Ly,{href:r},e),a=e.order?H().createElement(_f,{order:e.order}):(0,B.__)("N/A","woocommerce-payments"),i=e.order&&e.order.subscriptions,s=wcpaySettings.isSubscriptionsActive&&i?i.map((e=>e.number)).join(", "):"",c=wcpaySettings.isSubscriptionsActive&&i?i.map(((e,t,n)=>[H().createElement(_f,{key:t,order:e}),t!==n.length-1&&", "])):[],l=H().createElement($f,{risk:e.risk_level}),d=e.order&&e.order.customer_url?H().createElement(cs.Link,{href:null!==(t=e.order.customer_url)&&void 0!==t?t:""},e.customer_name):e.customer_name,u=e.order?H().createElement(cs.Link,{href:null!==(n=e.order.customer_url)&&void 0!==n?n:""},e.customer_email):e.customer_email,m=e.currency.toUpperCase(),p=e.metadata?e.metadata.charge_type:e.type,y=-1!==["financing_payout","financing_paydown"].indexOf(e.type),h=!y&&H().createElement(jf,{depositId:e.deposit_id,dateAvailable:e.available_on}),f=e.deposit_status?xy[e.deposit_status]:"",_={transaction_id:{value:e.transaction_id,display:o(e.transaction_id)},date:{value:e.date,display:o((0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.date).local().toISOString()))},channel:{value:Pf(e.channel),display:o(H().createElement(V.Fragment,null,Pf(e.channel),e.source_device&&a_(e)))},type:{value:Sf[p],display:o(Sf[p]||Ss(p))},source:{value:e.source,display:y?H().createElement("span",{className:"payment-method__brand"},"—"):o(H().createElement("span",{className:"payment-method-details-list-item"},H().createElement(qy,{isVisible:!1,content:e_[e.source]},H().createElement("span",{className:`payment-method__brand payment-method__brand--${e.source}`,"aria-label":e_[e.source]})),o_(e)))},order:{value:e.order&&e.order.number,display:a},subscriptions:{value:s,display:c},customer_name:{value:e.customer_name,display:y?(0,B.__)("N/A","woocommerce-payments"):d},customer_email:{value:e.customer_email,display:y?(0,B.__)("N/A","woocommerce-payments"):u},customer_country:{value:e.customer_country,display:o(e.customer_country)},customer_currency:{value:e.customer_currency.toUpperCase(),display:o(e.customer_currency.toUpperCase())},customer_amount:{value:ac(e.customer_amount,e.customer_currency),display:o(ic(e.customer_amount,e.customer_currency))},deposit_currency:{value:e.currency.toUpperCase(),display:o(e.currency.toUpperCase())},amount:(()=>{const t=e.metadata?0:e.amount,n=e.customer_amount?e.customer_amount:0;return{value:ac(t,m),display:o(H().createElement(Bf,{amount:t,currency:m,fromAmount:n,fromCurrency:e.customer_currency.toUpperCase()}))}})(),fees:(()=>{const t=e.metadata&&"card_reader_fee"===e.metadata.charge_type,n=ac(t?e.amount:-1*e.fees,m);return{value:n,display:o(0!==n?ic(t?e.amount:-1*e.fees,m):(0,B.__)("N/A","woocommerce-payments"))}})(),net:{value:ac(e.net,m),display:o(cc(e.net,m))},risk_level:{value:Ef(e.risk_level),display:o(l)},deposit_id:{value:e.deposit_id,display:e.deposit_id},deposit:{value:e.available_on,display:h},deposit_status:{value:f,display:f}};return g.map((e=>{let{key:t}=e;return _[t]||{display:null}}))})),b=(0,ky.getQuery)().search&&(null===(r=(0,ky.getQuery)().search)||void 0===r?void 0:r.map((e=>({key:e,label:e}))));let E=wcpaySettings.isSubscriptionsActive?(0,B.__)("Search by order number, subscription number, customer name, or billing email","woocommerce-payments"):(0,B.__)("Search by order number, customer name, or billing email","woocommerce-payments");const $=e.depositId?(0,B.__)("Deposit transactions","woocommerce-payments"):(0,B.__)("Transactions","woocommerce-payments"),S=!!w.length,C=t=>n_(void 0,void 0,void 0,(function*(){const n=(0,ky.getQuery)(),{page:r,path:o}=n,a=r_(n,["page","path"]),i=wcpaySettings.currentUserEmail,s=xs(t,_),{date_after:c,date_before:l,date_between:u,match:m,search:p,type_is:y,type_is_not:h,source_device_is:f,source_device_is_not:g,channel_is:w,channel_is_not:b,customer_country_is:E,customer_country_is_not:$,risk_level_is:S,risk_level_is_not:C,customer_currency_is:k,customer_currency_is_not:I}=a,N=e.depositId,x=!!(c||l||u||p||y||h||w||b||E||$||S||C||f||g),T=(0,B.sprintf)((0,B.__)("You are about to export %d transactions. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),v);if(x||v<1e4||window.confirm(T))try{yield va()({path:al({userEmail:i,locale:s,dateAfter:c,dateBefore:l,dateBetween:u,match:m,search:p,typeIs:y,typeIsNot:h,sourceDeviceIs:f,sourceDeviceIsNot:g,customerCurrencyIs:k,customerCurrencyIsNot:I,channelIs:w,channelIsNot:b,customerCountryIs:E,customerCountryIsNot:$,riskLevelIs:S,riskLevelIsNot:C,depositId:N}),method:"POST"}),d("success",(0,B.sprintf)((0,B.__)("Your export will be emailed to %s","woocommerce-payments"),i))}catch(e){d("error",(0,B.__)("There was a problem generating your export.","woocommerce-payments"))}}));wcpaySettings.featureFlags.customSearch||(E=(0,B.__)("Search by customer name","woocommerce-payments"));const k="string"==typeof(0,ky.getQuery)().store_currency_is,I=2>(p.store_currencies||[]).length;let N;void 0!==p.count&&void 0!==p.total&&!1===y&&(N=[{label:(0,B._n)("transaction","transactions",p.count,"woocommerce-payments"),value:`${ks(p.count)}`}],p.count>0&&(I||k)&&N.push({label:(0,B.__)("total","woocommerce-payments"),value:`${cc(p.total,p.currency)}`},{label:(0,B.__)("fees","woocommerce-payments"),value:`${ic(null!==(o=p.fees)&&void 0!==o?o:0,p.currency)}`},{label:(0,B.__)("net","woocommerce-payments"),value:`${cc(null!==(a=p.net)&&void 0!==a?a:0,p.currency)}`}));const x=()=>{f(!1)},T=!e.depositId,O=p.store_currencies||(k?[null!==(i=(0,ky.getQuery)().store_currency_is)&&void 0!==i?i:""]:[]),L=p.customer_currencies||[];return H().createElement(Wa,null,T&&H().createElement(Kf,{storeCurrencies:O,customerCurrencies:L}),H().createElement(cs.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:$,isLoading:m,rowsPerPage:parseInt(null!==(s=(0,ky.getQuery)().per_page)&&void 0!==s?s:"",10)||25,totalRows:v,headers:g,rows:w,summary:N,query:(0,ky.getQuery)(),onQueryChange:ky.onQueryChange,actions:[H().createElement(cs.Search,{allowFreeTextSearch:!0,inlineTags:!0,key:"search",onChange:e=>{(0,ky.updateQueryString)({search:e.length?(0,W.uniq)(e.map((e=>e.label))):void 0})},placeholder:E,selected:b,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:Hf}),S&&H().createElement(zy,{key:"download",isDisabled:m||c,onClick:()=>n_(void 0,void 0,void 0,(function*(){l(!0);const t=(0,ky.getQuery)(),{page:n,path:r}=t,o=r_(t,["page","path"]),a=v>w.length?"endpoint":"browser";Ca("wcpay_transactions_download_csv_click",{location:e.depositId?"deposit_details":"transactions",download_type:a,exported_transactions:w.length,total_transactions:p.count}),"endpoint"===a?Ns()||Is()?C(""):f(!0):(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)($,o),(0,Iy.generateCSVDataFromTable)(g,w)),l(!1)}))})]}),!Ns()&&!Is()&&h&&H().createElement(uf,{onClose:x,onSubmit:e=>{C(e),x()},totalItems:v,exportType:"transactions"}))},s_=e=>{let{status:t}=e;return H().createElement(cs.OrderStatus,{order:{status:t},orderStatusMap:xy})},c_=e=>{let{label:t,value:n,valueClass:r,detail:o}=e;return H().createElement("li",{className:"woocommerce-summary__item-container"},H().createElement("div",{className:"woocommerce-summary__item"},H().createElement("div",{className:"woocommerce-summary__item-label"},t),H().createElement("div",{className:"woocommerce-summary__item-data"},H().createElement("div",{className:Z()("woocommerce-summary__item-value",r)},n)),o&&H().createElement("div",{className:"wcpay-summary__item-detail"},o)))},l_=e=>{let{deposit:t}=e;const n=t.automatic?(0,B.__)("Deposit date","woocommerce-payments"):(0,B.__)("Instant deposit date","woocommerce-payments"),r=H().createElement(c_,{key:"depositDate",label:`${n}: `+(0,_s.dateI18n)("M j, Y",fs().utc(t.date).toISOString(),!0),value:H().createElement(s_,{status:t.status}),detail:t.bankAccount});return H().createElement("div",{className:"wcpay-deposit-overview"},t.automatic?H().createElement(ko,{className:"wcpay-deposit-automatic"},H().createElement("ul",null,r,H().createElement("li",{className:"wcpay-deposit-amount"},cc(t.amount,t.currency)))):H().createElement(cs.SummaryList,{label:(0,B.__)("Deposit overview","woocommerce-payments")},(()=>[r,H().createElement(c_,{key:"depositAmount",label:(0,B.__)("Deposit amount","woocommerce-payments"),value:cc(t.amount+t.fee,t.currency)}),H().createElement(c_,{key:"depositFees",label:(0,B.sprintf)((0,B.__)("%s service fee","woocommerce-payments"),`${t.fee_percentage}%`),value:ic(t.fee,t.currency),valueClass:0<t.fee&&"wcpay-deposit-fee"}),H().createElement(c_,{key:"netDepositAmount",label:(0,B.__)("Net deposit amount","woocommerce-payments"),value:cc(t.amount,t.currency),valueClass:"wcpay-deposit-net"})])))},d_=e=>{let{query:{id:t}}=e;const{deposit:n,isLoading:r}=(e=>(0,ps.useSelect)((t=>{const{getDeposit:n,isResolving:r,hasFinishedResolution:o}=t(vs);return{deposit:n(e),isLoading:!o("getDeposit",[e])||r("getDeposit",[e])}}),[e]))(t),o=!r&&n&&!n.automatic;return H().createElement(Wa,null,H().createElement(Ls,{currentPage:"deposits",isDetailsView:!0}),H().createElement(Ya,null,r?H().createElement(cs.SummaryListPlaceholder,{numberOfItems:2}):H().createElement(l_,{deposit:n})),H().createElement(Ya,null,o?H().createElement(ko,null,H().createElement(ff,null,H().createElement(Lh,{size:16,weight:600,as:"h2"},(0,B.__)("Deposit transactions","woocommerce-payments"))),H().createElement(Mo,{className:"wcpay-deposit-overview--instant__transactions-list-message"},ss({mixedString:(0,B.__)("We're unable to show transaction history on instant deposits. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement(cf,{href:"https://woo.com/document/woopayments/deposits/instant-deposits/#transactions"})}}))):H().createElement(i_,{depositId:t})))},u_=["menuitem","menuitemradio","menuitemcheckbox"];class m_ extends Y.Component{constructor(){super(...arguments),this.onKeyDown=this.onKeyDown.bind(this),this.bindContainer=this.bindContainer.bind(this),this.getFocusableContext=this.getFocusableContext.bind(this),this.getFocusableIndex=this.getFocusableIndex.bind(this)}componentDidMount(){this.container.addEventListener("keydown",this.onKeyDown),this.container.addEventListener("focus",this.onFocus)}componentWillUnmount(){this.container.removeEventListener("keydown",this.onKeyDown),this.container.removeEventListener("focus",this.onFocus)}bindContainer(e){const{forwardedRef:t}=this.props;this.container=e,(0,W.isFunction)(t)?t(e):t&&"current"in t&&(t.current=e)}getFocusableContext(e){const{onlyBrowserTabstops:t}=this.props,n=(t?re.focus.tabbable:re.focus.focusable).find(this.container),r=this.getFocusableIndex(n,e);return r>-1&&e?{index:r,target:e,focusables:n}:null}getFocusableIndex(e,t){const n=e.indexOf(t);if(-1!==n)return n}onKeyDown(e){this.props.onKeyDown&&this.props.onKeyDown(e);const{getFocusableContext:t}=this,{cycle:n=!0,eventToOffset:r,onNavigate:o=W.noop,stopNavigationEvents:a}=this.props,i=r(e);if(void 0!==i&&a){e.stopImmediatePropagation();const t=e.target.getAttribute("role");u_.includes(t)&&e.preventDefault()}if(!i)return;const s=t(e.target.ownerDocument.activeElement);if(!s)return;const{index:c,focusables:l}=s,d=n?function(e,t,n){const r=e+n;return r<0?t+r:r>=t?r-t:r}(c,l.length,i):c+i;d>=0&&d<l.length&&(l[d].focus(),o(d,l[d]))}render(){const{children:e,...t}=this.props;return(0,Y.createElement)("div",X({ref:this.bindContainer},(0,W.omit)(t,["stopNavigationEvents","eventToOffset","onNavigate","onKeyDown","cycle","onlyBrowserTabstops","forwardedRef"])),e)}}const p_=(e,t)=>(0,Y.createElement)(m_,X({},e,{forwardedRef:t}));p_.displayName="NavigableContainer";const y_=(0,Y.forwardRef)(p_),h_=(0,Y.forwardRef)((function(e,t){let{role:n="menu",orientation:r="vertical",...o}=e;return(0,Y.createElement)(y_,X({ref:t,stopNavigationEvents:!0,onlyBrowserTabstops:!1,role:n,"aria-orientation":"presentation"===n?null:r,eventToOffset:e=>{const{keyCode:t}=e;let n=[qi.DOWN],o=[qi.UP];return"horizontal"===r&&(n=[qi.RIGHT],o=[qi.LEFT]),"both"===r&&(n=[qi.RIGHT,qi.DOWN],o=[qi.LEFT,qi.UP]),(0,W.includes)(n,t)?1:(0,W.includes)(o,t)?-1:(0,W.includes)([qi.DOWN,qi.UP,qi.LEFT,qi.RIGHT],t)?0:void 0}},o))})),f_=e=>{let{tabId:t,onClick:n,children:r,selected:o,...a}=e;return(0,Y.createElement)(Jn,X({role:"tab",tabIndex:o?null:-1,"aria-selected":o,id:t,onClick:n},a),r)};function __(e){var t;let{className:n,children:r,tabs:o,initialTabName:a,orientation:i="horizontal",activeClass:s="is-active",onSelect:c=W.noop}=e;const l=(0,ne.useInstanceId)(__,"tab-panel"),[d,u]=(0,Y.useState)(null),m=e=>{u(e),c(e)},p=(0,W.find)(o,{name:d}),y=`${l}-${null!==(t=null==p?void 0:p.name)&&void 0!==t?t:"none"}`;return(0,Y.useEffect)((()=>{(0,W.find)(o,{name:d})||u(a||(o.length>0?o[0].name:null))}),[o]),(0,Y.createElement)("div",{className:n},(0,Y.createElement)(h_,{role:"tablist",orientation:i,onNavigate:(e,t)=>{t.click()},className:"components-tab-panel__tabs"},o.map((e=>(0,Y.createElement)(f_,{className:Z()("components-tab-panel__tabs-item",e.className,{[s]:e.name===d}),tabId:`${l}-${e.name}`,"aria-controls":`${l}-${e.name}-view`,selected:e.name===d,key:e.name,onClick:(0,W.partial)(m,e.name)},e.title)))),p&&(0,Y.createElement)("div",{key:y,"aria-labelledby":y,role:"tabpanel",id:`${y}-view`,className:"components-tab-panel__tab-content"},r(p)))}const g_=e=>{let{orderId:t,children:n,paymentIntentId:r,buttonIsPrimary:o=!1,buttonIsSmall:a=!0,onClick:i=(()=>{})}=e;const{isLoading:s,isRequesting:c,doCaptureAuthorization:l}=_y(r,t),[d,u]=(0,V.useState)(!1);return H().createElement(Jn,{isPrimary:o,isSecondary:!o,isSmall:a,onClick:()=>{i(),u(!0),l()},isBusy:s&&d,disabled:s&&d||c},n||(0,B.__)("Capture","woocommerce-payments"))},v_=()=>{var e;const t=[{key:"created",label:(0,B.__)("Authorized on","woocommerce-payments"),screenReaderLabel:(0,B.__)("Authorized on","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"asc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"capture_by",label:(0,B.__)("Capture by","woocommerce-payments"),screenReaderLabel:(0,B.__)("Capture by","woocommerce-payments"),required:!0,isLeftAligned:!0,cellClassName:"date-time",isSortable:!0},{key:"order",label:(0,B.__)("Order","woocommerce-payments"),screenReaderLabel:(0,B.__)("Order number","woocommerce-payments"),required:!0},{key:"risk_level",label:(0,B.__)("Risk level","woocommerce-payments"),screenReaderLabel:(0,B.__)("Risk level of transaction","woocommerce-payments"),isLeftAligned:!0},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"customer_email",label:(0,B.__)("Email","woocommerce-payments"),screenReaderLabel:(0,B.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customer_country",label:(0,B.__)("Country","woocommerce-payments"),screenReaderLabel:(0,B.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"action",label:(0,B.__)("Action","woocommerce-payments"),screenReaderLabel:(0,B.__)("Action","woocommerce-payments"),visible:!0,required:!0}].filter(Boolean),{authorizationsSummary:n,isLoading:r}=fy((0,ky.getQuery)()),{authorizations:o,isLoading:a}=(e=>{let{paged:t,per_page:n,orderby:r,order:o}=e;return(0,ps.useSelect)((e=>{const{getAuthorizations:a,getAuthorizationsError:i,isResolving:s}=e(vs),c=Number.isNaN(parseInt(null!=t?t:"",10)),l=Number.isNaN(parseInt(null!=n?n:"",10)),d={paged:c?"1":t,per_page:l?"25":n,orderby:r||"created",order:o||"asc"};return{authorizations:a(d),authorizationsError:i(d),isLoading:s("getAuthorizations",[d])}}),[t,n,r,o])})((0,ky.getQuery)()),i=o.map((e=>{const n=H().createElement($f,{risk:e.risk_level}),r=Ty(e.payment_intent_id,"transactions"),o=e=>H().createElement(Ly,{href:r},e),a={authorization_id:{value:e.payment_intent_id,display:e.payment_intent_id},created:{value:(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).local().toISOString()),display:o((0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).local().toISOString()))},capture_by:{value:(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).add(7,"d").local().toISOString()),display:o((0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).add(7,"d").local().toISOString()))},order:{value:e.order_id,display:o(`#${e.order_id} ${e.customer_name}`)},risk_level:{value:Ef(e.risk_level),display:o(n)},amount:{value:e.amount,display:o(cc(e.amount,e.currency))},customer_email:{value:e.customer_email,display:o(e.customer_email)},customer_country:{value:e.customer_country,display:o(e.customer_country)},action:{display:H().createElement(g_,{orderId:e.order_id,paymentIntentId:e.payment_intent_id,buttonIsSmall:!1,onClick:()=>{Ca("payments_transactions_uncaptured_list_capture_charge_button_click",{payment_intent_id:e.payment_intent_id})}})}};return t.map((e=>{let{key:t}=e;return a[t]||{display:null}}))}));let s;const c=void 0!==n.count&&void 0!==n.total&&!1===r,l=n.count||0;return c&&(s=[{label:(0,B.__)("authorization(s)","woocommerce-payments"),value:String(n.count)}],n.count&&n.count>0&&n.all_currencies&&1===n.all_currencies.length&&s.push({label:(0,B.__)("total","woocommerce-payments"),value:`${cc(n.total,n.currency)}`})),(0,V.useEffect)((()=>{Ca("page_view",{path:"payments_transactions_uncaptured"})}),[]),H().createElement(Wa,null,H().createElement(cs.TableCard,{className:"authorizations-list woocommerce-report-table has-search",title:(0,B.__)("Uncaptured transactions","woocommerce-payments"),isLoading:a||r,rowsPerPage:parseInt(null!==(e=(0,ky.getQuery)().per_page)&&void 0!==e?e:"",10)||25,totalRows:l,headers:t,rows:i,summary:s,query:(0,ky.getQuery)(),onQueryChange:ky.onQueryChange}))},w_=(0,V.createContext)({accountFees:{},accountLoans:{},accountStatus:{},featureFlags:{isAuthAndCaptureEnabled:!1,isDisputeIssuerEvidenceEnabled:!1,woopay:!1}}),b_={allow:{type:"primary",message:(0,B.__)("Succeeded","woocommerce-payments")},review:{type:"warning",message:(0,B.__)("Needs review","woocommerce-payments")},block:{type:"alert",message:(0,B.__)("Payment blocked","woocommerce-payments")}};const E_=e=>{var{status:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["status"]);const r=b_[t]||{},o=r.message||Ss(t),a=r.type||"light";return H().createElement(Qy,Object.assign({message:o,type:a},n))},$_={display:null},S_=(e,t)=>{const n=(e=>{const t=Ty(e.payment_intent.id,"transactions"),n=(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).local().toISOString()),r=e=>H().createElement(Ly,{href:t},e);return{status:{value:e.status,display:H().createElement(E_,{status:"review"})},created:{value:n,display:r(n)},amount:{value:e.amount,display:r(cc(e.amount,e.currency))},customer:{value:e.customer_name,display:r(e.customer_name)},action:{display:H().createElement(Jn,{isSecondary:!0,href:t,onClick:()=>{Ca("payments_transactions_risk_review_list_review_button_click",{payment_intent_id:e.payment_intent.id})}},(0,B.__)("Review"))}}})(e);return t.map((e=>{let{key:t}=e;return n[t]||$_}))};const C_=e=>({name:"transactions",className:"woocommerce-search__transactions-result",options(t){return n=this,r=void 0,a=function*(){const n=t?{search_term:t}:{},r=yield va()({path:(0,ys.addQueryArgs)("/wc/v3/payments/transactions/fraud-outcomes/search",Object.assign({status:e},n))});return t?r.filter((e=>{let{label:n}=e;return-1!==n.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())})):r},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}c((a=a.apply(n,r||[])).next())}));var n,r,o,a},isDebounced:!0,getOptionIdentifier:e=>e.label,getOptionKeywords:e=>[e.label],getOptionLabel(e,t){const n=Vf(e.label,t);return V.createElement("span",{key:"name",className:"woocommerce-search__result-name","aria-label":e.label},null==n?void 0:n.suggestionBeforeMatch,V.createElement("strong",{className:"components-form-token-field__suggestion-match"},null==n?void 0:n.suggestionMatch),null==n?void 0:n.suggestionAfterMatch)},getOptionCompletion:e=>({key:e.label,label:e.label})});const k_=()=>{var e,t,n;const[r,o]=(0,V.useState)(!1),{createNotice:a}=(0,ps.useDispatch)("core/notices"),i=(0,ky.getQuery)(),s=[{key:"created",label:(0,B.__)("Date / Time","woocommerce-payments"),screenReaderLabel:(0,B.__)("Date / Time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"customer",label:(0,B.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,B.__)("Customer","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),screenReaderLabel:(0,B.__)("Status","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"action",label:"",screenReaderLabel:"",visible:!0,required:!0,isNumeric:!0}].filter(Boolean),{transactions:c,isLoading:l}=dl("review",i),{transactionsSummary:d,isLoading:u}=ul("review",i),m=c.map((e=>S_(e,s)));let p;const y=(0,B.__)("Flagged transactions","woocommerce-payments"),h=void 0!==d.count&&void 0!==d.total&&!1===u,f=d.count||0;h&&(p=[{label:(0,B.__)("transactions(s)","woocommerce-payments"),value:String(f)}],f>0&&1===(null===(e=d.currencies)||void 0===e?void 0:e.length)&&p.push({label:(0,B.__)("pending","woocommerce-payments"),value:`${cc(d.total,d.currencies[0])}`}));const _=(0,ky.getQuery)().search&&(null===(t=(0,ky.getQuery)().search)||void 0===t?void 0:t.map((e=>({key:e,label:e})))),g=(0,B.__)("Search by order number or customer name","woocommerce-payments"),v=!!m.length;return(0,V.useEffect)((()=>{Ca("page_view",{path:"payments_transactions_risk_review"})}),[]),H().createElement(Wa,null,H().createElement(cs.TableCard,{className:"risk-review-transactions-list woocommerce-report-table has-search",title:y,isLoading:l,rowsPerPage:parseInt(null!==(n=i.per_page)&&void 0!==n?n:"",10)||25,totalRows:f,headers:s,rows:m,summary:p,query:i,onQueryChange:ky.onQueryChange,actions:[H().createElement(cs.Search,{inlineTags:!0,key:"search",onChange:e=>{(0,ky.updateQueryString)({search:e.length?(0,W.uniq)(e.map((e=>e.key||e.label))):void 0})},placeholder:g,selected:_,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:C_("review")}),v&&H().createElement(zy,{key:"download",isDisabled:l||r,onClick:()=>{return e=void 0,t=void 0,r=function*(){o(!0);const e=(0,ky.getQuery)(),{page:t,path:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["page","path"]);try{const{data:e}=yield va()({path:ll("review",r),method:"GET"}),t=e.map((e=>S_(e,s)));(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)(y,r),(0,Iy.generateCSVDataFromTable)(s,t)),Ca("wcpay_fraud_outcome_transactions_download",{exported_transactions:m.length,total_transactions:d.count})}catch(e){a("error",(0,B.__)("There was a problem generating your export.","woocommerce-payments"))}o(!1)},new((n=void 0)||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}})]}))},I_={display:null},N_=(e,t)=>{const n=(e=>{const t=Ty(e.payment_intent.id||e.order_id.toString(),"transactions"),n=(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.created).local().toISOString()),r=e=>H().createElement(Ly,{href:t},e);return{status:{value:e.status,display:H().createElement(E_,{status:"block"})},created:{value:n,display:r(n)},amount:{value:e.amount,display:r(cc(e.amount,e.currency))},customer:{value:e.customer_name,display:r(e.customer_name)}}})(e);return t.map((e=>{let{key:t}=e;return n[t]||I_}))};const x_=()=>{var e,t,n;const[r,o]=(0,V.useState)(!1),{createNotice:a}=(0,ps.useDispatch)("core/notices"),i=(0,ky.getQuery)(),s=[{key:"created",label:(0,B.__)("Date / Time","woocommerce-payments"),screenReaderLabel:(0,B.__)("Date / Time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date-time",isSortable:!0,defaultSort:!0},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),isNumeric:!0,isSortable:!0},{key:"customer",label:(0,B.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,B.__)("Customer","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),screenReaderLabel:(0,B.__)("Status","woocommerce-payments"),visible:!0,isLeftAligned:!0}].filter(Boolean),{isLoading:c,transactions:l}=dl("block",i,"review"),{transactionsSummary:d,isLoading:u}=ul("block",i,"review"),m=l.map((e=>N_(e,s)));let p;const y=(0,B.__)("Blocked transactions","woocommerce-payments"),h=void 0!==d.count&&void 0!==d.total&&!1===u,f=d.count||0;h&&(p=[{label:(0,B.__)("transactions(s)","woocommerce-payments"),value:String(f)}],f>0&&1===(null===(e=d.currencies)||void 0===e?void 0:e.length)&&p.push({label:(0,B.__)("blocked","woocommerce-payments"),value:`${cc(d.total,d.currencies[0])}`})),(0,V.useEffect)((()=>{Ca("page_view",{path:"payments_transactions_blocked"})}),[]);const _=(0,ky.getQuery)().search&&(null===(t=(0,ky.getQuery)().search)||void 0===t?void 0:t.map((e=>({key:e,label:e})))),g=(0,B.__)("Search by order number or customer name","woocommerce-payments"),v=!!m.length;return H().createElement(Wa,null,H().createElement(cs.TableCard,{className:"blocked-transactions-list woocommerce-report-table has-search",title:y,isLoading:c,rowsPerPage:parseInt(null!==(n=i.per_page)&&void 0!==n?n:"",10)||25,totalRows:f,headers:s,rows:m,summary:p,query:i,onQueryChange:ky.onQueryChange,actions:[H().createElement(cs.Search,{inlineTags:!0,key:"search",onChange:e=>{(0,ky.updateQueryString)({search:e.length?(0,W.uniq)(e.map((e=>e.key||e.label))):void 0})},placeholder:g,selected:_,showClearButton:!0,type:wcpaySettings.featureFlags.customSearch?"custom":"customers",autocompleter:C_("block")}),v&&H().createElement(zy,{key:"download",isDisabled:c||r,onClick:()=>{return e=void 0,t=void 0,r=function*(){o(!0);const e=(0,ky.getQuery)(),{page:t,path:n}=e,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["page","path"]);try{const{data:e}=yield va()({path:ll("block",Object.assign(Object.assign({},r),{additionalStatus:"review"})),method:"GET"}),t=e.map((e=>N_(e,s)));(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)(y,r),(0,Iy.generateCSVDataFromTable)(s,t)),Ca("wcpay_fraud_outcome_transactions_download",{exported_transactions:m.length,total_transactions:d.count})}catch(e){a("error",(0,B.__)("There was a problem generating your export.","woocommerce-payments"))}o(!1)},new((n=void 0)||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}})]}))},T_=()=>{var e,t,n;const r=null!==(e=(0,ky.getQuery)().tab)&&void 0!==e?e:null,{isFRTReviewFeatureActive:o}=wcpaySettings,a={"transactions-page":H().createElement(H().Fragment,null,H().createElement(Ls,{currentPage:"transactions"}),H().createElement(i_,null)),"uncaptured-page":H().createElement(H().Fragment,null,H().createElement(Ls,{currentPage:"transactions"}),H().createElement(v_,null)),"review-page":H().createElement(H().Fragment,null,H().createElement(Ls,{currentPage:"transactions"}),H().createElement(k_,null)),"blocked-page":H().createElement(H().Fragment,null,H().createElement(Ls,{currentPage:"transactions"}),H().createElement(x_,null))},{featureFlags:{isAuthAndCaptureEnabled:i}}=(0,V.useContext)(w_),[s]=Nm(),{isLoading:c}=Tm(),{authorizationsSummary:l}=fy({}),{transactionsSummary:d}=ul("review",{}),u=!c&&s||l.total&&l.total>0,m=[{name:"transactions-page",title:(0,B.__)("Transactions","woocommerce-payments"),className:"transactions-list"},{name:"uncaptured-page",title:(0,B.sprintf)((0,B.__)("Uncaptured (%1$s)","woocommerce-payments"),null!==(t=l.count)&&void 0!==t?t:"..."),className:"authorizations-list"},{name:"review-page",title:(0,B.sprintf)((0,B.__)("Risk Review (%1$s)","woocommerce-payments"),null!==(n=d.count)&&void 0!==n?n:"..."),className:"review-list"},{name:"blocked-page",title:(0,B.__)("Blocked","woocommerce-payments"),className:"blocked-list"}].filter((e=>!(!o&&["review-page"].includes(e.name))&&("uncaptured-page"!==e.name||i&&u)));return H().createElement(Wa,null,H().createElement(__,{className:"wcpay-transactions-page",activeClass:"active-tab",onSelect:e=>{(0,ky.updateQueryString)({paged:"1",per_page:"25",order:"",orderby:"",tab:e},"/payments/transactions")},initialTabName:r||"transactions-page",tabs:m},(e=>a[e.name]||a["transactions-page"])))},O_=()=>H().createElement(Wa,null,H().createElement(w_.Provider,{value:window.wcpaySettings},H().createElement(T_,null))),L_=e=>{var t;const n=e.readers,r=e.isLoading,o=[{key:"reader_id",label:(0,B.__)("Reader id","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"count",label:(0,B.__)("Transactions","woocommerce-payments"),visible:!0,isLeftAligned:!0},{key:"fee",label:(0,B.__)("Fee","woocommerce-payments"),visible:!0,isLeftAligned:!0}],a=n.length>0?n.map((e=>[{value:e.reader_id,display:e.reader_id},{value:e.status,display:e.status},{value:e.count,display:e.count},{value:e.fee?ac(e.fee.amount,e.fee.currency):0,display:e.fee?cc(e.fee.amount,e.fee.currency):0}])):[],i=!!a.length;return(0,Y.createElement)(Wa,{maxWidth:1032,className:"wcpay-payment-details"},(0,Y.createElement)(Ls,{currentPage:"payments",isDetailsView:!0}),(0,Y.createElement)(cs.TableCard,{className:"transactions-list woocommerce-report-table has-search",title:(0,B.__)("Card readers","woocommerce-payments"),isLoading:r,rowsPerPage:parseInt(null!==(t=(0,ky.getQuery)().per_page)&&void 0!==t?t:"",10)||25,totalRows:a.length,headers:o,rows:a,actions:[i&&(0,Y.createElement)(zy,{key:"download",isDisabled:r,onClick:()=>{const{page:e,path:t,...n}=(0,ky.getQuery)();(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)("Card Readers",n),(0,Iy.generateCSVDataFromTable)(o,a))}})]}))},A_=e=>{const{readers:t,chargeError:n,isLoading:r}=(o=e.chargeId,a=e.transactionId,(0,ps.useSelect)((e=>{const{getCardReaderStats:t,getCardReaderStatsError:n,isResolving:r}=e(vs);return{readers:t(o,a),chargeError:n(o),isLoading:r("getCardReaderStats",[o,a])}}),[o,a]));var o,a;return!r&&n instanceof Error?(0,Y.createElement)(Wa,{maxWidth:1032,className:"wcpay-payment-details"},(0,Y.createElement)(Ls,{currentPage:"payments",isDetailsView:!0}),(0,Y.createElement)(ko,null,(0,Y.createElement)(Mo,null,(0,B.__)("Readers details not loaded","woocommerce-payments")))):(0,Y.createElement)(L_,{readers:t,isLoading:r})},M_=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M5 5v1.5h14V5H5zm0 7.8h14v-1.5H5v1.5zM5 19h14v-1.5H5V19z"}));function D_(e){var t;const{renderContent:n,renderToggle:r,position:o="bottom right",className:a,contentClassName:i,expandOnMobile:s,headerTitle:c,focusOnMount:l,popoverProps:d,onClose:u,onToggle:m}=e,p=(0,Y.useRef)(),[y,h]=function(e,t){const[n,r]=(0,Y.useState)(!1);return[n,e=>{r(e),t&&t(e)}]}(0,m);function f(){u&&u(),h(!1)}(0,Y.useEffect)((()=>()=>{m&&m(!1)}),[]);const _={isOpen:y,onToggle:function(){h(!y)},onClose:f};return(0,Y.createElement)("div",{className:Z()("components-dropdown",a),ref:p,tabIndex:"-1"},r(_),y&&(0,Y.createElement)(cn,X({position:o,onClose:f,onFocusOutside:function(){const{ownerDocument:e}=p.current,t=e.activeElement.closest('[role="dialog"]');p.current.contains(e.activeElement)||t&&!t.contains(p.current)||f()},expandOnMobile:s,headerTitle:c,focusOnMount:l},d,{anchorRef:null!==(t=null==d?void 0:d.anchorRef)&&void 0!==t?t:p.current,className:Z()("components-dropdown__content",d?d.className:void 0,i)}),n(_)))}function R_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...e,...t};return t.className&&e.className&&(n.className=Z()(t.className,e.className)),n}const P_=function(e){const{children:t,className:n,controls:r,icon:o=M_,label:a,popoverProps:i,toggleProps:s,menuProps:c,disableOpenOnArrowDown:l=!1,text:d,noIcons:u}=e;if((0,W.isEmpty)(r)&&!(0,W.isFunction)(t))return null;let m;(0,W.isEmpty)(r)||(m=r,Array.isArray(m[0])||(m=[m]));const p=R_({className:"components-dropdown-menu__popover"},i);return(0,Y.createElement)(D_,{className:Z()("components-dropdown-menu",n),popoverProps:p,renderToggle:e=>{var t;let{isOpen:n,onToggle:r}=e;const i=R_({className:Z()("components-dropdown-menu__toggle",{"is-opened":n})},s);return(0,Y.createElement)(Jn,X({},i,{icon:o,onClick:e=>{r(e),i.onClick&&i.onClick(e)},onKeyDown:e=>{(e=>{l||n||e.keyCode!==qi.DOWN||(e.preventDefault(),r())})(e),i.onKeyDown&&i.onKeyDown(e)},"aria-haspopup":"true","aria-expanded":n,label:a,text:d,showTooltip:null===(t=null==s?void 0:s.showTooltip)||void 0===t||t}),i.children)},renderContent:e=>{const n=R_({"aria-label":a,className:Z()("components-dropdown-menu__menu",{"no-icons":u})},c);return(0,Y.createElement)(h_,X({},n,{role:"menu"}),(0,W.isFunction)(t)?t(e):null,(0,W.flatMap)(m,((t,n)=>t.map(((t,r)=>(0,Y.createElement)(Jn,{key:[n,r].join(),onClick:n=>{n.stopPropagation(),e.onClose(),t.onClick&&t.onClick()},className:Z()("components-dropdown-menu__menu-item",{"has-separator":n>0&&0===r,"is-active":t.isActive,"is-icon-only":!t.title}),icon:t.icon,label:t.label,"aria-checked":"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.isActive:void 0,role:"menuitemcheckbox"===t.role||"menuitemradio"===t.role?t.role:"menuitem",disabled:t.isDisabled},t.title))))))}})},j_=function e(t){const{children:n,className:r="",label:o,hideSeparator:a}=t,i=(0,ne.useInstanceId)(e);if(!Y.Children.count(n))return null;const s=`components-menu-group-label-${i}`,c=Z()(r,"components-menu-group",{"has-hidden-separator":a});return(0,Y.createElement)("div",{className:c},o&&(0,Y.createElement)("div",{className:"components-menu-group__label",id:s,"aria-hidden":"true"},o),(0,Y.createElement)("div",{role:"group","aria-labelledby":o?s:null},n))},F_=(0,Y.forwardRef)((function(e,t){let{children:n,info:r,className:o,icon:a,iconPosition:i="right",shortcut:s,isSelected:c,role:l="menuitem",...d}=e;return o=Z()("components-menu-item__button",o),r&&(n=(0,Y.createElement)("span",{className:"components-menu-item__info-wrapper"},(0,Y.createElement)("span",{className:"components-menu-item__item"},n),(0,Y.createElement)("span",{className:"components-menu-item__info"},r))),a&&!(0,W.isString)(a)&&(a=(0,Y.cloneElement)(a,{className:Z()("components-menu-items__item-icon",{"has-icon-right":"right"===i})})),(0,Y.createElement)(Jn,X({ref:t,"aria-checked":"menuitemcheckbox"===l||"menuitemradio"===l?c:void 0,role:l,icon:"left"===i?a:void 0,className:o},d),(0,Y.createElement)("span",{className:"components-menu-item__item"},n),(0,Y.createElement)(ln,{className:"components-menu-item__shortcut",shortcut:s}),a&&"right"===i&&(0,Y.createElement)(_n,{icon:a}))})),z_=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}));var B_=n(7719);function U_(e){return!!e}const V_={warning_needs_response:{type:"warning",message:(0,B.__)("Inquiry: Needs response","woocommerce-payments")},warning_under_review:{type:"primary",message:(0,B.__)("Inquiry: Under review","woocommerce-payments")},warning_closed:{type:"light",message:(0,B.__)("Inquiry: Closed","woocommerce-payments")},needs_response:{type:"warning",message:(0,B.__)("Needs response","woocommerce-payments")},under_review:{type:"primary",message:(0,B.__)("Under review","woocommerce-payments")},charge_refunded:{type:"light",message:(0,B.__)("Charge refunded","woocommerce-payments")},won:{type:"success",message:(0,B.__)("Won","woocommerce-payments")},lost:{type:"light",message:(0,B.__)("Lost","woocommerce-payments")}},H_=Object.entries(V_).reduce(((e,t)=>{let[n,r]=t;return e["disputed_"+n]={type:r.type,message:n.startsWith("warning_")?r.message:(0,B.sprintf)((0,B.__)("Disputed: %s","woocommerce-payments"),r.message)},e}),{}),Y_={refunded_partial:{type:"light",message:(0,B.__)("Partial refund","woocommerce-payments")},refunded_full:{type:"light",message:(0,B.__)("Refunded","woocommerce-payments")},paid:{type:"success",message:(0,B.__)("Paid","woocommerce-payments")},authorized:{type:"primary",message:(0,B.__)("Payment authorized","woocommerce-payments")},refund_failed:{type:"alert",message:(0,B.__)("Refund failure","woocommerce-payments")},failed:{type:"alert",message:(0,B.__)("Payment failed","woocommerce-payments")},blocked:{type:"alert",message:(0,B.__)("Payment blocked","woocommerce-payments")},fraud_outcome_review:{type:"warning",message:(0,B.__)("Needs review","woocommerce-payments")},fraud_outcome_block:{type:"alert",message:(0,B.__)("Payment blocked","woocommerce-payments")},...H_},W_=e=>{let{status:t}=e;const n=Y_[t]||{},r=n.message||Ss(t),o=n.type||"light";return(0,Y.createElement)(Qy,{message:r,type:o})},G_=e=>{const{payment:t}=e,n=t?t[t.type]:null;if(!(n||t&&"link"===t.type))return(0,Y.createElement)("span",null,"–");const r=n&&n.brand?n.brand:t.type,o=(e=>{var t;const n=e[e.type];switch(e.type){case"card":case"au_becs_debit":case"sepa_debit":case"card_present":case"interac_present":return(0,Y.createElement)(V.Fragment,null," •••• ",n.last4);case"p24":return(0,Y.createElement)(V.Fragment,null,null!==(t=Jf[n.bank])&&void 0!==t?t:"");case"giropay":return(0,Y.createElement)(V.Fragment,null,n.bank_code);case"bancontact":case"ideal":case"eps":case"sofort":return(0,Y.createElement)(V.Fragment,null," •••• ",n.iban_last4);default:return(0,Y.createElement)(V.Fragment,null)}})(t);return(0,Y.createElement)("span",{className:"payment-method-details"},(0,Y.createElement)(qy,{isVisible:!1,content:e_[r],className:"payment-method-details__brand-tooltip"},(0,Y.createElement)("span",{className:`payment-method__brand payment-method__brand--${r}`,"aria-label":e_[r]})),o)},q_=e=>{const{items:t}=e;return H().createElement(cs.List,{className:"woocommerce-list--horizontal",items:t})},Z_=e=>{let{isLoading:t,display:n,placeholder:r,value:o,children:a}=e;return t?V.createElement("span",{className:n?`is-loadable-placeholder is-${n}`:"is-loadable-placeholder","aria-busy":"true"},void 0===r?a||o:r):V.createElement(V.Fragment,null,a||o)},Q_=e=>{const t=V.createElement("p",{style:{lineHeight:e.numLines}},"Block placeholder");return V.createElement(Z_,Object.assign({},e,{placeholder:t,display:"block"}))},K_=Z_,J_=e=>{var t,n,r,o;const a=(null===(t=e.billing_details)||void 0===t?void 0:t.name)||(null===(n=e.order_details)||void 0===n?void 0:n.customer_name)||null;if(a){const t=(null===(r=e.billing_details)||void 0===r?void 0:r.email)||(null===(o=e.order_details)||void 0===o?void 0:o.customer_email)||null,n=bs({page:"wc-admin",path:"/payments/transactions",search:[t?`${a} (${t})`:a]});return H().createElement(cs.Link,{href:n},a)}return H().createElement(H().Fragment,null,"–")},X_=e=>{let{dueBy:t,days:n}=e;if(!t)return!1;const r="number"==typeof t?fs().unix(t):fs().utc(t,!0);if(!r.isValid())return!1;const o=fs()().utc(),a=r.diff(o,"days",!0)<=n,i=o.isAfter(r);return a&&!i},eg=e=>td.includes(e),tg=e=>e.status.startsWith("warning"),ng=(e,t)=>{const n=(e=>{const t=e.balance_transactions.find((e=>"dispute"===e.reporting_category));if(!e.balance_transactions.find((e=>"dispute_reversal"===e.reporting_category)))return t})(e);if(n)return t?cc(n.fee,n.currency):ic(n.fee,n.currency)},rg=e=>{let{status:t,dueBy:n,prefixDisputeType:r}=e;const o=V_[t]||{};let a=o.message||Ss(t);r&&!t.startsWith("warning")&&(a=(0,B.sprintf)((0,B.__)("Disputed: %s","woocommerce-payments"),a));const i=eg(t)&&n&&X_({dueBy:n,days:3});let s=o.type||"light";return i&&(s="alert"),H().createElement(Qy,{message:a,type:s})},og=e=>{let{orderId:t,children:n,paymentIntentId:r,isDestructive:o=!0,isSmall:a=!1,onClick:i=(()=>{})}=e;const{doCancelAuthorization:s,isLoading:c,isRequesting:l}=_y(r,t),[d,u]=(0,V.useState)(!1);return H().createElement(Jn,{isDestructive:o,isSmall:a,onClick:()=>{i(),u(!0),s()},isBusy:c&&d,disabled:c&&d||l},n||(0,B.__)("Cancel","woocommerce-payments"))},ag=Pn((function(e,t){const n=function(e){const{className:t,justify:n,isBorderless:r=!1,isShady:o=!1,size:a="medium",...i}=Dn(e,"CardFooter"),s=An();return{...i,className:(0,Y.useMemo)((()=>s(ro,so,co,yo[a],r&&uo,o&&ho,"components-card__footer",t)),[t,s,r,o,a]),justify:n}}(e);return(0,Y.createElement)(Pa,X({},n,{ref:t}))}),"CardFooter"),ig=e=>{let{children:t,actions:n}=e;return H().createElement(ag,{className:"card-notice"},H().createElement("div",{className:"card-notice__section"},H().createElement("div",{className:"card-notice__text"},t),H().createElement("div",{className:"card-notice__button"},n)))},sg=e=>{let{charge:t,isLoading:n,onButtonClick:r}=e;return H().createElement(H().Fragment,null,H().createElement(K_,{isLoading:n,placeholder:""},H().createElement(ig,{actions:t.refunded?H().createElement(H().Fragment,null):H().createElement(Jn,{variant:"primary",isSmall:!1,onClick:r},(0,B.__)("Refund","woocommerce-payments"))},(0,B.__)("This transaction is not connected to order. ","woocommerce-payments"),t.refunded?(0,B.__)("It has been refunded and is not a subject for disputes.","woocommerce-payments"):(0,B.__)("Investigate this purchase and refund the transaction as needed.","woocommerce-payments"))))},cg=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M5.5 12h1.75l-2.5 3-2.5-3H4a8 8 0 113.134 6.35l.907-1.194A6.5 6.5 0 105.5 12zm9.53 1.97l-2.28-2.28V8.5a.75.75 0 00-1.5 0V12a.747.747 0 00.218.529l1.282-.84-1.28.842 2.5 2.5a.75.75 0 101.06-1.061z"})),lg=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M14.3 6.7l-1.1 1.1 4 4H4v1.5h13.3l-4.1 4.4 1.1 1.1 5.8-6.3z"})),dg=(0,Y.createElement)(K.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Y.createElement)(K.Path,{d:"M17 10h-1.2V7c0-2.1-1.7-3.8-3.8-3.8-2.1 0-3.8 1.7-3.8 3.8v3H7c-.6 0-1 .4-1 1v8c0 .6.4 1 1 1h10c.6 0 1-.4 1-1v-8c0-.6-.4-1-1-1zm-2.8 0H9.8V7c0-1.2 1-2.2 2.2-2.2s2.2 1 2.2 2.2v3z"})),ug=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M20.1 5.1L16.9 2 6.2 12.7l-1.3 4.4 4.5-1.3L20.1 5.1zM4 20.8h8v-1.5H4v1.5z"})),mg=e=>{let{dispute:t,isUrgent:n}=e;var r,o;const a=null!==(o=null===(r=Jl[t.reason])||void 0===r?void 0:r.claim)&&void 0!==o?o:(0,B.__)("The cardholder claims this is an unrecognized charge.","woocommerce-payments");let i=(0,B.__)("<strong>%s</strong> Challenge the dispute if you believe the claim is invalid, or accept to forfeit the funds and pay the dispute fee. Non-response will result in an automatic loss. <a>Learn more about responding to disputes</a>","woocommerce-payments"),s="https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/#responding";return tg(t)&&(i=(0,B.__)("<strong>%s</strong> You can challenge their claim if you believe it’s invalid. Not responding will result in an automatic loss. <a>Learn more about payment inquiries</a>","woocommerce-payments"),s="https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"),H().createElement(Va,{icon:!0,status:n?"error":"warning",className:"dispute-notice",isDismissible:!1},(0,Y.createInterpolateElement)((0,B.sprintf)(i,a),{a:H().createElement(cf,{href:s}),strong:H().createElement("strong",null)}))},pg=(0,Y.createElement)(K.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Y.createElement)(K.Path,{d:"M6.5 12.4L12 8l5.5 4.4-.9 1.2L12 10l-4.5 3.6-1-1.2z"}));function yg(e){return null!=e}const hg={initial:void 0,fallback:""},fg=(0,Y.forwardRef)(((e,t)=>{let{isOpened:n,icon:r,title:o,...a}=e;return o?(0,Y.createElement)("h2",{className:"components-panel__body-title"},(0,Y.createElement)(Jn,X({className:"components-panel__body-toggle","aria-expanded":n,ref:t},a),(0,Y.createElement)("span",{"aria-hidden":"true"},(0,Y.createElement)(_n,{className:"components-panel__arrow",icon:n?pg:eh})),o,r&&(0,Y.createElement)(_n,{icon:r,className:"components-panel__icon",size:20}))):null})),_g=(0,Y.forwardRef)((function(e,t){let{buttonProps:n={},children:r,className:o,icon:a,initialOpen:i,onToggle:s=W.noop,opened:c,title:l,scrollAfterOpen:d=!0}=e;const[u,m]=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:hg;const{initial:n,fallback:r}={...hg,...t},[o,a]=(0,Y.useState)(e),i=yg(e);return(0,Y.useEffect)((()=>{i&&o&&a(void 0)}),[i,o]),[function(){var e;let t=arguments.length>1?arguments[1]:void 0;return null!==(e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).find(yg))&&void 0!==e?e:t}([e,o,n],r),e=>{i||a(e)}]}(c,{initial:void 0===i||i}),p=(0,Y.useRef)(),y=(0,ne.useReducedMotion)()?"auto":"smooth",h=(0,Y.useRef)();h.current=d,function(e,t){const n=(0,Y.useRef)(!1);(0,Y.useEffect)((()=>{if(n.current)return e();n.current=!0}),t)}((()=>{var e;u&&h.current&&null!==(e=p.current)&&void 0!==e&&e.scrollIntoView&&p.current.scrollIntoView({inline:"nearest",block:"nearest",behavior:y})}),[u,y]);const f=Z()("components-panel__body",o,{"is-opened":u});return(0,Y.createElement)("div",{className:f,ref:(0,ne.useMergeRefs)([p,t])},(0,Y.createElement)(fg,X({icon:a,isOpened:u,onClick:e=>{e.preventDefault();const t=!u;m(t),s(t)},title:l},n)),"function"==typeof r?r({opened:u}):u&&r)}));_g.displayName="PanelBody";const gg=_g,vg=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M7 5.5h10a.5.5 0 01.5.5v12a.5.5 0 01-.5.5H7a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM17 4H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V6a2 2 0 00-2-2zm-1 3.75H8v1.5h8v-1.5zM8 11h8v1.5H8V11zm6 3.25H8v1.5h6v-1.5z"}));const wg=e=>{let{evidence:t}=e;return H().createElement(Jn,{variant:"secondary",onClick:()=>{const e=document.createElement("a");e.href=URL.createObjectURL(new Blob([t],{type:"text/plain"})),e.download="evidence.txt",e.click()},isSmall:!0,icon:H().createElement(Xy,{icon:vg})},(0,B.__)("Evidence.txt","woocommerce-payments"))},bg=e=>{let{fileId:t}=e;const{file:n,isLoading:r}=(e=>(0,ps.useSelect)((t=>{const n=t(vs),{getFile:r,getFileError:o,isResolving:a,hasFinishedResolution:i}=n;return{file:r(e)||{},error:o(e),isLoading:a("getFile",[e])||!i("getFile",[e])}}),[e]))(t),{createNotice:o}=(0,ps.useDispatch)("core/notices"),[a,i]=H().useState(!1);return H().createElement(K_,{isLoading:r,placeholder:(0,B.__)("Loading","woocommerce-payments")},n&&n.id?H().createElement(Jn,{variant:"secondary",isBusy:a,disabled:a,isSmall:!0,icon:H().createElement(Xy,{icon:vg}),onClick:()=>{return e=void 0,t=void 0,s=function*(){if(n&&n.id&&!a){try{i(!0);const e=yield va()({path:`${gs}/file/${encodeURI(n.id)}/content`,method:"GET"}),t=document.createElement("a");t.href="data:application/octect-stream;base64,"+e.file_content,t.download=n.filename,t.click()}catch(e){o("error",(0,B.__)("Error downloading file","woocommerce-payments"))}i(!1)}},new((r=void 0)||(r=Promise))((function(n,o){function a(e){try{c(s.next(e))}catch(e){o(e)}}function i(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,i)}c((s=s.apply(e,t||[])).next())}));var e,t,r,s}},(null==n?void 0:n.title)||n.filename):H().createElement(H().Fragment,null))},Eg=e=>{let{issuerEvidence:t}=e;return(null==t?void 0:t.some((e=>e.file_evidence.length||e.text_evidence)))?H().createElement(gg,{className:"dispute-evidence",title:(0,B.__)("Issuer evidence","woocommerce"),initialOpen:!1},H().createElement("ul",{className:"dispute-evidence__list"},t.map(((e,t)=>H().createElement("li",{className:"dispute-evidence__list-item",key:`evidence_${t}`},e.text_evidence&&H().createElement(wg,{evidence:e.text_evidence}),e.file_evidence.map((e=>H().createElement(bg,{fileId:e,key:e})))))))):H().createElement(H().Fragment,null)},$g=e=>{let{children:t=[]}=e;return V.createElement(V.Fragment,null,t.map(((e,t)=>V.createElement("p",{key:t},e))))},Sg=e=>{let{dueBy:t}=e;const n=Math.floor(fs().unix(t).diff(fs()(),"days",!0)),r=(0,_s.dateI18n)("M j, Y, g:ia",fs()(1e3*t).toISOString());return H().createElement("span",{className:"dispute-steps__steps__response-date"},r,H().createElement("span",{className:Z()({"dispute-steps__steps__response-date--urgent":n<3,"dispute-steps__steps__response-date--warning":n<7&&n>2})},n>0&&(0,B.sprintf)((0,B._n)("(%d day left to respond)","(%d days left to respond)",n,"woocommerce-payments"),n),0===n&&(0,B.__)("(Last day today)","woocommerce-payments"),n<0&&(0,B.__)("(Past due)","woocommerce-payments")))},Cg=e=>{let{dispute:t}=e;var n,r;const o=Ss((null===(n=Jl[t.reason])||void 0===n?void 0:n.display)||t.reason),a=(null===(r=Jl[t.reason])||void 0===r?void 0:r.summary)||[],i=[{title:(0,B.__)("Dispute Amount","woocommerce-payments"),content:cc(t.amount,t.currency)},{title:(0,B.__)("Disputed On","woocommerce-payments"),content:t.created?(0,_s.dateI18n)("M j, Y, g:ia",fs()(1e3*t.created).toISOString()):"–"},{title:(0,B.__)("Reason","woocommerce-payments"),content:H().createElement(H().Fragment,null,o,a.length>0&&H().createElement(Zy,{buttonIcon:H().createElement(B_.Z,null),buttonLabel:(0,B.__)("Learn more","woocommerce-payments"),content:H().createElement("div",{className:"dispute-reason-tooltip"},H().createElement("p",null,o),H().createElement($g,null,a),H().createElement("p",null,H().createElement("a",{href:"https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/",target:"_blank",rel:"noopener noreferrer"},(0,B.__)("Learn more","woocommerce-payments"))))}))},{title:(0,B.__)("Respond By","woocommerce-payments"),content:H().createElement(Sg,{dueBy:t.evidence_details.due_by})}];return H().createElement("div",{className:"dispute-summary-row"},H().createElement(q_,{items:i}))},kg=e=>{let t,{dispute:n,customer:r,chargeCreated:o}=e;if(null==r?void 0:r.email){const e=(0,_s.dateI18n)("Y-m-d",fs()(1e3*o).toISOString()),a=(0,_s.dateI18n)("Y-m-d",fs()(1e3*n.created).toISOString()),i=(0,B.sprintf)((0,B.__)("Problem with your purchase from %1$s on %2$s?","woocommerce-payments"),wcpaySettings.storeName,e),s=(null==r?void 0:r.name)||"",c=(0,B.sprintf)((0,B.__)("Hello %1$s,\n\nWe noticed that on %2$s, you disputed a %3$s charge on %4$s. We wanted to contact you to make sure everything was all right with your purchase and see if there's anything else we can do to resolve any problems you might have had.\n\nAlternatively, if the dispute was a mistake, you can easily withdraw it by calling the number on the back of your card. Thank you so much - we appreciate your business and look forward to working with you.","woocommerce-payments"),s,a,cc(n.amount,n.currency),e);t=`mailto:${r.email}?subject=${encodeURIComponent(i)}&body=${encodeURIComponent(c)}`}return H().createElement("div",{className:"dispute-steps"},H().createElement("div",{className:"dispute-steps__header"},(0,B.__)("Steps to resolve:","woocommerce-payments")),H().createElement("ol",{className:"dispute-steps__steps"},H().createElement("li",null,(null==r?void 0:r.email)?(0,Y.createInterpolateElement)((0,B.__)("<a>Email the customer</a> to identify the issue and work towards a resolution where possible.","woocommerce-payments"),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:t})}):(0,B.__)("Email the customer to identify the issue and work towards a resolution where possible.","woocommerce-payments")),H().createElement("li",null,(0,Y.createInterpolateElement)((0,B.__)("Assist the customer <a>in withdrawing their dispute</a> if they agree to do so.","woocommerce-payments"),{a:H().createElement(cf,{href:"https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/#withdrawals"})})),H().createElement("li",null,(0,Y.createInterpolateElement)((0,B.__)("Challenge <challengeIcon/> or accept <acceptIcon/> the dispute by <dueByDate/>.","woocommerce-payments"),{challengeIcon:H().createElement(Zy,{buttonIcon:H().createElement(B_.Z,null),buttonLabel:(0,B.__)("Challenge the dispute tooltip","woocommerce-payments"),content:(0,B.__)("Challenge the dispute if you consider the claim invalid. You'll need to provide evidence to back your claim. Keep in mind that challenging doesn't ensure a resolution in your favor.","woocommerce-payments")}),acceptIcon:H().createElement(Zy,{buttonIcon:H().createElement(B_.Z,null),buttonLabel:(0,B.__)("Accept the dispute tooltip","woocommerce-payments"),content:(0,B.sprintf)((0,B.__)("Accepting this dispute will automatically close it. The disputed amount and the %s dispute fee will not be returned to you.","woocommerce-payments"),ng(n,!0)||"-")}),dueByDate:H().createElement(Sg,{dueBy:n.evidence_details.due_by})}))))},Ig=e=>{let t,{dispute:n,customer:r,chargeCreated:o}=e;if(null==r?void 0:r.email){const e=(0,_s.dateI18n)("Y-m-d",fs()(1e3*o).toISOString()),a=(0,_s.dateI18n)("Y-m-d",fs()(1e3*n.created).toISOString()),i=(0,B.sprintf)((0,B.__)("Problem with your purchase from %1$s on %2$s?","woocommerce-payments"),wcpaySettings.storeName,e),s=(null==r?void 0:r.name)||"",c=(0,B.sprintf)((0,B.__)("Hello %1$s,\n\nWe noticed that on %2$s, you disputed a %3$s charge on %4$s. We wanted to contact you to make sure everything was all right with your purchase and see if there's anything else we can do to resolve any problems you might have had.\n\nAlternatively, if the dispute was a mistake, you can easily withdraw it by calling the number on the back of your card. Thank you so much - we appreciate your business and look forward to working with you.","woocommerce-payments"),s,a,cc(n.amount,n.currency),e);t=`mailto:${r.email}?subject=${encodeURIComponent(i)}&body=${encodeURIComponent(c)}`}return H().createElement("div",{className:"dispute-steps"},H().createElement("div",{className:"dispute-steps__header"},(0,B.__)("Steps to resolve:","woocommerce-payments")),H().createElement("ol",{className:"dispute-steps__steps"},H().createElement("li",null,(null==r?void 0:r.email)?(0,Y.createInterpolateElement)((0,B.__)("<a>Email the customer</a> to identify the issue and work towards a resolution where possible.","woocommerce-payments"),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:t})}):(0,B.__)("Email the customer to identify the issue and work towards a resolution where possible.","woocommerce-payments")),H().createElement("li",null,(0,Y.createInterpolateElement)((0,B.__)("Submit evidence <submitEvidenceIcon/> or issue a refund by <dueByDate/>.","woocommerce-payments"),{submitEvidenceIcon:H().createElement(Zy,{buttonIcon:H().createElement(B_.Z,null),buttonLabel:(0,B.__)("Submit evidence tooltip","woocommerce-payments"),content:(0,Y.createInterpolateElement)((0,B.__)("To submit evidence, provide documentation that supports your case. Keep in mind that submitting evidence doesn't ensure a favorable outcome. If the cardholder agrees to withdraw the inquiry, you'll still need to officially submit your evidence to prevent bank escalation. <learnMoreLink>Learn more</learnMoreLink>","woocommerce-payments"),{learnMoreLink:H().createElement(cf,{href:"https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"})})}),dueByDate:H().createElement(Sg,{dueBy:n.evidence_details.due_by})}))))},Ng=e=>{let{dispute:t,customer:n,chargeCreated:r,orderUrl:o}=e;var a,i,s;const{doAccept:c,isLoading:l}=(e=>{const{isLoading:t}=(0,ps.useSelect)((t=>{const{isResolving:n}=t(vs);return{isLoading:n("getDispute",[e.id])}}),[e.id]),{acceptDispute:n}=(0,ps.useDispatch)(vs);return{doAccept:()=>n(e),isLoading:t}})(t),[d,u]=(0,V.useState)(!1),m=fs()(),p=fs().unix(null!==(i=null===(a=t.evidence_details)||void 0===a?void 0:a.due_by)&&void 0!==i?i:0),y=Math.floor(p.diff(m,"days",!0)),h=null===(s=t.evidence_details)||void 0===s?void 0:s.has_evidence,{createErrorNotice:f}=(0,ps.useDispatch)("core/notices"),{featureFlags:{isDisputeIssuerEvidenceEnabled:_}}=(0,V.useContext)(w_),g=()=>{l||u(!1)},v=function(e){let{dispute:t,isDisputeAcceptRequestPending:n}=e;var r;return tg(t)?{acceptButtonLabel:(0,B.__)("Issue refund","woocommerce-payments"),acceptButtonTracksEvent:"wcpay_dispute_inquiry_refund_modal_view",modalTitle:(0,B.__)("Issue a refund?","woocommerce-payments"),modalLines:[{icon:H().createElement(_n,{icon:cg,size:24}),description:(0,B.__)("Issuing a refund will close the inquiry, returning the amount in question back to the cardholder. No additional fees apply.","woocommerce-payments")},{icon:H().createElement(_n,{icon:lg,size:24}),description:(0,B.__)("You will be taken to the order, where you must complete the refund process manually.","woocommerce-payments")}],modalButtonLabel:(0,B.__)("View order to issue refund","woocommerce-payments"),modalButtonTracksEvent:"wcpay_dispute_inquiry_refund_click"}:{acceptButtonLabel:(0,B.__)("Accept dispute","woocommerce-payments"),acceptButtonTracksEvent:"wcpay_dispute_accept_modal_view",modalTitle:(0,B.__)("Accept the dispute?","woocommerce-payments"),modalLines:[{icon:H().createElement(_n,{icon:cg,size:24}),description:(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Accepting the dispute marks it as <em>Lost</em>. The disputed amount and the %s dispute fee will not be returned to you.","woocommerce-payments"),null!==(r=ng(t,!0))&&void 0!==r?r:"-"),{em:H().createElement("em",null)})},{icon:H().createElement(_n,{icon:dg,size:24}),description:(0,B.__)("This action is final and cannot be undone.","woocommerce-payments")}],modalButtonLabel:n?(0,B.__)("Accepting…","woocommerce-payments"):(0,B.__)("Accept dispute","woocommerce-payments"),modalButtonTracksEvent:"wcpay_dispute_accept_click"}}({dispute:t,isDisputeAcceptRequestPending:l}),w=tg(t)?(0,B.__)("Submit evidence","woocommerce-payments"):(0,B.__)("Challenge dispute","woocommerce-payments");return H().createElement("div",{className:"transaction-details-dispute-details-wrapper"},H().createElement(ko,null,H().createElement(Mo,{className:"transaction-details-dispute-details-body"},H().createElement(mg,{dispute:t,isUrgent:y<=2}),h&&H().createElement(Va,{icon:ug,isDismissible:!1},(0,B.__)("You initiated a challenge to this dispute. Click 'Continue with challenge' to proceed with your draft response.","woocommerce-payments")),H().createElement(Cg,{dispute:t}),tg(t)?H().createElement(Ig,{dispute:t,customer:n,chargeCreated:r}):H().createElement(kg,{dispute:t,customer:n,chargeCreated:r}),_&&H().createElement(Eg,{issuerEvidence:t.issuer_evidence}),H().createElement("div",{className:"transaction-details-dispute-details-body__actions"},H().createElement(cs.Link,{href:l?"":bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"primary","data-testid":"challenge-dispute-button",disabled:l,onClick:()=>{Ca("wcpay_dispute_challenge_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},h?(0,B.__)("Continue with challenge","woocommerce-payments"):w)),H().createElement(Jn,{variant:"tertiary",disabled:l,"data-testid":"open-accept-dispute-modal-button",onClick:()=>{Ca(v.acceptButtonTracksEvent,{dispute_status:t.status,on_page:"transaction_details"}),u(!0)}},v.acceptButtonLabel),d&&H().createElement(es,{title:v.modalTitle,onRequestClose:g,className:"transaction-details-dispute-accept-modal"},H().createElement("p",null,H().createElement("strong",null,(0,B.__)("Before proceeding, please take note of the following:","woocommerce-payments"))),v.modalLines.map(((e,t)=>H().createElement(Pa,{justify:"start",key:t},H().createElement(Fa,{className:"transaction-details-dispute-accept-modal__icon"},e.icon),H().createElement(Fa,null,e.description)))),H().createElement(Pa,{className:"transaction-details-dispute-accept-modal__actions",justify:"end"},H().createElement(Jn,{variant:"tertiary",disabled:l,onClick:g},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{variant:"primary",isBusy:l,disabled:l,"data-testid":"accept-dispute-button",onClick:()=>{Ca(v.modalButtonTracksEvent,{dispute_status:t.status,on_page:"transaction_details"}),tg(t)?o?window.location.href=o:f((0,B.__)("Unable to view order. Order not found.","woocommerce-payments")):c()}},v.modalButtonLabel)))))))},xg=e=>{let{dispute:t}=e;const n=t.metadata.__evidence_submitted_at?(0,_s.dateI18n)("M j, Y",fs().unix(parseInt(t.metadata.__evidence_submitted_at,10)).toISOString()):"-";return H().createElement(ag,{className:"transaction-details-dispute-footer transaction-details-dispute-footer--primary"},H().createElement(Pa,{justify:"space-between"},H().createElement(Fa,null,(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("You submitted evidence for this dispute on %s. The cardholder’s bank is reviewing the case, which can take 60 days or more. You will be alerted when they make their final decision. <a>Learn more about the dispute process</a>.","woocommerce-payments"),n),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fraud-and-disputes/"})})),H().createElement(Fa,{className:"transaction-details-dispute-footer__actions"},H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"secondary",onClick:()=>{Ca("wcpay_view_submitted_evidence_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},(0,B.__)("View submitted evidence","woocommerce-payments"))))))},Tg=e=>{let{dispute:t}=e;const n=t.metadata.__dispute_closed_at?(0,_s.dateI18n)("M j, Y",fs().unix(parseInt(t.metadata.__dispute_closed_at,10)).toISOString()):"-";return H().createElement(ag,{className:"transaction-details-dispute-footer"},H().createElement(Pa,{justify:"space-between"},H().createElement(Fa,null,(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Good news! You won this dispute on %s. The disputed amount and the dispute fee have been credited back to your account. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),n),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fraud-and-disputes/"})})),H().createElement(Fa,{className:"transaction-details-dispute-footer__actions"},H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"secondary",onClick:()=>{Ca("wcpay_view_submitted_evidence_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},(0,B.__)("View dispute details","woocommerce-payments"))))))},Og=e=>{let{dispute:t}=e;var n;const r=!!t.metadata.__evidence_submitted_at,o="1"===t.metadata.__closed_by_merchant,a=null!==(n=ng(t,!0))&&void 0!==n?n:"-",i=t.metadata.__dispute_closed_at?(0,_s.dateI18n)("M j, Y",fs().unix(parseInt(t.metadata.__dispute_closed_at,10)).toISOString()):"-";let s=(0,B.sprintf)((0,B.__)("This dispute was lost on %1$s due to non-response.","woocommerce-payments"),i);return o&&(s=(0,B.sprintf)((0,B.__)("This dispute was accepted and lost on %1$s.","woocommerce-payments"),i)),r&&(s=(0,B.sprintf)((0,B.__)("This dispute was lost on %1$s.","woocommerce-payments"),i)),H().createElement(ag,{className:"transaction-details-dispute-footer"},H().createElement(Pa,{justify:"space-between"},H().createElement(Fa,null,s," ",(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("The %1$s fee has been deducted from your account, and the disputed amount returned to the cardholder. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),a),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fraud-and-disputes/"})})),r&&H().createElement(Fa,{className:"transaction-details-dispute-footer__actions"},H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"secondary",onClick:()=>{Ca("wcpay_view_submitted_evidence_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},(0,B.__)("View dispute details","woocommerce-payments"))))))},Lg=e=>{let{dispute:t}=e;const n=t.metadata.__evidence_submitted_at?(0,_s.dateI18n)("M j, Y",fs().unix(parseInt(t.metadata.__evidence_submitted_at,10)).toISOString()):"-";return H().createElement(ag,{className:"transaction-details-dispute-footer transaction-details-dispute-footer--primary"},H().createElement(Pa,{justify:"space-between"},H().createElement(Fa,null,(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("You submitted evidence for this inquiry on %s. The cardholder’s bank is reviewing the case, which can take 120 days or more. You will be alerted when they make their final decision. <a>Learn more</a>.","woocommerce-payments"),n),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fraud-and-disputes/managing-disputes/#inquiries"})})),H().createElement(Fa,{className:"transaction-details-dispute-footer__actions"},H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"secondary",onClick:()=>{Ca("wcpay_view_submitted_evidence_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},(0,B.__)("View submitted evidence","woocommerce-payments"))))))},Ag=e=>{let{dispute:t}=e;const n=!!t.metadata.__evidence_submitted_at,r=t.metadata.__dispute_closed_at?(0,_s.dateI18n)("M j, Y",fs().unix(parseInt(t.metadata.__dispute_closed_at,10)).toISOString()):"-";return H().createElement(ag,{className:"transaction-details-dispute-footer"},H().createElement(Pa,{justify:"space-between"},H().createElement(Fa,null,(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("This inquiry was closed on %s. <a>Learn more about preventing disputes</a>.","woocommerce-payments"),r),{a:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fraud-and-disputes/"})})),n&&H().createElement(Fa,{className:"transaction-details-dispute-footer__actions"},H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})},H().createElement(Jn,{variant:"secondary",onClick:()=>{Ca("wcpay_view_submitted_evidence_clicked",{dispute_status:t.status,on_page:"transaction_details"})}},(0,B.__)("View submitted evidence","woocommerce-payments"))))))},Mg=e=>{let{dispute:t}=e;return"under_review"===t.status?H().createElement(xg,{dispute:t}):"won"===t.status?H().createElement(Tg,{dispute:t}):"lost"===t.status?H().createElement(Og,{dispute:t}):"warning_under_review"===t.status?H().createElement(Lg,{dispute:t}):"warning_closed"===t.status?H().createElement(Ag,{dispute:t}):null};function Dg(e){let{label:t,className:n,selected:r,help:o,onChange:a,hideLabelFromVision:i,options:s=[],...c}=e;const l=`inspector-radio-control-${(0,ne.useInstanceId)(Dg)}`,d=e=>a(e.target.value);return!(0,W.isEmpty)(s)&&(0,Y.createElement)(uh,{label:t,id:l,hideLabelFromVision:i,help:o,className:Z()(n,"components-radio-control")},s.map(((e,t)=>(0,Y.createElement)("div",{key:`${l}-${t}`,className:"components-radio-control__option"},(0,Y.createElement)("input",X({id:`${l}-${t}`,className:"components-radio-control__input",type:"radio",name:l,value:e.value,onChange:d,checked:e.value===r,"aria-describedby":o?`${l}__help`:void 0},c)),(0,Y.createElement)("label",{htmlFor:`${l}-${t}`},e.label)))))}const Rg=e=>{let{charge:t,formattedAmount:n,onModalClose:r}=e;const[o,a]=(0,Y.useState)(null),[i,s]=(0,Y.useState)(!1),{doRefund:c}=Gp(t.payment_intent),l=()=>{r()};return H().createElement(df,{className:"missing-order-notice-modal",title:(0,B.__)("Refund Transaction","woocommerce-payments"),actions:H().createElement(H().Fragment,null,H().createElement(Jn,{onClick:l,variant:"secondary"},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{onClick:()=>{return e=void 0,n=void 0,a=function*(){Ca("payments_transactions_details_refund_full",{payment_intent_id:t.payment_intent}),s(!0),yield c(t,"other"===o?null:o),s(!1),l()},new((r=void 0)||(r=Promise))((function(t,o){function i(e){try{c(a.next(e))}catch(e){o(e)}}function s(e){try{c(a.throw(e))}catch(e){o(e)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof r?n:new r((function(e){e(n)}))).then(i,s)}c((a=a.apply(e,n||[])).next())}));var e,n,r,a},isPrimary:!0,isBusy:i,disabled:i},(0,B.__)("Refund transaction","woocommerce-payments"))),onRequestClose:l},H().createElement("p",null,ss({mixedString:(0,B.sprintf)((0,B.__)("This will issue a full refund of {{strong}}%s{{/strong}} to the customer.","woocommerce-payments"),n),components:{strong:H().createElement("strong",null)}})),H().createElement(Dg,{className:"missing-order-notice-modal__reason",label:(0,B.__)("Select a reason (Optional)","woocommerce-payments"),selected:o,options:[{label:(0,B.__)("Duplicate order","woocommerce-payments"),value:"duplicate"},{label:(0,B.__)("Fraudulent","woocommerce-payments"),value:"fraudulent"},{label:(0,B.__)("Requested by customer","woocommerce-payments"),value:"requested_by_customer"},{label:(0,B.__)("Other","woocommerce-payments"),value:"other"}],onChange:e=>a(e)}))},Pg={amount:0,currency:"USD",net:0,fee:0,refunded:null},jg=e=>{let{charge:t={},metadata:n={}}=e;var r,o,a,i,s,c;return[{title:(0,B.__)("Date","woocommerce-payments"),content:t.created?(0,_s.dateI18n)("M j, Y, g:ia",fs()(1e3*t.created).toISOString()):"–"},{title:(0,B.__)("Channel","woocommerce-payments"),content:H().createElement("span",null,(c=null==n?void 0:n.reader_model,"COTS_DEVICE"===c?(s=null==n?void 0:n.platform,"ios"===s?(0,B.__)("Tap to Pay on iPhone","woocommerce-payments"):"android"===s?(0,B.__)("Tap to Pay on Android","woocommerce-payments"):(0,B.__)("Tap to Pay","woocommerce-payments")):Pf(null===(r=t.payment_method_details)||void 0===r?void 0:r.type)))},{title:(0,B.__)("Customer","woocommerce-payments"),content:H().createElement(J_,{billing_details:t.billing_details,order_details:t.order})},{title:(0,B.__)("Order","woocommerce-payments"),content:H().createElement(_f,{order:t.order})},wcpaySettings.isSubscriptionsActive&&{title:(0,B.__)("Subscription","woocommerce-payments"),content:(null===(a=null===(o=t.order)||void 0===o?void 0:o.subscriptions)||void 0===a?void 0:a.length)?t.order.subscriptions.map(((e,t,n)=>[H().createElement(_f,{key:t,order:e}),t!==n.length-1&&", "])):H().createElement(_f,{order:null})},{title:(0,B.__)("Payment method","woocommerce-payments"),content:H().createElement(G_,{payment:t.payment_method_details})},{title:(0,B.__)("Risk evaluation","woocommerce-payments"),content:(null===(i=t.outcome)||void 0===i?void 0:i.risk_level)?gf[t.outcome.risk_level]:"–"}].filter(U_)},Fg=e=>{let{charge:t={},metadata:n={},isLoading:r,paymentIntent:o}=e;var a,i,s,c,l,d;const u=t.amount?(e=>{var t,n,r;const o=e.balance_transaction?{currency:e.balance_transaction.currency,amount:e.balance_transaction.amount,fee:e.balance_transaction.fee,refunded:0,net:0}:{currency:e.currency,amount:e.amount,fee:e.application_fee_amount,refunded:0,net:0};return Lf(e)&&(o.refunded-=(0,W.sumBy)(null===(t=e.refunds)||void 0===t?void 0:t.data,"balance_transaction.amount")),Of(e)&&void 0!==e.dispute&&(o.fee+=(0,W.sumBy)(null===(n=e.dispute)||void 0===n?void 0:n.balance_transactions,"fee"),o.refunded-=(0,W.sumBy)(null===(r=e.dispute)||void 0===r?void 0:r.balance_transactions,"amount")),o.net=o.amount-o.fee-o.refunded,o})(t):Pg,m=t.currency&&u.currency!==t.currency,{featureFlags:{isAuthAndCaptureEnabled:p}}=(0,V.useContext)(w_),y=!t.captured&&"failed"!==t.status&&0===t.amount_refunded&&p,{authorization:h}=_y(t.payment_intent,null===(a=t.order)||void 0===a?void 0:a.number,y),f=Df(t,o),_=t.dispute&&ng(t.dispute),g=!t.dispute||(v=t.dispute.status,tg({status:v})||"won"===v);var v;const w=t.order&&t.order.number,b=t.captured&&!t.refunded&&g,E=t.balance_transaction?{fee:t.balance_transaction.fee,currency:t.balance_transaction.currency}:{fee:t.application_fee_amount,currency:t.currency};fs().updateLocale("en",{relativeTime:{s:(0,B.__)("a second","woocommerce-payments"),ss:(0,B.__)("%d seconds","woocommerce-payments"),m:(0,B.__)("a minute","woocommerce-payments"),mm:(0,B.__)("%d minutes","woocommerce-payments"),h:(0,B.__)("an hour","woocommerce-payments"),hh:(0,B.__)("%d hours","woocommerce-payments"),d:(0,B.__)("a day","woocommerce-payments"),dd:(0,B.__)("%d days","woocommerce-payments")}});const $=ic(t.amount,t.currency,u.currency),[S,C]=(0,V.useState)(!1);return H().createElement(ko,null,H().createElement(Mo,null,H().createElement(Pa,{direction:"row",align:"start"},H().createElement("div",{className:"payment-details-summary"},H().createElement("div",{className:"payment-details-summary__section"},H().createElement("p",{className:"payment-details-summary__amount"},H().createElement(K_,{isLoading:r,placeholder:"Amount placeholder"},$,H().createElement("span",{className:"payment-details-summary__amount-currency"},t.currency||"USD"),t.dispute?H().createElement(rg,{status:t.dispute.status,dueBy:null===(i=t.dispute.evidence_details)||void 0===i?void 0:i.due_by,prefixDisputeType:!0}):H().createElement(W_,{status:Rf(t,o)}))),H().createElement("div",{className:"payment-details-summary__breakdown"},m?H().createElement("p",null,cc(u.amount,u.currency)):null,u.refunded?H().createElement("p",null,`${_?(0,B.__)("Deducted","woocommerce-payments"):(0,B.__)("Refunded","woocommerce-payments")}: `,cc(-u.refunded,u.currency)):"",H().createElement("p",null,H().createElement(K_,{isLoading:r,placeholder:"Fee amount"},`${(0,B.__)("Fees","woocommerce-payments")}: `,ic(-u.fee,u.currency),_&&H().createElement(Zy,{className:"payment-details-summary__breakdown__fee-tooltip",buttonIcon:H().createElement(B_.Z,null),buttonLabel:(0,B.__)("Fee breakdown","woocommerce-payments"),content:H().createElement(H().Fragment,null,H().createElement(Pa,null,H().createElement("label",null,(0,B.__)("Transaction fee","woocommerce-payments")),H().createElement("span",{"aria-label":"Transaction fee"},ic(E.fee,E.currency))),H().createElement(Pa,null,H().createElement("label",null,(0,B.__)("Dispute fee","woocommerce-payments")),H().createElement("span",{"aria-label":"Dispute fee"},_)),H().createElement(Pa,null,H().createElement("label",null,(0,B.__)("Total fees","woocommerce-payments")),H().createElement("span",{"aria-label":"Total fees"},ic(u.fee,u.currency))))}))),t.paydown?H().createElement("p",null,`${(0,B.__)("Loan repayment","woocommerce-payments")}: `,cc(t.paydown.amount,u.currency)):"",H().createElement("p",null,H().createElement(K_,{isLoading:r,placeholder:"Net amount"},`${(0,B.__)("Net","woocommerce-payments")}: `,cc(t.paydown?u.net-Math.abs(t.paydown.amount):u.net,u.currency))))),H().createElement("div",{className:"payment-details-summary__section"},!r&&f&&H().createElement("div",{className:"payment-details-summary__fraud-outcome-action"},H().createElement(og,{orderId:(null===(s=t.order)||void 0===s?void 0:s.number)||0,paymentIntentId:t.payment_intent||"",onClick:()=>{Ca("wcpay_fraud_protection_transaction_reviewed_merchant_blocked",{payment_intent_id:t.payment_intent}),Ca("payments_transactions_details_cancel_charge_button_click",{payment_intent_id:t.payment_intent})}},(0,B.__)("Block transaction")),H().createElement(g_,{buttonIsPrimary:!0,orderId:(null===(c=t.order)||void 0===c?void 0:c.number)||0,paymentIntentId:t.payment_intent||"",buttonIsSmall:!1,onClick:()=>{Ca("wcpay_fraud_protection_transaction_reviewed_merchant_approved",{payment_intent_id:t.payment_intent}),Ca("payments_transactions_details_capture_charge_button_click",{payment_intent_id:t.payment_intent})}},(0,B.__)("Approve Transaction"))),H().createElement("div",{className:"payment-details-summary__id"},H().createElement(K_,{isLoading:r,placeholder:"Payment ID: pi_xxxxxxxxxxxxxxxxxxxxxxxx"},t.payment_intent&&H().createElement("div",{className:"payment-details-summary__id_wrapper"},H().createElement("span",{className:"payment-details-summary__id_label"},`${(0,B.__)("Payment ID","woocommerce-payments")}: `),H().createElement("span",{className:"payment-details-summary__id_value"},t.payment_intent)),t.id&&H().createElement("div",{className:"payment-details-summary__id_wrapper"},H().createElement("span",{className:"payment-details-summary__id_label"},`${(0,B.__)("Charge ID","woocommerce-payments")}: `),H().createElement("span",{className:"payment-details-summary__id_value"},t.id)))))),H().createElement("div",{className:"payment-details__refund-controls"},b&&H().createElement(K_,{isLoading:r,placeholder:z_},H().createElement(P_,{icon:z_,label:(0,B.__)("Transaction actions","woocommerce-payments"),popoverProps:{position:"bottom left"},className:"refund-controls__dropdown-menu"},(e=>{let{onClose:n}=e;return H().createElement(j_,null,H().createElement(F_,{onClick:()=>{C(!0),Ca("payments_transactions_details_refund_modal_open",{payment_intent_id:t.payment_intent}),n()}},(0,B.__)("Refund in full","woocommerce-payments")),w&&H().createElement(F_,{onClick:()=>{var e,n;Ca("payments_transactions_details_partial_refund",{payment_intent_id:t.payment_intent,order_id:null===(e=t.order)||void 0===e?void 0:e.number}),window.location=null===(n=t.order)||void 0===n?void 0:n.url}},(0,B.__)("Partial refund","woocommerce-payments")))})))))),H().createElement(_a,null),H().createElement(Mo,null,H().createElement(Q_,{isLoading:r,numLines:4},H().createElement(q_,{items:jg({charge:t,metadata:n})}))),t.dispute&&H().createElement(Ya,null,eg(t.dispute.status)?H().createElement(Ng,{dispute:t.dispute,customer:t.billing_details,chargeCreated:t.created,orderUrl:null===(l=t.order)||void 0===l?void 0:l.url}):H().createElement(Mg,{dispute:t.dispute})),S&&H().createElement(Rg,{charge:t,formattedAmount:$,onModalClose:()=>{C(!1),Ca("payments_transactions_details_refund_modal_close",{payment_intent_id:t.payment_intent})}}),!G().isEmpty(t)&&!t.order&&!r&&H().createElement(sg,{charge:t,isLoading:r,onButtonClick:()=>C(!0)}),p&&h&&!h.captured&&H().createElement(K_,{isLoading:r,placeholder:""},H().createElement(ig,{actions:f?H().createElement(H().Fragment,null):H().createElement(g_,{orderId:(null===(d=t.order)||void 0===d?void 0:d.number)||0,paymentIntentId:t.payment_intent||"",buttonIsPrimary:!0,buttonIsSmall:!1,onClick:()=>{Ca("payments_transactions_details_capture_charge_button_click",{payment_intent_id:t.payment_intent})}})},(0,Y.createInterpolateElement)((0,B.__)("You must <a>capture</a> this charge within the next","woocommerce-payments"),{a:H().createElement("a",{href:"https://woo.com/document/woopayments/settings-guide/authorize-and-capture/#capturing-authorized-orders",target:"_blank",rel:"noreferer"})})," ",H().createElement("abbr",{title:(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(h.created).add(7,"days"),"UTC")},H().createElement("b",null,fs().utc(h.created).add(7,"days").fromNow(!0))),f&&`. ${(0,B.__)("Approving this transaction will capture the charge.","woocommerce-payments")}`)))},zg=e=>H().createElement(w_.Provider,{value:window.wcpaySettings},H().createElement(Fg,Object.assign({},e)));var Bg=n(1683),Ug=n(6680),Vg=n(8771);const Hg=e=>Number((100*e).toFixed(3)),Yg=e=>(0,Y.createElement)(K.SVG,X({width:"24",height:"24",viewBox:"0 0 24 24"},e),(0,Y.createElement)(K.Path,{d:["M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 ","6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"].join(" ")})),Wg=e=>H().createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},e),H().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 0.175781L15.75 3.24396V7.81781C15.75 11.7168 13.2458 15.4084 9.7147 16.573C9.25069 16.726 8.74931 16.726 8.2853 16.573C4.75416 15.4084 2.25 11.7168 2.25 7.81781V3.24396L9 0.175781ZM3.75 4.20983V7.81781C3.75 11.1307 5.89514 14.2052 8.75512 15.1485C8.914 15.2009 9.086 15.2009 9.24488 15.1485C12.1049 14.2052 14.25 11.1307 14.25 7.81781V4.20983L9 1.82347L3.75 4.20983Z",fill:"white"})),Gg={[ud]:{[pd]:(0,B.__)("Place in review if the shipping address country differs from the billing address country","woocommerce-payments"),[yd]:(0,B.__)("Place in review if the country resolved from customer IP is not listed in your selling countries","woocommerce-payments"),[hd]:(0,B.__)("Place in review if the order originates from a country different from the shipping address country","woocommerce-payments"),[fd]:(0,B.__)("Place in review if the items count is not in your defined range","woocommerce-payments"),[_d]:(0,B.__)("Place in review if the purchase price is not in your defined range","woocommerce-payments")},[dd]:{[pd]:(0,B.__)("Block if the shipping address differs from the billing address","woocommerce-payments"),[yd]:(0,B.__)("Block if the country resolved from customer IP is not listed in your selling countries","woocommerce-payments"),[hd]:(0,B.__)("Block if the order originates from a country different from the shipping address country","woocommerce-payments"),[fd]:(0,B.__)("Block if the items count is not in your defined range","woocommerce-payments"),[_d]:(0,B.__)("Block if the purchase price is not in your defined range","woocommerce-payments")}},qg=(e,t)=>({date:new Date(1e3*e.datetime),icon:(0,Y.createElement)(Ff.Z,null),headline:(0,B.sprintf)((0,B.__)("Payment status changed to %s.","woocommerce-payments"),t),body:[]}),Zg=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o="";if(e.deposit){o=(0,B.sprintf)(n?(0,B.__)("%1$s was added to your <a>%2$s deposit</a>.","woocommerce-payments"):(0,B.__)("%1$s was deducted from your <a>%2$s deposit</a>.","woocommerce-payments"),t,(0,_s.dateI18n)("M j, Y",fs()(1e3*e.deposit.arrival_date).toISOString()));const r=bs({page:"wc-admin",path:"/payments/deposits/details",id:e.deposit.id});o=(0,Y.createInterpolateElement)(o,{a:(0,Y.createElement)(cs.Link,{href:r})})}else o=(0,B.sprintf)(n?(0,B.__)("%s will be added to a future deposit.","woocommerce-payments"):(0,B.__)("%s will be deducted from a future deposit.","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:n?(0,Y.createElement)(Bg.Z,null):(0,Y.createElement)(Ug.Z,null),headline:o,body:r}},Qg=(e,t,n)=>{let r="";if(e.deposit){r=(0,B.sprintf)((0,B.__)("%1$s was subtracted from your <a>%2$s deposit</a>.","woocommerce-payments"),t,(0,_s.dateI18n)("M j, Y",fs()(1e3*e.deposit.arrival_date).toISOString()));const n=bs({page:"wc-admin",path:"/payments/deposits/details",id:e.deposit.id});r=(0,Y.createInterpolateElement)(r,{a:(0,Y.createElement)(cs.Link,{href:n})})}else r=(0,B.sprintf)((0,B.__)("%s will be subtracted from a future deposit.","woocommerce-payments"),t);return{date:new Date(1e3*e.datetime),icon:(0,Y.createElement)(Ug.Z,null),headline:r,body:n}},Kg=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return{date:new Date(1e3*e.datetime),headline:t,icon:n,body:r}},Jg=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{transaction_details:t={}}=e,{customer_currency:n,store_currency:r}=t;return n&&r&&n!==r},Xg=e=>{if(!e.fee_rates)return!1;const t=e.fee_rates.history;return 1===(null==t?void 0:t.length)&&"base"===t[0].type},ev=e=>Jg(e)?cc(e.transaction_details.store_amount-e.transaction_details.store_fee,e.transaction_details.store_currency):cc(e.amount-e.fee,e.currency),tv=e=>(0,B.sprintf)((0,B.__)("Net deposit: %s","woocommerce-payments"),ev(e)),nv=e=>{var t;if(!e.fee_rates)return(0,B.sprintf)((0,B.__)("Fee: %s","woocommerce-payments"),ic(e.fee,e.currency));const{percentage:n,fixed:r,fixed_currency:o,history:a}=e.fee_rates;let i=e.fee,s=e.currency;Jg(e)&&(i=e.transaction_details.store_fee,s=e.transaction_details.store_currency);const c=Xg(e)?(0,B.__)("Base fee","woocommerce-payments"):(0,B.__)("Fee","woocommerce-payments");return Xg(e)&&null!==(t=a[0])&&void 0!==t&&t.capped?(0,B.sprintf)("%1$s (capped at %2$s): %3$s",c,ic(r,o),ic(-i,s)):(0,B.sprintf)("%1$s (%2$f%% + %3$s): %4$s",c,Hg(n),ic(r,o),ic(-i,s))},rv=e=>{if(!Jg(e))return;const{transaction_details:{customer_currency:t,customer_amount:n,store_currency:r,store_amount:o}}=e;return((e,t)=>{if(!e.currency||!t.currency)return;const n=oc(e.currency)?1:100;return`${cc(n,e.currency,!0)} → ${function(e,t){const{currencyData:n}=wcpaySettings;let r="number"==typeof t.amount&&"number"==typeof e.amount&&0!==e.amount?Math.abs(t.amount/e.amount):0;oc(t.currency)&&(r*=100),oc(e.currency)&&(r/=100);const o=(0,W.find)(n,{code:t.currency.toUpperCase()}),a=r<1?6:5,i=oc(t.currency);o||(0,B.sprintf)(i?"%i %s":"%.5f %s",r,t.currency.toUpperCase());const s=ec()({...o,precision:a});return sc(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").map((e=>(0,W.endsWith)(e,"0")?(0,W.trimEnd)(e,"0"):e)).join(" ")}(lc(s.formatAmount(r))),t.currency.toUpperCase())}(e,t)}: ${cc(Math.abs(t.amount),t.currency)}`})({currency:t,amount:n},{currency:r,amount:o})},ov=e=>"available"===e.acquirer_reference_number_status?(0,B.sprintf)((0,B.__)("Acquirer Reference Number (ARN) %s","woocommerce-payments"),e.acquirer_reference_number):"",av=e=>{switch(e.failure_reason){case"expired_or_canceled_card":return(0,B.__)("the card being expired or canceled.","woocommerce-payments");case"lost_or_stolen_card":case"unknown":return(0,B.__)("the card being lost or stolen.","woocommerce-payments")}},iv=e=>{const t=(e=>{var t;if(null==e||null===(t=e.fee_rates)||void 0===t||!t.history)return;if(Xg(e))return;const{fee_rates:{history:n}}=e,r={};return n.forEach((e=>{let t=e.type;e.additional_type&&(t+=`-${e.additional_type}`);const{percentage_rate:n,fixed_rate:o,currency:a,capped:i}=e,s=Hg(n),c=ic(o,a),l=(0,B.sprintf)(((e,t)=>({base:t?(0,B.__)("Base fee: capped at %2$s","woocommerce-payments"):0!==e?(0,B.__)("Base fee: %1$s%% + %2$s","woocommerce-payments"):(0,B.__)("Base fee: %1$s%%","woocommerce-payments"),"additional-international":0!==e?(0,B.__)("International card fee: %1$s%% + %2$s","woocommerce-payments"):(0,B.__)("International card fee: %1$s%%","woocommerce-payments"),"additional-fx":0!==e?(0,B.__)("Foreign exchange fee: %1$s%% + %2$s","woocommerce-payments"):(0,B.__)("Foreign exchange fee: %1$s%%","woocommerce-payments"),"additional-wcpay-subscription":0!==e?(0,B.__)("Subscription transaction fee: %1$s%% + %2$s","woocommerce-payments"):(0,B.__)("Subscription transaction fee: %1$s%%","woocommerce-payments"),"additional-device":0!==e?(0,B.__)("Tap to pay transaction fee: %1$s%% + %2$s","woocommerce-payments"):(0,B.__)("Tap to pay transaction fee: %1$s%%","woocommerce-payments"),discount:(0,B.__)("Discount","woocommerce-payments")}))(o,i)[t],s,c);r[t]="discount"===t?{label:l,variable:(0,B.sprintf)((0,B.__)("Variable fee: %s","woocommerce-payments"),s)+"%",fixed:(0,B.sprintf)((0,B.__)("Fixed fee: %s","woocommerce-payments"),c)}:l})),r})(e);if("object"!=typeof t)return;const n=Object.keys(t).map((e=>{const n=t[e];return(0,Y.createElement)("li",{key:e},"discount"===e?n.label:n,"discount"===e&&(r=n,(0,Y.createElement)("ul",{className:"discount-split-list"},(0,Y.createElement)("li",{key:"variable"},r.variable),(0,Y.createElement)("li",{key:"fixed"},r.fixed))));var r}));return(0,Y.createElement)("ul",{className:"fee-breakdown-list"}," ",n," ")},sv=(e,t)=>{const n="block"===t,r=n?(0,B.__)("Payment was blocked by <a>%s</a>","woocommerce-payments"):(0,B.__)("Payment was approved by <a>%s</a>","woocommerce-payments"),o=n?(0,Y.createElement)(Vg.Z,{className:"is-error"}):(0,Y.createElement)(za.Z,{className:"is-success"});return[Kg(e,(0,Y.createInterpolateElement)((0,B.sprintf)(r,e.user.username),{a:(0,Y.createElement)("a",{href:(0,ys.addQueryArgs)("user-edit.php",{user_id:e.user.id}),tabIndex:-1})}),o)]},cv=e=>Object.entries(e.ruleset_results||{}).filter((e=>{let[,t]=e;return"allow"!==t})).map((e=>{let[t,n]=e;return(0,Y.createElement)("p",{key:t,className:"fraud-outcome-ruleset-item"},Gg[n][t])})),lv=(e,t)=>{const n="block"===t,r=n?(0,B.__)("Payment was screened by your fraud filters and blocked.","woocommerce-payments"):(0,B.__)("Payment was screened by your fraud filters and placed in review.","woocommerce-payments"),o=n?(0,Y.createElement)(Vg.Z,{className:"is-error"}):(0,Y.createElement)(Wg,{className:"is-fraud-outcome-review"});return[Kg(e,r,o,cv(e))]},dv=e=>{const{type:t}=e,n=function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,B.sprintf)(t,r?cc(n,e.currency):ic(n,e.currency))};switch(t){case"started":return[qg(e,(0,B.__)("Started","woocommerce-payments"))];case"authorized":return[qg(e,(0,B.__)("Authorized","woocommerce-payments")),Kg(e,n((0,B.__)("A payment of %s was successfully authorized.","woocommerce-payments"),e.amount,!0),(0,Y.createElement)(za.Z,{className:"is-warning"}))];case"authorization_voided":return[qg(e,(0,B.__)("Authorization voided","woocommerce-payments")),Kg(e,n((0,B.__)("Authorization for %s was voided.","woocommerce-payments"),e.amount,!0),(0,Y.createElement)(za.Z,{className:"is-warning"}))];case"authorization_expired":return[qg(e,(0,B.__)("Authorization expired","woocommerce-payments")),Kg(e,n((0,B.__)("Authorization for %s expired.","woocommerce-payments"),e.amount,!0),(0,Y.createElement)(Vg.Z,{className:"is-error"}))];case"captured":const r=ev(e);return[qg(e,(0,B.__)("Paid","woocommerce-payments")),Zg(e,r,!0),Kg(e,n((0,B.__)("A payment of %s was successfully charged.","woocommerce-payments"),e.amount,!0),(0,Y.createElement)(za.Z,{className:"is-success"}),[rv(e),nv(e),iv(e),tv(e)])];case"partial_refund":case"full_refund":const o=cc(e.amount_refunded,e.currency),a=Jg(e)?cc(e.transaction_details.store_amount,e.transaction_details.store_currency):o;return[qg(e,"full_refund"===t?(0,B.__)("Refunded","woocommerce-payments"):(0,B.__)("Partial refund","woocommerce-payments")),Zg(e,a,!1),Kg(e,(0,B.sprintf)((0,B.__)("A payment of %s was successfully refunded.","woocommerce-payments"),o),(0,Y.createElement)(za.Z,{className:"is-success"}),[rv(e),ov(e)])];case"refund_failed":const i=cc(e.amount_refunded,e.currency);return[Kg(e,(0,B.sprintf)((0,B.__)("%s refund was attempted but failed due to %s","woocommerce-payments"),i,av(e)),(0,Y.createElement)(Ba.Z,{className:"is-error"}),[ov(e)])];case"failed":return[qg(e,(0,B.__)("Failed","woocommerce-payments")),Kg(e,n((0,B.__)("A payment of %s failed.","woocommerce-payments"),e.amount,!0),(0,Y.createElement)(Vg.Z,{className:"is-error"}))];case"dispute_needs_response":let s,c=(0,B.__)("Payment disputed","woocommerce-payments");if(Jl[e.reason]&&(c=(0,B.sprintf)((0,B.__)("Payment disputed as %s.","woocommerce-payments"),Jl[e.reason].display)),null===e.amount)s={date:new Date(1e3*e.datetime),icon:(0,Y.createElement)(Ua.Z,null),headline:(0,B.__)("No funds have been withdrawn yet.","woocommerce-payments"),body:[(0,B.__)("The cardholder's bank is requesting more information to decide whether to return these funds to the cardholder.","woocommerce-payments")]};else{const t=cc(Math.abs(e.amount)+Math.abs(e.fee),e.currency),n=Jg(e)?ic(e.transaction_details.customer_amount,e.transaction_details.customer_currency):ic(e.amount,e.currency);s=Zg(e,t,!1,[(0,B.sprintf)((0,B.__)("Disputed amount: %s","woocommerce-payments"),n),rv(e),(0,B.sprintf)((0,B.__)("Fee: %s","woocommerce-payments"),ic(e.fee,e.currency))])}return[qg(e,(0,B.__)("Disputed: Needs response","woocommerce-payments")),s,Kg(e,c,(0,Y.createElement)(Vg.Z,{className:"is-error"}))];case"dispute_in_review":return[qg(e,(0,B.__)("Disputed: In review","woocommerce-payments")),Kg(e,(0,B.__)("Challenge evidence submitted.","woocommerce-payments"),(0,Y.createElement)(za.Z,{className:"is-success"}))];case"dispute_won":const l=cc(Math.abs(e.amount)+Math.abs(e.fee),e.currency);return[qg(e,(0,B.__)("Disputed: Won","woocommerce-payments")),Zg(e,l,!0,[(0,B.sprintf)((0,B.__)("Dispute reversal: %s","woocommerce-payments"),ic(e.amount,e.currency)),(0,B.sprintf)((0,B.__)("Fee refund: %s","woocommerce-payments"),ic(Math.abs(e.fee),e.currency))]),Kg(e,(0,B.__)("Dispute won! The bank ruled in your favor.","woocommerce-payments"),(0,Y.createElement)(Ba.Z,{className:"is-success"}))];case"dispute_lost":return[qg(e,(0,B.__)("Disputed: Lost","woocommerce-payments")),Kg(e,(0,B.__)("Dispute lost. The bank ruled in favor of your customer.","woocommerce-payments"),(0,Y.createElement)(Vg.Z,{className:"is-error"}))];case"dispute_warning_closed":return[Kg(e,(0,B.__)("Dispute inquiry closed. The bank chose not to pursue this dispute.","woocommerce-payments"),(0,Y.createElement)(Ba.Z,{className:"is-success"}))];case"dispute_charge_refunded":return[Kg(e,(0,B.__)("The disputed charge has been refunded.","woocommerce-payments"),(0,Y.createElement)(Ba.Z,{className:"is-success"}))];case"financing_paydown":return[Qg(e,ic(Math.abs(e.amount)),[(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Loan repayment: <a>Loan %s</a>","woocommerce-payments"),e.loan_id),{a:(0,Y.createElement)(cs.Link,{href:bs({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:e.loan_id})})})])];case"fraud_outcome_manual_approve":return sv(e,"allow");case"fraud_outcome_manual_block":return sv(e,"block");case"fraud_outcome_review":return lv(e,"review");case"fraud_outcome_block":return lv(e,"block");default:return[]}},uv=e=>{let{paymentIntentId:t}=e;const{timeline:n,timelineError:r,isLoading:o}=(e=>(0,ps.useSelect)((t=>{const{getTimeline:n,getTimelineError:r,isResolving:o}=t(vs);return{timeline:n(e),timelineError:r(e),isLoading:o("getTimeline",[e])}}),[e]))(t),a=(i=n)?(0,W.flatMap)(i,dv):[];var i;return(0,Y.createElement)(ko,{size:"large"},(0,Y.createElement)(ff,null,(0,Y.createElement)(K_,{isLoading:o,value:(0,B.__)("Timeline","woocommerce-payments")})),(0,Y.createElement)(Mo,null,(0,Y.createElement)(Q_,{isLoading:o,numLines:3},r instanceof Error?(0,B.__)("Error while loading timeline","woocommerce-payments"):(0,Y.createElement)(cs.Timeline,{items:a})),(0,Y.createElement)(Q_,{isLoading:o,numLines:3}),(0,Y.createElement)(Q_,{isLoading:o,numLines:3}),(0,Y.createElement)(Q_,{isLoading:o,numLines:3})))},mv=e=>{const{label:t,children:n,isLoading:r}=e;return(0,Y.createElement)("div",{className:"payment-method-detail"},(0,Y.createElement)("h4",{className:"payment-method-detail__label"},(0,Y.createElement)(K_,{isLoading:r,display:"block",value:t})),(0,Y.createElement)("p",{className:"payment-method-detail__value"},(0,Y.createElement)(K_,{isLoading:r,value:n})))},pv={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},yv={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},hv={bankName:"bank name placeholder",bic:"bic placeholder",id:"id placeholder",verifiedName:"verified name placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},fv={bsb:"000000",last4:"0000",fingerprint:"fingerprint placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},_v=e=>{const{checked:t}=e;switch(t){case"pass":return(0,B.__)("Passed","woocommerce-payments");case"fail":return(0,B.__)("Failed","woocommerce-payments");case"unavailable":return(0,B.__)("Unavailable","woocommerce-payments");default:return(0,B.__)("Not checked","woocommerce-payments")}},gv={last4:"0000",fingerprint:"fingerprint placeholder",date:"date placeholder",cardType:"card type placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder",cvcCheck:null,line1Check:null,postalCodeCheck:null},vv={last4:"0000",fingerprint:"fingerprint placeholder",date:"date placeholder",cardType:"card type placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},wv={arzte_und_apotheker_bank:"Ärzte- und Apothekerbank",austrian_anadi_bank_ag:"Austrian Anadi Bank AG",bank_austria:"Bank Austria",bankhaus_carl_spangler:"Bankhaus Carl Spängler & Co.AG",bankhaus_schelhammer_und_schattera_ag:"Bankhaus Schelhammer & Schattera AG",bawag_psk_ag:"BAWAG P.S.K. AG",bks_bank_ag:"BKS Bank AG",brull_kallmus_bank_ag:"Brüll Kallmus Bank AG",btv_vier_lander_bank:"BTV VIER LÄNDER BANK",capital_bank_grawe_gruppe_ag:"Capital Bank Grawe Gruppe AG",dolomitenbank:"Dolomitenbank",easybank_ag:"Easybank AG",erste_bank_und_sparkassen:"Erste Bank und Sparkassen",hypo_alpeadriabank_international_ag:"Hypo Alpe-Adria-Bank International AG",hypo_noe_lb_fur_niederosterreich_u_wien:"HYPO NOE LB für Niederösterreich u. Wien",hypo_oberosterreich_salzburg_steiermark:"HYPO Oberösterreich,Salzburg,Steiermark",hypo_tirol_bank_ag:"Hypo Tirol Bank AG",hypo_vorarlberg_bank_ag:"Hypo Vorarlberg Bank AG",hypo_bank_burgenland_aktiengesellschaft:"HYPO-BANK BURGENLAND Aktiengesellschaft",marchfelder_bank:"Marchfelder Bank",oberbank_ag:"Oberbank AG",raiffeisen_bankengruppe_osterreich:"Raiffeisen Bankengruppe Österreich",schoellerbank_ag:"Schoellerbank AG",sparda_bank_wien:"Sparda-Bank Wien",volksbank_gruppe:"Volksbank Gruppe",volkskreditbank_ag:"Volkskreditbank AG",vr_bank_braunau:"VR-Bank Braunau"},bv={id:"id placeholder",bank:"bank name placeholder",verifiedName:"verified_name placeholder",customerName:"customer_name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},Ev={bankName:"bank name placeholder",bic:"bic placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},$v={id:"id placeholder",bankName:"bank name placeholder",bic:"bic placeholder",last4:"0000",verifiedName:"verified name placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},Sv={id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",paymentMethodCategory:"category placeholder",preferredLocale:"locale placeholder"},Cv={id:"id placeholder",bank:"bank name placeholder",reference:"reference placeholder",verifiedName:"verified_name placeholder",customerName:"customer_name placeholder",email:"email placeholder",formattedAddress:"address placeholder"},kv={last4:"0000",fingerprint:"fingerprint placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},Iv={bankCode:"bank code placeholder",bankName:"bank name placeholder",bic:"bic placeholder",last4:"0000",verifiedName:"verified name placeholder",fingerprint:"fingerprint placeholder",id:"id placeholder",name:"name placeholder",email:"email placeholder",formattedAddress:"address placeholder",country:"country placeholder"},Nv={affirm:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{name:r,email:o,formatted_address:a}=t;return{id:n,name:r,email:o,formattedAddress:a}})(t):pv,{id:o,name:a,email:i,formattedAddress:s}=r;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o||"–")),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},a||"–"),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},i||"–"),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:s||"–"}}))))},afterpay_clearpay:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{name:r,email:o,formatted_address:a}=t;return{id:n,name:r,email:o,formattedAddress:a}})(t):yv,{id:o,name:a,email:i,formattedAddress:s}=r;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o||"–")),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},a||"–"),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},i||"–"),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:s||"–"}}))))},au_becs_debit:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bsb_number:r,last4:o,fingerprint:a}=e.payment_method_details.au_becs_debit,{name:i,email:s,formatted_address:c}=t;return{bsb:r,last4:o,fingerprint:a,id:n,name:i,email:s,formattedAddress:c}})(t):fv,{bsb:o,last4:a,id:i,name:s,email:c,formattedAddress:l}=r,d=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("BSB","woocommerce-payments")},o),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Account","woocommerce-payments")},"••••• ",a),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},i)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},s),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},c),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:l}}))))},bancontact:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_name:r,bic:o,verified_name:a}=e.payment_method_details.bancontact,{name:i,email:s,formatted_address:c}=t;return{id:n,bankName:r,bic:o,verifiedName:a,name:i,email:s,formattedAddress:c}})(t):hv,{id:o,bankName:a,bic:i,verifiedName:s,name:c,email:l,formattedAddress:d}=r,u=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},a),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("BIC","woocommerce-payments")},i),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Verified name","woocommerce-payments")},s),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},c),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},l),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:d}}))))},card:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:r,fingerprint:o,exp_month:a,exp_year:i,funding:s,network:c,country:l,checks:d}=e.payment_method_details.card,{name:u,email:m,formatted_address:p}=t,{cvc_check:y,address_line1_check:h,address_postal_code_check:f}=d||{},_=a&&i?a+" / "+i:void 0,g={credit:(0,B.__)("credit","woocommerce-payments"),debit:(0,B.__)("debit","woocommerce-payments"),prepaid:(0,B.__)("prepaid","woocommerce-payments"),unknown:(0,B.__)("unknown","woocommerce-payments")};return{last4:r,fingerprint:o,date:_,cardType:c?(0,B.sprintf)((0,B.__)("%1$s %2$s card","woocommerce-payments"),"jcb"===c?c.toUpperCase():c.charAt(0).toUpperCase()+c.slice(1),g[s]):void 0,id:n,name:u,email:m,country:wcSettings.countries[l],cvcCheck:y,line1Check:h,postalCodeCheck:f,formattedAddress:p}})(t):gv,{last4:o,date:a,cardType:i,id:s,name:c,email:l,country:d,cvcCheck:u,line1Check:m,postalCodeCheck:p,formattedAddress:y}=r,h=mv,f=_v;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Number","woocommerce-payments")},o?(0,Y.createElement)(Y.Fragment,null,"•••• ",o):"–"),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Expires","woocommerce-payments")},null!=a?a:"–"),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Type","woocommerce-payments")},null!=i?i:"–"),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},s||"–")),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},c),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},l),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:y}})),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Origin","woocommerce-payments")},d),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("CVC check","woocommerce-payments")},(0,Y.createElement)(f,{checked:u})),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Street check","woocommerce-payments")},(0,Y.createElement)(f,{checked:m})),(0,Y.createElement)(h,{isLoading:n,label:(0,B.__)("Zip check","woocommerce-payments")},(0,Y.createElement)(f,{checked:p}))))},card_present:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:r,fingerprint:o,exp_month:a,exp_year:i,funding:s,network:c,country:l}=e.payment_method_details.card_present,{name:d,email:u,formatted_address:m}=t,p=a+" / "+i,y={credit:(0,B.__)("credit","woocommerce-payments"),debit:(0,B.__)("debit","woocommerce-payments"),prepaid:(0,B.__)("prepaid","woocommerce-payments"),unknown:(0,B.__)("unknown","woocommerce-payments")};return{last4:r,fingerprint:o,date:p,cardType:(0,B.sprintf)((0,B.__)("%1$s %2$s card","woocommerce-payments"),c.charAt(0).toUpperCase()+c.slice(1),y[s]),id:n,name:d,email:u,country:wcSettings.countries[l],formattedAddress:m}})(t):vv,{last4:o,date:a,cardType:i,id:s,name:c,email:l,country:d,formattedAddress:u}=r,m=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Number","woocommerce-payments")},"•••• ",o),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Expires","woocommerce-payments")},a),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Type","woocommerce-payments")},i),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},s)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},c),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},l),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:u}})),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Origin","woocommerce-payments")},d)))},eps:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:r,verified_name:o}=e.payment_method_details.eps,{name:a,email:i,formatted_address:s}=t;return{id:n,bank:r,verifiedName:o,customerName:a,email:i,formattedAddress:s}})(t):bv,{id:o,bank:a,verifiedName:i,customerName:s,email:c,formattedAddress:l}=r,d=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},wv[a]),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Verified name","woocommerce-payments")},i)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},s),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},c),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:l}}))))},giropay:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_name:r,bic:o}=e.payment_method_details.giropay,{name:a,email:i,formatted_address:s}=t;return{id:n,bankName:r,bic:o,name:a,email:i,formattedAddress:s}})(t):Ev,{id:o,bankName:a,bic:i,name:s,email:c,formattedAddress:l}=r,d=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},a),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("BIC","woocommerce-payments")},i),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},s),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},c),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:l}}))))},ideal:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:r,bic:o,country:a,iban_last4:i,verified_name:s}=e.payment_method_details.ideal,{name:c,email:l,formatted_address:d}=t;return{bankName:r,bic:o,last4:i,verifiedName:s,id:n,name:c,email:l,country:wcSettings.countries[a],formattedAddress:d}})(t):$v,{bankName:o,bic:a,last4:i,verifiedName:s,id:c,name:l,email:d,formattedAddress:u}=r,m=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},c),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},o),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("BIC","woocommerce-payments")},a),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("IBAN","woocommerce-payments")},"•••• ",i)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Verified name","woocommerce-payments")},s),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},l),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},d),(0,Y.createElement)(m,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:u}}))))},klarna:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{payment_method_category:r,preferred_locale:o}=e.payment_method_details.klarna,a={pay_later:(0,B.__)("pay_later","woocommerce-payments"),pay_now:(0,B.__)("pay_now","woocommerce-payments"),pay_with_financing:(0,B.__)("pay_with_financing","woocommerce-payments"),pay_in_installments:(0,B.__)("pay_in_installments","woocommerce-payments")},{name:i,email:s,formatted_address:c}=t;return{id:n,name:i,email:s,formattedAddress:c,paymentMethodCategory:a[r],preferredLocale:o}})(t):Sv,{id:o,name:a,email:i,formattedAddress:s,paymentMethodCategory:c,preferredLocale:l}=r;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Category","woocommerce-payments")},c),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Preferred Locale","woocommerce-payments")},l)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},a),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},i),(0,Y.createElement)(mv,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:s}}))))},p24:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank:r,reference:o,verified_name:a}=e.payment_method_details.p24,{name:i,email:s,formatted_address:c}=t;return{id:n,bank:r,reference:o,verifiedName:a,customerName:i,email:s,formattedAddress:c}})(t):Cv,{id:o,bank:a,reference:i,verifiedName:s,customerName:c,email:l,formattedAddress:d}=r,u=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},Jf[a]),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Reference","woocommerce-payments")},i),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},o),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Verified name","woocommerce-payments")},s)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},c),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},l),(0,Y.createElement)(u,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:d}}))))},sepa_debit:e=>{let{charge:t={},isLoading:n}=e;const r=t&&t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{last4:r,fingerprint:o,country:a}=e.payment_method_details.sepa_debit,{name:i,email:s,formatted_address:c}=t;return{last4:r,fingerprint:o,id:n,name:i,email:s,country:wcSettings.countries[a],formattedAddress:c}})(t):kv,{last4:o,id:a,name:i,email:s,country:c,formattedAddress:l}=r,d=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("IBAN","woocommerce-payments")},"•••• ",o),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},a)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},i),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},s),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:l}})),(0,Y.createElement)(d,{isLoading:n,label:(0,B.__)("Origin","woocommerce-payments")},c)))},sofort:e=>{let{charge:t={},isLoading:n}=e;const r=t.payment_method_details?(e=>{const{billing_details:t,payment_method:n}=e,{bank_code:r,bank_name:o,bic:a,country:i,iban_last4:s,verified_name:c}=e.payment_method_details.sofort,{name:l,email:d,formatted_address:u}=t;return{bankCode:r,bankName:o,bic:a,last4:s,verifiedName:c,id:n,name:l,email:d,country:wcSettings.countries[i],formattedAddress:u}})(t):Iv,{bankCode:o,bankName:a,bic:i,last4:s,verifiedName:c,id:l,name:d,email:u,country:m,formattedAddress:p}=r,y=mv;return(0,Y.createElement)("div",{className:"payment-method-details"},(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("ID","woocommerce-payments")},l),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Bank code","woocommerce-payments")},o),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Bank name","woocommerce-payments")},a),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("BIC","woocommerce-payments")},i),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("IBAN","woocommerce-payments")},"•••• ",s)),(0,Y.createElement)("div",{className:"payment-method-details__column"},(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Verified name","woocommerce-payments")},c),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Owner","woocommerce-payments")},d),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Owner email","woocommerce-payments")},u),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Address","woocommerce-payments")},(0,Y.createElement)("span",{dangerouslySetInnerHTML:{__html:p}})),(0,Y.createElement)(y,{isLoading:n,label:(0,B.__)("Origin","woocommerce-payments")},m)))}},xv=e=>{let{charge:t={},isLoading:n}=e;if(!t.payment_method_details||!t.payment_method_details.type)return null;const r=t.payment_method_details.type;if(!(r in Nv))return null;const o=Nv[r];return(0,Y.createElement)(ko,{size:"large"},(0,Y.createElement)(ff,null,(0,Y.createElement)(K_,{isLoading:n,value:(0,B.__)("Payment method","woocommerce-payments")})),(0,Y.createElement)(Mo,null,(0,Y.createElement)(o,{isLoading:n,charge:t})))},Tv=e=>{let{id:t,error:n,charge:r={},metadata:o={},isLoading:a,showTimeline:i=!0,paymentIntent:s}=e;return!a&&n instanceof Error?H().createElement(Wa,{maxWidth:1032,className:"wcpay-payment-details"},H().createElement(Ls,{currentPage:"payments",isDetailsView:!0}),H().createElement(ko,null,H().createElement(Mo,null,(0,B.__)("Payment details not loaded","woocommerce-payments")))):H().createElement(Wa,{maxWidth:1032,className:"wcpay-payment-details"},H().createElement(Ls,{currentPage:"payments",isDetailsView:!0}),H().createElement(Ya,null,H().createElement(zg,{charge:r,metadata:o,isLoading:a,paymentIntent:s})),i&&wcpaySettings.featureFlags.paymentTimeline&&H().createElement(Ya,null,H().createElement(uv,{paymentIntentId:t})),H().createElement(Ya,null,H().createElement(xv,{charge:r,isLoading:a})))},Ov=e=>{let{id:t}=e;const{data:n,isLoading:r}=(e=>(0,ps.useSelect)((t=>{const{getChargeFromOrder:n,isResolving:r,getChargeFromOrderError:o,hasFinishedResolution:a}=t(vs);return{data:n(e),error:o(e),isLoading:r("getChargeFromOrder",[e])||!a("getChargeFromOrder",[e])}}),[e]))(t),o=!!n.payment_intent,a=r||o;return(0,V.useEffect)((()=>{if(n&&o){const e=bs({page:"wc-admin",path:"/payments/transactions/details",id:n.payment_intent});window.location.href=e}}),[n,o]),H().createElement(Tv,{id:t,charge:n,isLoading:a,showTimeline:!o})},Lv=e=>void 0!==e.charge,Av=e=>{let{id:t}=e;const{data:n,error:r,isLoading:o}=Gp(t),a=Lv(n)?n:{},i=Wp(t),s=i||o,c=(Lv(n)?n.charge:n)||{},l=Lv(n)?n.metadata:{};return(0,V.useEffect)((()=>{if((e=>void 0===e.charge)(n)&&i&&n.payment_intent){const e=bs({page:"wc-admin",path:"/payments/transactions/details",id:n.payment_intent});(0,ky.getHistory)().replace(e)}}),[n,i]),H().createElement(Tv,{id:t,error:r,charge:c,metadata:l,isLoading:s,showTimeline:!i,paymentIntent:a})},Mv=e=>{let{query:t}=e;const{id:n,transaction_id:r,transaction_type:o}=t||{},{status_is:a,type_is:i}=(0,ky.getQuery)();return a&&i&&(Ca("wcpay_fraud_protection_order_details_link_clicked",{status:a,type:i}),(0,ky.updateQueryString)({status_is:void 0,type_is:void 0})),"card_reader_fee"===o?H().createElement(A_,{chargeId:n,transactionId:r}):/^\d+$/.test(n)?H().createElement(Ov,{id:n}):H().createElement(Av,{id:n})},Dv=e=>{let{storeCurrencies:t}=e;return H().createElement(cs.ReportFilters,{filters:(n=nd,n.forEach((e=>{if("store_currency_is"===e.param){const n=t||[];e.filters=[e.filters[0],...n.map((e=>({label:nc(e),value:e})))],2<e.filters.length&&(e.showFilters=()=>!0)}})),n),advancedFilters:ad,showDatePicker:!1,path:"/payments/disputes",query:(0,ky.getQuery)()});var n};var Rv=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};const Pv=e=>{if(""===e.due_by||!eg(e.status))return"";const t=fs()().utc(),n=fs().utc(e.due_by),r=n.diff(t,"hours",!1),o=n.diff(t,"days",!1);return r<=0?"":r<=72?H().createElement("span",{className:"due-soon"},r<=24?(0,B.__)("Last day today","woocommerce-payments"):(0,B.sprintf)((0,B._n)("%s day left","%s days left",o,"woocommerce-payments"),o),H().createElement(Ba.Z,{className:"due-soon-icon"})):(0,_s.dateI18n)("M j, Y / g:iA",fs().utc(e.due_by).local().toISOString())},jv=()=>{var e,t,n;Tm();const[r,o]=(0,V.useState)(!1),{createNotice:a}=(0,ps.useDispatch)("core/notices"),{disputes:i,isLoading:s}=id((0,ky.getQuery)()),{disputesSummary:c,isLoading:l}=(e=>{let{paged:t,per_page:n,match:r,store_currency_is:o,date_before:a,date_after:i,date_between:s,filter:c,status_is:l,status_is_not:d}=e;return(0,ps.useSelect)((e=>{const{getDisputesSummary:u,isResolving:m}=e(vs),p="awaiting_response"===c?td:void 0,y={paged:Number.isNaN(parseInt(null!=t?t:"",10))?"1":t,perPage:Number.isNaN(parseInt(null!=n?n:"",10))?"25":n,match:r,storeCurrencyIs:o,dateBefore:a,dateAfter:i,dateBetween:s,search:p,statusIs:l,statusIsNot:d};return{disputesSummary:u(y),isLoading:m("getDisputesSummary",[y])}}),[t,n,o,r,a,i,JSON.stringify(s),c,l,d])})((0,ky.getQuery)()),[d,u]=(0,V.useState)(!1),[m]=Im(),p=(y=(0,ky.getQuery)().orderby,[{key:"details",label:"",required:!0,cellClassName:Z()("info-button",{"is-sorted":"amount"===y}),isLeftAligned:!0},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),required:!0,isSortable:!0,isLeftAligned:!0},{key:"currency",label:(0,B.__)("Currency","woocommerce-payments"),visible:!1,required:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),screenReaderLabel:(0,B.__)("Status","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"reason",label:(0,B.__)("Reason","woocommerce-payments"),screenReaderLabel:(0,B.__)("Reason","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"source",label:(0,B.__)("Source","woocommerce-payments"),screenReaderLabel:(0,B.__)("Source","woocommerce-payments"),required:!0,cellClassName:"is-center-aligned"},{key:"order",label:(0,B.__)("Order #","woocommerce-payments"),screenReaderLabel:(0,B.__)("Order #","woocommerce-payments"),required:!0},{key:"customerName",label:(0,B.__)("Customer","woocommerce-payments"),screenReaderLabel:(0,B.__)("Customer","woocommerce-payments"),isLeftAligned:!0},{key:"customerEmail",label:(0,B.__)("Email","woocommerce-payments"),screenReaderLabel:(0,B.__)("Email","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"customerCountry",label:(0,B.__)("Country","woocommerce-payments"),screenReaderLabel:(0,B.__)("Country","woocommerce-payments"),visible:!1,isLeftAligned:!0},{key:"created",label:(0,B.__)("Disputed on","woocommerce-payments"),screenReaderLabel:(0,B.__)("Disputed on","woocommerce-payments"),isLeftAligned:!0,isSortable:!0,defaultSort:!0,defaultOrder:"desc",visible:!1},{key:"dueBy",label:(0,B.__)("Respond by","woocommerce-payments"),screenReaderLabel:(0,B.__)("Respond by","woocommerce-payments"),required:!0,isLeftAligned:!0,isSortable:!0},{key:"action",label:(0,B.__)("Action","woocommerce-payments"),screenReaderLabel:(0,B.__)("Action","woocommerce-payments"),isLeftAligned:!1,isNumeric:!0,required:!0,visible:!0}]);var y;const h=c.count||0,f=i.map((e=>{var t,n,r,o,a,i;const s=t=>H().createElement(Ly,{href:Ty(e.charge_id,"transactions")},t),c=H().createElement(Oy,{id:e.charge_id,parentSegment:"transactions"}),l=Jl[e.reason],d=l?l.display:Ss(e.reason),u=eg(e.status),m={amount:{value:ac(e.amount,e.currency),display:s(cc(e.amount,e.currency))},currency:{value:e.currency,display:s(e.currency)},status:{value:e.status,display:s(H().createElement(rg,{status:e.status,dueBy:e.due_by}))},reason:{value:d,display:s(d)},source:{value:null!==(t=e.source)&&void 0!==t?t:"",display:s(H().createElement("span",{className:`payment-method__brand payment-method__brand--${null!==(n=e.source)&&void 0!==n?n:""}`}))},created:{value:e.created,display:s((0,_s.dateI18n)("M j, Y",fs()(e.created).toISOString()))},dueBy:{value:e.due_by,display:s(Pv(e))},order:{value:null!==(r=e.order_number)&&void 0!==r?r:"",display:H().createElement(_f,{order:e.order})},customerName:{value:null!==(o=e.customer_name)&&void 0!==o?o:"",display:e.order&&e.order.customer_url?H().createElement(cs.Link,{href:e.order.customer_url},e.customer_name):s(e.customer_name)},customerEmail:{value:null!==(a=e.customer_email)&&void 0!==a?a:"",display:s(e.customer_email)},customerCountry:{value:null!==(i=e.customer_country)&&void 0!==i?i:"",display:s(e.customer_country)},details:{value:e.dispute_id,display:c},action:{value:"",display:H().createElement(Jn,{variant:u?"secondary":"tertiary",href:Ty(e.charge_id,"transactions"),onClick:t=>{t.preventDefault(),Ca("wcpay_disputes_row_action_click"),(0,ky.getHistory)().push(Ty(e.charge_id,"transactions"))}},u?(0,B.__)("Respond","woocommerce-payments"):(0,B.__)("See details","woocommerce-payments"))}};return p.map((e=>{let{key:t}=e;return m[t]||{value:void 0,display:null}}))})),_=!!f.length,g=e=>Rv(void 0,void 0,void 0,(function*(){const t=(0,ky.getQuery)(),{page:n,path:r}=t,o=(function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}}(t,["page","path"]),wcpaySettings.currentUserEmail),i=xs(e,m),{date_before:s,date_after:c,date_between:l,match:d,status_is:u,status_is_not:p}=(0,ky.getQuery)(),y=!!(s||c||l||u||p),f=(0,B.sprintf)((0,B.__)("You are about to export %d disputes. If you'd like to reduce the size of your export, you can use one or more filters. Would you like to continue?","woocommerce-payments"),h);if(y||h<1e3||window.confirm(f))try{const{exported_disputes:e}=yield va()({path:Gl({userEmail:o,locale:i,dateAfter:c,dateBefore:s,dateBetween:l,match:d,statusIs:u,statusIsNot:p}),method:"POST"});a("success",(0,B.sprintf)((0,B.__)("Your export will be emailed to %s","woocommerce-payments"),o)),Ca("wcpay_disputes_download",{exported_disputes:e,total_disputes:e,download_type:"endpoint"})}catch(e){a("error",(0,B.__)("There was a problem generating your export.","woocommerce-payments"))}}));let v;void 0!==c.count&&!l&&(v=[{label:(0,B._n)("dispute","disputes",null!==(e=c.count)&&void 0!==e?e:0,"woocommerce-payments"),value:`${ks(c.count)}`}]);const w="string"==typeof(0,ky.getQuery)().store_currency_is,b=c.currencies||(w?[null!==(t=(0,ky.getQuery)().store_currency_is)&&void 0!==t?t:""]:[]),E=()=>{u(!1)};return H().createElement(Wa,null,H().createElement(Ls,{currentPage:"disputes"}),H().createElement(Dv,{storeCurrencies:b}),H().createElement(cs.TableCard,{className:"wcpay-disputes-list",title:(0,B.__)("Disputes","woocommerce-payments"),isLoading:s,rowsPerPage:parseInt(null!==(n=(0,ky.getQuery)().per_page)&&void 0!==n?n:"",10)||25,totalRows:h,headers:p,rows:f,summary:v,query:(0,ky.getQuery)(),onQueryChange:ky.onQueryChange,actions:[_&&H().createElement(zy,{key:"download",isDisabled:s||r,onClick:()=>Rv(void 0,void 0,void 0,(function*(){o(!0);const e=(0,B.__)("Disputes","woocommerce-payments");if("endpoint"==(h>f.length?"endpoint":"browser"))Ns()||Is()?g(""):u(!0);else{const t=[Object.assign(Object.assign({},p[0]),{label:(0,B.__)("Dispute Id","woocommerce-payments")}),...p.slice(1,-1)],n=f.map((e=>{var t,n;return[...e.slice(0,3),Object.assign(Object.assign({},e[3]),{value:V_[null!==(t=e[3].value)&&void 0!==t?t:""].message}),Object.assign(Object.assign({},e[4]),{value:Ss((null!==(n=e[4].value)&&void 0!==n?n:"").toString())}),...e.slice(5,10),Object.assign(Object.assign({},e[10]),{value:(0,_s.dateI18n)("Y-m-d",fs()(e[10].value).toISOString())}),Object.assign(Object.assign({},e[11]),{value:(0,_s.dateI18n)("Y-m-d / g:iA",fs()(e[11].value).toISOString())})]}));(0,Iy.downloadCSVFile)((0,Iy.generateCSVFileName)(e,(0,ky.getQuery)()),(0,Iy.generateCSVDataFromTable)(t,n)),Ca("wcpay_disputes_download",{exported_disputes:n.length,total_disputes:c.count,download_type:"browser"})}o(!1)}))})]}),!Ns()&&!Is()&&d&&H().createElement(uf,{onClose:E,onSubmit:e=>{g(e),E()},totalItems:h,exportType:"disputes"}))},Fv=(function(){var e=tr.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}})` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `,zv=Gn("svg",{target:"e1bj2jdf2"})("width:",Qr.spinnerSize,"px;height:",Qr.spinnerSize,"px;display:inline-block;margin:5px 11px 0;position:relative;color:var( --wp-admin-theme-color );overflow:visible;"),Bv={name:"9s4963",styles:"fill:transparent;stroke-width:1.5px"},Uv=Gn("circle",{target:"e1bj2jdf1"})(Bv,";stroke:",Yr.gray[300],";"),Vv=Gn("path",{target:"e1bj2jdf0"})(Bv,";stroke:currentColor;stroke-linecap:round;transform-origin:50% 50%;animation:1.4s linear infinite both ",Fv,";");function Hv(e){let{className:t,...n}=e;return(0,Y.createElement)(zv,X({className:Z()("components-spinner",t),viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",role:"presentation",focusable:"false"},n),(0,Y.createElement)(Uv,{cx:"50",cy:"50",r:"50",vectorEffect:"non-scaling-stroke"}),(0,Y.createElement)(Vv,{d:"m 50 0 a 50 50 0 0 1 50 50",vectorEffect:"non-scaling-stroke"}))}const Yv=H().createElement(K.SVG,{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},H().createElement(K.Path,{d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20Z",stroke:"#F0B849",strokeWidth:"1.5"}),H().createElement(K.Path,{d:"M13 7H11V13H13V7Z",fill:"#F0B849"}),H().createElement(K.Path,{d:"M13 15H11V17H13V15Z",fill:"#F0B849"})),Wv=e=>{let{query:{id:t}}=e;const{dispute:n,error:r,isLoading:o}=(e=>{const{dispute:t,error:n,isLoading:r}=(0,ps.useSelect)((t=>{const{getDispute:n,getDisputeError:r,isResolving:o}=t(vs);return{dispute:n(e),error:r(e),isLoading:o("getDispute",[e])}}),[e]);return{dispute:t,isLoading:r,error:n}})(t);return(0,V.useEffect)((()=>{if(!o&&(null==n?void 0:n.charge)){const e=n.charge,t=bs({page:"wc-admin",path:"/payments/transactions/details",id:e.payment_intent,transaction_id:e.balance_transaction,type:"dispute"});(0,ky.getHistory)().replace(t)}}),[n,o]),H().createElement(Wa,null,H().createElement(Pa,{direction:"column",className:"wcpay-dispute-detail-legacy-redirect"},r?H().createElement(H().Fragment,null,H().createElement(Fa,null,H().createElement(_n,{icon:Yv,type:"warning",size:32})),H().createElement(Fa,null,H().createElement("div",null,H().createElement("b",null,"Error retrieving dispute")),H().createElement("div",null,"Please check your network and try again."))):H().createElement(H().Fragment,null,H().createElement(Fa,null,H().createElement(Hv,null)),H().createElement(Fa,null,H().createElement("div",null,H().createElement("b",null,"One moment please")),H().createElement("div",null,"Redirecting to payment details…")))))},Gv=(0,Y.forwardRef)((function e(t,n){let{label:r,hideLabelFromVision:o,value:a,help:i,className:s,onChange:c,type:l="text",...d}=t;const u=`inspector-text-control-${(0,ne.useInstanceId)(e)}`;return(0,Y.createElement)(uh,{label:r,hideLabelFromVision:o,id:u,help:i,className:s},(0,Y.createElement)("input",X({className:"components-text-control__input",type:l,id:u,value:a,onChange:e=>c(e.target.value),"aria-describedby":i?u+"__help":void 0,ref:n},d)))})),qv=tr("box-shadow:0 0 0 transparent;transition:box-shadow 0.1s linear;border-radius:",Qr.radiusBlockUi,";border:",Qr.borderWidth," solid ",Yr.ui.border,";",""),Zv=tr("border-color:var( --wp-admin-theme-color );box-shadow:0 0 0 calc( ",Qr.borderWidthFocus," - ",Qr.borderWidth," ) var( --wp-admin-theme-color );outline:2px solid transparent;",""),Qv=tr("font-family:",nh("default.fontFamily"),";padding:6px 8px;",qv,";font-size:",nh("mobileTextMinFontSize"),";line-height:normal;","@media (min-width: 600px)","{font-size:",nh("default.fontSize"),";line-height:normal;}&:focus{",Zv,";}&::-webkit-input-placeholder{color:",Yr.darkGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",Yr.darkGray.placeholder,";}&:-ms-input-placeholder{color:",Yr.darkGray.placeholder,";}.is-dark-theme &{&::-webkit-input-placeholder{color:",Yr.lightGray.placeholder,";}&::-moz-placeholder{opacity:1;color:",Yr.lightGray.placeholder,";}&:-ms-input-placeholder{color:",Yr.lightGray.placeholder,";}}",""),Kv=Gn("textarea",{target:"ebk7yr50"})("width:100%;",Qv,";");function Jv(e){let{label:t,hideLabelFromVision:n,value:r,help:o,onChange:a,rows:i=4,className:s,...c}=e;const l=`inspector-textarea-control-${(0,ne.useInstanceId)(Jv)}`;return(0,Y.createElement)(uh,{label:t,hideLabelFromVision:n,id:l,help:o,className:s},(0,Y.createElement)(Kv,X({className:"components-textarea-control__input",id:l,rows:i,onChange:e=>a(e.target.value),"aria-describedby":o?l+"__help":void 0,value:r},c)))}const Xv=[{key:"general",title:(0,B.__)("General evidence","woocommerce-payments"),description:(0,B.__)("Provide general evidence about the customer and the order.","woocommerce-payments"),fields:[{key:"product_description",label:(0,B.__)("Product description","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("A description of the product or service and any relevant details on how this was presented to the customer at the time of purchase.","woocommerce-payments")},{key:"customer_name",label:(0,B.__)("Customer name","woocommerce-payments"),type:"text"},{key:"customer_email_address",label:(0,B.__)("Customer email","woocommerce-payments"),type:"text"},{key:"customer_signature",label:(0,B.__)("Customer signature","woocommerce-payments"),type:"file",description:(0,B.__)("A relevant document or contract showing the customer's signature (if available).","woocommerce-payments")},{key:"billing_address",label:(0,B.__)("Customer billing address","woocommerce-payments"),type:"textarea"},{key:"customer_purchase_ip",label:(0,B.__)("Customer IP address","woocommerce-payments"),type:"text"},{key:"receipt",label:(0,B.__)("Receipt","woocommerce-payments"),type:"file",description:(0,B.__)("Any receipt or message sent to the customer notifying them of the charge. This field will be automatically filled with a Stripe generated email receipt if any such receipt was sent.","woocommerce-payments")},{key:"customer_communication",label:(0,B.__)("Customer communication","woocommerce-payments"),type:"file",description:(0,B.__)("Any communication with the customer that you feel is relevant to your case (e.g. emails proving that they received the product or service, or demonstrating their use of or satisfaction with the product or service).","woocommerce-payments")}]},{key:"refund_policy_info",title:(0,B.__)("Refund policy info","woocommerce-payments"),fields:[{key:"refund_policy",label:(0,B.__)("Refund policy","woocommerce-payments"),type:"file",description:(0,B.__)("Your refund policy, as shown or provided to the customer.","woocommerce-payments")},{key:"refund_policy_disclosure",label:(0,B.__)("Refund policy disclosure","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("An explanation of how and when the customer was shown or provided your refund policy prior to purchase.","woocommerce-payments")},{key:"refund_refusal_explanation",label:(0,B.__)("Refund refusal explanation","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("Your explanation for why the customer is not entitled to a refund.","woocommerce-payments")}],reason:"credit_not_processed"},{key:"duplicate_charge_info",title:(0,B.__)("Duplicate charge info","woocommerce-payments"),fields:[{key:"duplicate_charge_id",label:(0,B.__)("Duplicate charge ID","woocommerce-payments"),type:"text",description:(0,B.__)("The charge ID for the previous payment that appears to be a duplicate of the one that is disputed.","woocommerce-payments")},{key:"duplicate_charge_explanation",label:(0,B.__)("Explanation of duplicate charge","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("An explanation of the difference between the disputed payment and the prior one that appears to be a duplicate.","woocommerce-payments")},{key:"duplicate_charge_documentation",label:(0,B.__)("Duplicate charge documentation","woocommerce-payments"),type:"file",description:(0,B.__)("Upload documentation for the prior payment that can uniquely identify it, such as a separate receipt. This document should be paired with a similar document from the disputed payment that proves the two are separate. This should also include a separate shipping label or receipt for the other payment. If multiple products were shipped together, provide a packing list that shows each purchase.","woocommerce-payments")},{key:"shipping_documentation",label:(0,B.__)("Shipping documentation","woocommerce-payments"),type:"file",description:(0,B.__)("A shipping label or receipt for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"physical_product"},{key:"service_documentation",label:(0,B.__)("Service documentation","woocommerce-payments"),type:"file",description:(0,B.__)("A copy of a service agreement or documentation for the disputed payment.","woocommerce-payments"),denormalized:!0,productType:"offline_service"}],reason:"duplicate"},{key:"shipping_information",title:(0,B.__)("Shipping information","woocommerce-payments"),fields:[{key:"shipping_carrier",label:(0,B.__)("Shipping carrier","woocommerce-payments"),type:"text",description:(0,B.__)("The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc. If multiple carriers were used for this purchase, please separate them with commas.","woocommerce-payments")},{key:"shipping_tracking_number",label:(0,B.__)("Tracking number","woocommerce-payments"),type:"text",description:(0,B.__)("The tracking number (if available) for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas. When we compile your evidence into a single document, these tracking numbers will be expanded to include detailed delivery information from the carrier.","woocommerce-payments")},{key:"shipping_documentation",label:(0,B.__)("Proof of shipping","woocommerce-payments"),type:"file",description:(0,B.__)("Provide documentation as proof that a product was shipped to the cardholder at the same address the cardholder provided to you. This could include a copy of the shipment receipt or label, and show the full shipping address of the cardholder, if possible.","woocommerce-payments")},{key:"shipping_date",label:(0,B.__)("Date of shipment","woocommerce-payments"),type:"date",description:(0,B.__)("The date on which a physical product began its route to the shipping address. This date should be prior to the date of the dispute.","woocommerce-payments")},{key:"shipping_address",label:(0,B.__)("Shipping address","woocommerce-payments"),type:"textarea",description:(0,B.__)("The address to which a physical product was shipped. The shipping address must match a billing address verified with AVS. (A signature is not required as evidence of delivery).","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","unrecognized"],productType:"physical_product"},{key:"cancellation_policy_info",title:(0,B.__)("Cancellation policy info","woocommerce-payments"),fields:[{key:"cancellation_policy",label:(0,B.__)("Cancellation policy","woocommerce-payments"),type:"file",description:(0,B.__)("Your subscription cancellation policy, as shown to the customer.","woocommerce-payments")},{key:"cancellation_policy_disclosure",label:(0,B.__)("Cancellation policy disclosure","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("An explanation of how and when the customer was shown your cancellation policy prior to purchase.","woocommerce-payments")},{key:"cancellation_rebuttal",label:(0,B.__)("Cancellation rebuttal","woocommerce-payments"),maxLength:2e4,type:"textarea",description:(0,B.__)("A justification for why the customer's subscription was not canceled.","woocommerce-payments")}],reason:"subscription_canceled"},{key:"download_and_activity_logs",title:(0,B.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:[(0,B.__)("Provide at least two of the following pieces of information:","woocommerce-payments"),(0,B.__)("• Customer's IP address and their device's geographical location at the time of purchase","woocommerce-payments"),(0,B.__)("• Device ID and name of the device","woocommerce-payments"),(0,B.__)("• Customer name and email address linked to their customer profile","woocommerce-payments"),(0,B.__)("• Evidence that the customer logged into their account for your business before the transaction date","woocommerce-payments"),(0,B.__)("• Evidence that your website or app was accessed by the cardholder for purchase or services on or after the transaction date","woocommerce-payments"),(0,B.__)("• Evidence that the same device and card used in the disputed payment was used in a previous payment that was not disputed","woocommerce-payments")]}],reason:["fraudulent","product_not_received"],productType:"digital_product_or_service"},{key:"download_and_activity_logs",title:(0,B.__)("Download and activity logs","woocommerce-payments"),fields:[{key:"access_activity_log",type:"file",description:(0,B.__)("Any server or activity logs showing proof that the cardholder accessed or downloaded the purchased digital product. This information should include IP addresses, corresponding timestamps, and any detailed recorded activity.","woocommerce-payments")}],reason:["product_unacceptable","subscription_canceled","unrecognized"],productType:"digital_product_or_service",denormalized:!0},{key:"service_details",title:(0,B.__)("Service details","woocommerce-payments"),fields:[{key:"service_date",label:(0,B.__)("Service date","woocommerce-payments"),type:"date",description:(0,B.__)("The date on which the cardholder received or began receiving the purchased service.","woocommerce-payments")},{key:"service_documentation",label:(0,B.__)("Proof of service","woocommerce-payments"),type:"file",description:(0,B.__)("Documentation showing proof that a service was provided to the cardholder. This could include a copy of a signed contract, work order, or other form of written agreement.","woocommerce-payments")}],reason:["fraudulent","product_not_received","product_unacceptable","subscription_canceled","unrecognized"],productType:"offline_service"},{key:"uncategorized",title:(0,B.__)("Additional details","woocommerce-payments"),description:(0,B.__)("Provide any extra evidence or statements you'd like the bank to see, either as text or by uploading a document.","woocommerce-payments"),fields:[{key:"uncategorized_text",label:(0,B.__)("Additional details","woocommerce-payments"),maxLength:2e4,type:"textarea"},{key:"uncategorized_file",label:(0,B.__)("Additional document","woocommerce-payments"),type:"file"}]}],ew=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M18.5 15v3.5H13V6.7l4.5 4.1 1-1.1-6.2-5.8-5.8 5.8 1 1.1 4-4v11.7h-6V15H4v5h16v-5z"}));var tw=function(e,t){return tw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},tw(e,t)};function nw(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}tw(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var rw=function(){return rw=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rw.apply(this,arguments)};function ow(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function aw(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function iw(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create;var sw=n(4155),cw=(void 0===sw||sw.env,"production"),lw=function(e){return{isEnabled:function(t){return e.some((function(e){return!!t[e]}))}}},dw={measureLayout:lw(["layout","layoutId","drag"]),animation:lw(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:lw(["exit"]),drag:lw(["drag","dragControls"]),focus:lw(["whileFocus"]),hover:lw(["whileHover","onHoverStart","onHoverEnd"]),tap:lw(["whileTap","onTap","onTapStart","onTapCancel"]),pan:lw(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:lw(["whileInView","onViewportEnter","onViewportLeave"])},uw=function(){},mw=function(){},pw=(0,V.createContext)({strict:!1}),yw=Object.keys(dw),hw=yw.length,fw=(0,V.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),_w=(0,V.createContext)({}),gw=(0,V.createContext)(null),vw="undefined"!=typeof document,ww=vw?V.useLayoutEffect:V.useEffect,bw={current:null},Ew=!1;function $w(e,t,n,r){var o,a,i=(0,V.useContext)(pw),s=(0,V.useContext)(_w).visualElement,c=(0,V.useContext)(gw),l=(!Ew&&function(){if(Ew=!0,vw)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return bw.current=e.matches};e.addListener(t),t()}else bw.current=!1}(),o=aw((0,V.useState)(bw.current),1)[0],"never"!==(a=(0,V.useContext)(fw).reducedMotion)&&("always"===a||o)),d=(0,V.useRef)(void 0);r||(r=i.renderer),!d.current&&r&&(d.current=r(e,{visualState:t,parent:s,props:n,presenceId:null==c?void 0:c.id,blockInitialAnimation:!1===(null==c?void 0:c.initial),shouldReduceMotion:l}));var u=d.current;return ww((function(){null==u||u.syncRender()})),(0,V.useEffect)((function(){var e;null===(e=null==u?void 0:u.animationState)||void 0===e||e.animateChanges()})),ww((function(){return function(){return null==u?void 0:u.notifyUnmount()}}),[]),u}function Sw(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Cw(e){return Array.isArray(e)}function kw(e){return"string"==typeof e||Cw(e)}function Iw(e,t,n,r,o){var a;return void 0===r&&(r={}),void 0===o&&(o={}),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),"string"==typeof t&&(t=null===(a=e.variants)||void 0===a?void 0:a[t]),"function"==typeof t&&(t=t(null!=n?n:e.custom,r,o)),t}function Nw(e,t,n){var r=e.getProps();return Iw(r,t,null!=n?n:r.custom,function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.forEachValue((function(e,n){return t[n]=e.getVelocity()})),t}(e))}function xw(e){var t;return"function"==typeof(null===(t=e.animate)||void 0===t?void 0:t.start)||kw(e.initial)||kw(e.animate)||kw(e.whileHover)||kw(e.whileDrag)||kw(e.whileTap)||kw(e.whileFocus)||kw(e.exit)}function Tw(e){return Boolean(xw(e)||e.variants)}function Ow(e){return Array.isArray(e)?e.join(" "):e}function Lw(e){var t=(0,V.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Aw={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Mw=1,Dw=(0,V.createContext)({}),Rw=(0,V.createContext)({}),Pw=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nw(t,e),t.prototype.getSnapshotBeforeUpdate=function(){return this.updateProps(),null},t.prototype.componentDidUpdate=function(){},t.prototype.updateProps=function(){var e=this.props,t=e.visualElement,n=e.props;t&&t.setProps(n)},t.prototype.render=function(){return this.props.children},t}(V.Component);function jw(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.projectionNodeConstructor,o=e.useRender,a=e.useVisualState,i=e.Component;return t&&function(e){for(var t in e)null!==e[t]&&("projectionNodeConstructor"===t?dw.projectionNodeConstructor=e[t]:dw[t].Component=e[t])}(t),(0,V.forwardRef)((function(e,s){var c=function(e){var t,n=e.layoutId,r=null===(t=(0,V.useContext)(Dw))||void 0===t?void 0:t.id;return r&&void 0!==n?r+"-"+n:n}(e);e=rw(rw({},e),{layoutId:c});var l=(0,V.useContext)(fw),d=null,u=function(e){var t=function(e,t){if(xw(e)){var n=e.initial,r=e.animate;return{initial:!1===n||kw(n)?n:void 0,animate:kw(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,V.useContext)(_w)),n=t.initial,r=t.animate;return(0,V.useMemo)((function(){return{initial:n,animate:r}}),[Ow(n),Ow(r)])}(e),m=l.isStatic?void 0:Lw((function(){if(Aw.hasEverUpdated)return Mw++})),p=a(e,l.isStatic);return!l.isStatic&&vw&&(u.visualElement=$w(i,p,rw(rw({},l),e),n),function(e,t,n,r){var o,a=t.layoutId,i=t.layout,s=t.drag,c=t.dragConstraints,l=t.layoutScroll,d=(0,V.useContext)(Rw);r&&n&&!(null==n?void 0:n.projection)&&(n.projection=new r(e,n.getLatestValues(),null===(o=n.parent)||void 0===o?void 0:o.projection),n.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:Boolean(s)||c&&Sw(c),visualElement:n,scheduleRender:function(){return n.scheduleRender()},animationType:"string"==typeof i?i:"both",initialPromotionConfig:d,layoutScroll:l}))}(m,e,u.visualElement,r||dw.projectionNodeConstructor),d=function(e,t,n){var r=[],o=(0,V.useContext)(pw);if(!t)return null;"production"!==cw&&n&&o.strict&&mw(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(var a=0;a<hw;a++){var i=yw[a],s=dw[i],c=s.isEnabled,l=s.Component;c(e)&&l&&r.push(V.createElement(l,rw({key:i},e,{visualElement:t})))}return r}(e,u.visualElement,t)),V.createElement(Pw,{visualElement:u.visualElement,props:rw(rw({},l),e)},d,V.createElement(_w.Provider,{value:u},o(i,e,m,function(e,t,n){return(0,V.useCallback)((function(r){var o;r&&(null===(o=e.mount)||void 0===o||o.call(e,r)),t&&(r?t.mount(r):t.unmount()),n&&("function"==typeof n?n(r):Sw(n)&&(n.current=r))}),[t])}(p,u.visualElement,s),p,l.isStatic,u.visualElement)))}))}function Fw(e){function t(t,n){return void 0===n&&(n={}),jw(e(t,n))}if("undefined"==typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var zw=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","svg","switch","symbol","text","tspan","use","view"];function Bw(e){return"string"==typeof e&&!e.includes("-")&&!!(zw.indexOf(e)>-1||/[A-Z]/.test(e))}var Uw={},Vw=["","X","Y","Z"],Hw=["transformPerspective","x","y","z"];function Yw(e,t){return Hw.indexOf(e)-Hw.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Vw.forEach((function(t){return Hw.push(e+t)}))}));var Ww=new Set(Hw);function Gw(e){return Ww.has(e)}var qw=new Set(["originX","originY","originZ"]);function Zw(e){return qw.has(e)}function Qw(e,t){var n=t.layout,r=t.layoutId;return Gw(e)||Zw(e)||(n||void 0!==r)&&(!!Uw[e]||"opacity"===e)}var Kw=function(e){return Boolean(null!==e&&"object"==typeof e&&e.getVelocity)},Jw={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Xw(e){return e.startsWith("--")}var eb=function(e,t){return t&&"number"==typeof e?t.transform(e):e};const tb=(e,t)=>n=>Math.max(Math.min(n,t),e),nb=e=>e%1?Number(e.toFixed(5)):e,rb=/(-)?([\d]*\.?[\d])+/g,ob=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,ab=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function ib(e){return"string"==typeof e}const sb=e=>({test:t=>ib(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),cb=sb("deg"),lb=sb("%"),db=sb("px"),ub=sb("vh"),mb=sb("vw"),pb=Object.assign(Object.assign({},lb),{parse:e=>lb.parse(e)/100,transform:e=>lb.transform(100*e)}),yb={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},hb=Object.assign(Object.assign({},yb),{transform:tb(0,1)}),fb=Object.assign(Object.assign({},yb),{default:1});var _b=rw(rw({},yb),{transform:Math.round}),gb={borderWidth:db,borderTopWidth:db,borderRightWidth:db,borderBottomWidth:db,borderLeftWidth:db,borderRadius:db,radius:db,borderTopLeftRadius:db,borderTopRightRadius:db,borderBottomRightRadius:db,borderBottomLeftRadius:db,width:db,maxWidth:db,height:db,maxHeight:db,size:db,top:db,right:db,bottom:db,left:db,padding:db,paddingTop:db,paddingRight:db,paddingBottom:db,paddingLeft:db,margin:db,marginTop:db,marginRight:db,marginBottom:db,marginLeft:db,rotate:cb,rotateX:cb,rotateY:cb,rotateZ:cb,scale:fb,scaleX:fb,scaleY:fb,scaleZ:fb,skew:cb,skewX:cb,skewY:cb,distance:db,translateX:db,translateY:db,translateZ:db,x:db,y:db,z:db,perspective:db,transformPerspective:db,opacity:hb,originX:pb,originY:pb,originZ:db,zIndex:_b,fillOpacity:hb,strokeOpacity:hb,numOctaves:_b};function vb(e,t,n,r){var o,a=e.style,i=e.vars,s=e.transform,c=e.transformKeys,l=e.transformOrigin;c.length=0;var d=!1,u=!1,m=!0;for(var p in t){var y=t[p];if(Xw(p))i[p]=y;else{var h=gb[p],f=eb(y,h);if(Gw(p)){if(d=!0,s[p]=f,c.push(p),!m)continue;y!==(null!==(o=h.default)&&void 0!==o?o:0)&&(m=!1)}else Zw(p)?(l[p]=f,u=!0):a[p]=f}}d?a.transform=function(e,t,n,r){var o=e.transform,a=e.transformKeys,i=t.enableHardwareAcceleration,s=void 0===i||i,c=t.allowTransformNone,l=void 0===c||c,d="";a.sort(Yw);for(var u=!1,m=a.length,p=0;p<m;p++){var y=a[p];d+="".concat(Jw[y]||y,"(").concat(o[y],") "),"z"===y&&(u=!0)}return!u&&s?d+="translateZ(0)":d=d.trim(),r?d=r(o,n?"":d):l&&n&&(d="none"),d}(e,n,m,r):r?a.transform=r({},""):!t.transform&&a.transform&&(a.transform="none"),u&&(a.transformOrigin=function(e){var t=e.originX,n=void 0===t?"50%":t,r=e.originY,o=void 0===r?"50%":r,a=e.originZ,i=void 0===a?0:a;return"".concat(n," ").concat(o," ").concat(i)}(l))}var wb=function(){return{style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}}};function bb(e,t,n){for(var r in t)Kw(t[r])||Qw(r,n)||(e[r]=t[r])}function Eb(e,t,n){var r={},o=function(e,t,n){var r={};return bb(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,V.useMemo)((function(){var e=wb();vb(e,t,{enableHardwareAcceleration:!n},r);var o=e.vars,a=e.style;return rw(rw({},o),a)}),[t])}(e,t,n)),e.transformValues&&(r=e.transformValues(r)),r}(e,t,n);return Boolean(e.drag)&&!1!==e.dragListener&&(r.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),r.style=o,r}var $b=new Set(["initial","animate","exit","style","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","whileDrag","onPan","onPanStart","onPanEnd","onPanSessionStart","onTap","onTapStart","onTapCancel","onHoverStart","onHoverEnd","whileFocus","whileTap","whileHover","whileInView","onViewportEnter","onViewportLeave","viewport","layoutScroll"]);function Sb(e){return $b.has(e)}var Cb,kb=function(e){return!Sb(e)};try{(Cb=require("@emotion/is-prop-valid").default)&&(kb=function(e){return e.startsWith("on")?!Sb(e):Cb(e)})}catch(sN){}function Ib(e,t,n){return"string"==typeof e?e:db.transform(t+n*e)}var Nb={offset:"stroke-dashoffset",array:"stroke-dasharray"},xb={offset:"strokeDashoffset",array:"strokeDasharray"};function Tb(e,t,n,r){var o=t.attrX,a=t.attrY,i=t.originX,s=t.originY,c=t.pathLength,l=t.pathSpacing,d=void 0===l?1:l,u=t.pathOffset,m=void 0===u?0:u;vb(e,ow(t,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]),n,r),e.attrs=e.style,e.style={};var p=e.attrs,y=e.style,h=e.dimensions;p.transform&&(h&&(y.transform=p.transform),delete p.transform),h&&(void 0!==i||void 0!==s||y.transform)&&(y.transformOrigin=function(e,t,n){var r=Ib(t,e.x,e.width),o=Ib(n,e.y,e.height);return"".concat(r," ").concat(o)}(h,void 0!==i?i:.5,void 0!==s?s:.5)),void 0!==o&&(p.x=o),void 0!==a&&(p.y=a),void 0!==c&&function(e,t,n,r,o){void 0===n&&(n=1),void 0===r&&(r=0),void 0===o&&(o=!0),e.pathLength=1;var a=o?Nb:xb;e[a.offset]=db.transform(-r);var i=db.transform(t),s=db.transform(n);e[a.array]="".concat(i," ").concat(s)}(p,c,d,m,!1)}var Ob=function(){return rw(rw({},wb()),{attrs:{}})};function Lb(e,t){var n=(0,V.useMemo)((function(){var n=Ob();return Tb(n,t,{enableHardwareAcceleration:!1},e.transformTemplate),rw(rw({},n.attrs),{style:rw({},n.style)})}),[t]);if(e.style){var r={};bb(r,e.style,e),n.style=rw(rw({},r),n.style)}return n}function Ab(e){return void 0===e&&(e=!1),function(t,n,r,o,a,i){var s=a.latestValues,c=(Bw(t)?Lb:Eb)(n,s,i),l=function(e,t,n){var r={};for(var o in e)(kb(o)||!0===n&&Sb(o)||!t&&!Sb(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}(n,"string"==typeof t,e),d=rw(rw(rw({},l),c),{ref:o});return r&&(d["data-projection-id"]=r),(0,V.createElement)(t,d)}}var Mb=/([a-z])([A-Z])/g,Db=function(e){return e.replace(Mb,"$1-$2").toLowerCase()};function Rb(e,t,n,r){var o=t.style,a=t.vars;for(var i in Object.assign(e.style,o,r&&r.getProjectionStyles(n)),a)e.style.setProperty(i,a[i])}var Pb=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function jb(e,t,n,r){for(var o in Rb(e,t,void 0,r),t.attrs)e.setAttribute(Pb.has(o)?o:Db(o),t.attrs[o])}function Fb(e){var t=e.style,n={};for(var r in t)(Kw(t[r])||Qw(r,e))&&(n[r]=t[r]);return n}function zb(e){var t=Fb(e);for(var n in e)Kw(e[n])&&(t["x"===n||"y"===n?"attr"+n.toUpperCase():n]=e[n]);return t}function Bb(e){return"object"==typeof e&&"function"==typeof e.start}var Ub=function(e){return Array.isArray(e)},Vb=function(e){return Boolean(e&&"object"==typeof e&&e.mix&&e.toValue)},Hb=function(e){return Ub(e)?e[e.length-1]||0:e};function Yb(e){var t=Kw(e)?e.get():e;return Vb(t)?t.toValue():t}function Wb(e,t,n,r){var o=e.scrapeMotionValuesFromProps,a=e.createRenderState,i=e.onMount,s={latestValues:qb(t,n,r,o),renderState:a()};return i&&(s.mount=function(e){return i(t,e,s)}),s}var Gb=function(e){return function(t,n){var r=(0,V.useContext)(_w),o=(0,V.useContext)(gw);return n?Wb(e,t,r,o):Lw((function(){return Wb(e,t,r,o)}))}};function qb(e,t,n,r){var o={},a=!1===(null==n?void 0:n.initial),i=r(e);for(var s in i)o[s]=Yb(i[s]);var c=e.initial,l=e.animate,d=xw(e),u=Tw(e);t&&u&&!d&&!1!==e.inherit&&(null!=c||(c=t.initial),null!=l||(l=t.animate));var m=a||!1===c,p=m?l:c;return p&&"boolean"!=typeof p&&!Bb(p)&&(Array.isArray(p)?p:[p]).forEach((function(t){var n=Iw(e,t);if(n){var r=n.transitionEnd;n.transition;var a=ow(n,["transitionEnd","transition"]);for(var i in a){var s=a[i];Array.isArray(s)&&(s=s[m?s.length-1:0]),null!==s&&(o[i]=s)}for(var i in r)o[i]=r[i]}})),o}var Zb,Qb={useVisualState:Gb({scrapeMotionValuesFromProps:zb,createRenderState:Ob,onMount:function(e,t,n){var r=n.renderState,o=n.latestValues;try{r.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){r.dimensions={x:0,y:0,width:0,height:0}}Tb(r,o,{enableHardwareAcceleration:!1},e.transformTemplate),jb(t,r)}})},Kb={useVisualState:Gb({scrapeMotionValuesFromProps:Fb,createRenderState:wb})};function Jb(e,t,n,r){return void 0===r&&(r={passive:!0}),e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}function Xb(e,t,n,r){(0,V.useEffect)((function(){var o=e.current;if(n&&o)return Jb(o,t,n,r)}),[e,t,n,r])}function eE(e){return"undefined"!=typeof PointerEvent&&e instanceof PointerEvent?!("mouse"!==e.pointerType):e instanceof MouseEvent}function tE(e){return!!e.touches}!function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"}(Zb||(Zb={}));var nE={pageX:0,pageY:0};function rE(e,t){void 0===t&&(t="page");var n=e.touches[0]||e.changedTouches[0]||nE;return{x:n[t+"X"],y:n[t+"Y"]}}function oE(e,t){return void 0===t&&(t="page"),{x:e[t+"X"],y:e[t+"Y"]}}function aE(e,t){return void 0===t&&(t="page"),{point:tE(e)?rE(e,t):oE(e,t)}}var iE=function(e,t){void 0===t&&(t=!1);var n,r=function(t){return e(t,aE(t))};return t?(n=r,function(e){var t=e instanceof MouseEvent;(!t||t&&0===e.button)&&n(e)}):r},sE=function(){return vw&&null===window.onpointerdown},cE=function(){return vw&&null===window.ontouchstart},lE=function(){return vw&&null===window.onmousedown},dE={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},uE={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function mE(e){return sE()?e:cE()?uE[e]:lE()?dE[e]:e}function pE(e,t,n,r){return Jb(e,mE(t),iE(n,"pointerdown"===t),r)}function yE(e,t,n,r){return Xb(e,mE(t),n&&iE(n,"pointerdown"===t),r)}function hE(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var fE=hE("dragHorizontal"),_E=hE("dragVertical");function gE(e){var t=!1;if("y"===e)t=_E();else if("x"===e)t=fE();else{var n=fE(),r=_E();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function vE(){var e=gE(!0);return!e||(e(),!1)}function wE(e,t,n){return function(r,o){var a;eE(r)&&!vE()&&(null===(a=e.animationState)||void 0===a||a.setActive(Zb.Hover,t),null==n||n(r,o))}}var bE=function(e,t){return!!t&&(e===t||bE(e,t.parentElement))};function EE(e){return(0,V.useEffect)((function(){return function(){return e()}}),[])}const $E=(e,t)=>n=>t(e(n)),SE=(...e)=>e.reduce($E);var CE=new Set,kE=new WeakMap,IE=new WeakMap,NE=function(e){var t;null===(t=kE.get(e.target))||void 0===t||t(e)},xE=function(e){e.forEach(NE)};var TE={some:0,all:1};function OE(e,t,n,r){var o=r.root,a=r.margin,i=r.amount,s=void 0===i?"some":i,c=r.once;(0,V.useEffect)((function(){if(e){var r={root:null==o?void 0:o.current,rootMargin:a,threshold:"number"==typeof s?s:TE[s]};return function(e,t,n){var r=function(e){var t=e.root,n=ow(e,["root"]),r=t||document;IE.has(r)||IE.set(r,{});var o=IE.get(r),a=JSON.stringify(n);return o[a]||(o[a]=new IntersectionObserver(xE,rw({root:t},n))),o[a]}(t);return kE.set(e,n),r.observe(e),function(){kE.delete(e),r.unobserve(e)}}(n.getInstance(),r,(function(e){var r,o=e.isIntersecting;if(t.isInView!==o&&(t.isInView=o,!c||o||!t.hasEnteredView)){o&&(t.hasEnteredView=!0),null===(r=n.animationState)||void 0===r||r.setActive(Zb.InView,o);var a=n.getProps(),i=o?a.onViewportEnter:a.onViewportLeave;null==i||i(e)}}))}}),[e,o,a,s])}function LE(e,t,n,r){var o=r.fallback,a=void 0===o||o;(0,V.useEffect)((function(){var r;e&&a&&("production"!==cw&&(r="IntersectionObserver not available on this device. whileInView animations will trigger on mount.",CE.has(r)||(console.warn(r),CE.add(r))),requestAnimationFrame((function(){var e;t.hasEnteredView=!0;var r=n.getProps().onViewportEnter;null==r||r(null),null===(e=n.animationState)||void 0===e||e.setActive(Zb.InView,!0)})))}),[e])}var AE=function(e){return function(t){return e(t),null}},ME={inView:AE((function(e){var t=e.visualElement,n=e.whileInView,r=e.onViewportEnter,o=e.onViewportLeave,a=e.viewport,i=void 0===a?{}:a,s=(0,V.useRef)({hasEnteredView:!1,isInView:!1}),c=Boolean(n||r||o);i.once&&s.current.hasEnteredView&&(c=!1),("undefined"==typeof IntersectionObserver?LE:OE)(c,s.current,t,i)})),tap:AE((function(e){var t=e.onTap,n=e.onTapStart,r=e.onTapCancel,o=e.whileTap,a=e.visualElement,i=t||n||r||o,s=(0,V.useRef)(!1),c=(0,V.useRef)(null),l={passive:!(n||t||r||y)};function d(){var e;null===(e=c.current)||void 0===e||e.call(c),c.current=null}function u(){var e;return d(),s.current=!1,null===(e=a.animationState)||void 0===e||e.setActive(Zb.Tap,!1),!vE()}function m(e,n){u()&&(bE(a.getInstance(),e.target)?null==t||t(e,n):null==r||r(e,n))}function p(e,t){u()&&(null==r||r(e,t))}function y(e,t){var r;d(),s.current||(s.current=!0,c.current=SE(pE(window,"pointerup",m,l),pE(window,"pointercancel",p,l)),null===(r=a.animationState)||void 0===r||r.setActive(Zb.Tap,!0),null==n||n(e,t))}yE(a,"pointerdown",i?y:void 0,l),EE(d)})),focus:AE((function(e){var t=e.whileFocus,n=e.visualElement;Xb(n,"focus",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Zb.Focus,!0)}:void 0),Xb(n,"blur",t?function(){var e;null===(e=n.animationState)||void 0===e||e.setActive(Zb.Focus,!1)}:void 0)})),hover:AE((function(e){var t=e.onHoverStart,n=e.onHoverEnd,r=e.whileHover,o=e.visualElement;yE(o,"pointerenter",t||r?wE(o,!0,t):void 0,{passive:!t}),yE(o,"pointerleave",n||r?wE(o,!1,n):void 0,{passive:!n})}))},DE=0,RE=function(){return DE++},PE=function(){return Lw(RE)};function jE(){var e=(0,V.useContext)(gw);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,o=PE();return(0,V.useEffect)((function(){return r(o)}),[]),!t&&n?[!1,function(){return null==n?void 0:n(o)}]:[!0]}function FE(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const zE=(e,t,n)=>Math.min(Math.max(n,e),t),BE=.001,UE=.01,VE=10,HE=.05,YE=1;const WE=12;function GE(e,t){return e*Math.sqrt(1-t*t)}const qE=["duration","bounce"],ZE=["stiffness","damping","mass"];function QE(e,t){return t.some((t=>void 0!==e[t]))}function KE(e){var{from:t=0,to:n=1,restSpeed:r=2,restDelta:o}=e,a=ow(e,["from","to","restSpeed","restDelta"]);const i={done:!1,value:t};let{stiffness:s,damping:c,mass:l,velocity:d,duration:u,isResolvedFromDuration:m}=function(e){let t=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!QE(e,ZE)&&QE(e,qE)){const n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let o,a;uw(e<=1e3*VE,"Spring duration must be 10 seconds or less");let i=1-t;i=zE(HE,YE,i),e=zE(UE,VE,e/1e3),i<1?(o=t=>{const r=t*i,o=r*e,a=r-n,s=GE(t,i),c=Math.exp(-o);return BE-a/s*c},a=t=>{const r=t*i*e,a=r*n+n,s=Math.pow(i,2)*Math.pow(t,2)*e,c=Math.exp(-r),l=GE(Math.pow(t,2),i);return(-o(t)+BE>0?-1:1)*((a-s)*c)/l}):(o=t=>Math.exp(-t*e)*((t-n)*e+1)-BE,a=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let r=n;for(let n=1;n<WE;n++)r-=e(r)/t(r);return r}(o,a,5/e);if(e*=1e3,isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*r;return{stiffness:t,damping:2*i*Math.sqrt(r*t),duration:e}}}(e);t=Object.assign(Object.assign(Object.assign({},t),n),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}(a),p=JE,y=JE;function h(){const e=d?-d/1e3:0,r=n-t,a=c/(2*Math.sqrt(s*l)),i=Math.sqrt(s/l)/1e3;if(void 0===o&&(o=Math.min(Math.abs(n-t)/100,.4)),a<1){const t=GE(i,a);p=o=>{const s=Math.exp(-a*i*o);return n-s*((e+a*i*r)/t*Math.sin(t*o)+r*Math.cos(t*o))},y=n=>{const o=Math.exp(-a*i*n);return a*i*o*(Math.sin(t*n)*(e+a*i*r)/t+r*Math.cos(t*n))-o*(Math.cos(t*n)*(e+a*i*r)-t*r*Math.sin(t*n))}}else if(1===a)p=t=>n-Math.exp(-i*t)*(r+(e+i*r)*t);else{const t=i*Math.sqrt(a*a-1);p=o=>{const s=Math.exp(-a*i*o),c=Math.min(t*o,300);return n-s*((e+a*i*r)*Math.sinh(c)+t*r*Math.cosh(c))/t}}}return h(),{next:e=>{const t=p(e);if(m)i.done=e>=u;else{const a=1e3*y(e),s=Math.abs(a)<=r,c=Math.abs(n-t)<=o;i.done=s&&c}return i.value=i.done?n:t,i},flipTarget:()=>{d=-d,[t,n]=[n,t],h()}}}KE.needsInterpolation=(e,t)=>"string"==typeof e||"string"==typeof t;const JE=e=>0,XE=(e,t,n)=>{const r=t-e;return 0===r?1:(n-e)/r},e$=(e,t,n)=>-n*e+n*t+e,t$=(e,t)=>n=>Boolean(ib(n)&&ab.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),n$=(e,t,n)=>r=>{if(!ib(r))return r;const[o,a,i,s]=r.match(rb);return{[e]:parseFloat(o),[t]:parseFloat(a),[n]:parseFloat(i),alpha:void 0!==s?parseFloat(s):1}},r$=tb(0,255),o$=Object.assign(Object.assign({},yb),{transform:e=>Math.round(r$(e))}),a$={test:t$("rgb","red"),parse:n$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+o$.transform(e)+", "+o$.transform(t)+", "+o$.transform(n)+", "+nb(hb.transform(r))+")"},i$={test:t$("#"),parse:function(e){let t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:a$.transform},s$={test:t$("hsl","hue"),parse:n$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+lb.transform(nb(t))+", "+lb.transform(nb(n))+", "+nb(hb.transform(r))+")"};function c$(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function l$({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let o=0,a=0,i=0;if(t/=100){const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;o=c$(s,r,e+1/3),a=c$(s,r,e),i=c$(s,r,e-1/3)}else o=a=i=n;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*i),alpha:r}}const d$=(e,t,n)=>{const r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},u$=[i$,a$,s$],m$=e=>u$.find((t=>t.test(e))),p$=e=>`'${e}' is not an animatable color. Use the equivalent color code instead.`,y$=(e,t)=>{let n=m$(e),r=m$(t);mw(!!n,p$(e)),mw(!!r,p$(t));let o=n.parse(e),a=r.parse(t);n===s$&&(o=l$(o),n=a$),r===s$&&(a=l$(a),r=a$);const i=Object.assign({},o);return e=>{for(const t in i)"alpha"!==t&&(i[t]=d$(o[t],a[t],e));return i.alpha=e$(o.alpha,a.alpha,e),n.transform(i)}},h$={test:e=>a$.test(e)||i$.test(e)||s$.test(e),parse:e=>a$.test(e)?a$.parse(e):s$.test(e)?s$.parse(e):i$.parse(e),transform:e=>ib(e)?e:e.hasOwnProperty("red")?a$.transform(e):s$.transform(e)},f$="${c}",_$="${n}";function g$(e){"number"==typeof e&&(e=`${e}`);const t=[];let n=0;const r=e.match(ob);r&&(n=r.length,e=e.replace(ob,f$),t.push(...r.map(h$.parse)));const o=e.match(rb);return o&&(e=e.replace(rb,_$),t.push(...o.map(yb.parse))),{values:t,numColors:n,tokenised:e}}function v$(e){return g$(e).values}function w$(e){const{values:t,numColors:n,tokenised:r}=g$(e),o=t.length;return e=>{let t=r;for(let r=0;r<o;r++)t=t.replace(r<n?f$:_$,r<n?h$.transform(e[r]):nb(e[r]));return t}}const b$=e=>"number"==typeof e?0:e,E$={test:function(e){var t,n,r,o;return isNaN(e)&&ib(e)&&(null!==(n=null===(t=e.match(rb))||void 0===t?void 0:t.length)&&void 0!==n?n:0)+(null!==(o=null===(r=e.match(ob))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:v$,createTransformer:w$,getAnimatableNone:function(e){const t=v$(e);return w$(e)(t.map(b$))}},$$=e=>"number"==typeof e;function S$(e,t){return $$(e)?n=>e$(e,t,n):h$.test(e)?y$(e,t):N$(e,t)}const C$=(e,t)=>{const n=[...e],r=n.length,o=e.map(((e,n)=>S$(e,t[n])));return e=>{for(let t=0;t<r;t++)n[t]=o[t](e);return n}},k$=(e,t)=>{const n=Object.assign(Object.assign({},e),t),r={};for(const o in n)void 0!==e[o]&&void 0!==t[o]&&(r[o]=S$(e[o],t[o]));return e=>{for(const t in r)n[t]=r[t](e);return n}};function I$(e){const t=E$.parse(e),n=t.length;let r=0,o=0,a=0;for(let e=0;e<n;e++)r||"number"==typeof t[e]?r++:void 0!==t[e].hue?a++:o++;return{parsed:t,numNumbers:r,numRGB:o,numHSL:a}}const N$=(e,t)=>{const n=E$.createTransformer(t),r=I$(e),o=I$(t);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?SE(C$(r.parsed,o.parsed),n):(uw(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),n=>`${n>0?t:e}`)},x$=(e,t)=>n=>e$(e,t,n);function T$(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const a=e.length;mw(a===t.length,"Both input and output ranges must be the same length"),mw(!r||!Array.isArray(r)||r.length===a-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[a-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());const i=function(e,t,n){const r=[],o=n||function(e){return"number"==typeof e?x$:"string"==typeof e?h$.test(e)?y$:N$:Array.isArray(e)?C$:"object"==typeof e?k$:void 0}(e[0]),a=e.length-1;for(let n=0;n<a;n++){let a=o(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]:t;a=SE(e,a)}r.push(a)}return r}(t,r,o),s=2===a?function([e,t],[n]){return r=>n(XE(e,t,r))}(e,i):function(e,t){const n=e.length,r=n-1;return o=>{let a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){let t=1;for(;t<n&&!(e[t]>o||t===r);t++);a=t-1}const s=XE(e[a],e[a+1],o);return t[a](s)}}(e,i);return n?t=>s(zE(e[0],e[a-1],t)):s}const O$=e=>t=>1-e(1-t),L$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,A$=e=>t=>t*t*((e+1)*t-e),M$=e=>e,D$=(2,e=>Math.pow(e,2));const R$=O$(D$),P$=L$(D$),j$=e=>1-Math.sin(Math.acos(e)),F$=O$(j$),z$=L$(F$),B$=A$(1.525),U$=O$(B$),V$=L$(B$),H$=(e=>{const t=A$(1.525);return e=>(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))})(),Y$=e=>{if(1===e||0===e)return e;const t=e*e;return e<.36363636363636365?7.5625*t:e<.7272727272727273?9.075*t-9.9*e+3.4:e<.9?12.066481994459833*t-19.63545706371191*e+8.898060941828255:10.8*e*e-20.52*e+10.72},W$=O$(Y$);function G$(e,t){return e.map((()=>t||P$)).splice(0,e.length-1)}function q$({from:e=0,to:t=1,ease:n,offset:r,duration:o=300}){const a={done:!1,value:e},i=Array.isArray(t)?t:[e,t],s=function(e,t){return e.map((e=>e*t))}(r&&r.length===i.length?r:function(e){const t=e.length;return e.map(((e,n)=>0!==n?n/(t-1):0))}(i),o);function c(){return T$(s,i,{ease:Array.isArray(n)?n:G$(i,n)})}let l=c();return{next:e=>(a.value=l(e),a.done=e>=o,a),flipTarget:()=>{i.reverse(),l=c()}}}const Z$={keyframes:q$,spring:KE,decay:function({velocity:e=0,from:t=0,power:n=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const i={done:!1,value:t};let s=n*e;const c=t+s,l=void 0===a?c:a(c);return l!==c&&(s=l-t),{next:e=>{const t=-s*Math.exp(-e/r);return i.done=!(t>o||t<-o),i.value=i.done?l:l+t,i},flipTarget:()=>{}}}},Q$=1/60*1e3,K$="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),J$="undefined"!=typeof window?e=>window.requestAnimationFrame(e):e=>setTimeout((()=>e(K$())),Q$);let X$=!0,eS=!1,tS=!1;const nS={delta:0,timestamp:0},rS=["read","update","preRender","render","postRender"],oS=rS.reduce(((e,t)=>(e[t]=function(e){let t=[],n=[],r=0,o=!1,a=!1;const i=new WeakSet,s={schedule:(e,a=!1,s=!1)=>{const c=s&&o,l=c?t:n;return a&&i.add(e),-1===l.indexOf(e)&&(l.push(e),c&&o&&(r=t.length)),e},cancel:e=>{const t=n.indexOf(e);-1!==t&&n.splice(t,1),i.delete(e)},process:c=>{if(o)a=!0;else{if(o=!0,[t,n]=[n,t],n.length=0,r=t.length,r)for(let n=0;n<r;n++){const r=t[n];r(c),i.has(r)&&(s.schedule(r),e())}o=!1,a&&(a=!1,s.process(c))}}};return s}((()=>eS=!0)),e)),{}),aS=rS.reduce(((e,t)=>{const n=oS[t];return e[t]=(e,t=!1,r=!1)=>(eS||dS(),n.schedule(e,t,r)),e}),{}),iS=rS.reduce(((e,t)=>(e[t]=oS[t].cancel,e)),{}),sS=rS.reduce(((e,t)=>(e[t]=()=>oS[t].process(nS),e)),{}),cS=e=>oS[e].process(nS),lS=e=>{eS=!1,nS.delta=X$?Q$:Math.max(Math.min(e-nS.timestamp,40),1),nS.timestamp=e,tS=!0,rS.forEach(cS),tS=!1,eS&&(X$=!1,J$(lS))},dS=()=>{eS=!0,X$=!0,tS||J$(lS)},uS=()=>nS,mS=aS;function pS(e,t,n=0){return e-t-n}const yS=e=>{const t=({delta:t})=>e(t);return{start:()=>mS.update(t,!0),stop:()=>iS.update(t)}};function hS(e){var t,n,{from:r,autoplay:o=!0,driver:a=yS,elapsed:i=0,repeat:s=0,repeatType:c="loop",repeatDelay:l=0,onPlay:d,onStop:u,onComplete:m,onRepeat:p,onUpdate:y}=e,h=ow(e,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let f,_,g,{to:v}=h,w=0,b=h.duration,E=!1,$=!0;const S=function(e){if(Array.isArray(e.to))return q$;if(Z$[e.type])return Z$[e.type];const t=new Set(Object.keys(e));return t.has("ease")||t.has("duration")&&!t.has("dampingRatio")?q$:t.has("dampingRatio")||t.has("stiffness")||t.has("mass")||t.has("damping")||t.has("restSpeed")||t.has("restDelta")?KE:q$}(h);(null===(n=(t=S).needsInterpolation)||void 0===n?void 0:n.call(t,r,v))&&(g=T$([0,100],[r,v],{clamp:!1}),r=0,v=100);const C=S(Object.assign(Object.assign({},h),{from:r,to:v}));return o&&(null==d||d(),f=a((function(e){if($||(e=-e),i+=e,!E){const e=C.next(Math.max(0,i));_=e.value,g&&(_=g(_)),E=$?e.done:i<=0}null==y||y(_),E&&(0===w&&(null!=b||(b=i)),w<s?function(e,t,n,r){return r?e>=t+n:e<=-n}(i,b,l,$)&&(w++,"reverse"===c?($=w%2==0,i=function(e,t,n=0,r=!0){return r?pS(t+-e,t,n):t-(e-t)+n}(i,b,l,$)):(i=pS(i,b,l),"mirror"===c&&C.flipTarget()),E=!1,p&&p()):(f.stop(),m&&m()))})),f.start()),{stop:()=>{null==u||u(),f.stop()}}}function fS(e,t){return t?e*(1e3/t):0}var _S=function(e){return 1e3*e};const gS=(e,t)=>1-3*t+3*e,vS=(e,t)=>3*t-6*e,wS=e=>3*e,bS=(e,t,n)=>((gS(t,n)*e+vS(t,n))*e+wS(t))*e,ES=(e,t,n)=>3*gS(t,n)*e*e+2*vS(t,n)*e+wS(t),$S=.1;function SS(e,t,n,r){if(e===t&&n===r)return M$;const o=new Float32Array(11);for(let t=0;t<11;++t)o[t]=bS(t*$S,e,n);return a=>0===a||1===a?a:bS(function(t){let r=0,a=1;for(;10!==a&&o[a]<=t;++a)r+=$S;--a;const i=r+(t-o[a])/(o[a+1]-o[a])*$S,s=ES(i,e,n);return s>=.001?function(e,t,n,r){for(let o=0;o<8;++o){const o=ES(t,n,r);if(0===o)return t;t-=(bS(t,n,r)-e)/o}return t}(t,i,e,n):0===s?i:function(e,t,n,r,o){let a,i,s=0;do{i=t+(n-t)/2,a=bS(i,r,o)-e,a>0?n=i:t=i}while(Math.abs(a)>1e-7&&++s<10);return i}(t,r,r+$S,e,n)}(a),t,r)}var CS={linear:M$,easeIn:D$,easeInOut:P$,easeOut:R$,circIn:j$,circInOut:z$,circOut:F$,backIn:B$,backInOut:V$,backOut:U$,anticipate:H$,bounceIn:W$,bounceInOut:e=>e<.5?.5*(1-Y$(1-2*e)):.5*Y$(2*e-1)+.5,bounceOut:Y$},kS=function(e){if(Array.isArray(e)){mw(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=aw(e,4);return SS(t[0],t[1],t[2],t[3])}return"string"==typeof e?(mw(void 0!==CS[e],"Invalid easing type '".concat(e,"'")),CS[e]):e},IS=function(e){return Array.isArray(e)&&"number"!=typeof e[0]},NS=function(e,t){return!("zIndex"===e||"number"!=typeof t&&!Array.isArray(t)&&("string"!=typeof t||!E$.test(t)||t.startsWith("url(")))},xS=function(){return{type:"spring",stiffness:500,damping:25,restSpeed:10}},TS=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}},OS=function(){return{type:"keyframes",ease:"linear",duration:.3}},LS=function(e){return{type:"keyframes",duration:.8,values:e}},AS={x:xS,y:xS,z:xS,rotate:xS,rotateX:xS,rotateY:xS,rotateZ:xS,scaleX:TS,scaleY:TS,scale:TS,opacity:OS,backgroundColor:OS,color:OS,default:TS},MS=function(e,t){var n;return n=Ub(t)?LS:AS[e]||AS.default,rw({to:t},n(t))};const DS=new Set(["brightness","contrast","saturate","opacity"]);function RS(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[r]=n.match(rb)||[];if(!r)return e;const o=n.replace(r,"");let a=DS.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+o+")"}const PS=/([a-z-]*)\(.*?\)/g,jS=Object.assign(Object.assign({},E$),{getAnimatableNone:e=>{const t=e.match(PS);return t?t.map(RS).join(" "):e}});var FS=rw(rw({},gb),{color:h$,backgroundColor:h$,outlineColor:h$,fill:h$,stroke:h$,borderColor:h$,borderTopColor:h$,borderRightColor:h$,borderBottomColor:h$,borderLeftColor:h$,filter:jS,WebkitFilter:jS}),zS=function(e){return FS[e]};function BS(e,t){var n,r=zS(e);return r!==jS&&(r=E$),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var US={current:!1},VS=!1;function HS(e,t,n,r,o){var a,i=GS(r,e),s=null!==(a=i.from)&&void 0!==a?a:t.get(),c=NS(e,n);"none"===s&&c&&"string"==typeof n?s=BS(e,n):YS(s)&&"string"==typeof n?s=WS(n):!Array.isArray(n)&&YS(n)&&"string"==typeof s&&(n=WS(s));var l=NS(e,s);return uw(l===c,"You are trying to animate ".concat(e,' from "').concat(s,'" to "').concat(n,'". ').concat(s," is not an animatable value - to enable this animation set ").concat(s," to a value animatable to ").concat(n," via the `style` property.")),l&&c&&!1!==i.type?function(){var r={from:s,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function({from:e=0,velocity:t=0,min:n,max:r,power:o=.8,timeConstant:a=750,bounceStiffness:i=500,bounceDamping:s=10,restDelta:c=1,modifyTarget:l,driver:d,onUpdate:u,onComplete:m,onStop:p}){let y;function h(e){return void 0!==n&&e<n||void 0!==r&&e>r}function f(e){return void 0===n?r:void 0===r||Math.abs(n-e)<Math.abs(r-e)?n:r}function _(e){null==y||y.stop(),y=hS(Object.assign(Object.assign({},e),{driver:d,onUpdate:t=>{var n;null==u||u(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:m,onStop:p}))}function g(e){_(Object.assign({type:"spring",stiffness:i,damping:s,restDelta:c},e))}if(h(e))g({from:e,velocity:t,to:f(e)});else{let r=o*t+e;void 0!==l&&(r=l(r));const i=f(r),s=i===n?-1:1;let d,u;const m=e=>{d=u,u=e,t=fS(e-d,uS().delta),(1===s&&e>i||-1===s&&e<i)&&g({from:e,to:i,velocity:t})};_({type:"decay",from:e,velocity:t,timeConstant:a,power:o,restDelta:c,modifyTarget:l,onUpdate:h(r)?m:void 0})}return{stop:()=>null==y?void 0:y.stop()}}(rw(rw({},r),i)):hS(rw(rw({},function(e,t,n){var r;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=iw([],aw(e.to),!1),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=ow(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=rw(rw({},e),MS(n,t.to))),rw(rw({},t),function(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=ow(e,["ease","times","yoyo","flip","loop"]),s=rw({},i);return n&&(s.offset=n),i.duration&&(s.duration=_S(i.duration)),i.repeatDelay&&(s.repeatDelay=_S(i.repeatDelay)),t&&(s.ease=IS(t)?t.map(kS):kS(t)),"tween"===i.type&&(s.type="keyframes"),(r||a||o)&&(uw(!VS,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),VS=!0,r?s.repeatType="reverse":a?s.repeatType="loop":o&&(s.repeatType="mirror"),s.repeat=a||r||o||i.repeat),"spring"!==i.type&&(s.type="keyframes"),s}(e))}(i,r,e)),{onUpdate:function(e){var t;r.onUpdate(e),null===(t=i.onUpdate)||void 0===t||t.call(i,e)},onComplete:function(){var e;r.onComplete(),null===(e=i.onComplete)||void 0===e||e.call(i)}}))}:function(){var e,r,a=Hb(n);return t.set(a),o(),null===(e=null==i?void 0:i.onUpdate)||void 0===e||e.call(i,a),null===(r=null==i?void 0:i.onComplete)||void 0===r||r.call(i),{stop:function(){}}}}function YS(e){return 0===e||"string"==typeof e&&0===parseFloat(e)&&-1===e.indexOf(" ")}function WS(e){return"number"==typeof e?0:BS("",e)}function GS(e,t){return e[t]||e.default||e}function qS(e,t,n,r){return void 0===r&&(r={}),US.current&&(r={type:!1}),t.start((function(o){var a,i,s=HS(e,t,n,r,o),c=function(e,t){var n,r;return null!==(r=null!==(n=(GS(e,t)||{}).delay)&&void 0!==n?n:e.delay)&&void 0!==r?r:0}(r,e),l=function(){return i=s()};return c?a=window.setTimeout(l,_S(c)):l(),function(){clearTimeout(a),null==i||i.stop()}}))}var ZS=function(e){return/^\-?\d*\.?\d+$/.test(e)},QS=function(e){return/^0[^.\s]+$/.test(e)};function KS(e,t){-1===e.indexOf(t)&&e.push(t)}function JS(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var XS=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return KS(this.subscriptions,e),function(){return JS(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;o<r;o++){var a=this.subscriptions[o];a&&a(e,t,n)}},e.prototype.getSize=function(){return this.subscriptions.length},e.prototype.clear=function(){this.subscriptions.length=0},e}(),eC=function(){function e(e){var t,n=this;this.version="6.5.1",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new XS,this.velocityUpdateSubscribers=new XS,this.renderSubscribers=new XS,this.canTrackVelocity=!1,this.updateAndNotify=function(e,t){void 0===t&&(t=!0),n.prev=n.current,n.current=e;var r=uS(),o=r.delta,a=r.timestamp;n.lastUpdated!==a&&(n.timeDelta=o,n.lastUpdated=a,mS.postRender(n.scheduleVelocityCheck)),n.prev!==n.current&&n.updateSubscribers.notify(n.current),n.velocityUpdateSubscribers.getSize()&&n.velocityUpdateSubscribers.notify(n.getVelocity()),t&&n.renderSubscribers.notify(n.current)},this.scheduleVelocityCheck=function(){return mS.postRender(n.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==n.lastUpdated&&(n.prev=n.current,n.velocityUpdateSubscribers.notify(n.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t)))}return e.prototype.onChange=function(e){return this.updateSubscribers.add(e)},e.prototype.clearListeners=function(){this.updateSubscribers.clear()},e.prototype.onRenderRequest=function(e){return e(this.get()),this.renderSubscribers.add(e)},e.prototype.attach=function(e){this.passiveEffect=e},e.prototype.set=function(e,t){void 0===t&&(t=!0),t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)},e.prototype.get=function(){return this.current},e.prototype.getPrevious=function(){return this.prev},e.prototype.getVelocity=function(){return this.canTrackVelocity?fS(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0},e.prototype.start=function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.stopAnimation=e(n)})).then((function(){return t.clearAnimation()}))},e.prototype.stop=function(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()},e.prototype.isAnimating=function(){return!!this.stopAnimation},e.prototype.clearAnimation=function(){this.stopAnimation=null},e.prototype.destroy=function(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()},e}();function tC(e){return new eC(e)}var nC=function(e){return function(t){return t.test(e)}},rC=[yb,db,lb,cb,mb,ub,{test:function(e){return"auto"===e},parse:function(e){return e}}],oC=function(e){return rC.find(nC(e))},aC=iw(iw([],aw(rC),!1),[h$,E$],!1),iC=function(e){return aC.find(nC(e))};function sC(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,tC(n))}function cC(e,t){if(t)return(t[e]||t.default||t).from}function lC(e,t,n){var r;void 0===n&&(n={});var o=Nw(e,t,n.custom),a=(o||{}).transition,i=void 0===a?e.getDefaultTransition()||{}:a;n.transitionOverride&&(i=n.transitionOverride);var s=o?function(){return dC(e,o,n)}:function(){return Promise.resolve()},c=(null===(r=e.variantChildren)||void 0===r?void 0:r.size)?function(r){void 0===r&&(r=0);var o=i.delayChildren,a=void 0===o?0:o,s=i.staggerChildren,c=i.staggerDirection;return function(e,t,n,r,o,a){void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=1);var i=[],s=(e.variantChildren.size-1)*r,c=1===o?function(e){return void 0===e&&(e=0),e*r}:function(e){return void 0===e&&(e=0),s-e*r};return Array.from(e.variantChildren).sort(uC).forEach((function(e,r){i.push(lC(e,t,rw(rw({},a),{delay:n+c(r)})).then((function(){return e.notifyAnimationComplete(t)})))})),Promise.all(i)}(e,t,a+r,s,c,n)}:function(){return Promise.resolve()},l=i.when;if(l){var d=aw("beforeChildren"===l?[s,c]:[c,s],2),u=d[0],m=d[1];return u().then(m)}return Promise.all([s(),c(n.delay)])}function dC(e,t,n){var r,o=void 0===n?{}:n,a=o.delay,i=void 0===a?0:a,s=o.transitionOverride,c=o.type,l=e.makeTargetAnimatable(t),d=l.transition,u=void 0===d?e.getDefaultTransition():d,m=l.transitionEnd,p=ow(l,["transition","transitionEnd"]);s&&(u=s);var y=[],h=c&&(null===(r=e.animationState)||void 0===r?void 0:r.getState()[c]);for(var f in p){var _=e.getValue(f),g=p[f];if(!(!_||void 0===g||h&&mC(h,f))){var v=rw({delay:i},u);e.shouldReduceMotion&&Gw(f)&&(v=rw(rw({},v),{type:!1,delay:0}));var w=qS(f,_,g,v);y.push(w)}}return Promise.all(y).then((function(){m&&function(e,t){var n=Nw(e,t),r=n?e.makeTargetAnimatable(n,!1):{},o=r.transitionEnd,a=void 0===o?{}:o;r.transition;var i=ow(r,["transitionEnd","transition"]);for(var s in i=rw(rw({},i),a))sC(e,s,Hb(i[s]))}(e,m)}))}function uC(e,t){return e.sortNodePosition(t)}function mC(e,t){var n=e.protectedKeys,r=e.needsAnimating,o=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,o}var pC=[Zb.Animate,Zb.InView,Zb.Focus,Zb.Hover,Zb.Tap,Zb.Drag,Zb.Exit],yC=iw([],aw(pC),!1).reverse(),hC=pC.length;function fC(e){var t=function(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t,n){var r;if(void 0===n&&(n={}),e.notifyAnimationStart(t),Array.isArray(t)){var o=t.map((function(t){return lC(e,t,n)}));r=Promise.all(o)}else if("string"==typeof t)r=lC(e,t,n);else{var a="function"==typeof t?Nw(e,t,n.custom):t;r=dC(e,a,n)}return r.then((function(){return e.notifyAnimationComplete(t)}))}(e,n,r)})))}}(e),n=function(){var e;return(e={})[Zb.Animate]=_C(!0),e[Zb.InView]=_C(),e[Zb.Hover]=_C(),e[Zb.Tap]=_C(),e[Zb.Drag]=_C(),e[Zb.Focus]=_C(),e[Zb.Exit]=_C(),e}(),r={},o=!0,a=function(t,n){var r=Nw(e,n);if(r){r.transition;var o=r.transitionEnd,a=ow(r,["transition","transitionEnd"]);t=rw(rw(rw({},t),a),o)}return t};function i(i,s){for(var c,l=e.getProps(),d=e.getVariantContext(!0)||{},u=[],m=new Set,p={},y=1/0,h=function(t){var r=yC[t],h=n[r],f=null!==(c=l[r])&&void 0!==c?c:d[r],_=kw(f),g=r===s?h.isActive:null;!1===g&&(y=t);var v=f===d[r]&&f!==l[r]&&_;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys=rw({},p),!h.isActive&&null===g||!f&&!h.prevProp||Bb(f)||"boolean"==typeof f)return"continue";var w=function(e,t){return"string"==typeof t?t!==e:!!Cw(t)&&!FE(t,e)}(h.prevProp,f),b=w||r===s&&h.isActive&&!v&&_||t>y&&_,E=Array.isArray(f)?f:[f],$=E.reduce(a,{});!1===g&&($={});var S=h.prevResolvedValues,C=void 0===S?{}:S,k=rw(rw({},C),$),I=function(e){b=!0,m.delete(e),h.needsAnimating[e]=!0};for(var N in k){var x=$[N],T=C[N];p.hasOwnProperty(N)||(x!==T?Ub(x)&&Ub(T)?!FE(x,T)||w?I(N):h.protectedKeys[N]=!0:void 0!==x?I(N):m.add(N):void 0!==x&&m.has(N)?I(N):h.protectedKeys[N]=!0)}h.prevProp=f,h.prevResolvedValues=$,h.isActive&&(p=rw(rw({},p),$)),o&&e.blockInitialAnimation&&(b=!1),b&&!v&&u.push.apply(u,iw([],aw(E.map((function(e){return{animation:e,options:rw({type:r},i)}}))),!1))},f=0;f<hC;f++)h(f);if(r=rw({},p),m.size){var _={};m.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(_[t]=n)})),u.push({animation:_})}var g=Boolean(u.length);return o&&!1===l.initial&&!e.manuallyAnimateOnMount&&(g=!1),o=!1,g?t(u):Promise.resolve()}return{isAnimated:function(e){return void 0!==r[e]},animateChanges:i,setActive:function(t,r,o){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=i(o,t);for(var c in n)n[c].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function _C(e){return void 0===e&&(e=!1),{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var gC={animation:AE((function(e){var t=e.visualElement,n=e.animate;t.animationState||(t.animationState=fC(t)),Bb(n)&&(0,V.useEffect)((function(){return n.subscribe(t)}),[n])})),exit:AE((function(e){var t=e.custom,n=e.visualElement,r=aw(jE(),2),o=r[0],a=r[1],i=(0,V.useContext)(gw);(0,V.useEffect)((function(){var e,r;n.isPresent=o;var s=null===(e=n.animationState)||void 0===e?void 0:e.setActive(Zb.Exit,!o,{custom:null!==(r=null==i?void 0:i.custom)&&void 0!==r?r:t});!o&&(null==s||s.then(a))}),[o])}))};const vC=e=>e.hasOwnProperty("x")&&e.hasOwnProperty("y"),wC=e=>vC(e)&&e.hasOwnProperty("z"),bC=(e,t)=>Math.abs(e-t);function EC(e,t){if($$(e)&&$$(t))return bC(e,t);if(vC(e)&&vC(t)){const n=bC(e.x,t.x),r=bC(e.y,t.y),o=wC(e)&&wC(t)?bC(e.z,t.z):0;return Math.sqrt(Math.pow(n,2)+Math.pow(r,2)+Math.pow(o,2))}}var $C=function(){function e(e,t,n){var r=this,o=(void 0===n?{}:n).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(r.lastMoveEvent&&r.lastMoveEventInfo){var e=kC(r.lastMoveEventInfo,r.history),t=null!==r.startEvent,n=EC(e.offset,{x:0,y:0})>=3;if(t||n){var o=e.point,a=uS().timestamp;r.history.push(rw(rw({},o),{timestamp:a}));var i=r.handlers,s=i.onStart,c=i.onMove;t||(s&&s(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),c&&c(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=SC(t,r.transformPagePoint),eE(e)&&0===e.buttons?r.handlePointerUp(e,t):mS.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=kC(SC(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(tE(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=SC(aE(e),this.transformPagePoint),i=a.point,s=uS().timestamp;this.history=[rw(rw({},i),{timestamp:s})];var c=t.onSessionStart;c&&c(e,kC(a,this.history)),this.removeListeners=SE(pE(window,"pointermove",this.handlePointerMove),pE(window,"pointerup",this.handlePointerUp),pE(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),iS.update(this.updatePoint)},e}();function SC(e,t){return t?{point:t(e.point)}:e}function CC(e,t){return{x:e.x-t.x,y:e.y-t.y}}function kC(e,t){var n=e.point;return{point:n,delta:CC(n,NC(t)),offset:CC(n,IC(t)),velocity:xC(t,.1)}}function IC(e){return e[0]}function NC(e){return e[e.length-1]}function xC(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=NC(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>_S(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function TC(e){return e.max-e.min}function OC(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=.01),EC(e,t)<n}function LC(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=e$(t.min,t.max,e.origin),e.scale=TC(n)/TC(t),(OC(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=e$(n.min,n.max,e.origin)-e.originPoint,(OC(e.translate)||isNaN(e.translate))&&(e.translate=0)}function AC(e,t,n,r){LC(e.x,t.x,n.x,null==r?void 0:r.originX),LC(e.y,t.y,n.y,null==r?void 0:r.originY)}function MC(e,t,n){e.min=n.min+t.min,e.max=e.min+TC(t)}function DC(e,t,n){e.min=t.min-n.min,e.max=e.min+TC(t)}function RC(e,t,n){DC(e.x,t.x,n.x),DC(e.y,t.y,n.y)}function PC(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function jC(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&(r=(n=aw([o,r],2))[0],o=n[1]),{min:r,max:o}}var FC=.35;function zC(e,t,n){return{min:BC(e,t),max:BC(e,n)}}function BC(e,t){var n;return"number"==typeof e?e:null!==(n=e[t])&&void 0!==n?n:0}var UC=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},VC=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function HC(e){return[e("x"),e("y")]}function YC(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function WC(e){return void 0===e||1===e}function GC(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!WC(t)||!WC(n)||!WC(r)}function qC(e){return GC(e)||ZC(e.x)||ZC(e.y)||e.z||e.rotate||e.rotateX||e.rotateY}function ZC(e){return e&&"0%"!==e}function QC(e,t,n){return n+t*(e-n)}function KC(e,t,n,r,o){return void 0!==o&&(e=QC(e,o,r)),QC(e,n,r)+t}function JC(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=KC(e.min,t,n,r,o),e.max=KC(e.max,t,n,r,o)}function XC(e,t){var n=t.x,r=t.y;JC(e.x,n.translate,n.scale,n.originPoint),JC(e.y,r.translate,r.scale,r.originPoint)}function ek(e,t){e.min=e.min+t,e.max=e.max+t}function tk(e,t,n){var r=aw(n,3),o=r[0],a=r[1],i=r[2],s=void 0!==t[i]?t[i]:.5,c=e$(e.min,e.max,s);JC(e,t[o],t[a],c,t.scale)}var nk=["x","scaleX","originX"],rk=["y","scaleY","originY"];function ok(e,t){tk(e.x,t,nk),tk(e.y,t,rk)}function ak(e,t){return YC(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var ik=new WeakMap,sk=function(){function e(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=VC(),this.visualElement=e}return e.prototype.start=function(e,t){var n=this,r=(void 0===t?{}:t).snapToCursor,o=void 0!==r&&r;!1!==this.visualElement.isPresent&&(this.panSession=new $C(e,{onSessionStart:function(e){n.stopAnimation(),o&&n.snapToCursor(aE(e,"page").point)},onStart:function(e,t){var r,o=n.getProps(),a=o.drag,i=o.dragPropagation,s=o.onDragStart;(!a||i||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=gE(a),n.openGlobalLock))&&(n.isDragging=!0,n.currentDirection=null,n.resolveConstraints(),n.visualElement.projection&&(n.visualElement.projection.isAnimationBlocked=!0,n.visualElement.projection.target=void 0),HC((function(e){var t,r,o=n.getAxisMotionValue(e).get()||0;if(lb.test(o)){var a=null===(r=null===(t=n.visualElement.projection)||void 0===t?void 0:t.layout)||void 0===r?void 0:r.actual[e];a&&(o=TC(a)*(parseFloat(o)/100))}n.originPoint[e]=o})),null==s||s(e,t),null===(r=n.visualElement.animationState)||void 0===r||r.setActive(Zb.Drag,!0))},onMove:function(e,t){var r=n.getProps(),o=r.dragPropagation,a=r.dragDirectionLock,i=r.onDirectionLock,s=r.onDrag;if(o||n.openGlobalLock){var c=t.offset;if(a&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(c),void(null!==n.currentDirection&&(null==i||i(n.currentDirection)));n.updateAxis("x",t.point,c),n.updateAxis("y",t.point,c),n.visualElement.syncRender(),null==s||s(e,t)}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:this.visualElement.getTransformPagePoint()}))},e.prototype.stop=function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var o=this.getProps().onDragEnd;null==o||o(e,t)}},e.prototype.cancel=function(){var e,t;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(e=this.panSession)||void 0===e||e.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Zb.Drag,!1)},e.prototype.updateAxis=function(e,t,n){var r=this.getProps().drag;if(n&&ck(e,r,this.currentDirection)){var o=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=function(e,t,n){var r=t.min,o=t.max;return void 0!==r&&e<r?e=n?e$(r,e,n.min):Math.max(e,r):void 0!==o&&e>o&&(e=n?e$(o,e,n.max):Math.min(e,o)),e}(a,this.constraints[e],this.elastic[e])),o.set(a)}},e.prototype.resolveConstraints=function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,o=(this.visualElement.projection||{}).layout,a=this.constraints;n&&Sw(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!o)&&function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:PC(e.x,r,a),y:PC(e.y,n,o)}}(o.actual,n),this.elastic=function(e){return void 0===e&&(e=FC),!1===e?e=0:!0===e&&(e=FC),{x:zC(e,"left","right"),y:zC(e,"top","bottom")}}(r),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&HC((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.actual[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Sw(t))return!1;var r=t.current;mw(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var o=this.visualElement.projection;if(!o||!o.layout)return!1;var a=function(e,t,n){var r=ak(e,n),o=t.scroll;return o&&(ek(r.x,o.x),ek(r.y,o.y)),r}(r,o.root,this.visualElement.getTransformPagePoint()),i=function(e,t){return{x:jC(e.x,t.x),y:jC(e.y,t.y)}}(o.layout.actual,a);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(i));this.hasMutatedConstraints=!!s,s&&(i=YC(s))}return i},e.prototype.startAnimation=function(e){var t=this,n=this.getProps(),r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,s=n.dragSnapToOrigin,c=n.onDragTransitionEnd,l=this.constraints||{},d=HC((function(n){var c;if(ck(n,r,t.currentDirection)){var d=null!==(c=null==l?void 0:l[n])&&void 0!==c?c:{};s&&(d={min:0,max:0});var u=a?200:1e6,m=a?40:1e7,p=rw(rw({type:"inertia",velocity:o?e[n]:0,bounceStiffness:u,bounceDamping:m,timeConstant:750,restDelta:1,restSpeed:10},i),d);return t.startAxisValueAnimation(n,p)}}));return Promise.all(d).then(c)},e.prototype.startAxisValueAnimation=function(e,t){return qS(e,this.getAxisMotionValue(e),0,t)},e.prototype.stopAnimation=function(){var e=this;HC((function(t){return e.getAxisMotionValue(t).stop()}))},e.prototype.getAxisMotionValue=function(e){var t,n,r="_drag"+e.toUpperCase();return this.visualElement.getProps()[r]||this.visualElement.getValue(e,null!==(n=null===(t=this.visualElement.getProps().initial)||void 0===t?void 0:t[e])&&void 0!==n?n:0)},e.prototype.snapToCursor=function(e){var t=this;HC((function(n){if(ck(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,o=t.getAxisMotionValue(n);if(r&&r.layout){var a=r.layout.actual[n],i=a.min,s=a.max;o.set(e[n]-e$(i,s,.5))}}}))},e.prototype.scalePositionWithinConstraints=function(){var e,t=this,n=this.getProps(),r=n.drag,o=n.dragConstraints,a=this.visualElement.projection;if(Sw(o)&&a&&this.constraints){this.stopAnimation();var i={x:0,y:0};HC((function(e){var n,r,o,a,s,c=t.getAxisMotionValue(e);if(c){var l=c.get();i[e]=(n={min:l,max:l},r=t.constraints[e],o=.5,a=TC(n),(s=TC(r))>a?o=XE(r.min,r.max-a,n.min):a>s&&(o=XE(n.min,n.max-s,r.min)),zE(0,1,o))}}));var s=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=s?s({},""):"none",null===(e=a.root)||void 0===e||e.updateScroll(),a.updateLayout(),this.resolveConstraints(),HC((function(e){if(ck(e,r,null)){var n=t.getAxisMotionValue(e),o=t.constraints[e],a=o.min,s=o.max;n.set(e$(a,s,i[e]))}}))}},e.prototype.addListeners=function(){var e,t=this;ik.set(this.visualElement,this);var n=pE(this.visualElement.getInstance(),"pointerdown",(function(e){var n=t.getProps(),r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=function(){Sw(t.getProps().dragConstraints)&&(t.constraints=t.resolveRefConstraints())},o=this.visualElement.projection,a=o.addEventListener("measure",r);o&&!o.layout&&(null===(e=o.root)||void 0===e||e.updateScroll(),o.updateLayout()),r();var i=Jb(window,"resize",(function(){return t.scalePositionWithinConstraints()}));return o.addEventListener("didUpdate",(function(e){var n=e.delta,r=e.hasLayoutChanged;t.isDragging&&r&&(HC((function(e){var r=t.getAxisMotionValue(e);r&&(t.originPoint[e]+=n[e].translate,r.set(r.get()+n[e].translate))})),t.visualElement.syncRender())})),function(){i(),n(),a()}},e.prototype.getProps=function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,s=e.dragConstraints,c=void 0!==s&&s,l=e.dragElastic,d=void 0===l?FC:l,u=e.dragMomentum,m=void 0===u||u;return rw(rw({},e),{drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:c,dragElastic:d,dragMomentum:m})},e}();function ck(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var lk={pan:AE((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,s=(0,V.useRef)(null),c=(0,V.useContext)(fw).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){s.current=null,r&&r(e,t)}};(0,V.useEffect)((function(){null!==s.current&&s.current.updateHandlers(l)})),yE(a,"pointerdown",i&&function(e){s.current=new $C(e,l,{transformPagePoint:c})}),EE((function(){return s.current&&s.current.end()}))})),drag:AE((function(e){var t=e.dragControls,n=e.visualElement,r=Lw((function(){return new sk(n)}));(0,V.useEffect)((function(){return t&&t.subscribe(r)}),[r,t]),(0,V.useEffect)((function(){return r.addListeners()}),[r])}))},dk=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","LayoutAnimationStart","SetAxisTarget","Unmount"],uk=function(e){var t=e.treeType,n=void 0===t?"":t,r=e.build,o=e.getBaseTarget,a=e.makeTargetAnimatable,i=e.measureViewportBox,s=e.render,c=e.readValueFromInstance,l=e.removeValueFromRenderState,d=e.sortNodePosition,u=e.scrapeMotionValuesFromProps;return function(e,t){var m=e.parent,p=e.props,y=e.presenceId,h=e.blockInitialAnimation,f=e.visualState,_=e.shouldReduceMotion;void 0===t&&(t={});var g,v,w=!1,b=f.latestValues,E=f.renderState,$=function(){var e=dk.map((function(){return new XS})),t={},n={clearAllListeners:function(){return e.forEach((function(e){return e.clear()}))},updatePropListeners:function(e){dk.forEach((function(r){var o,a="on"+r,i=e[a];null===(o=t[r])||void 0===o||o.call(t),i&&(t[r]=n[a](i))}))}};return e.forEach((function(e,t){n["on"+dk[t]]=function(t){return e.add(t)},n["notify"+dk[t]]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.notify.apply(e,iw([],aw(t),!1))}})),n}(),S=new Map,C=new Map,k={},I=rw({},b);function N(){g&&w&&(x(),s(g,E,p.style,P.projection))}function x(){r(P,E,b,t,p)}function T(){$.notifyUpdate(b)}function O(e,t){var n=t.onChange((function(t){b[e]=t,p.onUpdate&&mS.update(T,!1,!0)})),r=t.onRenderRequest(P.scheduleRender);C.set(e,(function(){n(),r()}))}var L=u(p);for(var A in L){var M=L[A];void 0!==b[A]&&Kw(M)&&M.set(b[A],!1)}var D=xw(p),R=Tw(p),P=rw(rw({treeType:n,current:null,depth:m?m.depth+1:0,parent:m,children:new Set,presenceId:y,shouldReduceMotion:_,variantChildren:R?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null==m?void 0:m.isMounted()),blockInitialAnimation:h,isMounted:function(){return Boolean(g)},mount:function(e){w=!0,g=P.current=e,P.projection&&P.projection.mount(e),R&&m&&!D&&(v=null==m?void 0:m.addVariantChild(P)),S.forEach((function(e,t){return O(t,e)})),null==m||m.children.add(P),P.setProps(p)},unmount:function(){var e;null===(e=P.projection)||void 0===e||e.unmount(),iS.update(T),iS.render(N),C.forEach((function(e){return e()})),null==v||v(),null==m||m.children.delete(P),$.clearAllListeners(),g=void 0,w=!1},addVariantChild:function(e){var t,n=P.getClosestVariantNode();if(n)return null===(t=n.variantChildren)||void 0===t||t.add(e),function(){return n.variantChildren.delete(e)}},sortNodePosition:function(e){return d&&n===e.treeType?d(P.getInstance(),e.getInstance()):0},getClosestVariantNode:function(){return R?P:null==m?void 0:m.getClosestVariantNode()},getLayoutId:function(){return p.layoutId},getInstance:function(){return g},getStaticValue:function(e){return b[e]},setStaticValue:function(e,t){return b[e]=t},getLatestValues:function(){return b},setVisibility:function(e){P.isVisible!==e&&(P.isVisible=e,P.scheduleRender())},makeTargetAnimatable:function(e,t){return void 0===t&&(t=!0),a(P,e,p,t)},measureViewportBox:function(){return i(g,p)},addValue:function(e,t){P.hasValue(e)&&P.removeValue(e),S.set(e,t),b[e]=t.get(),O(e,t)},removeValue:function(e){var t;S.delete(e),null===(t=C.get(e))||void 0===t||t(),C.delete(e),delete b[e],l(e,E)},hasValue:function(e){return S.has(e)},getValue:function(e,t){var n=S.get(e);return void 0===n&&void 0!==t&&(n=tC(t),P.addValue(e,n)),n},forEachValue:function(e){return S.forEach(e)},readValue:function(e){var n;return null!==(n=b[e])&&void 0!==n?n:c(g,e,t)},setBaseTarget:function(e,t){I[e]=t},getBaseTarget:function(e){if(o){var t=o(p,e);if(void 0!==t&&!Kw(t))return t}return I[e]}},$),{build:function(){return x(),E},scheduleRender:function(){mS.render(N,!1,!0)},syncRender:N,setProps:function(e){(e.transformTemplate||p.transformTemplate)&&P.scheduleRender(),p=e,$.updatePropListeners(e),k=function(e,t,n){var r;for(var o in t){var a=t[o],i=n[o];if(Kw(a))e.addValue(o,a);else if(Kw(i))e.addValue(o,tC(a));else if(i!==a)if(e.hasValue(o)){var s=e.getValue(o);!s.hasAnimated&&s.set(a)}else e.addValue(o,tC(null!==(r=e.getStaticValue(o))&&void 0!==r?r:a))}for(var o in n)void 0===t[o]&&e.removeValue(o);return t}(P,u(p),k)},getProps:function(){return p},getVariant:function(e){var t;return null===(t=p.variants)||void 0===t?void 0:t[e]},getDefaultTransition:function(){return p.transition},getTransformPagePoint:function(){return p.transformPagePoint},getVariantContext:function(e){if(void 0===e&&(e=!1),e)return null==m?void 0:m.getVariantContext();if(!D){var t=(null==m?void 0:m.getVariantContext())||{};return void 0!==p.initial&&(t.initial=p.initial),t}for(var n={},r=0;r<pk;r++){var o=mk[r],a=p[o];(kw(a)||!1===a)&&(n[o]=a)}return n}});return P}},mk=iw(["initial"],aw(pC),!1),pk=mk.length;function yk(e){return"string"==typeof e&&e.startsWith("var(--")}var hk=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function fk(e,t,n){void 0===n&&(n=1),mw(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=aw(function(e){var t=hk.exec(e);if(!t)return[,];var n=aw(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():yk(a)?fk(a,t,n+1):a}}var _k,gk=new Set(["width","height","top","left","right","bottom","x","y"]),vk=function(e){return gk.has(e)},wk=function(e,t){e.set(t,!1),e.set(t)},bk=function(e){return e===yb||e===db};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(_k||(_k={}));var Ek=function(e,t){return parseFloat(e.split(", ")[t])},$k=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Ek(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Ek(i[1],e):0}},Sk=new Set(["x","y","z"]),Ck=Hw.filter((function(e){return!Sk.has(e)})),kk={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:$k(4,13),y:$k(5,14)};function Ik(e,t,n,r){return function(e){return Object.keys(e).some(vk)}(t)?function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=rw({},t),r=rw({},r);var o=Object.keys(t).filter(vk),a=[],i=!1,s=[];if(o.forEach((function(o){var c=e.getValue(o);if(e.hasValue(o)){var l,d=n[o],u=oC(d),m=t[o];if(Ub(m)){var p=m.length,y=null===m[0]?1:0;d=m[y],u=oC(d);for(var h=y;h<p;h++)l?mw(oC(m[h])===l,"All keyframes must be of the same type"):(l=oC(m[h]),mw(l===u||bk(u)&&bk(l),"Keyframes must be of the same dimension as the current value"))}else l=oC(m);if(u!==l)if(bk(u)&&bk(l)){var f=c.get();"string"==typeof f&&c.set(parseFloat(f)),"string"==typeof m?t[o]=parseFloat(m):Array.isArray(m)&&l===db&&(t[o]=m.map(parseFloat))}else(null==u?void 0:u.transform)&&(null==l?void 0:l.transform)&&(0===d||0===m)?0===d?c.set(l.transform(d)):t[o]=u.transform(m):(i||(a=function(e){var t=[];return Ck.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.syncRender(),t}(e),i=!0),s.push(o),r[o]=void 0!==r[o]?r[o]:t[o],wk(c,m))}})),s.length){var c=s.indexOf("height")>=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),o=t.getInstance(),a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=kk[e](r,a)})),t.syncRender();var c=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);wk(r,s[n]),e[n]=kk[n](c,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=aw(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.syncRender(),null!==c&&window.scrollTo({top:c}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}}(e,t,n,r):{target:t,transitionEnd:r}}var Nk={treeType:"dom",readValueFromInstance:function(e,t){if(Gw(t)){var n=zS(t);return n&&n.default||0}var r,o=(r=e,window.getComputedStyle(r));return(Xw(t)?o.getPropertyValue(t):o[t])||0},sortNodePosition:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1},getBaseTarget:function(e,t){var n;return null===(n=e.style)||void 0===n?void 0:n[t]},measureViewportBox:function(e,t){return ak(e,t.transformPagePoint)},resetTransform:function(e,t,n){var r=n.transformTemplate;t.style.transform=r?r({},""):"none",e.scheduleRender()},restoreTransform:function(e,t){e.style.transform=t.style.transform},removeValueFromRenderState:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]},makeTargetAnimatable:function(e,t,n,r){var o=n.transformValues;void 0===r&&(r=!0);var a=t.transition,i=t.transitionEnd,s=ow(t,["transition","transitionEnd"]),c=function(e,t,n){var r,o,a={};for(var i in e)a[i]=null!==(r=cC(i,t))&&void 0!==r?r:null===(o=n.getValue(i))||void 0===o?void 0:o.get();return a}(s,a||{},e);if(o&&(i&&(i=o(i)),s&&(s=o(s)),c&&(c=o(c))),r){!function(e,t,n){var r,o,a,i,s=Object.keys(t).filter((function(t){return!e.hasValue(t)})),c=s.length;if(c)for(var l=0;l<c;l++){var d=s[l],u=t[d],m=null;Array.isArray(u)&&(m=u[0]),null===m&&(m=null!==(o=null!==(r=n[d])&&void 0!==r?r:e.readValue(d))&&void 0!==o?o:t[d]),null!=m&&("string"==typeof m&&(ZS(m)||QS(m))?m=parseFloat(m):!iC(m)&&E$.test(u)&&(m=BS(d,u)),e.addValue(d,tC(m)),null!==(a=(i=n)[d])&&void 0!==a||(i[d]=m),e.setBaseTarget(d,m))}}(e,s,c);var l=function(e,t,n,r){var o=function(e,t,n){var r,o=ow(t,[]),a=e.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:n};for(var i in n&&(n=rw({},n)),e.forEachValue((function(e){var t=e.get();if(yk(t)){var n=fk(t,a);n&&e.set(n)}})),o){var s=o[i];if(yk(s)){var c=fk(s,a);c&&(o[i]=c,n&&(null!==(r=n[i])&&void 0!==r||(n[i]=s)))}}return{target:o,transitionEnd:n}}(e,t,r);return Ik(e,t=o.target,n,r=o.transitionEnd)}(e,s,c,i);i=l.transitionEnd,s=l.target}return rw({transition:a,transitionEnd:i},s)},scrapeMotionValuesFromProps:Fb,build:function(e,t,n,r,o){void 0!==e.isVisible&&(t.style.visibility=e.isVisible?"visible":"hidden"),vb(t,n,r,o.transformTemplate)},render:Rb},xk=uk(Nk),Tk=uk(rw(rw({},Nk),{getBaseTarget:function(e,t){return e[t]},readValueFromInstance:function(e,t){var n;return Gw(t)?(null===(n=zS(t))||void 0===n?void 0:n.default)||0:(t=Pb.has(t)?t:Db(t),e.getAttribute(t))},scrapeMotionValuesFromProps:zb,build:function(e,t,n,r,o){Tb(t,n,r,o.transformTemplate)},render:jb})),Ok=function(e,t){return Bw(e)?Tk(t,{enableHardwareAcceleration:!1}):xk(t,{enableHardwareAcceleration:!0})};function Lk(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Ak={correct:function(e,t){if(!t.target)return e;if("string"==typeof e){if(!db.test(e))return e;e=parseFloat(e)}var n=Lk(e,t.target.x),r=Lk(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},Mk="_$css",Dk={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(hk,(function(e){return i.push(e),Mk})));var s=E$.parse(e);if(s.length>5)return o;var c=E$.createTransformer(e),l="number"!=typeof s[0]?1:0,d=r.x.scale*n.x,u=r.y.scale*n.y;s[0+l]/=d,s[1+l]/=u;var m=e$(d,u,.5);"number"==typeof s[2+l]&&(s[2+l]/=m),"number"==typeof s[3+l]&&(s[3+l]/=m);var p=c(s);if(a){var y=0;p=p.replace(Mk,(function(){var e=i[y];return y++,e}))}return p}},Rk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nw(t,e),t.prototype.componentDidMount=function(){var e,t=this,n=this.props,r=n.visualElement,o=n.layoutGroup,a=n.switchLayoutGroup,i=n.layoutId,s=r.projection;e=Pk,Object.assign(Uw,e),s&&((null==o?void 0:o.group)&&o.group.add(s),(null==a?void 0:a.register)&&i&&a.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions(rw(rw({},s.options),{onExitComplete:function(){return t.safeToRemove()}}))),Aw.hasEverUpdated=!0},t.prototype.getSnapshotBeforeUpdate=function(e){var t=this,n=this.props,r=n.layoutDependency,o=n.visualElement,a=n.drag,i=n.isPresent,s=o.projection;return s?(s.isPresent=i,a||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?s.promote():s.relegate()||mS.postRender((function(){var e;(null===(e=s.getStack())||void 0===e?void 0:e.members.length)||t.safeToRemove()}))),null):null},t.prototype.componentDidUpdate=function(){var e=this.props.visualElement.projection;e&&(e.root.didUpdate(),!e.currentAnimation&&e.isLead()&&this.safeToRemove())},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,o=t.projection;o&&(o.scheduleCheckAfterUnmount(),(null==n?void 0:n.group)&&n.group.remove(o),(null==r?void 0:r.deregister)&&r.deregister(o))},t.prototype.safeToRemove=function(){var e=this.props.safeToRemove;null==e||e()},t.prototype.render=function(){return null},t}(V.Component),Pk={borderRadius:rw(rw({},Ak),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Ak,borderTopRightRadius:Ak,borderBottomLeftRadius:Ak,borderBottomRightRadius:Ak,boxShadow:Dk},jk={measureLayout:function(e){var t=aw(jE(),2),n=t[0],r=t[1],o=(0,V.useContext)(Dw);return V.createElement(Rk,rw({},e,{layoutGroup:o,switchLayoutGroup:(0,V.useContext)(Rw),isPresent:n,safeToRemove:r}))}},Fk=["TopLeft","TopRight","BottomLeft","BottomRight"],zk=Fk.length,Bk=function(e){return"string"==typeof e?parseFloat(e):e},Uk=function(e){return"number"==typeof e||db.test(e)};function Vk(e,t){var n;return null!==(n=e[t])&&void 0!==n?n:e.borderRadius}var Hk=Wk(0,.5,F$),Yk=Wk(.5,.95,M$);function Wk(e,t,n){return function(r){return r<e?0:r>t?1:n(XE(e,t,r))}}function Gk(e,t){e.min=t.min,e.max=t.max}function qk(e,t){Gk(e.x,t.x),Gk(e.y,t.y)}function Zk(e,t,n,r,o){return e=QC(e-=t,1/n,r),void 0!==o&&(e=QC(e,1/o,r)),e}function Qk(e,t,n,r,o){var a=aw(n,3),i=a[0],s=a[1],c=a[2];!function(e,t,n,r,o,a,i){if(void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5),void 0===a&&(a=e),void 0===i&&(i=e),lb.test(t)&&(t=parseFloat(t),t=e$(i.min,i.max,t/100)-i.min),"number"==typeof t){var s=e$(a.min,a.max,r);e===a&&(s-=t),e.min=Zk(e.min,t,n,s,o),e.max=Zk(e.max,t,n,s,o)}}(e,t[i],t[s],t[c],t.scale,r,o)}var Kk=["x","scaleX","originX"],Jk=["y","scaleY","originY"];function Xk(e,t,n,r){Qk(e.x,t,Kk,null==n?void 0:n.x,null==r?void 0:r.x),Qk(e.y,t,Jk,null==n?void 0:n.y,null==r?void 0:r.y)}function eI(e){return 0===e.translate&&1===e.scale}function tI(e){return eI(e.x)&&eI(e.y)}function nI(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}var rI=function(){function e(){this.members=[]}return e.prototype.add=function(e){KS(this.members,e),e.scheduleRender()},e.prototype.remove=function(e){if(JS(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}},e.prototype.relegate=function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var o=this.members[r];if(!1!==o.isPresent){t=o;break}}return!!t&&(this.promote(t),!0)},e.prototype.promote=function(e,t){var n,r=this.lead;e!==r&&(this.prevLead=r,this.lead=e,e.show(),r&&(r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues,e.snapshot.isShared=!0),(null===(n=e.root)||void 0===n?void 0:n.isUpdating)&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&r.hide()))},e.prototype.exitAnimationComplete=function(){this.members.forEach((function(e){var t,n,r,o,a;null===(n=(t=e.options).onExitComplete)||void 0===n||n.call(t),null===(a=null===(r=e.resumingFrom)||void 0===r?void 0:(o=r.options).onExitComplete)||void 0===a||a.call(o)}))},e.prototype.scheduleRender=function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))},e.prototype.removeLeadSnapshot=function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)},e}(),oI="translate3d(0px, 0px, 0) scale(1, 1) scale(1, 1)";function aI(e,t,n){var r=e.x.translate/t.x,o=e.y.translate/t.y,a="translate3d(".concat(r,"px, ").concat(o,"px, 0) ");if(a+="scale(".concat(1/t.x,", ").concat(1/t.y,") "),n){var i=n.rotate,s=n.rotateX,c=n.rotateY;i&&(a+="rotate(".concat(i,"deg) ")),s&&(a+="rotateX(".concat(s,"deg) ")),c&&(a+="rotateY(".concat(c,"deg) "))}var l=e.x.scale*t.x,d=e.y.scale*t.y;return(a+="scale(".concat(l,", ").concat(d,")"))===oI?"none":a}var iI=function(e,t){return e.depth-t.depth},sI=function(){function e(){this.children=[],this.isDirty=!1}return e.prototype.add=function(e){KS(this.children,e),this.isDirty=!0},e.prototype.remove=function(e){JS(this.children,e),this.isDirty=!0},e.prototype.forEach=function(e){this.isDirty&&this.children.sort(iI),this.isDirty=!1,this.children.forEach(e)},e}();function cI(e){var t=e.attachResizeListener,n=e.defaultParent,r=e.measureScroll,o=e.checkIsScrollRoot,a=e.resetTransform;return function(){function e(e,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=null==n?void 0:n()),this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=function(){o.isUpdating&&(o.isUpdating=!1,o.clearAllSnapshots())},this.updateProjection=function(){o.nodes.forEach(hI),o.nodes.forEach(fI)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.id=e,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?iw(iw([],aw(r.path),!1),[r],!1):[],this.parent=r,this.depth=r?r.depth+1:0,e&&this.root.registerPotentialNode(e,this);for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new sI)}return e.prototype.addEventListener=function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new XS),this.eventHandlers.get(e).add(t)},e.prototype.notifyListeners=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.eventHandlers.get(e);null==r||r.notify.apply(r,iw([],aw(t),!1))},e.prototype.hasListeners=function(e){return this.eventHandlers.has(e)},e.prototype.registerPotentialNode=function(e,t){this.potentialNodes.set(e,t)},e.prototype.mount=function(e,n){var r,o=this;if(void 0===n&&(n=!1),!this.instance){this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;var a=this.options,i=a.layoutId,s=a.layout,c=a.visualElement;if(c&&!c.getInstance()&&c.mount(e),this.root.nodes.add(this),null===(r=this.parent)||void 0===r||r.children.add(this),this.id&&this.root.potentialNodes.delete(this.id),n&&(s||i)&&(this.isLayoutDirty=!0),t){var l,d=function(){return o.root.updateBlockedByResize=!1};t(e,(function(){o.root.updateBlockedByResize=!0,clearTimeout(l),l=window.setTimeout(d,250),Aw.hasAnimatedSinceResize&&(Aw.hasAnimatedSinceResize=!1,o.nodes.forEach(yI))}))}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&c&&(i||s)&&this.addEventListener("didUpdate",(function(e){var t,n,r,a,i,s=e.delta,l=e.hasLayoutChanged,d=e.hasRelativeTargetChanged,u=e.layout;if(o.isTreeAnimationBlocked())return o.target=void 0,void(o.relativeTarget=void 0);var m=null!==(n=null!==(t=o.options.transition)&&void 0!==t?t:c.getDefaultTransition())&&void 0!==n?n:EI,p=c.getProps(),y=p.onLayoutAnimationStart,h=p.onLayoutAnimationComplete,f=!o.targetLayout||!nI(o.targetLayout,u)||d,_=!l&&d;if((null===(r=o.resumeFrom)||void 0===r?void 0:r.instance)||_||l&&(f||!o.currentAnimation)){o.resumeFrom&&(o.resumingFrom=o.resumeFrom,o.resumingFrom.resumingFrom=void 0),o.setAnimationOrigin(s,_);var g=rw(rw({},GS(m,"layout")),{onPlay:y,onComplete:h});c.shouldReduceMotion&&(g.delay=0,g.type=!1),o.startAnimation(g)}else l||0!==o.animationProgress||o.finishAnimation(),o.isLead()&&(null===(i=(a=o.options).onExitComplete)||void 0===i||i.call(a));o.targetLayout=u}))}},e.prototype.unmount=function(){var e,t;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),null===(e=this.getStack())||void 0===e||e.remove(this),null===(t=this.parent)||void 0===t||t.children.delete(this),this.instance=void 0,iS.preRender(this.updateProjection)},e.prototype.blockUpdate=function(){this.updateManuallyBlocked=!0},e.prototype.unblockUpdate=function(){this.updateManuallyBlocked=!1},e.prototype.isUpdateBlocked=function(){return this.updateManuallyBlocked||this.updateBlockedByResize},e.prototype.isTreeAnimationBlocked=function(){var e;return this.isAnimationBlocked||(null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimationBlocked())||!1},e.prototype.startUpdate=function(){var e;this.isUpdateBlocked()||(this.isUpdating=!0,null===(e=this.nodes)||void 0===e||e.forEach(_I))},e.prototype.willUpdate=function(e){var t,n,r;if(void 0===e&&(e=!0),this.root.isUpdateBlocked())null===(n=(t=this.options).onExitComplete)||void 0===n||n.call(t);else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var o=0;o<this.path.length;o++){var a=this.path[o];a.shouldResetTransform=!0,a.updateScroll()}var i=this.options,s=i.layoutId,c=i.layout;if(void 0!==s||c){var l=null===(r=this.options.visualElement)||void 0===r?void 0:r.getProps().transformTemplate;this.prevTransformTemplateValue=null==l?void 0:l(this.latestValues,""),this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}},e.prototype.didUpdate=function(){if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(mI);this.isUpdating&&(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach($I),this.potentialNodes.clear()),this.nodes.forEach(pI),this.nodes.forEach(lI),this.nodes.forEach(dI),this.clearAllSnapshots(),sS.update(),sS.preRender(),sS.render())},e.prototype.clearAllSnapshots=function(){this.nodes.forEach(uI),this.sharedNodes.forEach(gI)},e.prototype.scheduleUpdateProjection=function(){mS.preRender(this.updateProjection,!1,!0)},e.prototype.scheduleCheckAfterUnmount=function(){var e=this;mS.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))},e.prototype.updateSnapshot=function(){if(!this.snapshot&&this.instance){var e=this.measure(),t=this.removeTransform(this.removeElementScroll(e));CI(t),this.snapshot={measured:e,layout:t,latestValues:{}}}},e.prototype.updateLayout=function(){var e;if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var t=0;t<this.path.length;t++)this.path[t].updateScroll();var n=this.measure();CI(n);var r=this.layout;this.layout={measured:n,actual:this.removeElementScroll(n)},this.layoutCorrected=VC(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.actual),null===(e=this.options.visualElement)||void 0===e||e.notifyLayoutMeasure(this.layout.actual,null==r?void 0:r.actual)}},e.prototype.updateScroll=function(){this.options.layoutScroll&&this.instance&&(this.isScrollRoot=o(this.instance),this.scroll=r(this.instance))},e.prototype.resetTransform=function(){var e;if(a){var t=this.isLayoutDirty||this.shouldResetTransform,n=this.projectionDelta&&!tI(this.projectionDelta),r=null===(e=this.options.visualElement)||void 0===e?void 0:e.getProps().transformTemplate,o=null==r?void 0:r(this.latestValues,""),i=o!==this.prevTransformTemplateValue;t&&(n||qC(this.latestValues)||i)&&(a(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}},e.prototype.measure=function(){var e=this.options.visualElement;if(!e)return VC();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(ek(t.x,n.x),ek(t.y,n.y)),t},e.prototype.removeElementScroll=function(e){var t=VC();qk(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],o=r.scroll,a=r.options,i=r.isScrollRoot;if(r!==this.root&&o&&a.layoutScroll){if(i){qk(t,e);var s=this.root.scroll;s&&(ek(t.x,-s.x),ek(t.y,-s.y))}ek(t.x,o.x),ek(t.y,o.y)}}return t},e.prototype.applyTransform=function(e,t){void 0===t&&(t=!1);var n=VC();qk(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&ok(n,{x:-o.scroll.x,y:-o.scroll.y}),qC(o.latestValues)&&ok(n,o.latestValues)}return qC(this.latestValues)&&ok(n,this.latestValues),n},e.prototype.removeTransform=function(e){var t,n=VC();qk(n,e);for(var r=0;r<this.path.length;r++){var o=this.path[r];if(o.instance&&qC(o.latestValues)){GC(o.latestValues)&&o.updateSnapshot();var a=VC();qk(a,o.measure()),Xk(n,o.latestValues,null===(t=o.snapshot)||void 0===t?void 0:t.layout,a)}}return qC(this.latestValues)&&Xk(n,this.latestValues),n},e.prototype.setTargetDelta=function(e){this.targetDelta=e,this.root.scheduleUpdateProjection()},e.prototype.setOptions=function(e){var t;this.options=rw(rw(rw({},this.options),e),{crossfade:null===(t=e.crossfade)||void 0===t||t})},e.prototype.clearMeasurements=function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1},e.prototype.resolveTargetDelta=function(){var e,t,n,r,o=this.options,a=o.layout,i=o.layoutId;this.layout&&(a||i)&&(this.targetDelta||this.relativeTarget||(this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&this.relativeParent.layout&&(this.relativeTarget=VC(),this.relativeTargetOrigin=VC(),RC(this.relativeTargetOrigin,this.layout.actual,this.relativeParent.layout.actual),qk(this.relativeTarget,this.relativeTargetOrigin))),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=VC(),this.targetWithTransforms=VC()),this.relativeTarget&&this.relativeTargetOrigin&&(null===(e=this.relativeParent)||void 0===e?void 0:e.target)?(t=this.target,n=this.relativeTarget,r=this.relativeParent.target,MC(t.x,n.x,r.x),MC(t.y,n.y,r.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.actual):qk(this.target,this.layout.actual),XC(this.target,this.targetDelta)):qk(this.target,this.layout.actual),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.relativeParent=this.getClosestProjectingParent(),this.relativeParent&&Boolean(this.relativeParent.resumingFrom)===Boolean(this.resumingFrom)&&!this.relativeParent.options.layoutScroll&&this.relativeParent.target&&(this.relativeTarget=VC(),this.relativeTargetOrigin=VC(),RC(this.relativeTargetOrigin,this.target,this.relativeParent.target),qk(this.relativeTarget,this.relativeTargetOrigin)))))},e.prototype.getClosestProjectingParent=function(){if(this.parent&&!qC(this.parent.latestValues))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()},e.prototype.calcProjection=function(){var e,t=this.options,n=t.layout,r=t.layoutId;if(this.isTreeAnimating=Boolean((null===(e=this.parent)||void 0===e?void 0:e.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(n||r)){var o=this.getLead();qk(this.layoutCorrected,this.layout.actual),function(e,t,n,r){var o,a;void 0===r&&(r=!1);var i=n.length;if(i){var s,c;t.x=t.y=1;for(var l=0;l<i;l++)c=(s=n[l]).projectionDelta,"contents"!==(null===(a=null===(o=s.instance)||void 0===o?void 0:o.style)||void 0===a?void 0:a.display)&&(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&ok(e,{x:-s.scroll.x,y:-s.scroll.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,XC(e,c)),r&&qC(s.latestValues)&&ok(e,s.latestValues))}}(this.layoutCorrected,this.treeScale,this.path,Boolean(this.resumingFrom)||this!==o);var a=o.target;if(a){this.projectionDelta||(this.projectionDelta=UC(),this.projectionDeltaWithTransform=UC());var i=this.treeScale.x,s=this.treeScale.y,c=this.projectionTransform;AC(this.projectionDelta,this.layoutCorrected,a,this.latestValues),this.projectionTransform=aI(this.projectionDelta,this.treeScale),this.projectionTransform===c&&this.treeScale.x===i&&this.treeScale.y===s||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",a))}}},e.prototype.hide=function(){this.isVisible=!1},e.prototype.show=function(){this.isVisible=!0},e.prototype.scheduleRender=function(e){var t,n,r;void 0===e&&(e=!0),null===(n=(t=this.options).scheduleRender)||void 0===n||n.call(t),e&&(null===(r=this.getStack())||void 0===r||r.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)},e.prototype.setAnimationOrigin=function(e,t){var n,r=this;void 0===t&&(t=!1);var o=this.snapshot,a=(null==o?void 0:o.latestValues)||{},i=rw({},this.latestValues),s=UC();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!t;var c=VC(),l=null==o?void 0:o.isShared,d=((null===(n=this.getStack())||void 0===n?void 0:n.members.length)||0)<=1,u=Boolean(l&&!d&&!0===this.options.crossfade&&!this.path.some(bI));this.animationProgress=0,this.mixTargetDelta=function(t){var n,o=t/1e3;vI(s.x,e.x,o),vI(s.y,e.y,o),r.setTargetDelta(s),r.relativeTarget&&r.relativeTargetOrigin&&r.layout&&(null===(n=r.relativeParent)||void 0===n?void 0:n.layout)&&(RC(c,r.layout.actual,r.relativeParent.layout.actual),function(e,t,n,r){wI(e.x,t.x,n.x,r),wI(e.y,t.y,n.y,r)}(r.relativeTarget,r.relativeTargetOrigin,c,o)),l&&(r.animationValues=i,function(e,t,n,r,o,a){var i,s,c,l;o?(e.opacity=e$(0,null!==(i=n.opacity)&&void 0!==i?i:1,Hk(r)),e.opacityExit=e$(null!==(s=t.opacity)&&void 0!==s?s:1,0,Yk(r))):a&&(e.opacity=e$(null!==(c=t.opacity)&&void 0!==c?c:1,null!==(l=n.opacity)&&void 0!==l?l:1,r));for(var d=0;d<zk;d++){var u="border".concat(Fk[d],"Radius"),m=Vk(t,u),p=Vk(n,u);void 0===m&&void 0===p||(m||(m=0),p||(p=0),0===m||0===p||Uk(m)===Uk(p)?(e[u]=Math.max(e$(Bk(m),Bk(p),r),0),(lb.test(p)||lb.test(m))&&(e[u]+="%")):e[u]=p)}(t.rotate||n.rotate)&&(e.rotate=e$(t.rotate||0,n.rotate||0,r))}(i,a,r.latestValues,o,u,d)),r.root.scheduleUpdateProjection(),r.scheduleRender(),r.animationProgress=o},this.mixTargetDelta(0)},e.prototype.startAnimation=function(e){var t,n,r=this;this.notifyListeners("animationStart"),null===(t=this.currentAnimation)||void 0===t||t.stop(),this.resumingFrom&&(null===(n=this.resumingFrom.currentAnimation)||void 0===n||n.stop()),this.pendingAnimation&&(iS.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=mS.update((function(){Aw.hasAnimatedSinceResize=!0,r.currentAnimation=function(e,t,n){void 0===n&&(n={});var r=Kw(0)?0:tC(0);return qS("",r,1e3,n),{stop:function(){return r.stop()},isAnimating:function(){return r.isAnimating()}}}(0,0,rw(rw({},e),{onUpdate:function(t){var n;r.mixTargetDelta(t),null===(n=e.onUpdate)||void 0===n||n.call(e,t)},onComplete:function(){var t;null===(t=e.onComplete)||void 0===t||t.call(e),r.completeAnimation()}})),r.resumingFrom&&(r.resumingFrom.currentAnimation=r.currentAnimation),r.pendingAnimation=void 0}))},e.prototype.completeAnimation=function(){var e;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),null===(e=this.getStack())||void 0===e||e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")},e.prototype.finishAnimation=function(){var e;this.currentAnimation&&(null===(e=this.mixTargetDelta)||void 0===e||e.call(this,1e3),this.currentAnimation.stop()),this.completeAnimation()},e.prototype.applyTransformsToTarget=function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,o=e.latestValues;t&&n&&r&&(qk(t,n),ok(t,o),AC(this.projectionDeltaWithTransform,this.layoutCorrected,t,o))},e.prototype.registerSharedNode=function(e,t){var n,r,o;this.sharedNodes.has(e)||this.sharedNodes.set(e,new rI),this.sharedNodes.get(e).add(t),t.promote({transition:null===(n=t.options.initialPromotionConfig)||void 0===n?void 0:n.transition,preserveFollowOpacity:null===(o=null===(r=t.options.initialPromotionConfig)||void 0===r?void 0:r.shouldPreserveFollowOpacity)||void 0===o?void 0:o.call(r,t)})},e.prototype.isLead=function(){var e=this.getStack();return!e||e.lead===this},e.prototype.getLead=function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this},e.prototype.getPrevLead=function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0},e.prototype.getStack=function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)},e.prototype.promote=function(e){var t=void 0===e?{}:e,n=t.needsReset,r=t.transition,o=t.preserveFollowOpacity,a=this.getStack();a&&a.promote(this,o),n&&(this.projectionDelta=void 0,this.needsReset=!0),r&&this.setOptions({transition:r})},e.prototype.relegate=function(){var e=this.getStack();return!!e&&e.relegate(this)},e.prototype.resetRotation=function(){var e=this.options.visualElement;if(e){for(var t=!1,n={},r=0;r<Vw.length;r++){var o="rotate"+Vw[r];e.getStaticValue(o)&&(t=!0,n[o]=e.getStaticValue(o),e.setStaticValue(o,0))}if(t){for(var o in null==e||e.syncRender(),n)e.setStaticValue(o,n[o]);e.scheduleRender()}}},e.prototype.getProjectionStyles=function(e){var t,n,r,o,a,i;void 0===e&&(e={});var s={};if(!this.instance||this.isSVG)return s;if(!this.isVisible)return{visibility:"hidden"};s.visibility="";var c=null===(t=this.options.visualElement)||void 0===t?void 0:t.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,s.opacity="",s.pointerEvents=Yb(e.pointerEvents)||"",s.transform=c?c(this.latestValues,""):"none",s;var l=this.getLead();if(!this.projectionDelta||!this.layout||!l.target){var d={};return this.options.layoutId&&(d.opacity=null!==(n=this.latestValues.opacity)&&void 0!==n?n:1,d.pointerEvents=Yb(e.pointerEvents)||""),this.hasProjected&&!qC(this.latestValues)&&(d.transform=c?c({},""):"none",this.hasProjected=!1),d}var u=l.animationValues||l.latestValues;this.applyTransformsToTarget(),s.transform=aI(this.projectionDeltaWithTransform,this.treeScale,u),c&&(s.transform=c(u,s.transform));var m=this.projectionDelta,p=m.x,y=m.y;for(var h in s.transformOrigin="".concat(100*p.origin,"% ").concat(100*y.origin,"% 0"),l.animationValues?s.opacity=l===this?null!==(o=null!==(r=u.opacity)&&void 0!==r?r:this.latestValues.opacity)&&void 0!==o?o:1:this.preserveOpacity?this.latestValues.opacity:u.opacityExit:s.opacity=l===this?null!==(a=u.opacity)&&void 0!==a?a:"":null!==(i=u.opacityExit)&&void 0!==i?i:0,Uw)if(void 0!==u[h]){var f=Uw[h],_=f.correct,g=f.applyTo,v=_(u[h],l);if(g)for(var w=g.length,b=0;b<w;b++)s[g[b]]=v;else s[h]=v}return this.options.layoutId&&(s.pointerEvents=l===this?Yb(e.pointerEvents)||"":"none"),s},e.prototype.clearSnapshot=function(){this.resumeFrom=this.snapshot=void 0},e.prototype.resetTree=function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(mI),this.root.sharedNodes.clear()},e}()}function lI(e){e.updateLayout()}function dI(e){var t,n,r,o,a=null!==(n=null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)&&void 0!==n?n:e.snapshot;if(e.isLead()&&e.layout&&a&&e.hasListeners("didUpdate")){var i=e.layout,s=i.actual,c=i.measured;"size"===e.options.animationType?HC((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=TC(t);t.min=s[e].min,t.max=t.min+n})):"position"===e.options.animationType&&HC((function(e){var t=a.isShared?a.measured[e]:a.layout[e],n=TC(s[e]);t.max=t.min+n}));var l=UC();AC(l,s,a.layout);var d=UC();a.isShared?AC(d,e.applyTransform(c,!0),a.measured):AC(d,s,a.layout);var u=!tI(l),m=!1;if(!e.resumeFrom&&(e.relativeParent=e.getClosestProjectingParent(),e.relativeParent&&!e.relativeParent.resumeFrom)){var p=e.relativeParent,y=p.snapshot,h=p.layout;if(y&&h){var f=VC();RC(f,a.layout,y.layout);var _=VC();RC(_,s,h.actual),nI(f,_)||(m=!0)}}e.notifyListeners("didUpdate",{layout:s,snapshot:a,delta:d,layoutDelta:l,hasLayoutChanged:u,hasRelativeTargetChanged:m})}else e.isLead()&&(null===(o=(r=e.options).onExitComplete)||void 0===o||o.call(r));e.options.transition=void 0}function uI(e){e.clearSnapshot()}function mI(e){e.clearMeasurements()}function pI(e){var t=e.options.visualElement;(null==t?void 0:t.getProps().onBeforeLayoutMeasure)&&t.notifyBeforeLayoutMeasure(),e.resetTransform()}function yI(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function hI(e){e.resolveTargetDelta()}function fI(e){e.calcProjection()}function _I(e){e.resetRotation()}function gI(e){e.removeLeadSnapshot()}function vI(e,t,n){e.translate=e$(t.translate,0,n),e.scale=e$(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wI(e,t,n,r){e.min=e$(t.min,n.min,r),e.max=e$(t.max,n.max,r)}function bI(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var EI={duration:.45,ease:[.4,0,.1,1]};function $I(e,t){for(var n=e.root,r=e.path.length-1;r>=0;r--)if(Boolean(e.path[r].instance)){n=e.path[r];break}var o=(n&&n!==e.root?n.instance:document).querySelector('[data-projection-id="'.concat(t,'"]'));o&&e.mount(o,!0)}function SI(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function CI(e){SI(e.x),SI(e.y)}var kI=cI({attachResizeListener:function(e,t){return Jb(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),II={current:void 0},NI=cI({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!II.current){var e=new kI(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),II.current=e}return II.current},resetTransform:function(e,t){e.style.transform=null!=t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),xI=rw(rw(rw(rw({},gC),ME),lk),jk),TI=Fw((function(e,t){return function(e,t,n,r,o){var a=t.forwardMotionProps,i=void 0!==a&&a,s=Bw(e)?Qb:Kb;return rw(rw({},s),{preloadedFeatures:n,useRender:Ab(i),createVisualElement:r,projectionNodeConstructor:o,Component:e})}(e,t,xI,Ok,NI)}));function OI(){var e=(0,V.useRef)(!1);return ww((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var LI=function(e){var t=e.children,n=e.initial,r=e.isPresent,o=e.onExitComplete,a=e.custom,i=e.presenceAffectsLayout,s=Lw(AI),c=PE(),l=(0,V.useMemo)((function(){return{id:c,initial:n,isPresent:r,custom:a,onExitComplete:function(e){var t,n;s.set(e,!0);try{for(var r=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)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.")}(s.values()),a=r.next();!a.done;a=r.next())if(!a.value)return}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}null==o||o()},register:function(e){return s.set(e,!1),function(){return s.delete(e)}}}}),i?void 0:[r]);return(0,V.useMemo)((function(){s.forEach((function(e,t){return s.set(t,!1)}))}),[r]),V.useEffect((function(){!r&&!s.size&&(null==o||o())}),[r]),V.createElement(gw.Provider,{value:l},t)};function AI(){return new Map}var MI=function(e){return e.key||""},DI=function(e){var t=e.children,n=e.custom,r=e.initial,o=void 0===r||r,a=e.onExitComplete,i=e.exitBeforeEnter,s=e.presenceAffectsLayout,c=void 0===s||s,l=aw(function(){var e=OI(),t=aw((0,V.useState)(0),2),n=t[0],r=t[1],o=(0,V.useCallback)((function(){e.current&&r(n+1)}),[n]);return[(0,V.useCallback)((function(){return mS.postRender(o)}),[o]),n]}(),1),d=l[0],u=(0,V.useContext)(Dw).forceRender;u&&(d=u);var m=OI(),p=function(e){var t=[];return V.Children.forEach(e,(function(e){(0,V.isValidElement)(e)&&t.push(e)})),t}(t),y=p,h=new Set,f=(0,V.useRef)(y),_=(0,V.useRef)(new Map).current,g=(0,V.useRef)(!0);if(ww((function(){g.current=!1,function(e,t){e.forEach((function(e){var n=MI(e);t.set(n,e)}))}(p,_),f.current=y})),EE((function(){g.current=!0,_.clear(),h.clear()})),g.current)return V.createElement(V.Fragment,null,y.map((function(e){return V.createElement(LI,{key:MI(e),isPresent:!0,initial:!!o&&void 0,presenceAffectsLayout:c},e)})));y=iw([],aw(y),!1);for(var v=f.current.map(MI),w=p.map(MI),b=v.length,E=0;E<b;E++){var $=v[E];-1===w.indexOf($)&&h.add($)}return i&&h.size&&(y=[]),h.forEach((function(e){if(-1===w.indexOf(e)){var t=_.get(e);if(t){var r=v.indexOf(e);y.splice(r,0,V.createElement(LI,{key:MI(t),isPresent:!1,onExitComplete:function(){_.delete(e),h.delete(e);var t=f.current.findIndex((function(t){return t.key===e}));if(f.current.splice(t,1),!h.size){if(f.current=p,!1===m.current)return;d(),a&&a()}},custom:n,presenceAffectsLayout:c},t))}}})),y=y.map((function(e){var t=e.key;return h.has(t)?e:V.createElement(LI,{key:MI(e),isPresent:!0,presenceAffectsLayout:c},e)})),"production"!==cw&&i&&y.length>1&&console.warn("You're attempting to animate multiple children within AnimatePresence, but its exitBeforeEnter prop is set to true. This will lead to odd visual behaviour."),V.createElement(V.Fragment,null,h.size?y:y.map((function(e){return(0,V.cloneElement)(e)})))};function RI(e){let{className:t,label:n,onFilesDrop:r,onHTMLDrop:o,onDrop:a}=e;const[i,s]=(0,Y.useState)(),[c,l]=(0,Y.useState)(),[d,u]=(0,Y.useState)(),m=(0,ne.__experimentalUseDropZone)({onDrop(e){const t=(0,re.getFilesFromDataTransfer)(e.dataTransfer),n=e.dataTransfer.getData("text/html");n&&o?o(n):t.length&&r?r(t):a&&a(e)},onDragStart(e){s(!0);let t="default";(0,W.includes)(e.dataTransfer.types,"text/html")?t="html":((0,W.includes)(e.dataTransfer.types,"Files")||(0,re.getFilesFromDataTransfer)(e.dataTransfer).length>0)&&(t="file"),u(t)},onDragEnd(){s(!1),u()},onDragEnter(){l(!0)},onDragLeave(){l(!1)}}),p=(0,ne.useReducedMotion)();let y;c&&(y=(0,Y.createElement)(TI.div,{variants:{hidden:{scaleY:0,opacity:0},show:{scaleY:1,opacity:1,transition:{type:"tween",duration:.2,delay:.1,delayChildren:.2}},exit:{scaleY:1,opacity:0,transition:{duration:.3,delayChildren:0}}},initial:p?"show":"hidden",animate:"show",exit:p?"show":"exit",className:"components-drop-zone__content"},(0,Y.createElement)(TI.div,{variants:{hidden:{opacity:0,scale:.75},show:{opacity:1,scale:1},exit:{opacity:0,scale:.9}}},(0,Y.createElement)(Xy,{icon:ew,className:"components-drop-zone__content-icon"}),(0,Y.createElement)("span",{className:"components-drop-zone__content-text"},n||(0,B.__)("Drop files to upload")))));const h=Z()("components-drop-zone",t,{"is-active":(i||c)&&("file"===d&&r||"html"===d&&o||"default"===d&&a),"is-dragging-over-document":i,"is-dragging-over-element":c,[`is-dragging-${d}`]:!!d});return(0,Y.createElement)("div",{ref:m,className:h},p?y:(0,Y.createElement)(DI,null,y))}const PI=function(e){let{accept:t,children:n,multiple:r=!1,onChange:o,onClick:a,render:i,...s}=e;const c=(0,Y.useRef)(),l=()=>{c.current.click()},d=i?i({openFileDialog:l}):(0,Y.createElement)(Jn,X({onClick:l},s),n);return(0,Y.createElement)("div",{className:"components-form-file-upload"},d,(0,Y.createElement)("input",{type:"file",ref:c,multiple:r,style:{display:"none"},accept:t,onChange:o,onClick:a,"data-testid":"form-file-upload-input"}))};var jI=n(4514),FI=n(8607),zI=n(4109);const BI=e=>{let{error:t}=e;return V.createElement("span",{className:"upload-message is-destructive"},t)},UI=e=>{let{fileName:t,showPreview:n}=e;const r=wcpaySettings.restUrl+gs.substring(1)+"/file/"+t;return V.createElement(V.Fragment,null,n&&t&&V.createElement("img",{src:r,style:{maxWidth:100,marginTop:12},alt:t}),!n&&t&&V.createElement("span",{className:"upload-message"},t))},VI=e=>{let{field:t,fileName:n,disabled:r,isDone:o,isLoading:a,accept:i,error:s,onFileChange:c,onFileRemove:l,help:d,showPreview:u,uploadButtonLabel:m,type:p="file"}=e;const y=s&&0<s.length||!1,h="image"===p?jI.Z:FI.Z,f=o&&!y?za.Z:h;return V.createElement(uh,{id:`form-file-upload-base-control-${t.key}`,label:t.label,help:d},V.createElement(RI,{onFilesDrop:e=>c(t.key,e[0])}),V.createElement("div",{className:"file-upload"},V.createElement(PI,{accept:i,onChange:e=>{c(t.key,(e.target.files||new FileList)[0])},render:e=>{let{openFileDialog:n}=e;return V.createElement(Jn,{id:`form-file-upload-${t.key}`,className:o&&!y?"is-success":"",isSecondary:!0,isDestructive:y,isBusy:a,disabled:r||a,icon:V.createElement(f,{size:18}),onClick:e=>((e,t)=>{var n;const r=null===(n=e.target.closest(".components-form-file-upload"))||void 0===n?void 0:n.querySelector('input[type="file"]');r&&(r.value=""),t()})(e,n)},m||(0,B.__)("Upload file","woocommerce-payments"))}}),y?V.createElement(BI,{error:s}):V.createElement(UI,{fileName:n,showPreview:u}),o&&!r?V.createElement(Jn,{className:"delete-uploaded-file-button","aria-label":(0,B.__)("Remove file","woocommerce-payments"),icon:V.createElement(zI.Z,{size:18}),onClick:()=>l(t.key)}):null))},HI=e=>{let{field:t,fileName:n,showPreview:r}=e;return V.createElement(uh,{id:`form-file-upload-base-control-${t.key}`,label:t.label},V.createElement(UI,{fileName:n?`: ${n}`:(0,B.__)(": Evidence file was not uploaded","woocommerce-payments"),showPreview:r}))},YI=[{key:"created",label:(0,B.__)("Dispute date","woocommerce-payments")},{key:"amount",label:(0,B.__)("Disputed amount","woocommerce-payments")},{key:"dueBy",label:(0,B.__)("Respond by","woocommerce-payments")},{key:"reason",label:(0,B.__)("Reason","woocommerce-payments")},{key:"order",label:(0,B.__)("Order","woocommerce-payments")},{key:"customer",label:(0,B.__)("Customer","woocommerce-payments")},{key:"transactionId",label:(0,B.__)("Transaction ID","woocommerce-payments")}],WI=e=>{const t="object"==typeof e.charge?e.charge.id:e.charge;return V.createElement(cs.Link,{href:Ty(t,"transactions")},t)},GI=e=>{const t=Jl[e.reason];return t?t.display:Ss(e.reason)},qI=e=>{let{dispute:t,isLoading:n}=e;const r=n?{created:"Created date",amount:"Amount",dueBy:"Due by date",reason:"Dispute reason",order:"Order link",customer:"Customer name",transactionId:"Transaction link"}:{created:(0,_s.dateI18n)("M j, Y",fs()(1e3*t.created).toISOString()),amount:cc(t.amount||0,t.currency||"USD"),dueBy:t.evidence_details?(0,_s.dateI18n)("M j, Y - g:iA",fs()(1e3*t.evidence_details.due_by).toISOString()):null,reason:GI(t),order:t.order?V.createElement(_f,{order:t.order}):null,customer:"object"==typeof t.charge?t.charge.billing_details.name:null,transactionId:WI(t)};return V.createElement("div",{className:"wcpay-dispute-info"},YI.map((e=>{let{key:t,label:o}=e;return null==r[t]?null:V.createElement("div",{key:t,className:"wcpay-dispute-info-item"},V.createElement(K_,{isLoading:n,display:"inline"},V.createElement("span",{className:"wcpay-dispute-info-key"},`${o}: `),V.createElement("span",{className:"wcpay-dispute-info-value"},r[t])))})))},ZI="__product_type",QI=e=>Array.isArray(e)?(0,W.flatten)(e.map(((e,t)=>[e,(0,Y.createElement)("br",{key:t})]))):e,KI=e=>{const{fields:t,evidence:n,onChange:r,onFileChange:o,onFileRemove:a,onSave:i,readOnly:s}=e,{createErrorNotice:c}=(0,ps.useDispatch)("core/notices"),{getNotices:l}=(0,ps.useSelect)("core/notices");if(!t||!t.length)return null;const d=e=>({label:e.label,value:n[e.key]||"",onChange:t=>{if(((e,t)=>!(e.maxLength&&t.length>=e.maxLength||Object.values({...n,[e.key]:t}).reduce(((e,t)=>"string"==typeof t?e+t.length:e),0)>=15e4))(e,t))r(e.key,t);else{const e=(0,B.__)("Reached maximum character count for evidence","woocommerce-payments");l().some((t=>t.content===e))||c(e)}},disabled:s,help:s&&QI(e.description)}),u=e=>{const t=n.metadata&&n.metadata[e.key]||"",r=n.isUploading&&(n.isUploading[e.key]||!1),i=n.uploadingErrors&&(n.uploadingErrors[e.key]||""),c=!r&&t.length>0;return{field:e,fileName:t,accept:".pdf, image/png, image/jpeg",onFileChange:o,onFileRemove:a,disabled:s,isLoading:r,isDone:c,error:i,help:s&&QI(e.description)}},m=e=>{const t=s&&!n[e.key];switch(e.type){case"file":return s?(0,Y.createElement)(HI,X({key:e.key},u(e))):(0,Y.createElement)(VI,X({key:e.key},u(e)));case"text":return(0,Y.createElement)(Gv,X({key:e.key,label:e.label,value:t?(0,B.__)("No information submitted","woocommerce-payments"):null,disabled:t},t?{}:d(e)));case"date":return(0,Y.createElement)(Gv,X({key:e.key,label:e.label,value:t?(0,B.__)("Date not submitted","woocommerce-payments"):null,disabled:t},t?{}:d(e)));default:return t?"":(0,Y.createElement)(Jv,X({key:e.key,maxLength:e.maxLength},d(e)))}},p=t.map((e=>(0,Y.createElement)(ko,{size:"large",key:e.key},(0,Y.createElement)(ff,null,e.title),(0,Y.createElement)(Mo,null,!s&&e.description&&(0,Y.createElement)("p",null,e.description),e.fields.map(m))))),y=(0,B.__)("Are you sure you're ready to submit this evidence? Evidence submissions are final.","woocommerce-payments");return(0,Y.createElement)(Y.Fragment,null,p,s?null:(0,Y.createElement)(ko,{size:"large"},(0,Y.createElement)(Mo,null,(0,Y.createElement)("p",null,(0,B.__)("When you submit your evidence, we'll format it and send it to the cardholder's bank, then email you once the dispute has been decided.","woocommerce-payments")),(0,Y.createElement)("p",null,(0,Y.createElement)("strong",null,(0,B.__)("Evidence submission is final.","woocommerce-payments"))," ",(0,B.__)("You can also save this evidence for later instead of submitting it immediately.","woocommerce-payments")," ",(0,Y.createElement)("strong",null,(0,B.__)("We will automatically submit any saved evidence at the due date.","woocommerce-payments")))),(0,Y.createElement)(ag,null,(0,Y.createElement)("div",null,(0,Y.createElement)(Jn,{isPrimary:!0,onClick:()=>window.confirm(y)&&i(!0)},(0,B.__)("Submit evidence","woocommerce-payments")),(0,Y.createElement)(Jn,{isSecondary:!0,onClick:()=>i(!1)},(0,B.__)("Save for later","woocommerce-payments"))))))},JI=e=>{const{isLoading:t,dispute:n={},productType:r,onChangeProductType:o,...a}=e,i=n&&"needs_response"!==n.status&&"warning_needs_response"!==n.status,s=!t&&n.id,c=(0,Y.createElement)(er,{className:"wcpay-test-mode-notice",status:"informational",isDismissible:!1},(0,B.__)("Evidence is already submitted. Details below are read-only.","woocommerce-payments"));return t||s?(0,Y.createElement)(Wa,{isNarrow:!0,className:"wcpay-dispute-evidence"},(0,Y.createElement)(Ls,{currentPage:"disputes",isDetailsView:!0}),i&&!t&&c,(0,Y.createElement)(Ya,null,(0,Y.createElement)(ko,{size:"large"},(0,Y.createElement)(ff,null,(0,Y.createElement)(K_,{isLoading:t,value:(0,B.__)("Challenge dispute","woocommerce-payments")})),(0,Y.createElement)(Mo,null,(0,Y.createElement)(qI,{dispute:n,isLoading:t})))),(0,Y.createElement)(Ya,null,(0,Y.createElement)(ko,{size:"large"},(0,Y.createElement)(ff,null,(0,Y.createElement)(K_,{isLoading:t,value:(0,B.__)("Product type","woocommerce-payments")})),(0,Y.createElement)(Mo,null,(0,Y.createElement)(Q_,{isLoading:t,numLines:2},(0,Y.createElement)(nf,{value:r,onChange:o,"data-testid":"dispute-challenge-product-type-selector",options:[{label:(0,B.__)("Select one…","woocommerce-payments"),disabled:!0,value:""},{label:(0,B.__)("Physical product","woocommerce-payments"),value:"physical_product"},{label:(0,B.__)("Digital product or service","woocommerce-payments"),value:"digital_product_or_service"},{label:(0,B.__)("Offline service","woocommerce-payments"),value:"offline_service"},{label:(0,B.__)("Multiple product types","woocommerce-payments"),value:"multiple"}],disabled:i}))))),!t&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(KI,X({},a,{readOnly:i})))):(0,Y.createElement)(Wa,{isNarrow:!0,className:"wcpay-dispute-details"},(0,Y.createElement)(Ls,{currentPage:"disputes",isDetailsView:!0}),(0,Y.createElement)("div",null,(0,B.__)("Dispute not loaded","woocommerce-payments")))},XI=e=>{let{query:t}=e;const n=`/wc/v3/payments/disputes/${t.id}`,[r,o]=(0,Y.useState)(),[a,i]=(0,Y.useState)(!1),[s,c]=(0,Y.useState)({}),{createSuccessNotice:l,createErrorNotice:d,createInfoNotice:u}=(0,ps.useDispatch)("core/notices"),m=!r||(0,W.isMatchWith)(r.evidence,s,((e,t)=>{if(null===e&&!t)return!0})),p=(e=>{const t=(0,Y.useRef)();return(0,Y.useEffect)((()=>{t.current=e})),(0,Y.useCallback)((()=>{const e=t.current();if(!e)return;const n=e=>{e.preventDefault(),e.returnValue=""};window.addEventListener("beforeunload",n);const r=(0,ky.getHistory)().block(e);return()=>{window.removeEventListener("beforeunload",n),r()}}),[])})((()=>{if(!m)return(0,B.__)("There are unsaved changes on this page. Are you sure you want to leave and discard the unsaved changes?","woocommerce-payments")}));(0,Y.useEffect)(p,[m,p]),(0,Y.useEffect)((()=>{(async()=>{i(!0);try{o(await va()({path:n}))}finally{i(!1)}})()}),[i,o,n]);const y=(e,t)=>c((n=>({...n,[e]:t}))),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o((t=>(0,W.merge)({},t,e)))},{updateDispute:f}=(()=>{const{updateDispute:e}=(0,ps.useDispatch)(vs);return{updateDispute:e}})(),_=(e=>{if(!e)return"";let t=e.metadata[ZI]||"";return!t&&e.evidence_details&&e.evidence_details.has_evidence&&(t="multiple"),t})(r),g=r&&r.reason,v=(0,Y.useMemo)((()=>((e,t)=>e&&t?"multiple"===t?Xv.map((e=>e.denormalized?null:{...e,fields:e.fields.filter((e=>!e.denormalized))})).filter(Boolean):Xv.map((n=>{const r=n.reason&&!(0,W.includes)(n.reason,e),o=n.productType&&n.productType!==t;if(r||o)return null;const a=n.fields.filter((e=>!e.productType||e.productType===t));return{...n,fields:a}})).filter(Boolean):[])(g,_)),[g,_]);return(0,Y.createElement)(JI,{isLoading:a,dispute:r,evidence:r?{...r.evidence,...s,metadata:r.metadata||{},isUploading:r.isUploading||{},uploadingErrors:r.uploadingErrors||{}}:{},onChange:y,onFileChange:async(e,t)=>{if(!t)return;if((e=>{if(45e5<(r.fileSize?Object.values(r.fileSize):[]).reduce(((e,t)=>e+t),0)+e)return u((0,B.__)("The files you've attached to this dispute as evidence will exceed the limit for a dispute's total size. Try using smaller files as evidence. Hint: if you've attached images, you might want to try providing them in lower resolutions.","woocommerce-payments")),!0})(t.size))return;Ca("wcpay_dispute_file_upload_started",{type:e});const n=new FormData;n.append("file",t),n.append("purpose","dispute_evidence"),h({metadata:{[e]:""},isUploading:{[e]:!0},uploadingErrors:{[e]:""}}),y(e,"");try{const t=await va()({path:"/wc/v3/payments/file",method:"post",body:n});h({metadata:{[e]:t.filename},isUploading:{[e]:!1},fileSize:{[e]:t.size}}),y(e,t.id),Ca("wcpay_dispute_file_upload_success",{type:e})}catch(t){Ca("wcpay_dispute_file_upload_failed",{message:t.message}),h({metadata:{[e]:""},isUploading:{[e]:!1},uploadingErrors:{[e]:t.message}}),y(e,"")}},onFileRemove:e=>{y(e,""),h({metadata:{[e]:""},uploadingErrors:{[e]:""},fileSize:{[e]:0}})},onSave:async e=>{if((0,W.some)(r.isUploading))u((0,B.__)("Please wait until file upload is finished","woocommerce-payments"));else{i(!0);try{Ca(e?"wcpay_dispute_submit_evidence_clicked":"wcpay_dispute_save_evidence_clicked");const{metadata:a}=r,i=await va()({path:n,method:"post",data:{evidence:{...r.evidence,...s},metadata:a,submit:e}});o(i),(e=>{const n=e?(0,B.__)("Evidence submitted!","woocommerce-payments"):(0,B.__)("Evidence saved!","woocommerce-payments"),r=bs({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"});Ca(e?"wcpay_dispute_submit_evidence_success":"wcpay_dispute_save_evidence_success"),l(n,{actions:[{label:e?(0,B.__)("View submitted evidence","woocommerce-payments"):(0,B.__)("Return to evidence submission","woocommerce-payments"),url:bs({page:"wc-admin",path:"/payments/disputes/challenge",id:t.id})}]}),window.location.replace(r)})(e),c({}),f(i)}catch(t){((e,t)=>{Ca(t?"wcpay_dispute_submit_evidence_failed":"wcpay_dispute_save_evidence_failed");const n=t?(0,B.__)("Failed to submit evidence. (%s)","woocommerce-payments"):(0,B.__)("Failed to save evidence. (%s)","woocommerce-payments");d((0,B.sprintf)(n,e.message))})(t,e)}finally{i(!1)}}},productType:_,onChangeProductType:e=>{Ca("wcpay_dispute_product_selected",{selection:e}),h({metadata:{[ZI]:e}})},fields:v})},eN=(0,V.createContext)({activeTask:"",setActiveTask:()=>null,completedTasks:{},setCompletedTasks:()=>null}),tN=e=>{let{children:t,defaultActiveTask:n="",defaultCompletedTasks:r={}}=e;const[o,a]=(0,V.useState)(n),[i,s]=(0,V.useState)(r),c=(0,V.useMemo)((()=>({activeTask:o,setActiveTask:a,completedTasks:i,setCompletedTasks:s})),[o,a,i]);return(0,Y.createElement)(eN.Provider,{value:c},t)},nN=(0,V.createContext)({isActive:!1,setActive:()=>null,isCompleted:!1,setCompleted:()=>null,taskId:""}),rN=e=>{let{children:t,id:n=""}=e;const{activeTask:r,completedTasks:o,setActiveTask:a,setCompletedTasks:i}=(0,V.useContext)(eN),s=(0,V.useMemo)((()=>({isActive:n===r,setActive:()=>a(n),setCompleted:function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";i((t=>({...t,[n]:e}))),t&&a(t)},taskId:n,isCompleted:Boolean(o[n])})),[a,i,r,o,n]);return(0,Y.createElement)(nN.Provider,{value:s},t)},oN=e=>{let{children:t}=e;const n=(0,V.useRef)(!0),r=(0,V.useRef)(null),{activeTask:o}=(0,V.useContext)(eN);return(0,V.useLayoutEffect)((()=>{if(!0===n.current)return void(n.current=!1);if(!r.current)return;const e=r.current.querySelector(".wcpay-wizard-task.is-active .wcpay-wizard-task__headline");e&&e.focus()}),[o]),(0,Y.createElement)("div",{ref:r},(0,Y.createElement)("ul",null,t))},aN=e=>{let{className:t,...n}=e;const{isActive:r}=(0,V.useContext)(nN);return(0,Y.createElement)("div",X({className:Z()("task-collapsible-body",t,{"is-active":r})},n))},iN=e=>{let{children:t,title:n,index:r,className:o}=e;const{isCompleted:a,isActive:i}=(0,V.useContext)(nN);return(0,Y.createElement)("li",{className:Z()("wcpay-wizard-task",o,{"is-completed":a,"is-active":i})},(0,Y.createElement)("div",{className:"wcpay-wizard-task__top-border"}),(0,Y.createElement)("div",{className:"wcpay-wizard-task__headline",tabIndex:"-1"},(0,Y.createElement)("div",{className:"wcpay-wizard-task__icon-wrapper"},(0,Y.createElement)("div",{className:"wcpay-wizard-task__icon-text"},r),(0,Y.createElement)(Xy,{icon:Ga,className:"wcpay-wizard-task__icon-checkmark"})),(0,Y.createElement)("span",{className:"wcpay-wizard-task__title"},n)),(0,Y.createElement)("div",{className:"wcpay-wizard-task__body"},t))};var sN,cN;const lN=(null===(cN=null===(sN=window.wcpaySettings)||void 0===sN?void 0:sN.accountStatus)||void 0===cN?void 0:cN.country)||"US",dN={card:{id:"card",label:(0,B.__)("Credit / Debit card","woocommerce-payments"),brandTitles:{amex:(0,B.__)("American Express","woocommerce-payments"),diners:(0,B.__)("Diners Club","woocommerce-payments"),discover:(0,B.__)("Discover","woocommerce-payments"),jcb:(0,B.__)("JCB","woocommerce-payments"),mastercard:(0,B.__)("Mastercard","woocommerce-payments"),unionpay:(0,B.__)("UnionPay","woocommerce-payments"),visa:(0,B.__)("Visa","woocommerce-payments")},description:(0,B.__)("Let your customers pay with major credit and debit cards without leaving your store.","woocommerce-payments"),icon:Ti,currencies:[],stripe_key:"card_payments",allows_manual_capture:!0,allows_pay_later:!1},au_becs_debit:{id:"au_becs_debit",label:(0,B.__)("BECS Direct Debit","woocommerce-payments"),brandTitles:{au_becs_debit:(0,B.__)("BECS Direct Debit","woocommerce-payments")},description:(0,B.__)("Bulk Electronic Clearing System — Accept secure bank transfer from Australia.","woocommerce-payments"),icon:xi,currencies:["AUD"],stripe_key:"au_becs_debit_payments",allows_manual_capture:!1,allows_pay_later:!1},bancontact:{id:"bancontact",label:(0,B.__)("Bancontact","woocommerce-payments"),brandTitles:{bancontact:(0,B.__)("Bancontact","woocommerce-payments")},description:(0,B.__)("Bancontact is a bank redirect payment method offered by more than 80% of online businesses in Belgium.","woocommerce-payments"),icon:Ni,currencies:["EUR"],stripe_key:"bancontact_payments",allows_manual_capture:!1,allows_pay_later:!1},eps:{id:"eps",label:(0,B.__)("EPS","woocommerce-payments"),brandTitles:{eps:(0,B.__)("EPS","woocommerce-payments")},description:(0,B.__)("Accept your payment with EPS — a common payment method in Austria.","woocommerce-payments"),icon:Li,currencies:["EUR"],stripe_key:"eps_payments",allows_manual_capture:!1,allows_pay_later:!1},giropay:{id:"giropay",label:(0,B.__)("giropay","woocommerce-payments"),brandTitles:{giropay:(0,B.__)("giropay","woocommerce-payments")},description:(0,B.__)("Expand your business with giropay — Germany’s second most popular payment system.","woocommerce-payments"),icon:Ai,currencies:["EUR"],stripe_key:"giropay_payments",allows_manual_capture:!1,allows_pay_later:!1},ideal:{id:"ideal",label:(0,B.__)("iDEAL","woocommerce-payments"),brandTitles:{ideal:(0,B.__)("iDEAL","woocommerce-payments")},description:(0,B.__)("Expand your business with iDEAL — Netherlands’s most popular payment method.","woocommerce-payments"),icon:Di,currencies:["EUR"],stripe_key:"ideal_payments",allows_manual_capture:!1,allows_pay_later:!1},p24:{id:"p24",label:(0,B.__)("Przelewy24 (P24)","woocommerce-payments"),brandTitles:{p24:(0,B.__)("Przelewy24 (P24)","woocommerce-payments")},description:(0,B.__)("Accept payments with Przelewy24 (P24), the most popular payment method in Poland.","woocommerce-payments"),icon:Fi,currencies:["EUR","PLN"],stripe_key:"p24_payments",allows_manual_capture:!1,allows_pay_later:!1},sepa_debit:{id:"sepa_debit",label:(0,B.__)("SEPA Direct Debit","woocommerce-payments"),brandTitles:{sepa_debit:(0,B.__)("SEPA Direct Debit","woocommerce-payments")},description:(0,B.__)("Reach 500 million customers and over 20 million businesses across the European Union.","woocommerce-payments"),icon:zi,currencies:["EUR"],stripe_key:"sepa_debit_payments",allows_manual_capture:!1,allows_pay_later:!1},sofort:{id:"sofort",label:(0,B.__)("Sofort","woocommerce-payments"),brandTitles:{sofort:(0,B.__)("Sofort","woocommerce-payments")},description:(0,B.__)("Accept secure bank transfers from Austria, Belgium, Germany, Italy, Netherlands, and Spain.","woocommerce-payments"),icon:Bi,currencies:["EUR"],stripe_key:"sofort_payments",allows_manual_capture:!1,allows_pay_later:!1},affirm:{id:"affirm",label:(0,B.__)("Affirm","woocommerce-payments"),brandTitles:{affirm:(0,B.__)("Affirm","woocommerce-payments")},description:(0,B.__)("Allow customers to pay over time with Affirm. Available to all customers paying in %s.","woocommerce-payments"),icon:$i,currencies:["USD","CAD"],stripe_key:"affirm_payments",allows_manual_capture:!1,allows_pay_later:!0},afterpay_clearpay:{id:"afterpay_clearpay",label:"GB"===lN?(0,B.__)("Clearpay","woocommerce-payments"):(0,B.__)("Afterpay","woocommerce-payments"),brandTitles:{afterpay_clearpay:"GB"===lN?(0,B.__)("Clearpay","woocommerce-payments"):(0,B.__)("Afterpay","woocommerce-payments")},description:"GB"===lN?(0,B.__)("Allow customers to pay over time with Clearpay. Available to all customers paying in %s.","woocommerce-payments"):(0,B.__)("Allow customers to pay over time with Afterpay. Available to all customers paying in %s.","woocommerce-payments"),icon:"GB"===lN?Ci:Si,currencies:["USD","AUD","CAD","NZD","GBP","EUR"],stripe_key:"afterpay_clearpay_payments",allows_manual_capture:!1,allows_pay_later:!0},jcb:{id:"jcb",label:(0,B.__)("JCB","woocommerce-payments"),brandTitles:{jcb:(0,B.__)("JCB","woocommerce-payments")},description:(0,B.__)("Let your customers pay with JCB, the only international payment brand based in Japan.","woocommerce-payments"),icon:Ri,currencies:["JPY"],stripe_key:"jcb_payments",allows_manual_capture:!1,allows_pay_later:!1},klarna:{id:"klarna",label:(0,B.__)("Klarna","woocommerce-payments"),brandTitles:{affirm:(0,B.__)("Klarna","woocommerce-payments")},description:(0,B.__)("Allow customers to pay over time with Klarna. Available to all customers paying in %s.","woocommerce-payments"),icon:Pi,currencies:["EUR","GBP","USD","DKK","NOK","SEK"],stripe_key:"klarna_payments",allows_manual_capture:!1,allows_pay_later:!0}},uN=e=>{let{name:t,showName:n}=e;const r=dN[t];if(!r)return(0,Y.createElement)(Y.Fragment,null);const{label:o,icon:a}=r;return(0,Y.createElement)("span",{className:Z()("woocommerce-payments__payment-method-icon")},(0,Y.createElement)(a,null),n&&(0,Y.createElement)("span",{className:"woocommerce-payments__payment-method-icon__label"},o))},mN=()=>{const[e]=bm(),t=e.length,{completedTasks:n}=(0,Y.useContext)(eN),r=n["add-payment-methods"];if(!r)return null;let o=0;if("object"==typeof r&&r.initialMethods){const{initialMethods:e}=r;o=t-e.length}return o<=0?(0,B.__)("Setup complete!","woocommerce-payments"):(0,B.sprintf)((0,B._n)("Setup complete! One new payment method is now live on your store!","Setup complete! %s new payment methods are now live on your store!",o,"woocommerce-payments"),o)},pN=()=>{const[e]=bm();return(0,Y.createElement)("ul",{className:"wcpay-wizard-task__description-element setup-complete-task__enabled-methods-list"},e.map((e=>(0,Y.createElement)("li",{key:e},(0,Y.createElement)(uN,{name:e,showName:!1})))))},yN=()=>{const{featureFlags:{multiCurrency:e}}=(0,Y.useContext)(w_);return(0,Y.createElement)(iN,{title:(0,B.__)("Enablement complete","woocommerce-payments"),index:2},(0,Y.createElement)(aN,null,(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},(0,Y.createElement)(mN,null)),(0,Y.createElement)(pN,null),(0,Y.createElement)("div",{className:"setup-complete-task__buttons"},(0,Y.createElement)(Jn,{href:"admin.php?page=wc-settings&tab=checkout§ion=woocommerce_payments",isPrimary:!0},(0,B.__)("Go to payments settings","woocommerce-payments")),e&&(0,Y.createElement)(Jn,{href:"admin.php?page=wc-settings&tab=wcpay_multi_currency",isTertiary:!0},(0,B.__)("Go to Multi-Currency settings","woocommerce-payments")))))},hN=e=>{let{children:t}=e;return H().createElement("ul",null,t)},fN=e=>{let{label:t,checked:n=!1,disabled:r=!1,onChange:o,hideLabel:a=!1,isAllowingManualCapture:i=!1,isSetupRequired:s=!1,setupTooltip:c="",delayMsOnCheck:l=0,delayMsOnUncheck:d=0,needsAttention:u=!1}=e;const[m,p]=(0,V.useState)(!1),[y,h]=(0,V.useState)(n),[f]=Nm();return(0,V.useEffect)((()=>{h(n)}),[h,n]),(0,Y.createElement)("div",{className:Z()("loadable-checkbox",a?"label-hidden":"")},m&&(0,Y.createElement)("div",{className:"loadable-checkbox__spinner"},(0,Y.createElement)("svg",{width:"131px",height:"131px",viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},(0,Y.createElement)("circle",{cx:"50",cy:"50",fill:"none",stroke:"#ffffff",strokeWidth:"12",r:"32",strokeDasharray:"150.79644737231007 52.26548245743669"},(0,Y.createElement)("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1.4492753623188404s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))),f&&!i||s||u?(0,Y.createElement)("div",{className:"loadable-checkbox__icon",style:{marginRight:"16px"}},(0,Y.createElement)(qy,{content:c,className:"wcpay-tooltip__tooltip--dark"},(0,Y.createElement)("div",null,(0,Y.createElement)(Ba.Z,{style:{color:"#F0B849",fill:"currentColor",marginBottom:"-5px"},size:20}),(0,Y.createElement)("div",{className:"loadable-checkbox__icon-warning","data-testid":"loadable-checkbox-icon-warning"},(0,Y.createElement)(Qn,null,(0,B.sprintf)((0,B.__)("%s cannot be enabled at checkout. Click to expand.","woocommerce-payments"),t)))))):(0,Y.createElement)(of,{label:t,checked:y,disabled:r,onChange:e=>(e=>{const t=e?l:d;t>0?(p(!0),setTimeout((()=>{o(e),p(!1)}),t)):o(e)})(e)}))},_N=["au_becs_debit","bancontact","eps","giropay","ideal","p24","sepa_debit","sofort","affirm","afterpay_clearpay","jcb","klarna"],gN="inactive",vN={AE:"united-arab-emirates",AU:"australia",AT:"austria",BE:"belgium",BG:"bulgaria",CA:"canada",CY:"cyprus",CZ:"czech-republic",FR:"france",LU:"luxembourg",DE:"germany",DK:"denmark",EE:"estonia",FI:"finland",GR:"greece",HK:"hong-kong",HR:"croatia",HU:"hungary",IE:"ireland",IT:"italy",JP:"japan",LT:"lithuania",LV:"latvia",MT:"malta",NL:"netherlands",NO:"norway",NZ:"new-zealand",PL:"poland",PT:"portugal",SG:"singapore",SI:"slovenia",SK:"slovakia",SW:"sweden",ES:"spain",CH:"switzerland",UK:"united-kingdom",US:"united-states",RO:"romania"},wN=e=>(0,B.sprintf)("%s%s","https://woo.com/document/woopayments/fees-and-debits/fees/#",vN[e]),bN=(e,t)=>e.fixed_rate&&e.percentage_rate?(0,B.sprintf)("%1$f%% + %2$s",Hg(e.percentage_rate*t),ic(e.fixed_rate*t,e.currency)):e.fixed_rate?(0,B.sprintf)("%1$s",ic(e.fixed_rate*t,e.currency)):e.percentage_rate?(0,B.sprintf)("%1$f%%",Hg(e.percentage_rate*t)):"",EN=e=>e.discount.length?e.discount[0]:e.base,$N=e=>{if(!e)return H().createElement(H().Fragment,null);const t=e.discount.length&&e.discount[0].discount?1-e.discount[0].discount:1,n={percentage_rate:e.base.percentage_rate+e.additional.percentage_rate+e.fx.percentage_rate,fixed_rate:e.base.fixed_rate+e.additional.fixed_rate+e.fx.fixed_rate,currency:e.base.currency},r=e=>e.fixed_rate>0||e.percentage_rate>0;return H().createElement("div",{className:"wcpay-fees-tooltip"},H().createElement("div",null,H().createElement("div",null,"Base fee"),H().createElement("div",null,bN(e.base,t))),r(e.additional)?H().createElement("div",null,H().createElement("div",null,"International payment method fee"),H().createElement("div",null,bN(e.additional,t))):"",r(e.fx)?H().createElement("div",null,H().createElement("div",null,"Foreign exchange fee"),H().createElement("div",null,bN(e.fx,t))):"",H().createElement("div",null,H().createElement("div",null,"Total per transaction"),H().createElement("div",{className:"wcpay-fees-tooltip__bold"},bN(n,t))),wcpaySettings&&wcpaySettings.connect&&wcpaySettings.connect.country?H().createElement("div",{className:"wcpay-fees-tooltip__hint-text"},H().createElement("span",null,(o=wcpaySettings.connect.country,vN.hasOwnProperty(o)?ss({mixedString:(0,B.sprintf)((0,B.__)("{{linkToStripePage /}} about %s Fees in your country","woocommerce-payments"),"WooPayments"),components:{linkToStripePage:H().createElement("a",{href:wN(wcpaySettings.connect.country),target:"_blank",rel:"noreferrer"},(0,B.__)("Learn more","woocommerce-payments"))}}):ss({mixedString:(0,B.sprintf)((0,B.__)("{{linkToStripePage /}} about %s Fees","woocommerce-payments"),"WooPayments"),components:{linkToStripePage:H().createElement("a",{href:"https://woo.com/document/woopayments/fees-and-debits/fees/",target:"_blank",rel:"noreferrer"},(0,B.__)("Learn more","woocommerce-payments"))}})))):"");var o},SN=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=e.base,r=EN(e),o=Object.assign({fee:(0,B.__)("%1$f%% + %2$s per transaction","woocommerce-payments"),discount:(0,B.__)("(%f%% discount)","woocommerce-payments"),tc_link:(0,B.__)(" — see <tclink>Terms and Conditions</tclink>","woocommerce-payments"),displayBaseFeeIfDifferent:!0},t),a=(0,B.sprintf)(o.fee,Hg(n.percentage_rate),ic(n.fixed_rate,n.currency));if(r.percentage_rate!==n.percentage_rate||r.fixed_rate!==n.fixed_rate||r.currency!==n.currency){const e=r;let t,i;e.discount?(t=n.percentage_rate*(1-e.discount),i=n.fixed_rate*(1-e.discount)):(t=r.percentage_rate,i=r.fixed_rate);let s=(0,B.sprintf)(o.fee,Hg(t),ic(i,n.currency));o.displayBaseFeeIfDifferent&&(s=(0,B.sprintf)((0,B.__)("<s>%1$s</s> %2$s","woocommerce-payments"),a,s)),e.discount&&0<o.discount.length&&(s+=" "+(0,B.sprintf)(o.discount,Hg(e.discount)));const c={s:H().createElement("s",null)};return e.tc_url&&0<o.tc_link.length&&(s+=" "+o.tc_link,c.tclink=H().createElement("a",{href:e.tc_url,target:"_blank",rel:"noreferrer"})),(0,Y.createInterpolateElement)(s,c)}return a},CN=e=>{let t;switch(e){case t_.AFTERPAY_CLEARPAY:case t_.AFFIRM:case t_.KLARNA:t="https://woo.com/document/woopayments/payment-methods/buy-now-pay-later/#contact-support";break;default:t="https://woo.com/document/woopayments/payment-methods/additional-payment-methods/#method-cant-be-enabled"}return t},kN=e=>{let{id:t,children:n}=e;return H().createElement(qy,{content:ss({mixedString:(0,B.__)("We need more information from you to enable this method. {{learnMoreLink}}Learn more.{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement("a",{target:"_blank",rel:"noreferrer",title:(0,B.__)("Learn more about enabling payment methods","woocommerce-payments"),href:CN(t)})}})},n)},IN=e=>{let{name:t}=e;const n=((e,t)=>{let{description:n,allows_pay_later:r}=dN[e];return n?(r&&(n=(0,B.sprintf)(n,t.toUpperCase())),n):null})(t,(0,ps.useSelect)((e=>e(vs).getAccountDomesticCurrency())));return n?H().createElement(qy,{content:n},H().createElement("div",{className:"payment-method-checkbox__info"},H().createElement(Qn,null,(0,B.__)("Information about the payment method, click to expand","woocommerce-payments")),H().createElement(_n,{icon:"info-outline"}))):null},NN=e=>{let{onChange:t,name:n,checked:r,fees:o,status:a,required:i,locked:s,isSetupRequired:c,setupTooltip:l}=e;var d;const{accountFees:u}=(0,V.useContext)(w_),m=(0,Y.useCallback)((e=>{s||t(n,e)}),[s,n,t]),p=gN===a;(0,V.useEffect)((()=>{p&&r&&m(!1)}),[p,r,m]);const[y]=Nm(),h=dN[n],f=y&&!h.allows_manual_capture;return H().createElement("li",{className:Z()("payment-method-checkbox",{overlay:f})},H().createElement(fN,{label:h.label,checked:r,disabled:p||s,onChange:e=>{m(e)},delayMsOnCheck:1500,delayMsOnUncheck:0,hideLabel:!0,isSetupRequired:c,setupTooltip:l,isAllowingManualCapture:h.allows_manual_capture}),H().createElement("div",{className:"woocommerce-payments__payment-method-icon"},h.icon({})),H().createElement("div",{className:"payment-method-checkbox__pills"},H().createElement("div",{className:"payment-method-checkbox__pills-left"},H().createElement("span",{className:"payment-method-checkbox__label"},h.label,i&&H().createElement("span",{className:"payment-method-checkbox__required-label"},(0,B.__)("Required","woocommerce-payments"))),"pending"===a&&H().createElement(qy,{content:(0,B.__)("This payment method is pending approval. Once approved, you will be able to use it.","woocommerce-payments")},H().createElement(vf,{className:"payment-status-pending-approval"},(0,B.__)("Pending approval","woocommerce-payments"))),"pending_verification"===a&&H().createElement(qy,{content:(0,B.sprintf)((0,B.__)("%s won't be visible to your customers until you provide the required information. Follow the instructions sent by our partner Stripe to %s.","woocommerce-payments"),h.label,null!==(d=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountEmail)&&void 0!==d?d:"")},H().createElement(vf,{className:"payment-status-pending-verification"},(0,B.__)("Pending activation","woocommerce-payments"))),p&&H().createElement(kN,{id:n},H().createElement(vf,{className:"payment-status-"+a},(0,B.__)("More information needed","woocommerce-payments")))),H().createElement("div",{className:"payment-method-checkbox__pills-right"},H().createElement(qy,{content:$N(u[n]),maxWidth:"300px"},H().createElement(vf,{"aria-label":(0,B.sprintf)((0,B.__)("Base transaction fees: %s","woocommerce-payments"),o)},H().createElement("span",null,(e=>{if(!e)return(0,B.__)("missing fees","woocommerce-payments");const t=(0,B.__)("From %1$f%% + %2$s","woocommerce-payments");return SN(e,{fee:t,discount:"",displayBaseFeeIfDifferent:!1})})(u[n])))),H().createElement(IN,{name:n}))))},xN=e=>{let{children:t,numLines:n}=e;const{isLoading:r}=Tm();return(0,Y.createElement)(Q_,{isLoading:r,numLines:n},t)},TN=e=>{if(1===e.length)return e[0];if(2===e.length)return e.join(" "+(0,B.__)("and","woocommerce-payments")+" ");const t=e.pop();return e.join(", ")+(0,B.__)(", and","woocommerce-payments")+" "+t},ON=e=>{let{selectedMethods:t}=e;const{isLoading:n,currencies:r}=Xm(),{enabledCurrencies:o}=ep();if(n)return null;const a=Object.values(o).map((e=>e.id));let i=[],s=[];const c=[];return t.map((e=>(void 0!==dN[e]&&dN[e].currencies.map((t=>{if(!a.includes(t.toLowerCase())){c.push(t),i.push(dN[e].label);const n=r&&r.available&&r.available[t],o=null!=n?n.name+" ("+(void 0!==n.symbol?n.symbol:t.toUpperCase())+")":t.toUpperCase();s.push(o)}return t})),e))),s=G().uniq(s),i=G().uniq(i),s.length>0?(0,Y.createElement)(Va,{icon:!0,status:"info",isDismissible:!1},ss({mixedString:(0,B.sprintf)((0,B.__)("%s %s %s additional %s, so {{strong}}we'll add %s to your store{{/strong}}. You can view & manage currencies later in settings.","woocommerce-payments"),TN(i),(0,B._n)("requires","require",i.length,"woocommerce-payments"),1===s.length?"an":"",(0,B._n)("currency","currencies",s.length,"woocommerce-payments"),TN(s)),components:{strong:(0,Y.createElement)("strong",null)}})):null},LN=e=>{const{featureFlags:{multiCurrency:t}}=(0,V.useContext)(w_);return t?(0,Y.createElement)(ON,e):null};var AN=n(1250);const MN=e=>{let{hasBorder:t,icon:n=(()=>null)}=e;return H().createElement("div",{className:"payment-confirm-illustration__wrapper"},H().createElement("div",{className:"payment-confirm-illustration__illustrations"},H().createElement(n,{className:Z()("payment-confirm-illustration__payment-icon",{"has-border":t})}),H().createElement(AN.Z,{className:"payment-confirm-illustration__payment-question-mark-icon"})))},DN={"individual.id_number":(0,B.__)("Personal Identification Number","woocommerce-payments"),"business_profile.url":(0,B.__)("Business Website","woocommerce-payments"),"company.tax_id":(0,B.__)("Business Number","woocommerce-payments")},RN=e=>{let{paymentMethod:t,requirements:n,onClose:r,onConfirmClose:o}=e;var a;const i=n.filter((e=>DN.hasOwnProperty(e))),s=dN[t];return H().createElement(df,{title:(0,B.sprintf)((0,B.__)("One more step to enable %s","woocommerce_payments"),s.label),shouldCloseOnClickOutside:!1,onRequestClose:r,className:"wcpay-payment-method-confirmation-modal",actions:H().createElement(H().Fragment,null,H().createElement(Jn,{isSecondary:!0,onClick:r},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{isPrimary:!0,onClick:()=>{o()}},(0,B.__)("Continue","woocommerce-payments")))},H().createElement(MN,{icon:s.icon,hasBorder:"card"!==s.id}),0<i.length?H().createElement(H().Fragment,null,H().createElement("p",null,(0,B.sprintf)((0,B.__)("You need to provide more information to enable %s on your checkout:","woocommerce-payments"),s.label)),H().createElement("ul",{className:"payment-method-requirements-list"},i.map(((e,t)=>{var n;return H().createElement("li",{key:"requirement"+t},null!==(n=DN[e])&&void 0!==n?n:e)})))):H().createElement("p",null,(0,B.sprintf)((0,B.__)("You need to provide more information to enable %s on your checkout.","woocommerce-payments"),s.label)),H().createElement("p",null,ss({mixedString:(0,B.__)("If you choose to continue, our payment partner Stripe will send an e-mail to {{merchantEmail /}} to collect the required information","woocommerce-payments"),components:{merchantEmail:H().createElement("b",null,null!==(a=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountEmail)&&void 0!==a?a:"")}})))},PN=e=>{let{paymentMethodsState:t}=e;const{setCompleted:n}=(0,V.useContext)(nN),[r,o]=bm(),{saveSettings:a,isSaving:i}=Tm(),s=(0,V.useMemo)((()=>Object.entries(t).map((e=>{let[t,n]=e;return n&&t})).filter(Boolean)),[t]),c=Object.entries(t).map((e=>{let[t,n]=e;return!n&&t})).filter(Boolean),l=(0,V.useCallback)((()=>{(async()=>{o([...new Set([...r,...s].filter((e=>!c.includes(e))))]),await a()?n({initialMethods:r},"setup-complete"):o(r)})()}),[c,s,o,a,n,r]);return(0,Y.createElement)(Jn,{isBusy:i,disabled:i||s.length<1,onClick:l,isPrimary:!0},(0,B.__)("Continue","woocommerce-payments"))},jN=()=>{var e,t,n,r;const o=(0,ps.useSelect)((e=>e(vs).getAvailablePaymentMethodIds())),a=(0,ps.useSelect)((e=>e(vs).getPaymentMethodStatuses())),{isActive:i}=(0,V.useContext)(nN),s=null===(e=wcpaySettings)||void 0===e||null===(t=e.progressiveOnboarding)||void 0===t?void 0:t.isEnabled,c=null===(n=wcpaySettings)||void 0===n||null===(r=n.progressiveOnboarding)||void 0===r?void 0:r.isComplete,l=s&&!c,[d,u]=(()=>{const[e,t]=(0,V.useState)({card:!0});return[e,(0,V.useCallback)(((e,n)=>{t((t=>({...t,[e]:n})))}),[t])]})();(0,V.useEffect)((()=>{o.filter((e=>_N.includes(e))).forEach((e=>{u(e,!1)}))}),[o,u]);const m=(0,V.useMemo)((()=>Object.entries(d).map((e=>{let[t,n]=e;return n&&t})).filter(Boolean)),[d]),[p,y]=(0,V.useState)(null),h=e=>{u(e,!0),y(null)},f=e=>{var t;const n=dN[e].stripe_key,r=null!==(t=a[n])&&void 0!==t?t:[];return r?{status:r.status,requirements:r.requirements}:{status:"unrequested",requirements:[]}},_=e=>e.map((e=>{const{label:t,currencies:n}=dN[e];if(o.includes(e)){let o=!1,i="";if(!wcpaySettings.isMultiCurrencyEnabled&&e!==t_.CARD){const e=wcpaySettings.storeCurrency;n.indexOf(e)<0&&(o=!0,r=t,a=n,i=(0,B.sprintf)((0,B.__)("%s requires the %s %s. In order to enable the payment method, you must add %s to your store.","woocommerce-payments"),r,TN(a),(0,B._n)("currency","currencies",a.length,"woocommerce-payments"),(0,B._n)("this currency","these currencies",a.length,"woocommerce-payments")))}return(0,Y.createElement)(NN,{key:e,checked:d[e]&&gN!==f(e).status,setupTooltip:i,isSetupRequired:o,status:f(e).status,locked:l,onChange:(e,t)=>{((e,t)=>{if(t){const t=f(e);"unrequested"===t.status&&t.requirements.length>0?y({id:e,requirements:t.requirements}):h(e)}else u(e,!1)})(e,t)},name:e})}var r,a;return""})),g=_N.filter((e=>dN[e].allows_pay_later&&o.includes(e)));return(0,Y.createElement)(iN,{className:"add-payment-methods-task",title:(0,B.__)("Enable additional payment methods","woocommerce-payments"),index:1},(0,Y.createElement)(aN,null,(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},ss({mixedString:(0,B.__)("Increase your store’s conversion by offering your customers preferred and convenient payment methods on checkout.","woocommerce-payments"),components:{learnMoreLink:(0,Y.createElement)(cf,{href:"https://woo.com/document/woopayments/payment-methods/additional-payment-methods/"})}})),l&&(0,Y.createElement)(er,{status:"warning",isDismissible:!1,className:"po__notice"},(0,Y.createElement)("span",null,(0,B.__)("Some payment methods cannot be enabled because more information is needed about your account. ","woocommerce-payments")),(0,Y.createElement)("a",{href:"https://woo.com/document/woopayments/payment-methods/additional-payment-methods/#method-cant-be-enabled",target:"_blank",rel:"external noreferrer noopener"},(0,B.__)("Learn more about enabling additional payment methods.","woocommerce-payments"))),(0,Y.createElement)(ko,{className:"add-payment-methods-task__payment-selector-wrapper",size:"small"},(0,Y.createElement)(Mo,null,(0,Y.createElement)("p",{className:"add-payment-methods-task__payment-selector-title wcpay-wizard-task__description-element"},(0,B.__)("Popular in your country","woocommerce-payments")),(0,Y.createElement)(Q_,{numLines:10,isLoading:!i},(0,Y.createElement)(xN,{numLines:10},(0,Y.createElement)(hN,null,(0,Y.createElement)(NN,{key:"card",checked:d.card,required:!0,locked:!0,status:f("card").status,name:"card"}),_(_N.filter((e=>!dN[e].allows_pay_later))))))),wcpaySettings.isBnplAffirmAfterpayEnabled&&g.length>0&&(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(_a,null),(0,Y.createElement)(Mo,null,(0,Y.createElement)("p",{className:"add-payment-methods-task__payment-selector-title wcpay-wizard-task__description-element"},(0,B.__)("Buy Now, Pay Later","woocommerce-payments")),(0,Y.createElement)(Q_,{numLines:10,isLoading:!i},(0,Y.createElement)(xN,{numLines:10},(0,Y.createElement)(hN,null,_(g)))))),p&&(0,Y.createElement)(RN,{onClose:()=>{y(null)},onConfirmClose:()=>{h(p.id)},requirements:p.requirements,paymentMethod:p.id})),(0,Y.createElement)(LN,{selectedMethods:m}),(0,Y.createElement)(Q_,{numLines:10,isLoading:!i},(0,Y.createElement)(PN,{paymentMethodsState:d}))))},FN=()=>(0,Y.createElement)(ko,{className:"upe-preview-methods-selector"},(0,Y.createElement)(Mo,null,(0,Y.createElement)(tN,{defaultActiveTask:"add-payment-methods"},(0,Y.createElement)(oN,null,(0,Y.createElement)(rN,{id:"add-payment-methods"},(0,Y.createElement)(jN,null)),(0,Y.createElement)(rN,{id:"setup-complete"},(0,Y.createElement)(yN,null)))))),zN=()=>(0,Y.createElement)(Wa,null,(0,Y.createElement)(w_.Provider,{value:window.wcpaySettings},(0,Y.createElement)(FN,null))),BN=e=>{let{children:t,title:n,index:r,className:o,visibleDescription:a}=e;const{isCompleted:i,isActive:s}=(0,V.useContext)(nN);return(0,Y.createElement)("li",{className:Z()("wcpay-wizard-task",o,{"is-completed":i,"is-active":s})},(0,Y.createElement)("div",{className:"wcpay-wizard-task__top-border"}),(0,Y.createElement)("div",{className:"wcpay-wizard-task__headline",tabIndex:"-1"},(0,Y.createElement)("div",{className:"wcpay-wizard-task__icon-wrapper"},(0,Y.createElement)("div",{className:"wcpay-wizard-task__icon-text"},r),(0,Y.createElement)(Xy,{icon:Ga,className:"wcpay-wizard-task__icon-checkmark"})),(0,Y.createElement)("span",{className:"wcpay-wizard-task__title"},n)),a&&!s&&(0,Y.createElement)("span",{className:Z()("wcpay-wizard-task__visible-description-element","is-muted-color")},a),(0,Y.createElement)("div",{className:"wcpay-wizard-task__body"},t))},UN=e=>{let{isPreviewModalOpen:t,setPreviewModalOpen:n,isStorefrontSwitcherEnabledValue:r,isAutomaticSwitchEnabledValue:o}=e;const{storeSettings:a}=tp();return t&&(0,Y.createElement)(es,{title:(0,B.__)("Preview","woocommerce-payments"),isDismissible:!0,className:"multi-currency-store-settings-preview-modal",shouldCloseOnClickOutside:!1,onRequestClose:()=>{n(!1)}},(0,Y.createElement)("iframe",{title:(0,B.__)("Preview","woocommerce-payments"),className:"multi-currency-store-settings-preview-iframe",src:"/"+a.store_url+"?is_mc_onboarding_simulation=1&enable_storefront_switcher="+r+"&enable_auto_currency="+o}))},VN=()=>{const{storeSettings:e,submitStoreSettingsUpdate:t}=tp(),{saveSettings:n,isSaving:r}=Tm(),[o,a]=(()=>{const{updateIsMultiCurrencyEnabled:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getIsMultiCurrencyEnabled())),e]})(),[i,s]=(0,V.useState)(!1),[c,l]=(0,V.useState)(!1),[d,u]=(0,V.useState)(!1),[m,p]=(0,V.useState)(!1);(0,V.useEffect)((()=>{Object.keys(e).length&&(u(e.enable_storefront_switcher),l(e.enable_auto_currency))}),[l,u,e]);const{setCompleted:y}=(0,V.useContext)(nN);return(0,Y.createElement)(BN,{title:ss({mixedString:(0,B.__)("{{wrapper}}Review store settings{{/wrapper}}","woocommerce-payments"),components:{wrapper:(0,Y.createElement)("span",null)}}),visibleDescription:(0,B.__)("These settings can be changed any time by visiting the Multi-Currency settings","woocommerce-payments"),index:2},(0,Y.createElement)(aN,{className:"multi-currency-settings-task__body"},(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},(0,B.__)("These settings can be changed any time by visiting the Multi-Currency settings","woocommerce-payments")),(0,Y.createElement)(ko,{className:"multi-currency-settings-task__wrapper"},(0,Y.createElement)(Mo,null,(0,Y.createElement)(of,{checked:c,onChange:e=>{l(e)},"data-testid":"enable_auto_currency",label:(0,B.__)("Automatically switch customers to their local currency if it has been enabled","woocommerce-payments")}),(0,Y.createElement)("div",{className:"multi-currency-settings-task__description"},(0,B.__)("Customers will be notified via store alert banner.","woocommerce-payments")),"Storefront"===e.site_theme?(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(of,{checked:d,onChange:e=>{u(e)},"data-testid":"enable_storefront_switcher",label:(0,B.__)("Add a currency switcher to the Storefront theme on breadcrumb section.","woocommerce-payments")}),(0,Y.createElement)("div",{className:"multi-currency-settings-task__description"},(0,B.__)("A currency switcher is also available in your widgets.","woocommerce-payments"))):null)),(0,Y.createElement)(Jn,{isBusy:i||r,disabled:i||r,onClick:()=>{s(!0),o||(a(!0),n()),t(c,d,!o),s(!1),y(!0,"setup-complete")},variant:"primary"},(0,B.__)("Continue","woocommerce-payments")),(0,Y.createElement)(Jn,{isBusy:i||r,disabled:i||r,onClick:()=>{p(!0)},className:"multi-currency-setup-preview-button",variant:"tertiary"},(0,B.__)("Preview","woocommerce-payments")),(0,Y.createElement)(UN,{isPreviewModalOpen:m,setPreviewModalOpen:p,isStorefrontSwitcherEnabledValue:d,isAutomaticSwitchEnabledValue:c})))},HN=()=>{const{isActive:e}=(0,Y.useContext)(nN),t=np(),{updateOptions:n}=(0,ps.useDispatch)("wc/admin/options");return(0,Y.useEffect)((()=>{e&&(n({wcpay_multi_currency_setup_completed:"yes"}),window.wcpaySettings.multiCurrencySetup.isSetupCompleted="yes")}),[e,n]),(0,Y.createElement)(BN,{title:(0,B.__)("Setup complete","woocommerce-payments"),index:3},(0,Y.createElement)(aN,null,(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},(0,B.__)("You're ready to begin accepting payments using foreign currencies!","woocommerce-payments")),(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},(0,B.sprintf)((0,B.__)("Your product prices are automatically converted from your default currency (%s) based on the currency exchange rate and formatting rules for each currency.","woocommerce-payments"),t&&t.name)),(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},(0,B.__)("To enter your own exchange rates or update the formatting rules for each currency, visit the Multi-Currency settings.","woocommerce-payments")),(0,Y.createElement)("br",null),(0,Y.createElement)("div",{className:"setup-complete-task__buttons"},(0,Y.createElement)(Jn,{href:"admin.php?page=wc-admin",isPrimary:!0},(0,B.__)("Back to home","woocommerce-payments")),(0,Y.createElement)(Jn,{href:"admin.php?page=wc-settings&tab=wcpay_multi_currency",isTertiary:!0},(0,B.__)("View Multi-Currency settings","woocommerce-payments")))))},YN=e=>{let{children:t}=e;return(0,Y.createElement)("ul",null,t)},WN=e=>{let{onChange:t,checked:n=!1,currency:{flag:r,symbol:o,code:a,name:i},testId:s=null}=e;const c=(0,Y.useCallback)((e=>{t(a,e)}),[a,t]);return(0,Y.createElement)("li",{className:"enabled-currency-checkbox","data-testid":s},(0,Y.createElement)(of,{code:a,checked:n,onChange:c,label:ss({mixedString:"{{flag /}} {{name /}} {{code /}}",components:{flag:(0,Y.createElement)("span",{className:"enabled-currency-checkbox__flag"},""!==r?r:(0,Y.createElement)("div",{className:"enabled-currency-checkbox__flag-text"},(0,Y.createElement)("span",null,a))),name:(0,Y.createElement)("span",null,i),code:(0,Y.createElement)("span",{className:"enabled-currency-checkbox__code"},"(",o,o!==a&&" "+a,")")}})}))},GN=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M13.5 6C10.5 6 8 8.5 8 11.5c0 1.1.3 2.1.9 3l-3.4 3 1 1.1 3.4-2.9c1 .9 2.2 1.4 3.6 1.4 3 0 5.5-2.5 5.5-5.5C19 8.5 16.5 6 13.5 6zm0 9.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"})),qN=e=>(0,Y.createElement)("div",{className:"search"},(0,Y.createElement)(Xy,{className:"search__icon",icon:GN}),(0,Y.createElement)("input",X({},e,{type:"text",className:"components-text-control__input"}))),ZN=[(0,B.__)("any","woocommerce-payments"),(0,B.__)("one","woocommerce-payments"),(0,B.__)("two","woocommerce-payments"),(0,B.__)("three","woocommerce-payments"),(0,B.__)("four","woocommerce-payments"),(0,B.__)("five","woocommerce-payments"),(0,B.__)("six","woocommerce-payments"),(0,B.__)("seven","woocommerce-payments"),(0,B.__)("eight","woocommerce-payments"),(0,B.__)("nine","woocommerce-payments")],QN=["USD","EUR","JPY","GBP","AUD","CAD","INR"],KN=e=>{if(e&&e.name&&e.symbol&&e.code){const t=e.name,n=e.code===e.symbol?e.code:(0,B.sprintf)("%s %s",e.symbol,e.code);return(0,B.sprintf)("%s (%s)",t,n)}return""},JN=(e,t,n)=>{const r=e.filter((e=>e!==t&&n[e])),o=(0,B.__)("and","woocommerce-payments");return r.map((e=>KN(n[e]))).join(", ").replace(/, ([^,]+)$/,2===r.length?" "+o+" $1":", "+o+" $1")},XN=e=>{let{enabledCurrencyCodes:t,selectedCurrencyCodes:n,selectedCurrencyCodesLength:r,isSaving:o,submitEnabledCurrenciesUpdate:a,setCompleted:i,setSaving:s}=e;const c=t.length<=1&&r<1;return(0,Y.createElement)(Jn,{isBusy:o,disabled:o||c,onClick:()=>{r>0&&(s(!0),a([...t,...n].sort()),s(!1)),i({initialCurrencies:t},"multi-currency-settings")},variant:"primary"},0===r?t.length>1?(0,B.__)("Continue","woocommerce-payments"):(0,B.__)("Add currencies","woocommerce-payments"):(0,B.sprintf)((0,B._n)("Add %s currency","Add %s currencies",r,"woocommerce-payments"),r))},ex=()=>{const{isLoading:e}=Xm(),[t,n]=(0,V.useState)(!1),{isActive:r,setCompleted:o}=(0,V.useContext)(nN),{enabledCurrencies:a,submitEnabledCurrenciesUpdate:i}=ep(),s=(0,ps.useSelect)((e=>{const{getAvailableCurrencies:t}=e(vs);return t()})),c=np(),l=Object.keys(s),d=Object.keys(a),u=c.code,m=l.filter((e=>!d.includes(e))),p=QN.filter((e=>m.includes(e))),[y,h]=(0,V.useState)(p);(0,V.useEffect)((()=>{r&&h(p)}),[p.length]);const f=y.length,_=(e,t)=>{h(t?[...y,e]:G().without(y,e))},[g,v]=(0,V.useState)(""),w=g?m.filter((e=>{const{symbol:t,name:n}=s[e];return`${t} ${e} ${n}`.toLocaleLowerCase().indexOf(g.toLocaleLowerCase())>-1})):m.filter((e=>!QN.includes(e))),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return l.length&&(0,Y.createElement)(WN,{key:"currency-checkbox-"+s[e].id,checked:y.includes(e),onChange:_,currency:s[e],testId:G().isString(t)?t:null})};return(0,Y.createElement)(BN,{className:"add-currencies-task",title:(0,B.__)("Add currencies","woocommerce-payments"),visibleDescription:(0,B.sprintf)((0,B._n)("%s currency added","%s currencies added",f,"woocommerce-payments"),f<10?G().capitalize(ZN[f]):f),index:1},(0,Y.createElement)(aN,null,(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},!e&&ss({mixedString:(0,B.__)("Add currencies so international customers can shop and pay in their local currency. Your store's default currency is {{storeCurrencyText /}}.","woocommerce-payments"),components:{storeCurrencyText:(0,Y.createElement)("strong",null,KN(c))}})),d.length>1&&(0,Y.createElement)("p",{className:"wcpay-wizard-task__description-element is-muted-color"},ss({mixedString:(0,B.__)("You've already added {{enabledCurrenciesText /}} to your store.","woocommerce-payments"),components:{enabledCurrenciesText:(0,Y.createElement)("strong",null,JN(d,u,s))}})),(0,Y.createElement)(ko,{className:"add-currencies-task__currency-selector-wrapper"},(0,Y.createElement)(Mo,null,(0,Y.createElement)("div",{className:"add-currencies-task__search"},(0,Y.createElement)(qN,{value:g,placeholder:(0,B.__)("Search currencies","woocommerce-payments"),onChange:e=>{v(e.target.value)}})),(0,Y.createElement)("div",{className:"add-currencies-task__separator"}),g&&(0,Y.createElement)("h4",null,(0,B.sprintf)((0,B.__)("Search results (%1$d currencies)","woocommerce-payments"),w.length)),(0,Y.createElement)(Q_,{numLines:30,isLoading:e&&s},(0,Y.createElement)("div",{className:"add-currencies-task__content"},(0,Y.createElement)(YN,null,!g&&p.length?(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("li",null,(0,Y.createElement)("h4",null,(0,B.__)("Recommended currencies","woocommerce-payments"))),p.map((e=>b(e,"recommended-currency"))),(0,Y.createElement)("li",{className:"add-currencies-task__separator"})):"",!g&&(0,Y.createElement)("li",{className:"add-currencies-task__available-currencies"},(0,Y.createElement)("h4",null,(0,B.__)("All currencies","woocommerce-payments"))),w.map(b)))))),(0,Y.createElement)(Q_,{numLines:5,isLoading:e&&s},(0,Y.createElement)(XN,{enabledCurrencyCodes:d,selectedCurrencyCodes:y,selectedCurrencyCodesLength:f,isSaving:t,submitEnabledCurrenciesUpdate:i,setCompleted:o,setSaving:n}))))},tx=e=>{let{isSetupCompleted:t}=e;return"yes"===t?(window.location.assign("admin.php?page=wc-settings&tab=wcpay_multi_currency"),null):(0,Y.createElement)(ko,{className:"multi-currency-setup-wizard"},(0,Y.createElement)(Mo,null,(0,Y.createElement)(tN,{defaultActiveTask:"add-currencies"},(0,Y.createElement)(oN,null,(0,Y.createElement)(rN,{id:"add-currencies"},(0,Y.createElement)(ex,null)),(0,Y.createElement)(rN,{id:"multi-currency-settings"},(0,Y.createElement)(VN,null)),(0,Y.createElement)(rN,{id:"setup-complete"},(0,Y.createElement)(HN,null))))))},nx=()=>{const{isSetupCompleted:e}=window.wcpaySettings.multiCurrencySetup;return(0,Y.createElement)(Wa,null,(0,Y.createElement)(w_.Provider,{value:window.wcpaySettings},(0,Y.createElement)(tx,{isSetupCompleted:e})))},rx=e=>{let{description:t=(()=>null),children:n,className:r,id:o}=e;return H().createElement("div",{className:Z()("settings-section",r),id:o},H().createElement("div",{className:"settings-section__details"},H().createElement(t,null)),H().createElement("div",{className:"settings-section__controls"},n))};var ox=n(2722);const ax=e=>(0,Y.createElement)("img",X({src:ox,width:"241",height:"64",alt:"WooPayments logo"},e)),ix=e=>{let t,n,r,{style:o}=e,a="woocommerce-payments-banner";return"account-page"===o?(t=196,n=65,r=!0,a+=" account-page"):(t=257,n=70,r=!1),(0,Y.createElement)(ko,{size:"large",className:a},(0,Y.createElement)(Mo,null,(0,Y.createElement)(ax,{width:t,height:n,className:"woocommerce-payments-banner-logo"}),r&&(0,Y.createElement)("div",{className:"woocommerce-payments-banner-pill"},(0,Y.createElement)("div",null,(0,B.__)("Recommended","woocommerce-payments")))))},sx=e=>{let{children:t,displayBanner:n=!0}=e;return(0,Y.createElement)("div",{className:"wcpay-settings-layout"},n&&(0,Y.createElement)(ix,null),t)},cx=e=>{let{reader:t}=e;const{id:n,device_type:r,is_active:o}=t,a=o?(0,B.__)("Active","woocommerce-payments"):(0,B.__)("Inactive","woocommerce-payments");return H().createElement("li",{className:Z()("card-readers-item",n)},H().createElement("div",{className:"card-readers-item__id"},H().createElement("span",null,n)),H().createElement("div",{className:"card-readers-item__type"},H().createElement("span",null,r)),H().createElement("div",{className:"card-readers-item__status"},H().createElement("span",{className:o?"active":"inactive"},a)))},lx=()=>H().createElement(H().Fragment,null,H().createElement("h2",null,(0,B.__)("Connected card readers","woocommerce-payments")),H().createElement("p",null,(0,B.sprintf)((0,B.__)("Card readers are marked as active if they’ve processed one or more transactions during the current billing cycle. To connect or disconnect card readers, use the %s mobile application.","woocommerce-payments"),"WooPayments"))),dx=()=>{const{readers:e,isLoading:t}=(10,(0,ps.useSelect)((e=>{const{getCardReaders:t,isResolving:n}=e(vs),r={limit:10};return{readers:t(r),isLoading:n("getCardReaders",[r])}}),[10]));return H().createElement(sx,{displayBanner:!1},H().createElement(rx,{description:lx},H().createElement(xN,{numLines:20},H().createElement(ko,{className:"card-readers-list__wrapper"},H().createElement(Mo,{className:"card-readers-list__header"},H().createElement("div",{className:"card-readers-list__header-id"},(0,B.__)("Reader ID","woocommerce-payments")),H().createElement("div",{className:"card-readers-list__header-model"},(0,B.__)("Model","woocommerce-payments")),H().createElement("div",{className:"card-readers-list__header-status"},(0,B.__)("Status","woocommerce-payments"))),H().createElement(_a,null),H().createElement(Mo,{className:"card-readers-list__body"},H().createElement("ul",null,!t&&Object.entries(e).map((e=>{let[t,n]=e;return H().createElement(cx,{key:t,reader:n})}))))))))};var ux=n(4116);const mx=e=>{let{onRequestClose:t}=e;const[n,r]=(0,V.useState)(!0);return(0,Y.createElement)(es,{title:(0,Y.createElement)("img",{src:ux,alt:(0,B.__)("WooPay Logo","woocommerce-payments"),className:"woopay-disable-feedback-logo"}),isDismissible:!0,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!0,onRequestClose:t,className:"woopay-disable-feedback"},(0,Y.createElement)(K_,{isLoading:n},(0,Y.createElement)("iframe",{title:(0,B.__)("WooPay Disable Feedback","woocommerce-payments"),src:"https://woocommerce.survey.fm/woopay-disabled-merchants-feedback-triggered",className:"woopay-disable-feedback-iframe",onLoad:()=>{r(!1)}})))},px=e=>{let{disabled:t=!1}=e;const{saveSettings:n,isSaving:r,isLoading:o}=Tm(),a=xm(),[i,s]=(0,V.useState)(null),[c,l]=(0,V.useState)(null),[d,u]=(0,V.useState)(!1);return null===i&&a&&void 0!==a.is_payment_request_enabled&&s(a.is_payment_request_enabled),null===c&&a&&void 0!==a.is_woopay_enabled&&l(a.is_woopay_enabled),(0,Y.createElement)(rx,{className:"save-settings-section"},(0,Y.createElement)(Jn,{isPrimary:!0,isBusy:r,disabled:r||o||t,onClick:async()=>{if(await n()&&(i!==a.is_payment_request_enabled&&(Ca("wcpay_payment_request_settings_change",{enabled:a.is_payment_request_enabled?"yes":"no"}),s(a.is_payment_request_enabled)),c&&!a.is_woopay_enabled)){const{woopayLastDisableDate:e}=wcpaySettings;if(e){const t=new Date(e),n=new Date,r=Math.abs(n-t);if(Math.ceil(r/864e5)<7)return}u(!0),s(!0),wcpaySettings.woopayLastDisableDate=new Date}}},(0,B.__)("Save changes","woocommerce-payments")),d?(0,Y.createElement)(mx,{onRequestClose:()=>u(!1)}):null)},yx=e=>{let{setInputsValid:t}=e;const[n,r]=(0,Y.useState)(!1),[o,a]=Em(),[i,s]=$m();return(0,V.useLayoutEffect)((()=>{const e=document.querySelector(".card-readers-business-url-input input");e.focus(),e.blur()}),[]),(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("h4",null,(0,B.__)("Business details","woocommerce-payments")),(0,Y.createElement)(Gv,{className:"card-readers-business-name-input",label:(0,B.__)("Business name","woocommerce-payments"),value:o,onChange:a}),n&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,Y.createElement)("span",null,(0,B.__)("Error: Invalid business URL, should start with http:// or https:// prefix.","woocommerce-payments"))),(0,Y.createElement)(Gv,{className:"card-readers-business-url-input",label:(0,B.__)("Business URL","woocommerce-payments"),value:i,onChange:s,onBlur:e=>{e.target.checkValidity()?(r(!1),t(!0)):(r(!0),t(!1))},type:"url"}))};var hx=n(8699),fx=n.n(hx),_x=n(1553),gx=n.n(_x);const vx=e=>{var{onValueChange:t,value:n,onValidationChange:r=(e=>e),onCountryDropdownClick:o,inputProps:a={label:"",ariaLabel:"",name:""},isBlocksCheckout:i}=e,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["onValueChange","value","onValidationChange","onCountryDropdownClick","inputProps","isBlocksCheckout"]);const[c,l]=(0,V.useState)(null),d=(0,V.useRef)(null);return(0,V.useEffect)((()=>{var e,n,a;let i=null;const s=d.current,c=()=>{i&&(t(i.getNumber()),r(i.isValidNumber()))};let u={initialCountry:"US",onlyCountries:[]};if("undefined"!=typeof wcpaySettings&&"JP"===(null!==(n=null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===e?void 0:e.country)&&void 0!==n?n:"")&&(u={initialCountry:"JP",onlyCountries:["JP"]}),s){i=fx()(s,Object.assign({customPlaceholder:()=>"",separateDialCode:!0,hiddenInput:"full",utilsScript:gx(),dropdownContainer:document.body},u)),l(i),s.addEventListener("countrychange",c);const e=null===(a=s.closest(".iti"))||void 0===a?void 0:a.querySelector(".iti__flag-container");e&&o&&e.addEventListener("click",o)}return()=>{var e;if(i){i.destroy(),s&&s.removeEventListener("countrychange",c);const t=null===(e=null==s?void 0:s.closest(".iti"))||void 0===e?void 0:e.querySelector(".iti__flag-container");t&&o&&t.removeEventListener("click",o)}}}),[t,r,o]),(0,V.useEffect)((()=>{c&&d.current&&r(c.isValidNumber())}),[n,c,d,r]),H().createElement("div",{className:i?"wc-block-components-text-input":""},H().createElement("input",Object.assign({type:"tel",ref:d,value:(u=n,c?u.replace("+"+c.getSelectedCountryData().dialCode,""):u),onChange:()=>{c&&(t(c.getNumber()),r(c.isValidNumber()))},"aria-label":a.ariaLabel||(0,B.__)("Mobile phone number","woocommerce-payments"),name:a.name,className:c&&!c.isValidNumber()?"phone-input input-text has-error":"phone-input input-text"},s)));var u},wx=e=>{var t,n,r,o;let{setInputVallid:a}=e;const[i,s]=km();let c=null===(t=Om())||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.details)||void 0===r||null===(o=r.account_business_support_phone)||void 0===o?void 0:o.message;const l=(0,V.useRef)(i).current,d=""===i&&""===l,u=(0,ps.useSelect)((e=>e(vs).getIsDevModeEnabled()),[]),m=u&&"+10000000000"===i,[p,y]=(0,V.useState)(!0);m||p||d||(c=(0,B.__)("Please enter a valid phone number.","woocommerce-payments")),""===i&&""!==l&&(c=(0,B.__)("Support phone number cannot be empty once it has been set before, please specify.","woocommerce-payments")),(0,V.useEffect)((()=>{a&&a(!c)}),[c,a]);let h=(0,B.__)("Support phone number","woocommerce-payments");return u&&(h+=(0,B.__)(" (+1 0000000000 can be used in sandbox mode)","woocommerce-payments")),(0,Y.createElement)(Y.Fragment,null,c&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,Y.createElement)("span",null,c)),(0,Y.createElement)(uh,{className:"settings__account-business-support-phone-input no-top-margin",help:(0,B.__)("This may be visible on receipts, invoices, and automated emails from your store.","woocommerce-payments"),label:h,id:"account-business-support-phone-input"},(0,Y.createElement)(vx,{onValueChange:s,value:i,onValidationChange:y,inputProps:{ariaLabel:h}})))},bx=e=>{var t,n,r,o;let{setInputVallid:a}=e;const[i,s]=Cm();let c=null===(t=Om())||void 0===t||null===(n=t.data)||void 0===n||null===(r=n.details)||void 0===r||null===(o=r.account_business_support_email)||void 0===o?void 0:o.message;const l=(0,V.useRef)(i).current;return""===i&&""!==l&&(c=(0,B.__)("Support email cannot be empty once it has been set before, please specify.","woocommerce-payments")),(0,V.useEffect)((()=>{a&&a(!c)}),[c,a]),(0,Y.createElement)(Y.Fragment,null,c&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,Y.createElement)("span",null,c)),(0,Y.createElement)(Gv,{className:"settings__account-business-support-email-input",help:(0,B.__)("This may be visible on receipts, invoices, and automated emails from your store.","woocommerce-payments"),label:(0,B.__)("Support email","woocommerce-payments"),value:i,onChange:s,"data-testid":"account-business-support-email-input"}))},Ex=e=>{let{setInputsValid:t}=e;const[n,r]=(0,V.useState)(!0),[o,a]=(0,V.useState)(!0);return(0,V.useEffect)((()=>{t(n&&o)}),[n,o,t]),(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("h4",null,(0,B.__)("Customer support contacts","woocommerce-payments")),(0,Y.createElement)(bx,{setInputVallid:r}),(0,Y.createElement)(wx,{setInputVallid:a}))},$x=()=>{var e,t,n,r;const[o,a,i,s,c,l,d,u]=Sm(),m=null===(e=Om())||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.details)||void 0===n||null===(r=n.account_business_support_address)||void 0===r?void 0:r.message,p=(e,t)=>{u({...o,[e]:t})},y=e=>(new DOMParser).parseFromString(e,"text/html").documentElement.textContent,h=Object.entries(wcSettings.countries).map((e=>{let[t,n]=e;return{label:y(n),value:t}})),f=wcpaySettings.connect.availableStates[a]||[],_=Object.entries(f).map((e=>{let[t,n]=e;return{label:y(n),value:y(n),country:t}}));return(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("h4",null,(0,B.__)("Business address","woocommerce-payments")),m&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,Y.createElement)("span",null,m)),(0,Y.createElement)(nf,{label:(0,B.__)("Country","woocommerce-payments"),value:a,onChange:e=>p("country",e),options:h}),(0,Y.createElement)(Gv,{className:"card-readers-support-address-line1-input",label:(0,B.__)("Address line 1","woocommerce-payments"),value:i,onChange:e=>p("line1",e)}),(0,Y.createElement)(Gv,{className:"card-readers-support-address-line2-input",label:(0,B.__)("Address line 2","woocommerce-payments"),value:s,onChange:e=>p("line2",e)}),(0,Y.createElement)(Gv,{className:"card-readers-support-address-city",label:(0,B.__)("City","woocommerce-payments"),value:c,onChange:e=>p("city",e)}),_.length>0&&(0,Y.createElement)(nf,{label:(0,B.__)("State","woocommerce-payments"),value:l,onChange:e=>p("state",e),options:_}),(0,Y.createElement)(Gv,{className:"card-readers-support-address-postcode",label:(0,B.__)("Postal code","woocommerce-payments"),value:d,onChange:e=>p("postal_code",e)}))};const Sx=e=>{const{fieldKey:t,label:n,accept:r,disabled:o,help:a,purpose:i,fileID:s,updateFileID:c}=e,[l,d]=(0,Y.useState)(!1),[u,m]=(0,Y.useState)(!1),{createErrorNotice:p}=(0,ps.useDispatch)("core/notices"),y=!l&&s&&0<s.length,h=u||"";return H().createElement("div",{className:"wcpay-branding-upload-field__wrapper"},H().createElement(VI,{field:{key:t,label:n},fileName:s,isLoading:l,accept:r,disabled:o,isDone:y,help:a,error:h,onFileChange:(e,t)=>{return n=void 0,r=void 0,a=function*(){if(!t)return;if((e=>{if(51e4<e)return p((0,B.__)("The file you have attached is exceeding the maximum limit.","woocommerce-payments")),!0})(t.size))return;d(!0),Ca("wcpay_merchant_settings_file_upload_started",{type:e});const n=new FormData;n.append("file",t),n.append("purpose",i),n.append("as_account","0");try{const t=yield va()({path:"/wc/v3/payments/file",method:"post",body:n});t&&c(t.id),d(!1),m(!1),Ca("wcpay_merchant_settings_file_upload_success",{type:e})}catch({err:e}){Ca("wcpay_merchant_settings_file_upload_success",{message:e.message}),c(""),d(!1),m(e.message||""),p(e.message)}},new((o=void 0)||(o=Promise))((function(e,t){function i(e){try{c(a.next(e))}catch(e){t(e)}}function s(e){try{c(a.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(i,s)}c((a=a.apply(n,r||[])).next())}));var n,r,o,a},onFileRemove:()=>{c(""),d(!1),m(!1)},showPreview:!0}))},Cx=()=>{const[e,t]=(()=>{const{updateAccountBrandingLogo:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAccountBrandingLogo())),e]})();return(0,Y.useEffect)((()=>{document.querySelectorAll(".components-circular-option-picker__dropdown-link-action button").forEach((function(e){e.innerHTML=(0,B.__)("Edit","woocommerce-payments")}))}),[]),(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("h4",null,(0,B.__)("Branding","woocommerce-payments")),(0,Y.createElement)("p",{className:"wcpay-branding-help-label"},(0,B.__)("Your business’s logo will be used on printed receipts.","woocommerce-payments")),(0,Y.createElement)(Sx,{fieldKey:"branding-logo",label:(0,B.__)("Logo","woocommerce-payments"),accept:"image/png, image/jpeg",disabled:!1,help:(0,B.__)("Upload a .png or .jpg file.","woocommerce-payments"),purpose:"business_logo",fileID:e,updateFileID:t}))},kx=()=>H().createElement(H().Fragment,null,H().createElement("h2",null,(0,B.__)("Card reader receipts","woocommerce-payments")),H().createElement("p",null,(0,B.__)("These details will appear on printed or emailed receipts for customers that pay in person using card readers. Updating the details here will not affect any other stores settings.","woocommerce-payments")),H().createElement(cs.Link,{href:bs({page:"wc-admin",path:"/payments/card-readers/preview-receipt"})},(0,B.__)("Preview a printed receipt","woocommerce-payments"))),Ix=()=>{const[e,t]=(0,Y.useState)(!0),[n,r]=(0,Y.useState)(!0),o=e&&n;return H().createElement(sx,{displayBanner:!1},H().createElement(rx,{description:kx},H().createElement(xN,{numLines:20},H().createElement(ko,{className:"card-readers-settings__wrapper"},H().createElement(Mo,null,H().createElement(yx,{setInputsValid:t}),H().createElement(Ex,{setInputsValid:r}),H().createElement($x,null),H().createElement(Cx,null))))),H().createElement(px,{disabled:!o}))},Nx=()=>H().createElement(Wa,null,H().createElement(__,{className:"wcpay-card-readers-page",activeClass:"active-tab",tabs:[{name:"connected-readers",title:(0,B.__)("Connected readers","woocommerce-payments"),className:"connected-readers-list"},{name:"receipt-details",title:(0,B.__)("Receipt details","woocommerce-payments"),className:"connected-readers-receipt-details"}]},(e=>"receipt-details"===e.name?H().createElement(Ix,null):H().createElement(dx,null)))),xx=Pn((function(e,t){const n=function(e){return ja({isBlock:!0,...Dn(e,"FlexBlock")})}(e);return(0,Y.createElement)(Zn,X({},n,{ref:t}))}),"FlexBlock"),Tx=e=>{let{title:t,children:n}=e;return V.createElement(xx,{className:"wcpay-loan-summary-block"},V.createElement("div",{className:"wcpay-loan-summary-block__title"},t),V.createElement("div",{className:"wcpay-loan-summary-block__value"},n))},Ox=()=>V.createElement(ko,null,V.createElement(ff,{size:"medium",className:"wcpay-loan-summary-header"},V.createElement(Fa,null,(0,B.__)("Active loan overview","woocommerce-payments"))),V.createElement(Mo,{className:"wcpay-loan-summary-body"},V.createElement(Pa,{align:"normal",className:"wcpay-loan-summary-row"},V.createElement(Tx,{title:(0,B.__)("Total repaid","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Total repaid placeholder"})),V.createElement(Tx,{title:(0,B.__)("Repaid this period","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Repaid this period placeholder"}))),V.createElement(Pa,{align:"normal",className:"wcpay-loan-summary-row is-bottom-row"},V.createElement(Tx,{title:(0,B.__)("Loan disbursed","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Date disbursed"})),V.createElement(Tx,{title:(0,B.__)("Loan amount","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Loan amount"})),V.createElement(Tx,{title:(0,B.__)("Fixed fee","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Fixed fee"})),V.createElement(Tx,{title:(0,B.__)("Withhold rate","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"Rate"})),V.createElement(Tx,{title:(0,B.__)("First paydown","woocommerce-payments")},V.createElement(K_,{isLoading:!0,display:"inline",placeholder:"First paydown"}))))),Lx=()=>{for(const e in wcpaySettings.accountLoans.loans){const[t,n]=wcpaySettings.accountLoans.loans[e].split("|");if("active"===n)return t}return null},Ax=()=>{const{summary:e,isLoading:t}=(0,ps.useSelect)((e=>{const{getActiveLoanSummary:t,getActiveLoanSummaryError:n,isResolving:r}=e(vs);return{summary:t(),summaryError:n(),isLoading:r("getActiveLoanSummary")}}));if(t||!e)return V.createElement(Ox,null);const{details:n}=e;return V.createElement(ko,null,V.createElement(ff,{size:"medium",className:"wcpay-loan-summary-header"},V.createElement(Fa,null,(0,B.__)("Active loan overview","woocommerce-payments")),V.createElement(Fa,null,Lx()&&V.createElement(Jn,{isLink:!0,href:bs({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:Lx()})},(0,B.__)("View transactions","woocommerce-payments")))),V.createElement(Mo,{className:"wcpay-loan-summary-body"},V.createElement(Pa,{align:"normal",className:"wcpay-loan-summary-row"},V.createElement(Tx,{title:(0,B.__)("Total repaid","woocommerce-payments")},(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("<big>%s</big> of %s","woocommerce-payments"),cc(n.paid_amount,n.currency),cc(n.fee_amount+n.advance_amount,n.currency)),{big:V.createElement("span",{className:"is-big"})})),V.createElement(Tx,{title:(0,B.sprintf)((0,B.__)("Repaid this period (until %s)","woocommerce-payments"),(0,_s.dateI18n)("M j, Y",new Date(1e3*n.current_repayment_interval.due_at)))},(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("<big>%s</big> of %s minimum","woocommerce-payments"),cc(n.current_repayment_interval.paid_amount,n.currency),cc(n.current_repayment_interval.paid_amount+n.current_repayment_interval.remaining_amount,n.currency)),{big:V.createElement("span",{className:"is-big"})}))),V.createElement(Pa,{align:"normal",className:"wcpay-loan-summary-row is-bottom-row"},V.createElement(Tx,{title:(0,B.__)("Loan disbursed","woocommerce-payments")},(0,_s.dateI18n)("M j, Y",new Date(1e3*n.advance_paid_out_at))),V.createElement(Tx,{title:(0,B.__)("Loan amount","woocommerce-payments")},cc(n.advance_amount,n.currency)),V.createElement(Tx,{title:(0,B.__)("Fixed fee","woocommerce-payments")},cc(n.fee_amount,n.currency)),V.createElement(Tx,{title:(0,B.__)("Withhold rate","woocommerce-payments")},100*n.withhold_rate,"%"),V.createElement(Tx,{title:(0,B.__)("First paydown","woocommerce-payments")},(0,_s.dateI18n)("M j, Y",new Date(1e3*n.repayments_begin_at))))))},Mx=[{key:"paid_out_at",label:(0,B.__)("Disbursed","woocommerce-payments"),screenReaderLabel:(0,B.__)("Disbursed","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultSort:!0},{key:"status",label:(0,B.__)("Status","woocommerce-payments"),screenReaderLabel:(0,B.__)("Status","woocommerce-payments"),required:!0,cellClassName:"is-center-aligned"},{key:"amount",label:(0,B.__)("Amount","woocommerce-payments"),screenReaderLabel:(0,B.__)("Amount","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"fee_amount",label:(0,B.__)("Fixed fee","woocommerce-payments"),screenReaderLabel:(0,B.__)("Fixed fee","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"withhold_rate",label:(0,B.__)("Withhold rate","woocommerce-payments"),screenReaderLabel:(0,B.__)("Withhold rate","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0},{key:"first_paydown_at",label:(0,B.__)("First paydown","woocommerce-payments"),screenReaderLabel:(0,B.__)("First paydown","woocommerce-payments"),required:!0,isLeftAligned:!1,isNumeric:!0}],Dx=e=>e.fully_paid_at?(0,B.__)("Paid off","woocommerce-payments")+": "+(0,_s.dateI18n)("M j, Y",e.fully_paid_at):(0,B.__)("Active","woocommerce-payments"),Rx=e=>V.createElement(Qy,{message:Dx(e),type:e.fully_paid_at?"primary":"warning"}),Px=e=>e.map((e=>{const t=t=>V.createElement(Ly,{href:bs({page:"wc-admin",path:"/payments/transactions",type:"charge",filter:"advanced",loan_id_is:e.stripe_loan_id})},t),n={paid_out_at:{value:e.paid_out_at,display:t((0,_s.dateI18n)("M j, Y",e.paid_out_at))},status:{value:Dx(e),display:t(Rx(e))},amount:{value:oc(e.currency)?e.amount:e.amount/100,display:t(cc(e.amount,e.currency.toUpperCase()))},fee_amount:{value:oc(e.currency)?e.fee_amount:e.fee_amount/100,display:t(cc(e.fee_amount,e.currency.toUpperCase()))},withhold_rate:{value:e.withhold_rate,display:t(+(100*e.withhold_rate).toFixed(2)+"%")},first_paydown_at:{value:e.first_paydown_at,display:t(e.first_paydown_at?(0,_s.dateI18n)("M j, Y",e.first_paydown_at):"-")}};return Mx.map((e=>{let{key:t}=e;return n[t]}))})),jx=e=>{if(!e.length)return[];const t=[{label:(0,B._n)("loan","loans",e.length,"woocommerce-payments"),value:String(e.length)}],n=Array.from(new Set(e.map((e=>e.currency))));return 1===n.length&&(t.push({label:(0,B.__)("total","woocommerce-payments"),value:cc(e.reduce(((e,t)=>e+t.amount),0),n[0])}),t.push({label:(0,B.__)("fixed fees","woocommerce-payments"),value:cc(e.reduce(((e,t)=>e+t.fee_amount),0),n[0])})),t},Fx=()=>{const{loans:e,isLoading:t}=(0,ps.useSelect)((e=>{const{getLoans:t,getLoansError:n,isResolving:r}=e(vs);return{loans:t(),loansError:n(),isLoading:r("getLoans")}}));return V.createElement(Wa,null,V.createElement(Ls,{currentPage:"loans"}),wcpaySettings.accountLoans.has_active_loan&&V.createElement(Ya,null,V.createElement(Ax,null)),V.createElement(cs.TableCard,{className:"wcpay-loans-list",title:(0,B.__)("All loans","woocommerce-payments"),isLoading:t,totalRows:e.length,headers:Mx,rows:Px(e),rowsPerPage:e.length,summary:jx(e),showMenu:!1}))},zx=e=>{let{title:t,children:n}=e;const[r,o]=(0,Y.useState)(null);return H().createElement("iframe",{className:"card-readers-preview-receipt__preview",srcDoc:"<!DOCTYPE html>",title:t,onLoad:e=>{const t=e.target;(null==t?void 0:t.contentDocument)&&o(t.contentDocument.body)}},r&&(0,By.createPortal)(n,r))},Bx=e=>{let{receiptHtml:t}=e;return H().createElement(zx,{title:"Preview Receipt"},H().createElement("div",{dangerouslySetInnerHTML:{__html:t}}))};var Ux=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};const Vx=()=>{const[e,t]=(0,Y.useState)(""),[n,r]=(0,Y.useState)(!0),[o,a]=(0,Y.useState)(!1),[i]=Sm(),[s]=Em(),[c]=$m(),[l]=Cm(),[d]=km();return(0,Y.useEffect)((()=>{let e=!1;return function(){Ux(this,void 0,void 0,(function*(){try{const n=yield function(e){return Ux(this,void 0,void 0,(function*(){return va()({path:"/wc/v3/payments/readers/receipts/preview",data:e,method:"post"})}))}({accountBusinessName:s,accountBusinessSupportAddress:i,accountBusinessURL:c,accountBusinessSupportEmail:l,accountBusinessSupportPhone:d});!e&&n&&(r(!1),t(n.html_content))}catch(e){r(!1),a(!0)}}))}(),()=>{e=!0}}),[s,i,l,d,c]),H().createElement(H().Fragment,null,n&&H().createElement("p",null,(0,B.__)("Generating preview.","woocommerce-payments")),H().createElement(Q_,{isLoading:n,numLines:25},o&&H().createElement(er,{status:"error",isDismissible:!1},(0,B.__)("There was a problem generating the receipt preview. Please try again later.","woocommerce-payments")),!o&&H().createElement(Bx,{receiptHtml:e})))},Hx=()=>H().createElement(Wa,{isNarrow:!0,className:"wcpay-card-readers-preview-receipt-page"},H().createElement(ko,null,H().createElement(Mo,{size:"small"},H().createElement(Ya,null,H().createElement(Vx,null))))),Yx=e=>{let{progressLabel:t,totalLabel:n,progress:r}=e;const o=.5<r;return H().createElement("div",{className:"progressbar"},H().createElement("div",{className:"progressbar__container"},H().createElement("div",{className:"progressbar__inner",style:{width:100*r+"%"}},o&&H().createElement("span",{className:"progressbar__inner-progress-label"},t)),!o&&H().createElement("span",{className:"progressbar__outer-progress-label"},t)),H().createElement("span",{className:"progressbar__total-label"},n))},Wx=e=>{var t;let{feeData:{volume_allowance:n,current_volume:r,...o}}=e;if(!n)return null;const a=null!==(t=o.volume_currency)&&void 0!==t?t:o.currency;return(0,Y.createElement)(Yx,{progressLabel:ic(r,a),totalLabel:ic(n,a),progress:r/n})},Gx=e=>{var t;let{feeData:{volume_allowance:n,end_time:r,...o}}=e;const a=null!==(t=o.volume_currency)&&void 0!==t?t:o.currency;let i;if(n&&r)i=(0,B.sprintf)((0,B.__)("Discounted base fee expires after the first %1$s of total payment volume or on %2$s.","woocommerce-payments"),ic(n,a),(0,_s.dateI18n)("F j, Y",fs()(r).toISOString()));else if(n)i=(0,B.sprintf)((0,B.__)("Discounted base fee expires after the first %1$s of total payment volume.","woocommerce-payments"),ic(n,a));else{if(!r)return null;i=(0,B.sprintf)((0,B.__)("Discounted base fee expires on %1$s.","woocommerce-payments"),(0,_s.dateI18n)("F j, Y",fs()(r).toISOString()))}return(0,Y.createElement)("p",{className:"description"},i)},qx=e=>{var t;const{accountFee:n,paymentMethod:r}=e,o=n.base,a=rc(o.currency),i=nc(o.currency),s=null==a||null===(t=a.getCurrencyConfig())||void 0===t?void 0:t.code,c=SN(n),l=EN(n);return(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("p",null,(e=>{switch(e){case"au_becs_debit":return(0,B.__)("BECS Direct Debit transactions","woocommerce-payments");case"bancontact":return(0,B.__)("Bancontact transactions","woocommerce-payments");case"card":return(0,B.__)("Card transactions","woocommerce-payments");case"card_present":return(0,B.__)("In-person transactions","woocommerce-payments");case"eps":return(0,B.__)("EPS transactions","woocommerce-payments");case"giropay":return(0,B.__)("giropay transactions","woocommerce-payments");case"ideal":return(0,B.__)("iDEAL transactions","woocommerce-payments");case"p24":return(0,B.__)("Przelewy24 (P24) transactions","woocommerce-payments");case"sepa_debit":return(0,B.__)("SEPA Direct Debit transactions","woocommerce-payments");case"sofort":return(0,B.__)("Sofort transactions","woocommerce-payments");case"affirm":return(0,B.__)("Affirm transactions","woocommerce-payments");case"afterpay_clearpay":return(0,B.__)("Afterpay transactions","woocommerce-payments");case"klarna":return(0,B.__)("Klarna transactions","woocommerce-payments");default:return(0,B.__)("Unknown transactions","woocommerce-payments")}})(r),":"),i?`${i} `:null,s?`(${s}) `:null,c,(0,Y.createElement)(Wx,{feeData:l}),(0,Y.createElement)(Gx,{feeData:l}))},Zx=e=>{const{accountFees:t}=e;let n=!1;const r=Object.entries(t).map((e=>{let[t,r]=e;return 0===r.fee.discount.length?null:(n=!0,(0,Y.createElement)(qx,{key:t,paymentMethod:r.payment_method,accountFee:r.fee}))}));return(0,Y.createElement)(Y.Fragment,null,n&&(0,Y.createElement)("div",{className:"account-fees"},(0,Y.createElement)(_a,null),(0,Y.createElement)("h4",null,(0,B.__)("Active discounts","woocommerce-payments"))),r)},Qx=e=>{let{label:t,align:n,value:r,children:o}=e;return(0,Y.createElement)(Pa,{direction:"row",align:n||"center",justify:"left",gap:3,className:"woocommerce-account-status-item"},(0,Y.createElement)(Fa,{className:"item-label"},t),(0,Y.createElement)(xx,{className:"item-value"},o||r||null))};var Kx=n(3836),Jx=n(7489);const Xx=e=>{const{iconSize:t,interval:n}=e,r=(e=>{switch(e){case"daily":case"weekly":case"monthly":return(0,B.__)("Automatic","woocommerce-payments");case"manual":return(0,B.__)("Manual","woocommerce-payments");default:return(0,B.__)("Unknown","woocommerce-payments")}})(n);return H().createElement("span",{className:"account-status__info__green"},H().createElement(Kx.Z,{size:t}),r)},eT=e=>{const{iconSize:t}=e;return H().createElement("span",{className:"account-status__info__red"},H().createElement(Jx.Z,{size:t}),(0,B.__)("Disabled","woocommerce-payments"))},tT=e=>{const{iconSize:t}=e,n=(0,Y.createInterpolateElement)((0,B.__)("Temporarily suspended (<a>learn more</a>)","woocommerce-payments"),{a:H().createElement("a",{href:"https://woo.com/document/woopayments/deposits/why-deposits-suspended/",target:"_blank",rel:"noopener noreferrer"})});return H().createElement("span",{className:"account-status__info__yellow"},H().createElement(Jx.Z,{size:t}),n)},nT=e=>{const{iconSize:t}=e;return H().createElement("span",{className:"account-status__info__gray"},H().createElement(Jx.Z,{size:t}),(0,B.__)("Pending verification","woocommerce-payments"))},rT=e=>{let{status:t,interval:n,accountStatus:r,poEnabled:o,poComplete:a,iconSize:i}=e;const s=o&&!a;return"blocked"===t?H().createElement(tT,{iconSize:i,interval:n}):"pending_verification"===r||s?H().createElement(nT,{iconSize:i,interval:n}):"disabled"===t?H().createElement(eT,{iconSize:i,interval:n}):H().createElement(Xx,{iconSize:i,interval:n})},oT=e=>{const{iconSize:t}=e;return H().createElement("span",{className:"account-status__info__green"},H().createElement(Kx.Z,{size:t}),(0,B.__)("Enabled","woocommerce-payments"))},aT=e=>{const{iconSize:t}=e;return H().createElement("span",{className:"account-status__info__red"},H().createElement(Jx.Z,{size:t}),(0,B.__)("Disabled","woocommerce-payments"))},iT=e=>{const{iconSize:t}=e;return H().createElement("span",{className:"account-status__info__gray"},H().createElement(Jx.Z,{size:t}),(0,B.__)("Pending verification","woocommerce-payments"))},sT=e=>{const{paymentsEnabled:t,accountStatus:n}=e;return t?H().createElement(oT,{iconSize:e.iconSize}):"pending_verification"===n?H().createElement(iT,{iconSize:e.iconSize}):H().createElement(aT,{iconSize:e.iconSize})},cT=e=>{const{accountStatus:t,poEnabled:n,poComplete:r}=e;let o=(0,B.__)("Unknown","woocommerce-payments"),a="light",i="";return"complete"===t?(o=(0,B.__)("Complete","woocommerce-payments"),a="success"):"enabled"===t?(o=(0,B.__)("Enabled","woocommerce-payments"),a="primary"):"restricted_soon"===t?(o=(0,B.__)("Restricted soon","woocommerce-payments"),a="warning"):"pending_verification"===t||n&&!r&&"restricted"===t?(o=(0,B.__)("Pending","woocommerce-payments"),a="light",i=(0,B.__)("Deposits are pending while Stripe verifies details on your account.","woocommerce-payments")):"restricted_partially"===t?(o=(0,B.__)("Restricted partially","woocommerce-payments"),a="warning"):"restricted"===t?(o=(0,B.__)("Restricted","woocommerce-payments"),a="alert"):t.startsWith("rejected")&&(o=(0,B.__)("Rejected","woocommerce-payments"),a="light"),(0,Y.createElement)(Qy,{message:o,type:a,tooltip:i})},lT={title:(0,B.__)("Account Tools","woocommerce-payments"),description:(0,B.__)("Payments and deposits are disabled until account setup is completed. If you are experiencing problems completing account setup, or need to change the email/country associated with your account, you can reset your account and start from the beginning.","woocommerce-payments"),finish:(0,B.__)("Finish setup","woocommerce-payments"),reset:(0,B.__)("Reset account","woocommerce-payments")},dT={title:(0,B.__)("Reset account","woocommerce-payments"),description:(0,B.__)("If you are experiencing problems completing account setup, or need to change the email/country associated with your account, you can reset your account and start from the beginning.","woocommerce-payments"),beforeContinue:(0,B.__)("Before you continue","woocommerce-payments"),step1:(0,B.sprintf)((0,B.__)("Your %s account will be reset, and all data will be lost.","woocommerce-payments"),"WooPayments"),step2:(0,B.__)("You will have to re-confirm your business and banking details.","woocommerce-payments"),step3:(0,B.__)("Once confirmed, this cannot be undone.","woocommerce-payments"),confirmation:(0,B.__)("Are you sure you want to continue?","woocommerce-payments"),cancel:(0,B.__)("Cancel","woocommerce-payments"),reset:(0,B.__)("Yes, reset account","woocommerce-payments")},uT=e=>{const{isVisible:t,onDismiss:n,onSubmit:r}=e;return t?H().createElement(es,{title:"Reset account",className:"wcpay-reset-account-modal",onRequestClose:n},H().createElement("div",{className:"wcpay-reset-account-modal__content"},H().createElement("p",null,dT.description),H().createElement("p",null,H().createElement("b",null,dT.beforeContinue)),H().createElement("ol",null,H().createElement("li",null,dT.step1)),H().createElement(_a,null),H().createElement("ol",{start:2},H().createElement("li",null,dT.step2)),H().createElement(_a,null),H().createElement("ol",{start:3},H().createElement("li",null,dT.step3)),H().createElement(_a,null),H().createElement("p",null,dT.confirmation)),H().createElement("div",{className:"wcpay-reset-account-modal__footer"},H().createElement(Jn,{variant:"secondary",onClick:n},dT.cancel),H().createElement(Jn,{variant:"primary",isDestructive:!0,onClick:r},dT.reset))):null};const mT=(0,V.createContext)(null),pT=e=>{var{children:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children"]);const r=(e=>e.reduce(((e,t,n)=>{var r;return H().isValidElement(t)&&(e[null!==(r=t.props.name)&&void 0!==r?r:n]=t),e}),{}))(t),o=(e=>{let{steps:t,initialStep:n,onStepChange:r,onComplete:o,onExit:a}=e;const i=Object.keys(t),[s,c]=(0,V.useState)(null!=n?n:i[0]),l=(i.indexOf(s)+1)/i.length;return{currentStep:s,progress:l,nextStep:()=>{const e=i.indexOf(s),t=i[e+1];t?(c(t),null==r||r(t)):null==o||o()},prevStep:()=>{const e=i.indexOf(s),t=i[e-1];t?(c(t),null==r||r(t)):null==a||a()},exit:()=>null==a?void 0:a()}})(Object.assign({steps:r},n)),a=r[o.currentStep];return H().createElement(mT.Provider,{value:o},a)},yT=()=>{const e=(0,V.useContext)(mT);if(!e)throw new Error("useStepperContext() must be used within <Stepper>");return e},hT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const[t,n]=(0,V.useState)(e),[r,o]=(0,V.useState)({}),[a,i]=(0,V.useState)({}),[s,c]=(0,V.useState)({});return{data:t,setData:e=>n((t=>Object.assign(Object.assign({},t),e))),errors:r,setErrors:e=>o((t=>(0,W.omitBy)(Object.assign(Object.assign({},t),e),W.isNil))),touched:a,setTouched:e=>i((t=>Object.assign(Object.assign({},t),e))),temp:s,setTemp:e=>c((t=>Object.assign(Object.assign({},t),e)))}},fT=(0,V.createContext)(null),_T=e=>{let{children:t,initialData:n}=e;return H().createElement(fT.Provider,{value:hT(n)},t)},gT=()=>{const e=(0,V.useContext)(fT);if(!e)throw new Error("useOnboardingContext() must be used within <OnboardingContextProvider>");return e},vT=new Set;let wT,bT;const ET=e=>Math.round((Date.now()-e)/1e3),$T=()=>{const e=ET(bT);return bT=Date.now(),e},ST=e=>Ca("wcpay_onboarding_flow_eligibility_modal_closed",{action:e}),CT=()=>{const{errors:e,touched:t}=gT(),{currentStep:n}=yT(),r=function(){const r="hide"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hide")?"wcpay_onboarding_flow_hidden":"wcpay_onboarding_flow_exited",o=Object.keys(e).filter((e=>t[e]));Ca(r,{step:n,errored:o,elapsed:ET(wT)})},o=()=>{"hidden"===document.visibilityState&&r()};return(0,V.useEffect)((()=>(document.addEventListener("visibilitychange",o),()=>{document.removeEventListener("visibilitychange",o)})),[n,e,t]),{trackAbandoned:e=>{r(e),document.removeEventListener("visibilitychange",o)},removeTrackListener:()=>document.removeEventListener("visibilitychange",o)}},kT=()=>{Ca("wcpay_onboarding_flow_reset"),window.location.href=(0,ys.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-reset-account":!0})},IT=e=>{const t=e.accountLink,[n,r]=(0,V.useState)(!1);return function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return"undefined"==typeof wcpaySettings?e:"1"===wcpaySettings.devMode||e}()?null:H().createElement(H().Fragment,null,H().createElement("div",{className:"account-tools"},H().createElement(_a,null),H().createElement("h4",null,lT.title),H().createElement("p",null,lT.description),H().createElement("div",{className:"account-tools__actions"},H().createElement(Jn,{variant:"secondary",href:t,target:"_blank"},lT.finish),H().createElement(Jn,{variant:"tertiary",onClick:()=>r(!0)},lT.reset))),H().createElement(uT,{isVisible:n,onDismiss:()=>r(!1),onSubmit:kT}))},NT=e=>{const{title:t,children:n,value:r}=e;return(0,Y.createElement)(ko,{isMedium:!0},(0,Y.createElement)(ff,{className:"woocommerce-account-status__header",direction:"row",align:"center",justify:"left",gap:3,expanded:!0},t),(0,Y.createElement)(Mo,null,n||r||null))},xT=()=>{const e=(0,B.__)("Account details","woocommerce-payments");return(0,Y.createElement)(NT,{title:e},(0,B.__)("Error determining the connection status.","woocommerce-payments"))},TT=e=>{var t,n;const{accountStatus:r,accountFees:o}=e,a=(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(Fa,{className:"account-details"},(0,B.__)("Account details","woocommerce-payments")),(0,Y.createElement)(xx,{className:"account-status"},(0,Y.createElement)(cT,{accountStatus:r.status,poEnabled:r.progressiveOnboarding.isEnabled,poComplete:r.progressiveOnboarding.isComplete})),(0,Y.createElement)(Fa,{className:"edit-details"},(0,Y.createElement)(Jn,{isLink:!0,href:r.accountLink},(0,B.__)("Edit details","woocommerce-payments"))));return(0,Y.createElement)(NT,{title:a},(0,Y.createElement)(Qx,{label:(0,B.__)("Payments:","woocommerce-payments")},(0,Y.createElement)(sT,{paymentsEnabled:r.paymentsEnabled,accountStatus:r.status})),(0,Y.createElement)(Qx,{label:(0,B.__)("Deposits:","woocommerce-payments")},(0,Y.createElement)(rT,{status:null===(t=r.deposits)||void 0===t?void 0:t.status,interval:null===(n=r.deposits)||void 0===n?void 0:n.interval,accountStatus:r.status,poEnabled:r.progressiveOnboarding.isEnabled,poComplete:r.progressiveOnboarding.isComplete})),!r.detailsSubmitted&&(0,Y.createElement)(IT,{accountLink:r.accountLink}),o.length>0&&(0,Y.createElement)(Zx,{accountFees:o}))},OT=e=>{const{accountStatus:t}=e;return t.error?(0,Y.createElement)(xT,null):(0,Y.createElement)(TT,e)},LT={withName:{morning:(0,B.__)("Good morning, %s","woocommerce-payments"),afternoon:(0,B.__)("Good afternoon, %s","woocommerce-payments"),evening:(0,B.__)("Good evening, %s","woocommerce-payments")},withoutName:{morning:(0,B.__)("Good morning","woocommerce-payments"),afternoon:(0,B.__)("Good afternoon","woocommerce-payments"),evening:(0,B.__)("Good evening","woocommerce-payments")}},AT=()=>{const{user:e}=(()=>{const{user:e,isLoading:t}=(0,ps.useSelect)((e=>{const{getCurrentUser:t,isResolving:n}=e("core");return{user:t(),isLoading:!!n("getCurrentUser")}}));return{user:e,isLoading:t}})(),t=function(e){const t=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date).getHours();return e>=5&&e<12?"morning":e>=12&&e<17?"afternoon":"evening"}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date);let n=LT.withoutName[t];return e&&(n=(0,B.sprintf)(LT.withName[t],e)),n+=" 👋",n}(null==e?void 0:e.first_name);return H().createElement(ff,{className:"wcpay-welcome"},H().createElement(Pa,{align:"center",justify:"space-between",className:"wcpay-welcome__flex"},H().createElement(Fa,{className:"wcpay-welcome__flex__greeting"},t),H().createElement(Fa,null,H().createElement("img",{className:"wcpay-welcome__flex__logo",src:us,alt:"WooPayments logo",width:107}))))},MT=()=>({setSelectedCurrency:e=>{(0,ky.updateQueryString)({selected_currency:e})},selectedCurrency:(0,ky.getQuery)().selected_currency}),DT=e=>(0,B.sprintf)((0,B.__)("%s Balance","woocommerce-payments"),e.toUpperCase()),RT=e=>{let{id:t,title:n,currencyCode:r,tooltip:o,amount:a=0,isLoading:i=!1}=e;return V.createElement("div",{className:"wcpay-account-balances__balances__item"},V.createElement("p",{id:t,className:"wcpay-account-balances__balances__item__title"},V.createElement("span",null,n),!i&&o),V.createElement("p",{className:"wcpay-account-balances__balances__item__amount","aria-labelledby":t},V.createElement(K_,{isLoading:i,display:"inline",placeholder:"loading amount",value:ic(a,r)})))},PT=e=>{let{label:t,content:n}=e;return H().createElement(Zy,{content:n,className:"wcpay-account-balances__balances__item__tooltip",buttonIcon:H().createElement(B_.Z,null),buttonLabel:t})},jT=((0,B.__)("Good morning, %s","woocommerce-payments"),(0,B.__)("Good afternoon, %s","woocommerce-payments"),(0,B.__)("Good evening, %s","woocommerce-payments"),(0,B.__)("Good morning","woocommerce-payments"),(0,B.__)("Good afternoon","woocommerce-payments"),(0,B.__)("Good evening","woocommerce-payments"),{available:(0,B.__)("Available funds","woocommerce-payments"),pending:(0,B.__)("Pending funds","woocommerce-payments")}),FT="https://woo.com/document/woopayments/deposits/deposit-schedule/",zT="https://woo.com/document/woopayments/fees-and-debits/account-showing-negative-balance/",BT=e=>{let{instantBalance:{amount:t,fee:n,net:r,fee_percentage:o},onClose:a,onSubmit:i,inProgress:s}=e;const c=`${o}%`,l=(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Need cash in a hurry? Instant deposits are available within 30 minutes for a nominal %s service fee. <a>Learn more</a>","woocommerce-payments"),c),{a:H().createElement("a",{href:"https://woo.com/document/woopayments/deposits/instant-deposits/",target:"_blank",rel:"noopener noreferrer"})});return H().createElement(es,{title:(0,B.__)("Instant deposit","woocommerce-payments"),onRequestClose:a,className:"wcpay-instant-deposits-modal"},H().createElement("p",null,l),H().createElement("ul",null,H().createElement("li",{className:"wcpay-instant-deposits-modal__balance"},(0,B.__)("Balance available for instant deposit: ","woocommerce-payments"),H().createElement("span",null,ic(t))),H().createElement("li",{className:"wcpay-instant-deposits-modal__fee"},(0,B.sprintf)((0,B.__)("%s service fee: ","woocommerce-payments"),c),H().createElement("span",null,"-",ic(n))),H().createElement("li",{className:"wcpay-instant-deposits-modal__net"},(0,B.__)("Net deposit amount: ","woocommerce-payments"),H().createElement("span",null,cc(r)))),H().createElement("div",{className:"wcpay-instant-deposits-modal__footer"},H().createElement(Jn,{isSecondary:!0,onClick:a},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{isPrimary:!0,onClick:i,isBusy:s,disabled:s},(0,B.sprintf)((0,B.__)("Deposit %s now","woocommerce-payments"),cc(r)))))},UT=e=>{let{instantBalance:t}=e;const[n,r]=(0,Y.useState)(!1),o=(e=>{let t=!1;return 0===e.amount&&(t=!0),t})(t),{inProgress:a,submit:i}=(e=>{const{deposit:t,inProgress:n}=(0,ps.useSelect)((t=>{const{getInstantDeposit:n,isResolving:r}=t(vs);return{deposit:n([e]),inProgress:r("getInstantDeposit",[e])}})),{submitInstantDeposit:r}=(0,ps.useDispatch)(vs);return{deposit:t,inProgress:n,submit:()=>r(e)}})(t.currency);return H().createElement(H().Fragment,null,H().createElement(Jn,{isPrimary:!0,disabled:o,onClick:()=>r(!0)},(0,B.__)("Deposit available funds","woocommerce-payments")),(n||a)&&H().createElement(BT,{instantBalance:t,inProgress:a,onSubmit:()=>{r(!1),i()},onClose:()=>{r(!1)}}))},VT=()=>{const{overviews:e,isLoading:t}=Lc(),{selectedCurrency:n,setSelectedCurrency:r}=MT();if(!t&&0===e.currencies.length)return null;if(t){const e=[{name:"loading",title:DT(wcpaySettings.accountDefaultCurrency),currencyCode:wcpaySettings.accountDefaultCurrency,availableFunds:0,pendingFunds:0,delayDays:0}];return V.createElement(__,{tabs:e},(e=>V.createElement(Pa,{gap:0,className:"wcpay-account-balances__balances"},V.createElement(RT,{id:`wcpay-account-balances-${e.currencyCode}-available`,title:jT.available,amount:e.availableFunds,currencyCode:e.currencyCode,isLoading:!0}),V.createElement(RT,{id:`wcpay-account-balances-${e.currencyCode}-pending`,title:jT.pending,amount:e.pendingFunds,currencyCode:e.currencyCode,isLoading:!0}))))}const{currencies:o,account:a}=e,i=o.map((e=>{var t,n,r,o,i;return{name:e.currency,title:DT(e.currency),currencyCode:e.currency,availableFunds:null!==(n=null===(t=e.available)||void 0===t?void 0:t.amount)&&void 0!==n?n:0,pendingFunds:null!==(o=null===(r=e.pending)||void 0===r?void 0:r.amount)&&void 0!==o?o:0,delayDays:null!==(i=null==a?void 0:a.deposits_schedule.delay_days)&&void 0!==i?i:0,instantBalance:e.instant}})),s=n&&i.some((e=>e.name===n));return V.createElement(__,{tabs:i,onSelect:e=>{r(e),Ca("wcpay_overview_balances_currency_tab_click",{selected_currency:e})},initialTabName:s?n:void 0},(e=>V.createElement(V.Fragment,null,V.createElement(Pa,{gap:0,className:"wcpay-account-balances__balances"},V.createElement(RT,{id:`wcpay-account-balances-${e.currencyCode}-available`,title:jT.available,amount:e.availableFunds,currencyCode:e.currencyCode,tooltip:V.createElement(PT,{label:`${jT.available} tooltip`,content:e.availableFunds<0?ss({mixedString:(0,B.__)("{{learnMoreLink}}Learn more{{/learnMoreLink}} about why your account balance may be negative.","woocommerce-payments"),components:{learnMoreLink:V.createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:zT})}}):ss({mixedString:(0,B.__)("The amount of funds available to be deposited. {{learnMoreLink}}Learn more.{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:V.createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:FT})}})})}),V.createElement(RT,{id:`wcpay-account-balances-${e.currencyCode}-pending`,title:jT.pending,amount:e.pendingFunds,currencyCode:e.currencyCode,tooltip:V.createElement(PT,{label:`${jT.pending} tooltip`,content:e.pendingFunds<0?ss({mixedString:(0,B.__)("{{learnMoreLink}}Learn more{{/learnMoreLink}} about why your account balance may be negative.","woocommerce-payments"),components:{learnMoreLink:V.createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:zT})}}):ss({mixedString:(0,B.sprintf)((0,B.__)("The amount of funds still in the %d day pending period. {{learnMoreLink}}Learn more.{{/learnMoreLink}}","woocommerce-payments"),e.delayDays),components:{learnMoreLink:V.createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:FT})}})})})),e.instantBalance&&e.instantBalance.amount>0&&V.createElement(Pa,{gap:0,className:"wcpay-account-balances__instant-deposit"},V.createElement(UT,{instantBalance:e.instantBalance})))))},HT=(0,Y.createElement)(K.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Y.createElement)(K.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z"})),YT="wcpay-deposits-overview__table",WT=e=>{let{deposit:t}=e;return V.createElement(Pa,{className:`${YT}__row`},V.createElement(Fa,{className:`${YT}__cell`},V.createElement(_n,{icon:HT,size:17}),V.createElement(cs.Link,{href:Ty(t.id,"deposits")},(e=>{return e?(t=null==e?void 0:e.date,(0,_s.dateI18n)("F j, Y",fs().utc(t).toISOString(),!0)):"—";var t})(t))),V.createElement(Fa,{className:`${YT}__cell`},V.createElement(Jy,{status:t.status})),V.createElement(Fa,{className:`${YT}__cell`},ic(t.amount,t.currency)))},GT=e=>{let{deposits:t}=e;if(0===t.length)return V.createElement(V.Fragment,null);const n=t.map((e=>V.createElement(Y.Fragment,{key:e.id},V.createElement(WT,{deposit:e}))));return V.createElement(V.Fragment,null,V.createElement(Mo,{className:`${YT}__container`},V.createElement(Pa,{className:`${YT}__row__header`},V.createElement(Fa,{className:`${YT}__cell`},(0,B.__)("Dispatch date","woocommerce-payments")),V.createElement(Fa,{className:`${YT}__cell`},(0,B.__)("Status","woocommerce-payments")),V.createElement(Fa,{className:`${YT}__cell`},(0,B.__)("Amount","woocommerce-payments")))),V.createElement(_a,null),V.createElement(Mo,{className:`${YT}__container`},n))},qT=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"})),ZT=()=>H().createElement(Va,{className:"wcpay-deposits-overview__suspended-notice",icon:!0,isDismissible:!1,status:"warning"},ss({mixedString:(0,B.__)("Your deposits are {{strong}}temporarily suspended{{/strong}}. {{suspendLink}}Learn more{{/suspendLink}}","woocommerce-payments"),components:{strong:H().createElement("strong",null),suspendLink:H().createElement(cs.Link,{href:"https://woo.com/document/woopayments/deposits/why-deposits-suspended/"})}})),QT=()=>H().createElement(Va,{status:"warning",icon:!0,className:"new-account-waiting-period-notice",isDismissible:!1},ss({mixedString:(0,B.__)("Your first deposit is held for 7-14 days. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),components:{whyLink:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/deposits/deposit-schedule/#new-accounts"})}})),KT=()=>H().createElement(Va,{icon:qT,isDismissible:!1,className:"wcpay-deposit-transit-days-notice"},(0,B.__)("It may take 1-3 business days for deposits to reach your bank account.","woocommerce-payments")),JT=()=>H().createElement(Va,{status:"warning",icon:!0,className:"negative-balance-deposits-paused-notice",isDismissible:!1},ss({mixedString:(0,B.sprintf)((0,B.__)("Deposits may be interrupted while your %s balance remains negative. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),"WooPayments"),components:{whyLink:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/fees-and-debits/account-showing-negative-balance/"})}})),XT=e=>{let{minimumDepositAmountFormatted:t}=e;return H().createElement(Va,{status:"warning",icon:!0,isDismissible:!1},ss({mixedString:(0,B.sprintf)((0,B.__)("Deposits are paused while your available funds balance remains below %s. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),t),components:{learnMoreLink:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/deposits/deposit-schedule/#minimum-deposit-amounts"})}}))},eO=()=>H().createElement(Va,{status:"warning",icon:!0,isDismissible:!1},ss({mixedString:(0,B.__)("You have no funds available to deposit. {{whyLink}}Why?{{/whyLink}}","woocommerce-payments"),components:{whyLink:H().createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://woo.com/document/woopayments/deposits/deposit-schedule/#pending-funds"})}})),tO=()=>{var e,t,n,r,o,a,i,s,c;const{account:l,overview:d,isLoading:u}=(()=>{const{overviews:e,isLoading:t}=Lc(),{currencies:n,account:r}=e,{selectedCurrency:o}=MT();return{account:r,overview:n.some((e=>e.currency===o))?n.find((e=>e.currency===o)):n[0],isLoading:t}})(),m="deposits_unrestricted"===(null===(e=wcpaySettings.accountStatus.deposits)||void 0===e?void 0:e.restrictions),p=(null==d?void 0:d.currency)||wcpaySettings.accountDefaultCurrency,{isLoading:y,deposits:h}=(e=>{const t=Ac({store_currency_is:e,orderby:"date",order:"desc",per_page:"3"});return{deposits:t.deposits,isLoading:t.isLoading}})(p),f=u||y,_=null!==(n=null===(t=null==d?void 0:d.available)||void 0===t?void 0:t.amount)&&void 0!==n?n:0,g=null!==(o=null===(r=null==d?void 0:d.pending)||void 0===r?void 0:r.amount)&&void 0!==o?o:0,v=_+g,w=null!==(s=null===(i=null===(a=wcpaySettings.accountStatus.deposits)||void 0===a?void 0:a.minimum_scheduled_deposit_amounts)||void 0===i?void 0:i[p])&&void 0!==s?s:0,b=_>=w,E=v<0,$=0===_&&g>0,S=null===(c=wcpaySettings.accountStatus.deposits)||void 0===c?void 0:c.completed_waiting_period,C=!(null==l?void 0:l.deposits_blocked)&&S,k=!f&&(null==h?void 0:h.length)>0&&!!l;return f?V.createElement(ko,{className:"wcpay-deposits-overview"},V.createElement(ff,null,(0,B.__)("Deposits","woocommerce-payments")),V.createElement(Mo,{className:"wcpay-deposits-overview__schedule__container"},V.createElement(K_,{isLoading:!0,placeholder:V.createElement(Ms,{depositsSchedule:{delay_days:0,interval:"daily",monthly_anchor:1,weekly_anchor:"monday"}})}))):S||0!==_||0!==g?V.createElement(ko,{className:"wcpay-deposits-overview"},V.createElement(ff,null,(0,B.__)("Deposits","woocommerce-payments")),m&&!!l&&V.createElement(Mo,{className:"wcpay-deposits-overview__schedule__container"},V.createElement(Ms,{depositsSchedule:l.deposits_schedule,showNextDepositDate:_>0})),V.createElement(Mo,{className:"wcpay-deposits-overview__notices__container"},(null==l?void 0:l.deposits_blocked)?V.createElement(ZT,null):V.createElement(V.Fragment,null,m&&!$&&V.createElement(KT,null),!S&&V.createElement(QT,null),S&&$&&V.createElement(eO,null),E&&V.createElement(JT,null),_>0&&!b&&V.createElement(XT,{minimumDepositAmountFormatted:cc(w,p)}))),k&&V.createElement(V.Fragment,null,V.createElement(Mo,{className:"wcpay-deposits-overview__heading"},V.createElement("span",{className:"wcpay-deposits-overview__heading__title"},(0,B.__)("Deposit history","woocommerce-payments"))),V.createElement(GT,{deposits:h})),(k||C)&&V.createElement(ag,{className:"wcpay-deposits-overview__footer"},k&&V.createElement(Jn,{variant:"secondary",href:bs({page:"wc-admin",path:"/payments/deposits"}),onClick:()=>Ca("wcpay_overview_deposits_view_history_click")},(0,B.__)("View full deposits history","woocommerce-payments")),C&&V.createElement(Jn,{variant:"tertiary",href:bs({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})+"#deposit-schedule",onClick:()=>Ca("wcpay_overview_deposits_change_schedule_click")},(0,B.__)("Change deposit schedule","woocommerce-payments")))):null},nO=window.wc.experimental;var rO;!function(e){e[e.DAY_IN_MS=864e5]="DAY_IN_MS"}(rO||(rO={}));const oO=e=>{let{overviewTasksVisibility:t,tasks:n}=e;const{createNotice:r}=(0,ps.useDispatch)("core/notices"),{updateOptions:o}=(0,ps.useDispatch)("wc/admin/options"),[a,i]=(0,Y.useState)(n),{deletedTodoTasks:s,dismissedTodoTasks:c,remindMeLaterTodoTasks:l}=t,d=(0,Y.useCallback)((()=>{const e=Date.now();return n.filter((t=>!s.includes(t.key)&&!c.includes(t.key)&&(!l[t.key]||l[t.key]<e)))}),[s,c,l,n]);(0,Y.useEffect)((()=>{i(d())}),[n,d]);const u=(e,t)=>{(async e=>{let{task:t,dismissedTasks:n,noticeMessage:a,optionName:s}=e;const{key:l,onDismiss:u}=t;n.push(l),i(d()),await o({[s]:[...n]}),r("success",a,{actions:[{label:(0,B.__)("Undo","woocommerce-payments"),onClick:()=>(async(e,t,n)=>{const r=t.filter((t=>t!==e));t.splice(c.indexOf(e),1),i(d()),await o({[n]:r})})(l,n,s)}]}),u&&u()})("dismiss"===t?{task:e,dismissedTasks:c,noticeMessage:(0,B.__)("Task dismissed","woocommerce-payments"),optionName:"woocommerce_dismissed_todo_tasks"}:{task:e,dismissedTasks:s,noticeMessage:(0,B.__)("Task deleted","woocommerce-payments"),optionName:"woocommerce_deleted_todo_tasks"})};return a.length?(0,Y.createElement)(nO.CollapsibleList,{className:"wcpay-task-list",collapsed:!1,show:5,collapseLabel:(0,B.__)("Hide tasks","woocommerce-payments"),expandLabel:(0,B.__)("Show tasks","woocommerce-payments")},a.map((e=>(0,Y.createElement)(nO.TaskItem,X({key:e.key,"data-key":e.key},e.dataAttrs||{},{title:e.title,actionLabel:e.actionLabel,completed:e.completed,content:e.content,additionalInfo:e.additionalInfo,showActionButton:e.showActionButton,expandable:e.expandable,expanded:e.expanded,enter:void 0!==e.enter&&e.enter,action:void 0!==e.action?e.action:e.onClick,onClick:e.onClick,time:e.time,level:e.level,onDelete:e.isDeletable&&e.completed?()=>u(e,"delete"):void 0,onDismiss:e.isDismissable?()=>u(e,"dismiss"):void 0,onSnooze:e.allowSnooze?()=>(async e=>{let{key:t,onDismiss:n}=e;const a=Date.now()+rO.DAY_IN_MS;l[t]=a,i(d()),await o({woocommerce_remind_me_later_todo_tasks:{...l,[t]:a}}),r("success",(0,B.__)("Task postponed until tomorrow","woocommerce-payments"),{actions:[{label:(0,B.__)("Undo","woocommerce-payments"),onClick:()=>(async e=>{const{[e]:t,...n}=l;delete l[e],i(d()),await o({woocommerce_remind_me_later_todo_tasks:n})})(t)}]}),n&&n()})(e):void 0}))))):(0,Y.createElement)("div",null)},aO={errors:{invalid_address_city_state_postal_code:(0,B.__)("The combination of the city, state, and postal code in the provided address could not be validated.","woocommerce-payments"),invalid_street_address:(0,B.__)("The street name and/or number for the provided address could not be validated.","woocommerce-payments"),invalid_tos_acceptance:(0,Y.createInterpolateElement)((0,B.__)("The existing terms of service signature has been invalidated because the account’s tax ID has changed. The account needs to accept the terms of service again. For more information, see <a>this documentation</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/update-verified-information",target:"_blank",rel:"noopener noreferrer"})}),invalid_representative_country:(0,B.__)("The representative must have an address in the same country as the company.","woocommerce-payments"),verification_document_address_mismatch:(0,B.__)("The address on the document did not match the address on the account. Upload a document with a matching address or update the address on the account.","woocommerce-payments"),verification_document_address_missing:(0,B.__)("The company address was missing on the document. Upload a document that includes the address.","woocommerce-payments"),verification_document_corrupt:(0,B.__)("The uploaded file for the document was invalid or corrupt. Upload a new file of the document.","woocommerce-payments"),verification_document_country_not_supported:(0,B.__)("The provided document was from an unsupported country.","woocommerce-payments"),verification_document_dob_mismatch:(0,B.__)("The date of birth (DOB) on the document did not match the DOB on the account. Upload a document with a matching DOB or update the DOB on the account.","woocommerce-payments"),verification_document_duplicate_type:(0,B.__)("The same type of document was used twice. Two unique types of documents are required for verification. Upload two different documents.","woocommerce-payments"),verification_document_expired:(0,B.__)("The document could not be used for verification because it has expired. If it’s an identity document, its expiration date must be after the date the document was submitted. If it’s an address document, the issue date must be within the last six months.","woocommerce-payments"),verification_document_failed_copy:(0,B.__)("The document could not be verified because it was detected as a copy (e.g., photo or scan). Upload the original document.","woocommerce-payments"),verification_document_failed_greyscale:(0,B.__)("The document could not be used for verification because it was in greyscale. Upload a color copy of the document.","woocommerce-payments"),verification_document_failed_other:(0,Y.createInterpolateElement)((0,B.__)("The document could not be verified for an unknown reason. Ensure that the document follows the <a>guidelines for document uploads</a>","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_failed_test_mode:(0,Y.createInterpolateElement)((0,B.__)("A test data helper was supplied to simulate verification failure. Refer to the documentation for <a>test file tokens</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/testing#test-file-tokens",target:"_blank",rel:"noopener noreferrer"})}),verification_document_fraudulent:(0,B.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_id_number_mismatch:(0,B.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_document_id_number_missing:(0,B.__)("The company ID number was missing on the document. Upload a document that includes the ID number.","woocommerce-payments"),verification_document_incomplete:(0,B.__)("The document was cropped or missing important information. Upload a complete scan of the document.","woocommerce-payments"),verification_document_invalid:(0,Y.createInterpolateElement)((0,B.__)("The uploaded file was not one of the valid document types. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_issue_or_expiry_date_missing:(0,B.__)("The issue or expiry date is missing on the document. Upload a document that includes the issue and expiry dates."),verification_document_manipulated:(0,B.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_missing_back:(0,B.__)("The uploaded file was missing the back of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_missing_front:(0,B.__)("The uploaded file was missing the front of the document. Upload a complete scan of the document.","woocommerce-payments"),verification_document_name_mismatch:(0,B.__)("The name on the document did not match the name on the account. Upload a document with a matching name or update the name on the account.","woocommerce-payments"),verification_document_name_missing:(0,B.__)("The company name was missing on the document. Upload a document that includes the company name.","woocommerce-payments"),verification_document_nationality_mismatch:(0,B.__)("The nationality on the document did not match the person’s stated nationality. Update the person’s stated nationality, or upload a document that matches it.","woocommerce-payments"),verification_document_not_readable:(0,Y.createInterpolateElement)((0,B.__)("The document could not be read. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_document_not_signed:(0,B.__)("A valid signature is missing on the document. Upload a document that includes a valid signature.","woocommerce-payments"),verification_document_not_uploaded:(0,B.__)("No document was uploaded. Upload the document again.","woocommerce-payments"),verification_document_photo_mismatch:(0,B.__)("The document was identified as altered or falsified.","woocommerce-payments"),verification_document_too_large:(0,B.__)("The uploaded file exceeded the 10 MB size limit. Resize the document and upload the new file.","woocommerce-payments"),verification_document_type_not_supported:(0,Y.createInterpolateElement)((0,B.__)("The provided document type was not accepted. Ensure that the document follows the <a>guidelines for document uploads</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://stripe.com/docs/connect/identity-verification-api#acceptable-verification-documents",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_address_match:(0,B.__)("The address on the account could not be verified. Correct any errors in the address field or upload a document that includes the address.","woocommerce-payments"),verification_failed_business_iec_number:(0,B.__)("The Importer Exporter Code (IEC) number could not be verified. Correct any errors in the company’s IEC number field. (India only)","woocommerce-payments"),verification_failed_document_match:(0,B.__)("The document could not be verified. Upload a document that includes the company name, ID number, and address fields.","woocommerce-payments"),verification_failed_id_number_match:(0,B.__)("The company ID number on the account could not be verified. Correct any errors in the ID number field or upload a document that includes the ID number.","woocommerce-payments"),verification_failed_keyed_identity:(0,B.__)("The person’s keyed-in identity information could not be verified. Correct any errors or upload a document that matches the identity fields (e.g., name and date of birth) entered.","woocommerce-payments"),verification_failed_keyed_match:(0,B.__)("The keyed-in information on the account could not be verified. Correct any errors in the company name, ID number, or address fields. You can also upload a document that includes those fields.","woocommerce-payments"),verification_failed_name_match:(0,B.__)("The company name on the account could not be verified. Correct any errors in the company name field or upload a document that includes the company name.","woocommerce-payments"),verification_failed_residential_address:(0,B.__)("We could not verify that the person resides at the provided address. The address must be a valid physical address where the individual resides and cannot be a P.O. Box.","woocommerce-payments"),verification_failed_tax_id_match:(0,B.__)("The tax ID on the account cannot be verified by the IRS. Either correct any possible errors in the company name or tax ID, or upload a document that contains those fields.","woocommerce-payments"),verification_failed_tax_id_not_issued:(0,Y.createInterpolateElement)((0,B.__)("The tax ID on the account was not recognized by the IRS. Refer to the support article for <a>newly-issued tax ID numbers</a>.","woocommerce-payments"),{a:H().createElement("a",{href:"https://support.stripe.com/questions/newly-issued-us-tax-id-number-tin-not-verifying",target:"_blank",rel:"noopener noreferrer"})}),verification_failed_other:(0,B.__)("Verification failed for an unknown reason. Correct any errors and resubmit the required fields.","woocommerce-payments"),verification_missing_owners:(0,B.__)("We have identified owners that haven’t been added on the account. Add any missing owners to the account.","woocommerce-payments"),verification_missing_executives:(0,B.__)("We have identified executives that haven’t been added on the account. Add any missing executives to the account.","woocommerce-payments"),verification_requires_additional_memorandum_of_associations:(0,B.__)("We have identified holding companies with significant percentage ownership. Upload a Memorandum of Association for each of the holding companies.","woocommerce-payments"),invalid_dob_age_under_18:(0,B.__)("Underage. Age must be at least 18.","woocommerce-payments")},tasks:{no_payment_14_days:{title:(0,B.__)("Please add your bank details to keep selling","woocommerce-payments"),description:e=>(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("You have time until <strong>%s</strong> to make your first sale without undergoing full business verification. Take advantage of this time window and start selling now.","woocommerce-payments"),e),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Set up deposits","woocommerce-payments")},no_payment_30_days:{title:(0,B.__)("Payments paused! Verify your bank details to reactivate.","woocommerce-payments"),description:()=>(0,Y.createInterpolateElement)((0,B.__)("You have reached the <strong>30-day limit</strong> for early selling access. In order to reactivate payments, please verify your bank details.","woocommerce-payments"),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Verify bank details","woocommerce-payments")},after_payment:{title:(0,B.__)("Verify your bank account to start receiving deposits","woocommerce-payments"),description:e=>(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Add the required details by <strong>%s</strong> or <strong>before reaching $5,000</strong> in sales to avoid a disruption in payments.","woocommerce-payments"),e),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Start receiving deposits","woocommerce-payments")},balance_rising:{title:(0,B.__)("Verify your bank account to start receiving deposits","woocommerce-payments"),description:e=>(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("To ensure a smooth payments process, please make sure to confirm your bank details by <strong>%s</strong> or before you reach <strong>$5,000</strong> in sales.","woocommerce-payments"),e),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Start receiving deposits","woocommerce-payments")},near_threshold:{title:(0,B.__)("Verify your bank details","woocommerce-payments"),description:e=>(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("Verify your bank details by <strong>%s</strong> or before reaching <strong>$5,000</strong> in sales to avoid a disruption in payments.","woocommerce-payments"),e),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Set up deposits","woocommerce-payments")},threshold_reached:{title:(0,B.__)("Payments paused! Verify your bank details to reactivate.","woocommerce-payments"),description:e=>(0,Y.createInterpolateElement)((0,B.sprintf)((0,B.__)("<strong>You have reached the deposit threshold of $5,000.00. Please verify your bank account now to reactivate payments.</strong> Your customers can no longer make purchases on your store until your account is verified.","woocommerce-payments"),e),{strong:H().createElement("strong",null)}),action_label:(0,B.__)("Verify bank details","woocommerce-payments")},add_apms:{title:(0,B.__)("Add more ways for buyers to pay","woocommerce-payments"),description:(0,B.__)("Enable payment methods that work seamlessly with WooPayments.","woocommerce-payments")}}},iO=()=>{const{status:e,progressiveOnboarding:{isEnabled:t,isComplete:n,tpv:r,firstTransactionDate:o},created:a}=wcpaySettings.accountStatus,i=()=>{window.location.href=(0,ys.addQueryArgs)(wcpaySettings.connectUrl,{collect_payout_requirements:!0})};if(!t||n||!a)return null;if("pending"===e||"complete"===e||"enabled"===e)return null;let s,c,l,d,u=3;if(o){const e=r/100;d=fs()(o).add(30,"days").format("MMMM D, YYYY");const t=fs()().diff(o,"days");s=aO.tasks.after_payment.title,u=3,c=aO.tasks.after_payment.description(d),l=aO.tasks.after_payment.action_label,(1e3<=e||7<=t)&&(s=aO.tasks.balance_rising.title,u=2,c=aO.tasks.balance_rising.description(d),l=aO.tasks.balance_rising.action_label),(3e3<=e||21<=t)&&(s=aO.tasks.near_threshold.title,u=1,c=aO.tasks.near_threshold.description(d),l=aO.tasks.near_threshold.action_label),(5e3<=e||30<=t)&&(s=aO.tasks.threshold_reached.title,u=1,c=aO.tasks.threshold_reached.description(d),l=aO.tasks.threshold_reached.action_label)}else{d=fs()(a).add(30,"days").format("MMMM D, YYYY");const e=fs()().diff(a,"days");14>e&&(s=aO.tasks.after_payment.title,u=3,c=aO.tasks.after_payment.description(d),l=aO.tasks.after_payment.action_label),14<=e&&(s=aO.tasks.no_payment_14_days.title,u=2,c=aO.tasks.no_payment_14_days.description(d),l=aO.tasks.no_payment_14_days.action_label),30<=e&&(s=aO.tasks.no_payment_30_days.title,u=1,c=aO.tasks.no_payment_30_days.description,l=aO.tasks.no_payment_30_days.action_label)}return{key:"verify-bank-details-po",title:s,content:c,level:u,completed:!1,expanded:!0,expandable:!0,isDismissable:!1,showActionButton:!0,action:i,onClick:i,actionLabel:l,visible:!0,time:"2 minutes"}},sO=(e,t)=>e.filter((e=>X_({dueBy:e.due_by,days:t}))),cO=e=>{e=[...e].filter((e=>""!==e.due_by)).sort(((e,t)=>fs()(e.due_by).diff(fs()(t.due_by))));const t=e.length;if(0===t)return null;const n=sO(e,1).length,r=sO(e,3).length,o={key:`dispute-resolution-task-${e.map((e=>e.dispute_id)).join("-")}`,title:"",content:"",level:1,completed:!1,expanded:!0,expandable:!0,isDismissable:!1,showActionButton:!0,actionLabel:(0,B.__)("Respond now","woocommerce-payments"),action:()=>{Ca("wcpay_overview_task_click",{task:"dispute-resolution-task",active_dispute_count:t});const n=(0,ky.getHistory)();if(1===t){const t=e[0].charge_id;n.push(bs({page:"wc-admin",path:"/payments/transactions/details",id:t}))}else n.push(bs({page:"wc-admin",path:"/payments/disputes",filter:"awaiting_response"}))},onClick:()=>{},dataAttrs:{"data-urgent":!!(r>=1)}};if(1===t){const t=e[0],r=ic(t.amount,t.currency);return o.title=n>=1?(0,B.sprintf)((0,B.__)("Respond to a dispute for %s – Last day","woocommerce-payments"),r):(0,B.sprintf)((0,B.__)("Respond to a dispute for %s","woocommerce-payments"),r),o.content=n>=1?(0,B.sprintf)((0,B.__)("Respond today by %s","woocommerce-payments"),(0,_s.dateI18n)("g:i A",fs().utc(t.due_by).local().toISOString())):(0,B.sprintf)((0,B.__)("By %s – %s left to respond","woocommerce-payments"),(0,_s.dateI18n)("M j, Y",fs().utc(t.due_by).local().toISOString()),fs()(t.due_by).fromNow(!0)),o}const a=e.reduce(((e,t)=>{const{currency:n}=t;return e.includes(n)?e:[...e,n]}),[]);if(a.length>1)o.title=(0,B.sprintf)((0,B.__)("Respond to %d active disputes","woocommerce-payments"),t);else{const n=e.reduce(((e,t)=>e+t.amount),0);o.title=(0,B.sprintf)((0,B.__)("Respond to %d active disputes for a total of %s","woocommerce-payments"),t,ic(n,a[0]))}const i=sO(e,7).length;return o.content=n>=1?(0,B.sprintf)((0,B.__)("Final day to respond to %d of the disputes","woocommerce-payments"),n):(0,B.sprintf)((0,B.__)("Last week to respond to %d of the disputes","woocommerce-payments"),i),o.actionLabel=(0,B.__)("See disputes","woocommerce-payments"),o},lO=e=>{const t=()=>{window.location.href=e};return{key:"reconnect-wpcom-user",level:1,content:"",title:(0,B.sprintf)((0,B.__)("Reconnect %s","woocommerce-payments"),"WooPayments"),additionalInfo:(0,B.sprintf)((0,B.__)("%s is missing a connected WordPress.com account. Some functionality will be limited without a connected account.","woocommerce-payments"),"WooPayments"),completed:!1,onClick:t,action:t,actionLabel:(0,B.__)("Reconnect","woocommerce-payments"),expandable:!0,expanded:!0,showActionButton:!0}},dO={button:(0,B.__)("Finish setup","woocommerce-payments"),heading:(0,B.sprintf)((0,B.__)("Update %s business details","woocommerce-payments"),"WooPayments"),restrictedDescription:(0,B.__)("Payments and deposits are disabled for this account until missing information is updated. Please update the following information in the Stripe dashboard.","woocommerce-payments"),restrictedSoonDescription:(0,B.__)("Additional information is required to verify your business. Update by %s to avoid a disruption in deposits.","woocommerce-payments"),updateBusinessDetails:(0,B.__)("Update business details","woocommerce-payments "),cancel:(0,B.__)("Cancel","woocommerce-payments")},uO=e=>{let{errorMessages:t,accountStatus:n,accountLink:r,currentDeadline:o}=e;const[a,i]=(0,V.useState)(!0),s=()=>{i(!1)};return H().createElement(H().Fragment,null,a&&H().createElement(es,{title:dO.updateBusinessDetails,isDismissible:!0,className:"wcpay-update-business-details-modal",shouldCloseOnClickOutside:!1,onRequestClose:s},H().createElement("div",{className:"wcpay-update-business-details-modal__wrapper"},H().createElement("div",{className:"wcpay-update-business-details-modal__body"},H().createElement("p",null,"restricted_soon"===n&&o?(0,B.sprintf)(dO.restrictedSoonDescription,(0,_s.dateI18n)("ga M j, Y",fs()(1e3*o).toISOString())):dO.restrictedDescription),t.map(((e,t)=>H().createElement(er,{key:t,status:"warning",isDismissible:!1},e))))),H().createElement("hr",null),H().createElement("div",{className:"wcpay-update-business-details-modal__footer"},H().createElement(Jn,{isSecondary:!0,onClick:s},dO.cancel),H().createElement(Jn,{isPrimary:!0,onClick:()=>{window.open(r,"_blank")}},dO.updateBusinessDetails))))},mO=(e,t,n,r,o,a)=>{const i="restricted_soon"===t,s="restricted"===t&&o,c=1<e.length,l=1===e.length;let d,u,m="";i&&r?(u=(0,B.sprintf)((0,B.__)("Update by %s to avoid a disruption in deposits.","woocommerce-payments"),(0,_s.dateI18n)("ga M j, Y",fs()(1e3*r).toISOString())),l?(d=e[0],m=H().createElement(H().Fragment,null,d," ",u)):m=u):s&&(m=l?e[0]:a?(0,B.__)("Payments and deposits are disabled for this account until missing business information is updated.","woocommerce-payments"):(0,B.__)("Payments and deposits are disabled for this account until setup is completed.","woocommerce-payments"));const p=()=>{"complete"!==t&&"enabled"!==t&&(c?(()=>{let o=document.querySelector("#wcpay-update-business-details-container");o||(o=document.createElement("div"),o.id="wcpay-update-business-details-container",document.body.appendChild(o)),(0,Y.render)(H().createElement(uO,{key:Date.now(),errorMessages:e,accountStatus:t,accountLink:n,currentDeadline:r}),o)})():window.open(n,"_blank"))};let y;return y=c?(0,B.__)("More details","woocommerce-payments"):a?(0,B.__)("Update","woocommerce-payments"):(0,B.__)("Finish setup","woocommerce-payments"),{key:a?"update-business-details":"complete-setup",level:1,title:a?(0,B.sprintf)((0,B.__)("Update %s business details","woocommerce-payments"),"WooPayments"):(0,B.sprintf)((0,B.__)("Finish setting up %s","woocommerce-payments"),"WooPayments"),content:m,completed:"complete"===t||"enabled"===t,onClick:p,action:p,actionLabel:y,expandable:!0,expanded:!0,showActionButton:!0}},pO=()=>{const e=()=>{window.location.href=bs({page:"wc-admin",path:"/payments/additional-payment-methods"})};return{key:"add-apms",level:3,content:"",title:aO.tasks.add_apms.title,additionalInfo:aO.tasks.add_apms.description,completed:!1,onClick:e,action:e,expandable:!1,showActionButton:!1}},yO=["invalid_value_other"],hO=e=>{let{showUpdateDetailsTask:t,wpcomReconnectUrl:n,activeDisputes:r=[],enabledPaymentMethods:o=[]}=e;var a;const{status:i,currentDeadline:s,pastDue:c,accountLink:l,requirements:d,progressiveOnboarding:u,detailsSubmitted:m}=wcpaySettings.accountStatus,p=null==u?void 0:u.isEnabled,y=null==u?void 0:u.isComplete,h=p&&!y,f=(()=>{var e;const t=aO.errors,n=null===(e=null==d?void 0:d.errors)||void 0===e?void 0:e.filter((e=>!yO.includes(e.code))),r=null==n?void 0:n.map((e=>t[e.code]||e.reason));return Array.from(new Set(r||[]))})(),_=t&&(!p||p&&!m),g=!!r&&0<sO(r,7).length,v=1===(null==o?void 0:o.length)&&m&&!h;return[_&&mO(f,null!=i?i:"",l,null!==(a=Number(s))&&void 0!==a?a:null,null!=c&&c,null==m||m),n&&lO(n),g&&cO(r),p&&m&&iO(),v&&pO()].filter(Boolean)},fO=(e,t)=>{if(e.completed||t.completed)return e.completed?1:-1;const n=e.level||3,r=t.level||3;return n===r?0:n>r?1:-1},_O=window.wc.data;function gO(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function vO(e,t){return vO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vO(e,t)}function wO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vO(e,t)}const bO=H().createContext(null);function EO(e,t){var n=Object.create(null);return e&&V.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,V.isValidElement)(e)?t(e):e}(e)})),n}function $O(e,t,n){return null!=n[t]?n[t]:e.props[t]}function SO(e,t,n){var r=EO(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),a=[];for(var i in e)i in t?a.length&&(o[i]=a,a=[]):a.push(i);var s={};for(var c in t){if(o[c])for(r=0;r<o[c].length;r++){var l=o[c][r];s[o[c][r]]=n(l)}s[c]=n(c)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(o).forEach((function(a){var i=o[a];if((0,V.isValidElement)(i)){var s=a in t,c=a in r,l=t[a],d=(0,V.isValidElement)(l)&&!l.props.in;!c||s&&!d?c||!s||d?c&&s&&(0,V.isValidElement)(l)&&(o[a]=(0,V.cloneElement)(i,{onExited:n.bind(null,i),in:l.props.in,exit:$O(i,"exit",e),enter:$O(i,"enter",e)})):o[a]=(0,V.cloneElement)(i,{in:!1}):o[a]=(0,V.cloneElement)(i,{onExited:n.bind(null,i),in:!0,exit:$O(i,"exit",e),enter:$O(i,"enter",e)})}})),o}var CO=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},kO=function(e){function t(t,n){var r,o=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},r}wO(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,o=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,EO(n.children,(function(e){return(0,V.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:$O(e,"appear",n),enter:$O(e,"enter",n),exit:$O(e,"exit",n)})}))):SO(e,o,a),firstRender:!1}},n.handleExited=function(e,t){var n=EO(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=X({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=gO(e,["component","childFactory"]),o=this.state.contextValue,a=CO(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?H().createElement(bO.Provider,{value:o},a):H().createElement(bO.Provider,{value:o},H().createElement(t,r,a))},t}(H().Component);kO.propTypes={},kO.defaultProps={component:"div",childFactory:function(e){return e}};const IO=kO;function NO(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var xO=function(e){return e.scrollTop},TO="unmounted",OO="exited",LO="entering",AO="entered",MO="exiting",DO=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o=OO,r.appearStatus=LO):o=AO:o=t.unmountOnExit||t.mountOnEnter?TO:OO,r.state={status:o},r.nextCallback=null,r}wO(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===TO?{status:OO}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==LO&&n!==AO&&(t=LO):n!==LO&&n!==AO||(t=MO)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===LO){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Uy().findDOMNode(this);n&&xO(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===OO&&this.setState({status:TO})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Uy().findDOMNode(this),r],a=o[0],i=o[1],s=this.getTimeouts(),c=r?s.appear:s.enter;e||n?(this.props.onEnter(a,i),this.safeSetState({status:LO},(function(){t.props.onEntering(a,i),t.onTransitionEnd(c,(function(){t.safeSetState({status:AO},(function(){t.props.onEntered(a,i)}))}))}))):this.safeSetState({status:AO},(function(){t.props.onEntered(a)}))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Uy().findDOMNode(this);t?(this.props.onExit(r),this.safeSetState({status:MO},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:OO},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:OO},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Uy().findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===TO)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,gO(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return H().createElement(bO.Provider,{value:null},"function"==typeof n?n(e,r):H().cloneElement(H().Children.only(n),r))},t}(H().Component);function RO(){}DO.contextType=bO,DO.propTypes={},DO.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:RO,onEntering:RO,onEntered:RO,onExit:RO,onExiting:RO,onExited:RO},DO.UNMOUNTED=TO,DO.EXITED=OO,DO.ENTERING=LO,DO.ENTERED=AO,DO.EXITING=MO;const PO=DO;var jO=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=NO(n.className,r):n.setAttribute("class",NO(n.className&&n.className.baseVal||"",r)));var n,r}))},FO=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1];t.removeClasses(o,"exit"),t.addClass(o,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.addClass(o,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],a=r[1]?"appear":"enter";t.removeClasses(o,a),t.addClass(o,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r?(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-done":n[e+"Done"]}},t}wO(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&xO(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,a=n.done;this.appliedClasses[t]={},r&&jO(e,r),o&&jO(e,o),a&&jO(e,a)},n.render=function(){var e=this.props,t=(e.classNames,gO(e,["classNames"]));return H().createElement(PO,X({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(H().Component);FO.defaultProps={classNames:""},FO.propTypes={};const zO=FO,BO={page:1,per_page:_O.QUERY_DEFAULTS.pageSize,status:"unactioned",type:_O.QUERY_DEFAULTS.noteTypes,orderby:"date",order:"desc",source:"woocommerce-payments",_fields:["id","name","title","content","type","status","actions","date_created","date_created_gmt","layout","image","is_deleted","source"]},UO=(e,t)=>{Ca("wcpay_inbox_action_click",{note_name:e.name,note_title:e.title,note_content_inner_link:t})},VO=()=>{const{createNotice:e}=(0,ps.useDispatch)("core/notices"),{batchUpdateNotes:t,removeNote:n,updateNote:r,triggerNoteAction:o}=(0,ps.useDispatch)(_O.NOTES_STORE_NAME),{isError:a,resolving:i,batchUpdating:s,notes:c,overviewInboxLastRead:l}=(0,ps.useSelect)((e=>{const{getNotes:t,getNotesError:n,isResolving:r,isNotesRequesting:o}=e(_O.NOTES_STORE_NAME),{getCurrentUser:a}=e("core"),i=a(),s=i?i.woocommerce_meta:{};return{notes:t(BO),isError:Boolean(n("getNotes",[BO])),resolving:r("getNotes",[BO]),batchUpdating:o("batchUpdateNotes"),overviewInboxLastRead:s.wc_payments_overview_inbox_last_read?JSON.parse(s.wc_payments_overview_inbox_last_read):void 0}})),[d,u]=(0,Y.useState)(),m=(0,Y.useRef)(l);if(!m.current&&l&&(m.current=l),(0,Y.useEffect)((()=>{!async function(e){if(!e||0===Object.keys(e).length)return;const t=await(0,ps.select)("core").getCurrentUser(),n=Object.keys(e).reduce(((t,n)=>{let r=e[n];return"string"!=typeof r&&(r=JSON.stringify(r)),{...t,[n]:r}}),{}),r=await(0,ps.dispatch)("core").saveUser({id:t.id,woocommerce_meta:{...t.woocommerce_meta,...n}});if(void 0===r)return{error:await(0,ps.select)("core").getLastEntitySaveError("root","user",t.id),updatedUser:r};r.woocommerce_meta}({wc_payments_overview_inbox_last_read:Date.now()})}),[]),a){const e=(0,B.__)("There was an error getting your inbox. Please try again.","woocommerce-admin"),t=(0,B.__)("Reload","woocommerce-admin"),n=()=>{window.location.reload()};return(0,Y.createElement)(cs.EmptyContent,{title:e,actionLabel:t,actionURL:null,actionCallback:n})}const p=async function(){let o=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const a="all"===d.type;if(Ca("wcpay_inbox_action_dismissed",{note_name:d.note.name,note_title:d.note.title,note_name_dismiss_all:a,note_name_dismiss_confirmation:o}),o){const o=d.note.id,i=!o||a;try{let a=[];if(i)await t(c.map((e=>e.id)),{is_deleted:1}),a=[...c];else{const e=await n(o);a=[e]}u(void 0),e("success",a.length>1?(0,B.__)("All messages dismissed","woocommerce-admin"):(0,B.__)("Message dismissed","woocommerce-admin"),{actions:[{label:(0,B.__)("Undo","woocommerce-admin"),onClick:()=>{a.length>1?t(a.map((e=>e.id)),{is_deleted:0}):r(o,{is_deleted:0})}}]})}catch(t){const n=i?c.length:1;e("error",(0,B._n)("Message could not be dismissed","Messages could not be dismissed",n,"woocommerce-admin")),u(void 0)}}else u(void 0)},y=function(e){const t=e.filter((e=>{let{is_deleted:t}=e;return!t}));return 0!==t.length}(c);return(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)("div",{className:"wcpay-overview-screen-notes-wrapper"},(i||s)&&(0,Y.createElement)(cs.Section,null,(0,Y.createElement)(nO.InboxNotePlaceholder,{className:"banner message-is-unread"})),(0,Y.createElement)(cs.Section,null,!i&&!s&&(e=>{let{hasNotes:t,batchUpdating:n,lastRead:r,notes:o,onDismiss:a,onNoteActionClick:i}=e;if(n)return;if(!t)return(0,Y.createElement)("section",{className:"woocommerce-empty-activity-card"},(0,B.__)("As things begin to happen in your store your inbox will start to fill up. You'll see things like achievements, new feature announcements, extension recommendations and more!","woocommerce-admin"));const s=e=>{Ca("wcpay_inbox_note_view",{note_content:e.content,note_name:e.name,note_title:e.title,note_type:e.type})},c=Object.keys(o).map((e=>o[e]));return(0,Y.createElement)(IO,{role:"menu"},c.map((e=>{const{id:t,is_deleted:n}=e;return n?null:(0,Y.createElement)(zO,{key:t,timeout:500,classNames:"wcpay-inbox-message"},(0,Y.createElement)(nO.InboxNoteCard,{key:t,note:e,lastRead:r,onDismiss:a,onNoteActionClick:i,onBodyLinkClick:UO,onNoteVisible:s}))})))})({hasNotes:y,batchUpdating:s,lastRead:m.current,notes:c,onDismiss:(e,t)=>{u({note:e,type:t})},onNoteActionClick:(e,t)=>{o(e.id,t.id)}})),d&&(0,Y.createElement)(nO.InboxDismissConfirmationModal,{onClose:p,onDismiss:()=>p(!0)})))};var HO=n(471);const YO=()=>{const[e,t]=H().useState(!1),{accountStatus:{progressiveOnboarding:{isEnabled:n,isComplete:r},status:o},onboardingTestMode:a}=wcpaySettings;return e||a?null:H().createElement(ko,{className:"wcpay-connection-success"},!(n&&!r)&&H().createElement((()=>H().createElement(P_,{className:"wcpay-connection-success__dropdown",label:(0,B.__)("Dismiss element","woocommerce-payments"),icon:"ellipsis",controls:[{icon:"button",title:(0,B.__)("Dismiss","woocommerce-payments"),onClick:()=>t(!0)}]})),null),H().createElement("img",{src:HO,alt:"confetti"}),n&&!r?H().createElement(H().Fragment,null,H().createElement("h2",null,(0,B.__)("You're ready to start selling!","woocommerce-payments")),H().createElement("p",null,(0,B.__)("Congratulations! Take a moment to celebrate and look out for the first sale.","woocommerce-payments"))):H().createElement(H().Fragment,null,"complete"!==o?H().createElement("h2",null,(0,B.__)("Congratulations! Your store is being verified.","woocommerce-payments")):H().createElement("h2",null,(0,B.__)("Congratulations! Your store has been verified.","woocommerce-payments"))))},WO=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),GO=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M6 3H8V5H16V3H18V5C19.1046 5 20 5.89543 20 7V19C20 20.1046 19.1046 21 18 21H6C4.89543 21 4 20.1046 4 19V7C4 5.89543 4.89543 5 6 5V3ZM18 6.5H6C5.72386 6.5 5.5 6.72386 5.5 7V8H18.5V7C18.5 6.72386 18.2761 6.5 18 6.5ZM18.5 9.5H5.5V19C5.5 19.2761 5.72386 19.5 6 19.5H18C18.2761 19.5 18.5 19.2761 18.5 19V9.5ZM11 11H13V13H11V11ZM7 11V13H9V11H7ZM15 13V11H17V13H15Z"})),qO=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M14.103 7.128l2.26-2.26a4 4 0 00-5.207 4.804L5.828 15a2 2 0 102.828 2.828l5.329-5.328a4 4 0 004.804-5.208l-2.261 2.26-1.912-.512-.513-1.912zm-7.214 9.64a.5.5 0 11.707-.707.5.5 0 01-.707.707z"}));var ZO={};!function e(t,n,r,o){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),i="function"==typeof Path2D&&"function"==typeof DOMMatrix,s=function(){if(!t.OffscreenCanvas)return!1;var e=new OffscreenCanvas(1,1),n=e.getContext("2d");n.fillRect(0,0,1,1);var r=e.transferToImageBitmap();try{n.createPattern(r,"no-repeat")}catch(e){return!1}return!0}();function c(){}function l(e){var r=n.exports.Promise,o=void 0!==r?r:t.Promise;return"function"==typeof o?new o(e):(e(c,c),null)}var d,u,m,p,y,h,f=(d=s,u=new Map,{transform:function(e){if(d)return e;if(u.has(e))return u.get(e);var t=new OffscreenCanvas(e.width,e.height);return t.getContext("2d").drawImage(e,0,0),u.set(e,t),t},clear:function(){u.clear()}}),_=function(){var e,t,n=Math.floor(1e3/60),r={},o=0;return"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(e=function(e){var t=Math.random();return r[t]=requestAnimationFrame((function a(i){o===i||o+n-1<i?(o=i,delete r[t],e()):r[t]=requestAnimationFrame(a)})),t},t=function(e){r[e]&&cancelAnimationFrame(r[e])}):(e=function(e){return setTimeout(e,n)},t=function(e){return clearTimeout(e)}),{frame:e,cancel:t}}(),g=(y={},function(){if(m)return m;if(!r&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+e.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{m=new Worker(URL.createObjectURL(new Blob([t])))}catch(e){return void 0!==typeof console&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",e),null}!function(e){function t(t,n){e.postMessage({options:t||{},callback:n})}e.init=function(t){var n=t.transferControlToOffscreen();e.postMessage({canvas:n},[n])},e.fire=function(n,r,o){if(p)return t(n,null),p;var a=Math.random().toString(36).slice(2);return p=l((function(r){function i(t){t.data.callback===a&&(delete y[a],e.removeEventListener("message",i),p=null,f.clear(),o(),r())}e.addEventListener("message",i),t(n,a),y[a]=i.bind(null,{data:{callback:a}})}))},e.reset=function(){for(var t in e.postMessage({reset:!0}),y)y[t](),delete y[t]}}(m)}return m}),v={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function w(e,t,n){return function(e,t){return t?t(e):e}(e&&null!=e[t]?e[t]:v[t],n)}function b(e){return e<0?0:Math.floor(e)}function E(e){return parseInt(e,16)}function $(e){return e.map(S)}function S(e){var t=String(e).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:E(t.substring(0,2)),g:E(t.substring(2,4)),b:E(t.substring(4,6))}}function C(e){e.width=document.documentElement.clientWidth,e.height=document.documentElement.clientHeight}function k(e){var t=e.getBoundingClientRect();e.width=t.width,e.height=t.height}function I(e,n){var s,c=!e,d=!!w(n||{},"resize"),u=!1,m=w(n,"disableForReducedMotion",Boolean),p=a&&w(n||{},"useWorker")?g():null,y=c?C:k,h=!(!e||!p||!e.__confetti_initialized),v="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function E(t,n,a){for(var c,d,u,m,p=w(t,"particleCount",b),h=w(t,"angle",Number),g=w(t,"spread",Number),v=w(t,"startVelocity",Number),E=w(t,"decay",Number),S=w(t,"gravity",Number),C=w(t,"drift",Number),k=w(t,"colors",$),I=w(t,"ticks",Number),N=w(t,"shapes"),x=w(t,"scalar"),T=!!w(t,"flat"),O=function(e){var t=w(e,"origin",Object);return t.x=w(t,"x",Number),t.y=w(t,"y",Number),t}(t),L=p,A=[],M=e.width*O.x,D=e.height*O.y;L--;)A.push((void 0,void 0,d=(c={x:M,y:D,angle:h,spread:g,startVelocity:v,color:k[L%k.length],shape:N[(0,m=N.length,Math.floor(Math.random()*(m-0))+0)],ticks:I,decay:E,gravity:S,drift:C,scalar:x,flat:T}).angle*(Math.PI/180),u=c.spread*(Math.PI/180),{x:c.x,y:c.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*c.startVelocity+Math.random()*c.startVelocity,angle2D:-d+(.5*u-Math.random()*u),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:c.color,shape:c.shape,tick:0,totalTicks:c.ticks,decay:c.decay,drift:c.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*c.gravity,ovalScalar:.6,scalar:c.scalar,flat:c.flat}));return s?s.addFettis(A):(s=function(e,t,n,a,s){var c,d,u=t.slice(),m=e.getContext("2d"),p=l((function(t){function l(){c=d=null,m.clearRect(0,0,a.width,a.height),f.clear(),s(),t()}c=_.frame((function t(){!r||a.width===o.width&&a.height===o.height||(a.width=e.width=o.width,a.height=e.height=o.height),a.width||a.height||(n(e),a.width=e.width,a.height=e.height),m.clearRect(0,0,a.width,a.height),(u=u.filter((function(e){return function(e,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var n=t.tick++/t.totalTicks,r=t.x+t.random*t.tiltCos,o=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,s=t.wobbleY+t.random*t.tiltSin;if(e.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-n)+")",e.beginPath(),i&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))e.fill(function(e,t,n,r,o,a,i){var s=new Path2D(e),c=new Path2D;c.addPath(s,new DOMMatrix(t));var l=new Path2D;return l.addPath(c,new DOMMatrix([Math.cos(i)*o,Math.sin(i)*o,-Math.sin(i)*a,Math.cos(i)*a,n,r])),l}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-r),.1*Math.abs(s-o),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var c=Math.PI/10*t.wobble,l=.1*Math.abs(a-r),d=.1*Math.abs(s-o),u=t.shape.bitmap.width*t.scalar,m=t.shape.bitmap.height*t.scalar,p=new DOMMatrix([Math.cos(c)*l,Math.sin(c)*l,-Math.sin(c)*d,Math.cos(c)*d,t.x,t.y]);p.multiplySelf(new DOMMatrix(t.shape.matrix));var y=e.createPattern(f.transform(t.shape.bitmap),"no-repeat");y.setTransform(p),e.globalAlpha=1-n,e.fillStyle=y,e.fillRect(t.x-u/2,t.y-m/2,u,m),e.globalAlpha=1}else if("circle"===t.shape)e.ellipse?e.ellipse(t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(s-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(e,t,n,r,o,a,i,s,c){e.save(),e.translate(t,n),e.rotate(a),e.scale(r,o),e.arc(0,0,1,0,s,void 0),e.restore()}(e,t.x,t.y,Math.abs(a-r)*t.ovalScalar,Math.abs(s-o)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var h=Math.PI/2*3,_=4*t.scalar,g=8*t.scalar,v=t.x,w=t.y,b=5,E=Math.PI/b;b--;)v=t.x+Math.cos(h)*g,w=t.y+Math.sin(h)*g,e.lineTo(v,w),h+=E,v=t.x+Math.cos(h)*_,w=t.y+Math.sin(h)*_,e.lineTo(v,w),h+=E;else e.moveTo(Math.floor(t.x),Math.floor(t.y)),e.lineTo(Math.floor(t.wobbleX),Math.floor(o)),e.lineTo(Math.floor(a),Math.floor(s)),e.lineTo(Math.floor(r),Math.floor(t.wobbleY));return e.closePath(),e.fill(),t.tick<t.totalTicks}(m,e)}))).length?c=_.frame(t):l()})),d=l}));return{addFettis:function(e){return u=u.concat(e),p},canvas:e,promise:p,reset:function(){c&&_.cancel(c),d&&d()}}}(e,A,y,n,a),s.promise)}function S(n){var r=m||w(n,"disableForReducedMotion",Boolean),o=w(n,"zIndex",Number);if(r&&v)return l((function(e){e()}));c&&s?e=s.canvas:c&&!e&&(e=function(e){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=e,t}(o),document.body.appendChild(e)),d&&!h&&y(e);var a={width:e.width,height:e.height};function i(){if(p){var t={getBoundingClientRect:function(){if(!c)return e.getBoundingClientRect()}};return y(t),void p.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function f(){s=null,d&&(u=!1,t.removeEventListener("resize",i)),c&&e&&(document.body.removeChild(e),e=null,h=!1)}return p&&!h&&p.init(e),h=!0,p&&(e.__confetti_initialized=!0),d&&!u&&(u=!0,t.addEventListener("resize",i,!1)),p?p.fire(n,a,f):E(n,a,f)}return S.reset=function(){p&&p.reset(),s&&s.reset()},S}function N(){return h||(h=I(null,{useWorker:!0,resize:!0})),h}n.exports=function(){return N().apply(this,arguments)},n.exports.reset=function(){N().reset()},n.exports.create=I,n.exports.shapeFromPath=function(e){if(!i)throw new Error("path confetti are not supported in this browser");var t,n;"string"==typeof e?t=e:(t=e.path,n=e.matrix);var r=new Path2D(t),o=document.createElement("canvas").getContext("2d");if(!n){for(var a,s,c=1e3,l=c,d=c,u=0,m=0,p=0;p<c;p+=2)for(var y=0;y<c;y+=2)o.isPointInPath(r,p,y,"nonzero")&&(l=Math.min(l,p),d=Math.min(d,y),u=Math.max(u,p),m=Math.max(m,y));a=u-l,s=m-d;var h=Math.min(10/a,10/s);n=[h,0,0,h,-Math.round(a/2+l)*h,-Math.round(s/2+d)*h]}return{type:"path",path:t,matrix:n}},n.exports.shapeFromText=function(e){var t,n=1,r="#000000",o='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof e?t=e:(t=e.text,n="scalar"in e?e.scalar:n,o="fontFamily"in e?e.fontFamily:o,r="color"in e?e.color:r);var a=10*n,i=a+"px "+o,s=new OffscreenCanvas(a,a),c=s.getContext("2d");c.font=i;var l=c.measureText(t),d=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),u=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),m=l.actualBoundingBoxLeft+2,p=l.actualBoundingBoxAscent+2;d+=4,u+=4,(c=(s=new OffscreenCanvas(d,u)).getContext("2d")).font=i,c.fillStyle=r,c.fillText(t,m,p);var y=1/n;return{type:"bitmap",bitmap:s.transferToImageBitmap(),matrix:[y,0,0,y,-d*y/2,-u*y/2]}}}(function(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:this||{}}(),ZO,!1);const QO=ZO.exports;ZO.exports.create;const KO=["#889BF2","#C3CDF9","#6079ED"],JO=(e,t)=>Math.floor(Math.random()*(t-e)+e),XO="function"==typeof Path2D&&"function"==typeof DOMMatrix?QO.shapeFromPath({path:"M0,0 L2,0 L2,1 L0,1 Z"}):"square",eL=(window.innerWidth+window.innerHeight)/50,tL=e=>{let{trigger:t=!0,delay:n=250,colors:r=KO}=e;return(0,V.useEffect)((()=>{t&&setTimeout((()=>(e=>{const t={spread:360,particleCount:1,startVelocity:0,zIndex:1e6};for(let n=0;n<eL;n++)QO(Object.assign(Object.assign({},t),{colors:[e[JO(0,e.length)]],origin:{x:Math.random(),y:.999*Math.random()-.2},drift:JO(-2,2),shapes:["circle"]})),QO(Object.assign(Object.assign({},t),{colors:[e[JO(0,e.length)]],origin:{x:Math.random(),y:.999*Math.random()-.2},shapes:[XO],drift:JO(-2,2),scalar:JO(2,4)}))})(r)),n)}),[t,n,r]),null};const nL=()=>{var e;const[t,n]=(0,V.useState)(!0),[r,o]=(0,V.useState)(null===(e=wcpaySettings.progressiveOnboarding)||void 0===e?void 0:e.isEligibilityModalDismissed),{updateOptions:a}=(0,ps.useDispatch)("wc/admin/options"),i=()=>{return e=void 0,t=void 0,r=function*(){o(!0),yield a({wcpay_onboarding_eligibility_modal_dismissed:!0})},new((n=void 0)||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r};return(0,V.useEffect)((()=>{var e;null===(e=document.querySelector(".wcpay-progressive-onboarding-eligibility-modal .components-modal__header-heading-container"))||void 0===e||e.remove()}),[]),!t||r?null:H().createElement(es,{title:"",className:"wcpay-progressive-onboarding-eligibility-modal",onRequestClose:()=>{ST("dismiss"),i(),n(!1)}},H().createElement(tL,null),H().createElement("h1",{className:"wcpay-progressive-onboarding-eligibility-modal__heading"},(0,B.__)("You’re ready to sell.","woocommerce-payments")),H().createElement("h2",{className:"wcpay-progressive-onboarding-eligibility-modal__subheading"},(0,B.__)("Start selling now and fast track the setup process, or continue the process to set up deposits with WooPayments.","woocommerce-payments")),H().createElement("div",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits"},H().createElement("div",null,H().createElement(Xy,{icon:WO,size:32}),H().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,B.__)("Start selling instantly","woocommerce-payments")),(0,B.sprintf)((0,B.__)("%s enables you to start processing credit card payments right away.","woocommerce-payments"),"WooPayments")),H().createElement("div",null,H().createElement(Xy,{icon:GO,size:32}),H().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,B.__)("Quick and easy setup","woocommerce-payments")),(0,B.__)("The setup process is super simple and ensures your store is ready to accept card payments.","woocommerce-payments")),H().createElement("div",null,H().createElement(Xy,{icon:qO,size:32}),H().createElement("h3",{className:"wcpay-progressive-onboarding-eligibility-modal__benefits__subtitle"},(0,B.__)("Flexible process","woocommerce-payments")),(0,B.__)("You have a $5,000 balance limit or 30 days from your first transaction to verify and set up deposits in your account.","woocommerce-payments"))),H().createElement("div",{className:"wcpay-progressive-onboarding-eligibility-modal__footer"},H().createElement(Jn,{variant:"secondary",onClick:()=>{ST("setup_deposits"),window.location.href=(0,ys.addQueryArgs)(wcpaySettings.connectUrl,{collect_payout_requirements:!0})}},(0,B.__)("Start receiving deposits","woocommerce-payments")),H().createElement(Jn,{variant:"primary",onClick:()=>{ST("enable_payments_only"),i(),n(!1)}},(0,B.__)("Start selling","woocommerce-payments"))))},rL=()=>wcpaySettings.hasOwnProperty("isJetpackIdcActive")&&wcpaySettings.isJetpackIdcActive&&(0,Y.createElement)(er,{status:"error",isDismissible:!1,className:"wcpay-jetpack-idc-notice"},(0,B.__)("Your site is currently in Safe Mode.","woocommerce-payments"),(0,Y.createElement)("span",null," "),(0,Y.createElement)("a",{href:$s()},(0,B.__)("Please take action","woocommerce-payments"))),oL=()=>H().createElement(vf,{className:"discoverability-card__new-feature-pill"},(0,B.__)("New","woocommerce-payments")),aL=()=>H().createElement("p",{className:"discoverability-card__body"},(0,B.__)("New features have been added to WooPayments to help reduce fraudulent transactions on your store. By using a set of rules to evaluate incoming orders, your store is better protected from fraudsters.","woocommerce-payments")),iL=e=>{let{handleDontShowAgainOnClick:t}=e;return H().createElement("div",{className:"discoverability-card__actions"},H().createElement(Jn,{href:"/wp-admin/admin.php?page=wc-settings&tab=checkout&anchor=%23fp-settings§ion=woocommerce_payments/",variant:"primary",onClick:()=>{Ca("wcpay_fraud_protection_banner_learn_more_button_clicked")}},(0,B.__)("Learn more","woocommerce-payments")),H().createElement(Jn,{variant:"tertiary",onClick:t},(0,B.__)("Dismiss","woocommerce-payments")))},sL=()=>{const{frtDiscoverBannerSettings:e}=wcpaySettings,{updateOptions:t}=(0,ps.useDispatch)("wc/admin/options"),[n,r]=(0,V.useState)((()=>{try{return JSON.parse(e)}catch(e){return{dontShowAgain:!1}}})),o=!n.dontShowAgain;return(0,V.useEffect)((()=>{Ca("wcpay_fraud_protection_banner_rendered");const e=JSON.stringify(n);t({wcpay_frt_discover_banner_settings:e}),wcpaySettings.frtDiscoverBannerSettings=e}),[e,n,t]),o?H().createElement(ko,null,H().createElement("div",{className:"discoverability-card"},H().createElement(oL,null),H().createElement("h3",{className:"discoverability-card__header"},(0,B.__)("Enhanced fraud protection for your store","woocommerce-payments")),H().createElement(aL,null),H().createElement(iL,{handleDontShowAgainOnClick:()=>{r({dontShowAgain:!0})}}))):null},cL={notice:{content:{test:ss({mixedString:(0,B.sprintf)((0,B.__)("{{bold}}%1s is in test mode.{{bold /}}. All transactions will be simulated.","woocommerce-payments"),"WooPayments"),components:{bold:H().createElement("b",null)}}),dev:ss({mixedString:(0,B.sprintf)((0,B.__)("{{bold}}%1s is in sandbox mode.{{bold /}}. You need to set up a live %1s account before you can accept real transactions.","woocommerce-payments"),"WooPayments"),components:{bold:H().createElement("b",null)}})},actions:{goLive:(0,B.__)("Ready to go live?","woocommerce-payments"),setUpPayments:(0,B.__)("Set up payments","woocommerce-payments"),learnMore:(0,B.__)("Learn more","woocommerce-payments")}}},lL=(0,Y.createElement)(K.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Y.createElement)(K.Path,{d:"M3.25 12a8.75 8.75 0 1117.5 0 8.75 8.75 0 01-17.5 0zM12 4.75a7.25 7.25 0 100 14.5 7.25 7.25 0 000-14.5zm-1.338 4.877c-.314.22-.412.452-.412.623 0 .171.098.403.412.623.312.218.783.377 1.338.377.825 0 1.605.233 2.198.648.59.414 1.052 1.057 1.052 1.852 0 .795-.461 1.438-1.052 1.852-.41.286-.907.486-1.448.582v.316a.75.75 0 01-1.5 0v-.316a3.64 3.64 0 01-1.448-.582c-.59-.414-1.052-1.057-1.052-1.852a.75.75 0 011.5 0c0 .171.098.403.412.623.312.218.783.377 1.338.377s1.026-.159 1.338-.377c.314-.22.412-.452.412-.623 0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377-.825 0-1.605-.233-2.198-.648-.59-.414-1.052-1.057-1.052-1.852 0-.795.461-1.438 1.052-1.852a3.64 3.64 0 011.448-.582V7.5a.75.75 0 011.5 0v.316c.54.096 1.039.296 1.448.582.59.414 1.052 1.057 1.052 1.852a.75.75 0 01-1.5 0c0-.171-.098-.403-.412-.623-.312-.218-.783-.377-1.338-.377s-1.026.159-1.338.377z"})),dL=H().createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},H().createElement("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V9.8l4.7-5.3H19c.3 0 .5.2.5.5v14zm-6-9.5L16 12l-2.5 2.8 1.1 1L18 12l-3.5-3.5-1 1zm-3 0l-1-1L6 12l3.5 3.8 1.1-1L8 12l2.5-2.5z"})),uL=H().createElement("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},H().createElement("path",{d:"M10 4.5a1 1 0 11-2 0 1 1 0 012 0zm1.5 0a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zm2.25 7.5v-1A2.75 2.75 0 0011 8.25H7A2.75 2.75 0 004.25 11v1h1.5v-1c0-.69.56-1.25 1.25-1.25h4c.69 0 1.25.56 1.25 1.25v1h1.5zM4 20h9v-1.5H4V20zm16-4H4v-1.5h16V16z",fillRule:"evenodd",clipRule:"evenodd"})),mL=e=>{let{closeModal:t}=e;return H().createElement(es,{title:(0,B.__)("Set up live payments on your store","woocommerce-payments"),className:"wcpay-setup-real-payments-modal",isDismissible:!0,onRequestClose:t},H().createElement("p",{className:"wcpay-setup-real-payments-modal__headline"},(0,B.__)("Before proceeding, please take note of the following information:","woocommerce-payments")),H().createElement("div",{className:"wcpay-setup-real-payments-modal__content"},H().createElement(Xy,{icon:dL}),(0,B.__)("Your test account will be deactivated and your transaction records will be preserved for future reference.","woocommerce-payments"),H().createElement(Xy,{icon:uL}),(0,B.__)("The owner, business and contact information will be required.","woocommerce-payments"),H().createElement(Xy,{icon:lL}),(0,B.__)("We will need your banking details in order to process any deposits to you.","woocommerce-payments")),H().createElement("div",{className:"wcpay-setup-real-payments-modal__footer"},H().createElement(Jn,{isTertiary:!0,onClick:t},(0,B.__)("Cancel","woocommerce-payments")),H().createElement(Jn,{isPrimary:!0,onClick:()=>{window.location.href=(0,ys.addQueryArgs)(wcpaySettings.connectUrl,{"wcpay-disable-onboarding-test-mode":!0})}},(0,B.__)("Continue setup","woocommerce-payments"))))},pL=()=>{const e="1"===(0,ky.getQuery)()["wcpay-login-error"];return wcpaySettings.errorMessage||e?(0,Y.createElement)(er,{status:"error",isDismissible:!1,className:"wcpay-login-error"},wcpaySettings.errorMessage||(0,B.__)("There was a problem redirecting you to the account dashboard. Please try again.","woocommerce-payments")):null},yL=()=>{const{accountStatus:e,overviewTasksVisibility:t,showUpdateDetailsTask:n,wpcomReconnectUrl:r,enabledPaymentMethods:o}=wcpaySettings,a=wcpaySettings.devMode,{isLoading:i}=Tm(),[s,c]=(0,V.useState)(!1),l=xm(),{disputes:d}=id({filter:"awaiting_response",per_page:50}),u=hO({showUpdateDetailsTask:n,wpcomReconnectUrl:r,activeDisputes:d,enabledPaymentMethods:o}),m=Array.isArray(u)&&u.sort(fO),p=(0,ky.getQuery)(),y=e.status&&e.status.startsWith("rejected"),h="1"===p["wcpay-connection-success"],f="1"===p["wcpay-loan-offer-error"],_="1"===p["wcpay-server-link-error"],g=h&&e.progressiveOnboarding.isEnabled&&!e.progressiveOnboarding.isComplete,v=!y&&m.length>0,w=Object.entries(wcpaySettings.accountFees).map((e=>{let[t,n]=e;const r=!i&&l.enabled_payment_method_ids.filter((e=>e===t)).length>0;return i||!r||0===n.discount.length?null:{payment_method:t,fee:n}})).filter((e=>e&&void 0!==e.fee));return(0,Y.createElement)(Wa,{isNarrow:!0,className:"wcpay-overview"},(0,Y.createElement)(pL,null),(0,Y.createElement)(rL,null),f&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,B.__)("There was a problem redirecting you to the loan offer. Please check that it is not expired and try again.","woocommerce-payments")),_&&(0,Y.createElement)(er,{status:"error",isDismissible:!1},(0,B.__)("There was a problem redirecting you to the requested link. Please check that it is valid and try again.","woocommerce-payments")),(0,Y.createElement)(Ls,{currentPage:"overview",isDevMode:a,actions:a?[{label:cL.notice.actions.setUpPayments,onClick:()=>c(!0)},{label:cL.notice.actions.learnMore,url:"https://woo.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",urlTarget:"_blank"}]:[]}),(0,Y.createElement)(Ya,null,(0,Y.createElement)(sL,null)),h&&(0,Y.createElement)(YO,null),!y&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(Y.Fragment,null,v?(0,Y.createElement)(Y.Fragment,null,(0,Y.createElement)(ko,null,(0,Y.createElement)(AT,null),(0,Y.createElement)(Ya,null,(0,Y.createElement)(oO,{tasks:m,overviewTasksVisibility:t}))),(0,Y.createElement)(ko,null,(0,Y.createElement)(VT,null))):(0,Y.createElement)(ko,null,(0,Y.createElement)(AT,null),(0,Y.createElement)(VT,null)),(0,Y.createElement)(tO,null))),(0,Y.createElement)(Ya,null,(0,Y.createElement)(OT,{accountStatus:wcpaySettings.accountStatus,accountFees:w})),wcpaySettings.accountLoans.has_active_loan&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(Ax,null)),!y&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(VO,null)),g&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(nL,null)),s&&(0,Y.createElement)(Ya,null,(0,Y.createElement)(mL,{closeModal:()=>c(!1)})))},hL={vat_invoice:(0,B.__)("VAT Invoice","woocommerce-payments")},fL=Object.entries(hL).map((e=>{let[t,n]=e;return{label:n,value:t}})).filter((function(e){return null!=e})),_L=[{label:(0,B.__)("Show","woocommerce-payments"),param:"filter",staticParams:["paged","per_page","orderby","order"],showFilters:()=>!0,filters:[{label:(0,B.__)("All documents","woocommerce-payments"),value:"all"},{label:(0,B.__)("Advanced filters","woocommerce-payments"),value:"advanced"}]}],gL=(0,Kl.getSetting)("wcVersion"),vL=parseFloat(gL),wL={title:vL<7.8?(0,B.__)("Documents match {{select /}} filters","woocommerce-payments"):(0,B.__)("Documents match <select /> filters","woocommerce-payments"),filters:{date:{labels:{add:(0,B.__)("Date","woocommerce-payments"),remove:(0,B.__)("Remove document date filter","woocommerce-payments"),rule:(0,B.__)("Select a document date filter match","woocommerce-payments"),title:vL<7.8?(0,B.__)("{{title}}Date{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Date</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a document date","woocommerce-payments")},rules:[{value:"before",label:(0,B.__)("Before","woocommerce-payments")},{value:"after",label:(0,B.__)("After","woocommerce-payments")},{value:"between",label:(0,B.__)("Between","woocommerce-payments")}],input:{component:"Date"}},type:{labels:{add:(0,B.__)("Type","woocommerce-payments"),remove:(0,B.__)("Remove document type filter","woocommerce-payments"),rule:(0,B.__)("Select a document type filter match","woocommerce-payments"),title:vL<7.8?(0,B.__)("{{title}}Type{{/title}} {{rule /}} {{filter /}}","woocommerce-payments"):(0,B.__)("<title>Type</title> <rule /> <filter />","woocommerce-payments"),filter:(0,B.__)("Select a document type","woocommerce-payments")},rules:[{value:"is",label:(0,B._x)("Is","document type","woocommerce-payments")},{value:"is_not",label:(0,B._x)("Is not","document type","woocommerce-payments")}],input:{component:"SelectControl",options:fL}}}},bL=()=>H().createElement("div",{className:"woocommerce-filters-documents"},H().createElement(cs.ReportFilters,{filters:_L,advancedFilters:wL,showDatePicker:!1,path:"/payments/documents",query:(0,ky.getQuery)()}));const EL=e=>{let{onCompleted:t,vatNumber:n,placeholderCompanyName:r,placeholderCompanyAddress:o}=e;const{setCompleted:a}=(0,V.useContext)(nN),[i,s]=(0,V.useState)(null),[c,l]=(0,V.useState)(!1),[d,u]=(0,V.useState)(""),[m,p]=(0,V.useState)("");(0,V.useEffect)((()=>{u(r),p(o)}),[r,o]);const y=""===d.trim()||""===m.trim();return H().createElement(iN,{index:2,title:(0,B.__)("Confirm your business details","woocommerce-payments"),className:null},H().createElement(aN,{className:null},H().createElement(Gv,{label:(0,B.__)("Business name","woocommerce-payments"),value:d,onChange:u}),H().createElement(Jv,{label:(0,B.__)("Address","woocommerce-payments"),value:m,onChange:p}),H().createElement(Jn,{isPrimary:!0,disabled:y||c,isBusy:c,onClick:()=>{return e=void 0,r=void 0,i=function*(){try{l(!0);const e={name:d,address:m};null!==n&&(e.vat_number=n);const r=yield va()({path:"/wc/v3/payments/vat",method:"POST",data:e});l(!1),a(!0,"vat-submitted"),t(r.vat_number,r.name,r.address)}catch(e){l(!1),s(e.message)}},new((o=void 0)||(o=Promise))((function(t,n){function a(e){try{c(i.next(e))}catch(e){n(e)}}function s(e){try{c(i.throw(e))}catch(e){n(e)}}function c(e){var n;e.done?t(e.value):(n=e.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,s)}c((i=i.apply(e,r||[])).next())}));var e,r,o,i}},(0,B.__)("Confirm","woocommerce-payments")),i&&H().createElement(er,{status:"error",isDismissible:!1,className:"vat-number-error"},i)))};const $L=e=>{let{onCompleted:t}=e;const{setCompleted:n}=(0,V.useContext)(nN),[r,o]=(0,V.useState)(null),[a,i]=(0,V.useState)(!1),[s,c]=(0,V.useState)(!1),[l,d]=(0,V.useState)(""),u=(()=>{switch(wcpaySettings.accountStatus.country){case"GR":return"EL ";case"CH":return"CHE ";default:return`${wcpaySettings.accountStatus.country} `}})(),m=s&&l.trimEnd()===u.trimEnd();return l.startsWith(u)||d(u),H().createElement(iN,{index:1,title:(0,B.__)("Update your VAT information","woocommerce-payments"),className:null},H().createElement("p",{className:"wcpay-wizard-task__description-element"},(0,B.__)("VAT information saved on this page will be applied to all of your account’s receipts.","woocommerce-payments")),H().createElement(aN,{className:null},H().createElement(of,{checked:s,onChange:c,label:(0,B.__)("I’m registered for a VAT number","woocommerce-payments"),help:(0,B.__)("If your sales exceed the VAT threshold for your country, you’re required to register for a VAT number.","woocommerce-payments")}),s&&H().createElement(Gv,{label:(0,B.__)("VAT Number","woocommerce-payments"),help:(0,B.__)("This is 8 to 12 digits with your country code prefix, for example DE 123456789.","woocommerce-payments"),value:l,onChange:d}),H().createElement(Jn,{isPrimary:!0,disabled:m||a,isBusy:a,onClick:()=>{return e=void 0,r=void 0,c=function*(){var e,r;const a=s?l.replace(u,""):null;let c="",d="";o("");try{if(null!==a){i(!0);const t=yield va()({path:`/wc/v3/payments/vat/${encodeURI(a)}`});i(!1),c=null!==(e=t.name)&&void 0!==e?e:"",d=null!==(r=t.address)&&void 0!==r?r:""}n(!0,"company-data"),t(a,c,d)}catch(e){i(!1),o(e.message)}},new((a=void 0)||(a=Promise))((function(t,n){function o(e){try{s(c.next(e))}catch(e){n(e)}}function i(e){try{s(c.throw(e))}catch(e){n(e)}}function s(e){var n;e.done?t(e.value):(n=e.value,n instanceof a?n:new a((function(e){e(n)}))).then(o,i)}s((c=c.apply(e,r||[])).next())}));var e,r,a,c}},(0,B.__)("Continue","woocommerce-payments")),r&&H().createElement(er,{status:"error",isDismissible:!1,className:"vat-number-error"},r)))},SL=e=>{let{onCompleted:t}=e;const[n,r]=(0,V.useState)(null),[o,a]=(0,V.useState)(""),[i,s]=(0,V.useState)("");return H().createElement(tN,{defaultActiveTask:"vat-number"},H().createElement(oN,null,H().createElement(rN,{id:"vat-number"},H().createElement($L,{onCompleted:(e,t,n)=>{r(e),a(t),s(n)}})),H().createElement(rN,{id:"company-data"},H().createElement(EL,{onCompleted:(e,n,r)=>{t(e,n,r)},vatNumber:n,placeholderCompanyName:o,placeholderCompanyAddress:i}))))},CL=e=>{let{isModalOpen:t,setModalOpen:n,onCompleted:r}=e;return t?H().createElement(es,{title:(0,B.__)("VAT details","woocommerce-payments"),onRequestClose:()=>n(!1)},H().createElement(SL,{onCompleted:r})):null},kL=e=>"vat_invoice"===e.type?e.period_from&&e.period_to?(0,B.sprintf)((0,B.__)("VAT invoice for %s to %s","woocommerce-payments"),(0,_s.dateI18n)("M j, Y",fs().utc(e.period_from).toISOString(),"utc"),(0,_s.dateI18n)("M j, Y",fs().utc(e.period_to).toISOString(),"utc")):(0,B.__)("VAT invoice without proper period dates","woocommerce-payments"):(0,B.__)("Unknown document type","woocommerce-payments"),IL=()=>{var e;const{documents:t,isLoading:n}=(e=>{let{paged:t,per_page:n,orderby:r,order:o,match:a,date_before:i,date_after:s,date_between:c,type_is:l,type_is_not:d}=e;return(0,ps.useSelect)((e=>{const{getDocuments:u,getDocumentsError:m,isResolving:p}=e(vs),y={paged:Number.isNaN(parseInt(null!=t?t:"",10))?"1":t,perPage:Number.isNaN(parseInt(null!=n?n:"",10))?"25":n,orderby:r||"date",order:o||"desc",match:a,dateBefore:i,dateAfter:s,dateBetween:c&&c.sort(((e,t)=>fs()(e).diff(fs()(t)))),typeIs:l,typeIsNot:d};return{documents:u(y),documentsError:m(y),isLoading:p("getDocuments",[y])}}),[t,n,r,o,a,i,s,JSON.stringify(c),l,d])})((0,ky.getQuery)()),{documentsSummary:r,isLoading:o}=(e=>{let{match:t,date_before:n,date_after:r,date_between:o,type_is:a,type_is_not:i}=e;return(0,ps.useSelect)((e=>{const{getDocumentsSummary:s,isResolving:c}=e(vs),l={match:t,dateBefore:n,dateAfter:r,dateBetween:o,typeIs:a,typeIsNot:i};return{documentsSummary:s(l),isLoading:c("getDocumentsSummary",[l])}}),[t,n,r,JSON.stringify(o),a,i])})((0,ky.getQuery)()),[a,i]=(0,V.useState)(!1),[s,c]=(0,V.useState)(null),l=(0,V.useCallback)((function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const r=Es(e);((e,t,n)=>(c({documentId:e,type:t,newTab:n}),!("vat_invoice"===t&&!wcpaySettings.accountStatus.hasSubmittedVatData&&(i(!0),1))))(e,t,n)&&window.open(r,n?"_blank":"_self")}),[]),{document_id:d,document_type:u}=(0,ky.getQuery)();(0,V.useEffect)((()=>{d&&u&&l(d,u,!1)}),[d,u,l]);const m=[{key:"date",label:(0,B.__)("Date","woocommerce-payments"),screenReaderLabel:(0,B.__)("Date and time","woocommerce-payments"),required:!0,isLeftAligned:!0,defaultOrder:"desc",cellClassName:"date",isSortable:!0,defaultSort:!0},{key:"type",label:(0,B.__)("Type","woocommerce-payments"),screenReaderLabel:(0,B.__)("Type","woocommerce-payments"),required:!0,isLeftAligned:!0},{key:"description",label:(0,B.__)("Description","woocommerce-payments"),screenReaderLabel:(0,B.__)("Description","woocommerce-payments")},{key:"download",label:"",screenReaderLabel:(0,B.__)("Download","woocommerce-payments"),isLeftAligned:!1,isNumeric:!0}].filter(Boolean),p=r.count||0,y=t.map((e=>{var t;const n=null!==(t=hL[e.type])&&void 0!==t?t:(0,B.__)("Unknown document type","woocommerce-payments"),r={date:{value:e.date,display:(0,_s.dateI18n)("M j, Y",fs().utc(e.date).local().toISOString())},type:{value:n,display:n},description:{value:kL(e),display:kL(e)},download:{value:Es(e.document_id),display:H().createElement(Jn,{isLink:!0,onClick:()=>l(e.document_id,e.type)},(0,B.__)("Download","woocommerce-payments"))}};return m.map((e=>{let{key:t}=e;return r[t]||{display:null}}))})),h=(0,B.__)("Documents","woocommerce-payments");let f;return void 0!==r.count&&!1===o&&(f=[{label:(0,B._n)("document","documents",r.count,"woocommerce-payments"),value:`${r.count}`}]),H().createElement(Wa,null,H().createElement(bL,null),H().createElement(cs.TableCard,{className:"documents-list woocommerce-report-table has-search",title:h,isLoading:n,rowsPerPage:parseInt(null!==(e=(0,ky.getQuery)().per_page)&&void 0!==e?e:"",10)||25,totalRows:p,headers:m,rows:y,summary:f,query:(0,ky.getQuery)(),onQueryChange:ky.onQueryChange,actions:[]}),H().createElement(CL,{isModalOpen:a,setModalOpen:i,onCompleted:()=>{i(!1),wcpaySettings.accountStatus.hasSubmittedVatData=!0,s&&l(s.documentId,s.type,s.newTab)}}))},NL=()=>H().createElement(Wa,null,H().createElement(Ls,{currentPage:"documents"}),H().createElement(IL,null));var xL=n(5697),TL=n.n(xL);function OL(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function LL(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function AL(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return LL(n.overflowY,t)||LL(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function ML(e,t,n,r,o,a,i,s){return a<e&&i>t||a>e&&i<t?0:a<=e&&s<=n||i>=t&&s>=n?a-e-r:i>t&&s<n||a<e&&s>n?i-t+o:0}n(9864);let DL=0;function RL(){}function PL(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function jL(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];r(),n=setTimeout((()=>{n=null,e(...a)}),t)}return o.cancel=r,o}function FL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function zL(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function BL(){return String(DL++)}function UL(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n)),{})}function VL(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function HL(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const a=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:a+1);let i=t+e;i<0?i=o?a:0:i>a&&(i=o?0:a);const s=YL(e,i,n,r,o);return-1===s?t>=n?-1:t:s}function YL(e,t,n,r,o){const a=r(t);if(!a||!a.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?YL(1,0,n,r,!1):YL(-1,n-1,n,r,!1):-1}function WL(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(PL(t,e,n)||r&&PL(t,n.document.activeElement,n))))}const GL=jL((e=>{qL(e).textContent=""}),500);function qL(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}const ZL={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};const QL=jL(((e,t)=>{!function(e,t){const n=qL(t);e&&(n.textContent=e,GL(t))}(e(),t)}),200),KL="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?V.useLayoutEffect:V.useEffect;function JL(e){return/^\S{1}$/.test(e)}function XL(e){return`${e.slice(0,1).toUpperCase()}${e.slice(1)}`}function eA(e){const t=(0,V.useRef)(e);return t.current=e,t}function tA(e,t,n){const r=(0,V.useRef)(),o=(0,V.useRef)(),a=(0,V.useCallback)(((t,n)=>{o.current=n,t=UL(t,n.props);const r=e(t,n);return n.props.stateReducer(t,{...n,changes:r})}),[e]),[i,s]=(0,V.useReducer)(a,t),c=eA(n),l=(0,V.useCallback)((e=>s({props:c.current,...e})),[c]),d=o.current;return(0,V.useEffect)((()=>{d&&r.current&&r.current!==i&&function(e,t,n){const{props:r,type:o}=e,a={};Object.keys(t).forEach((r=>{!function(e,t,n,r){const{props:o,type:a}=t,i=`on${XL(e)}Change`;o[i]&&void 0!==r[e]&&r[e]!==n[e]&&o[i]({type:a,...r})}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange({type:o,...a})}(d,UL(r.current,d.props),i),r.current=i}),[i,n,d]),[i,l]}const nA={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:function(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,i=t.boundary,s=t.skipOverflowHiddenElements,c="function"==typeof i?i:function(e){return e!==i};if(!OL(e))throw new TypeError("Invalid target");for(var l,d,u=document.scrollingElement||document.documentElement,m=[],p=e;OL(p)&&c(p);){if((p=null==(d=(l=p).parentElement)?l.getRootNode().host||null:d)===u){m.push(p);break}null!=p&&p===document.body&&AL(p)&&!AL(document.documentElement)||null!=p&&AL(p,s)&&m.push(p)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,_=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),v=g.height,w=g.width,b=g.top,E=g.right,$=g.bottom,S=g.left,C="start"===o||"nearest"===o?b:"end"===o?$:b+v/2,k="center"===a?S+w/2:"end"===a?E:S,I=[],N=0;N<m.length;N++){var x=m[N],T=x.getBoundingClientRect(),O=T.height,L=T.width,A=T.top,M=T.right,D=T.bottom,R=T.left;if("if-needed"===r&&b>=0&&S>=0&&$<=h&&E<=y&&b>=A&&$<=D&&S>=R&&E<=M)return I;var P=getComputedStyle(x),j=parseInt(P.borderLeftWidth,10),F=parseInt(P.borderTopWidth,10),z=parseInt(P.borderRightWidth,10),B=parseInt(P.borderBottomWidth,10),U=0,V=0,H="offsetWidth"in x?x.offsetWidth-x.clientWidth-j-z:0,Y="offsetHeight"in x?x.offsetHeight-x.clientHeight-F-B:0,W="offsetWidth"in x?0===x.offsetWidth?0:L/x.offsetWidth:0,G="offsetHeight"in x?0===x.offsetHeight?0:O/x.offsetHeight:0;if(u===x)U="start"===o?C:"end"===o?C-h:"nearest"===o?ML(_,_+h,h,F,B,_+C,_+C+v,v):C-h/2,V="start"===a?k:"center"===a?k-y/2:"end"===a?k-y:ML(f,f+y,y,j,z,f+k,f+k+w,w),U=Math.max(0,U+_),V=Math.max(0,V+f);else{U="start"===o?C-A-F:"end"===o?C-D+B+Y:"nearest"===o?ML(A,D,O,F,B+Y,C,C+v,v):C-(A+O/2)+Y/2,V="start"===a?k-R-j:"center"===a?k-(R+L/2)+H/2:"end"===a?k-M+z+H:ML(R,M,L,j,z+H,k,k+w,w);var q=x.scrollLeft,Z=x.scrollTop;C+=Z-(U=Math.max(0,Math.min(Z+U/G,x.scrollHeight-O/G+Y))),k+=q-(V=Math.max(0,Math.min(q+V/W,x.scrollWidth-L/W+H)))}I.push({el:x,top:U,left:V})}return I}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))},circularNavigation:!1,environment:"undefined"==typeof window?{}:window};function rA(e,t,n){void 0===n&&(n=ZL);const r=e[`default${XL(t)}`];return void 0!==r?r:n[t]}function oA(e,t,n){void 0===n&&(n=ZL);const r=e[t];if(void 0!==r)return r;const o=e[`initial${XL(t)}`];return void 0!==o?o:rA(e,t,n)}function aA(e,t,n,r){const{items:o,initialHighlightedIndex:a,defaultHighlightedIndex:i}=e,{selectedItem:s,highlightedIndex:c}=t;return 0===o.length?-1:void 0!==a&&c===a?a:void 0!==i?i:s?0===n?o.indexOf(s):HL(n,o.indexOf(s),o.length,r,!1):0===n?-1:n<0?o.length-1:0}function iA(e,t,n){let{isInitialMount:r,highlightedIndex:o,items:a,environment:i,...s}=n;(0,V.useEffect)((()=>{r||QL((()=>e({highlightedIndex:o,highlightedItem:a[o],resultCount:a.length,...s})),i.document)}),t)}let sA=RL;function cA(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,o=e.itemToString,a=e.getItemNodeFromIndex,i=t.toLowerCase(),s=0;s<r.length;s++){var c=(s+n+1)%r.length,l=r[c];if(void 0!==l&&o(l).toLowerCase().startsWith(i)){var d=a(c);if(!(null==d?void 0:d.hasAttribute("disabled")))return c}}return n}TL().array.isRequired,TL().func,TL().func,TL().func,TL().bool,TL().number,TL().number,TL().number,TL().bool,TL().bool,TL().bool,TL().any,TL().any,TL().any,TL().string,TL().string,TL().string,TL().func,TL().string,TL().func,TL().func,TL().func,TL().func,TL().func,TL().shape({addEventListener:TL().func,removeEventListener:TL().func,document:TL().shape({getElementById:TL().func,activeElement:TL().any,body:TL().any})});var lA=rw(rw({},nA),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),dA=RL;const uA=0,mA=1,pA=2,yA=3,hA=4,fA=5,_A=6,gA=7,vA=8,wA=11,bA=13,EA=14,$A=15,SA=20;var CA=Object.freeze({__proto__:null,MenuKeyDownArrowDown:uA,MenuKeyDownArrowUp:mA,MenuKeyDownEscape:pA,MenuKeyDownHome:yA,MenuKeyDownEnd:hA,MenuKeyDownEnter:fA,MenuKeyDownSpaceButton:_A,MenuKeyDownCharacter:gA,MenuBlur:vA,MenuMouseLeave:9,ItemMouseMove:10,ItemClick:wA,ToggleButtonClick:12,ToggleButtonKeyDownArrowDown:bA,ToggleButtonKeyDownArrowUp:EA,ToggleButtonKeyDownCharacter:$A,FunctionToggleMenu:16,FunctionOpenMenu:17,FunctionCloseMenu:18,FunctionSetHighlightedIndex:19,FunctionSelectItem:SA,FunctionSetInputValue:21,FunctionReset:22});function kA(e,t){const{type:n,props:r,shiftKey:o}=t;let a;switch(n){case wA:a={isOpen:rA(r,"isOpen"),highlightedIndex:rA(r,"highlightedIndex"),selectedItem:r.items[t.index]};break;case $A:{const n=t.key,o=`${e.inputValue}${n}`,i=cA({keysSoFar:o,highlightedIndex:e.selectedItem?r.items.indexOf(e.selectedItem):-1,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:o,...i>=0&&{selectedItem:r.items[i]}}}break;case bA:a={highlightedIndex:aA(r,e,1,t.getItemNodeFromIndex),isOpen:!0};break;case EA:a={highlightedIndex:aA(r,e,-1,t.getItemNodeFromIndex),isOpen:!0};break;case fA:case _A:a={isOpen:rA(r,"isOpen"),highlightedIndex:rA(r,"highlightedIndex"),...e.highlightedIndex>=0&&{selectedItem:r.items[e.highlightedIndex]}};break;case yA:a={highlightedIndex:YL(1,0,r.items.length,t.getItemNodeFromIndex,!1)};break;case hA:a={highlightedIndex:YL(-1,r.items.length-1,r.items.length,t.getItemNodeFromIndex,!1)};break;case pA:case vA:a={isOpen:!1,highlightedIndex:-1};break;case gA:{const n=t.key,o=`${e.inputValue}${n}`,i=cA({keysSoFar:o,highlightedIndex:e.highlightedIndex,items:r.items,itemToString:r.itemToString,getItemNodeFromIndex:t.getItemNodeFromIndex});a={inputValue:o,...i>=0&&{highlightedIndex:i}}}break;case uA:a={highlightedIndex:HL(o?5:1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case mA:a={highlightedIndex:HL(o?-5:-1,e.highlightedIndex,r.items.length,t.getItemNodeFromIndex,r.circularNavigation)};break;case SA:a={selectedItem:t.selectedItem};break;default:return function(e,t,n){const{type:r,props:o}=t;let a;switch(r){case n.ItemMouseMove:a={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:a={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:a={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:aA(o,e,0)};break;case n.FunctionOpenMenu:a={isOpen:!0,highlightedIndex:aA(o,e,0)};break;case n.FunctionCloseMenu:a={isOpen:!1};break;case n.FunctionSetHighlightedIndex:a={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:a={inputValue:t.inputValue};break;case n.FunctionReset:a={highlightedIndex:rA(o,"highlightedIndex"),isOpen:rA(o,"isOpen"),selectedItem:rA(o,"selectedItem"),inputValue:rA(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return{...e,...a}}(e,t,CA)}return{...e,...a}}function IA(e){void 0===e&&(e={}),dA(e,IA);const t={...lA,...e},{items:n,scrollIntoView:r,environment:o,initialIsOpen:a,defaultIsOpen:i,itemToString:s,getA11ySelectionMessage:c,getA11yStatusMessage:l}=t,d=function(e){const t=oA(e,"selectedItem"),n=oA(e,"isOpen"),r=oA(e,"highlightedIndex"),o=oA(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:o}}(t),[u,m]=function(e,t,n){const[r,o]=tA(e,t,n);return[UL(r,n),o]}(kA,d,t),{isOpen:p,highlightedIndex:y,selectedItem:h,inputValue:f}=u,_=(0,V.useRef)(null),g=(0,V.useRef)(null),v=(0,V.useRef)({}),w=(0,V.useRef)(!0),b=(0,V.useRef)(null),E=function(e){let{id:t=`downshift-${BL()}`,labelId:n,menuId:r,getItemId:o,toggleButtonId:a,inputId:i}=e;return(0,V.useRef)({labelId:n||`${t}-label`,menuId:r||`${t}-menu`,getItemId:o||(e=>`${t}-item-${e}`),toggleButtonId:a||`${t}-toggle-button`,inputId:i||`${t}-input`}).current}(t),$=(0,V.useRef)(),S=(0,V.useRef)(!0),C=eA({state:u,props:t}),k=(0,V.useCallback)((e=>v.current[E.getItemId(e)]),[E]);iA(l,[p,y,f,n],{isInitialMount:S.current,previousResultCount:$.current,items:n,environment:o,itemToString:s,...u}),iA(c,[h],{isInitialMount:S.current,previousResultCount:$.current,items:n,environment:o,itemToString:s,...u});const I=function(e){let{highlightedIndex:t,isOpen:n,itemRefs:r,getItemNodeFromIndex:o,menuElement:a,scrollIntoView:i}=e;const s=(0,V.useRef)(!0);return KL((()=>{t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:i(o(t),a))}),[t]),s}({menuElement:g.current,highlightedIndex:y,isOpen:p,itemRefs:v,scrollIntoView:r,getItemNodeFromIndex:k});(0,V.useEffect)((()=>(b.current=jL((e=>{e({type:21,inputValue:""})}),500),()=>{b.current.cancel()})),[]),(0,V.useEffect)((()=>{f&&b.current(m)}),[m,f]),sA({isInitialMount:S.current,props:t,state:u}),(0,V.useEffect)((()=>{S.current?(a||i||p)&&g.current&&g.current.focus():p?g.current&&g.current.focus():o.document.activeElement===g.current&&_.current&&(w.current=!1,_.current.focus())}),[p]),(0,V.useEffect)((()=>{S.current||($.current=n.length)}));const N=function(e,t,n,r){const o=(0,V.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,V.useEffect)((()=>{const a=()=>{o.current.isMouseDown=!0},i=a=>{o.current.isMouseDown=!1,e&&!WL(a.target,t.map((e=>e.current)),n)&&r()},s=()=>{o.current.isTouchMove=!1},c=()=>{o.current.isTouchMove=!0},l=a=>{!e||o.current.isTouchMove||WL(a.target,t.map((e=>e.current)),n,!1)||r()};return n.addEventListener("mousedown",a),n.addEventListener("mouseup",i),n.addEventListener("touchstart",s),n.addEventListener("touchmove",c),n.addEventListener("touchend",l),function(){n.removeEventListener("mousedown",a),n.removeEventListener("mouseup",i),n.removeEventListener("touchstart",s),n.removeEventListener("touchmove",c),n.removeEventListener("touchend",l)}}),[e,n]),o}(p,[g,_],o,(()=>{m({type:vA})})),x=RL;(0,V.useEffect)((()=>{S.current=!1}),[]),(0,V.useEffect)((()=>{p||(v.current={})}),[p]);const T=(0,V.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:bA,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:EA,getItemNodeFromIndex:k,shiftKey:e.shiftKey})}})),[m,k]),O=(0,V.useMemo)((()=>({ArrowDown(e){e.preventDefault(),m({type:uA,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},ArrowUp(e){e.preventDefault(),m({type:mA,getItemNodeFromIndex:k,shiftKey:e.shiftKey})},Home(e){e.preventDefault(),m({type:yA,getItemNodeFromIndex:k})},End(e){e.preventDefault(),m({type:hA,getItemNodeFromIndex:k})},Escape(){m({type:pA})},Enter(e){e.preventDefault(),m({type:fA})}," "(e){e.preventDefault(),m({type:_A})}})),[m,k]),L=(0,V.useCallback)((()=>{m({type:16})}),[m]),A=(0,V.useCallback)((()=>{m({type:18})}),[m]),M=(0,V.useCallback)((()=>{m({type:17})}),[m]),D=(0,V.useCallback)((e=>{m({type:19,highlightedIndex:e})}),[m]),R=(0,V.useCallback)((e=>{m({type:SA,selectedItem:e})}),[m]),P=(0,V.useCallback)((()=>{m({type:22})}),[m]),j=(0,V.useCallback)((e=>{m({type:21,inputValue:e})}),[m]),F=(0,V.useCallback)((e=>({id:E.labelId,htmlFor:E.toggleButtonId,...e})),[E]),z=(0,V.useCallback)((function(e,t){let{onMouseLeave:n,refKey:r="ref",onKeyDown:o,onBlur:a,ref:i,...s}=void 0===e?{}:e,{suppressRefError:c=!1}=void 0===t?{}:t;const l=C.current.state;return x("getMenuProps",c,r,g),{[r]:zL(i,(e=>{g.current=e})),id:E.menuId,role:"listbox","aria-labelledby":E.labelId,tabIndex:-1,...l.isOpen&&l.highlightedIndex>-1&&{"aria-activedescendant":E.getItemId(l.highlightedIndex)},onMouseLeave:FL(n,(()=>{m({type:9})})),onKeyDown:FL(o,(e=>{const t=VL(e);t&&O[t]?O[t](e):JL(t)&&m({type:gA,key:t,getItemNodeFromIndex:k})})),onBlur:FL(a,(()=>{!1!==w.current?!N.current.isMouseDown&&m({type:vA}):w.current=!0})),...s}}),[m,C,O,N,x,E,k]);return{getToggleButtonProps:(0,V.useCallback)((function(e,t){let{onClick:n,onKeyDown:r,refKey:o="ref",ref:a,...i}=void 0===e?{}:e,{suppressRefError:s=!1}=void 0===t?{}:t;const c={[o]:zL(a,(e=>{_.current=e})),id:E.toggleButtonId,"aria-haspopup":"listbox","aria-expanded":C.current.state.isOpen,"aria-labelledby":`${E.labelId} ${E.toggleButtonId}`,...i};return i.disabled||(c.onClick=FL(n,(()=>{m({type:12})})),c.onKeyDown=FL(r,(e=>{const t=VL(e);t&&T[t]?T[t](e):JL(t)&&m({type:$A,key:t,getItemNodeFromIndex:k})}))),x("getToggleButtonProps",s,o,_),c}),[m,C,T,x,E,k]),getLabelProps:F,getMenuProps:z,getItemProps:(0,V.useCallback)((function(e){let{item:t,index:n,onMouseMove:r,onClick:o,refKey:a="ref",ref:i,disabled:s,...c}=void 0===e?{}:e;const{state:l,props:d}=C.current,u=function(e,t,n){return void 0!==e?e:0===n.length?-1:n.indexOf(t)}(n,t,d.items);if(u<0)throw new Error("Pass either item or item index in getItemProps!");const p={disabled:s,role:"option","aria-selected":`${u===l.highlightedIndex}`,id:E.getItemId(u),[a]:zL(i,(e=>{e&&(v.current[E.getItemId(u)]=e)})),...c};return s||(p.onClick=FL(o,(()=>{m({type:wA,index:n})}))),p.onMouseMove=FL(r,(()=>{n!==l.highlightedIndex&&(I.current=!1,m({type:10,index:n,disabled:s}))})),p}),[m,C,I,E]),toggleMenu:L,openMenu:M,closeMenu:A,setHighlightedIndex:D,selectItem:R,reset:P,setInputValue:j,highlightedIndex:y,isOpen:p,selectedItem:h,inputValue:f}}IA.stateChangeTypes=CA,TL().array.isRequired,TL().func,TL().func,TL().func,TL().bool,TL().number,TL().number,TL().number,TL().bool,TL().bool,TL().bool,TL().any,TL().any,TL().any,TL().string,TL().string,TL().string,TL().string,TL().string,TL().string,TL().func,TL().string,TL().string,TL().func,TL().func,TL().func,TL().func,TL().func,TL().func,TL().shape({addEventListener:TL().func,removeEventListener:TL().func,document:TL().shape({getElementById:TL().func,activeElement:TL().any,body:TL().any})}),TL().array,TL().array,TL().array,TL().func,TL().func,TL().func,TL().number,TL().number,TL().number,TL().func,TL().func,TL().string,TL().string,TL().shape({addEventListener:TL().func,removeEventListener:TL().func,document:TL().shape({getElementById:TL().func,activeElement:TL().any,body:TL().any})});const NA=e=>(null==e?void 0:e.name)||"",xA=(e,t)=>{let{selectedItem:n}=e,{type:r,changes:o,props:{items:a}}=t;switch(r){case IA.stateChangeTypes.ToggleButtonKeyDownArrowDown:return{selectedItem:a[n?Math.min(a.indexOf(n)+1,a.length-1):0]};case IA.stateChangeTypes.ToggleButtonKeyDownArrowUp:return{selectedItem:a[n?Math.max(a.indexOf(n)-1,0):a.length-1]};default:return o}},TA=function(e){let{name:t,className:n,label:r,describedBy:o,options:a,onChange:i,value:s,placeholder:c,children:l}=e;var d;const{getLabelProps:u,getToggleButtonProps:m,getMenuProps:p,getItemProps:y,isOpen:h,highlightedIndex:f,selectedItem:_}=IA({initialSelectedItem:a[0],items:a,itemToString:NA,onSelectedItemChange:i,selectedItem:s||{},stateReducer:xA}),g=NA(_),v=p({className:"components-custom-select-control__menu","aria-hidden":!h}),w=(0,Y.useCallback)((e=>{var t;e.stopPropagation(),null===(t=null==v?void 0:v.onKeyDown)||void 0===t||t.call(v,e)}),[v]);return(null===(d=v["aria-activedescendant"])||void 0===d?void 0:d.startsWith("downshift-null"))&&delete v["aria-activedescendant"],H().createElement("div",{className:Z()("wcpay components-custom-select-control",n)},H().createElement("label",Object.assign({},u({className:"components-custom-select-control__label"})),r),H().createElement(Jn,Object.assign({},m({"aria-label":r,"aria-labelledby":void 0,"aria-describedby":o||(g?(0,B.sprintf)((0,B.__)("Currently selected: %s"),g):(0,B.__)("No selection")),className:Z()("components-custom-select-control__button",{placeholder:!g}),name:t})),H().createElement("span",{className:"components-custom-select-control__button-value"},g||c),H().createElement(Xy,{icon:eh,className:"components-custom-select-control__button-icon"})),H().createElement("ul",Object.assign({},v,{onKeyDown:w}),h&&a.map(((e,t)=>H().createElement("li",Object.assign({},y({item:e,index:t,key:e.key,className:Z()(e.className,"components-custom-select-control__item",{"is-highlighted":t===f}),style:e.style})),l?l(e):e.name,e===_&&H().createElement(Xy,{icon:Ga,className:"components-custom-select-control__item-icon"}))))))};const OA=window.intlTelInputGlobals.getCountryData().reduce(((e,t)=>{let{dialCode:n,iso2:r}=t;return e[r.toLocaleUpperCase()]=`+${n}`,e}),{}),LA=e=>{var{value:t,country:n,onChange:r,onBlur:o,onKeyDown:a}=e,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["value","country","onChange","onBlur","onKeyDown"]);const[s,c]=(0,V.useState)(!1),[l,d]=(0,V.useState)(0),u=(0,V.useRef)(null),m=(0,V.useRef)(null),p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=(0,V.useRef)();return t.current||(t.current=(0,W.uniqueId)(e)),t.current}("wcpay-phone-number-control-"),[y,h]=(0,V.useState)(n||"US"),f=t.replace(OA[y],"");(0,V.useLayoutEffect)((()=>{u.current&&d(u.current.offsetWidth+1)}),[u,y]);const _=(e,t)=>{h(e),r(`${OA[e]}${t}`,e),(()=>{var e;null===(e=m.current)||void 0===e||e.focus()})()};return H().createElement(uh,Object.assign({id:p},i),H().createElement("div",{className:Z()("wcpay-component-phone-number-control","components-text-control__input",{focused:s})},H().createElement("select",{value:y,onChange:e=>{_(e.target.value,f)},"aria-label":(0,B.__)("phone number country code","woocommerce-payments")},Object.keys(OA).sort().map((e=>H().createElement("option",{key:e,value:e},e)))),H().createElement("svg",{xmlns:"http://www.w3.org/2000/svg"},H().createElement("path",{d:"M13.125 8.7 9 12l-4.125-3.3.675-.9L9 10.5l3.375-2.7.75 .9z"})),H().createElement("span",{ref:u},OA[y]),H().createElement("input",{id:p,ref:m,type:"text",value:f,onChange:e=>{_(y,e.target.value.replace(/\D/g,""))},onFocus:()=>c(!0),onBlur:()=>{c(!1),null==o||o()},onKeyDown:e=>null==a?void 0:a(e),style:{paddingLeft:l+8,marginLeft:-l}})))},AA=e=>{let{name:t,className:n,label:r,options:o,onChange:a,value:i,placeholder:s,searchable:c}=e;var l;const d=(0,V.useRef)(null),u=(0,V.useRef)(),m=o.filter((e=>{var t;return null===(t=e.items)||void 0===t?void 0:t.length})).map((e=>e.key)),[p,y]=(0,V.useState)(new Set([m[0]])),[h,f]=(0,V.useState)(new Set([...m,...(null===(l=o[0])||void 0===l?void 0:l.items)||[]])),[_,g]=(0,V.useState)(""),v=o.filter((e=>h.has(e.key))),{isOpen:w,selectedItem:b,getToggleButtonProps:E,getMenuProps:$,getLabelProps:S,highlightedIndex:C,getItemProps:k}=IA({items:v,itemToString:e=>(null==e?void 0:e.name)||"",selectedItem:i||{},onSelectedItemChange:a,stateReducer:(e,t)=>{let{changes:n,type:r}=t;if(c&&r===IA.stateChangeTypes.MenuKeyDownCharacter)return e;if(n.selectedItem&&n.selectedItem.items){if(_)return e;const t=n.selectedItem.key;return p.has(t)?(p.delete(t),n.selectedItem.items.forEach((e=>h.delete(e)))):(p.add(t),n.selectedItem.items.forEach((e=>h.add(e)))),y(p),f(h),e}return n}}),I=$({className:"wcpay-component-grouped-select-control__list","aria-hidden":!w,onFocus:()=>{var e;return null===(e=d.current)||void 0===e?void 0:e.focus()},onBlur:e=>{e.relatedTarget===d.current&&(e.nativeEvent.preventDownshiftDefault=!0)},onKeyDown:e=>{"Space"===e.code&&(e.nativeEvent.preventDownshiftDefault=!0)}});return H().createElement("div",{className:Z()("wcpay-component-grouped-select-control",n)},H().createElement("label",Object.assign({},S({className:"wcpay-component-grouped-select-control__label"})),r),H().createElement("button",Object.assign({},E({type:"button",className:Z()("components-text-control__input wcpay-component-grouped-select-control__button",{placeholder:s}),name:t})),H().createElement("span",{className:"wcpay-component-grouped-select-control__button-value"},(null==b?void 0:b.name)||s),H().createElement(Xy,{icon:eh,className:"wcpay-component-grouped-select-control__button-icon"})),H().createElement("ul",Object.assign({},I),w&&H().createElement(H().Fragment,null,c&&H().createElement("input",{className:"wcpay-component-grouped-select-control__search",ref:d,type:"text",value:_,onChange:e=>{let{target:t}=e;if(u.current||(u.current={visibleItems:h}),""===t.value)f(u.current.visibleItems),u.current=void 0;else{const e=o.filter((e=>(null==e?void 0:e.group)&&`${e.name} ${e.context||""}`.toLowerCase().includes(t.value.toLowerCase()))),n=e.map((e=>(null==e?void 0:e.group)||"")),r=new Set([...e.map((e=>e.key)),...n]);f(r)}g(t.value)},tabIndex:-1,placeholder:(0,B.__)("Search…","woocommerce-payments")}),H().createElement("div",{className:"wcpay-component-grouped-select-control__list-container"},v.map(((e,t)=>{const n=!!e.items;return H().createElement("li",Object.assign({},k({item:e,index:t,key:e.key,className:Z()("wcpay-component-grouped-select-control__item",e.className,{"is-highlighted":t===C},{"is-group":n})})),H().createElement("div",{className:"wcpay-component-grouped-select-control__item-content"},e.name),e.key===(null==b?void 0:b.key)&&H().createElement(Xy,{icon:Ga}),!_&&n&&H().createElement(Xy,{icon:p.has(e.key)?pg:eh}))}))))))};const MA=(e,t,n)=>{const{error:r}=t,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["error"]);return r?H().createElement(H().Fragment,null,H().createElement(e,Object.assign({},o,{ref:n,className:Z()(o.className,"has-error")})),H().createElement("div",{className:"components-form-field__error"},r)):H().createElement(e,Object.assign({},o,{ref:n}))},DA=(0,V.forwardRef)(((e,t)=>MA(Gv,e,t))),RA=e=>MA(TA,e),PA=e=>MA(LA,e),jA=e=>MA(AA,e),FA={steps:{mode:{heading:(0,B.__)("Let’s get your store ready to accept payments","woocommerce-payments"),subheading:(0,B.__)("Select the option that best fits your needs.","woocommerce-payments"),label:(0,B.__)("I’d like to set up payments for my store","woocommerce-payments"),note:(0,B.__)("You’ll need to provide details to verify that you’re the owner of the account. If you’re setting up payments for someone else, choose sandbox mode.","woocommerce-payments"),continue:{live:(0,B.__)("Continue","woocommerce-payments"),test:(0,B.__)("Continue in sandbox mode","woocommerce-payments")},sandboxModeNotice:ss({mixedString:(0,B.__)("Sandbox mode is enabled, only test accounts will be created. If you want to process live transactions, please disable it. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement("a",{href:"https://woo.com/document/woopayments/testing-and-troubleshooting/sandbox-mode/",target:"_blank",rel:"noreferrer"})}}),tos:ss({mixedString:(0,B.sprintf)((0,B.__)("By using %1$s, you agree to the {{tosLink}}Terms of Service{{/tosLink}} (including %2$s {{merchantTermsLink}}merchant terms{{/merchantTermsLink}}) and acknowledge that you have read our {{privacyPolicyLink}}Privacy Policy{{/privacyPolicyLink}}.","woocommerce-payments"),"WooPayments","WooPay"),components:{tosLink:H().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://wordpress.com/tos/"}),merchantTermsLink:H().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://wordpress.com/tos/#more-woopay-specifically"}),privacyPolicyLink:H().createElement("a",{rel:"external noopener noreferrer",target:"_blank",href:"https://automattic.com/privacy/"})}})},personal:{heading:(0,B.__)("First, you’ll need to create an account","woocommerce-payments"),subheading:(0,B.__)("The information below should reflect that of the business owner or an authorized team member.","woocommerce-payments"),notice:(0,B.__)("We’ll use the email address to contact you with any important notifications related to your account, and the phone number will only be used to protect your account with two-factor authentication.","woocommerce-payments")},business:{heading:(0,B.__)("Tell us about your business","woocommerce-payments"),subheading:(0,B.__)("We’ll use these details to enable payments for your store.","woocommerce-payments")},store:{heading:(0,B.__)("Please share a few more details","woocommerce-payments"),subheading:(0,B.__)("This info will help us speed up the set up process.","woocommerce-payments")},loading:{heading:(0,B.__)("Let’s get you set up for payments","woocommerce-payments"),subheading:(0,B.__)("Confirm your identity with our partner","woocommerce-payments")}},fields:{email:(0,B.__)("What’s your email address?","woocommerce-payments"),"individual.first_name":(0,B.__)("First name","woocommerce-payments"),"individual.last_name":(0,B.__)("Last name","woocommerce-payments"),phone:(0,B.__)("What’s your mobile phone number?","woocommerce-payments"),business_name:(0,B.__)("What’s the legal name of your business?","woocommerce-payments"),url:(0,B.__)("What’s your business website?","woocommerce-payments"),country:(0,B.__)("Where is your business legally registered?","woocommerce-payments"),business_type:(0,B.__)("What type of legal entity is your business?","woocommerce-payments"),"company.structure":(0,B.__)("What category of legal entity identify your business?","woocommerce-payments"),mcc:(0,B.__)("What type of goods or services does your business sell? ","woocommerce-payments"),annual_revenue:(0,B.__)("What is your estimated annual Ecommerce revenue (USD)?","woocommerce-payments"),go_live_timeframe:(0,B.__)("What is the estimated timeline for taking your store live?","woocommerce-payments")},errors:{generic:(0,B.__)("Please provide a response","woocommerce-payments"),"individual.first_name":(0,B.__)("Please provide a first name","woocommerce-payments"),"individual.last_name":(0,B.__)("Please provide a last name","woocommerce-payments"),email:(0,B.__)("Please provide a valid email","woocommerce-payments"),phone:(0,B.__)("Please provide a valid phone number","woocommerce-payments"),url:(0,B.__)("Please provide a valid website","woocommerce-payments"),business_name:(0,B.__)("Please provide a business name","woocommerce-payments"),country:(0,B.__)("Please provide a country","woocommerce-payments"),business_type:(0,B.__)("Please provide a business type","woocommerce-payments"),mcc:(0,B.__)("Please provide a type of goods or services","woocommerce-payments")},placeholders:{country:(0,B.__)("Select the primary country of your business","woocommerce-payments"),business_type:(0,B.__)("Select the legal structure of your business","woocommerce-payments"),"company.structure":(0,B.__)("Select the legal category of your business","woocommerce-payments"),mcc:(0,B.__)("Select the primary industry of your business","woocommerce-payments"),annual_revenue:(0,B.__)("Select your annual revenue","woocommerce-payments"),go_live_timeframe:(0,B.__)("Select a timeline","woocommerce-payments")},annualRevenues:{less_than_250k:(0,B.__)("Less than $250k","woocommerce-payments"),from_250k_to_1m:(0,B.__)("$250k - $1M","woocommerce-payments"),from_1m_to_20m:(0,B.__)("$1M - $20M","woocommerce-payments"),from_20m_to_100m:(0,B.__)("$20M - $100M","woocommerce-payments"),more_than_100m:(0,B.__)("More than $100M","woocommerce-payments")},goLiveTimeframes:{already_live:(0,B.__)("My store is already live","woocommerce-payments"),within_1month:(0,B.__)("Within 1 month","woocommerce-payments"),from_1_to_3months:(0,B.__)("1 – 3 months","woocommerce-payments"),from_3_to_6months:(0,B.__)("3 – 6 months","woocommerce-payments"),more_than_6months:(0,B.__)("6+ months","woocommerce-payments")},restoredState:(0,B.__)("We have restored your previous session. You can pick up where you left off, or go back to a previous step to make changes. ","woocommerce-payments"),continue:(0,B.__)("Continue","woocommerce-payments"),back:(0,B.__)("Back","woocommerce-payments")},zA=e=>{const{data:t,errors:n,setErrors:r,touched:o,setTouched:a}=gT(),i=function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t[e];o[e]||a({[e]:!0});const i=((e,t)=>{if(!t)return!1;switch(e){case"email":return t.includes("@");case"phone":return/^\+\d{7,}$/.test(t);default:return!0}})(e,n)?void 0:FA.errors[e]||FA.errors.generic;r({[e]:i})};return(0,V.useEffect)((()=>(i(),t[e]||a({[e]:!1}),()=>r({[e]:void 0}))),[]),{validate:i,error:()=>o[e]?n[e]:void 0}};var BA=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const UA=e=>{let{children:t}=e;const{errors:n,touched:r,setTouched:o}=gT(),{currentStep:a,nextStep:i}=yT();return H().createElement("form",{onSubmit:e=>{e.preventDefault(),(()=>{if((0,W.isEmpty)(n))return(e=>{vT.has(e)||(Ca("wcpay_onboarding_flow_step_completed",{step:e,elapsed:$T()}),vT.add(e))})(a),i();o((0,W.mapValues)(r,(()=>!0)))})()}},t,H().createElement(Jn,{isPrimary:!0,type:"submit",className:"stepper__cta"},FA.continue))},VA=e=>{const{name:t}=e,{data:n,setData:r,touched:o}=gT(),{validate:a,error:i}=zA(t),s=H().useRef(null);return H().createElement(DA,Object.assign({ref:s,label:FA.fields[t],value:n[t]||"",onChange:e=>{var n;r({[t]:e}),(o[t]||s.current!==(null===(n=s.current)||void 0===n?void 0:n.ownerDocument.activeElement))&&a(e)},onBlur:()=>a(),onKeyDown:e=>{"Enter"===e.key&&a()},error:i()},e))},HA=e=>{const{name:t}=e,{data:n,setData:r,temp:o,setTemp:a,touched:i}=gT(),{validate:s,error:c}=zA(t);return H().createElement(PA,Object.assign({label:FA.fields[t],value:n[t]||"",country:o.phoneCountryCode||wcpaySettings.connect.country,onChange:(e,n)=>{a({phoneCountryCode:n}),r({[t]:e}),i[t]&&s(e)},onBlur:()=>s(),error:c(),onKeyDown:e=>{"Enter"===e.key&&s()}},e))},YA=e=>{var t,{onChange:n}=e,r=BA(e,["onChange"]);const{name:o}=r,{data:a,setData:i}=gT(),{validate:s,error:c}=zA(o);return H().createElement(RA,Object.assign({label:FA.fields[o],value:null===(t=r.options)||void 0===t?void 0:t.find((e=>e.key===a[o])),placeholder:FA.placeholders[o],onChange:e=>{let{selectedItem:t}=e;n?null==n||n(o,t):i({[o]:null==t?void 0:t.key}),s(null==t?void 0:t.key)},options:[],error:c()},r))},WA=e=>{var t,{onChange:n}=e,r=BA(e,["onChange"]);const{name:o}=r,{data:a,setData:i}=gT(),{validate:s,error:c}=zA(o);return H().createElement(jA,Object.assign({label:FA.fields[o],value:null===(t=r.options)||void 0===t?void 0:t.find((e=>e.key===a[o])),placeholder:FA.placeholders[o],onChange:e=>{let{selectedItem:t}=e;n?null==n||n(o,t):i({[o]:null==t?void 0:t.key}),s(null==t?void 0:t.key)},options:[],error:c()},r))};var GA=n(8222);const qA=()=>{const[e,t]=H().useState(!1);return e||!wcpaySettings.onboardingFlowState?null:H().createElement(Ka,{icon:!0,status:"info",className:"restored-state-banner",onRemove:()=>t(!0)},FA.restoredState)};var ZA=n(1629);const QA=e=>{let{name:t,children:n}=e;const{trackAbandoned:r}=CT(),{progress:o,prevStep:a,exit:i}=yT(),s=100*o+"%";return H().createElement(H().Fragment,null,H().createElement("div",{className:"stepper__progress",style:{width:s}}),H().createElement("div",{className:"stepper__nav"},H().createElement("button",{type:"button",className:"stepper__nav-button",onClick:a},H().createElement(GA.Z,null),FA.back),H().createElement("img",{src:ZA,alt:"WooPayments",className:"stepper__nav-logo"}),H().createElement("button",{type:"button",className:"stepper__nav-button",onClick:()=>{r("exit"),i()}},H().createElement(Xy,{icon:Zi}))),H().createElement("div",{className:"stepper__wrapper"},H().createElement(qA,null),H().createElement("h1",{className:"stepper__heading"},FA.steps[t].heading),H().createElement("h2",{className:"stepper__subheading"},FA.steps[t].subheading),H().createElement("div",{className:"stepper__content"},n)))},KA=()=>H().createElement(Va,{icon:!0,status:"warning",isDismissible:!1},FA.steps.mode.sandboxModeNotice),JA=()=>{const{devMode:e}=wcpaySettings,t=FA.steps.mode,{nextStep:n}=yT(),r=e=>{if((e=>{Ca("wcpay_onboarding_flow_mode_selected",{mode:e,elapsed:$T()})})(e),"live"===e)return n();const{connectUrl:t}=wcpaySettings,r=(0,ys.addQueryArgs)(t,{test_mode:!0});window.location.href=r};return H().createElement(H().Fragment,null,e&&H().createElement(KA,null),H().createElement("div",{className:"wcpay-component-onboarding-card"},H().createElement("div",{className:"wcpay-component-onboarding-card__label"},H().createElement(Xy,{icon:WO}),t.label),H().createElement("div",{className:"wcpay-component-onboarding-card__body"},H().createElement("div",{className:"onboarding-mode__note"},t.note),H().createElement("p",null,t.tos)),H().createElement("div",{className:"wcpay-component-onboarding-card__footer"},H().createElement(Jn,{className:"wcpay-component-onboarding-card__button",variant:"primary","data-testid":"live-mode-button",onClick:()=>{r("live")}},t.continue.live))),H().createElement("div",{className:"onboarding-mode__sandbox"},H().createElement(Jn,{variant:"tertiary",onClick:()=>{r("test")}},t.continue.test)))},XA=()=>H().createElement(H().Fragment,null,H().createElement(Pa,{align:"top"},H().createElement(xx,null,H().createElement(VA,{name:"individual.first_name"})),H().createElement(xx,null,H().createElement(VA,{name:"individual.last_name"}))),H().createElement(VA,{name:"email"}),H().createElement(HA,{name:"phone"}),H().createElement(Va,{status:"info",className:"personal-details-notice",icon:!0,isDismissible:!1},FA.steps.personal.notice)),eM={generic:{individual:(0,B.__)("Select if you run your own business as an individual and are self-employed","woocommerce-payments"),company:(0,B.__)("Select if you filed documentation to register your business with a government agency","woocommerce-payments"),non_profit:(0,B.__)("Select if you run a non-business entity","woocommerce-payments"),government_entity:(0,B.__)("Select if your business is classed as a government entity","woocommerce-payments")},US:{individual:(0,B.__)("Select if you run your own business as an individual and are self-employed","woocommerce-payments"),company:(0,B.__)("Select if you filed documentation to register your business with a government agency","woocommerce-payments"),non_profit:(0,B.__)("Select if you have been granted tax-exempt status by the Internal Revenue Service (IRS)","woocommerce-payments"),government_entity:(0,B.__)("Select if your business is classed as a government entity","woocommerce-payments")}},tM=()=>{const{data:e,setData:t}=gT(),n=Object.entries((null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.connect.availableCountries)||[]).map((e=>{let[t,n]=e;return{key:t,name:n,types:[]}})).sort(((e,t)=>e.name.localeCompare(t.name))),r=(()=>{var e;return((null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.onboardingFieldsData)||void 0===e?void 0:e.business_types)||[]).map((e=>Object.assign(Object.assign({},e),{types:e.types.map((t=>Object.assign(Object.assign({},t),{description:eM[e.key]?eM[e.key][t.key]:eM.generic[t.key]})))}))).sort(((e,t)=>e.name.localeCompare(t.name)))||[]})(),o=r.find((t=>t.key===e.country)),a=null==o?void 0:o.types.find((t=>t.key===e.business_type)),i=(e,n)=>{let r={[e]:null==n?void 0:n.key};"business_type"===e?r=Object.assign(Object.assign({},r),{"company.structure":void 0}):"country"===e&&(r=Object.assign(Object.assign({},r),{business_type:void 0})),t(r)},s=(()=>{var e;const t=((null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.onboardingFieldsData)||void 0===e?void 0:e.mccs_display_tree)||[]).filter((e=>{var t;return!!(null==e?void 0:e.items)&&((null===(t=e.items)||void 0===t?void 0:t.filter((e=>!(null==e?void 0:e.items))))||[]).length}));return t.reduce(((e,t)=>{var n;const r=(null===(n=t.items)||void 0===n?void 0:n.map((e=>({key:e.id,name:e.title,group:t.id,context:(null==e?void 0:e.keywords)?e.keywords.join(" "):""}))))||[];return[...e,{key:t.id,name:t.title,items:r.map((e=>e.key))},...r]}),[])})();return H().createElement(H().Fragment,null,H().createElement(VA,{name:"business_name"}),H().createElement(VA,{name:"url"}),H().createElement(YA,{name:"country",options:n,onChange:i}),o&&o.types.length>0&&H().createElement(YA,{name:"business_type",options:o.types,onChange:i},(e=>H().createElement("div",null,H().createElement("div",null,e.name),H().createElement("div",{className:"complete-business-info-task__option-description"},e.description)))),a&&a.structures.length>0&&H().createElement(YA,{name:"company.structure",options:a.structures,onChange:i}),H().createElement(WA,{name:"mcc",options:s,searchable:!0}))},nM=Object.entries(FA.annualRevenues).map((e=>{let[t,n]=e;return{key:t,name:n}})),rM=Object.entries(FA.goLiveTimeframes).map((e=>{let[t,n]=e;return{key:t,name:n}})),oM=()=>H().createElement(H().Fragment,null,H().createElement(YA,{name:"annual_revenue",options:nM}),H().createElement(YA,{name:"go_live_timeframe",options:rM}));const aM=e=>{var{className:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return H().createElement("div",Object.assign({className:Z()("wcpay-component-load-bar",t)},n))};var iM=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))};const sM=()=>{const{data:e}=gT(),{removeTrackListener:t}=CT();return(0,V.useEffect)((()=>{iM(void 0,void 0,void 0,(function*(){const{connectUrl:n}=wcpaySettings;let r;try{r=yield iM(void 0,void 0,void 0,(function*(){if(!(e.country&&e.business_type&&e.mcc&&e.annual_revenue&&e.go_live_timeframe))return!1;const t={business:{country:e.country,type:e.business_type,mcc:e.mcc},store:{annual_revenue:e.annual_revenue,go_live_timeframe:e.go_live_timeframe}};return"eligible"===(yield va()({path:"/wc/v3/payments/onboarding/router/po_eligible",method:"POST",data:t})).result}))}catch(e){r=!1}const o=(0,ys.addQueryArgs)(n,{self_assessment:(a=e,(0,W.toPairs)(a).reduce(((e,t)=>{let[n,r]=t;return null!=r?(0,W.set)(e,n,r):e}),{})),progressive:r});var a;(e=>{Ca("wcpay_onboarding_flow_redirected",{is_po_eligible:e,elapsed:ET(wT)})})(r),t(),window.location.href=o}))}),[]),H().createElement("div",{className:"loading-step"},H().createElement("h1",{className:"stepper__heading"},FA.steps.loading.heading),H().createElement(aM,null),H().createElement("h2",{className:"stepper__subheading"},FA.steps.loading.subheading))};var cM,lM,dM;const uM=()=>{var e;const{data:t}=gT();return H().createElement(pT,{initialStep:null===(e=wcpaySettings.onboardingFlowState)||void 0===e?void 0:e.current_step,onStepChange:e=>{window.scroll(0,0),((e,t)=>{va()({path:`${gs}/onboarding/flow-state`,method:"POST",data:{current_step:e,data:t},parse:!1})})(e,t)},onExit:()=>{if(window.history.length>1&&document.referrer.includes(wcSettings.adminUrl))return window.history.back();window.location.href=wcSettings.adminUrl}},H().createElement(QA,{name:"mode"},H().createElement(JA,null)),H().createElement(QA,{name:"personal"},H().createElement(UA,null,H().createElement(XA,null))),H().createElement(QA,{name:"business"},H().createElement(UA,null,H().createElement(tM,null))),H().createElement(QA,{name:"store"},H().createElement(UA,null,H().createElement(oM,null))),H().createElement(sM,{name:"loading"}))},mM=null!==(lM=null===(cM=wcpaySettings.onboardingFlowState)||void 0===cM?void 0:cM.data)&&void 0!==lM?lM:{business_name:null===wcSettings||void 0===wcSettings?void 0:wcSettings.siteTitle,url:"localhost"===location.hostname?"https://wcpay.test":null===wcSettings||void 0===wcSettings?void 0:wcSettings.homeUrl,country:null===(dM=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.connect)||void 0===dM?void 0:dM.country},pM=()=>((0,V.useEffect)((()=>{return e=(new URLSearchParams(window.location.search).get("source")||"").replace(/[^\w-]+/g,""),wT=bT=Date.now(),Ca("wcpay_onboarding_flow_started",{source:e}),document.body.classList.remove("woocommerce-admin-is-loading"),document.body.classList.add("woocommerce-admin-full-screen"),document.body.classList.add("is-wp-toolbar-disabled"),document.body.classList.add("wcpay-onboarding__body"),()=>{document.body.classList.remove("woocommerce-admin-full-screen"),document.body.classList.remove("is-wp-toolbar-disabled"),document.body.classList.remove("wcpay-onboarding__body")};var e}),[]),H().createElement(Wa,{className:"wcpay-onboarding-prototype"},H().createElement(_T,{initialData:mM},H().createElement(uM,null))));const yM=e=>{var{className:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className"]);return H().createElement(Mo,Object.assign({className:Z()("wcpay-card-body",t)},n))},hM=e=>{let{title:t,description:n,children:r,id:o}=e;return H().createElement(ko,{id:o,className:"fraud-protection-rule-card"},H().createElement(yM,{className:"fraud-protection-rule-card-header-container"},H().createElement("div",null,H().createElement("p",{className:"fraud-protection-rule-card-header"},t),H().createElement("p",{className:"fraud-protection-rule-card-description"},n))),H().createElement("hr",null),H().createElement(yM,null,r))},fM=e=>{let{children:t}=e;return H().createElement("div",{className:"fraud-protection-rule-description"},H().createElement("strong",null,(0,B.__)("How does this filter protect me?","woocommerce-payments")),H().createElement("p",null,t))},_M=function(e){let{className:t,checked:n,id:r,disabled:o,onChange:a=W.noop,...i}=e;const s=Z()("components-form-toggle",t,{"is-checked":n,"is-disabled":o});return(0,Y.createElement)("span",{className:s},(0,Y.createElement)("input",X({className:"components-form-toggle__input",id:r,type:"checkbox",checked:n,onChange:a,disabled:o},i)),(0,Y.createElement)("span",{className:"components-form-toggle__track"}),(0,Y.createElement)("span",{className:"components-form-toggle__thumb"}))};function gM(e){let{label:t,checked:n,help:r,className:o,onChange:a,disabled:i}=e;const s=`inspector-toggle-control-${(0,ne.useInstanceId)(gM)}`;let c,l;return r&&(c=s+"__help",l=(0,W.isFunction)(r)?r(n):r),(0,Y.createElement)(uh,{id:s,help:l,className:Z()("components-toggle-control",o)},(0,Y.createElement)(_M,{id:s,checked:n,onChange:function(e){a(e.target.checked)},"aria-describedby":c,disabled:i}),(0,Y.createElement)("label",{htmlFor:s,className:"components-toggle-control__label"},t))}const vM=(0,V.createContext)({protectionSettingsUI:{},setProtectionSettingsUI:()=>null,protectionSettingsChanged:!1,setProtectionSettingsChanged:()=>!1}),wM="review",bM="block",EM=[{label:(0,B.__)("Authorize and hold for review","woocommerce-payments"),value:wM},{label:(0,B.__)("Block Payment","woocommerce-payments"),value:bM}],$M={unchecked:(0,B.__)("When enabled, the payment will be blocked."),[wM]:(0,B.__)("The payment method will not be charged until you review and approve the transaction."),[bM]:(0,B.__)("The payment will be blocked.")},SM=(e,t)=>e?$M[t]:$M.unchecked,CM=e=>{let{setting:t,label:n,children:r}=e;const{protectionSettingsUI:o,setProtectionSettingsUI:a,setProtectionSettingsChanged:i}=(0,V.useContext)(vM),{isFRTReviewFeatureActive:s}=wcpaySettings,[c,l]=(0,V.useState)(!1),[d,u]=(0,V.useState)(s?wM:bM),m=null==o?void 0:o[t];return(0,V.useEffect)((()=>{m&&(l(m.enabled),u((()=>s?m.block?bM:wM:bM)))}),[m,s]),(0,V.useEffect)((()=>{m&&(m.enabled=c,m.block=bM===d,a(o),i((e=>!e)))}),[m,c,d,i,o,a]),o?H().createElement("div",{className:"fraud-protection-rule-toggle"},H().createElement("strong",null,(0,B.__)("Enable filtering","woocommerce-payments")),H().createElement(gM,{label:n,key:t,help:SM(c,d),checked:c,className:"fraud-protection-rule-toggle-toggle",onChange:()=>{l((e=>!e))}}),c&&H().createElement("div",null,r,!!s&&H().createElement("div",{className:"fraud-protection-rule-toggle-block"},H().createElement("strong",null,(0,B.__)("Filter action","woocommerce-payments")),H().createElement(Dg,{options:EM,selected:d,onChange:u})))):null},kM=()=>H().createElement(hM,{title:(0,B.__)("AVS Mismatch","woocommerce-payments"),description:(0,B.__)("This filter compares the street number and the post code submitted by the customer against the data on file with the card issuer.","woocommerce-payments"),id:"avs-mismatch-card"},H().createElement(CM,{setting:"avs_verification",label:"Block transactions for mismatched AVS"}),H().createElement(fM,null,(0,B.__)("Buyers who can provide the street number and post code on file with the issuing bank are more likely to be the actual account holder. AVS matches, however, are not a guarantee.","woocommerce-payments"))),IM=["error","warning","info"],NM=e=>{let{type:t,children:n}=e;if(!IM.includes(t))return null;const r="info"===t?H().createElement(Yg,null):H().createElement(Ba.Z,null);return H().createElement(Va,{status:t,icon:r,className:"fraud-protection-rule-card-notice fraud-protection-rule-card-notice-"+t,children:n,isDismissible:!1})},xM=()=>{var e,t,n;const r=null===(n=null===(t=null===(e=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===e?void 0:e.fraudProtection)||void 0===t?void 0:t.declineOnCVCFailure)||void 0===n||n;return H().createElement(hM,{title:(0,B.__)("CVC Verification","woocommerce-payments"),description:(0,B.__)("This filter checks the security code submitted by the customer against the data on file with the card issuer.","woocommerce-payments"),id:"cvc-verification-card"},H().createElement(fM,null,(0,B.__)("Because the card security code appears only on the card and not on receipts or statements, the card security code provides some assurance that the physical card is in the possession of the buyer.","woocommerce-payments")),H().createElement(NM,{type:"warning"},r?ss({mixedString:(0,B.__)("For security, this filter is enabled and cannot be modified. Payments failing CVC verification will be blocked. {{learnMoreLink}}Learn more{{/learnMoreLink}}","woocommerce-payments"),components:{learnMoreLink:H().createElement(cs.Link,{target:"_blank",type:"external",href:"https://woo.com/document/woopayments/fraud-and-disputes/fraud-protection/#advanced-configuration"})}}):(0,B.__)("This filter is disabled, and can not be modified.","woocommerce-payments")))};function TM(e){return void 0!==e.key}function OM(e){return void 0!==e.min_items}function LM(e){return void 0!==e.min_amount}const AM=()=>wcSettings.admin.preloadSettings.general.woocommerce_allowed_countries,MM=()=>{switch(AM()){case"all":default:return[];case"all_except":return wcSettings.admin.preloadSettings.general.woocommerce_all_except_countries;case"specific":return wcSettings.admin.preloadSettings.general.woocommerce_specific_allowed_countries}},DM=e=>{const t=parseFloat(e);return isNaN(t)?"":[parseInt((100*t).toString(),10),wcpaySettings.storeCurrency||"usd"].join("|")},RM=e=>{if(!e)return"";const[t]=e.toString().split("|");return Number(t)/100},PM=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r,o,a,i;const s=((e,t)=>({key:e,outcome:t?dd:ud,check:null}))(e,t);switch(e){case md:s.check={key:"avs_mismatch",operator:wd,value:!0};break;case pd:s.check={key:"billing_shipping_address_same",operator:wd,value:!1};break;case yd:s.check={key:"ip_country",operator:"specific"===AM()?"not_in":"in",value:MM().join("|").toLowerCase()};break;case hd:s.check={key:"ip_billing_country_same",operator:wd,value:!1};break;case fd:if(OM(n)){const e=(null==n?void 0:n.min_items)+"",t=(null==n?void 0:n.max_items)+"";parseInt(e,10)&&parseInt(t,10)?s.check={operator:"or",checks:[{key:gd,operator:Ed,value:null!==(r=parseInt(e,10))&&void 0!==r?r:null},{key:gd,operator:bd,value:null!==(o=parseInt(t,10))&&void 0!==o?o:null}]}:(parseInt(e,10)||parseInt(t,10))&&(s.check=parseInt(e,10)?{key:gd,operator:Ed,value:null!==(a=parseInt(e,10))&&void 0!==a?a:null}:{key:gd,operator:bd,value:null!==(i=parseInt(t,10))&&void 0!==i?i:null})}break;case _d:if(LM(n)){const e=(null==n?void 0:n.min_amount)+"",t=(null==n?void 0:n.max_amount)+"";parseFloat(e)&&parseFloat(t)?s.check={operator:"or",checks:[{key:vd,operator:Ed,value:DM(e)},{key:vd,operator:bd,value:DM(t)}]}:(parseFloat(e)||parseFloat(t))&&(s.check=parseFloat(e)?{key:vd,operator:Ed,value:DM(e)}:{key:vd,operator:bd,value:DM(t)})}}return s},jM=(e,t,n)=>{if(TM(e)&&t===e.key&&n===e.operator)return e;if(!TM(e)&&(null==e?void 0:e.checks))for(const r in e.checks){const o=e.checks[r],a=jM(o,t,n);if(!1!==a)return a}return!1},FM=e=>{let{setting:t}=e;var n,r;const{protectionSettingsUI:o,protectionSettingsChanged:a}=(0,V.useContext)(vM),[i,s]=(0,V.useState)(null!==(r=null===(n=o[t])||void 0===n?void 0:n.block)&&void 0!==r&&r);(0,V.useEffect)((()=>{var e,n;s(null!==(n=null===(e=o[t])||void 0===e?void 0:e.block)&&void 0!==n&&n)}),[o,t,a]);const c=AM(),l=MM();return H().createElement(NM,{type:"info"},(u=i,"all_except"===(d=c)?u?(0,B.__)("Orders from the following countries will be blocked by the filter: ","woocommerce-payments"):(0,B.__)("Orders from the following countries will be screened by the filter: ","woocommerce-payments"):"specific"===d?u?(0,B.__)("Orders from outside of the following countries will be blocked by the filter: ","woocommerce-payments"):(0,B.__)("Orders from outside of the following countries will be screened by the filter: ","woocommerce-payments"):null),H().createElement("strong",null,(0,Uf.decodeEntities)(l.map((e=>{var t;return null!==(t=wcSettings.countries[e])&&void 0!==t&&t})).filter((e=>e)).join(", "))));var d,u},zM=()=>{const e="all"===AM();return H().createElement(hM,{title:(0,B.__)("International IP Address","woocommerce-payments"),description:ss({mixedString:(0,B.__)("This filter screens for {{ipAddressLink}}IP addresses{{/ipAddressLink}} outside of your {{supportedCountriesLink}}supported countries{{/supportedCountriesLink}}.","woocommerce-payments"),components:{ipAddressLink:H().createElement(cs.Link,{target:"_blank",type:"external",href:"https://simple.wikipedia.org/wiki/IP_address"}),supportedCountriesLink:H().createElement("a",{href:bs({page:"wc-settings",tab:"general"})})}}),id:"international-ip-address-card"},e&&H().createElement(NM,{type:"warning"},(0,B.__)("This filter is disabled because you're currently selling to all countries.","woocommerce-payments")),!e&&H().createElement(CM,{setting:"international_ip_address",label:(0,B.__)("Block transactions for international IP addresses","woocommerce-payments")}),H().createElement(fM,null,(0,B.__)("You should be especially wary when a customer has an international IP address but uses domestic billing and shipping information. Fraudsters often pretend to live in one location, but live and shop from another.","woocommerce-payments")),!e&&H().createElement(FM,{setting:"international_ip_address"}))},BM=()=>H().createElement(hM,{title:(0,B.__)("IP Address Mismatch","woocommerce-payments"),description:ss({mixedString:(0,B.__)("This filter screens for customer's {{ipAddressLink}}IP address{{/ipAddressLink}} to see if it is in a different country than indicated in their billing address.","woocommerce-payments"),components:{ipAddressLink:H().createElement(cs.Link,{target:"_blank",type:"external",href:"https://simple.wikipedia.org/wiki/IP_address"})}}),id:"ip-address-mismatch"},H().createElement(CM,{setting:"ip_address_mismatch",label:(0,B.__)("Screen transactions where the IP country and billing country don't match","woocommerce-payments")}),H().createElement(fM,null,(0,B.__)("Fraudulent transactions often use fake addresses to place orders. If the IP address seems to be in one country, but the billing address is in another, that could signal potential fraud.","woocommerce-payments"))),UM=()=>H().createElement(hM,{title:(0,B.__)("Address Mismatch","woocommerce-payments"),description:(0,B.__)("This filter screens for differences between the shipping information and the billing information (country).","woocommerce-payments"),id:"address-mismatch-card"},H().createElement(CM,{setting:"address_mismatch",label:(0,B.__)("Block transactions for mismatched addresses","woocommerce-payments")}),H().createElement(fM,null,(0,B.__)("There are legitimate reasons for a billing/shipping mismatch with a customer purchase, but a mismatch could also indicate that someone is using a stolen identity to complete a purchase.","woocommerce-payments"))),VM=e=>{let{id:t,prefix:n,value:r,placeholder:o,help:a,onChange:i=(()=>null)}=e;const s=(0,V.useCallback)((e=>/^(\d+\.?\d*)?$/m.test(e)),[]),c=s(r)?r:"",[l,d]=H().useState(c);return(0,V.useEffect)((()=>{s(l)||i("")}),[s,l,i]),(isNaN(Number(r))||null===r||"0"===r)&&(r=""),H().createElement("div",{className:"components-base-control components-amount-input__container"},H().createElement("div",{className:"components-base-control__field components-amount-input__input_container"},n&&H().createElement("span",{className:"components-amount-input__prefix"},n),H().createElement("input",{id:t,placeholder:o,value:l,"data-testid":"amount-input",onChange:e=>{return t=e.target.value,void(s(t)&&(d(t),i(t)));var t},className:"components-text-control__input components-amount-input__input"})),H().createElement("span",{className:"components-amount-input__help_text"},a))},HM=e=>""===e||"0"===e?0:parseFloat(e),YM=e=>{let{setting:t}=e;const{protectionSettingsUI:n,setProtectionSettingsUI:r}=(0,V.useContext)(vM),o=(0,V.useMemo)((()=>n[t]),[n,t]),a=parseFloat(o.min_amount+""),i=parseFloat(o.max_amount+""),[s,c]=(0,V.useState)(null!=a?a:""),[l,d]=(0,V.useState)(null!=i?i:"");(0,V.useEffect)((()=>{o.min_amount=s,o.max_amount=l,r(n)}),[s,l,n,r,o]);const u=!HM(s+"")&&!HM(l+""),m=s&&l&&HM(s+"")>HM(l+""),p=(()=>{var e;const t={symbol:"$"};if("1"!==wcpaySettings.isMultiCurrencyEnabled)return t.symbol;const n=rc(wcpaySettings.storeCurrency),{symbol:r}=(null===(e=n)||void 0===e?void 0:e.getCurrencyConfig())||t;return r})();return H().createElement("div",{className:"fraud-protection-rule-toggle-children-container"},H().createElement("strong",null,"Limits"),H().createElement("div",{className:"fraud-protection-rule-toggle-children-horizontal-form"},H().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},H().createElement("label",{htmlFor:"fraud-protection-purchase-price-minimum"},(0,B.__)("Minimum purchase price","woocommerce-payments")),H().createElement(VM,{id:"fraud-protection-purchase-price-minimum",prefix:p,placeholder:"0.00",value:s.toString(),onChange:e=>c(Number(e)),help:(0,B.__)("Leave blank for no limit","woocommerce-payments")})),H().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},H().createElement("label",{htmlFor:"fraud-protection-purchase-price-maximum"},(0,B.__)("Maximum purchase price","woocommerce-payments")),H().createElement(VM,{id:"fraud-protection-purchase-price-maximum",prefix:p,placeholder:"0.00",value:l.toString(),onChange:e=>d(Number(e)),help:(0,B.__)("Leave blank for no limit","woocommerce-payments")}))),u&&H().createElement("div",null,H().createElement("br",null),H().createElement(NM,{type:"warning"},(0,B.__)("A price range must be set for this filter to take effect.","woocommerce-payments"))),m?H().createElement("div",null,H().createElement("br",null),H().createElement(NM,{type:"error"},(0,B.__)("Maximum purchase price must be greater than the minimum purchase price.","woocommerce-payments"))):null)},WM=(e,t)=>{if(e.enabled&&LM(e)){const{min_amount:n,max_amount:r}=e,o=HM(n+""),a=HM(r+"");if(!o&&!a)return t((0,B.__)('A price range must be set for the "Purchase Price threshold" filter.',"woocommerce-payments")),!1;if(n&&r&&o>a)return t((0,B.__)("Maximum purchase price must be greater than the minimum purchase price.","woocommerce-payments")),!1}return!0},GM=()=>H().createElement(hM,{title:(0,B.__)("Purchase Price Threshold","woocommerce-payments"),description:(0,B.__)("This filter compares the purchase price of an order to the minimum and maximum purchase amounts that you specify.","woocommerce-payments"),id:"purchase-price-threshold-card"},H().createElement(CM,{setting:"purchase_price_threshold",label:(0,B.__)("Block transactions for abnormal purchase prices","woocommerce-payments")},H().createElement(YM,{setting:"purchase_price_threshold"})),H().createElement(fM,null,(0,B.__)("An unusually high purchase amount, compared to the average for your business, can indicate potential fraudulent activity.","woocommerce-payments"))),qM=e=>{let{setting:t}=e;const{protectionSettingsUI:n,setProtectionSettingsUI:r}=(0,V.useContext)(vM),o=(0,V.useMemo)((()=>n[t]),[n,t]),a=parseInt(o.min_items+"",10),i=parseInt(o.max_items+"",10),[s,c]=(0,V.useState)(isNaN(a)?"":a),[l,d]=(0,V.useState)(isNaN(i)?"":i);(0,V.useEffect)((()=>{o.min_items=s,o.max_items=l,r(n)}),[o,s,l,n,r]);const u=!parseInt(s+"",10)&&!parseInt(l+"",10),m=parseInt(s+"",10)>parseInt(l+"",10);return H().createElement("div",{className:"fraud-protection-rule-toggle-children-container"},H().createElement("strong",null,"Limits"),H().createElement("div",{className:"fraud-protection-rule-toggle-children-horizontal-form"},H().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},H().createElement("label",{htmlFor:"fraud-protection-order-items-minimum"},(0,B.__)("Minimum items per order","woocommerce-payments")),H().createElement(Gv,{id:"fraud-protection-order-items-minimum",placeholder:"0",value:s,type:"number",onChange:c,onKeyDown:e=>/^[+-.,e]$/m.test(e.key)&&e.preventDefault(),help:(0,B.__)("Leave blank for no limit","woocommerce-payments"),min:"1",step:"1"})),H().createElement("div",{className:"fraud-protection-rule-toggle-children-vertical-form"},H().createElement("label",{htmlFor:"fraud-protection-order-items-maximum"},(0,B.__)("Maximum items per order","woocommerce-payments")),H().createElement(Gv,{id:"fraud-protection-order-items-maximum",placeholder:"0",type:"number",value:l,onChange:d,onKeyDown:e=>/^[+-.,e]$/m.test(e.key)&&e.preventDefault(),help:(0,B.__)("Leave blank for no limit","woocommerce-payments"),min:"1",step:"1"}))),u&&H().createElement("div",null,H().createElement("br",null),H().createElement(NM,{type:"warning"},(0,B.__)("An item range must be set for this filter to take effect.","woocommerce-payments"))),m?H().createElement("div",null,H().createElement("br",null),H().createElement(NM,{type:"error"},(0,B.__)("Maximum item count must be greater than the minimum item count.","woocommerce-payments"))):null)},ZM=(e,t)=>{if(e.enabled&&OM(e)){const{min_items:n,max_items:r}=e;if(!parseInt(n+"",10)&&!parseInt(r+"",10))return t((0,B.__)('An item range must be set for the "Order Item Threshold" filter.',"woocommerce-payments")),!1;if(parseInt(n+"",10)>parseInt(r+"",10))return t((0,B.__)('Maximum item count must be greater than the minimum item count on the "Order Item Threshold" rule.',"woocommerce-payments")),!1}return!0},QM=()=>H().createElement(hM,{title:(0,B.__)("Order Items Threshold","woocommerce-payments"),description:(0,B.__)("This filter compares the amount of items in an order to the minimum and maximum counts that you specify.","woocommerce-payments"),id:"order-items-threshold-card"},H().createElement(CM,{setting:"order_items_threshold",label:(0,B.__)("Block transactions for abnormal item counts","woocommerce-payments")},H().createElement(qM,{setting:"order_items_threshold"})),H().createElement(fM,null,(0,B.__)("An unusually high item count, compared to the average for your business, can indicate potential fraudulent activity.","woocommerce-payments"))),KM={"avs-mismatch-card":"wcpay_fraud_protection_advanced_settings_card_avs_mismatch_viewed","cvc-verification-card":"wcpay_fraud_protection_advanced_settings_card_cvc_verification_viewed","international-ip-address-card":"wcpay_fraud_protection_advanced_settings_card_international_ip_address_card_viewed","ip-address-mismatch":"wcpay_fraud_protection_advanced_settings_card_ip_address_mismatch_card_viewed","address-mismatch-card":"wcpay_fraud_protection_advanced_settings_card_address_mismatch_viewed","purchase-price-threshold-card":"wcpay_fraud_protection_advanced_settings_card_price_threshold_viewed","order-items-threshold-card":"wcpay_fraud_protection_advanced_settings_card_items_threshold_viewed"},JM=()=>H().createElement("h2",{className:"fraud-protection-header-breadcrumb"},H().createElement(cs.Link,{type:"wp-admin",href:bs({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"})},"WooPayments")," > ",(0,B.__)("Advanced fraud protection","woocommerce-payments")),XM=e=>{let{children:t}=e;const n=document.querySelector(".woocommerce-layout__header-wrapper");return n&&Uy().createPortal(t,n)},eD=()=>{const{saveSettings:e,isLoading:t,isSaving:n}=Tm(),r=(0,V.useRef)(),[o,a]=(()=>{const{updateProtectionLevel:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getCurrentProtectionLevel())),e]})(),[i,s]=(()=>{const{updateAdvancedFraudProtectionSettings:e}=(0,ps.useDispatch)(vs);return[(0,ps.useSelect)((e=>e(vs).getAdvancedFraudProtectionSettings())),e]})(),[c,l]=(0,V.useState)(null),[d,u]=(0,V.useState)({}),[m,p]=(0,V.useState)(!1);(0,V.useEffect)((()=>{u((e=>{var t,n,r,o;const a=(null===(n=null===(t=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===t?void 0:t.fraudProtection)||void 0===n?void 0:n.declineOnAVSFailure)||!1,i={[md]:{enabled:a,block:a},[pd]:{enabled:!1,block:!1},[yd]:{enabled:!1,block:!1},[hd]:{enabled:!1,block:!1},[fd]:{enabled:!1,block:!1,min_items:null,max_items:null},[_d]:{enabled:!1,block:!1,min_amount:null,max_amount:null}},s={};if("string"!=typeof e)for(const t in e){const n=e[t];switch(n.key){case md:case pd:case yd:case hd:s[n.key]={enabled:!0,block:n.outcome===dd};break;case fd:const e=jM(n.check,gd,Ed),t=jM(n.check,gd,bd);s[n.key]={enabled:!0,block:n.outcome===dd,min_items:null!==(r=e.value)&&void 0!==r?r:"",max_items:null!==(o=t.value)&&void 0!==o?o:""};break;case _d:const a=jM(n.check,vd,Ed),i=jM(n.check,vd,bd);s[n.key]={enabled:!0,block:n.outcome===dd,min_amount:RM(a.value),max_amount:RM(i.value)}}}return Object.assign({},i,s)})(i))}),[i]),(0,V.useLayoutEffect)((()=>{var e;const t=document.querySelector(".fraud-protection-header-save-button");t&&(null===(e=document.querySelector(".woocommerce-layout__header-heading"))||void 0===e||e.after(t))}));const y=()=>{var t,n;if((e=>{l(null);const t={order_items_threshold:ZM,purchase_price_threshold:WM};return Object.keys(t).map((n=>t[n](e[n],l))).every(Boolean)})(d)){ld!==o&&(a(ld),(0,ps.dispatch)("core/notices").createSuccessNotice((0,B.__)('Current protection level is set to "advanced".',"woocommerce-payments")));const r=(e=>{const t=[];for(const n in e)e[n].enabled&&t.push(PM(n,e[n].block,e[n]));return t.filter((e=>e))})(d);(null===(n=null===(t=null===wcpaySettings||void 0===wcpaySettings?void 0:wcpaySettings.accountStatus)||void 0===t?void 0:t.fraudProtection)||void 0===n?void 0:n.declineOnAVSFailure)&&(wcpaySettings.accountStatus.fraudProtection.declineOnAVSFailure=r.some((e=>"avs_verification"===e.key))),s(r),e(),Ca("wcpay_fraud_protection_advanced_settings_saved",{settings:JSON.stringify(r)})}else window.scrollTo({top:0})};(0,V.useEffect)((()=>{var e;const t=document.querySelector('#toplevel_page_wc-admin-path--payments-overview a[href$="section=woocommerce_payments"]');t&&(t.setAttribute("aria-current","page"),t.classList.add("current"),null===(e=t.parentElement)||void 0===e||e.classList.add("current"))}),[t]);const h=e=>{e.forEach((e=>{var t;const{target:n,intersectionRatio:o}=e;if(0<o){const{id:e}=n,o=KM[e]||null;o&&Ca(o);const a=document.getElementById(e);a&&(null===(t=r.current)||void 0===t||t.unobserve(a))}}))};(0,V.useEffect)((()=>{if(!t)return r.current=new IntersectionObserver(h),Object.keys(KM).forEach((e=>{var t;const n=document.getElementById(e);n&&(null===(t=r.current)||void 0===t||t.observe(n))})),()=>{var e;null===(e=r.current)||void 0===e||e.disconnect()}}),[t]);const f=()=>H().createElement(Jn,{isPrimary:!0,isBusy:n,onClick:y,disabled:n||t||"error"===i},(0,B.__)("Save Changes","woocommerce-payments"));return H().createElement(vM.Provider,{value:{protectionSettingsUI:d,setProtectionSettingsUI:u,protectionSettingsChanged:m,setProtectionSettingsChanged:p}},H().createElement(sx,{displayBanner:!1},H().createElement(Ya,null,H().createElement("div",{className:"fraud-protection-advanced-settings-layout"},H().createElement(JM,null),c&&H().createElement("div",{className:"fraud-protection-advanced-settings-error-notice"},H().createElement(er,{status:"error",isDismissible:!0,onRemove:()=>{l(null)}},(0,B.sprintf)("%s %s",(0,B.__)("Settings were not saved.","woocommerce-payments"),c))),"error"===i&&H().createElement("div",{className:"fraud-protection-advanced-settings-error-notice"},H().createElement(er,{status:"error",isDismissible:!1},(0,B.__)("There was an error retrieving your fraud protection settings. Please refresh the page to try again.","woocommerce-payments"))),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(kM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(zM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(BM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(UM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(GM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(QM,null)),H().createElement(Q_,{isLoading:t,numLines:20},H().createElement(xM,null)),H().createElement("footer",{className:"fraud-protection-advanced-settings__footer"},H().createElement(Jn,{href:bs({page:"wc-settings",tab:"checkout",section:"woocommerce_payments"}),isSecondary:!0,disabled:n||t},(0,B.__)("Back to Payments Settings","woocommerce-payments")),f())))),H().createElement(XM,null,H().createElement("div",{className:"fraud-protection-header-save-button"},f())))};(0,U.addFilter)("woocommerce_admin_pages_list","woocommerce-payments",(e=>{const{menuID:t,rootLink:n}=function(){const e=document.querySelector("#toplevel_page_wc-admin-path--payments-connect")?"connect":"overview";return{menuID:`toplevel_page_wc-admin-path--payments-${e}`,rootLink:[`/payments/${e}`,(0,B.__)("Payments","woocommerce-payments")]}}(),r=window.wcAdminFeatures&&window.wcAdminFeatures.navigation?"WooPayments":(0,B.__)("Connect","woocommerce-payments");return e.push({container:ms,path:"/payments/connect",wpOpenMenu:t,breadcrumbs:[n,r],navArgs:{id:"wc-payments"},capability:"manage_woocommerce"}),e.push({container:pM,path:"/payments/onboarding",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Onboarding","woocommerce-payments")],navArgs:{id:"wc-payments-onboarding"},capability:"manage_woocommerce"}),e.push({container:yL,path:"/payments/overview",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Overview","woocommerce-payments")],navArgs:{id:"wc-payments-overview"},capability:"manage_woocommerce"}),e.push({container:hf,path:"/payments/deposits",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Deposits","woocommerce-payments")],navArgs:{id:"wc-payments-deposits"},capability:"manage_woocommerce"}),e.push({container:d_,path:"/payments/deposits/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/deposits",(0,B.__)("Deposits","woocommerce-payments")],(0,B.__)("Deposit details","woocommerce-payments")],navArgs:{id:"wc-payments-deposit-details",parentPath:"/payments/deposits"},capability:"manage_woocommerce"}),e.push({container:O_,path:"/payments/transactions",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Transactions","woocommerce-payments")],navArgs:{id:"wc-payments-transactions"},capability:"manage_woocommerce"}),e.push({container:Mv,path:"/payments/transactions/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/transactions",(0,B.__)("Transactions","woocommerce-payments")],(0,B.__)("Payment details","woocommerce-payments")],navArgs:{id:"wc-payments-transaction-details",parentPath:"/payments/transactions"},capability:"manage_woocommerce"}),e.push({container:jv,path:"/payments/disputes",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Disputes","woocommerce-payments")],navArgs:{id:"wc-payments-disputes"},capability:"manage_woocommerce"}),e.push({container:Wv,path:"/payments/disputes/details",wpOpenMenu:t,breadcrumbs:[n,["/payments/disputes",(0,B.__)("Disputes","woocommerce-payments")],(0,B.__)("Dispute details","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-details-legacy-redirect",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),e.push({container:XI,path:"/payments/disputes/challenge",wpOpenMenu:t,breadcrumbs:[n,["/payments/disputes",(0,B.__)("Disputes","woocommerce-payments")],(0,B.__)("Challenge dispute","woocommerce-payments")],navArgs:{id:"wc-payments-disputes-challenge",parentPath:"/payments/disputes"},capability:"manage_woocommerce"}),e.push({container:zN,path:"/payments/additional-payment-methods",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Add additional payment methods","woocommerce-payments")],capability:"manage_woocommerce"}),e.push({container:nx,path:"/payments/multi-currency-setup",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Set up multiple currencies","woocommerce-payments")],capability:"manage_woocommerce"}),e.push({container:Nx,path:"/payments/card-readers",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Card readers","woocommerce-payments")],navArgs:{id:"wc-payments-card-readers"},capability:"manage_woocommerce"}),e.push({container:Fx,path:"/payments/loans",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Capital Loans","woocommerce-payments")],navArgs:{id:"wc-payments-capital"},capability:"manage_woocommerce"}),e.push({container:Hx,path:"/payments/card-readers/preview-receipt",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Preview a printed receipt","woocommerce-payments")]}),wcpaySettings&&wcpaySettings.featureFlags.documents&&e.push({container:NL,path:"/payments/documents",wpOpenMenu:t,breadcrumbs:[n,(0,B.__)("Documents","woocommerce-payments")],navArgs:{id:"wc-payments-documents"},capability:"manage_woocommerce"}),wcpaySettings&&e.push({container:eD,path:"/payments/fraud-protection",wpOpenMenu:t,breadcrumbs:["WooPayments"],capability:"manage_woocommerce"}),e})),(0,U.addFilter)("woocommerce_admin_onboarding_task_list","woocommerce-payments",(e=>{const{showUpdateDetailsTask:t,wpcomReconnectUrl:n}=wcpaySettings;return[...e,...hO({showUpdateDetailsTask:t,wpcomReconnectUrl:n})]}))})()})();