@bagelink/vue 1.20.70 → 1.20.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/core.css +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.css +1 -1
- package/dist/index.mjs +7 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/form/inputs/RichText/index.vue +19 -6
package/dist/index.cjs
CHANGED
|
@@ -42,10 +42,14 @@ ${a.repeat(d)}`),c+=m.raw,m.type==="tag"&&m.kind==="open"&&Or(m)&&!b0.has(m.name
|
|
|
42
42
|
box-shadow: 0 1px 5px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
|
|
43
43
|
}
|
|
44
44
|
@media (max-width: 760px) {
|
|
45
|
+
html { background: var(--bgl-gray-20, #e6e6e6); }
|
|
45
46
|
body {
|
|
47
|
+
/* Stay inset on every side so the gray canvas frames the sheet. */
|
|
48
|
+
width: auto;
|
|
46
49
|
max-width: none;
|
|
47
|
-
margin: 0.
|
|
48
|
-
padding: 1.5rem
|
|
50
|
+
margin: 0.75rem;
|
|
51
|
+
padding: 1.5rem 1.25rem 2.5rem;
|
|
52
|
+
min-height: calc(100vh - 1.5rem);
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
`:R?`
|
|
@@ -544,7 +548,7 @@ ${a.repeat(d)}`),c+=m.raw,m.type==="tag"&&m.kind==="open"&&Or(m)&&!b0.has(m.name
|
|
|
544
548
|
color: inherit;
|
|
545
549
|
}
|
|
546
550
|
${b.value}
|
|
547
|
-
`;F.textContent=U}(0,l.watch)([ae,g,T,b,i],()=>{M.value&&sm()},{flush:"post"}),(0,l.watch)(r,R=>{const F=Y.state.doc;if(!F?.body){Y.state.content=R;return}if(R!==dm(F)){if(Co(Y.state,Y.state.content),R.trim())F.body.innerHTML=R,lb(F.body),tb(F.body);else if(n.placeholder){const A=F.createElement("p");A.className="placeholder",A.textContent=n.placeholder,F.body.replaceChildren(A)}else{const A=Za();F.body.innerHTML=`<p dir="${A}"><br></p>`}tm(),Pn(F),Y.state.content=F.body.innerHTML}});const x2=(0,l.computed)(()=>n.splitViewFormat!==!1),g2=(0,l.computed)({get:()=>{Y.state.content;const R=Y.state.doc?dm(Y.state.doc):Y.state.content;return x2.value?M4(R):R},set:R=>{const F=x2.value?k5(R):R,A=Y.state.doc;if(!A?.body){Y.state.content=F;return}Co(Y.state,Y.state.content),A.body.innerHTML=F,Pn(A),Y.state.content=A.body.innerHTML}});(0,l.watch)(()=>Y.state.content,()=>{d("update:modelValue",dm(Y.state.doc??null))}),(0,l.watch)(H,R=>{R&&d("limit-exceeded",{characters:x.value,words:w.value,maxLength:n.maxLength,maxWords:n.maxWords})}),(0,l.watch)(()=>Q.value.alignment,R=>{Zt?.existingTable&&(im(Zt.existingTable,R),Y.state.doc&&ct(Y.state.doc))});function z2(){ge.value=!1}(0,l.onMounted)(()=>{typeof window<"u"&&window.addEventListener("click",z2)}),(0,l.onBeforeUnmount)(()=>{typeof window<"u"&&window.removeEventListener("click",z2)}),t({editor:Y,commands:V});const w2=(0,l.computed)({get:()=>B.value.src,set:R=>{!R||B.value.src===R||(B.value.src=hl(R)??R)}});return(R,F)=>{const A=(0,l.resolveDirective)("tooltip");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",(0,l.mergeProps)({class:["bagel-input rich-text-light-theme",[(0,l.unref)(o),{"has-value":u.value,"rich-text-full-height":e.fullHeight}]],style:(0,l.unref)(s)},(0,l.unref)(N)),[e.label?((0,l.openBlock)(),(0,l.createElementBlock)("label",KJ,(0,l.toDisplayString)(e.label),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["rounded",[{"rich-text-editor pt-05 px-05 pb-075":!e.basic,"rich-text-editor--basic":e.basic,"fullscreen-mode":(0,l.unref)(Y).state.isFullscreen,"full-height":e.fullHeight&&!(0,l.unref)(Y).state.isFullscreen,"rich-text-page":i.value&&!(0,l.unref)(Y).state.isFullscreen}]])},[(0,l.unref)(Y).state.hasInit&&S.value?((0,l.openBlock)(),(0,l.createBlock)(pJ,{key:0,config:P.value,selectedStyles:z.value,"hide-images":e.hideImages,"hide-videos":e.hideVideos,"hide-embeds":e.hideEmbed,"hide-tables":e.hideTables,"hide-alignment":e.hideAlignment,"hide-directions":e.hideDirections,"hide-h5-h6":e.hideH5H6,hide:O.value,"document-colors":W.value,onAction:(0,l.unref)(V).execute},{end:(0,l.withCtx)(()=>[(0,l.renderSlot)(R.$slots,"toolbar-end",{api:se},()=>[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(p.value,U=>(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:U.name,icon:U.icon,value:U.value,"aria-label":U.label,class:(0,l.normalizeClass)([U.class,{active:z.value.has(U.name)}]),"aria-pressed":z.value.has(U.name),thin:"",flat:"",tabindex:"-1",onMousedown:F[0]||(F[0]=(0,l.withModifiers)(()=>{},["prevent"])),onClick:ye=>U.action(se)},null,8,["icon","value","aria-label","class","aria-pressed","onClick"])),[[A,U.label]])),128))],!0)]),_:3},8,["config","selectedStyles","hide-images","hide-videos","hide-embeds","hide-tables","hide-alignment","hide-directions","hide-h5-h6","hide","document-colors","onAction"])):(0,l.createCommentVNode)("",!0),J.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,class:(0,l.normalizeClass)(["flex space-between txt10 pb-025",H.value?"color-red":"color-gray"]),role:"status","aria-live":"polite"},[(0,l.createElementVNode)("span",null,[(0,l.createTextVNode)((0,l.toDisplayString)(x.value),1),e.maxLength?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)(" / "+(0,l.toDisplayString)(e.maxLength),1)],64)):(0,l.createCommentVNode)("",!0),F[66]||(F[66]=(0,l.createTextVNode)(" characters",-1))]),(0,l.createElementVNode)("span",null,[(0,l.createTextVNode)((0,l.toDisplayString)(w.value),1),e.maxWords?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)(" / "+(0,l.toDisplayString)(e.maxWords),1)],64)):(0,l.createCommentVNode)("",!0),F[67]||(F[67]=(0,l.createTextVNode)(" words",-1))]),(0,l.createElementVNode)("span",HJ,(0,l.toDisplayString)(D.value),1)],2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["editor-container",{"split-view":(0,l.unref)(Y).state.isSplitView}])},[(0,l.createElementVNode)("div",{class:"content-area radius-05",style:(0,l.normalizeStyle)({height:(0,l.unref)(Y).state.isFullscreen?"calc(100vh - 4rem)":I2.value})},[(0,l.createElementVNode)("iframe",{id:"rich-text-iframe",ref_key:"iframe",ref:L,class:(0,l.normalizeClass)(["editableContent",{"editor-ready":M.value}]),title:"Editor",srcdoc:"",sandbox:"allow-same-origin allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation",onLoad:Ny},null,34)],4),(0,l.unref)(Y).state.isSplitView?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(r0),{key:0,modelValue:g2.value,"onUpdate:modelValue":F[1]||(F[1]=U=>g2.value=U),language:"html",autodetect:!1,wrap:"",height:(0,l.unref)(Y).state.isFullscreen?"calc(100vh - 4rem)":I2.value},null,8,["modelValue","height"])):(0,l.createCommentVNode)("",!0)],2),e.debug?((0,l.openBlock)(),(0,l.createElementBlock)("div",PJ,[F[72]||(F[72]=(0,l.createElementVNode)("p",{class:"txt12 txt-gray mb-0 p-0"}," Debug ",-1)),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"visibility",onClick:p2},{default:(0,l.withCtx)(()=>[...F[68]||(F[68]=[(0,l.createTextVNode)(" Show Content ",-1)])]),_:1}),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"delete",onClick:om.value?.clearSession},{default:(0,l.withCtx)(()=>[...F[69]||(F[69]=[(0,l.createTextVNode)(" Clear Session ",-1)])]),_:1},8,["onClick"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"download",onClick:om.value?.downloadSession},{default:(0,l.withCtx)(()=>[...F[70]||(F[70]=[(0,l.createTextVNode)(" Download Log ",-1)])]),_:1},8,["onClick"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"content_copy",onClick:F[2]||(F[2]=U=>(0,l.unref)(BG)(om.value?.exportDebugWithPrompt()||""))},{default:(0,l.withCtx)(()=>[...F[71]||(F[71]=[(0,l.createTextVNode)(" Copy Log ",-1)])]),_:1})])):(0,l.createCommentVNode)("",!0)],2),we.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,class:"inline-toolbar",style:(0,l.normalizeStyle)({position:"fixed",top:`${je.value.top}px`,left:`${je.value.left}px`,zIndex:99})},[(0,l.createElementVNode)("div",QJ,[(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_bold",class:(0,l.normalizeClass)({active:(0,l.unref)(Y).state.selectedStyles.has("bold")}),onClick:F[3]||(F[3]=U=>Hi("bold"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_italic",class:(0,l.normalizeClass)({active:(0,l.unref)(Y).state.selectedStyles.has("italic")}),onClick:F[4]||(F[4]=U=>Hi("italic"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_underlined",class:(0,l.normalizeClass)({active:z.value.has("underline")}),onClick:F[5]||(F[5]=U=>Hi("underline"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(vt),{vertical:"",size:"1.25rem",class:"mx-0125"}),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"add_link",onClick:F[6]||(F[6]=U=>Hi("link"))}),z.value.has("link")?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,thin:"",flat:"",icon:"link_off","aria-label":"Remove link",title:"Remove link",onClick:F[7]||(F[7]=U=>Hi("unlink"))})):(0,l.createCommentVNode)("",!0)])],4)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(u5),{shown:ge.value,"onUpdate:shown":F[8]||(F[8]=U=>ge.value=U),"anchor-point":Le.value,title:"Table Actions",items:hy.value,"popup-class":"rich-text-light-theme"},null,8,["shown","anchor-point","items"])],16),(0,l.createVNode)((0,l.unref)(ia),{open:ne.value,title:lm()?"Edit Link":"Add Link",width:"s","onUpdate:open":F[13]||(F[13]=U=>ne.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[12]||(F[12]=U=>ne.value=!1)}),lm()?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Remove Link",flat:"",thin:"",icon:"link_off",color:"red",onClick:HN})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:lm()?"Update Link":"Add Link",disabled:!am(ee.value.url),onClick:G2},null,8,["value","disabled"])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",AJ,[(0,l.createVNode)(Pe,{modelValue:ee.value.url,"onUpdate:modelValue":F[9]||(F[9]=U=>ee.value.url=U),label:"URL",type:"url",placeholder:"https://example.com",onKeydown:(0,l.withKeys)(G2,["enter"])},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(de),{icon:"open_in_new",class:"mb-05 radius-1",flat:"",disabled:!am(ee.value.url),onClick:PN},null,8,["disabled"])]),(0,l.createVNode)(Pe,{modelValue:ee.value.title,"onUpdate:modelValue":F[10]||(F[10]=U=>ee.value.title=U),label:"Title",placeholder:"Optional link title"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:ee.value.openInNewTab,"onUpdate:modelValue":F[11]||(F[11]=U=>ee.value.openInNewTab=U),label:"Open in new tab",type:"checkbox",class:"mb-2 mt-05"},null,8,["modelValue"])]),_:1},8,["open","title"]),me.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"editor-tooltip",style:(0,l.normalizeStyle)({left:`${pe.value.x}px`,top:`${pe.value.y}px`})},(0,l.toDisplayString)(pe.value.message),5)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(ia),{open:K.value,title:(0,l.unref)(v)?.existingImage?"Edit Image":"Insert Image",width:"l","onUpdate:open":F[26]||(F[26]=U=>K.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",t7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[25]||(F[25]=U=>K.value=!1)}),(0,l.unref)(v)?.existingImage?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Image",color:"red",flat:"",thin:"",icon:"delete",onClick:ny})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{class:"ms-auto",value:(0,l.unref)(v)?.existingImage?"Save Changes":"Insert Image",disabled:!B.value.src,onClick:nm},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",_J,[(0,l.createElementVNode)("div",null,[(0,l.createVNode)(Fc,{modelValue:w2.value,"onUpdate:modelValue":F[14]||(F[14]=U=>w2.value=U),label:"Image",type:"image",accept:"image/*",upload:e.uploadImage,onAddFileStart:F[15]||(F[15]=U=>$.value=""),onUploadError:QN,onKeydown:(0,l.withKeys)(nm,["enter"])},null,8,["modelValue","upload"]),$.value?((0,l.openBlock)(),(0,l.createElementBlock)("p",$J,(0,l.toDisplayString)($.value),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",qJ,[(0,l.createVNode)(Pe,{modelValue:B.value.src,"onUpdate:modelValue":F[16]||(F[16]=U=>B.value.src=U),label:"Image URL",type:"url",placeholder:"https://example.com/image.jpg",onKeydown:(0,l.withKeys)(nm,["enter"])},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.alt,"onUpdate:modelValue":F[17]||(F[17]=U=>B.value.alt=U),label:"Alt Text",placeholder:"Describe the image"},null,8,["modelValue"]),(0,l.createElementVNode)("div",e7,[(0,l.createVNode)(Pe,{modelValue:B.value.width,"onUpdate:modelValue":F[18]||(F[18]=U=>B.value.width=U),label:"Width",placeholder:"100% or 500px or auto",help:"Examples: 100%, 500px, auto"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.height,"onUpdate:modelValue":F[19]||(F[19]=U=>B.value.height=U),label:"Height",placeholder:"auto or 300px",help:"Examples: auto, 300px"},null,8,["modelValue"])]),(0,l.createVNode)(bi,{modelValue:B.value.align,"onUpdate:modelValue":F[20]||(F[20]=U=>B.value.align=U),label:"Alignment",options:[{value:"full",label:"Full width (default)",icon:"width_full"},{value:"start",label:"Float to start (text wraps)",icon:"align_horizontal_left"},{value:"end",label:"Float to end (text wraps)",icon:"align_horizontal_right"}],"icon-only":""},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.credit,"onUpdate:modelValue":F[21]||(F[21]=U=>B.value.credit=U),label:"Photo Credit",placeholder:"Photographer name (optional)"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.link,"onUpdate:modelValue":F[22]||(F[22]=U=>B.value.link=U),label:"Link URL",type:"url",placeholder:"https://example.com (optional)",help:"Make the image clickable by linking it to a URL"},null,8,["modelValue"]),B.value.link?((0,l.openBlock)(),(0,l.createBlock)(Ht,{key:0,modelValue:B.value.linkNewTab,"onUpdate:modelValue":F[23]||(F[23]=U=>B.value.linkNewTab=U),label:"Open link in new tab"},null,8,["modelValue"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ht,{modelValue:B.value.figcaption,"onUpdate:modelValue":F[24]||(F[24]=U=>B.value.figcaption=U),label:"Show alt text as caption",help:"Photo credit will always be shown if provided"},null,8,["modelValue"])])])]),_:1},8,["open","title"]),(0,l.createVNode)((0,l.unref)(ia),{open:C.value,title:(0,l.unref)(be)?.existingEmbed?"Edit Embed":"Insert Embed",width:"m","onUpdate:open":F[32]||(F[32]=U=>C.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",a7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[31]||(F[31]=U=>C.value=!1)}),(0,l.unref)(be)?.existingEmbed?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Embed",color:"red",flat:"",thin:"",icon:"delete",onClick:iy})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(be)?.existingEmbed?"Save Changes":"Insert Embed",disabled:!ce.value.src,class:"ms-auto",onClick:Y2},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)(Pe,{modelValue:ce.value.src,"onUpdate:modelValue":F[27]||(F[27]=U=>ce.value.src=U),label:"Embed URL or Code",type:"url",placeholder:"YouTube URL, embed URL, or paste iframe code",onKeydown:(0,l.withKeys)(Y2,["enter"])},null,8,["modelValue"]),(0,l.createElementVNode)("div",l7,[(0,l.createVNode)(Pe,{modelValue:ce.value.width,"onUpdate:modelValue":F[28]||(F[28]=U=>ce.value.width=U),label:"Width",placeholder:"560"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:ce.value.height,"onUpdate:modelValue":F[29]||(F[29]=U=>ce.value.height=U),label:"Height",placeholder:"315"},null,8,["modelValue"])]),(0,l.createVNode)(Pe,{modelValue:ce.value.alt,"onUpdate:modelValue":F[30]||(F[30]=U=>ce.value.alt=U),label:"Caption",placeholder:"Enter caption (optional)"},null,8,["modelValue"])]),_:1},8,["open","title"]),(0,l.createVNode)((0,l.unref)(ia),{open:Oe.value,title:(0,l.unref)(ue)?.existingVideo?"Edit Video":"Insert Video",width:"m","onUpdate:open":F[46]||(F[46]=U=>Oe.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",s7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"","full-width-mobile":"",onClick:F[45]||(F[45]=U=>Oe.value=!1)}),(0,l.unref)(ue)?.existingVideo?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Video",color:"red",flat:"",thin:"",icon:"delete","full-width-mobile":"",onClick:_N})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(ue)?.existingVideo?"Save Video":"Insert Video",class:"ms-auto m_ms-0","full-width-mobile":"",disabled:!oe.value.src||!Vd(oe.value.src),onClick:X2},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",n7,[(0,l.createVNode)(Pe,{modelValue:oe.value.src,"onUpdate:modelValue":F[33]||(F[33]=U=>oe.value.src=U),label:"Video URL or Embed Code",type:"url",placeholder:"Paste YouTube URL, video file URL, or iframe embed code...",class:(0,l.normalizeClass)({error:oe.value.src&&!Vd(oe.value.src)}),onKeydown:(0,l.withKeys)(X2,["enter"])},null,8,["modelValue","class"]),oe.value.src&&!Vd(oe.value.src)?((0,l.openBlock)(),(0,l.createElementBlock)("div",i7,[(0,l.createVNode)((0,l.unref)(Ve),{name:"warning"}),F[73]||(F[73]=(0,l.createElementVNode)("p",{class:"txt12"}," Please enter a valid video URL or iframe embed code ",-1))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Pe,{modelValue:oe.value.width,"onUpdate:modelValue":F[34]||(F[34]=U=>oe.value.width=U),label:"Width",placeholder:"100% or 500px or 50vw",help:"Examples: 100%, 500px, 50vw, 300"},null,8,["modelValue"]),(0,l.createVNode)(bi,{modelValue:oe.value.align,"onUpdate:modelValue":F[35]||(F[35]=U=>oe.value.align=U),label:"Video alignment",options:[{value:"full",label:"Full width",icon:"fit_screen"},{value:"start",label:"Align start",icon:"align_horizontal_left"},{value:"end",label:"Align end",icon:"align_horizontal_right"}]},null,8,["modelValue"]),(0,l.createVNode)(dl,{modelValue:oe.value.aspectRatio,"onUpdate:modelValue":F[36]||(F[36]=U=>oe.value.aspectRatio=U),label:"Aspect Ratio",options:[{value:"16:9",label:"16:9 (Standard)"},{value:"4:3",label:"4:3 (Classic)"},{value:"9:16",label:"9:16 (Vertical/Shorts)"},{value:"21:9",label:"21:9 (Cinematic)"},{value:"1:1",label:"1:1 (Square)"},{value:"custom",label:"Custom"}]},null,8,["modelValue"]),oe.value.aspectRatio==="custom"?((0,l.openBlock)(),(0,l.createElementBlock)("div",c7,[(0,l.createVNode)(Pe,{modelValue:oe.value.customWidth,"onUpdate:modelValue":F[37]||(F[37]=U=>oe.value.customWidth=U),class:"m_grid-span-1",label:"Width ratio",placeholder:"16",type:"number"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:oe.value.customHeight,"onUpdate:modelValue":F[38]||(F[38]=U=>oe.value.customHeight=U),class:"m_grid-span-1",label:"Height ratio",placeholder:"9",type:"number"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",d7,[(0,l.createVNode)(Ht,{modelValue:oe.value.controls,"onUpdate:modelValue":F[39]||(F[39]=U=>oe.value.controls=U),label:"Show controls"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.autoplay,"onUpdate:modelValue":F[40]||(F[40]=U=>oe.value.autoplay=U),label:"Autoplay"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.mute,"onUpdate:modelValue":F[41]||(F[41]=U=>oe.value.mute=U),label:"Mute"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.loop,"onUpdate:modelValue":F[42]||(F[42]=U=>oe.value.loop=U),label:"Loop"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.showCaption,"onUpdate:modelValue":F[43]||(F[43]=U=>oe.value.showCaption=U),class:"grid-span-2",label:"Show caption below video"},null,8,["modelValue"]),oe.value.showCaption?((0,l.openBlock)(),(0,l.createBlock)(Pe,{key:0,modelValue:oe.value.caption,"onUpdate:modelValue":F[44]||(F[44]=U=>oe.value.caption=U),label:"Caption",class:"grid-span-2",placeholder:"Describe the video content"},null,8,["modelValue"])):(0,l.createCommentVNode)("",!0)]),oe.value.src&&Vd(oe.value.src)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(ql),{key:2,frame:"",thin:"",class:"bg-gray-20"},{default:(0,l.withCtx)(()=>[F[74]||(F[74]=(0,l.createElementVNode)("p",{class:"label"}," Preview: ",-1)),(0,l.createElementVNode)("div",o7,[(0,l.createVNode)((0,l.unref)(n0),{src:oe.value.src,class:"","aspect-ratio":oe.value.aspectRatio==="custom"&&oe.value.customWidth&&oe.value.customHeight?`${oe.value.customWidth}:${oe.value.customHeight}`:oe.value.aspectRatio,autoplay:!1,mute:oe.value.mute,controls:oe.value.controls,loop:oe.value.loop},null,8,["src","aspect-ratio","mute","controls","loop"])])]),_:1})):(0,l.createCommentVNode)("",!0)])]),_:1},8,["open","title"]),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:"body"},[(0,l.createVNode)((0,l.unref)(ia),{open:Se.value,title:(0,l.unref)(Zt)?.existingTable?"Edit Table":"Insert Table",width:"l","onUpdate:open":F[65]||(F[65]=U=>Se.value=U)},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",m7,[(0,l.createVNode)((0,l.unref)(vt),{label:"Table Structure",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Wl,{modelValue:Q.value.rows,"onUpdate:modelValue":F[47]||(F[47]=U=>Q.value.rows=U),min:1,max:20,label:"Rows"},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.cols,"onUpdate:modelValue":F[48]||(F[48]=U=>Q.value.cols=U),min:1,max:10,label:"Columns"},null,8,["modelValue"]),(0,l.createElementVNode)("div",r7,[F[75]||(F[75]=(0,l.createElementVNode)("label",{class:"label"},"Column Widths (%)",-1)),(0,l.createElementVNode)("div",u7,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.columnWidths.slice(0,Q.value.cols),(U,ye)=>((0,l.openBlock)(),(0,l.createBlock)(Wl,{key:ye,modelValue:Q.value.columnWidths[ye],"onUpdate:modelValue":Ye=>Q.value.columnWidths[ye]=Ye,min:1,max:100,label:`Column ${ye+1}`},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]),(0,l.createElementVNode)("p",{class:(0,l.normalizeClass)(["txt12 mt-025 mb-0",{"color-red":Math.abs(Re.value-100)>.01}])}," Total: "+(0,l.toDisplayString)(Number(Re.value.toFixed(2)))+"% ",3)]),(0,l.createVNode)(bi,{modelValue:Q.value.alignment,"onUpdate:modelValue":F[49]||(F[49]=U=>Q.value.alignment=U),label:"Cell Text Alignment",class:"grid-span-1","icon-only":"",options:[{value:"left",label:"Align Left",icon:"format_align_left"},{value:"center",label:"Align Center",icon:"format_align_center"},{value:"right",label:"Align Right",icon:"format_align_right"}]},null,8,["modelValue"]),(0,l.createVNode)(bi,{modelValue:Q.value.direction,"onUpdate:modelValue":F[50]||(F[50]=U=>Q.value.direction=U),label:"Text Direction",class:"grid-span-1",options:[{value:"ltr",label:"LTR"},{value:"rtl",label:"RTL"}]},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Table Style",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Wl,{modelValue:Q.value.width,"onUpdate:modelValue":F[51]||(F[51]=U=>Q.value.width=U),label:"Width (%)",min:25,max:100},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.cellPadding,"onUpdate:modelValue":F[52]||(F[52]=U=>Q.value.cellPadding=U),label:"Cell Padding (px)",min:2,max:20},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.borderWidth,"onUpdate:modelValue":F[53]||(F[53]=U=>Q.value.borderWidth=U),label:"Border Width (px)",min:0,max:5},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.borderColor,"onUpdate:modelValue":F[54]||(F[54]=U=>Q.value.borderColor=U),label:"Border Color"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:Q.value.fixedLayout,"onUpdate:modelValue":F[55]||(F[55]=U=>Q.value.fixedLayout=U),label:"Fixed cell width (doesn't change by content)",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Cell Colors",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.cellBgColor,"onUpdate:modelValue":F[56]||(F[56]=U=>Q.value.cellBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Background Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.cellTextColor,"onUpdate:modelValue":F[57]||(F[57]=U=>Q.value.cellTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Text Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Row Styles",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Ht,{modelValue:Q.value.showHeaders,"onUpdate:modelValue":F[58]||(F[58]=U=>Q.value.showHeaders=U),label:"Show header row",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),Q.value.showHeaders?((0,l.openBlock)(),(0,l.createElementBlock)("div",Z7,[(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.headerBgColor,"onUpdate:modelValue":F[59]||(F[59]=U=>Q.value.headerBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Header Background Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.headerTextColor,"onUpdate:modelValue":F[60]||(F[60]=U=>Q.value.headerTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Header Text Color"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ht,{modelValue:Q.value.alternateRows,"onUpdate:modelValue":F[61]||(F[61]=U=>Q.value.alternateRows=U),label:"Alternating Row Colors",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),Q.value.alternateRows?((0,l.openBlock)(),(0,l.createElementBlock)("div",b7,[(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.alternateRowBgColor,"onUpdate:modelValue":F[62]||(F[62]=U=>Q.value.alternateRowBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Alternate Row Background:"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.alternateRowTextColor,"onUpdate:modelValue":F[63]||(F[63]=U=>Q.value.alternateRowTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Alternate Row Text:"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)]),(0,l.createVNode)((0,l.unref)(vt),{label:"Preview",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createElementVNode)("div",h7,[(0,l.createElementVNode)("table",{dir:Q.value.direction,style:(0,l.normalizeStyle)({width:`${Q.value.width}%`,borderCollapse:"collapse",marginBottom:"1rem",border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,tableLayout:Q.value.fixedLayout?"fixed":"auto"})},[(0,l.createElementVNode)("colgroup",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.columnWidths.slice(0,Q.value.cols),(U,ye)=>((0,l.openBlock)(),(0,l.createElementBlock)("col",{key:`col-${ye}`,style:(0,l.normalizeStyle)({width:`${U}%`})},null,4))),128))]),Q.value.showHeaders?((0,l.openBlock)(),(0,l.createElementBlock)("thead",W7,[(0,l.createElementVNode)("tr",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.cols,U=>((0,l.openBlock)(),(0,l.createElementBlock)("th",{key:`th-${U}`,style:(0,l.normalizeStyle)({padding:`${Q.value.cellPadding}px`,border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,backgroundColor:Q.value.headerBgColor,color:Q.value.headerTextColor,textAlign:Q.value.alignment,width:Q.value.fixedLayout?`${Q.value.columnWidths[U-1]??100/Q.value.cols}%`:void 0})}," Header "+(0,l.toDisplayString)(U),5))),128))])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("tbody",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.rows,U=>((0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:`tr-${U}`},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.cols,ye=>((0,l.openBlock)(),(0,l.createElementBlock)("td",{key:`td-${U}-${ye}`,style:(0,l.normalizeStyle)({padding:`${Q.value.cellPadding}px`,border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,textAlign:Q.value.alignment,width:Q.value.fixedLayout?`${Q.value.columnWidths[ye-1]??100/Q.value.cols}%`:void 0,backgroundColor:Q.value.alternateRows&&(U-1)%2===1?Q.value.alternateRowBgColor:Q.value.cellBgColor,color:Q.value.alternateRows&&(U-1)%2===1?Q.value.alternateRowTextColor:Q.value.cellTextColor})}," Cell "+(0,l.toDisplayString)(U)+","+(0,l.toDisplayString)(ye),5))),128))]))),128))])],12,p7)])]),footer:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[64]||(F[64]=U=>Se.value=!1)}),(0,l.unref)(Zt)?.existingTable?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Table",color:"red",flat:"",thin:"",icon:"delete",onClick:ly})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(Zt)?.existingTable?"Save":"Insert Table",class:"ms-auto",onClick:ey},null,8,["value"])]),_:1},8,["open","title"])]))],64)}}}),Uo=Te(N7,[["__scopeId","data-v-7f491953"]]);function y7(e){return e}var Oo=class{x;y;pressure;time;constructor(e,t,a,n){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=a||0,this.time=n||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}},Y7=class wW{constructor(t,a,n,i,c,d){this.startPoint=t,this.control2=a,this.control1=n,this.endPoint=i,this.startWidth=c,this.endWidth=d}startPoint;control2;control1;endPoint;startWidth;endWidth;static fromPoints(t,a){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new wW(t[1],n,i,t[2],a.start,a.end)}static calculateControlPoints(t,a,n){const i=t.x-a.x,c=t.y-a.y,d=a.x-n.x,o=a.y-n.y,s={x:(t.x+a.x)/2,y:(t.y+a.y)/2},m={x:(a.x+n.x)/2,y:(a.y+n.y)/2},r=Math.sqrt(i*i+c*c),u=Math.sqrt(d*d+o*o),Z=s.x-m.x,h=s.y-m.y,p=r+u==0?0:u/(r+u),b={x:m.x+Z*p,y:m.y+h*p},y=a.x-b.x,W=a.y-b.y;return{c1:new Oo(s.x+y,s.y+W),c2:new Oo(m.x+y,m.y+W)}}length(){let a=0,n,i;for(let c=0;c<=10;c+=1){const d=c/10,o=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(c>0){const m=o-n,r=s-i;a+=Math.sqrt(m*m+r*r)}n=o,i=s}return a}point(t,a,n,i,c){return a*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*i*(1-t)*t*t+c*t*t*t}},L7=class{_et;constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,a){this._et.addEventListener(e,t,a)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,a){this._et.removeEventListener(e,t,a)}};function X7(e,t=250){let a=0,n=null,i,c,d;const o=()=>{a=Date.now(),n=null,i=e.apply(c,d),n||(c=null,d=[])};return function(...m){const r=Date.now(),u=t-(r-a);return c=this,d=m,u<=0||u>t?(n&&(clearTimeout(n),n=null),a=r,i=e.apply(c,d),n||(c=null,d=[])):n||(n=window.setTimeout(o,u)),i}}var M7=class qr extends L7{constructor(t,a={}){super(),this.canvas=t,this.velocityFilterWeight=a.velocityFilterWeight||.7,this.minWidth=a.minWidth||.5,this.maxWidth=a.maxWidth||2.5,this.throttle=a.throttle??16,this.minDistance=a.minDistance??5,this.dotSize=a.dotSize||0,this.penColor=a.penColor||"black",this.backgroundColor=a.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=a.compositeOperation||"source-over",this.canvasContextOptions=a.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?X7(qr.prototype._strokeUpdate,this.throttle):qr.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}canvas;dotSize;minWidth;maxWidth;penColor;minDistance;velocityFilterWeight;compositeOperation;backgroundColor;throttle;canvasContextOptions;_ctx;_drawingStroke=!1;_isEmpty=!0;_dataUrl;_dataUrlOptions;_lastPoints=[];_data=[];_lastVelocity=0;_lastWidth=0;_strokeMoveUpdate;_strokePointerId;clear(){const{_ctx:t,canvas:a}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,a.width,a.height),t.fillRect(0,0,a.width,a.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const t=this._data,a=this._dataUrl,n=this._dataUrlOptions;this.clear(),a&&this.fromDataURL(a,n),this.fromData(t,{clear:!1})}fromDataURL(t,a={}){return new Promise((n,i)=>{const c=new Image,d=a.ratio||window.devicePixelRatio||1,o=a.width||this.canvas.width/d,s=a.height||this.canvas.height/d,m=a.xOffset||0,r=a.yOffset||0;this._reset(this._getPointGroupOptions()),c.onload=()=>{this._ctx.drawImage(c,m,r,o,s),n()},c.onerror=u=>{i(u)},c.crossOrigin="anonymous",c.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions={...a}})}toDataURL(t="image/png",a){return t==="image/svg+xml"?(typeof a!="object"&&(a=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(a))}`):(typeof a!="number"&&(a=void 0),this.canvas.toDataURL(t,a))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const t=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("pointercancel",this._handlePointerCancel),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd),t("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(t,{clear:a=!0}={}){a&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this),this._drawLine.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,a){return a?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const a=t.changedTouches[0];return{event:t,type:t.type,x:a.clientX,y:a.clientY,pressure:a.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_handlePointerCancel(t){this._allowPointerId(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))}_handleTouchCancel(t){t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t),!1)}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,a=!1){return typeof this._strokePointerId>"u"?a:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:a}=this._getListenerFunctions();switch(t.event.type){case"mousedown":a("mousemove",this._handleMouseMove,{passive:!1}),a("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":a("touchmove",this._handleTouchMove,{passive:!1}),a("touchend",this._handleTouchEnd,{passive:!1}),a("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":a("pointermove",this._handlePointerMove,{passive:!1}),a("pointerup",this._handlePointerUp,{passive:!1}),a("pointercancel",this._handlePointerCancel,{passive:!1});break;default:}this._drawingStroke=!0;const n=this._getPointGroupOptions(),i={...n,points:[]};this._data.push(i),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const a=this._createPoint(t.x,t.y,t.pressure),n=this._data[this._data.length-1],i=n.points,c=i.length>0&&i[i.length-1],d=c?a.distanceTo(c)<=this.minDistance:!1,o=this._getPointGroupOptions(n);if(!c||!(c&&d)){const s=this._addPoint(a,o);c?s&&this._drawCurve(s,o):this._drawDot(a,o),i.push({time:a.time,x:a.x,y:a.y,pressure:a.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,a=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(a&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,a,n){const i=this.canvas.getBoundingClientRect();return new Oo(t-i.left,a-i.top,n,new Date().getTime())}_addPoint(t,a){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const i=this._calculateCurveWidths(n[1],n[2],a),c=Y7.fromPoints(n,i);return n.shift(),c}return null}_calculateCurveWidths(t,a,n){const i=n.velocityFilterWeight*a.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,c=this._strokeWidth(i,n),d={end:c,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=c,d}_strokeWidth(t,a){return Math.max(a.maxWidth/(t+1),a.minWidth)}_drawCurveSegment(t,a,n){const i=this._ctx;i.moveTo(t,a),i.arc(t,a,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,a){const n=this._ctx,i=t.endWidth-t.startWidth,c=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=a.penColor;for(let d=0;d<c;d+=1){const o=d/c,s=o*o,m=s*o,r=1-o,u=r*r,Z=u*r;let h=Z*t.startPoint.x;h+=3*u*o*t.control1.x,h+=3*r*s*t.control2.x,h+=m*t.endPoint.x;let p=Z*t.startPoint.y;p+=3*u*o*t.control1.y,p+=3*r*s*t.control2.y,p+=m*t.endPoint.y;const b=Math.min(t.startWidth+m*i,a.maxWidth);this._drawCurveSegment(h,p,b)}n.closePath(),n.fill()}_getDotSize(t){return t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2}_drawDot(t,a){const n=this._ctx,i=this._getDotSize(a);n.beginPath(),this._drawCurveSegment(t.x,t.y,i),n.closePath(),n.fillStyle=a.penColor,n.fill()}_drawLine(t,a,n){const i=this._ctx;i.save(),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(a.x,a.y),i.lineWidth=this._getDotSize(n)*2,i.lineCap="round",i.strokeStyle=n.penColor,i.stroke(),i.restore(),this._isEmpty=!1}_fromData(t,a,n,i){for(const c of t){const{points:d}=c,o=this._getPointGroupOptions(c);if(d.length>2)for(let s=0;s<d.length;s+=1){const m=d[s],r=new Oo(m.x,m.y,m.pressure,m.time);s===0&&this._reset(o);const u=this._addPoint(r,o);u&&a(u,o)}else d.length===2?(this._reset(o),i(d[0],d[1],o)):(this._reset(o),n(d[0],o))}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:a=!1}={}){const n=this._data,i=Math.max(window.devicePixelRatio||1,1),c=0,d=0,o=this.canvas.width/i,s=this.canvas.height/i,m=document.createElementNS("http://www.w3.org/2000/svg","svg");if(m.setAttribute("xmlns","http://www.w3.org/2000/svg"),m.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),m.setAttribute("viewBox",`${c} ${d} ${o} ${s}`),m.setAttribute("width",o.toString()),m.setAttribute("height",s.toString()),t&&this.backgroundColor){const r=document.createElement("rect");r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("fill",this.backgroundColor),m.appendChild(r)}if(a&&this._dataUrl){const r=this._dataUrlOptions?.ratio||window.devicePixelRatio||1,u=this._dataUrlOptions?.width||this.canvas.width/r,Z=this._dataUrlOptions?.height||this.canvas.height/r,h=this._dataUrlOptions?.xOffset||0,p=this._dataUrlOptions?.yOffset||0,b=document.createElement("image");b.setAttribute("x",h.toString()),b.setAttribute("y",p.toString()),b.setAttribute("width",u.toString()),b.setAttribute("height",Z.toString()),b.setAttribute("preserveAspectRatio","none"),b.setAttribute("href",this._dataUrl),m.appendChild(b)}return this._fromData(n,(r,{penColor:u})=>{const Z=document.createElement("path");if(!isNaN(r.control1.x)&&!isNaN(r.control1.y)&&!isNaN(r.control2.x)&&!isNaN(r.control2.y)){const h=`M ${r.startPoint.x.toFixed(3)},${r.startPoint.y.toFixed(3)} C ${r.control1.x.toFixed(3)},${r.control1.y.toFixed(3)} ${r.control2.x.toFixed(3)},${r.control2.y.toFixed(3)} ${r.endPoint.x.toFixed(3)},${r.endPoint.y.toFixed(3)}`;Z.setAttribute("d",h),Z.setAttribute("stroke-width",(r.endWidth*2.25).toFixed(3)),Z.setAttribute("stroke",u),Z.setAttribute("fill","none"),Z.setAttribute("stroke-linecap","round"),m.appendChild(Z)}},(r,{penColor:u,dotSize:Z,minWidth:h,maxWidth:p})=>{const b=document.createElement("circle"),y=Z>0?Z:(h+p)/2;b.setAttribute("r",y.toString()),b.setAttribute("cx",r.x.toString()),b.setAttribute("cy",r.y.toString()),b.setAttribute("fill",u),m.appendChild(b)},(r,u,Z)=>{const h=document.createElement("line");h.setAttribute("x1",r.x.toString()),h.setAttribute("y1",r.y.toString()),h.setAttribute("x2",u.x.toString()),h.setAttribute("y2",u.y.toString()),h.setAttribute("stroke",Z.penColor),h.setAttribute("stroke-width",(this._getDotSize(Z)*2).toString()),h.setAttribute("stroke-linecap","round"),m.appendChild(h)}),m.outerHTML}};function RW(e=globalThis.devicePixelRatio??1){return Number.isFinite(e)?Math.min(Math.max(e,1),2):1}function V7(e,t=RW()){const a=e.clientWidth,n=e.clientHeight;if(a<=0||n<=0)return;const i=Math.round(a*t),c=Math.round(n*t);return e.width!==i&&(e.width=i),e.height!==c&&(e.height=c),e.getContext("2d")?.setTransform(t,0,0,t,0,0),{width:a,height:n,pixelRatio:t}}var T7={key:0,class:"label-text"},I7={key:1,class:"helptext"},x7=["disabled"],g7=["required"],z7=(0,l.defineComponent)({__name:"SignaturePad",props:(0,l.mergeModels)({sigOption:{},width:{},height:{},ratio:{},clearOnResize:{type:Boolean},waterMark:{},disabled:{type:Boolean},defaultUrl:{},format:{},clearable:{type:Boolean,default:!0},required:{type:Boolean},label:{},helptext:{},penColor:{},backgroundColor:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},{modelValue:{},modelModifiers:{},file:{},fileModifiers:{}}),emits:["update:modelValue","update:file"],setup(e,{expose:t}){const a=e,{shellClass:n,shellStyle:i}=Xt(a),c=(0,l.useModel)(e,"modelValue"),d=(0,l.useModel)(e,"file"),o=(0,l.ref)(),s=(0,l.ref)(),m=(0,l.ref)(!0);let r;function u(){s.value?.clear(),m.value=!0,c.value=void 0}function Z(z){return z=z||a.format,z?s.value?.toDataURL(z):s.value?.toDataURL()}function h(){const z=Z();if(z)if(a.format==="image/svg+xml")r=new File([z],"signature.svg",{type:"image/svg+xml"}),d.value=r;else try{const I=z.split(",")[1];if(!I)throw new Error("Invalid data URL format");const x=atob(I),w=new Uint8Array(Array.from(x,J=>J.charCodeAt(0))),k=a.format||"image/png",j=new Blob([w],{type:k}),H=k.split("/")[1];r=new File([j],`signature.${H}`,{type:k}),d.value=r}catch{}}function p(z){const I=o.value?.getBoundingClientRect();return s.value?.fromDataURL(z,{height:I?.height,width:I?.width,ratio:RW(),xOffset:0,yOffset:0})}const b=()=>s.value?.isEmpty();function y(){const z=s.value?.toData();z&&(z.pop(),s.value?.fromData(z))}const W=(0,l.ref)({penColor:"rgb(0, 0, 0)",backgroundColor:"rgba(0,0,0,0)"}),G=(0,l.computed)(()=>({...W.value,...a.penColor?{penColor:a.penColor}:{},...a.backgroundColor?{backgroundColor:a.backgroundColor}:{},...a.sigOption}));(0,l.watch)(()=>a.disabled,z=>{z?s.value?.off():s.value?.on()}),(0,l.watch)(G,z=>{s.value&&(s.value.penColor=z.penColor??"rgb(0,0,0)",z.backgroundColor&&(s.value.backgroundColor=z.backgroundColor))});function N(z){if(Object.prototype.toString.call(z)!=="[object Object]")throw new Error(`Expected Object, got ${typeof z}.`);{const I={text:z.text||"",x:z.x||20,y:z.y||20,sx:z.sx||40,sy:z.sy||40},x=o.value?.getContext("2d");if(!x)return;x.font=z.font||"20px sans-serif",x.fillStyle=z.fillStyle||"#333",x.strokeStyle=z.strokeStyle||"#333",z.style==="all"?(x.fillText(I.text,I.x,I.y),x.strokeText(I.text,I.sx,I.sy)):z.style==="stroke"?x.strokeText(I.text,I.sx,I.sy):x.fillText(I.text,I.x,I.y)}}function L(){m.value=s.value?.isEmpty()??!1,c.value=Z(),h()}function Y(z){if(!z)return;const I=new FileReader;return new Promise(x=>{I.onload=w=>{const k=String(w.target?.result);p(k),m.value=!1,c.value=k,x(!0)},I.readAsDataURL(z)})}(0,l.watch)(d,z=>{if(z===r){r=void 0;return}Y(z)});function X(){const z=o.value,I=s.value;if(!z||!I)return;const x=z.width,w=z.height,k=I.isEmpty(),j=k?[]:I.toData(),H=!k&&j.length===0?Z():void 0;V7(z)&&(z.width===x&&z.height===w||(I.clear(),a.clearOnResize?(m.value=!0,c.value=void 0):j.length>0?(I.fromData(j),m.value=!1):H&&(p(H),m.value=!1),a.waterMark&&N(a.waterMark)))}const M=(0,l.computed)(()=>({...a.backgroundColor?{background:a.backgroundColor}:{},width:a.width??"100%",...a.height?{height:a.height}:{aspectRatio:`1 / ${a.ratio??1/2}`,height:"auto"}}));async function V(){s.value=new M7(o.value,G.value),a.disabled&&s.value.off(),m.value=s.value.isEmpty(),d.value&&Y(d.value),await(0,l.nextTick)(),requestAnimationFrame(()=>requestAnimationFrame(X))}return(0,l.onMounted)(()=>{V()}),jp(()=>o.value,X),yi(()=>s.value,"endStroke",L),t({save:Z,clear:u,isEmpty:b,undo:y,addWaterMark:N,fromDataURL:p}),(z,I)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["bagel-input bgl_input signature-pad relative",[(0,l.unref)(n),{"has-value":!m.value}]]),style:(0,l.normalizeStyle)((0,l.unref)(i)),tabindex:"-1",onTouchmove:I[0]||(I[0]=(0,l.withModifiers)(()=>{},["prevent"]))},[e.label?((0,l.openBlock)(),(0,l.createElementBlock)("label",T7,(0,l.toDisplayString)(e.label),1)):(0,l.createCommentVNode)("",!0),e.helptext?((0,l.openBlock)(),(0,l.createElementBlock)("p",I7,(0,l.toDisplayString)(e.helptext),1)):(0,l.createCommentVNode)("",!0),e.clearable&&!e.disabled?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:2,flat:"",thin:"",icon:"refresh",class:"position-bottom-end",onClick:u})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("canvas",{ref_key:"vCanvas",ref:o,class:"canvas",disabled:e.disabled,style:(0,l.normalizeStyle)(M.value)},null,12,x7),(0,l.createElementVNode)("input",{placeholder:"required",type:"text",required:e.required&&m.value,class:"pixel opacity-0",inputMode:"none"},null,8,g7)],38))}}),w7=z7;function R7(){return typeof window<"u"?window.console:global.console}var S7=R7();function f7(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var v7=/-(\w)/g,wb=f7(e=>e.replace(v7,(t,a)=>a?a.toUpperCase():""));function Sm(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Rb(e,t,a){const n=a===0?e.children[0]:e.children[a-1].nextSibling;e.insertBefore(t,n)}function Sb(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function ua(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(a),!0).forEach(function(n){k7(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Sb(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function ho(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ho=function(t){return typeof t}:ho=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function k7(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Sa(){return Sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Sa.apply(this,arguments)}function F7(e,t){if(e==null)return{};var a={},n=Object.keys(e),i,c;for(c=0;c<n.length;c++)i=n[c],!(t.indexOf(i)>=0)&&(a[i]=e[i]);return a}function j7(e,t){if(e==null)return{};var a=F7(e,t),n,i;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)n=c[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var C7="1.14.0";function xa(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ka=xa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Wd=xa(/Edge/i),fb=xa(/firefox/i),pc=xa(/safari/i)&&!xa(/chrome/i)&&!xa(/android/i),SW=xa(/iP(ad|od|hone)/i),J7=xa(/chrome/i)&&xa(/android/i),fW={capture:!1,passive:!1};function nt(e,t,a){e.addEventListener(t,a,!ka&&fW)}function tt(e,t,a){e.removeEventListener(t,a,!ka&&fW)}function Eo(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function D7(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function na(e,t,a,n){if(e){a=a||document;do{if(t!=null&&(t[0]===">"?e.parentNode===a&&Eo(e,t):Eo(e,t))||n&&e===a)return e;if(e===a)break}while(e=D7(e))}return null}var vb=/\s+/g;function ul(e,t,a){e&&t&&(e.classList?e.classList[a?"add":"remove"](t):e.className=((" "+e.className+" ").replace(vb," ").replace(" "+t+" "," ")+(a?" "+t:"")).replace(vb," "))}function Je(e,t,a){var n=e&&e.style;if(n){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(a=e.currentStyle),t===void 0?a:a[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=a+(typeof a=="string"?"":"px")}}function Xi(e,t){var a="";if(typeof e=="string")a=e;else do{var n=Je(e,"transform");n&&n!=="none"&&(a=n+" "+a)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(a)}function vW(e,t,a){if(e){var n=e.getElementsByTagName(t),i=0,c=n.length;if(a)for(;i<c;i++)a(n[i],i);return n}return[]}function da(){var e=document.scrollingElement;return e||document.documentElement}function zt(e,t,a,n,i){if(!(!e.getBoundingClientRect&&e!==window)){var c,d,o,s,m,r,u;if(e!==window&&e.parentNode&&e!==da()?(c=e.getBoundingClientRect(),d=c.top,o=c.left,s=c.bottom,m=c.right,r=c.height,u=c.width):(d=0,o=0,s=window.innerHeight,m=window.innerWidth,r=window.innerHeight,u=window.innerWidth),(t||a)&&e!==window&&(i=i||e.parentNode,!ka))do if(i&&i.getBoundingClientRect&&(Je(i,"transform")!=="none"||a&&Je(i,"position")!=="static")){var Z=i.getBoundingClientRect();d-=Z.top+parseInt(Je(i,"border-top-width")),o-=Z.left+parseInt(Je(i,"border-left-width")),s=d+c.height,m=o+c.width;break}while(i=i.parentNode);if(n&&e!==window){var h=Xi(i||e),p=h&&h.a,b=h&&h.d;h&&(d/=b,o/=p,u/=p,r/=b,s=d+r,m=o+u)}return{top:d,left:o,bottom:s,right:m,width:u,height:r}}}function kb(e,t,a){for(var n=Qa(e,!0),i=zt(e)[t];n;){var c=zt(n)[a],d=void 0;if(a==="top"||a==="left"?d=i>=c:d=i<=c,!d)return n;if(n===da())break;n=Qa(n,!1)}return!1}function Ri(e,t,a,n){for(var i=0,c=0,d=e.children;c<d.length;){if(d[c].style.display!=="none"&&d[c]!==De.ghost&&(n||d[c]!==De.dragged)&&na(d[c],a.draggable,e,!1)){if(i===t)return d[c];i++}c++}return null}function I0(e,t){for(var a=e.lastElementChild;a&&(a===De.ghost||Je(a,"display")==="none"||t&&!Eo(a,t));)a=a.previousElementSibling;return a||null}function Vl(e,t){var a=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==De.clone&&(!t||Eo(e,t))&&a++;return a}function Fb(e){var t=0,a=0,n=da();if(e)do{var i=Xi(e),c=i.a,d=i.d;t+=e.scrollLeft*c,a+=e.scrollTop*d}while(e!==n&&(e=e.parentNode));return[t,a]}function U7(e,t){for(var a in e)if(e.hasOwnProperty(a)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[a][n])return Number(a)}return-1}function Qa(e,t){if(!e||!e.getBoundingClientRect)return da();var a=e,n=!1;do if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=Je(a);if(a.clientWidth<a.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||a.clientHeight<a.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!a.getBoundingClientRect||a===document.body)return da();if(n||t)return a;n=!0}}while(a=a.parentNode);return da()}function O7(e,t){if(e&&t)for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}function fm(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Wc;function kW(e,t){return function(){if(!Wc){var a=arguments,n=this;a.length===1?e.call(n,a[0]):e.apply(n,a),Wc=setTimeout(function(){Wc=void 0},t)}}}function E7(){clearTimeout(Wc),Wc=void 0}function FW(e,t,a){e.scrollLeft+=t,e.scrollTop+=a}function jW(e){var t=window.Polymer,a=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):a?a(e).clone(!0)[0]:e.cloneNode(!0)}var Gl="Sortable"+new Date().getTime();function B7(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(n){if(!(Je(n,"display")==="none"||n===De.ghost)){e.push({target:n,rect:zt(n)});var i=ua({},e[e.length-1].rect);if(n.thisAnimationDuration){var c=Xi(n,!0);c&&(i.top-=c.f,i.left-=c.e)}n.fromRect=i}})},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(U7(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var c=!1,d=0;e.forEach(function(o){var s=0,m=o.target,r=m.fromRect,u=zt(m),Z=m.prevFromRect,h=m.prevToRect,p=o.rect,b=Xi(m,!0);b&&(u.top-=b.f,u.left-=b.e),m.toRect=u,m.thisAnimationDuration&&fm(Z,u)&&!fm(r,u)&&(p.top-u.top)/(p.left-u.left)===(r.top-u.top)/(r.left-u.left)&&(s=H7(p,Z,h,i.options)),fm(u,r)||(m.prevFromRect=r,m.prevToRect=u,s||(s=i.options.animation),i.animate(m,p,u,s)),s&&(c=!0,d=Math.max(d,s),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},s),m.thisAnimationDuration=s)}),clearTimeout(t),c?t=setTimeout(function(){typeof n=="function"&&n()},d):typeof n=="function"&&n(),e=[]},animate:function(n,i,c,d){if(d){Je(n,"transition",""),Je(n,"transform","");var o=Xi(this.el),s=o&&o.a,m=o&&o.d,r=(i.left-c.left)/(s||1),u=(i.top-c.top)/(m||1);n.animatingX=!!r,n.animatingY=!!u,Je(n,"transform","translate3d("+r+"px,"+u+"px,0)"),this.forRepaintDummy=K7(n),Je(n,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Je(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Je(n,"transition",""),Je(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},d)}}}}function K7(e){return e.offsetWidth}function H7(e,t,a,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-a.top,2)+Math.pow(t.left-a.left,2))*n.animation}var ti=[],vm={initializeByDefault:!0},Gd={mount:function(t){for(var a in vm)vm.hasOwnProperty(a)&&!(a in t)&&(t[a]=vm[a]);ti.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ti.push(t)},pluginEvent:function(t,a,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var c=t+"Global";ti.forEach(function(d){a[d.pluginName]&&(a[d.pluginName][c]&&a[d.pluginName][c](ua({sortable:a},n)),a.options[d.pluginName]&&a[d.pluginName][t]&&a[d.pluginName][t](ua({sortable:a},n)))})},initializePlugins:function(t,a,n,i){ti.forEach(function(o){var s=o.pluginName;if(!(!t.options[s]&&!o.initializeByDefault)){var m=new o(t,a,t.options);m.sortable=t,m.options=t.options,t[s]=m,Sa(n,m.defaults)}});for(var c in t.options)if(t.options.hasOwnProperty(c)){var d=this.modifyOption(t,c,t.options[c]);typeof d<"u"&&(t.options[c]=d)}},getEventProperties:function(t,a){var n={};return ti.forEach(function(i){typeof i.eventProperties=="function"&&Sa(n,i.eventProperties.call(a[i.pluginName],t))}),n},modifyOption:function(t,a,n){var i;return ti.forEach(function(c){t[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[a]=="function"&&(i=c.optionListeners[a].call(t[c.pluginName],n))}),i}};function P7(e){var t=e.sortable,a=e.rootEl,n=e.name,i=e.targetEl,c=e.cloneEl,d=e.toEl,o=e.fromEl,s=e.oldIndex,m=e.newIndex,r=e.oldDraggableIndex,u=e.newDraggableIndex,Z=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||a&&a[Gl],!!t){var b,y=t.options,W="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ka&&!Wd?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=d||a,b.from=o||a,b.item=i||a,b.clone=c,b.oldIndex=s,b.newIndex=m,b.oldDraggableIndex=r,b.newDraggableIndex=u,b.originalEvent=Z,b.pullMode=h?h.lastPutMode:void 0;var G=ua(ua({},p),Gd.getEventProperties(n,t));for(var N in G)b[N]=G[N];a&&a.dispatchEvent(b),y[W]&&y[W].call(t,b)}}var Q7=["evt"],il=function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,c=j7(n,Q7);Gd.pluginEvent.bind(De)(t,a,ua({dragEl:Ie,parentEl:Gt,ghostEl:Ke,rootEl:bt,nextEl:Mn,lastDownEl:po,cloneEl:Nt,cloneHidden:Ha,dragStarted:sc,putSortable:jt,activeSortable:De.active,originalEvent:i,oldIndex:hi,oldDraggableIndex:Gc,newIndex:Zl,newDraggableIndex:Ba,hideGhostForTarget:UW,unhideGhostForTarget:OW,cloneNowHidden:function(){Ha=!0},cloneNowShown:function(){Ha=!1},dispatchSortableEvent:function(o){$t({sortable:a,name:o,originalEvent:i})}},c))};function $t(e){P7(ua({putSortable:jt,cloneEl:Nt,targetEl:Ie,rootEl:bt,oldIndex:hi,oldDraggableIndex:Gc,newIndex:Zl,newDraggableIndex:Ba},e))}var Ie,Gt,Ke,bt,Mn,po,Nt,Ha,hi,Zl,Gc,Ba,Od,jt,mi=!1,Bo=!1,Ko=[],yn,Dl,km,Fm,jb,Cb,sc,li,Nc,yc=!1,Ed=!1,Wo,Bt,jm=[],eu=!1,Ho=[],vs=typeof document<"u",Bd=SW,Jb=Wd||ka?"cssFloat":"float",A7=vs&&!J7&&!SW&&"draggable"in document.createElement("div"),CW=(function(){if(vs){if(ka)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),JW=function(t,a){var n=Je(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),c=Ri(t,0,a),d=Ri(t,1,a),o=c&&Je(c),s=d&&Je(d),m=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+zt(c).width,r=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+zt(d).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&o.float&&o.float!=="none"){var u=o.float==="left"?"left":"right";return d&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return c&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||m>=i&&n[Jb]==="none"||d&&n[Jb]==="none"&&m+r>i)?"vertical":"horizontal"},_7=function(t,a,n){var i=n?t.left:t.top,c=n?t.right:t.bottom,d=n?t.width:t.height,o=n?a.left:a.top,s=n?a.right:a.bottom,m=n?a.width:a.height;return i===o||c===s||i+d/2===o+m/2},$7=function(t,a){var n;return Ko.some(function(i){var c=i[Gl].options.emptyInsertThreshold;if(!(!c||I0(i))){var d=zt(i),o=t>=d.left-c&&t<=d.right+c,s=a>=d.top-c&&a<=d.bottom+c;if(o&&s)return n=i}}),n},DW=function(t){function a(c,d){return function(o,s,m,r){var u=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(c==null&&(d||u))return!0;if(c==null||c===!1)return!1;if(d&&c==="clone")return c;if(typeof c=="function")return a(c(o,s,m,r),d)(o,s,m,r);var Z=(d?o:s).options.group.name;return c===!0||typeof c=="string"&&c===Z||c.join&&c.indexOf(Z)>-1}}var n={},i=t.group;(!i||ho(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=a(i.pull,!0),n.checkPut=a(i.put),n.revertClone=i.revertClone,t.group=n},UW=function(){!CW&&Ke&&Je(Ke,"display","none")},OW=function(){!CW&&Ke&&Je(Ke,"display","")};vs&&document.addEventListener("click",function(e){if(Bo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Bo=!1,!1},!0);var Yn=function(t){if(Ie){t=t.touches?t.touches[0]:t;var a=$7(t.clientX,t.clientY);if(a){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=a,n.preventDefault=void 0,n.stopPropagation=void 0,a[Gl]._onDragOver(n)}}},q7=function(t){Ie&&Ie.parentNode[Gl]._isOutsideThisEl(t.target)};function De(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Sa({},t),e[Gl]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return JW(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,o){d.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:De.supportPointer!==!1&&"PointerEvent"in window&&!pc,emptyInsertThreshold:5};Gd.initializePlugins(this,e,a);for(var n in a)!(n in t)&&(t[n]=a[n]);DW(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:A7,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?nt(e,"pointerdown",this._onTapStart):(nt(e,"mousedown",this._onTapStart),nt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(e,"dragover",this),nt(e,"dragenter",this)),Ko.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Sa(this,B7())}De.prototype={constructor:De,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(li=null)},_getDirection:function(t,a){return typeof this.options.direction=="function"?this.options.direction.call(this,t,a,Ie):this.options.direction},_onTapStart:function(t){if(t.cancelable){var a=this,n=this.el,i=this.options,c=i.preventOnFilter,d=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(o||t).target,m=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,r=i.filter;if(dD(n),!Ie&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||i.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&pc&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=na(s,i.draggable,n,!1),!(s&&s.animated)&&po!==s)){if(hi=Vl(s),Gc=Vl(s,i.draggable),typeof r=="function"){if(r.call(this,t,s,this)){$t({sortable:a,rootEl:m,name:"filter",targetEl:s,toEl:n,fromEl:n}),il("filter",a,{evt:t}),c&&t.cancelable&&t.preventDefault();return}}else if(r&&(r=r.split(",").some(function(u){if(u=na(m,u.trim(),n,!1),u)return $t({sortable:a,rootEl:u,name:"filter",targetEl:s,fromEl:n,toEl:n}),il("filter",a,{evt:t}),!0}),r)){c&&t.cancelable&&t.preventDefault();return}i.handle&&!na(m,i.handle,n,!1)||this._prepareDragStart(t,o,s)}}},_prepareDragStart:function(t,a,n){var i=this,c=i.el,d=i.options,o=c.ownerDocument,s;if(n&&!Ie&&n.parentNode===c){var m=zt(n);if(bt=c,Ie=n,Gt=Ie.parentNode,Mn=Ie.nextSibling,po=n,Od=d.group,De.dragged=Ie,yn={target:Ie,clientX:(a||t).clientX,clientY:(a||t).clientY},jb=yn.clientX-m.left,Cb=yn.clientY-m.top,this._lastX=(a||t).clientX,this._lastY=(a||t).clientY,Ie.style["will-change"]="all",s=function(){if(il("delayEnded",i,{evt:t}),De.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!fb&&i.nativeDraggable&&(Ie.draggable=!0),i._triggerDragStart(t,a),$t({sortable:i,name:"choose",originalEvent:t}),ul(Ie,d.chosenClass,!0)},d.ignore.split(",").forEach(function(r){vW(Ie,r.trim(),Cm)}),nt(o,"dragover",Yn),nt(o,"mousemove",Yn),nt(o,"touchmove",Yn),nt(o,"mouseup",i._onDrop),nt(o,"touchend",i._onDrop),nt(o,"touchcancel",i._onDrop),fb&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ie.draggable=!0),il("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Wd||ka))){if(De.eventCanceled){this._onDrop();return}nt(o,"mouseup",i._disableDelayedDrag),nt(o,"touchend",i._disableDelayedDrag),nt(o,"touchcancel",i._disableDelayedDrag),nt(o,"mousemove",i._delayedDragTouchMoveHandler),nt(o,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&nt(o,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,d.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var a=t.touches?t.touches[0]:t;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ie&&Cm(Ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;tt(t,"mouseup",this._disableDelayedDrag),tt(t,"touchend",this._disableDelayedDrag),tt(t,"touchcancel",this._disableDelayedDrag),tt(t,"mousemove",this._delayedDragTouchMoveHandler),tt(t,"touchmove",this._delayedDragTouchMoveHandler),tt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,a){a=a||t.pointerType=="touch"&&t,!this.nativeDraggable||a?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):a?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(Ie,"dragend",this),nt(bt,"dragstart",this._onDragStart));try{document.selection?Go(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,a){if(mi=!1,bt&&Ie){il("dragStarted",this,{evt:a}),this.nativeDraggable&&nt(document,"dragover",q7);var n=this.options;!t&&ul(Ie,n.dragClass,!1),ul(Ie,n.ghostClass,!0),De.active=this,t&&this._appendGhost(),$t({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Dl){this._lastX=Dl.clientX,this._lastY=Dl.clientY,UW();for(var t=document.elementFromPoint(Dl.clientX,Dl.clientY),a=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Dl.clientX,Dl.clientY),t!==a);)a=t;if(Ie.parentNode[Gl]._isOutsideThisEl(t),a)do{if(a[Gl]){var n=void 0;if(n=a[Gl]._onDragOver({clientX:Dl.clientX,clientY:Dl.clientY,target:t,rootEl:a}),n&&!this.options.dragoverBubble)break}t=a}while(a=a.parentNode);OW()}},_onTouchMove:function(t){if(yn){var a=this.options,n=a.fallbackTolerance,i=a.fallbackOffset,c=t.touches?t.touches[0]:t,d=Ke&&Xi(Ke,!0),o=Ke&&d&&d.a,s=Ke&&d&&d.d,m=Bd&&Bt&&Fb(Bt),r=(c.clientX-yn.clientX+i.x)/(o||1)+(m?m[0]-jm[0]:0)/(o||1),u=(c.clientY-yn.clientY+i.y)/(s||1)+(m?m[1]-jm[1]:0)/(s||1);if(!De.active&&!mi){if(n&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Ke){d?(d.e+=r-(km||0),d.f+=u-(Fm||0)):d={a:1,b:0,c:0,d:1,e:r,f:u};var Z="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Je(Ke,"webkitTransform",Z),Je(Ke,"mozTransform",Z),Je(Ke,"msTransform",Z),Je(Ke,"transform",Z),km=r,Fm=u,Dl=c}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ke){var t=this.options.fallbackOnBody?document.body:bt,a=zt(Ie,!0,Bd,!0,t),n=this.options;if(Bd){for(Bt=t;Je(Bt,"position")==="static"&&Je(Bt,"transform")==="none"&&Bt!==document;)Bt=Bt.parentNode;Bt!==document.body&&Bt!==document.documentElement?(Bt===document&&(Bt=da()),a.top+=Bt.scrollTop,a.left+=Bt.scrollLeft):Bt=da(),jm=Fb(Bt)}Ke=Ie.cloneNode(!0),ul(Ke,n.ghostClass,!1),ul(Ke,n.fallbackClass,!0),ul(Ke,n.dragClass,!0),Je(Ke,"transition",""),Je(Ke,"transform",""),Je(Ke,"box-sizing","border-box"),Je(Ke,"margin",0),Je(Ke,"top",a.top),Je(Ke,"left",a.left),Je(Ke,"width",a.width),Je(Ke,"height",a.height),Je(Ke,"opacity","0.8"),Je(Ke,"position",Bd?"absolute":"fixed"),Je(Ke,"zIndex","100000"),Je(Ke,"pointerEvents","none"),De.ghost=Ke,t.appendChild(Ke),Je(Ke,"transform-origin",jb/parseInt(Ke.style.width)*100+"% "+Cb/parseInt(Ke.style.height)*100+"%")}},_onDragStart:function(t,a){var n=this,i=t.dataTransfer,c=n.options;if(il("dragStart",this,{evt:t}),De.eventCanceled){this._onDrop();return}il("setupClone",this),De.eventCanceled||(Nt=jW(Ie),Nt.draggable=!1,Nt.style["will-change"]="",this._hideClone(),ul(Nt,this.options.chosenClass,!1),De.clone=Nt),n.cloneId=Go(function(){il("clone",n),!De.eventCanceled&&(n.options.removeCloneOnHide||bt.insertBefore(Nt,Ie),n._hideClone(),$t({sortable:n,name:"clone"}))}),!a&&ul(Ie,c.dragClass,!0),a?(Bo=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tt(document,"mouseup",n._onDrop),tt(document,"touchend",n._onDrop),tt(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",c.setData&&c.setData.call(n,i,Ie)),nt(document,"drop",n),Je(Ie,"transform","translateZ(0)")),mi=!0,n._dragStartId=Go(n._dragStarted.bind(n,a,t)),nt(document,"selectstart",n),sc=!0,pc&&Je(document.body,"user-select","none")},_onDragOver:function(t){var a=this.el,n=t.target,i,c,d,o=this.options,s=o.group,m=De.active,r=Od===s,u=o.sort,Z=jt||m,h,p=this,b=!1;if(eu)return;function y(le,se){il(le,p,ua({evt:t,isOwner:r,axis:h?"vertical":"horizontal",revert:d,dragRect:i,targetRect:c,canSort:u,fromSortable:Z,target:n,completed:G,onMove:function(ae,_){return Kd(bt,a,Ie,i,ae,zt(ae),t,_)},changed:N},se))}function W(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==Z&&Z.captureAnimationState()}function G(le){return y("dragOverCompleted",{insertion:le}),le&&(r?m._hideClone():m._showClone(p),p!==Z&&(ul(Ie,jt?jt.options.ghostClass:m.options.ghostClass,!1),ul(Ie,o.ghostClass,!0)),jt!==p&&p!==De.active?jt=p:p===De.active&&jt&&(jt=null),Z===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==Z&&(Z.animateAll(),Z._ignoreWhileAnimating=null)),(n===Ie&&!Ie.animated||n===a&&!n.animated)&&(li=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(Ie.parentNode[Gl]._isOutsideThisEl(t.target),!le&&Yn(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function N(){Zl=Vl(Ie),Ba=Vl(Ie,o.draggable),$t({sortable:p,name:"change",toEl:a,newIndex:Zl,newDraggableIndex:Ba,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=na(n,o.draggable,a,!0),y("dragOver"),De.eventCanceled)return b;if(Ie.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return G(!1);if(Bo=!1,m&&!o.disabled&&(r?u||(d=Gt!==bt):jt===this||(this.lastPutMode=Od.checkPull(this,m,Ie,t))&&s.checkPut(this,m,Ie,t))){if(h=this._getDirection(t,n)==="vertical",i=zt(Ie),y("dragOverValid"),De.eventCanceled)return b;if(d)return Gt=bt,W(),this._hideClone(),y("revert"),De.eventCanceled||(Mn?bt.insertBefore(Ie,Mn):bt.appendChild(Ie)),G(!0);var L=I0(a,o.draggable);if(!L||aD(t,h,this)&&!L.animated){if(L===Ie)return G(!1);if(L&&a===t.target&&(n=L),n&&(c=zt(n)),Kd(bt,a,Ie,i,n,c,t,!!n)!==!1)return W(),a.appendChild(Ie),Gt=a,N(),G(!0)}else if(L&&lD(t,h,this)){var Y=Ri(a,0,o,!0);if(Y===Ie)return G(!1);if(n=Y,c=zt(n),Kd(bt,a,Ie,i,n,c,t,!1)!==!1)return W(),a.insertBefore(Ie,Y),Gt=a,N(),G(!0)}else if(n.parentNode===a){c=zt(n);var X=0,M,V=Ie.parentNode!==a,z=!_7(Ie.animated&&Ie.toRect||i,n.animated&&n.toRect||c,h),I=h?"top":"left",x=kb(n,"top","top")||kb(Ie,"top","top"),w=x?x.scrollTop:void 0;li!==n&&(M=c[I],yc=!1,Ed=!z&&o.invertSwap||V),X=nD(t,n,c,h,z?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Ed,li===n);var k;if(X!==0){var j=Vl(Ie);do j-=X,k=Gt.children[j];while(k&&(Je(k,"display")==="none"||k===Ke))}if(X===0||k===n)return G(!1);li=n,Nc=X;var H=n.nextElementSibling,J=!1;J=X===1;var D=Kd(bt,a,Ie,i,n,c,t,J);if(D!==!1)return(D===1||D===-1)&&(J=D===1),eu=!0,setTimeout(tD,30),W(),J&&!H?a.appendChild(Ie):n.parentNode.insertBefore(Ie,J?H:n),x&&FW(x,0,w-x.scrollTop),Gt=Ie.parentNode,M!==void 0&&!Ed&&(Wo=Math.abs(M-zt(n)[I])),N(),G(!0)}if(a.contains(Ie))return G(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tt(document,"mousemove",this._onTouchMove),tt(document,"touchmove",this._onTouchMove),tt(document,"pointermove",this._onTouchMove),tt(document,"dragover",Yn),tt(document,"mousemove",Yn),tt(document,"touchmove",Yn)},_offUpEvents:function(){var t=this.el.ownerDocument;tt(t,"mouseup",this._onDrop),tt(t,"touchend",this._onDrop),tt(t,"pointerup",this._onDrop),tt(t,"touchcancel",this._onDrop),tt(document,"selectstart",this)},_onDrop:function(t){var a=this.el,n=this.options;if(Zl=Vl(Ie),Ba=Vl(Ie,n.draggable),il("drop",this,{evt:t}),Gt=Ie&&Ie.parentNode,Zl=Vl(Ie),Ba=Vl(Ie,n.draggable),De.eventCanceled){this._nulling();return}mi=!1,Ed=!1,yc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),tu(this.cloneId),tu(this._dragStartId),this.nativeDraggable&&(tt(document,"drop",this),tt(a,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pc&&Je(document.body,"user-select",""),Je(Ie,"transform",""),t&&(sc&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Ke&&Ke.parentNode&&Ke.parentNode.removeChild(Ke),(bt===Gt||jt&&jt.lastPutMode!=="clone")&&Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ie&&(this.nativeDraggable&&tt(Ie,"dragend",this),Cm(Ie),Ie.style["will-change"]="",sc&&!mi&&ul(Ie,jt?jt.options.ghostClass:this.options.ghostClass,!1),ul(Ie,this.options.chosenClass,!1),$t({sortable:this,name:"unchoose",toEl:Gt,newIndex:null,newDraggableIndex:null,originalEvent:t}),bt!==Gt?(Zl>=0&&($t({rootEl:Gt,name:"add",toEl:Gt,fromEl:bt,originalEvent:t}),$t({sortable:this,name:"remove",toEl:Gt,originalEvent:t}),$t({rootEl:Gt,name:"sort",toEl:Gt,fromEl:bt,originalEvent:t}),$t({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),jt&&jt.save()):Zl!==hi&&Zl>=0&&($t({sortable:this,name:"update",toEl:Gt,originalEvent:t}),$t({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),De.active&&((Zl==null||Zl===-1)&&(Zl=hi,Ba=Gc),$t({sortable:this,name:"end",toEl:Gt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){il("nulling",this),bt=Ie=Gt=Ke=Mn=Nt=po=Ha=yn=Dl=sc=Zl=Ba=hi=Gc=li=Nc=jt=Od=De.dragged=De.ghost=De.clone=De.active=null,Ho.forEach(function(t){t.checked=!0}),Ho.length=km=Fm=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ie&&(this._onDragOver(t),eD(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],a,n=this.el.children,i=0,c=n.length,d=this.options;i<c;i++)a=n[i],na(a,d.draggable,this.el,!1)&&t.push(a.getAttribute(d.dataIdAttr)||cD(a));return t},sort:function(t,a){var n={},i=this.el;this.toArray().forEach(function(c,d){var o=i.children[d];na(o,this.options.draggable,i,!1)&&(n[c]=o)},this),a&&this.captureAnimationState(),t.forEach(function(c){n[c]&&(i.removeChild(n[c]),i.appendChild(n[c]))}),a&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,a){return na(t,a||this.options.draggable,this.el,!1)},option:function(t,a){var n=this.options;if(a===void 0)return n[t];var i=Gd.modifyOption(this,t,a);typeof i<"u"?n[t]=i:n[t]=a,t==="group"&&DW(n)},destroy:function(){il("destroy",this);var t=this.el;t[Gl]=null,tt(t,"mousedown",this._onTapStart),tt(t,"touchstart",this._onTapStart),tt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(tt(t,"dragover",this),tt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ko.splice(Ko.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ha){if(il("hideClone",this),De.eventCanceled)return;Je(Nt,"display","none"),this.options.removeCloneOnHide&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ha=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ha){if(il("showClone",this),De.eventCanceled)return;Ie.parentNode==bt&&!this.options.group.revertClone?bt.insertBefore(Nt,Ie):Mn?bt.insertBefore(Nt,Mn):bt.appendChild(Nt),this.options.group.revertClone&&this.animate(Ie,Nt),Je(Nt,"display",""),Ha=!1}}};function eD(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Kd(e,t,a,n,i,c,d,o){var s,m=e[Gl],r=m.options.onMove,u;return window.CustomEvent&&!ka&&!Wd?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=a,s.draggedRect=n,s.related=i||t,s.relatedRect=c||zt(t),s.willInsertAfter=o,s.originalEvent=d,e.dispatchEvent(s),r&&(u=r.call(m,s,d)),u}function Cm(e){e.draggable=!1}function tD(){eu=!1}function lD(e,t,a){var n=zt(Ri(a.el,0,a.options,!0)),i=10;return t?e.clientX<n.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-i||e.clientY<n.bottom&&e.clientX<n.left}function aD(e,t,a){var n=zt(I0(a.el,a.options.draggable)),i=10;return t?e.clientX>n.right+i||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+i}function nD(e,t,a,n,i,c,d,o){var s=n?e.clientY:e.clientX,m=n?a.height:a.width,r=n?a.top:a.left,u=n?a.bottom:a.right,Z=!1;if(!d){if(o&&Wo<m*i){if(!yc&&(Nc===1?s>r+m*c/2:s<u-m*c/2)&&(yc=!0),yc)Z=!0;else if(Nc===1?s<r+Wo:s>u-Wo)return-Nc}else if(s>r+m*(1-i)/2&&s<u-m*(1-i)/2)return iD(t)}return Z=Z||d,Z&&(s<r+m*c/2||s>u-m*c/2)?s>r+m/2?1:-1:0}function iD(e){return Vl(Ie)<Vl(e)?1:-1}function cD(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,a=t.length,n=0;a--;)n+=t.charCodeAt(a);return n.toString(36)}function dD(e){Ho.length=0;for(var t=e.getElementsByTagName("input"),a=t.length;a--;){var n=t[a];n.checked&&Ho.push(n)}}function Go(e){return setTimeout(e,0)}function tu(e){return clearTimeout(e)}vs&&nt(document,"touchmove",function(e){(De.active||mi)&&e.cancelable&&e.preventDefault()});De.utils={on:nt,off:tt,css:Je,find:vW,is:function(t,a){return!!na(t,a,t,!1)},extend:O7,throttle:kW,closest:na,toggleClass:ul,clone:jW,index:Vl,nextTick:Go,cancelNextTick:tu,detectDirection:JW,getChild:Ri};De.get=function(e){return e[Gl]};De.mount=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(De.utils=ua(ua({},De.utils),n.utils)),Gd.mount(n)})};De.create=function(e,t){return new De(e,t)};De.version=C7;var Mt=[],mc,lu,au=!1,Jm,Dm,Po,rc;function oD(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(a){var n=a.originalEvent;this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(a){var n=a.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tt(document,"dragover",this._handleAutoScroll):(tt(document,"pointermove",this._handleFallbackAutoScroll),tt(document,"touchmove",this._handleFallbackAutoScroll),tt(document,"mousemove",this._handleFallbackAutoScroll)),Db(),No(),E7()},nulling:function(){Po=lu=mc=au=rc=Jm=Dm=null,Mt.length=0},_handleFallbackAutoScroll:function(a){this._handleAutoScroll(a,!0)},_handleAutoScroll:function(a,n){var i=this,c=(a.touches?a.touches[0]:a).clientX,d=(a.touches?a.touches[0]:a).clientY,o=document.elementFromPoint(c,d);if(Po=a,n||this.options.forceAutoScrollFallback||Wd||ka||pc){Um(a,this.options,o,n);var s=Qa(o,!0);au&&(!rc||c!==Jm||d!==Dm)&&(rc&&Db(),rc=setInterval(function(){var m=Qa(document.elementFromPoint(c,d),!0);m!==s&&(s=m,No()),Um(a,i.options,m,n)},10),Jm=c,Dm=d)}else{if(!this.options.bubbleScroll||Qa(o,!0)===da()){No();return}Um(a,this.options,Qa(o,!1),!1)}}},Sa(e,{pluginName:"scroll",initializeByDefault:!0})}function No(){Mt.forEach(function(e){clearInterval(e.pid)}),Mt=[]}function Db(){clearInterval(rc)}var Um=kW(function(e,t,a,n){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,c=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,o=t.scrollSpeed,s=da(),m=!1,r;lu!==a&&(lu=a,No(),mc=t.scroll,r=t.scrollFn,mc===!0&&(mc=Qa(a,!0)));var u=0,Z=mc;do{var h=Z,p=zt(h),b=p.top,y=p.bottom,W=p.left,G=p.right,N=p.width,L=p.height,Y=void 0,X=void 0,M=h.scrollWidth,V=h.scrollHeight,z=Je(h),I=h.scrollLeft,x=h.scrollTop;h===s?(Y=N<M&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),X=L<V&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Y=N<M&&(z.overflowX==="auto"||z.overflowX==="scroll"),X=L<V&&(z.overflowY==="auto"||z.overflowY==="scroll"));var w=Y&&(Math.abs(G-i)<=d&&I+N<M)-(Math.abs(W-i)<=d&&!!I),k=X&&(Math.abs(y-c)<=d&&x+L<V)-(Math.abs(b-c)<=d&&!!x);if(!Mt[u])for(var j=0;j<=u;j++)Mt[j]||(Mt[j]={});(Mt[u].vx!=w||Mt[u].vy!=k||Mt[u].el!==h)&&(Mt[u].el=h,Mt[u].vx=w,Mt[u].vy=k,clearInterval(Mt[u].pid),(w!=0||k!=0)&&(m=!0,Mt[u].pid=setInterval((function(){n&&this.layer===0&&De.active._onTouchMove(Po);var H=Mt[this.layer].vy?Mt[this.layer].vy*o:0,J=Mt[this.layer].vx?Mt[this.layer].vx*o:0;typeof r=="function"&&r.call(De.dragged.parentNode[Gl],J,H,e,Po,Mt[this.layer].el)!=="continue"||FW(Mt[this.layer].el,J,H)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&Z!==s&&(Z=Qa(Z,!1)));au=m}},30),EW=function(t){var a=t.originalEvent,n=t.putSortable,i=t.dragEl,c=t.activeSortable,d=t.dispatchSortableEvent,o=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(a){var m=n||c;o();var r=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,u=document.elementFromPoint(r.clientX,r.clientY);s(),m&&!m.el.contains(u)&&(d("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function x0(){}x0.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var a=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Ri(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(a,i):this.sortable.el.appendChild(a),this.sortable.animateAll(),n&&n.animateAll()},drop:EW};Sa(x0,{pluginName:"revertOnSpill"});function g0(){}g0.prototype={onSpill:function(t){var a=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),a.parentNode&&a.parentNode.removeChild(a),n.animateAll()},drop:EW};Sa(g0,{pluginName:"removeOnSpill"});De.mount(new oD);De.mount(g0,x0);function sD(e,t){return Object.values(e).indexOf(t)}function mD(e,t,a,n){if(!e)return[];const i=Object.values(e),c=t.length-n;return[...t].map((d,o)=>o>=c?i.length:i.indexOf(d))}function rD(e){return["transition-group","TransitionGroup"].includes(e)}function Ub(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?rD(t.name):!1}function uD(e,t){return t?{...t.props,...t.attrs}:e}var nu=["Start","Add","Remove","Update","End"],iu=["Choose","Unchoose","Sort","Filter","Clone"],ZD=["Move",...nu,...iu].map(e=>"on"+e),Om=null,bD=(0,l.defineComponent)({name:"VueDraggableNext",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},emits:["update:modelValue","move","change",...nu.map(e=>e.toLowerCase()),...iu.map(e=>e.toLowerCase())],setup(e,{emit:t,slots:a,attrs:n}){const i=(0,l.ref)(!1),c=(0,l.ref)(!1),d=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)([]),m=(0,l.ref)(null),r=(0,l.ref)(null),u=(0,l.computed)(()=>e.list?e.list:e.modelValue),Z=(0,l.getCurrentInstance)();function h(){return e.component?(0,l.resolveComponent)(e.component):e.tag}function p(g){if(r.value)for(const T in g){const f=wb(T);ZD.indexOf(f)===-1&&r.value.option(f,g[T])}}function b(){return Z?.proxy?.$el.children||[]}async function y(){await(0,l.nextTick)(),s.value=mD(b(),Z?.proxy?.$el.children||[],i.value,o.value)}function W(g){const T=sD(b()||[],g);return T===-1?null:{index:T,element:u.value?u.value[T]:null}}function G(g){(0,l.nextTick)(()=>t("change",g))}function N(g){if(e.list){g(e.list);return}const T=[...e.modelValue||[]];g(T),t("update:modelValue",T)}function L(...g){N(f=>f.splice(...g))}function Y(g,T){N(S=>S.splice(T,0,S.splice(g,1)[0]))}function X(g){const T=s.value,f=T.length;return g>f-1?f:T[g]}function M(){return a.default&&a.default()[0]?.component?.proxy||null}function V(g){if(!e.noTransitionOnDrag||!i.value)return;const T=b();T[g]&&(T[g].data=null);const f=M();f&&(f.children=[],f.kept=void 0)}function z(g){y(),m.value=W(g.item),m.value&&(g.item._underlying_vm_=e.clone(m.value.element),Om=g.item)}function I(g){const T=g.item._underlying_vm_;if(T===void 0)return;Sm(g.item);const f=X(g.newIndex);L(f,0,T),y(),G({added:{element:T,newIndex:f}})}function x(g){if(Rb(Z?.proxy?.$el,g.item,g.oldIndex),g.pullMode==="clone"){Sm(g.clone);return}if(!m.value)return;const T=m.value.index;L(T,1),V(T),G({removed:{element:m.value.element,oldIndex:T}})}function w(g){Sm(g.item),Rb(g.from,g.item,g.oldIndex);const T=m.value?.index,f=X(g.newIndex);Y(T,f),G({moved:{element:m.value?.element,oldIndex:T,newIndex:f}})}function k(g,T){Object.prototype.hasOwnProperty.call(g,T)&&(g[T]+=d.value)}function j(g){return g.__draggable_component__}function H({to:g,related:T}){const f=j(g);if(!f)return{component:f};const S=f.realList,E={list:S,component:f};if(g!==T&&S&&f.getUnderlyingVm){const P=f.getUnderlyingVm(T);if(P)return Object.assign(P,E)}return E}function J(g,T){const f=[...T.to.children].filter(P=>P.style.display!=="none");if(f.length===0)return 0;const S=f.indexOf(T.related),E=g.component.getVmIndex(S);return f.indexOf(Om)!==-1||!T.willInsertAfter?E:E+1}const D=()=>{const g={};nu.forEach(E=>{g["on"+E]=se(E)}),iu.forEach(E=>{g["on"+E]=le.bind(null,E)});const T=Object.keys(n).reduce((E,P)=>(E[wb(P)]=n[P],E),{}),f=Object.assign({},T,g,{onMove:(E,P)=>q(E,P)});"draggable"in f||(f.draggable=">*");const S=Z?.proxy?.$el.nodeType===1?Z.proxy.$el:Z?.proxy?.$el.parentElement||null;S&&(r.value=new De(S,f),S.__draggable_component__=Z?.proxy,y())};function le(g,T){(0,l.nextTick)(()=>t(g.toLowerCase(),T))}function se(g){return T=>{if(u.value!==null){const f=_["onDrag"+g];f&&f(T)}le(g,T)}}function q(g,T){const f=e.move;if(!f||!u.value)return!0;const S=H(g),E=m.value,P=J(S,g);return E&&Object.assign(E,{futureIndex:P}),f(Object.assign({},g,{relatedContext:S,draggedContext:E}),T)}function ae(){y(),Om=null}const _={onDragStart:z,onDragAdd:I,onDragRemove:x,onDragUpdate:w,onDragMove:q,onDragEnd:ae};return(0,l.onMounted)(()=>{D()}),e.list!==null&&e.modelValue!==null&&S7.error("list props are mutually exclusive! Please set one."),{getTag:h,realList:u,visibleIndexes:s,noneFunctionalComponentMode:c,headerOffset:d,footerOffset:o,transitionMode:i,computeIndexes:y,updateOptions:p,getChildrenNodes:b,getUnderlyingVm:W,emitChanges:G,alterList:N,spliceList:L,updatePosition:Y,getVmIndex:X,getComponent:M,resetTransitionData:V,onDragStart:z,onDragAdd:I,onDragRemove:x,onDragUpdate:w,updateProperty:k,onDragMove:q,onDragEnd:ae,mounted:D,context:m,sortableInstance:r,getRelatedContextFromMoveEvent:H,getTargetedComponent:j,computeFutureIndex:J}},render(){const e=this.getTag(),t=uD(this.$attrs,this.componentData);if(typeof e=="string"){const n=this.$slots.default&&typeof this.$slots.default=="function"?this.$slots.default():null;return n?(this.transitionMode=Ub(n),(0,l.h)(e,t,n)):(0,l.h)(e,t,[])}const a=this.$slots.default?{default:this.$slots.default}:{};return this.$slots.default&&(this.transitionMode=Ub((typeof this.$slots.default=="function"?this.$slots.default():null)||[])),(0,l.h)(e,t,a)}}),hD=["title"],pD={class:"table-side-scroll"},WD={class:"table-header"},GD={class:"table-reorder"},ND={class:"table-action"},yD=(0,l.defineComponent)({__name:"TableField",props:{description:{default:""},meta:{},fieldname:{},bagelApp:{default:void 0},modelValue:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t;let i,c;const d=(0,l.ref)(a.modelValue),o=a.meta.doc_meta.fields.find(b=>b.fieldname===a.fieldname),s=a.meta.links.find(b=>b.id===o?.options);function m(b,y,W){const G=[...a.modelValue];G[y][W]=b,n("update:modelValue",G)}function r(){const b=[...a.modelValue],y={idx:b.length};s?.fields.forEach(W=>{W.default&&(W.fieldtype==="Check"?y[W.fieldname]=Number.parseInt(W.default):y[W.fieldname]=W.default)}),b.push(y),n("update:modelValue",b)}function u(b){const y=[...a.modelValue];y.splice(b,1),n("update:modelValue",y)}function Z(){d.value.forEach((b,y)=>{b.idx=y+1}),n("update:modelValue",d.value)}const{shellClass:h,shellStyle:p}=Xt(a);return(0,l.onMounted)(()=>{i=a.bagelApp||c}),(b,y)=>{const W=(0,l.resolveComponent)("BagelInput");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"table-field-wrap",title:e.description},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["bagel-input",(0,l.unref)(h)]),style:(0,l.normalizeStyle)((0,l.unref)(p))},[(0,l.createElementVNode)("label",null,(0,l.toDisplayString)((0,l.unref)(o)?.label),1)],6),(0,l.createElementVNode)("div",pD,[(0,l.createElementVNode)("div",WD,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(s)?.fields,G=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:`${G.fieldname}header`,class:(0,l.normalizeClass)(["header-col",(0,l.unref)(yu)(G.fieldtype,"pascal")])},(0,l.toDisplayString)(G.label),3))),128))]),(0,l.createVNode)((0,l.unref)(bD),{modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=G=>d.value=G),animation:"150",handle:".table-reorder",group:"mainGroup",easing:"cubic-bezier(1, 0, 0, 1)","ghost-class":"ghost",onEnd:Z},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(l.TransitionGroup,null,{default:(0,l.withCtx)(()=>[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.modelValue,(G,N)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:G.id,class:"flex table-row"},[(0,l.createElementVNode)("div",GD,[(0,l.createVNode)((0,l.unref)(Ve),{icon:"more_vert"})]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(s)?.fields,L=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:`${L.fieldname}${G.id}`,class:(0,l.normalizeClass)(["table-cell",(0,l.unref)(yu)(L.fieldtype,"pascal")])},[(0,l.createVNode)(W,{"no-label":"","field-meta":L,"bagel-app":(0,l.unref)(i),"model-value":G[L.fieldname],"onUpdate:modelValue":Y=>m(Y,N,L.fieldname)},null,8,["field-meta","bagel-app","model-value","onUpdate:modelValue"])],2))),128)),(0,l.createElementVNode)("div",ND,[(0,l.createVNode)((0,l.unref)(Ve),{icon:"delete",onClick:L=>u(N)},null,8,["onClick"])])]))),128))]),_:1})]),_:1},8,["modelValue"])]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"add",color:"light",onClick:r},{default:(0,l.withCtx)(()=>[...y[1]||(y[1]=[(0,l.createTextVNode)(" New ",-1)])]),_:1})],8,hD)}}}),YD=Te(yD,[["__scopeId","data-v-b9d0ba27"]]),BW={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|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])|[34]\\d\\d)|91(?:(?:[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}|(?: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])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|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]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\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{2})(\\d{4})","$1 $2 $3",["2"],"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"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{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",["6|7[245]"],"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-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\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",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\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]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?: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","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|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-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\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",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|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",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function KW(e,t){var a=Array.prototype.slice.call(t);return a.push(BW),e.apply(this,a)}function Ob(e,t){e=e.split("-"),t=t.split("-");for(var a=e[0].split("."),n=t[0].split("."),i=0;i<3;i++){var c=Number(a[i]),d=Number(n[i]);if(c>d)return 1;if(d>c)return-1;if(!isNaN(c)&&isNaN(d))return 1;if(isNaN(c)&&!isNaN(d))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var LD={}.constructor;function wn(e){return e!=null&&e.constructor===LD}var XD=/^\d+$/;function MD(e){return XD.test(e)}function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eb(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VD(n.key),n)}}function Fs(e,t,a){return t&&Eb(e.prototype,t),a&&Eb(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function VD(e){var t=TD(e,"string");return Si(t)=="symbol"?t:t+""}function TD(e,t){if(Si(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ID="1.2.0",xD="1.7.35",Bb=" ext. ",Ut=(function(){function e(t){ks(this,e),HW(t),this.metadata=t,QW.call(this,t)}return Fs(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(a){return a!=="001"})}},{key:"getCountryMetadata",value:function(a){return this.metadata.countries[a]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(a){return this.getCountryMetadata(a)!==void 0}},{key:"hasCallingCode",value:function(a){if(this.getCountryCodesForCallingCode(a))return!0;if(this.nonGeographic()){if(this.nonGeographic()[a])return!0}else{var n=this.countryCallingCodes()[a];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(a){return this.nonGeographic()?!!this.nonGeographic()[a]:!this.getCountryCodesForCallingCode(a)}},{key:"country",value:function(a){return this.selectNumberingPlan(a)}},{key:"selectNumberingPlan",value:function(a,n){var i,c;if(a&&(MD(a)?c=a:i=a),n&&(c=n),i&&i!=="001"){var d=this.getCountryMetadata(i);if(!d)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new Kb(d,this)}else if(c){if(!this.hasCallingCode(c))throw new Error("Unknown calling code: ".concat(c));this.numberingPlan=new Kb(this.getNumberingPlanMetadata(c),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(a){var n=this.countryCallingCodes()[a];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(a){var n=this.getCountryCodesForCallingCode(a);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(a){var n=this.getCountryCodeForCallingCode(a);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var i=this.nonGeographic()[a];if(i)return i}else{var c=this.countryCallingCodes()[a];if(c&&c.length===1&&c[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(a){return this.numberingPlan.type(a)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(a){return this.selectNumberingPlan(a)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Kb=(function(){function e(t,a){ks(this,e),this.globalMetadataObject=a,this.metadata=t,QW.call(this,a.metadata)}return Fs(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(a){return a[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var a=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(n){return new gD(n,a)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(a){return a[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(a){if(this.hasTypes()&&Hb(this.types(),a))return new wD(Hb(this.types(),a),this)}},{key:"ext",value:function(){return this.v1||this.v2?Bb:this.metadata[13]||Bb}}])})(),gD=(function(){function e(t,a){ks(this,e),this._format=t,this.metadata=a}return Fs(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!zD.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),zD=/^\(?\$1\)?$/,wD=(function(){function e(t,a){ks(this,e),this.type=t,this.metadata=a}return Fs(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Hb(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function HW(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!wn(e)||!wn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(wn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+RD(e)+": "+e,"."))}var RD=function(t){return Si(t)};function PW(e,t){var a=new Ut(t);if(a.hasCountry(e))return a.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function SD(e,t){return t.countries.hasOwnProperty(e)}function QW(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Ob(t,ID)===-1?this.v2=!0:Ob(t,xD)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function fD(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=vD(e))||t&&e&&typeof e.length=="number"){a&&(e=a);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
551
|
+
`;F.textContent=U}(0,l.watch)([ae,g,T,b,i],()=>{M.value&&sm()},{flush:"post"}),(0,l.watch)(r,R=>{const F=Y.state.doc;if(!F?.body){Y.state.content=R;return}if(R!==dm(F)){if(Co(Y.state,Y.state.content),R.trim())F.body.innerHTML=R,lb(F.body),tb(F.body);else if(n.placeholder){const A=F.createElement("p");A.className="placeholder",A.textContent=n.placeholder,F.body.replaceChildren(A)}else{const A=Za();F.body.innerHTML=`<p dir="${A}"><br></p>`}tm(),Pn(F),Y.state.content=F.body.innerHTML}});const x2=(0,l.computed)(()=>n.splitViewFormat!==!1),g2=(0,l.computed)({get:()=>{Y.state.content;const R=Y.state.doc?dm(Y.state.doc):Y.state.content;return x2.value?M4(R):R},set:R=>{const F=x2.value?k5(R):R,A=Y.state.doc;if(!A?.body){Y.state.content=F;return}Co(Y.state,Y.state.content),A.body.innerHTML=F,Pn(A),Y.state.content=A.body.innerHTML}});(0,l.watch)(()=>Y.state.content,()=>{d("update:modelValue",dm(Y.state.doc??null))}),(0,l.watch)(H,R=>{R&&d("limit-exceeded",{characters:x.value,words:w.value,maxLength:n.maxLength,maxWords:n.maxWords})}),(0,l.watch)(()=>Q.value.alignment,R=>{Zt?.existingTable&&(im(Zt.existingTable,R),Y.state.doc&&ct(Y.state.doc))});function z2(){ge.value=!1}(0,l.onMounted)(()=>{typeof window<"u"&&window.addEventListener("click",z2)}),(0,l.onBeforeUnmount)(()=>{typeof window<"u"&&window.removeEventListener("click",z2)}),t({editor:Y,commands:V});const w2=(0,l.computed)({get:()=>B.value.src,set:R=>{!R||B.value.src===R||(B.value.src=hl(R)??R)}});return(R,F)=>{const A=(0,l.resolveDirective)("tooltip");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createElementVNode)("div",(0,l.mergeProps)({class:["bagel-input rich-text-light-theme",[(0,l.unref)(o),{"has-value":u.value,"rich-text-full-height":e.fullHeight}]],style:(0,l.unref)(s)},(0,l.unref)(N)),[e.label?((0,l.openBlock)(),(0,l.createElementBlock)("label",KJ,(0,l.toDisplayString)(e.label),1)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["rounded",[{"rich-text-editor pt-05 px-05 pb-075":!e.basic,"rich-text-editor--basic":e.basic,"fullscreen-mode":(0,l.unref)(Y).state.isFullscreen,"full-height":e.fullHeight&&!(0,l.unref)(Y).state.isFullscreen,"rich-text-page":i.value&&!(0,l.unref)(Y).state.isFullscreen}]])},[(0,l.unref)(Y).state.hasInit&&S.value?((0,l.openBlock)(),(0,l.createBlock)(pJ,{key:0,config:P.value,selectedStyles:z.value,"hide-images":e.hideImages,"hide-videos":e.hideVideos,"hide-embeds":e.hideEmbed,"hide-tables":e.hideTables,"hide-alignment":e.hideAlignment,"hide-directions":e.hideDirections,"hide-h5-h6":e.hideH5H6,hide:O.value,"document-colors":W.value,onAction:(0,l.unref)(V).execute},{end:(0,l.withCtx)(()=>[(0,l.renderSlot)(R.$slots,"toolbar-end",{api:se},()=>[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(p.value,U=>(0,l.withDirectives)(((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:U.name,icon:U.icon,value:U.value,"aria-label":U.label,class:(0,l.normalizeClass)([U.class,{active:z.value.has(U.name)}]),"aria-pressed":z.value.has(U.name),thin:"",flat:"",tabindex:"-1",onMousedown:F[0]||(F[0]=(0,l.withModifiers)(()=>{},["prevent"])),onClick:ye=>U.action(se)},null,8,["icon","value","aria-label","class","aria-pressed","onClick"])),[[A,U.label]])),128))],!0)]),_:3},8,["config","selectedStyles","hide-images","hide-videos","hide-embeds","hide-tables","hide-alignment","hide-directions","hide-h5-h6","hide","document-colors","onAction"])):(0,l.createCommentVNode)("",!0),J.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,class:(0,l.normalizeClass)(["flex space-between txt10 pb-025",H.value?"color-red":"color-gray"]),role:"status","aria-live":"polite"},[(0,l.createElementVNode)("span",null,[(0,l.createTextVNode)((0,l.toDisplayString)(x.value),1),e.maxLength?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)(" / "+(0,l.toDisplayString)(e.maxLength),1)],64)):(0,l.createCommentVNode)("",!0),F[66]||(F[66]=(0,l.createTextVNode)(" characters",-1))]),(0,l.createElementVNode)("span",null,[(0,l.createTextVNode)((0,l.toDisplayString)(w.value),1),e.maxWords?((0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,{key:0},[(0,l.createTextVNode)(" / "+(0,l.toDisplayString)(e.maxWords),1)],64)):(0,l.createCommentVNode)("",!0),F[67]||(F[67]=(0,l.createTextVNode)(" words",-1))]),(0,l.createElementVNode)("span",HJ,(0,l.toDisplayString)(D.value),1)],2)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["editor-container",{"split-view":(0,l.unref)(Y).state.isSplitView}])},[(0,l.createElementVNode)("div",{class:"content-area radius-05",style:(0,l.normalizeStyle)({height:(0,l.unref)(Y).state.isFullscreen?"calc(100vh - 4rem)":I2.value})},[(0,l.createElementVNode)("iframe",{id:"rich-text-iframe",ref_key:"iframe",ref:L,class:(0,l.normalizeClass)(["editableContent",{"editor-ready":M.value}]),title:"Editor",srcdoc:"",sandbox:"allow-same-origin allow-forms allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation",onLoad:Ny},null,34)],4),(0,l.unref)(Y).state.isSplitView?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(r0),{key:0,modelValue:g2.value,"onUpdate:modelValue":F[1]||(F[1]=U=>g2.value=U),language:"html",autodetect:!1,wrap:"",height:(0,l.unref)(Y).state.isFullscreen?"calc(100vh - 4rem)":I2.value},null,8,["modelValue","height"])):(0,l.createCommentVNode)("",!0)],2),e.debug?((0,l.openBlock)(),(0,l.createElementBlock)("div",PJ,[F[72]||(F[72]=(0,l.createElementVNode)("p",{class:"txt12 txt-gray mb-0 p-0"}," Debug ",-1)),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"visibility",onClick:p2},{default:(0,l.withCtx)(()=>[...F[68]||(F[68]=[(0,l.createTextVNode)(" Show Content ",-1)])]),_:1}),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"delete",onClick:om.value?.clearSession},{default:(0,l.withCtx)(()=>[...F[69]||(F[69]=[(0,l.createTextVNode)(" Clear Session ",-1)])]),_:1},8,["onClick"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"download",onClick:om.value?.downloadSession},{default:(0,l.withCtx)(()=>[...F[70]||(F[70]=[(0,l.createTextVNode)(" Download Log ",-1)])]),_:1},8,["onClick"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",color:"gray",icon:"content_copy",onClick:F[2]||(F[2]=U=>(0,l.unref)(BG)(om.value?.exportDebugWithPrompt()||""))},{default:(0,l.withCtx)(()=>[...F[71]||(F[71]=[(0,l.createTextVNode)(" Copy Log ",-1)])]),_:1})])):(0,l.createCommentVNode)("",!0)],2),we.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:1,class:"inline-toolbar",style:(0,l.normalizeStyle)({position:"fixed",top:`${je.value.top}px`,left:`${je.value.left}px`,zIndex:99})},[(0,l.createElementVNode)("div",QJ,[(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_bold",class:(0,l.normalizeClass)({active:(0,l.unref)(Y).state.selectedStyles.has("bold")}),onClick:F[3]||(F[3]=U=>Hi("bold"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_italic",class:(0,l.normalizeClass)({active:(0,l.unref)(Y).state.selectedStyles.has("italic")}),onClick:F[4]||(F[4]=U=>Hi("italic"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"format_underlined",class:(0,l.normalizeClass)({active:z.value.has("underline")}),onClick:F[5]||(F[5]=U=>Hi("underline"))},null,8,["class"]),(0,l.createVNode)((0,l.unref)(vt),{vertical:"",size:"1.25rem",class:"mx-0125"}),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"add_link",onClick:F[6]||(F[6]=U=>Hi("link"))}),z.value.has("link")?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,thin:"",flat:"",icon:"link_off","aria-label":"Remove link",title:"Remove link",onClick:F[7]||(F[7]=U=>Hi("unlink"))})):(0,l.createCommentVNode)("",!0)])],4)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(u5),{shown:ge.value,"onUpdate:shown":F[8]||(F[8]=U=>ge.value=U),"anchor-point":Le.value,title:"Table Actions",items:hy.value,"popup-class":"rich-text-light-theme"},null,8,["shown","anchor-point","items"])],16),(0,l.createVNode)((0,l.unref)(ia),{open:ne.value,title:lm()?"Edit Link":"Add Link",width:"s","onUpdate:open":F[13]||(F[13]=U=>ne.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[12]||(F[12]=U=>ne.value=!1)}),lm()?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Remove Link",flat:"",thin:"",icon:"link_off",color:"red",onClick:HN})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:lm()?"Update Link":"Add Link",disabled:!am(ee.value.url),onClick:G2},null,8,["value","disabled"])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",AJ,[(0,l.createVNode)(Pe,{modelValue:ee.value.url,"onUpdate:modelValue":F[9]||(F[9]=U=>ee.value.url=U),label:"URL",type:"url",placeholder:"https://example.com",onKeydown:(0,l.withKeys)(G2,["enter"])},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(de),{icon:"open_in_new",class:"mb-05 radius-1",flat:"",disabled:!am(ee.value.url),onClick:PN},null,8,["disabled"])]),(0,l.createVNode)(Pe,{modelValue:ee.value.title,"onUpdate:modelValue":F[10]||(F[10]=U=>ee.value.title=U),label:"Title",placeholder:"Optional link title"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:ee.value.openInNewTab,"onUpdate:modelValue":F[11]||(F[11]=U=>ee.value.openInNewTab=U),label:"Open in new tab",type:"checkbox",class:"mb-2 mt-05"},null,8,["modelValue"])]),_:1},8,["open","title"]),me.value?((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:0,class:"editor-tooltip",style:(0,l.normalizeStyle)({left:`${pe.value.x}px`,top:`${pe.value.y}px`})},(0,l.toDisplayString)(pe.value.message),5)):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(ia),{open:K.value,title:(0,l.unref)(v)?.existingImage?"Edit Image":"Insert Image",width:"l","onUpdate:open":F[26]||(F[26]=U=>K.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",t7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[25]||(F[25]=U=>K.value=!1)}),(0,l.unref)(v)?.existingImage?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Image",color:"red",flat:"",thin:"",icon:"delete",onClick:ny})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{class:"ms-auto",value:(0,l.unref)(v)?.existingImage?"Save Changes":"Insert Image",disabled:!B.value.src,onClick:nm},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",_J,[(0,l.createElementVNode)("div",null,[(0,l.createVNode)(Fc,{modelValue:w2.value,"onUpdate:modelValue":F[14]||(F[14]=U=>w2.value=U),label:"Image",type:"image",accept:"image/*",upload:e.uploadImage,onAddFileStart:F[15]||(F[15]=U=>$.value=""),onUploadError:QN,onKeydown:(0,l.withKeys)(nm,["enter"])},null,8,["modelValue","upload"]),$.value?((0,l.openBlock)(),(0,l.createElementBlock)("p",$J,(0,l.toDisplayString)($.value),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",qJ,[(0,l.createVNode)(Pe,{modelValue:B.value.src,"onUpdate:modelValue":F[16]||(F[16]=U=>B.value.src=U),label:"Image URL",type:"url",placeholder:"https://example.com/image.jpg",onKeydown:(0,l.withKeys)(nm,["enter"])},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.alt,"onUpdate:modelValue":F[17]||(F[17]=U=>B.value.alt=U),label:"Alt Text",placeholder:"Describe the image"},null,8,["modelValue"]),(0,l.createElementVNode)("div",e7,[(0,l.createVNode)(Pe,{modelValue:B.value.width,"onUpdate:modelValue":F[18]||(F[18]=U=>B.value.width=U),label:"Width",placeholder:"100% or 500px or auto",help:"Examples: 100%, 500px, auto"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.height,"onUpdate:modelValue":F[19]||(F[19]=U=>B.value.height=U),label:"Height",placeholder:"auto or 300px",help:"Examples: auto, 300px"},null,8,["modelValue"])]),(0,l.createVNode)(bi,{modelValue:B.value.align,"onUpdate:modelValue":F[20]||(F[20]=U=>B.value.align=U),label:"Alignment",options:[{value:"full",label:"Full width (default)",icon:"width_full"},{value:"start",label:"Float to start (text wraps)",icon:"align_horizontal_left"},{value:"end",label:"Float to end (text wraps)",icon:"align_horizontal_right"}],"icon-only":""},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.credit,"onUpdate:modelValue":F[21]||(F[21]=U=>B.value.credit=U),label:"Photo Credit",placeholder:"Photographer name (optional)"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:B.value.link,"onUpdate:modelValue":F[22]||(F[22]=U=>B.value.link=U),label:"Link URL",type:"url",placeholder:"https://example.com (optional)",help:"Make the image clickable by linking it to a URL"},null,8,["modelValue"]),B.value.link?((0,l.openBlock)(),(0,l.createBlock)(Ht,{key:0,modelValue:B.value.linkNewTab,"onUpdate:modelValue":F[23]||(F[23]=U=>B.value.linkNewTab=U),label:"Open link in new tab"},null,8,["modelValue"])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ht,{modelValue:B.value.figcaption,"onUpdate:modelValue":F[24]||(F[24]=U=>B.value.figcaption=U),label:"Show alt text as caption",help:"Photo credit will always be shown if provided"},null,8,["modelValue"])])])]),_:1},8,["open","title"]),(0,l.createVNode)((0,l.unref)(ia),{open:C.value,title:(0,l.unref)(be)?.existingEmbed?"Edit Embed":"Insert Embed",width:"m","onUpdate:open":F[32]||(F[32]=U=>C.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",a7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[31]||(F[31]=U=>C.value=!1)}),(0,l.unref)(be)?.existingEmbed?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Embed",color:"red",flat:"",thin:"",icon:"delete",onClick:iy})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(be)?.existingEmbed?"Save Changes":"Insert Embed",disabled:!ce.value.src,class:"ms-auto",onClick:Y2},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createVNode)(Pe,{modelValue:ce.value.src,"onUpdate:modelValue":F[27]||(F[27]=U=>ce.value.src=U),label:"Embed URL or Code",type:"url",placeholder:"YouTube URL, embed URL, or paste iframe code",onKeydown:(0,l.withKeys)(Y2,["enter"])},null,8,["modelValue"]),(0,l.createElementVNode)("div",l7,[(0,l.createVNode)(Pe,{modelValue:ce.value.width,"onUpdate:modelValue":F[28]||(F[28]=U=>ce.value.width=U),label:"Width",placeholder:"560"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:ce.value.height,"onUpdate:modelValue":F[29]||(F[29]=U=>ce.value.height=U),label:"Height",placeholder:"315"},null,8,["modelValue"])]),(0,l.createVNode)(Pe,{modelValue:ce.value.alt,"onUpdate:modelValue":F[30]||(F[30]=U=>ce.value.alt=U),label:"Caption",placeholder:"Enter caption (optional)"},null,8,["modelValue"])]),_:1},8,["open","title"]),(0,l.createVNode)((0,l.unref)(ia),{open:Oe.value,title:(0,l.unref)(ue)?.existingVideo?"Edit Video":"Insert Video",width:"m","onUpdate:open":F[46]||(F[46]=U=>Oe.value=U)},{footer:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",s7,[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"","full-width-mobile":"",onClick:F[45]||(F[45]=U=>Oe.value=!1)}),(0,l.unref)(ue)?.existingVideo?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Video",color:"red",flat:"",thin:"",icon:"delete","full-width-mobile":"",onClick:_N})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(ue)?.existingVideo?"Save Video":"Insert Video",class:"ms-auto m_ms-0","full-width-mobile":"",disabled:!oe.value.src||!Vd(oe.value.src),onClick:X2},null,8,["value","disabled"])])]),default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",n7,[(0,l.createVNode)(Pe,{modelValue:oe.value.src,"onUpdate:modelValue":F[33]||(F[33]=U=>oe.value.src=U),label:"Video URL or Embed Code",type:"url",placeholder:"Paste YouTube URL, video file URL, or iframe embed code...",class:(0,l.normalizeClass)({error:oe.value.src&&!Vd(oe.value.src)}),onKeydown:(0,l.withKeys)(X2,["enter"])},null,8,["modelValue","class"]),oe.value.src&&!Vd(oe.value.src)?((0,l.openBlock)(),(0,l.createElementBlock)("div",i7,[(0,l.createVNode)((0,l.unref)(Ve),{name:"warning"}),F[73]||(F[73]=(0,l.createElementVNode)("p",{class:"txt12"}," Please enter a valid video URL or iframe embed code ",-1))])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Pe,{modelValue:oe.value.width,"onUpdate:modelValue":F[34]||(F[34]=U=>oe.value.width=U),label:"Width",placeholder:"100% or 500px or 50vw",help:"Examples: 100%, 500px, 50vw, 300"},null,8,["modelValue"]),(0,l.createVNode)(bi,{modelValue:oe.value.align,"onUpdate:modelValue":F[35]||(F[35]=U=>oe.value.align=U),label:"Video alignment",options:[{value:"full",label:"Full width",icon:"fit_screen"},{value:"start",label:"Align start",icon:"align_horizontal_left"},{value:"end",label:"Align end",icon:"align_horizontal_right"}]},null,8,["modelValue"]),(0,l.createVNode)(dl,{modelValue:oe.value.aspectRatio,"onUpdate:modelValue":F[36]||(F[36]=U=>oe.value.aspectRatio=U),label:"Aspect Ratio",options:[{value:"16:9",label:"16:9 (Standard)"},{value:"4:3",label:"4:3 (Classic)"},{value:"9:16",label:"9:16 (Vertical/Shorts)"},{value:"21:9",label:"21:9 (Cinematic)"},{value:"1:1",label:"1:1 (Square)"},{value:"custom",label:"Custom"}]},null,8,["modelValue"]),oe.value.aspectRatio==="custom"?((0,l.openBlock)(),(0,l.createElementBlock)("div",c7,[(0,l.createVNode)(Pe,{modelValue:oe.value.customWidth,"onUpdate:modelValue":F[37]||(F[37]=U=>oe.value.customWidth=U),class:"m_grid-span-1",label:"Width ratio",placeholder:"16",type:"number"},null,8,["modelValue"]),(0,l.createVNode)(Pe,{modelValue:oe.value.customHeight,"onUpdate:modelValue":F[38]||(F[38]=U=>oe.value.customHeight=U),class:"m_grid-span-1",label:"Height ratio",placeholder:"9",type:"number"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("div",d7,[(0,l.createVNode)(Ht,{modelValue:oe.value.controls,"onUpdate:modelValue":F[39]||(F[39]=U=>oe.value.controls=U),label:"Show controls"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.autoplay,"onUpdate:modelValue":F[40]||(F[40]=U=>oe.value.autoplay=U),label:"Autoplay"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.mute,"onUpdate:modelValue":F[41]||(F[41]=U=>oe.value.mute=U),label:"Mute"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.loop,"onUpdate:modelValue":F[42]||(F[42]=U=>oe.value.loop=U),label:"Loop"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:oe.value.showCaption,"onUpdate:modelValue":F[43]||(F[43]=U=>oe.value.showCaption=U),class:"grid-span-2",label:"Show caption below video"},null,8,["modelValue"]),oe.value.showCaption?((0,l.openBlock)(),(0,l.createBlock)(Pe,{key:0,modelValue:oe.value.caption,"onUpdate:modelValue":F[44]||(F[44]=U=>oe.value.caption=U),label:"Caption",class:"grid-span-2",placeholder:"Describe the video content"},null,8,["modelValue"])):(0,l.createCommentVNode)("",!0)]),oe.value.src&&Vd(oe.value.src)?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(ql),{key:2,frame:"",thin:"",class:"bg-gray-20"},{default:(0,l.withCtx)(()=>[F[74]||(F[74]=(0,l.createElementVNode)("p",{class:"label"}," Preview: ",-1)),(0,l.createElementVNode)("div",o7,[(0,l.createVNode)((0,l.unref)(n0),{src:oe.value.src,class:"","aspect-ratio":oe.value.aspectRatio==="custom"&&oe.value.customWidth&&oe.value.customHeight?`${oe.value.customWidth}:${oe.value.customHeight}`:oe.value.aspectRatio,autoplay:!1,mute:oe.value.mute,controls:oe.value.controls,loop:oe.value.loop},null,8,["src","aspect-ratio","mute","controls","loop"])])]),_:1})):(0,l.createCommentVNode)("",!0)])]),_:1},8,["open","title"]),((0,l.openBlock)(),(0,l.createBlock)(l.Teleport,{to:"body"},[(0,l.createVNode)((0,l.unref)(ia),{open:Se.value,title:(0,l.unref)(Zt)?.existingTable?"Edit Table":"Insert Table",width:"l","onUpdate:open":F[65]||(F[65]=U=>Se.value=U)},{default:(0,l.withCtx)(()=>[(0,l.createElementVNode)("div",m7,[(0,l.createVNode)((0,l.unref)(vt),{label:"Table Structure",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Wl,{modelValue:Q.value.rows,"onUpdate:modelValue":F[47]||(F[47]=U=>Q.value.rows=U),min:1,max:20,label:"Rows"},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.cols,"onUpdate:modelValue":F[48]||(F[48]=U=>Q.value.cols=U),min:1,max:10,label:"Columns"},null,8,["modelValue"]),(0,l.createElementVNode)("div",r7,[F[75]||(F[75]=(0,l.createElementVNode)("label",{class:"label"},"Column Widths (%)",-1)),(0,l.createElementVNode)("div",u7,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.columnWidths.slice(0,Q.value.cols),(U,ye)=>((0,l.openBlock)(),(0,l.createBlock)(Wl,{key:ye,modelValue:Q.value.columnWidths[ye],"onUpdate:modelValue":Ye=>Q.value.columnWidths[ye]=Ye,min:1,max:100,label:`Column ${ye+1}`},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]),(0,l.createElementVNode)("p",{class:(0,l.normalizeClass)(["txt12 mt-025 mb-0",{"color-red":Math.abs(Re.value-100)>.01}])}," Total: "+(0,l.toDisplayString)(Number(Re.value.toFixed(2)))+"% ",3)]),(0,l.createVNode)(bi,{modelValue:Q.value.alignment,"onUpdate:modelValue":F[49]||(F[49]=U=>Q.value.alignment=U),label:"Cell Text Alignment",class:"grid-span-1","icon-only":"",options:[{value:"left",label:"Align Left",icon:"format_align_left"},{value:"center",label:"Align Center",icon:"format_align_center"},{value:"right",label:"Align Right",icon:"format_align_right"}]},null,8,["modelValue"]),(0,l.createVNode)(bi,{modelValue:Q.value.direction,"onUpdate:modelValue":F[50]||(F[50]=U=>Q.value.direction=U),label:"Text Direction",class:"grid-span-1",options:[{value:"ltr",label:"LTR"},{value:"rtl",label:"RTL"}]},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Table Style",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Wl,{modelValue:Q.value.width,"onUpdate:modelValue":F[51]||(F[51]=U=>Q.value.width=U),label:"Width (%)",min:25,max:100},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.cellPadding,"onUpdate:modelValue":F[52]||(F[52]=U=>Q.value.cellPadding=U),label:"Cell Padding (px)",min:2,max:20},null,8,["modelValue"]),(0,l.createVNode)(Wl,{modelValue:Q.value.borderWidth,"onUpdate:modelValue":F[53]||(F[53]=U=>Q.value.borderWidth=U),label:"Border Width (px)",min:0,max:5},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.borderColor,"onUpdate:modelValue":F[54]||(F[54]=U=>Q.value.borderColor=U),label:"Border Color"},null,8,["modelValue"]),(0,l.createVNode)(Ht,{modelValue:Q.value.fixedLayout,"onUpdate:modelValue":F[55]||(F[55]=U=>Q.value.fixedLayout=U),label:"Fixed cell width (doesn't change by content)",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Cell Colors",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.cellBgColor,"onUpdate:modelValue":F[56]||(F[56]=U=>Q.value.cellBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Background Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.cellTextColor,"onUpdate:modelValue":F[57]||(F[57]=U=>Q.value.cellTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Text Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(vt),{label:"Row Styles",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createVNode)(Ht,{modelValue:Q.value.showHeaders,"onUpdate:modelValue":F[58]||(F[58]=U=>Q.value.showHeaders=U),label:"Show header row",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),Q.value.showHeaders?((0,l.openBlock)(),(0,l.createElementBlock)("div",Z7,[(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.headerBgColor,"onUpdate:modelValue":F[59]||(F[59]=U=>Q.value.headerBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Header Background Color"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.headerTextColor,"onUpdate:modelValue":F[60]||(F[60]=U=>Q.value.headerTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Header Text Color"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0),(0,l.createVNode)(Ht,{modelValue:Q.value.alternateRows,"onUpdate:modelValue":F[61]||(F[61]=U=>Q.value.alternateRows=U),label:"Alternating Row Colors",class:"grid-span-4 m_grid-span-2"},null,8,["modelValue"]),Q.value.alternateRows?((0,l.openBlock)(),(0,l.createElementBlock)("div",b7,[(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.alternateRowBgColor,"onUpdate:modelValue":F[62]||(F[62]=U=>Q.value.alternateRowBgColor=U),class:"grid-span-2 m_grid-span-1",label:"Alternate Row Background:"},null,8,["modelValue"]),(0,l.createVNode)((0,l.unref)(Il),{modelValue:Q.value.alternateRowTextColor,"onUpdate:modelValue":F[63]||(F[63]=U=>Q.value.alternateRowTextColor=U),class:"grid-span-2 m_grid-span-1",label:"Alternate Row Text:"},null,8,["modelValue"])])):(0,l.createCommentVNode)("",!0)]),(0,l.createVNode)((0,l.unref)(vt),{label:"Preview",class:"grid-span-4 m_grid-span-2 pt-05 pb-025"}),(0,l.createElementVNode)("div",h7,[(0,l.createElementVNode)("table",{dir:Q.value.direction,style:(0,l.normalizeStyle)({width:`${Q.value.width}%`,borderCollapse:"collapse",marginBottom:"1rem",border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,tableLayout:Q.value.fixedLayout?"fixed":"auto"})},[(0,l.createElementVNode)("colgroup",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.columnWidths.slice(0,Q.value.cols),(U,ye)=>((0,l.openBlock)(),(0,l.createElementBlock)("col",{key:`col-${ye}`,style:(0,l.normalizeStyle)({width:`${U}%`})},null,4))),128))]),Q.value.showHeaders?((0,l.openBlock)(),(0,l.createElementBlock)("thead",W7,[(0,l.createElementVNode)("tr",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.cols,U=>((0,l.openBlock)(),(0,l.createElementBlock)("th",{key:`th-${U}`,style:(0,l.normalizeStyle)({padding:`${Q.value.cellPadding}px`,border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,backgroundColor:Q.value.headerBgColor,color:Q.value.headerTextColor,textAlign:Q.value.alignment,width:Q.value.fixedLayout?`${Q.value.columnWidths[U-1]??100/Q.value.cols}%`:void 0})}," Header "+(0,l.toDisplayString)(U),5))),128))])])):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("tbody",null,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.rows,U=>((0,l.openBlock)(),(0,l.createElementBlock)("tr",{key:`tr-${U}`},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Q.value.cols,ye=>((0,l.openBlock)(),(0,l.createElementBlock)("td",{key:`td-${U}-${ye}`,style:(0,l.normalizeStyle)({padding:`${Q.value.cellPadding}px`,border:`${Q.value.borderWidth}px solid ${Q.value.borderColor}`,textAlign:Q.value.alignment,width:Q.value.fixedLayout?`${Q.value.columnWidths[ye-1]??100/Q.value.cols}%`:void 0,backgroundColor:Q.value.alternateRows&&(U-1)%2===1?Q.value.alternateRowBgColor:Q.value.cellBgColor,color:Q.value.alternateRows&&(U-1)%2===1?Q.value.alternateRowTextColor:Q.value.cellTextColor})}," Cell "+(0,l.toDisplayString)(U)+","+(0,l.toDisplayString)(ye),5))),128))]))),128))])],12,p7)])]),footer:(0,l.withCtx)(()=>[(0,l.createVNode)((0,l.unref)(de),{value:"Cancel",flat:"",thin:"",onClick:F[64]||(F[64]=U=>Se.value=!1)}),(0,l.unref)(Zt)?.existingTable?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:0,value:"Delete Table",color:"red",flat:"",thin:"",icon:"delete",onClick:ly})):(0,l.createCommentVNode)("",!0),(0,l.createVNode)((0,l.unref)(de),{value:(0,l.unref)(Zt)?.existingTable?"Save":"Insert Table",class:"ms-auto",onClick:ey},null,8,["value"])]),_:1},8,["open","title"])]))],64)}}}),Uo=Te(N7,[["__scopeId","data-v-f6b0e9f4"]]);function y7(e){return e}var Oo=class{x;y;pressure;time;constructor(e,t,a,n){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=a||0,this.time=n||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}},Y7=class wW{constructor(t,a,n,i,c,d){this.startPoint=t,this.control2=a,this.control1=n,this.endPoint=i,this.startWidth=c,this.endWidth=d}startPoint;control2;control1;endPoint;startWidth;endWidth;static fromPoints(t,a){const n=this.calculateControlPoints(t[0],t[1],t[2]).c2,i=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new wW(t[1],n,i,t[2],a.start,a.end)}static calculateControlPoints(t,a,n){const i=t.x-a.x,c=t.y-a.y,d=a.x-n.x,o=a.y-n.y,s={x:(t.x+a.x)/2,y:(t.y+a.y)/2},m={x:(a.x+n.x)/2,y:(a.y+n.y)/2},r=Math.sqrt(i*i+c*c),u=Math.sqrt(d*d+o*o),Z=s.x-m.x,h=s.y-m.y,p=r+u==0?0:u/(r+u),b={x:m.x+Z*p,y:m.y+h*p},y=a.x-b.x,W=a.y-b.y;return{c1:new Oo(s.x+y,s.y+W),c2:new Oo(m.x+y,m.y+W)}}length(){let a=0,n,i;for(let c=0;c<=10;c+=1){const d=c/10,o=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(c>0){const m=o-n,r=s-i;a+=Math.sqrt(m*m+r*r)}n=o,i=s}return a}point(t,a,n,i,c){return a*(1-t)*(1-t)*(1-t)+3*n*(1-t)*(1-t)*t+3*i*(1-t)*t*t+c*t*t*t}},L7=class{_et;constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(e,t,a){this._et.addEventListener(e,t,a)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,a){this._et.removeEventListener(e,t,a)}};function X7(e,t=250){let a=0,n=null,i,c,d;const o=()=>{a=Date.now(),n=null,i=e.apply(c,d),n||(c=null,d=[])};return function(...m){const r=Date.now(),u=t-(r-a);return c=this,d=m,u<=0||u>t?(n&&(clearTimeout(n),n=null),a=r,i=e.apply(c,d),n||(c=null,d=[])):n||(n=window.setTimeout(o,u)),i}}var M7=class qr extends L7{constructor(t,a={}){super(),this.canvas=t,this.velocityFilterWeight=a.velocityFilterWeight||.7,this.minWidth=a.minWidth||.5,this.maxWidth=a.maxWidth||2.5,this.throttle=a.throttle??16,this.minDistance=a.minDistance??5,this.dotSize=a.dotSize||0,this.penColor=a.penColor||"black",this.backgroundColor=a.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=a.compositeOperation||"source-over",this.canvasContextOptions=a.canvasContextOptions??{},this._strokeMoveUpdate=this.throttle?X7(qr.prototype._strokeUpdate,this.throttle):qr.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._handlePointerCancel=this._handlePointerCancel.bind(this),this._handleTouchCancel=this._handleTouchCancel.bind(this),this._ctx=t.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}canvas;dotSize;minWidth;maxWidth;penColor;minDistance;velocityFilterWeight;compositeOperation;backgroundColor;throttle;canvasContextOptions;_ctx;_drawingStroke=!1;_isEmpty=!0;_dataUrl;_dataUrlOptions;_lastPoints=[];_data=[];_lastVelocity=0;_lastWidth=0;_strokeMoveUpdate;_strokePointerId;clear(){const{_ctx:t,canvas:a}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,a.width,a.height),t.fillRect(0,0,a.width,a.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._dataUrl=void 0,this._dataUrlOptions=void 0,this._strokePointerId=void 0}redraw(){const t=this._data,a=this._dataUrl,n=this._dataUrlOptions;this.clear(),a&&this.fromDataURL(a,n),this.fromData(t,{clear:!1})}fromDataURL(t,a={}){return new Promise((n,i)=>{const c=new Image,d=a.ratio||window.devicePixelRatio||1,o=a.width||this.canvas.width/d,s=a.height||this.canvas.height/d,m=a.xOffset||0,r=a.yOffset||0;this._reset(this._getPointGroupOptions()),c.onload=()=>{this._ctx.drawImage(c,m,r,o,s),n()},c.onerror=u=>{i(u)},c.crossOrigin="anonymous",c.src=t,this._isEmpty=!1,this._dataUrl=t,this._dataUrlOptions={...a}})}toDataURL(t="image/png",a){return t==="image/svg+xml"?(typeof a!="object"&&(a=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(a))}`):(typeof a!="number"&&(a=void 0),this.canvas.toDataURL(t,a))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none",this.canvas.style.webkitUserSelect="none";const t=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!t?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.style.webkitUserSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){const t=window.document===this.canvas.ownerDocument?window:this.canvas.ownerDocument.defaultView??this.canvas.ownerDocument;return{addEventListener:t.addEventListener.bind(t),removeEventListener:t.removeEventListener.bind(t)}}_removeMoveUpEventListeners(){const{removeEventListener:t}=this._getListenerFunctions();t("pointermove",this._handlePointerMove),t("pointerup",this._handlePointerUp),t("pointercancel",this._handlePointerCancel),t("mousemove",this._handleMouseMove),t("mouseup",this._handleMouseUp),t("touchmove",this._handleTouchMove),t("touchend",this._handleTouchEnd),t("touchcancel",this._handleTouchCancel)}isEmpty(){return this._isEmpty}fromData(t,{clear:a=!0}={}){a&&this.clear(),this._fromData(t,this._drawCurve.bind(this),this._drawDot.bind(this),this._drawLine.bind(this)),this._data=this._data.concat(t)}toData(){return this._data}_isLeftButtonPressed(t,a){return a?t.buttons===1:(t.buttons&1)===1}_pointerEventToSignatureEvent(t){return{event:t,type:t.type,x:t.clientX,y:t.clientY,pressure:"pressure"in t?t.pressure:0}}_touchEventToSignatureEvent(t){const a=t.changedTouches[0];return{event:t,type:t.type,x:a.clientX,y:a.clientY,pressure:a.force}}_handleMouseDown(t){!this._isLeftButtonPressed(t,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(t))}_handleMouseMove(t){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}_handleMouseUp(t){this._isLeftButtonPressed(t)||this._strokeEnd(this._pointerEventToSignatureEvent(t))}_handleTouchStart(t){t.targetTouches.length!==1||this._drawingStroke||(t.cancelable&&t.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(t)))}_handleTouchMove(t){if(t.targetTouches.length===1){if(t.cancelable&&t.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(t),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(t))}}_handleTouchEnd(t){t.targetTouches.length===0&&(t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t)))}_handlePointerCancel(t){this._allowPointerId(t)&&(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t),!1))}_handleTouchCancel(t){t.cancelable&&t.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(t),!1)}_getPointerId(t){return t.persistentDeviceId||t.pointerId}_allowPointerId(t,a=!1){return typeof this._strokePointerId>"u"?a:this._getPointerId(t)===this._strokePointerId}_handlePointerDown(t){this._drawingStroke||!this._isLeftButtonPressed(t)||!this._allowPointerId(t,!0)||(this._strokePointerId=this._getPointerId(t),t.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(t)))}_handlePointerMove(t){if(this._allowPointerId(t)){if(!this._isLeftButtonPressed(t,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(t),!1);return}t.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(t))}}_handlePointerUp(t){this._isLeftButtonPressed(t)||!this._allowPointerId(t)||(t.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(t)))}_getPointGroupOptions(t){return{penColor:t&&"penColor"in t?t.penColor:this.penColor,dotSize:t&&"dotSize"in t?t.dotSize:this.dotSize,minWidth:t&&"minWidth"in t?t.minWidth:this.minWidth,maxWidth:t&&"maxWidth"in t?t.maxWidth:this.maxWidth,velocityFilterWeight:t&&"velocityFilterWeight"in t?t.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:t&&"compositeOperation"in t?t.compositeOperation:this.compositeOperation}}_strokeBegin(t){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:t,cancelable:!0})))return;const{addEventListener:a}=this._getListenerFunctions();switch(t.event.type){case"mousedown":a("mousemove",this._handleMouseMove,{passive:!1}),a("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":a("touchmove",this._handleTouchMove,{passive:!1}),a("touchend",this._handleTouchEnd,{passive:!1}),a("touchcancel",this._handleTouchCancel,{passive:!1});break;case"pointerdown":a("pointermove",this._handlePointerMove,{passive:!1}),a("pointerup",this._handlePointerUp,{passive:!1}),a("pointercancel",this._handlePointerCancel,{passive:!1});break;default:}this._drawingStroke=!0;const n=this._getPointGroupOptions(),i={...n,points:[]};this._data.push(i),this._reset(n),this._strokeUpdate(t)}_strokeUpdate(t){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(t);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:t}));const a=this._createPoint(t.x,t.y,t.pressure),n=this._data[this._data.length-1],i=n.points,c=i.length>0&&i[i.length-1],d=c?a.distanceTo(c)<=this.minDistance:!1,o=this._getPointGroupOptions(n);if(!c||!(c&&d)){const s=this._addPoint(a,o);c?s&&this._drawCurve(s,o):this._drawDot(a,o),i.push({time:a.time,x:a.x,y:a.y,pressure:a.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:t}))}_strokeEnd(t,a=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(a&&this._strokeUpdate(t),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:t})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(t){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(t.minWidth+t.maxWidth)/2,this._ctx.fillStyle=t.penColor,this._ctx.globalCompositeOperation=t.compositeOperation}_createPoint(t,a,n){const i=this.canvas.getBoundingClientRect();return new Oo(t-i.left,a-i.top,n,new Date().getTime())}_addPoint(t,a){const{_lastPoints:n}=this;if(n.push(t),n.length>2){n.length===3&&n.unshift(n[0]);const i=this._calculateCurveWidths(n[1],n[2],a),c=Y7.fromPoints(n,i);return n.shift(),c}return null}_calculateCurveWidths(t,a,n){const i=n.velocityFilterWeight*a.velocityFrom(t)+(1-n.velocityFilterWeight)*this._lastVelocity,c=this._strokeWidth(i,n),d={end:c,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=c,d}_strokeWidth(t,a){return Math.max(a.maxWidth/(t+1),a.minWidth)}_drawCurveSegment(t,a,n){const i=this._ctx;i.moveTo(t,a),i.arc(t,a,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(t,a){const n=this._ctx,i=t.endWidth-t.startWidth,c=Math.ceil(t.length())*2;n.beginPath(),n.fillStyle=a.penColor;for(let d=0;d<c;d+=1){const o=d/c,s=o*o,m=s*o,r=1-o,u=r*r,Z=u*r;let h=Z*t.startPoint.x;h+=3*u*o*t.control1.x,h+=3*r*s*t.control2.x,h+=m*t.endPoint.x;let p=Z*t.startPoint.y;p+=3*u*o*t.control1.y,p+=3*r*s*t.control2.y,p+=m*t.endPoint.y;const b=Math.min(t.startWidth+m*i,a.maxWidth);this._drawCurveSegment(h,p,b)}n.closePath(),n.fill()}_getDotSize(t){return t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2}_drawDot(t,a){const n=this._ctx,i=this._getDotSize(a);n.beginPath(),this._drawCurveSegment(t.x,t.y,i),n.closePath(),n.fillStyle=a.penColor,n.fill()}_drawLine(t,a,n){const i=this._ctx;i.save(),i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(a.x,a.y),i.lineWidth=this._getDotSize(n)*2,i.lineCap="round",i.strokeStyle=n.penColor,i.stroke(),i.restore(),this._isEmpty=!1}_fromData(t,a,n,i){for(const c of t){const{points:d}=c,o=this._getPointGroupOptions(c);if(d.length>2)for(let s=0;s<d.length;s+=1){const m=d[s],r=new Oo(m.x,m.y,m.pressure,m.time);s===0&&this._reset(o);const u=this._addPoint(r,o);u&&a(u,o)}else d.length===2?(this._reset(o),i(d[0],d[1],o)):(this._reset(o),n(d[0],o))}}toSVG({includeBackgroundColor:t=!1,includeDataUrl:a=!1}={}){const n=this._data,i=Math.max(window.devicePixelRatio||1,1),c=0,d=0,o=this.canvas.width/i,s=this.canvas.height/i,m=document.createElementNS("http://www.w3.org/2000/svg","svg");if(m.setAttribute("xmlns","http://www.w3.org/2000/svg"),m.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),m.setAttribute("viewBox",`${c} ${d} ${o} ${s}`),m.setAttribute("width",o.toString()),m.setAttribute("height",s.toString()),t&&this.backgroundColor){const r=document.createElement("rect");r.setAttribute("width","100%"),r.setAttribute("height","100%"),r.setAttribute("fill",this.backgroundColor),m.appendChild(r)}if(a&&this._dataUrl){const r=this._dataUrlOptions?.ratio||window.devicePixelRatio||1,u=this._dataUrlOptions?.width||this.canvas.width/r,Z=this._dataUrlOptions?.height||this.canvas.height/r,h=this._dataUrlOptions?.xOffset||0,p=this._dataUrlOptions?.yOffset||0,b=document.createElement("image");b.setAttribute("x",h.toString()),b.setAttribute("y",p.toString()),b.setAttribute("width",u.toString()),b.setAttribute("height",Z.toString()),b.setAttribute("preserveAspectRatio","none"),b.setAttribute("href",this._dataUrl),m.appendChild(b)}return this._fromData(n,(r,{penColor:u})=>{const Z=document.createElement("path");if(!isNaN(r.control1.x)&&!isNaN(r.control1.y)&&!isNaN(r.control2.x)&&!isNaN(r.control2.y)){const h=`M ${r.startPoint.x.toFixed(3)},${r.startPoint.y.toFixed(3)} C ${r.control1.x.toFixed(3)},${r.control1.y.toFixed(3)} ${r.control2.x.toFixed(3)},${r.control2.y.toFixed(3)} ${r.endPoint.x.toFixed(3)},${r.endPoint.y.toFixed(3)}`;Z.setAttribute("d",h),Z.setAttribute("stroke-width",(r.endWidth*2.25).toFixed(3)),Z.setAttribute("stroke",u),Z.setAttribute("fill","none"),Z.setAttribute("stroke-linecap","round"),m.appendChild(Z)}},(r,{penColor:u,dotSize:Z,minWidth:h,maxWidth:p})=>{const b=document.createElement("circle"),y=Z>0?Z:(h+p)/2;b.setAttribute("r",y.toString()),b.setAttribute("cx",r.x.toString()),b.setAttribute("cy",r.y.toString()),b.setAttribute("fill",u),m.appendChild(b)},(r,u,Z)=>{const h=document.createElement("line");h.setAttribute("x1",r.x.toString()),h.setAttribute("y1",r.y.toString()),h.setAttribute("x2",u.x.toString()),h.setAttribute("y2",u.y.toString()),h.setAttribute("stroke",Z.penColor),h.setAttribute("stroke-width",(this._getDotSize(Z)*2).toString()),h.setAttribute("stroke-linecap","round"),m.appendChild(h)}),m.outerHTML}};function RW(e=globalThis.devicePixelRatio??1){return Number.isFinite(e)?Math.min(Math.max(e,1),2):1}function V7(e,t=RW()){const a=e.clientWidth,n=e.clientHeight;if(a<=0||n<=0)return;const i=Math.round(a*t),c=Math.round(n*t);return e.width!==i&&(e.width=i),e.height!==c&&(e.height=c),e.getContext("2d")?.setTransform(t,0,0,t,0,0),{width:a,height:n,pixelRatio:t}}var T7={key:0,class:"label-text"},I7={key:1,class:"helptext"},x7=["disabled"],g7=["required"],z7=(0,l.defineComponent)({__name:"SignaturePad",props:(0,l.mergeModels)({sigOption:{},width:{},height:{},ratio:{},clearOnResize:{type:Boolean},waterMark:{},disabled:{type:Boolean},defaultUrl:{},format:{},clearable:{type:Boolean,default:!0},required:{type:Boolean},label:{},helptext:{},penColor:{},backgroundColor:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},{modelValue:{},modelModifiers:{},file:{},fileModifiers:{}}),emits:["update:modelValue","update:file"],setup(e,{expose:t}){const a=e,{shellClass:n,shellStyle:i}=Xt(a),c=(0,l.useModel)(e,"modelValue"),d=(0,l.useModel)(e,"file"),o=(0,l.ref)(),s=(0,l.ref)(),m=(0,l.ref)(!0);let r;function u(){s.value?.clear(),m.value=!0,c.value=void 0}function Z(z){return z=z||a.format,z?s.value?.toDataURL(z):s.value?.toDataURL()}function h(){const z=Z();if(z)if(a.format==="image/svg+xml")r=new File([z],"signature.svg",{type:"image/svg+xml"}),d.value=r;else try{const I=z.split(",")[1];if(!I)throw new Error("Invalid data URL format");const x=atob(I),w=new Uint8Array(Array.from(x,J=>J.charCodeAt(0))),k=a.format||"image/png",j=new Blob([w],{type:k}),H=k.split("/")[1];r=new File([j],`signature.${H}`,{type:k}),d.value=r}catch{}}function p(z){const I=o.value?.getBoundingClientRect();return s.value?.fromDataURL(z,{height:I?.height,width:I?.width,ratio:RW(),xOffset:0,yOffset:0})}const b=()=>s.value?.isEmpty();function y(){const z=s.value?.toData();z&&(z.pop(),s.value?.fromData(z))}const W=(0,l.ref)({penColor:"rgb(0, 0, 0)",backgroundColor:"rgba(0,0,0,0)"}),G=(0,l.computed)(()=>({...W.value,...a.penColor?{penColor:a.penColor}:{},...a.backgroundColor?{backgroundColor:a.backgroundColor}:{},...a.sigOption}));(0,l.watch)(()=>a.disabled,z=>{z?s.value?.off():s.value?.on()}),(0,l.watch)(G,z=>{s.value&&(s.value.penColor=z.penColor??"rgb(0,0,0)",z.backgroundColor&&(s.value.backgroundColor=z.backgroundColor))});function N(z){if(Object.prototype.toString.call(z)!=="[object Object]")throw new Error(`Expected Object, got ${typeof z}.`);{const I={text:z.text||"",x:z.x||20,y:z.y||20,sx:z.sx||40,sy:z.sy||40},x=o.value?.getContext("2d");if(!x)return;x.font=z.font||"20px sans-serif",x.fillStyle=z.fillStyle||"#333",x.strokeStyle=z.strokeStyle||"#333",z.style==="all"?(x.fillText(I.text,I.x,I.y),x.strokeText(I.text,I.sx,I.sy)):z.style==="stroke"?x.strokeText(I.text,I.sx,I.sy):x.fillText(I.text,I.x,I.y)}}function L(){m.value=s.value?.isEmpty()??!1,c.value=Z(),h()}function Y(z){if(!z)return;const I=new FileReader;return new Promise(x=>{I.onload=w=>{const k=String(w.target?.result);p(k),m.value=!1,c.value=k,x(!0)},I.readAsDataURL(z)})}(0,l.watch)(d,z=>{if(z===r){r=void 0;return}Y(z)});function X(){const z=o.value,I=s.value;if(!z||!I)return;const x=z.width,w=z.height,k=I.isEmpty(),j=k?[]:I.toData(),H=!k&&j.length===0?Z():void 0;V7(z)&&(z.width===x&&z.height===w||(I.clear(),a.clearOnResize?(m.value=!0,c.value=void 0):j.length>0?(I.fromData(j),m.value=!1):H&&(p(H),m.value=!1),a.waterMark&&N(a.waterMark)))}const M=(0,l.computed)(()=>({...a.backgroundColor?{background:a.backgroundColor}:{},width:a.width??"100%",...a.height?{height:a.height}:{aspectRatio:`1 / ${a.ratio??1/2}`,height:"auto"}}));async function V(){s.value=new M7(o.value,G.value),a.disabled&&s.value.off(),m.value=s.value.isEmpty(),d.value&&Y(d.value),await(0,l.nextTick)(),requestAnimationFrame(()=>requestAnimationFrame(X))}return(0,l.onMounted)(()=>{V()}),jp(()=>o.value,X),yi(()=>s.value,"endStroke",L),t({save:Z,clear:u,isEmpty:b,undo:y,addWaterMark:N,fromDataURL:p}),(z,I)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{class:(0,l.normalizeClass)(["bagel-input bgl_input signature-pad relative",[(0,l.unref)(n),{"has-value":!m.value}]]),style:(0,l.normalizeStyle)((0,l.unref)(i)),tabindex:"-1",onTouchmove:I[0]||(I[0]=(0,l.withModifiers)(()=>{},["prevent"]))},[e.label?((0,l.openBlock)(),(0,l.createElementBlock)("label",T7,(0,l.toDisplayString)(e.label),1)):(0,l.createCommentVNode)("",!0),e.helptext?((0,l.openBlock)(),(0,l.createElementBlock)("p",I7,(0,l.toDisplayString)(e.helptext),1)):(0,l.createCommentVNode)("",!0),e.clearable&&!e.disabled?((0,l.openBlock)(),(0,l.createBlock)((0,l.unref)(de),{key:2,flat:"",thin:"",icon:"refresh",class:"position-bottom-end",onClick:u})):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("canvas",{ref_key:"vCanvas",ref:o,class:"canvas",disabled:e.disabled,style:(0,l.normalizeStyle)(M.value)},null,12,x7),(0,l.createElementVNode)("input",{placeholder:"required",type:"text",required:e.required&&m.value,class:"pixel opacity-0",inputMode:"none"},null,8,g7)],38))}}),w7=z7;function R7(){return typeof window<"u"?window.console:global.console}var S7=R7();function f7(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var v7=/-(\w)/g,wb=f7(e=>e.replace(v7,(t,a)=>a?a.toUpperCase():""));function Sm(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Rb(e,t,a){const n=a===0?e.children[0]:e.children[a-1].nextSibling;e.insertBefore(t,n)}function Sb(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function ua(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Sb(Object(a),!0).forEach(function(n){k7(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Sb(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function ho(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ho=function(t){return typeof t}:ho=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(e)}function k7(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Sa(){return Sa=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},Sa.apply(this,arguments)}function F7(e,t){if(e==null)return{};var a={},n=Object.keys(e),i,c;for(c=0;c<n.length;c++)i=n[c],!(t.indexOf(i)>=0)&&(a[i]=e[i]);return a}function j7(e,t){if(e==null)return{};var a=F7(e,t),n,i;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(i=0;i<c.length;i++)n=c[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var C7="1.14.0";function xa(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var ka=xa(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Wd=xa(/Edge/i),fb=xa(/firefox/i),pc=xa(/safari/i)&&!xa(/chrome/i)&&!xa(/android/i),SW=xa(/iP(ad|od|hone)/i),J7=xa(/chrome/i)&&xa(/android/i),fW={capture:!1,passive:!1};function nt(e,t,a){e.addEventListener(t,a,!ka&&fW)}function tt(e,t,a){e.removeEventListener(t,a,!ka&&fW)}function Eo(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function D7(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function na(e,t,a,n){if(e){a=a||document;do{if(t!=null&&(t[0]===">"?e.parentNode===a&&Eo(e,t):Eo(e,t))||n&&e===a)return e;if(e===a)break}while(e=D7(e))}return null}var vb=/\s+/g;function ul(e,t,a){e&&t&&(e.classList?e.classList[a?"add":"remove"](t):e.className=((" "+e.className+" ").replace(vb," ").replace(" "+t+" "," ")+(a?" "+t:"")).replace(vb," "))}function Je(e,t,a){var n=e&&e.style;if(n){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(a=e.currentStyle),t===void 0?a:a[t];!(t in n)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),n[t]=a+(typeof a=="string"?"":"px")}}function Xi(e,t){var a="";if(typeof e=="string")a=e;else do{var n=Je(e,"transform");n&&n!=="none"&&(a=n+" "+a)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(a)}function vW(e,t,a){if(e){var n=e.getElementsByTagName(t),i=0,c=n.length;if(a)for(;i<c;i++)a(n[i],i);return n}return[]}function da(){var e=document.scrollingElement;return e||document.documentElement}function zt(e,t,a,n,i){if(!(!e.getBoundingClientRect&&e!==window)){var c,d,o,s,m,r,u;if(e!==window&&e.parentNode&&e!==da()?(c=e.getBoundingClientRect(),d=c.top,o=c.left,s=c.bottom,m=c.right,r=c.height,u=c.width):(d=0,o=0,s=window.innerHeight,m=window.innerWidth,r=window.innerHeight,u=window.innerWidth),(t||a)&&e!==window&&(i=i||e.parentNode,!ka))do if(i&&i.getBoundingClientRect&&(Je(i,"transform")!=="none"||a&&Je(i,"position")!=="static")){var Z=i.getBoundingClientRect();d-=Z.top+parseInt(Je(i,"border-top-width")),o-=Z.left+parseInt(Je(i,"border-left-width")),s=d+c.height,m=o+c.width;break}while(i=i.parentNode);if(n&&e!==window){var h=Xi(i||e),p=h&&h.a,b=h&&h.d;h&&(d/=b,o/=p,u/=p,r/=b,s=d+r,m=o+u)}return{top:d,left:o,bottom:s,right:m,width:u,height:r}}}function kb(e,t,a){for(var n=Qa(e,!0),i=zt(e)[t];n;){var c=zt(n)[a],d=void 0;if(a==="top"||a==="left"?d=i>=c:d=i<=c,!d)return n;if(n===da())break;n=Qa(n,!1)}return!1}function Ri(e,t,a,n){for(var i=0,c=0,d=e.children;c<d.length;){if(d[c].style.display!=="none"&&d[c]!==De.ghost&&(n||d[c]!==De.dragged)&&na(d[c],a.draggable,e,!1)){if(i===t)return d[c];i++}c++}return null}function I0(e,t){for(var a=e.lastElementChild;a&&(a===De.ghost||Je(a,"display")==="none"||t&&!Eo(a,t));)a=a.previousElementSibling;return a||null}function Vl(e,t){var a=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==De.clone&&(!t||Eo(e,t))&&a++;return a}function Fb(e){var t=0,a=0,n=da();if(e)do{var i=Xi(e),c=i.a,d=i.d;t+=e.scrollLeft*c,a+=e.scrollTop*d}while(e!==n&&(e=e.parentNode));return[t,a]}function U7(e,t){for(var a in e)if(e.hasOwnProperty(a)){for(var n in t)if(t.hasOwnProperty(n)&&t[n]===e[a][n])return Number(a)}return-1}function Qa(e,t){if(!e||!e.getBoundingClientRect)return da();var a=e,n=!1;do if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var i=Je(a);if(a.clientWidth<a.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||a.clientHeight<a.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!a.getBoundingClientRect||a===document.body)return da();if(n||t)return a;n=!0}}while(a=a.parentNode);return da()}function O7(e,t){if(e&&t)for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a]);return e}function fm(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Wc;function kW(e,t){return function(){if(!Wc){var a=arguments,n=this;a.length===1?e.call(n,a[0]):e.apply(n,a),Wc=setTimeout(function(){Wc=void 0},t)}}}function E7(){clearTimeout(Wc),Wc=void 0}function FW(e,t,a){e.scrollLeft+=t,e.scrollTop+=a}function jW(e){var t=window.Polymer,a=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):a?a(e).clone(!0)[0]:e.cloneNode(!0)}var Gl="Sortable"+new Date().getTime();function B7(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(n){if(!(Je(n,"display")==="none"||n===De.ghost)){e.push({target:n,rect:zt(n)});var i=ua({},e[e.length-1].rect);if(n.thisAnimationDuration){var c=Xi(n,!0);c&&(i.top-=c.f,i.left-=c.e)}n.fromRect=i}})},addAnimationState:function(n){e.push(n)},removeAnimationState:function(n){e.splice(U7(e,{target:n}),1)},animateAll:function(n){var i=this;if(!this.options.animation){clearTimeout(t),typeof n=="function"&&n();return}var c=!1,d=0;e.forEach(function(o){var s=0,m=o.target,r=m.fromRect,u=zt(m),Z=m.prevFromRect,h=m.prevToRect,p=o.rect,b=Xi(m,!0);b&&(u.top-=b.f,u.left-=b.e),m.toRect=u,m.thisAnimationDuration&&fm(Z,u)&&!fm(r,u)&&(p.top-u.top)/(p.left-u.left)===(r.top-u.top)/(r.left-u.left)&&(s=H7(p,Z,h,i.options)),fm(u,r)||(m.prevFromRect=r,m.prevToRect=u,s||(s=i.options.animation),i.animate(m,p,u,s)),s&&(c=!0,d=Math.max(d,s),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},s),m.thisAnimationDuration=s)}),clearTimeout(t),c?t=setTimeout(function(){typeof n=="function"&&n()},d):typeof n=="function"&&n(),e=[]},animate:function(n,i,c,d){if(d){Je(n,"transition",""),Je(n,"transform","");var o=Xi(this.el),s=o&&o.a,m=o&&o.d,r=(i.left-c.left)/(s||1),u=(i.top-c.top)/(m||1);n.animatingX=!!r,n.animatingY=!!u,Je(n,"transform","translate3d("+r+"px,"+u+"px,0)"),this.forRepaintDummy=K7(n),Je(n,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Je(n,"transform","translate3d(0,0,0)"),typeof n.animated=="number"&&clearTimeout(n.animated),n.animated=setTimeout(function(){Je(n,"transition",""),Je(n,"transform",""),n.animated=!1,n.animatingX=!1,n.animatingY=!1},d)}}}}function K7(e){return e.offsetWidth}function H7(e,t,a,n){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-a.top,2)+Math.pow(t.left-a.left,2))*n.animation}var ti=[],vm={initializeByDefault:!0},Gd={mount:function(t){for(var a in vm)vm.hasOwnProperty(a)&&!(a in t)&&(t[a]=vm[a]);ti.forEach(function(n){if(n.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),ti.push(t)},pluginEvent:function(t,a,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var c=t+"Global";ti.forEach(function(d){a[d.pluginName]&&(a[d.pluginName][c]&&a[d.pluginName][c](ua({sortable:a},n)),a.options[d.pluginName]&&a[d.pluginName][t]&&a[d.pluginName][t](ua({sortable:a},n)))})},initializePlugins:function(t,a,n,i){ti.forEach(function(o){var s=o.pluginName;if(!(!t.options[s]&&!o.initializeByDefault)){var m=new o(t,a,t.options);m.sortable=t,m.options=t.options,t[s]=m,Sa(n,m.defaults)}});for(var c in t.options)if(t.options.hasOwnProperty(c)){var d=this.modifyOption(t,c,t.options[c]);typeof d<"u"&&(t.options[c]=d)}},getEventProperties:function(t,a){var n={};return ti.forEach(function(i){typeof i.eventProperties=="function"&&Sa(n,i.eventProperties.call(a[i.pluginName],t))}),n},modifyOption:function(t,a,n){var i;return ti.forEach(function(c){t[c.pluginName]&&c.optionListeners&&typeof c.optionListeners[a]=="function"&&(i=c.optionListeners[a].call(t[c.pluginName],n))}),i}};function P7(e){var t=e.sortable,a=e.rootEl,n=e.name,i=e.targetEl,c=e.cloneEl,d=e.toEl,o=e.fromEl,s=e.oldIndex,m=e.newIndex,r=e.oldDraggableIndex,u=e.newDraggableIndex,Z=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||a&&a[Gl],!!t){var b,y=t.options,W="on"+n.charAt(0).toUpperCase()+n.substr(1);window.CustomEvent&&!ka&&!Wd?b=new CustomEvent(n,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(n,!0,!0)),b.to=d||a,b.from=o||a,b.item=i||a,b.clone=c,b.oldIndex=s,b.newIndex=m,b.oldDraggableIndex=r,b.newDraggableIndex=u,b.originalEvent=Z,b.pullMode=h?h.lastPutMode:void 0;var G=ua(ua({},p),Gd.getEventProperties(n,t));for(var N in G)b[N]=G[N];a&&a.dispatchEvent(b),y[W]&&y[W].call(t,b)}}var Q7=["evt"],il=function(t,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.evt,c=j7(n,Q7);Gd.pluginEvent.bind(De)(t,a,ua({dragEl:Ie,parentEl:Gt,ghostEl:Ke,rootEl:bt,nextEl:Mn,lastDownEl:po,cloneEl:Nt,cloneHidden:Ha,dragStarted:sc,putSortable:jt,activeSortable:De.active,originalEvent:i,oldIndex:hi,oldDraggableIndex:Gc,newIndex:Zl,newDraggableIndex:Ba,hideGhostForTarget:UW,unhideGhostForTarget:OW,cloneNowHidden:function(){Ha=!0},cloneNowShown:function(){Ha=!1},dispatchSortableEvent:function(o){$t({sortable:a,name:o,originalEvent:i})}},c))};function $t(e){P7(ua({putSortable:jt,cloneEl:Nt,targetEl:Ie,rootEl:bt,oldIndex:hi,oldDraggableIndex:Gc,newIndex:Zl,newDraggableIndex:Ba},e))}var Ie,Gt,Ke,bt,Mn,po,Nt,Ha,hi,Zl,Gc,Ba,Od,jt,mi=!1,Bo=!1,Ko=[],yn,Dl,km,Fm,jb,Cb,sc,li,Nc,yc=!1,Ed=!1,Wo,Bt,jm=[],eu=!1,Ho=[],vs=typeof document<"u",Bd=SW,Jb=Wd||ka?"cssFloat":"float",A7=vs&&!J7&&!SW&&"draggable"in document.createElement("div"),CW=(function(){if(vs){if(ka)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}})(),JW=function(t,a){var n=Je(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),c=Ri(t,0,a),d=Ri(t,1,a),o=c&&Je(c),s=d&&Je(d),m=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+zt(c).width,r=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+zt(d).width;if(n.display==="flex")return n.flexDirection==="column"||n.flexDirection==="column-reverse"?"vertical":"horizontal";if(n.display==="grid")return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(c&&o.float&&o.float!=="none"){var u=o.float==="left"?"left":"right";return d&&(s.clear==="both"||s.clear===u)?"vertical":"horizontal"}return c&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||m>=i&&n[Jb]==="none"||d&&n[Jb]==="none"&&m+r>i)?"vertical":"horizontal"},_7=function(t,a,n){var i=n?t.left:t.top,c=n?t.right:t.bottom,d=n?t.width:t.height,o=n?a.left:a.top,s=n?a.right:a.bottom,m=n?a.width:a.height;return i===o||c===s||i+d/2===o+m/2},$7=function(t,a){var n;return Ko.some(function(i){var c=i[Gl].options.emptyInsertThreshold;if(!(!c||I0(i))){var d=zt(i),o=t>=d.left-c&&t<=d.right+c,s=a>=d.top-c&&a<=d.bottom+c;if(o&&s)return n=i}}),n},DW=function(t){function a(c,d){return function(o,s,m,r){var u=o.options.group.name&&s.options.group.name&&o.options.group.name===s.options.group.name;if(c==null&&(d||u))return!0;if(c==null||c===!1)return!1;if(d&&c==="clone")return c;if(typeof c=="function")return a(c(o,s,m,r),d)(o,s,m,r);var Z=(d?o:s).options.group.name;return c===!0||typeof c=="string"&&c===Z||c.join&&c.indexOf(Z)>-1}}var n={},i=t.group;(!i||ho(i)!="object")&&(i={name:i}),n.name=i.name,n.checkPull=a(i.pull,!0),n.checkPut=a(i.put),n.revertClone=i.revertClone,t.group=n},UW=function(){!CW&&Ke&&Je(Ke,"display","none")},OW=function(){!CW&&Ke&&Je(Ke,"display","")};vs&&document.addEventListener("click",function(e){if(Bo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Bo=!1,!1},!0);var Yn=function(t){if(Ie){t=t.touches?t.touches[0]:t;var a=$7(t.clientX,t.clientY);if(a){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=a,n.preventDefault=void 0,n.stopPropagation=void 0,a[Gl]._onDragOver(n)}}},q7=function(t){Ie&&Ie.parentNode[Gl]._isOutsideThisEl(t.target)};function De(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Sa({},t),e[Gl]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return JW(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,o){d.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:De.supportPointer!==!1&&"PointerEvent"in window&&!pc,emptyInsertThreshold:5};Gd.initializePlugins(this,e,a);for(var n in a)!(n in t)&&(t[n]=a[n]);DW(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:A7,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?nt(e,"pointerdown",this._onTapStart):(nt(e,"mousedown",this._onTapStart),nt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(e,"dragover",this),nt(e,"dragenter",this)),Ko.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Sa(this,B7())}De.prototype={constructor:De,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(li=null)},_getDirection:function(t,a){return typeof this.options.direction=="function"?this.options.direction.call(this,t,a,Ie):this.options.direction},_onTapStart:function(t){if(t.cancelable){var a=this,n=this.el,i=this.options,c=i.preventOnFilter,d=t.type,o=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,s=(o||t).target,m=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||s,r=i.filter;if(dD(n),!Ie&&!(/mousedown|pointerdown/.test(d)&&t.button!==0||i.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&pc&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=na(s,i.draggable,n,!1),!(s&&s.animated)&&po!==s)){if(hi=Vl(s),Gc=Vl(s,i.draggable),typeof r=="function"){if(r.call(this,t,s,this)){$t({sortable:a,rootEl:m,name:"filter",targetEl:s,toEl:n,fromEl:n}),il("filter",a,{evt:t}),c&&t.cancelable&&t.preventDefault();return}}else if(r&&(r=r.split(",").some(function(u){if(u=na(m,u.trim(),n,!1),u)return $t({sortable:a,rootEl:u,name:"filter",targetEl:s,fromEl:n,toEl:n}),il("filter",a,{evt:t}),!0}),r)){c&&t.cancelable&&t.preventDefault();return}i.handle&&!na(m,i.handle,n,!1)||this._prepareDragStart(t,o,s)}}},_prepareDragStart:function(t,a,n){var i=this,c=i.el,d=i.options,o=c.ownerDocument,s;if(n&&!Ie&&n.parentNode===c){var m=zt(n);if(bt=c,Ie=n,Gt=Ie.parentNode,Mn=Ie.nextSibling,po=n,Od=d.group,De.dragged=Ie,yn={target:Ie,clientX:(a||t).clientX,clientY:(a||t).clientY},jb=yn.clientX-m.left,Cb=yn.clientY-m.top,this._lastX=(a||t).clientX,this._lastY=(a||t).clientY,Ie.style["will-change"]="all",s=function(){if(il("delayEnded",i,{evt:t}),De.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!fb&&i.nativeDraggable&&(Ie.draggable=!0),i._triggerDragStart(t,a),$t({sortable:i,name:"choose",originalEvent:t}),ul(Ie,d.chosenClass,!0)},d.ignore.split(",").forEach(function(r){vW(Ie,r.trim(),Cm)}),nt(o,"dragover",Yn),nt(o,"mousemove",Yn),nt(o,"touchmove",Yn),nt(o,"mouseup",i._onDrop),nt(o,"touchend",i._onDrop),nt(o,"touchcancel",i._onDrop),fb&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ie.draggable=!0),il("delayStart",this,{evt:t}),d.delay&&(!d.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(Wd||ka))){if(De.eventCanceled){this._onDrop();return}nt(o,"mouseup",i._disableDelayedDrag),nt(o,"touchend",i._disableDelayedDrag),nt(o,"touchcancel",i._disableDelayedDrag),nt(o,"mousemove",i._delayedDragTouchMoveHandler),nt(o,"touchmove",i._delayedDragTouchMoveHandler),d.supportPointer&&nt(o,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,d.delay)}else s()}},_delayedDragTouchMoveHandler:function(t){var a=t.touches?t.touches[0]:t;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ie&&Cm(Ie),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;tt(t,"mouseup",this._disableDelayedDrag),tt(t,"touchend",this._disableDelayedDrag),tt(t,"touchcancel",this._disableDelayedDrag),tt(t,"mousemove",this._delayedDragTouchMoveHandler),tt(t,"touchmove",this._delayedDragTouchMoveHandler),tt(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,a){a=a||t.pointerType=="touch"&&t,!this.nativeDraggable||a?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):a?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(Ie,"dragend",this),nt(bt,"dragstart",this._onDragStart));try{document.selection?Go(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,a){if(mi=!1,bt&&Ie){il("dragStarted",this,{evt:a}),this.nativeDraggable&&nt(document,"dragover",q7);var n=this.options;!t&&ul(Ie,n.dragClass,!1),ul(Ie,n.ghostClass,!0),De.active=this,t&&this._appendGhost(),$t({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(Dl){this._lastX=Dl.clientX,this._lastY=Dl.clientY,UW();for(var t=document.elementFromPoint(Dl.clientX,Dl.clientY),a=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Dl.clientX,Dl.clientY),t!==a);)a=t;if(Ie.parentNode[Gl]._isOutsideThisEl(t),a)do{if(a[Gl]){var n=void 0;if(n=a[Gl]._onDragOver({clientX:Dl.clientX,clientY:Dl.clientY,target:t,rootEl:a}),n&&!this.options.dragoverBubble)break}t=a}while(a=a.parentNode);OW()}},_onTouchMove:function(t){if(yn){var a=this.options,n=a.fallbackTolerance,i=a.fallbackOffset,c=t.touches?t.touches[0]:t,d=Ke&&Xi(Ke,!0),o=Ke&&d&&d.a,s=Ke&&d&&d.d,m=Bd&&Bt&&Fb(Bt),r=(c.clientX-yn.clientX+i.x)/(o||1)+(m?m[0]-jm[0]:0)/(o||1),u=(c.clientY-yn.clientY+i.y)/(s||1)+(m?m[1]-jm[1]:0)/(s||1);if(!De.active&&!mi){if(n&&Math.max(Math.abs(c.clientX-this._lastX),Math.abs(c.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Ke){d?(d.e+=r-(km||0),d.f+=u-(Fm||0)):d={a:1,b:0,c:0,d:1,e:r,f:u};var Z="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Je(Ke,"webkitTransform",Z),Je(Ke,"mozTransform",Z),Je(Ke,"msTransform",Z),Je(Ke,"transform",Z),km=r,Fm=u,Dl=c}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Ke){var t=this.options.fallbackOnBody?document.body:bt,a=zt(Ie,!0,Bd,!0,t),n=this.options;if(Bd){for(Bt=t;Je(Bt,"position")==="static"&&Je(Bt,"transform")==="none"&&Bt!==document;)Bt=Bt.parentNode;Bt!==document.body&&Bt!==document.documentElement?(Bt===document&&(Bt=da()),a.top+=Bt.scrollTop,a.left+=Bt.scrollLeft):Bt=da(),jm=Fb(Bt)}Ke=Ie.cloneNode(!0),ul(Ke,n.ghostClass,!1),ul(Ke,n.fallbackClass,!0),ul(Ke,n.dragClass,!0),Je(Ke,"transition",""),Je(Ke,"transform",""),Je(Ke,"box-sizing","border-box"),Je(Ke,"margin",0),Je(Ke,"top",a.top),Je(Ke,"left",a.left),Je(Ke,"width",a.width),Je(Ke,"height",a.height),Je(Ke,"opacity","0.8"),Je(Ke,"position",Bd?"absolute":"fixed"),Je(Ke,"zIndex","100000"),Je(Ke,"pointerEvents","none"),De.ghost=Ke,t.appendChild(Ke),Je(Ke,"transform-origin",jb/parseInt(Ke.style.width)*100+"% "+Cb/parseInt(Ke.style.height)*100+"%")}},_onDragStart:function(t,a){var n=this,i=t.dataTransfer,c=n.options;if(il("dragStart",this,{evt:t}),De.eventCanceled){this._onDrop();return}il("setupClone",this),De.eventCanceled||(Nt=jW(Ie),Nt.draggable=!1,Nt.style["will-change"]="",this._hideClone(),ul(Nt,this.options.chosenClass,!1),De.clone=Nt),n.cloneId=Go(function(){il("clone",n),!De.eventCanceled&&(n.options.removeCloneOnHide||bt.insertBefore(Nt,Ie),n._hideClone(),$t({sortable:n,name:"clone"}))}),!a&&ul(Ie,c.dragClass,!0),a?(Bo=!0,n._loopId=setInterval(n._emulateDragOver,50)):(tt(document,"mouseup",n._onDrop),tt(document,"touchend",n._onDrop),tt(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",c.setData&&c.setData.call(n,i,Ie)),nt(document,"drop",n),Je(Ie,"transform","translateZ(0)")),mi=!0,n._dragStartId=Go(n._dragStarted.bind(n,a,t)),nt(document,"selectstart",n),sc=!0,pc&&Je(document.body,"user-select","none")},_onDragOver:function(t){var a=this.el,n=t.target,i,c,d,o=this.options,s=o.group,m=De.active,r=Od===s,u=o.sort,Z=jt||m,h,p=this,b=!1;if(eu)return;function y(le,se){il(le,p,ua({evt:t,isOwner:r,axis:h?"vertical":"horizontal",revert:d,dragRect:i,targetRect:c,canSort:u,fromSortable:Z,target:n,completed:G,onMove:function(ae,_){return Kd(bt,a,Ie,i,ae,zt(ae),t,_)},changed:N},se))}function W(){y("dragOverAnimationCapture"),p.captureAnimationState(),p!==Z&&Z.captureAnimationState()}function G(le){return y("dragOverCompleted",{insertion:le}),le&&(r?m._hideClone():m._showClone(p),p!==Z&&(ul(Ie,jt?jt.options.ghostClass:m.options.ghostClass,!1),ul(Ie,o.ghostClass,!0)),jt!==p&&p!==De.active?jt=p:p===De.active&&jt&&(jt=null),Z===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){y("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==Z&&(Z.animateAll(),Z._ignoreWhileAnimating=null)),(n===Ie&&!Ie.animated||n===a&&!n.animated)&&(li=null),!o.dragoverBubble&&!t.rootEl&&n!==document&&(Ie.parentNode[Gl]._isOutsideThisEl(t.target),!le&&Yn(t)),!o.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function N(){Zl=Vl(Ie),Ba=Vl(Ie,o.draggable),$t({sortable:p,name:"change",toEl:a,newIndex:Zl,newDraggableIndex:Ba,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),n=na(n,o.draggable,a,!0),y("dragOver"),De.eventCanceled)return b;if(Ie.contains(t.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return G(!1);if(Bo=!1,m&&!o.disabled&&(r?u||(d=Gt!==bt):jt===this||(this.lastPutMode=Od.checkPull(this,m,Ie,t))&&s.checkPut(this,m,Ie,t))){if(h=this._getDirection(t,n)==="vertical",i=zt(Ie),y("dragOverValid"),De.eventCanceled)return b;if(d)return Gt=bt,W(),this._hideClone(),y("revert"),De.eventCanceled||(Mn?bt.insertBefore(Ie,Mn):bt.appendChild(Ie)),G(!0);var L=I0(a,o.draggable);if(!L||aD(t,h,this)&&!L.animated){if(L===Ie)return G(!1);if(L&&a===t.target&&(n=L),n&&(c=zt(n)),Kd(bt,a,Ie,i,n,c,t,!!n)!==!1)return W(),a.appendChild(Ie),Gt=a,N(),G(!0)}else if(L&&lD(t,h,this)){var Y=Ri(a,0,o,!0);if(Y===Ie)return G(!1);if(n=Y,c=zt(n),Kd(bt,a,Ie,i,n,c,t,!1)!==!1)return W(),a.insertBefore(Ie,Y),Gt=a,N(),G(!0)}else if(n.parentNode===a){c=zt(n);var X=0,M,V=Ie.parentNode!==a,z=!_7(Ie.animated&&Ie.toRect||i,n.animated&&n.toRect||c,h),I=h?"top":"left",x=kb(n,"top","top")||kb(Ie,"top","top"),w=x?x.scrollTop:void 0;li!==n&&(M=c[I],yc=!1,Ed=!z&&o.invertSwap||V),X=nD(t,n,c,h,z?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,Ed,li===n);var k;if(X!==0){var j=Vl(Ie);do j-=X,k=Gt.children[j];while(k&&(Je(k,"display")==="none"||k===Ke))}if(X===0||k===n)return G(!1);li=n,Nc=X;var H=n.nextElementSibling,J=!1;J=X===1;var D=Kd(bt,a,Ie,i,n,c,t,J);if(D!==!1)return(D===1||D===-1)&&(J=D===1),eu=!0,setTimeout(tD,30),W(),J&&!H?a.appendChild(Ie):n.parentNode.insertBefore(Ie,J?H:n),x&&FW(x,0,w-x.scrollTop),Gt=Ie.parentNode,M!==void 0&&!Ed&&(Wo=Math.abs(M-zt(n)[I])),N(),G(!0)}if(a.contains(Ie))return G(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){tt(document,"mousemove",this._onTouchMove),tt(document,"touchmove",this._onTouchMove),tt(document,"pointermove",this._onTouchMove),tt(document,"dragover",Yn),tt(document,"mousemove",Yn),tt(document,"touchmove",Yn)},_offUpEvents:function(){var t=this.el.ownerDocument;tt(t,"mouseup",this._onDrop),tt(t,"touchend",this._onDrop),tt(t,"pointerup",this._onDrop),tt(t,"touchcancel",this._onDrop),tt(document,"selectstart",this)},_onDrop:function(t){var a=this.el,n=this.options;if(Zl=Vl(Ie),Ba=Vl(Ie,n.draggable),il("drop",this,{evt:t}),Gt=Ie&&Ie.parentNode,Zl=Vl(Ie),Ba=Vl(Ie,n.draggable),De.eventCanceled){this._nulling();return}mi=!1,Ed=!1,yc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),tu(this.cloneId),tu(this._dragStartId),this.nativeDraggable&&(tt(document,"drop",this),tt(a,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pc&&Je(document.body,"user-select",""),Je(Ie,"transform",""),t&&(sc&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Ke&&Ke.parentNode&&Ke.parentNode.removeChild(Ke),(bt===Gt||jt&&jt.lastPutMode!=="clone")&&Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ie&&(this.nativeDraggable&&tt(Ie,"dragend",this),Cm(Ie),Ie.style["will-change"]="",sc&&!mi&&ul(Ie,jt?jt.options.ghostClass:this.options.ghostClass,!1),ul(Ie,this.options.chosenClass,!1),$t({sortable:this,name:"unchoose",toEl:Gt,newIndex:null,newDraggableIndex:null,originalEvent:t}),bt!==Gt?(Zl>=0&&($t({rootEl:Gt,name:"add",toEl:Gt,fromEl:bt,originalEvent:t}),$t({sortable:this,name:"remove",toEl:Gt,originalEvent:t}),$t({rootEl:Gt,name:"sort",toEl:Gt,fromEl:bt,originalEvent:t}),$t({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),jt&&jt.save()):Zl!==hi&&Zl>=0&&($t({sortable:this,name:"update",toEl:Gt,originalEvent:t}),$t({sortable:this,name:"sort",toEl:Gt,originalEvent:t})),De.active&&((Zl==null||Zl===-1)&&(Zl=hi,Ba=Gc),$t({sortable:this,name:"end",toEl:Gt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){il("nulling",this),bt=Ie=Gt=Ke=Mn=Nt=po=Ha=yn=Dl=sc=Zl=Ba=hi=Gc=li=Nc=jt=Od=De.dragged=De.ghost=De.clone=De.active=null,Ho.forEach(function(t){t.checked=!0}),Ho.length=km=Fm=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ie&&(this._onDragOver(t),eD(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],a,n=this.el.children,i=0,c=n.length,d=this.options;i<c;i++)a=n[i],na(a,d.draggable,this.el,!1)&&t.push(a.getAttribute(d.dataIdAttr)||cD(a));return t},sort:function(t,a){var n={},i=this.el;this.toArray().forEach(function(c,d){var o=i.children[d];na(o,this.options.draggable,i,!1)&&(n[c]=o)},this),a&&this.captureAnimationState(),t.forEach(function(c){n[c]&&(i.removeChild(n[c]),i.appendChild(n[c]))}),a&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,a){return na(t,a||this.options.draggable,this.el,!1)},option:function(t,a){var n=this.options;if(a===void 0)return n[t];var i=Gd.modifyOption(this,t,a);typeof i<"u"?n[t]=i:n[t]=a,t==="group"&&DW(n)},destroy:function(){il("destroy",this);var t=this.el;t[Gl]=null,tt(t,"mousedown",this._onTapStart),tt(t,"touchstart",this._onTapStart),tt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(tt(t,"dragover",this),tt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ko.splice(Ko.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ha){if(il("hideClone",this),De.eventCanceled)return;Je(Nt,"display","none"),this.options.removeCloneOnHide&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),Ha=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ha){if(il("showClone",this),De.eventCanceled)return;Ie.parentNode==bt&&!this.options.group.revertClone?bt.insertBefore(Nt,Ie):Mn?bt.insertBefore(Nt,Mn):bt.appendChild(Nt),this.options.group.revertClone&&this.animate(Ie,Nt),Je(Nt,"display",""),Ha=!1}}};function eD(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Kd(e,t,a,n,i,c,d,o){var s,m=e[Gl],r=m.options.onMove,u;return window.CustomEvent&&!ka&&!Wd?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=t,s.from=e,s.dragged=a,s.draggedRect=n,s.related=i||t,s.relatedRect=c||zt(t),s.willInsertAfter=o,s.originalEvent=d,e.dispatchEvent(s),r&&(u=r.call(m,s,d)),u}function Cm(e){e.draggable=!1}function tD(){eu=!1}function lD(e,t,a){var n=zt(Ri(a.el,0,a.options,!0)),i=10;return t?e.clientX<n.left-i||e.clientY<n.top&&e.clientX<n.right:e.clientY<n.top-i||e.clientY<n.bottom&&e.clientX<n.left}function aD(e,t,a){var n=zt(I0(a.el,a.options.draggable)),i=10;return t?e.clientX>n.right+i||e.clientX<=n.right&&e.clientY>n.bottom&&e.clientX>=n.left:e.clientX>n.right&&e.clientY>n.top||e.clientX<=n.right&&e.clientY>n.bottom+i}function nD(e,t,a,n,i,c,d,o){var s=n?e.clientY:e.clientX,m=n?a.height:a.width,r=n?a.top:a.left,u=n?a.bottom:a.right,Z=!1;if(!d){if(o&&Wo<m*i){if(!yc&&(Nc===1?s>r+m*c/2:s<u-m*c/2)&&(yc=!0),yc)Z=!0;else if(Nc===1?s<r+Wo:s>u-Wo)return-Nc}else if(s>r+m*(1-i)/2&&s<u-m*(1-i)/2)return iD(t)}return Z=Z||d,Z&&(s<r+m*c/2||s>u-m*c/2)?s>r+m/2?1:-1:0}function iD(e){return Vl(Ie)<Vl(e)?1:-1}function cD(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,a=t.length,n=0;a--;)n+=t.charCodeAt(a);return n.toString(36)}function dD(e){Ho.length=0;for(var t=e.getElementsByTagName("input"),a=t.length;a--;){var n=t[a];n.checked&&Ho.push(n)}}function Go(e){return setTimeout(e,0)}function tu(e){return clearTimeout(e)}vs&&nt(document,"touchmove",function(e){(De.active||mi)&&e.cancelable&&e.preventDefault()});De.utils={on:nt,off:tt,css:Je,find:vW,is:function(t,a){return!!na(t,a,t,!1)},extend:O7,throttle:kW,closest:na,toggleClass:ul,clone:jW,index:Vl,nextTick:Go,cancelNextTick:tu,detectDirection:JW,getChild:Ri};De.get=function(e){return e[Gl]};De.mount=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];t[0].constructor===Array&&(t=t[0]),t.forEach(function(n){if(!n.prototype||!n.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));n.utils&&(De.utils=ua(ua({},De.utils),n.utils)),Gd.mount(n)})};De.create=function(e,t){return new De(e,t)};De.version=C7;var Mt=[],mc,lu,au=!1,Jm,Dm,Po,rc;function oD(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(a){var n=a.originalEvent;this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):n.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(a){var n=a.originalEvent;!this.options.dragOverBubble&&!n.rootEl&&this._handleAutoScroll(n)},drop:function(){this.sortable.nativeDraggable?tt(document,"dragover",this._handleAutoScroll):(tt(document,"pointermove",this._handleFallbackAutoScroll),tt(document,"touchmove",this._handleFallbackAutoScroll),tt(document,"mousemove",this._handleFallbackAutoScroll)),Db(),No(),E7()},nulling:function(){Po=lu=mc=au=rc=Jm=Dm=null,Mt.length=0},_handleFallbackAutoScroll:function(a){this._handleAutoScroll(a,!0)},_handleAutoScroll:function(a,n){var i=this,c=(a.touches?a.touches[0]:a).clientX,d=(a.touches?a.touches[0]:a).clientY,o=document.elementFromPoint(c,d);if(Po=a,n||this.options.forceAutoScrollFallback||Wd||ka||pc){Um(a,this.options,o,n);var s=Qa(o,!0);au&&(!rc||c!==Jm||d!==Dm)&&(rc&&Db(),rc=setInterval(function(){var m=Qa(document.elementFromPoint(c,d),!0);m!==s&&(s=m,No()),Um(a,i.options,m,n)},10),Jm=c,Dm=d)}else{if(!this.options.bubbleScroll||Qa(o,!0)===da()){No();return}Um(a,this.options,Qa(o,!1),!1)}}},Sa(e,{pluginName:"scroll",initializeByDefault:!0})}function No(){Mt.forEach(function(e){clearInterval(e.pid)}),Mt=[]}function Db(){clearInterval(rc)}var Um=kW(function(e,t,a,n){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,c=(e.touches?e.touches[0]:e).clientY,d=t.scrollSensitivity,o=t.scrollSpeed,s=da(),m=!1,r;lu!==a&&(lu=a,No(),mc=t.scroll,r=t.scrollFn,mc===!0&&(mc=Qa(a,!0)));var u=0,Z=mc;do{var h=Z,p=zt(h),b=p.top,y=p.bottom,W=p.left,G=p.right,N=p.width,L=p.height,Y=void 0,X=void 0,M=h.scrollWidth,V=h.scrollHeight,z=Je(h),I=h.scrollLeft,x=h.scrollTop;h===s?(Y=N<M&&(z.overflowX==="auto"||z.overflowX==="scroll"||z.overflowX==="visible"),X=L<V&&(z.overflowY==="auto"||z.overflowY==="scroll"||z.overflowY==="visible")):(Y=N<M&&(z.overflowX==="auto"||z.overflowX==="scroll"),X=L<V&&(z.overflowY==="auto"||z.overflowY==="scroll"));var w=Y&&(Math.abs(G-i)<=d&&I+N<M)-(Math.abs(W-i)<=d&&!!I),k=X&&(Math.abs(y-c)<=d&&x+L<V)-(Math.abs(b-c)<=d&&!!x);if(!Mt[u])for(var j=0;j<=u;j++)Mt[j]||(Mt[j]={});(Mt[u].vx!=w||Mt[u].vy!=k||Mt[u].el!==h)&&(Mt[u].el=h,Mt[u].vx=w,Mt[u].vy=k,clearInterval(Mt[u].pid),(w!=0||k!=0)&&(m=!0,Mt[u].pid=setInterval((function(){n&&this.layer===0&&De.active._onTouchMove(Po);var H=Mt[this.layer].vy?Mt[this.layer].vy*o:0,J=Mt[this.layer].vx?Mt[this.layer].vx*o:0;typeof r=="function"&&r.call(De.dragged.parentNode[Gl],J,H,e,Po,Mt[this.layer].el)!=="continue"||FW(Mt[this.layer].el,J,H)}).bind({layer:u}),24))),u++}while(t.bubbleScroll&&Z!==s&&(Z=Qa(Z,!1)));au=m}},30),EW=function(t){var a=t.originalEvent,n=t.putSortable,i=t.dragEl,c=t.activeSortable,d=t.dispatchSortableEvent,o=t.hideGhostForTarget,s=t.unhideGhostForTarget;if(a){var m=n||c;o();var r=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,u=document.elementFromPoint(r.clientX,r.clientY);s(),m&&!m.el.contains(u)&&(d("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function x0(){}x0.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var a=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var i=Ri(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(a,i):this.sortable.el.appendChild(a),this.sortable.animateAll(),n&&n.animateAll()},drop:EW};Sa(x0,{pluginName:"revertOnSpill"});function g0(){}g0.prototype={onSpill:function(t){var a=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),a.parentNode&&a.parentNode.removeChild(a),n.animateAll()},drop:EW};Sa(g0,{pluginName:"removeOnSpill"});De.mount(new oD);De.mount(g0,x0);function sD(e,t){return Object.values(e).indexOf(t)}function mD(e,t,a,n){if(!e)return[];const i=Object.values(e),c=t.length-n;return[...t].map((d,o)=>o>=c?i.length:i.indexOf(d))}function rD(e){return["transition-group","TransitionGroup"].includes(e)}function Ub(e){if(!e||e.length!==1)return!1;const[{type:t}]=e;return t?rD(t.name):!1}function uD(e,t){return t?{...t.props,...t.attrs}:e}var nu=["Start","Add","Remove","Update","End"],iu=["Choose","Unchoose","Sort","Filter","Clone"],ZD=["Move",...nu,...iu].map(e=>"on"+e),Om=null,bD=(0,l.defineComponent)({name:"VueDraggableNext",inheritAttrs:!1,props:{options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:e=>e},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},emits:["update:modelValue","move","change",...nu.map(e=>e.toLowerCase()),...iu.map(e=>e.toLowerCase())],setup(e,{emit:t,slots:a,attrs:n}){const i=(0,l.ref)(!1),c=(0,l.ref)(!1),d=(0,l.ref)(0),o=(0,l.ref)(0),s=(0,l.ref)([]),m=(0,l.ref)(null),r=(0,l.ref)(null),u=(0,l.computed)(()=>e.list?e.list:e.modelValue),Z=(0,l.getCurrentInstance)();function h(){return e.component?(0,l.resolveComponent)(e.component):e.tag}function p(g){if(r.value)for(const T in g){const f=wb(T);ZD.indexOf(f)===-1&&r.value.option(f,g[T])}}function b(){return Z?.proxy?.$el.children||[]}async function y(){await(0,l.nextTick)(),s.value=mD(b(),Z?.proxy?.$el.children||[],i.value,o.value)}function W(g){const T=sD(b()||[],g);return T===-1?null:{index:T,element:u.value?u.value[T]:null}}function G(g){(0,l.nextTick)(()=>t("change",g))}function N(g){if(e.list){g(e.list);return}const T=[...e.modelValue||[]];g(T),t("update:modelValue",T)}function L(...g){N(f=>f.splice(...g))}function Y(g,T){N(S=>S.splice(T,0,S.splice(g,1)[0]))}function X(g){const T=s.value,f=T.length;return g>f-1?f:T[g]}function M(){return a.default&&a.default()[0]?.component?.proxy||null}function V(g){if(!e.noTransitionOnDrag||!i.value)return;const T=b();T[g]&&(T[g].data=null);const f=M();f&&(f.children=[],f.kept=void 0)}function z(g){y(),m.value=W(g.item),m.value&&(g.item._underlying_vm_=e.clone(m.value.element),Om=g.item)}function I(g){const T=g.item._underlying_vm_;if(T===void 0)return;Sm(g.item);const f=X(g.newIndex);L(f,0,T),y(),G({added:{element:T,newIndex:f}})}function x(g){if(Rb(Z?.proxy?.$el,g.item,g.oldIndex),g.pullMode==="clone"){Sm(g.clone);return}if(!m.value)return;const T=m.value.index;L(T,1),V(T),G({removed:{element:m.value.element,oldIndex:T}})}function w(g){Sm(g.item),Rb(g.from,g.item,g.oldIndex);const T=m.value?.index,f=X(g.newIndex);Y(T,f),G({moved:{element:m.value?.element,oldIndex:T,newIndex:f}})}function k(g,T){Object.prototype.hasOwnProperty.call(g,T)&&(g[T]+=d.value)}function j(g){return g.__draggable_component__}function H({to:g,related:T}){const f=j(g);if(!f)return{component:f};const S=f.realList,E={list:S,component:f};if(g!==T&&S&&f.getUnderlyingVm){const P=f.getUnderlyingVm(T);if(P)return Object.assign(P,E)}return E}function J(g,T){const f=[...T.to.children].filter(P=>P.style.display!=="none");if(f.length===0)return 0;const S=f.indexOf(T.related),E=g.component.getVmIndex(S);return f.indexOf(Om)!==-1||!T.willInsertAfter?E:E+1}const D=()=>{const g={};nu.forEach(E=>{g["on"+E]=se(E)}),iu.forEach(E=>{g["on"+E]=le.bind(null,E)});const T=Object.keys(n).reduce((E,P)=>(E[wb(P)]=n[P],E),{}),f=Object.assign({},T,g,{onMove:(E,P)=>q(E,P)});"draggable"in f||(f.draggable=">*");const S=Z?.proxy?.$el.nodeType===1?Z.proxy.$el:Z?.proxy?.$el.parentElement||null;S&&(r.value=new De(S,f),S.__draggable_component__=Z?.proxy,y())};function le(g,T){(0,l.nextTick)(()=>t(g.toLowerCase(),T))}function se(g){return T=>{if(u.value!==null){const f=_["onDrag"+g];f&&f(T)}le(g,T)}}function q(g,T){const f=e.move;if(!f||!u.value)return!0;const S=H(g),E=m.value,P=J(S,g);return E&&Object.assign(E,{futureIndex:P}),f(Object.assign({},g,{relatedContext:S,draggedContext:E}),T)}function ae(){y(),Om=null}const _={onDragStart:z,onDragAdd:I,onDragRemove:x,onDragUpdate:w,onDragMove:q,onDragEnd:ae};return(0,l.onMounted)(()=>{D()}),e.list!==null&&e.modelValue!==null&&S7.error("list props are mutually exclusive! Please set one."),{getTag:h,realList:u,visibleIndexes:s,noneFunctionalComponentMode:c,headerOffset:d,footerOffset:o,transitionMode:i,computeIndexes:y,updateOptions:p,getChildrenNodes:b,getUnderlyingVm:W,emitChanges:G,alterList:N,spliceList:L,updatePosition:Y,getVmIndex:X,getComponent:M,resetTransitionData:V,onDragStart:z,onDragAdd:I,onDragRemove:x,onDragUpdate:w,updateProperty:k,onDragMove:q,onDragEnd:ae,mounted:D,context:m,sortableInstance:r,getRelatedContextFromMoveEvent:H,getTargetedComponent:j,computeFutureIndex:J}},render(){const e=this.getTag(),t=uD(this.$attrs,this.componentData);if(typeof e=="string"){const n=this.$slots.default&&typeof this.$slots.default=="function"?this.$slots.default():null;return n?(this.transitionMode=Ub(n),(0,l.h)(e,t,n)):(0,l.h)(e,t,[])}const a=this.$slots.default?{default:this.$slots.default}:{};return this.$slots.default&&(this.transitionMode=Ub((typeof this.$slots.default=="function"?this.$slots.default():null)||[])),(0,l.h)(e,t,a)}}),hD=["title"],pD={class:"table-side-scroll"},WD={class:"table-header"},GD={class:"table-reorder"},ND={class:"table-action"},yD=(0,l.defineComponent)({__name:"TableField",props:{description:{default:""},meta:{},fieldname:{},bagelApp:{default:void 0},modelValue:{},frame:{type:Boolean},outline:{type:Boolean},minWidth:{},maxWidth:{},labelColor:{},labelActiveColor:{}},emits:["update:modelValue"],setup(e,{emit:t}){const a=e,n=t;let i,c;const d=(0,l.ref)(a.modelValue),o=a.meta.doc_meta.fields.find(b=>b.fieldname===a.fieldname),s=a.meta.links.find(b=>b.id===o?.options);function m(b,y,W){const G=[...a.modelValue];G[y][W]=b,n("update:modelValue",G)}function r(){const b=[...a.modelValue],y={idx:b.length};s?.fields.forEach(W=>{W.default&&(W.fieldtype==="Check"?y[W.fieldname]=Number.parseInt(W.default):y[W.fieldname]=W.default)}),b.push(y),n("update:modelValue",b)}function u(b){const y=[...a.modelValue];y.splice(b,1),n("update:modelValue",y)}function Z(){d.value.forEach((b,y)=>{b.idx=y+1}),n("update:modelValue",d.value)}const{shellClass:h,shellStyle:p}=Xt(a);return(0,l.onMounted)(()=>{i=a.bagelApp||c}),(b,y)=>{const W=(0,l.resolveComponent)("BagelInput");return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"table-field-wrap",title:e.description},[(0,l.createElementVNode)("div",{class:(0,l.normalizeClass)(["bagel-input",(0,l.unref)(h)]),style:(0,l.normalizeStyle)((0,l.unref)(p))},[(0,l.createElementVNode)("label",null,(0,l.toDisplayString)((0,l.unref)(o)?.label),1)],6),(0,l.createElementVNode)("div",pD,[(0,l.createElementVNode)("div",WD,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(s)?.fields,G=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:`${G.fieldname}header`,class:(0,l.normalizeClass)(["header-col",(0,l.unref)(yu)(G.fieldtype,"pascal")])},(0,l.toDisplayString)(G.label),3))),128))]),(0,l.createVNode)((0,l.unref)(bD),{modelValue:d.value,"onUpdate:modelValue":y[0]||(y[0]=G=>d.value=G),animation:"150",handle:".table-reorder",group:"mainGroup",easing:"cubic-bezier(1, 0, 0, 1)","ghost-class":"ghost",onEnd:Z},{default:(0,l.withCtx)(()=>[(0,l.createVNode)(l.TransitionGroup,null,{default:(0,l.withCtx)(()=>[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(e.modelValue,(G,N)=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:G.id,class:"flex table-row"},[(0,l.createElementVNode)("div",GD,[(0,l.createVNode)((0,l.unref)(Ve),{icon:"more_vert"})]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)((0,l.unref)(s)?.fields,L=>((0,l.openBlock)(),(0,l.createElementBlock)("div",{key:`${L.fieldname}${G.id}`,class:(0,l.normalizeClass)(["table-cell",(0,l.unref)(yu)(L.fieldtype,"pascal")])},[(0,l.createVNode)(W,{"no-label":"","field-meta":L,"bagel-app":(0,l.unref)(i),"model-value":G[L.fieldname],"onUpdate:modelValue":Y=>m(Y,N,L.fieldname)},null,8,["field-meta","bagel-app","model-value","onUpdate:modelValue"])],2))),128)),(0,l.createElementVNode)("div",ND,[(0,l.createVNode)((0,l.unref)(Ve),{icon:"delete",onClick:L=>u(N)},null,8,["onClick"])])]))),128))]),_:1})]),_:1},8,["modelValue"])]),(0,l.createVNode)((0,l.unref)(de),{thin:"",flat:"",icon:"add",color:"light",onClick:r},{default:(0,l.withCtx)(()=>[...y[1]||(y[1]=[(0,l.createTextVNode)(" New ",-1)])]),_:1})],8,hD)}}}),YD=Te(yD,[["__scopeId","data-v-b9d0ba27"]]),BW={version:4,country_calling_codes:{1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],211:["SS"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],239:["ST"],240:["GQ"],241:["GA"],242:["CG"],243:["CD"],244:["AO"],245:["GW"],246:["IO"],247:["AC"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],290:["SH","TA"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],370:["LT"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],381:["RS"],382:["ME"],383:["XK"],385:["HR"],386:["SI"],387:["BA"],389:["MK"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],508:["PM"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],599:["CW","BQ"],670:["TL"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],683:["NU"],685:["WS"],686:["KI"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},countries:{AC:["247","00","(?:[01589]\\d|[2-467])\\d{4}",[5,6]],AD:["376","00","(?:1|6\\d)\\d{7}|[135-9]\\d{5}",[6,8,9],[["(\\d{3})(\\d{3})","$1 $2",["[135-9]"]],["(\\d{4})(\\d{4})","$1 $2",["1"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]]],AE:["971","00","(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",[5,6,7,8,9,10,11,12],[["(\\d{3})(\\d{2,9})","$1 $2",["60|8"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[236]|[479][2-8]"],"0$1"],["(\\d{3})(\\d)(\\d{5})","$1 $2 $3",["[479]"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"]],"0"],AF:["93","00","[2-7]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],"0"],AG:["1","011","(?:268|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([457]\\d{6})$|1","268$1",0,"268"],AI:["1","011","(?:264|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2457]\\d{6})$|1","264$1",0,"264"],AL:["355","00","(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",[6,7,8,9],[["(\\d{3})(\\d{3,4})","$1 $2",["80|9"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["4[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2358][2-5]|4"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["[23578]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["6"],"0$1"]],"0"],AM:["374","00","(?:[1-489]\\d|55|60|77)\\d{6}",[8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[89]0"],"0 $1"],["(\\d{3})(\\d{5})","$1 $2",["2|3[12]"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["1|47"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[3-9]"],"0$1"]],"0"],AO:["244","00","[29]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]]],AR:["54","00","(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",[10,11],[["(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9])","2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8]))|2(?:2[24-9]|3[1-59]|47)","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5[56][46]|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|58|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|54(?:4|5[13-7]|6[89])|86[3-6]))|2(?:2[24-9]|3[1-59]|47)|38(?:[58][78]|7[378])|3(?:454|85[56])[46]|3(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["1"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2-$3",["[23]"],"0$1",1],["(\\d)(\\d{4})(\\d{2})(\\d{4})","$2 15-$3-$4",["9(?:2[2-469]|3[3-578])","9(?:2(?:2[024-9]|3[0-59]|47|6[245]|9[02-8])|3(?:3[28]|4[03-9]|5[2-46-8]|7[1-578]|8[2-9]))","9(?:2(?:[23]02|6(?:[25]|4[6-8])|9(?:[02356]|4[02568]|72|8[23]))|3(?:3[28]|4(?:[04679]|3[5-8]|5[4-68]|8[2379])|5(?:[2467]|3[237]|8[2-5])|7[1-578]|8(?:[2469]|3[2578]|5[4-8]|7[36-8]|8[5-8])))|92(?:2[24-9]|3[1-59]|47)","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3[78]|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8[23])|7[1-578]|8(?:[2469]|3[278]|5(?:[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4[35][56]|58[45]|8(?:[38]5|54|76))[4-6]","9(?:2(?:[23]02|6(?:[25]|4(?:64|[78]))|9(?:[02356]|4(?:[0268]|5[2-6])|72|8[23]))|3(?:3[28]|4(?:[04679]|3(?:5(?:4[0-25689]|[56])|[78])|5(?:4[46]|8)|8[2379])|5(?:[2467]|3[237]|8(?:[23]|4(?:[45]|60)|5(?:4[0-39]|5|64)))|7[1-578]|8(?:[2469]|3[278]|5(?:4(?:4|5[13-7]|6[89])|[56][46]|[78])|7[378]|8(?:6[3-6]|[78]))))|92(?:2[24-9]|3[1-59]|47)|93(?:4(?:36|5[56])|8(?:[38]5|76))[4-6]"],"0$1",0,"$1 $2 $3-$4"],["(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1",0,"$1 $2 $3-$4"],["(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 15-$3-$4",["9"],"0$1",0,"$1 $2 $3-$4"]],"0",0,"0?(?:(11|2(?:2(?:02?|[13]|2[13-79]|4[1-6]|5[2457]|6[124-8]|7[1-4]|8[13-6]|9[1267])|3(?:02?|1[467]|2[03-6]|3[13-8]|[49][2-6]|5[2-8]|[67])|4(?:7[3-578]|9)|6(?:[0136]|2[24-6]|4[6-8]?|5[15-8])|80|9(?:0[1-3]|[19]|2\\d|3[1-6]|4[02568]?|5[2-4]|6[2-46]|72?|8[23]?))|3(?:3(?:2[79]|6|8[2578])|4(?:0[0-24-9]|[12]|3[5-8]?|4[24-7]|5[4-68]?|6[02-9]|7[126]|8[2379]?|9[1-36-8])|5(?:1|2[1245]|3[237]?|4[1-46-9]|6[2-4]|7[1-6]|8[2-5]?)|6[24]|7(?:[069]|1[1568]|2[15]|3[145]|4[13]|5[14-8]|7[2-57]|8[126])|8(?:[01]|2[15-7]|3[2578]?|4[13-6]|5[4-8]?|6[1-357-9]|7[36-8]?|8[5-8]?|9[124])))15)?","9$1"],AS:["1","011","(?:[58]\\d\\d|684|900)\\d{7}",[10],0,"1",0,"([267]\\d{6})$|1","684$1",0,"684"],AT:["43","00","1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{4,12}|8\\d{7,12}|9\\d{8,12}|(?:[367]\\d|4[0-24-9])\\d{4,11}",[4,5,6,7,8,9,10,11,12,13],[["(\\d)(\\d{3,12})","$1 $2",["1(?:11|[2-9])"],"0$1"],["(\\d{3})(\\d{2})","$1 $2",["517"],"0$1"],["(\\d{2})(\\d{3,5})","$1 $2",["5[079]"],"0$1"],["(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?:48|5[0-3579]|[6-9])|7(?:20|32|8)|[89]","(?:31|4)6|51|6(?:485|5[0-3579]|[6-9])|7(?:20|32|8)|[89]"],"0$1"],["(\\d{4})(\\d{3,9})","$1 $2",["[2-467]|5[2-6]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["5"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,7})","$1 $2 $3",["5"],"0$1"]],"0"],AU:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{7}(?:\\d(?:\\d{2})?)?|8[0-24-9]\\d{7})|[2-478]\\d{8}|1\\d{4,7}",[5,6,7,8,9,10,12],[["(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,4})","$1 $2 $3",["16"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["14|4"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[2378]"],"(0$1)"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],"0",0,"(183[12])|0",0,0,0,[["(?:(?:241|349)0\\d\\d|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])|[34]\\d\\d)|91(?:(?:[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}|(?: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])|8(?:55|6[0-8]|[78]\\d|9[02-9]))\\d{6}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,["163\\d{2,6}",[5,6,7,8,9]],["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],AW:["297","00","(?:[25-79]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]]],AX:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","2\\d{4,9}|35\\d{4,5}|(?:60\\d\\d|800)\\d{4,6}|7\\d{5,11}|(?:[14]\\d|3[0-46-9]|50)\\d{4,8}",[5,6,7,8,9,10,11,12],0,"0",0,0,0,0,"18",0,"00"],AZ:["994","00","365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[28]|2|365|46","1[28]|2|365[45]|46","1[28]|2|365(?:4|5[02])|46"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[13-9]"],"0$1"]],"0"],BA:["387","00","6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["6[1-3]|[7-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2-$3",["[3-5]|6[56]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["6"],"0$1"]],"0"],BB:["1","011","(?:246|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","246$1",0,"246"],BD:["880","00","[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}",[6,7,8,9,10],[["(\\d{2})(\\d{4,6})","$1-$2",["31[5-8]|[459]1"],"0$1"],["(\\d{3})(\\d{3,7})","$1-$2",["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|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]|2[23]"],"0$1"],["(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],"0"],BE:["32","00","4\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:80|9)0"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[239]|4[23]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[15-8]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4"],"0$1"]],"0"],BF:["226","00","[024-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[024-7]"]]]],BG:["359","00","00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",[6,7,8,9,12],[["(\\d)(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["43[1-6]|70[1-9]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[356]|4[124-7]|7[1-9]|8[1-6]|9[1-7]"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["(?:70|8)0"],"0$1"],["(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["43[1-7]|7"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[48]|9[08]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"]],"0"],BH:["973","00","[136-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[13679]|8[02-4679]"]]]],BI:["257","00","(?:[267]\\d|31)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]]],BJ:["229","00","(?:01\\d|8)\\d{7}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["0"]]]],BL:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],BM:["1","011","(?:441|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","441$1",0,"441"],BN:["673","00","[2-578]\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]]],BO:["591","00(?:1\\d)?","(?:[2-7]\\d\\d|8001)\\d{5}",[8,9],[["(\\d)(\\d{7})","$1 $2",["[23]|4[46]|50"]],["(\\d{8})","$1",["[5-7]"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"]]],"0",0,"0(1\\d)?"],BQ:["599","00","(?:[34]1|7\\d)\\d{5}",[7],0,0,0,0,0,0,"[347]"],BR:["55","00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","[1-467]\\d{9,10}|55[0-46-9]\\d{8}|[34]\\d{7}|55\\d{7,8}|(?:5[0-46-9]|[89]\\d)\\d{7,9}",[8,9,10,11],[["(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37|86)","300|4(?:0(?:0|20)|370|864)"]],["(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-57]"],"($1)"],["(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)"]],"0",0,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2"],BS:["1","011","(?:242|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([3-8]\\d{6})$|1","242$1",0,"242"],BT:["975","00","[178]\\d{7}|[2-8]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[2-6]|7[246]|8[2-4]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[67]|[78]"]]]],BW:["267","00","(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",[7,8,10],[["(\\d{2})(\\d{5})","$1 $2",["90"]],["(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-9]"]],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37]"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["0"]],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["8"]]]],BY:["375","810","(?:[12]\\d|33|44|902)\\d{7}|8(?:0[0-79]\\d{5,7}|[1-7]\\d{9})|8(?:1[0-489]|[5-79]\\d)\\d{7}|8[1-79]\\d{6,7}|8[0-79]\\d{5}|8\\d{5}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3})","$1 $2",["800"],"8 $1"],["(\\d{3})(\\d{2})(\\d{2,4})","$1 $2 $3",["800"],"8 $1"],["(\\d{4})(\\d{2})(\\d{3})","$1 $2-$3",["1(?:5[169]|6[3-5]|7[179])|2(?:1[35]|2[34]|3[3-5])","1(?:5[169]|6(?:3[1-3]|4|5[125])|7(?:1[3-9]|7[0-24-6]|9[2-7]))|2(?:1[35]|2[34]|3[3-5])"],"8 0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["1(?:[56]|7[467])|2[1-3]"],"8 0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-4]"],"8 0$1"],["(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["[89]"],"8 $1"]],"8",0,"0|80?",0,0,0,0,"8~10"],BZ:["501","00","(?:0800\\d|[2-8])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],["(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]]],CA:["1","011","[2-9]\\d{9}|3\\d{6}",[7,10],0,"1",0,0,0,0,0,[["(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}",[10]],["",[10]],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",[10]],["900[2-9]\\d{6}",[10]],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]\\d{6}",[10]],0,["310\\d{4}",[7]],0,["600[2-9]\\d{6}",[10]]]],CC:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:02|31|60|89)|1(?:18|76)|223)|91(?:0(?:1[0-2]|29)|1(?:[28]2|50|79)|2(?:10|64)|3(?:[06]8|22)|4[29]8|62\\d|70[23]|959))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CD:["243","00","(?:(?:[189]|5\\d)\\d|2)\\d{7}|[1-68]\\d{6}",[7,8,9,10],[["(\\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{2})(\\d{4})","$1 $2 $3",["2"],"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"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["5"],"0$1"]],"0"],CF:["236","00","8776\\d{4}|(?:[27]\\d|61)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-8]"]]]],CG:["242","00","222\\d{6}|(?:0\\d|80)\\d{7}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]]],CH:["41","00","8\\d{11}|[2-9]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8[047]|90"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]|81"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["8"],"0$1"]],"0"],CI:["225","00","[02]\\d{9}",[10],[["(\\d{2})(\\d{2})(\\d)(\\d{5})","$1 $2 $3 $4",["2"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3 $4",["0"]]]],CK:["682","00","[2-578]\\d{4}",[5],[["(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]]],CL:["56","(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0","12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",[9,10,11],[["(\\d{5})(\\d{4})","$1 $2",["219","2196"],"($1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["60|809"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["44"]],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2[1-36]"],"($1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["9(?:10|[2-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["3[2-5]|[47]|5[1-3578]|6[13-57]|8(?:0[1-8]|[1-9])"],"($1)"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["60|8"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{3})(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3 $4",["60"]]]],CM:["237","00","[26]\\d{8}|88\\d{6,7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["88"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]|88"]]]],CN:["86","00|1(?:[12]\\d|79)\\d\\d00","(?:(?:1[03-689]|2\\d)\\d\\d|6)\\d{8}|1\\d{10}|[126]\\d{6}(?:\\d(?:\\d{2})?)?|86\\d{5,6}|(?:[3-579]\\d|8[0-57-9])\\d{5,9}",[7,8,9,10,11,12],[["(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]|3(?:[157]|35|49|9[1-68])|4(?:1[124-9]|2[179]|6[47-9]|7|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(?:07|1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3|4[13]|5[1-5]|7[0-79]|9[0-35-9])|(?:4[35]|59|85)[1-9]","(?:10|2[0-57-9])(?:1[02]|9[56])|8078|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))1","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|80781|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))12","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|807812|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123","10(?:1(?:0|23)|9[56])|2[0-57-9](?:1(?:00|23)|9[56])|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:1[124-9]|2[179]|[35][1-9]|6[47-9]|7\\d|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(?:078|1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|3\\d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))123"],"0$1"],["(\\d{3})(\\d{5,6})","$1 $2",["3(?:[157]|35|49|9[1-68])|4(?:[17]|2[179]|6[47-9]|8[23])|5(?:[1357]|2[37]|4[36]|6[1-46]|80)|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]|4[13]|5[1-5])|(?:4[35]|59|85)[1-9]","(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[1-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))[19]","85[23](?:10|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:10|9[56])","85[23](?:100|95)|(?:3(?:[157]\\d|35|49|9[1-68])|4(?:[17]\\d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]\\d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]\\d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]\\d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:100|9[56])"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["(?:4|80)0"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|2(?:[02-57-9]|1[1-9])","10|2(?:[02-57-9]|1[1-9])","10[0-79]|2(?:[02-57-9]|1[1-79])|(?:10|21)8(?:0[1-9]|[1-9])"],"0$1",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["3(?:[3-59]|7[02-68])|4(?:[26-8]|3[3-9]|5[2-9])|5(?:3[03-9]|[468]|7[028]|9[2-46-9])|6|7(?:[0-247]|3[04-9]|5[0-4689]|6[2368])|8(?:[1-358]|9[1-7])|9(?:[013479]|5[1-5])|(?:[34]1|55|79|87)[02-9]"],"0$1",1],["(\\d{3})(\\d{7,8})","$1 $2",["9"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",1]],"0",0,"(1(?:[12]\\d|79)\\d\\d)|0",0,0,0,0,"00"],CO:["57","00(?:4(?:[14]4|56)|[579])","(?:46|60\\d\\d)\\d{6}|(?:1\\d|[39])\\d{9}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["46"]],["(\\d{3})(\\d{7})","$1 $2",["6|90"],"($1)"],["(\\d{3})(\\d{7})","$1 $2",["3[0-357]|9[14]"]],["(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1",0,"$1 $2 $3"]],"0",0,"0([3579]|4(?:[14]4|56))?"],CR:["506","00","(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",[8,10],[["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"]]],0,0,"(19(?:0[0-2468]|1[09]|20|66|77|99))"],CU:["53","119","(?:[2-7]|8\\d\\d)\\d{7}|[2-47]\\d{6}|[34]\\d{5}",[6,7,8,10],[["(\\d{2})(\\d{4,6})","$1 $2",["2[1-4]|[34]"],"(0$1)"],["(\\d)(\\d{6,7})","$1 $2",["7"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["[56]"],"0$1"],["(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],"0"],CV:["238","0","(?:[2-59]\\d\\d|800)\\d{4}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]]],CW:["599","00","(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[3467]"]],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],0,0,0,0,0,"[69]"],CX:["61","001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","1(?:[0-79]\\d{8}(?:\\d{2})?|8[0-24-9]\\d{7})|[148]\\d{8}|1\\d{5,7}",[6,7,8,9,10,12],0,"0",0,"([59]\\d{7})$|0","8$1",0,0,[["8(?:51(?:0(?:01|30|59|88)|1(?:17|46|75)|2(?:22|35))|91(?:00[6-9]|1(?:[28]1|49|78)|2(?:09|63)|3(?:12|26|75)|4(?:56|97)|64\\d|7(?:0[01]|1[0-2])|958))\\d{3}",[9]],["4(?:79[01]|83[0-36-9]|95[0-3])\\d{5}|4(?:[0-36]\\d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])\\d{6}",[9]],["180(?:0\\d{3}|2)\\d{3}",[7,10]],["190[0-26]\\d{6}",[10]],0,0,0,0,["14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",[9]],["13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",[6,8,10,12]]],"0011"],CY:["357","00","(?:[279]\\d|[58]0)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]]],CZ:["420","00","(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",[9,10,11,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]|9[015-7]"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["96"]],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]]],DE:["49","00","[2579]\\d{5,14}|49(?:[34]0|69|8\\d)\\d\\d?|49(?:37|49|60|7[089]|9\\d)\\d{1,3}|49(?:2[024-9]|3[2-689]|7[1-7])\\d{1,8}|(?:1|[368]\\d|4[0-8])\\d{3,13}|49(?:[015]\\d|2[13]|31|[46][1-8])\\d{1,9}",[4,5,6,7,8,9,10,11,12,13,14,15],[["(\\d{2})(\\d{3,13})","$1 $2",["3[02]|40|[68]9"],"0$1"],["(\\d{3})(\\d{3,12})","$1 $2",["2(?:0[1-389]|1[124]|2[18]|3[14])|3(?:[35-9][15]|4[015])|906|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1","2(?:0[1-389]|12[0-8])|3(?:[35-9][15]|4[015])|906|2(?:[13][14]|2[18])|(?:2[4-9]|4[2-9]|[579][1-9]|[68][1-8])1"],"0$1"],["(\\d{4})(\\d{2,11})","$1 $2",["[24-6]|3(?:[3569][02-46-9]|4[2-4679]|7[2-467]|8[2-46-8])|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]","[24-6]|3(?:3(?:0[1-467]|2[127-9]|3[124578]|7[1257-9]|8[1256]|9[145])|4(?:2[135]|4[13578]|9[1346])|5(?:0[14]|2[1-3589]|6[1-4]|7[13468]|8[13568])|6(?:2[1-489]|3[124-6]|6[13]|7[12579]|8[1-356]|9[135])|7(?:2[1-7]|4[145]|6[1-5]|7[1-4])|8(?:21|3[1468]|6|7[1467]|8[136])|9(?:0[12479]|2[1358]|4[134679]|6[1-9]|7[136]|8[147]|9[1468]))|70[2-8]|8(?:0[2-9]|[1-8])|90[7-9]|[79][1-9]|3[68]4[1347]|3(?:47|60)[1356]|3(?:3[46]|46|5[49])[1246]|3[4579]3[1357]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["138"],"0$1"],["(\\d{5})(\\d{2,10})","$1 $2",["3"],"0$1"],["(\\d{3})(\\d{5,11})","$1 $2",["181"],"0$1"],["(\\d{3})(\\d)(\\d{4,10})","$1 $2 $3",["1(?:3|80)|9"],"0$1"],["(\\d{3})(\\d{7,8})","$1 $2",["1[67]"],"0$1"],["(\\d{3})(\\d{7,12})","$1 $2",["8"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["185","1850","18500"],"0$1"],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["18[68]"],"0$1"],["(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"0$1"],["(\\d{5})(\\d{6})","$1 $2",["15[03568]","15(?:[0568]|3[13])"],"0$1"],["(\\d{3})(\\d{8})","$1 $2",["18"],"0$1"],["(\\d{3})(\\d{2})(\\d{7,8})","$1 $2 $3",["1(?:6[023]|7)"],"0$1"],["(\\d{4})(\\d{2})(\\d{7})","$1 $2 $3",["15[279]"],"0$1"],["(\\d{3})(\\d{2})(\\d{8})","$1 $2 $3",["15"],"0$1"]],"0"],DJ:["253","00","(?:2\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]]],DK:["45","00","[2-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]]],DM:["1","011","(?:[58]\\d\\d|767|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","767$1",0,"767"],DO:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,0,0,0,"8001|8[024]9"],DZ:["213","00","(?:[1-4]|[5-79]\\d|80)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["9"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-8]"],"0$1"]],"0"],EC:["593","00","1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",[8,9,10,11],[["(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)",0,"$1-$2-$3"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],"0"],EE:["372","00","8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[369]|4[3-8]|5(?:[0-2]|5[0-478]|6[45])|7[1-9]|88","[369]|4[3-8]|5(?:[02]|1(?:[0-8]|95)|5[0-478]|6(?:4[0-4]|5[1-589]))|7[1-9]|88"]],["(\\d{4})(\\d{3,4})","$1 $2",["[45]|8(?:00|[1-49])","[45]|8(?:00[1-9]|[1-49])"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],EG:["20","00","[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",[8,9,10],[["(\\d)(\\d{7,8})","$1 $2",["[23]"],"0$1"],["(\\d{2})(\\d{6,7})","$1 $2",["1[35]|[4-6]|8[2468]|9[235-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{8})","$1 $2",["1"],"0$1"]],"0"],EH:["212","00","[5-8]\\d{8}",[9],0,"0",0,0,0,0,0,[["528[89]\\d{5}"],["(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[016-8]\\d|2[0-8]|3[01]|5[0-5]))\\d{6}"],["80[0-7]\\d{6}"],["89\\d{7}"],0,0,0,0,["(?:592(?:4[0-2]|93)|80[89]\\d\\d)\\d{4}"]]],ER:["291","00","[178]\\d{6}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],"0"],ES:["34","00","(?:400|[5-9]\\d\\d)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]00"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[4-9]"]]]],ET:["251","00","(?:11|[2-57-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-57-9]"],"0$1"]],"0"],FI:["358","00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","[1-35689]\\d{4}|7\\d{10,11}|(?:[124-7]\\d|3[0-46-9])\\d{8}|[1-9]\\d{5,8}",[5,6,7,8,9,10,11,12],[["(\\d{5})","$1",["20[2-59]"],"0$1"],["(\\d{3})(\\d{3,7})","$1 $2",["(?:[1-3]0|[68])0|70[07-9]"],"0$1"],["(\\d{2})(\\d{4,8})","$1 $2",["[14]|2[09]|50|7[135]"],"0$1"],["(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"],["(\\d)(\\d{4,9})","$1 $2",["(?:19|[2568])[1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"]],"0",0,0,0,0,"1[03-79]|[2-9]",0,"00"],FJ:["679","0(?:0|52)","45\\d{5}|(?:0800\\d|[235-9])\\d{6}",[7,11],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],0,0,0,0,0,0,0,"00"],FK:["500","00","[2-7]\\d{4}",[5]],FM:["691","00","(?:[39]\\d\\d|820)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[389]"]]]],FO:["298","00","[2-9]\\d{5}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"]]],0,0,"(10(?:01|[12]0|88))"],FR:["33","00","[1-9]\\d{8}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0 $1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[1-79]"],"0$1"]],"0"],GA:["241","00","(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",[7,8],[["(\\d)(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-7]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["11|[67]"],"0$1"]],0,0,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1"],GB:["44","00","[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",[7,9,10],[["(\\d{3})(\\d{4})","$1 $2",["800","8001","80011","800111","8001111"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["845","8454","84546","845464"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["800"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["1(?:38|5[23]|69|76|94)","1(?:(?:38|69)7|5(?:24|39)|768|946)","1(?:3873|5(?:242|39[4-6])|(?:697|768)[347]|9467)"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["1(?:[2-69][02-9]|[78])"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[25]|7(?:0|6[02-9])","[25]|7(?:0|6(?:[03-9]|2[356]))"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[1389]"],"0$1"]],"0",0,"0|180020",0,0,0,[["(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0-5])|4(?:(?:[0-5]\\d|70)\\d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])\\d|6(?:[0-4]\\d|5[01]))\\d)|(?:2(?:(?:0[024-9]|2[3-9]|3[3-79]|4[1-689]|[58][02-9]|6[0-47-9]|7[013-9]|9\\d)\\d|1(?:[0-7]\\d|8[0-3]))|(?:3(?:0\\d|1[0-8]|[25][02-9]|3[02-579]|[468][0-46-9]|7[1-35-79]|9[2-578])|4(?:0[03-9]|[137]\\d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]\\d|2[024-9]|3[015689]|4[02-9]|5[03-9]|7[0-35-9]|8[0-468]|9[0-57-9])|6(?:0[034689]|1\\d|2[0-35689]|[38][013-9]|4[1-467]|5[0-69]|6[13-9]|7[0-8]|9[0-24578])|7(?:0[0246-9]|2\\d|3[0236-8]|4[03-9]|5[0-46-9]|6[013-9]|7[0-35-9]|8[024-9]|9[02-9])|8(?:0[35-9]|2[1-57-9]|3[02-578]|4[0-578]|5[124-9]|6[2-69]|7\\d|8[02-9]|9[02569])|9(?:0[02-589]|[18]\\d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))\\d)\\d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])\\d{3})\\d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2\\d|3[1-8]|6[1-6])|9(?:7(?:2[0-4]|3[2-5])|8(?:2[2-8]|7[0-47-9]|8[3-5])))|3(?:6(?:38[2-5]|47[23])|8(?:47[04-9]|64[0157-9]))|4(?:044[1-7]|20(?:2[23]|8\\d)|6(?:0(?:30|5[2-57]|6[1-8]|7[2-8])|140)|8(?:052|87[1-3]))|5(?:2(?:4(?:3[2-79]|6\\d)|76\\d)|6(?:26[06-9]|686))|6(?:06(?:4\\d|7[4-79])|295[5-7]|35[34]\\d|47(?:24|61)|59(?:5[08]|6[67]|74)|9(?:55[0-4]|77[23]))|7(?:26(?:6[13-9]|7[0-7])|(?:442|688)\\d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]\\d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52\\d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))\\d{3}",[9,10]],["7(?:457[0-57-9]|700[01]|911[028])\\d{5}|7(?:[1-3]\\d\\d|4(?:[0-46-9]\\d|5[0-689])|5(?:0[0-8]|[13-9]\\d|2[0-35-9])|7(?:0[1-9]|[1-7]\\d|8[02-9]|9[0-689])|8(?:[014-9]\\d|[23][0-8])|9(?:[024-9]\\d|1[02-9]|3[0-689]))\\d{6}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]],0," x"],GD:["1","011","(?:473|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","473$1",0,"473"],GE:["995","00","(?:[3-57]\\d\\d|800)\\d{6}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["32"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[57]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[348]"],"0$1"]],"0"],GF:["594","00","(?:694\\d|7093)\\d{5}|(?:59|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]|80[6-9]|9[47]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[89]"],"0$1"]],"0"],GG:["44","00","(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",[7,9,10],0,"0",0,"([25-9]\\d{5})$|0|180020","1481$1",0,0,[["1481[25-9]\\d{5}",[10]],["7(?:(?:781|839)\\d|911[17])\\d{5}",[10]],["80[08]\\d{7}|800\\d{6}|8001111"],["(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",[7,10]],["70\\d{8}",[10]],0,["(?:3[0347]|55)\\d{8}",[10]],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}",[10]],["56\\d{8}",[10]]]],GH:["233","00","[235]\\d{8}|800\\d{5,6}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2358]"],"0$1"]],"0"],GI:["350","00","(?:[25]\\d|60)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["2"]]]],GL:["299","00","(?:19|[2-689]\\d|70)\\d{4}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]]],GM:["220","00","[48]\\d{8}|[2-9]\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[235-9]|4(?:[0-35]|4[16-9])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[48]"]]]],GN:["224","00","722\\d{6}|(?:3|6\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["3"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[67]"]]]],GP:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|80[6-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0",0,0,0,0,0,[["(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9\\d)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],GQ:["240","00","222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],["(\\d{3})(\\d{6})","$1 $2",["[89]"]]]],GR:["30","00","5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",[10,11,12],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["21|7"]],["(\\d{4})(\\d{6})","$1 $2",["2(?:2|3[2-57-9]|4[2-469]|5[2-59]|6[2-9]|7[2-69]|8[2-49])|5"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2689]"]],["(\\d{3})(\\d{3,4})(\\d{5})","$1 $2 $3",["8"]]]],GT:["502","00","80\\d{6}|(?:1\\d{3}|[2-7])\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1 $2",["[2-8]"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],GU:["1","011","(?:[58]\\d\\d|671|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","671$1",0,"671"],GW:["245","00","[49]\\d{8}|4\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["40"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]]],GY:["592","001","(?:[2-8]\\d{3}|9008)\\d{3}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],HK:["852","00(?:30|5[09]|[126-9]?)","8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",[5,6,7,8,9,11],[["(\\d{3})(\\d{2,5})","$1 $2",["900","9003"]],["(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[1-4]|9(?:0[1-9]|[1-8])"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{3})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["9"]]],0,0,0,0,0,0,0,"00"],HN:["504","00","8\\d{10}|[237-9]\\d{7}",[8,11],[["(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]]],HR:["385","00","[2-69]\\d{8}|80\\d{5,7}|[1-79]\\d{7}|6\\d{6}",[7,8,9],[["(\\d{2})(\\d{2})(\\d{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",["6|7[245]"],"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-57]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],"0"],HT:["509","00","[2-589]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]]],HU:["36","00","[235-7]\\d{8}|[1-9]\\d{7}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6|8[2-57-9]|9[2-69]"],"(06 $1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"06 $1"]],"06"],ID:["62","00[89]","00[1-9]\\d{9,14}|(?:[1-36]|8\\d{5})\\d{6}|00\\d{9}|[1-9]\\d{8,10}|[2-9]\\d{7}",[7,8,9,10,11,12,13,14,15,16,17],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["15"]],["(\\d{2})(\\d{5,9})","$1 $2",["2[124]|[36]1"],"(0$1)"],["(\\d{3})(\\d{5,7})","$1 $2",["800"],"0$1"],["(\\d{3})(\\d{5,8})","$1 $2",["[2-79]"],"(0$1)"],["(\\d{3})(\\d{3,4})(\\d{3})","$1-$2-$3",["8[1-35-9]"],"0$1"],["(\\d{3})(\\d{6,8})","$1 $2",["1"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["804"],"0$1"],["(\\d{3})(\\d)(\\d{3})(\\d{3})","$1 $2 $3 $4",["80"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1-$2-$3",["8"],"0$1"]],"0"],IE:["353","00","(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",[7,8,9,10],[["(\\d{2})(\\d{5})","$1 $2",["2[24-9]|47|58|6[237-9]|9[35-9]"],"(0$1)"],["(\\d{3})(\\d{5})","$1 $2",["[45]0"],"(0$1)"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["1"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2569]|4[1-69]|7[14]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["70"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["81"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[78]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["4"],"(0$1)"],["(\\d{2})(\\d)(\\d{3})(\\d{4})","$1 $2 $3 $4",["8"],"0$1"]],"0"],IL:["972","0(?:0|1(?:05|[2-9]))","1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",[7,8,9,10,11,12],[["(\\d{4})(\\d{3})","$1-$2",["125"]],["(\\d{4})(\\d{2})(\\d{2})","$1-$2-$3",["121"]],["(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-489]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1-$2-$3",["12"]],["(\\d{4})(\\d{6})","$1-$2",["159"]],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3-$4",["1[7-9]"]],["(\\d{3})(\\d{1,2})(\\d{3})(\\d{4})","$1-$2 $3-$4",["15"]]],"0"],IM:["44","00","1624\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([25-8]\\d{5})$|0|180020","1624$1",0,"74576|(?:16|7[56])24"],IN:["91","00","(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",[8,9,10,11,12,13],[["(\\d{8})","$1",["5(?:0|2[23]|3[03]|[67]1|88)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|888)","5(?:0|2(?:21|3)|3(?:0|3[23])|616|717|8888)"],0,1],["(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],0,1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],0,1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["11|2[02]|33|4[04]|79[1-6]|80[2-46]","11|2[02]|33|4[04]|79[1-6]|80(?:[2-4]|6[0-589])","11|2[02]|33|4[04]|79(?:[124-6]|3(?:[02-9]|1[0-24-9]))|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]|61|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91)|(?:43|59|75)[15]|(?:1[59]|29|67)[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(?:(?: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)|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(?:3171|5[15][2-6]|61[346]|88(?:[2-7]|82))|8(?:70[2-6]|84(?:[2356]|7[19])|91(?:[3-6]|7[19]))|73[134][2-6]|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]|3[129]|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(?:[23569]|8[0-57-9])|8[1-6])|7(?:1(?:[013-8]|9[6-9])|3(?:17|2[0-49]|9[2-57])|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|8(?:28[235-7]|3))|73179|807(?:1|9[1-3])|(?:1552|6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])\\d|7(?:[23569]\\d|8[0-57-9])|8(?:[14-6]\\d|2[0-79]))|7(?:1(?:[013-8]\\d|9[6-9])|3(?:2[0-49]|9[2-57])|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",["16|[6-9]"],"0$1",1],["(\\d{4})(\\d{2,4})(\\d{4})","$1 $2 $3",["18[06]","18[06]0"],0,1],["(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],0,1]],"0"],IO:["246","00","3\\d{6}",[7],[["(\\d{3})(\\d{4})","$1 $2",["3"]]]],IQ:["964","00","(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-6]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"]],"0"],IR:["98","00","[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",[4,5,6,7,10],[["(\\d{4,5})","$1",["96"],"0$1"],["(\\d{2})(\\d{4,5})","$1 $2",["(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])[12689]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["9"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-8]"],"0$1"]],"0"],IS:["354","00|1(?:0(?:01|[12]0)|100)","(?:38\\d|[4-9])\\d{6}",[7,9],[["(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],0,0,0,0,0,0,0,"00"],IT:["39","00","0\\d{5,11}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:43|55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",[6,7,8,9,10,11,12],[["(\\d{2})(\\d{4,6})","$1 $2",["0[26]"]],["(\\d{3})(\\d{3,6})","$1 $2",["0[13-57-9][0159]|8(?:03|4[17]|9[2-5])","0[13-57-9][0159]|8(?:03|4[17]|9(?:2|3[04]|[45][0-4]))"]],["(\\d{4})(\\d{2,6})","$1 $2",["0(?:[13-579][2-46-8]|8[236-8])"]],["(\\d{4})(\\d{4})","$1 $2",["894"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["0[26]|5"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["1(?:44|[679])|[378]|43"]],["(\\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",["[03]"]]],0,0,0,0,0,0,[["0(?:669[0-79]\\d{1,6}|831\\d{2,8})|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[2356]|[6-8][1-5])|9(?:[0159]\\d|[238][1-5]|4[12]|6[1-8]|7[1-6]))\\d{2,7}"],["3[2-9]\\d{7,8}|(?:31|43)\\d{8}",[9,10]],["80(?:0\\d{3}|3)\\d{3}",[6,9]],["(?:0878\\d{3}|89(?:2\\d|3[04]|4(?:[0-4]|[5-9]\\d\\d)|5[0-4]))\\d\\d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))\\d{6}",[6,8,9,10]],["1(?:78\\d|99)\\d{6}",[9,10]],["3[2-8]\\d{9,10}",[11,12]],0,0,["55\\d{8}",[10]],["84(?:[08]\\d{3}|[17])\\d{3}",[6,9]]]],JE:["44","00","1534\\d{6}|(?:[3578]\\d|90)\\d{8}",[10],0,"0",0,"([0-24-8]\\d{5})$|0|180020","1534$1",0,0,[["1534[0-24-8]\\d{5}"],["7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97\\d))\\d{5}"],["80(?:07(?:35|81)|8901)\\d{4}"],["(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}"],["701511\\d{4}"],0,["(?:3(?:0(?:07(?:35|81)|8901)|3\\d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55\\d{4})\\d{4}"],["76(?:464|652)\\d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])\\d{6}"],["56\\d{8}"]]],JM:["1","011","(?:[58]\\d\\d|658|900)\\d{7}",[10],0,"1",0,0,0,0,"658|876"],JO:["962","00","(?:(?:[2689]|7\\d)\\d|32|427|53)\\d{6}",[8,9],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2356]|87"],"(0$1)"],["(\\d{3})(\\d{5,6})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["70"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[47]"],"0$1"]],"0"],JP:["81","010","00[1-9]\\d{6,14}|[25-9]\\d{9}|(?:00|[1-9]\\d\\d)\\d{6}",[8,9,10,11,12,13,14,15,16,17],[["(\\d{3})(\\d{3})(\\d{3})","$1-$2-$3",["(?:12|57|99)0"],"0$1"],["(\\d{4})(\\d)(\\d{4})","$1-$2-$3",["1(?:26|3[79]|4[56]|5[4-68]|6[3-5])|499|5(?:76|97)|746|8(?:3[89]|47|51)|9(?:80|9[16])","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:76|97)9|7468|8(?:3(?:8[7-9]|96)|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]","1(?:267|3(?:7[247]|9[278])|466|5(?:47|58|64)|6(?:3[245]|48|5[4-68]))|499[2468]|5(?:769|979[2-69])|7468|8(?:3(?:8[7-9]|96[2457-9])|477|51[2-9])|9(?:802|9(?:1[23]|69))|1(?:45|58)[67]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["3|4(?:2[09]|7[01])|6[1-9]","3|4(?:2(?:0|9[02-69])|7(?:0[019]|1))|6[1-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:1|5[45]|77|88|9[69])|2(?:2[1-37]|3[0-269]|4[59]|5|6[24]|7[1-358]|8[1369]|9[0-38])|4(?:[28][1-9]|3[0-57]|[45]|6[248]|7[2-579]|9[29])|5(?:2|3[0459]|4[0-369]|5[29]|8[02389]|9[0-389])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9[2-6])|8(?:2[124589]|3[26-9]|49|51|6|7[0-468]|8[68]|9[019])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9[1-489])","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2(?:[127]|3[014-9])|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9[19])|62|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|8[1-9]|9[29])|5(?:2|3(?:[045]|9[0-8])|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0-2469])|3(?:[29]|60)|49|51|6(?:[0-24]|36|5[0-3589]|7[23]|9[01459])|7[0-468]|8[68])|9(?:[23][1-9]|4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3[34]|4[0178]))|(?:264|837)[016-9]|2(?:57|93)[015-9]|(?:25[0468]|422|838)[01]|(?:47[59]|59[89]|8(?:6[68]|9))[019]","1(?:1|5(?:4[018]|5[017])|77|88|9[69])|2(?:2[127]|3[0-269]|4[59]|5(?:[1-3]|5[0-69]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3(?:[045]|9(?:[0-58]|6[4-9]|7[0-35689]))|4[0-369]|5[29]|8[02389]|9[0-3])|7(?:2[02-46-9]|34|[58]|6[0249]|7[57]|9(?:[23]|4[0-59]|5[01569]|6[0167]))|8(?:2(?:[1258]|4[0-39]|9[0169])|3(?:[29]|60|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[2-57-9]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|7(?:2[2-468]|3[78])|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:8294|96)[1-3]|2(?:57|93)[015-9]|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|8292|9[23])[1-9]|(?:47[59]|59[89]|8(?:68|9))[019]"],"0$1"],["(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["[14]|[289][2-9]|5[3-9]|7[2-4679]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["800"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[25-9]"],"0$1"]],"0",0,"(000[2569]\\d{4,6})$|(?:(?:003768)0?)|0","$1"],KE:["254","000","(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",[7,8,9,10],[["(\\d{2})(\\d{5,7})","$1 $2",["[24-6]"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["[17]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0"],KG:["996","00","8\\d{9}|[235-9]\\d{8}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["3(?:1[346]|[24-79])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-79]|88"],"0$1"],["(\\d{3})(\\d{3})(\\d)(\\d{2,3})","$1 $2 $3 $4",["8"],"0$1"]],"0"],KH:["855","00[14-9]","1\\d{9}|[1-9]\\d{7,8}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],KI:["686","00","(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",[5,8],0,"0"],KM:["269","00","[3478]\\d{6}",[7],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]]],KN:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","869$1",0,"869"],KP:["850","00|99","85\\d{6}|(?:19\\d|[2-7])\\d{7}",[8,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"]],"0"],KR:["82","00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","00[1-9]\\d{8,11}|(?:[12]|5\\d{3})\\d{7}|[13-6]\\d{9}|(?:[1-6]\\d|80)\\d{7}|[3-6]\\d{4,5}|(?:00|7)0\\d{8}",[5,6,8,9,10,11,12,13,14],[["(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1"],["(\\d{4})(\\d{4})","$1-$2",["1"]],["(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["[36]0|8"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1"],["(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1"]],"0",0,"0(8(?:[1-46-8]|5\\d\\d))?"],KW:["965","00","18\\d{5}|(?:[2569]\\d|41)\\d{6}",[7,8],[["(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],["(\\d{3})(\\d{5})","$1 $2",["[245]"]]]],KY:["1","011","(?:345|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","345$1",0,"345"],KZ:["7","810","8\\d{13}|[78]\\d{9}",[10,14],0,"8",0,0,0,0,"7",0,"8~10"],LA:["856","00","[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",[8,9,10],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2[13]|3[14]|[4-8]"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["3"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],"0"],LB:["961","00","[27-9]\\d{7}|[13-9]\\d{6}",[7,8],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-6]|9[04-9])|8[02-9]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],"0"],LC:["1","011","(?:[58]\\d\\d|758|900)\\d{7}",[10],0,"1",0,"([2-8]\\d{6})$|1","758$1",0,"758"],LI:["423","00","[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",[7,9],[["(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]]],"0",0,"(1001)|0"],LK:["94","00","[1-9]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1-689]"],"0$1"]],"0"],LR:["231","00","(?:[2457]\\d|33|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["4[67]|[56]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-578]"],"0$1"]],"0"],LS:["266","00","(?:[256]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2568]"]]]],LT:["370","00","(?:[3469]\\d|52|[78]0)\\d{6}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(0-$1)",1],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"0 $1",1],["(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(0-$1)",1],["(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(0-$1)",1]],"0",0,"[08]"],LU:["352","00","35[013-9]\\d{4,8}|6\\d{8}|35\\d{2,4}|(?:[2457-9]\\d|3[0-46-9])\\d{2,9}",[4,5,6,7,8,9,10,11],[["(\\d{2})(\\d{3})","$1 $2",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["2(?:0[2-689]|[2-9])|[3-57]|8(?:0[2-9]|[13-9])|9(?:0[89]|[2-579])"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["20"]],["(\\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]"]],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["20"]]],0,0,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)"],LV:["371","00","(?:[268]\\d|78|90)\\d{6}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2679]|8[01]"]]]],LY:["218","00","[2-9]\\d{8}",[9],[["(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],"0"],MA:["212","00","[5-8]\\d{8}",[9],[["(\\d{4})(\\d{5})","$1-$2",["892"],"0$1"],["(\\d{2})(\\d{7})","$1-$2",["8(?:0[0-7]|9)"],"0$1"],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[5-8]"],"0$1"]],"0",0,0,0,0,"[5-8]"],MC:["377","00","(?:[3489]|[67]\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["4"],"0$1"],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[389]"]],["(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[67]"],"0$1"]],"0"],MD:["373","00","(?:[235-7]\\d|[89]0)\\d{6}",[8],[["(\\d{3})(\\d{5})","$1 $2",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["22|3"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[25-7]"],"0$1"]],"0"],ME:["382","00","(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],"0"],MF:["590","00","7090\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87\\d)|80[6-9]\\d\\d)\\d{4}"],["(?:69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))|7090[0-4])\\d{4}"],["80[0-5]\\d{6}"],["8[129]\\d{7}"],0,0,0,0,["9(?:(?:39[5-7]|76[018])\\d|475[0-6])\\d{4}"]]],MG:["261","00","[23]\\d{8}",[9],[["(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],"0",0,"([24-9]\\d{6})$|0","20$1"],MH:["692","011","329\\d{4}|(?:[256]\\d|45)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],"1"],MK:["389","00","[2-578]\\d{7}",[8],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2|34[47]|4(?:[37]7|5[47]|64)"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[347]"],"0$1"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["[58]"],"0$1"]],"0"],ML:["223","00","[24-9]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]]],MM:["95","00","1\\d{5,7}|95\\d{6}|(?:[4-7]|9[0-46-9])\\d{6,8}|(?:2|8\\d)\\d{5,8}",[6,7,8,9,10],[["(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["4(?:[2-46]|5[3-5])|5|6(?:[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-5]|(?:60|86)[23]"],"0$1"],["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|452|678|86","[12]|452|6788|86"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[4-7]|8[1-35]"],"0$1"],["(\\d)(\\d{3})(\\d{4,6})","$1 $2 $3",["9(?:2[0-4]|[35-9]|4[137-9])"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["92"],"0$1"],["(\\d)(\\d{5})(\\d{4})","$1 $2 $3",["9"],"0$1"]],"0"],MN:["976","001","[12]\\d{7,9}|[5-9]\\d{7}",[8,9,10],[["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["11|2[16]"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[5-9]"]],["(\\d{3})(\\d{5,6})","$1 $2",["[12]2[1-3]"],"0$1"],["(\\d{4})(\\d{5,6})","$1 $2",["[12](?:27|3[2-8]|4[2-68]|5[1-4689])","[12](?:27|3[2-8]|4[2-68]|5[1-4689])[0-3]"],"0$1"],["(\\d{5})(\\d{4,5})","$1 $2",["[12]"],"0$1"]],"0"],MO:["853","00","0800\\d{3}|(?:28|[68]\\d)\\d{6}",[7,8],[["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{4})(\\d{4})","$1 $2",["[268]"]]]],MP:["1","011","[58]\\d{9}|(?:67|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","670$1",0,"670"],MQ:["596","00","7091\\d{5}|(?:[56]9|[89]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-79]|8(?:0[6-9]|[36])"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],MR:["222","00","(?:[2-4]\\d\\d|800)\\d{5}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]]],MS:["1","011","(?:[58]\\d\\d|664|900)\\d{7}",[10],0,"1",0,"([34]\\d{6})$|1","664$1",0,"664"],MT:["356","00","3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]]],MU:["230","0(?:0|[24-7]0|3[03])","(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",[7,8,10],[["(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],["(\\d{4})(\\d{4})","$1 $2",["[57]"]],["(\\d{5})(\\d{5})","$1 $2",["8"]]],0,0,0,0,0,0,0,"020"],MV:["960","0(?:0|19)","(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",[7,10],[["(\\d{3})(\\d{4})","$1-$2",["[34679]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],0,0,0,0,0,0,0,"00"],MW:["265","00","(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",[7,9],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["1[2-9]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-37-9]"],"0$1"]],"0"],MX:["52","0[09]","[2-9]\\d{9}",[10],[["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"]]],0,0,0,0,0,0,0,"00"],MY:["60","00","1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["[4-79]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1-$2 $3",["1(?:[02469]|[378][1-9]|53)|8","1(?:[02469]|[37][1-9]|53|8(?:[1-46-9]|5[7-9]))|8"],"0$1"],["(\\d)(\\d{4})(\\d{4})","$1-$2 $3",["3"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3-$4",["1(?:[367]|80)"]],["(\\d{3})(\\d{3})(\\d{4})","$1-$2 $3",["15"],"0$1"],["(\\d{2})(\\d{4})(\\d{4})","$1-$2 $3",["1"],"0$1"]],"0"],MZ:["258","00","(?:2|8\\d)\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]]],NA:["264","00","[68]\\d{7,8}",[8,9],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["88"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["87"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],NC:["687","00","(?:050|[2-57-9]\\d\\d)\\d{3}",[6],[["(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]]],NE:["227","00","[027-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["08"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[089]|2[013]|7[0467]"]]]],NF:["672","00","[13]\\d{5}",[6],[["(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],["(\\d)(\\d{5})","$1 $2",["[13]"]]],0,0,"([0-258]\\d{4})$","3$1"],NG:["234","009","(?:20|9\\d)\\d{8}|[78]\\d{9,13}",[10,11,12,13,14],[["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["20[129]"],"0$1"],["(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{3})(\\d{4})(\\d{4,5})","$1 $2 $3",["[78]"],"0$1"],["(\\d{3})(\\d{5})(\\d{5,6})","$1 $2 $3",["[78]"],"0$1"]],"0"],NI:["505","00","(?:1800|[25-8]\\d{3})\\d{4}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]]],NL:["31","00","(?:[124-7]\\d\\d|3(?:[02-9]\\d|1[0-8]))\\d{6}|8\\d{6,9}|9\\d{6,10}|1\\d{4,5}",[5,6,7,8,9,10,11],[["(\\d{3})(\\d{4,7})","$1 $2",["[89]0"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["66"],"0$1"],["(\\d)(\\d{8})","$1 $2",["6"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["1[16-8]|2[259]|3[124]|4[17-9]|5[124679]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-578]|91"],"0$1"],["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3",["9"],"0$1"]],"0"],NO:["47","00","(?:0|[2-9]\\d{3})\\d{4}",[5,8],[["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["8"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-79]"]]],0,0,0,0,0,"[02-689]|7[0-8]"],NP:["977","00","(?:1\\d|9)\\d{9}|[1-9]\\d{7}",[8,10,11],[["(\\d)(\\d{7})","$1-$2",["1[2-6]"],"0$1"],["(\\d{2})(\\d{6})","$1-$2",["1[01]|[2-8]|9(?:[1-59]|[67][2-6])"],"0$1"],["(\\d{3})(\\d{7})","$1-$2",["9"]]],"0"],NR:["674","00","(?:222|444|(?:55|8\\d)\\d|666|777|999)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[24-9]"]]]],NU:["683","00","(?:[4-7]|888\\d)\\d{3}",[4,7],[["(\\d{3})(\\d{4})","$1 $2",["8"]]]],NZ:["64","0(?:0|161)","[1289]\\d{9}|50\\d{5}(?:\\d{2,3})?|[27-9]\\d{7,8}|(?:[34]\\d|6[0-35-9])\\d{6}|8\\d{4,6}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,8})","$1 $2",["8[1-79]"],"0$1"],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|8|90","50(?:[0367]|88)|8|90"],"0$1"],["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["24|[346]|7[2-57-9]|9[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["2(?:10|74)|[589]"],"0$1"],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["1|2[028]"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,5})","$1 $2 $3",["2(?:[169]|7[0-35-9])|7"],"0$1"]],"0",0,0,0,0,0,0,"00"],OM:["968","00","(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",[7,8,9],[["(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],["(\\d{2})(\\d{6})","$1 $2",["2"]],["(\\d{4})(\\d{4})","$1 $2",["[179]"]]]],PA:["507","00","(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",[7,8,10,11],[["(\\d{3})(\\d{4})","$1-$2",["[1-57-9]"]],["(\\d{4})(\\d{4})","$1-$2",["[68]"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]]],PE:["51","00|19(?:1[124]|77|90)00","(?:[14-8]|9\\d)\\d{7}",[8,9],[["(\\d{3})(\\d{5})","$1 $2",["80"],"(0$1)"],["(\\d)(\\d{7})","$1 $2",["1"],"(0$1)"],["(\\d{2})(\\d{6})","$1 $2",["[4-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["9"]]],"0",0,0,0,0,0,0,"00"," Anexo "],PF:["689","00","4\\d{5}(?:\\d{2})?|8\\d{7,8}",[6,8,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["44"]],["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["4|8[7-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],PG:["675","00|140[1-3]","(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85[02-46-9]"]],["(\\d{4})(\\d{4})","$1 $2",["[78]"]]],0,0,0,0,0,0,0,"00"],PH:["63","00","(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",[6,8,9,10,11,12,13],[["(\\d)(\\d{5})","$1 $2",["2"],"(0$1)"],["(\\d{4})(\\d{4,6})","$1 $2",["3(?:23|39|46)|4(?:2[3-6]|[35]9|4[26]|76)|544|88[245]|(?:52|64|86)2","3(?:230|397|461)|4(?:2(?:35|[46]4|51)|396|4(?:22|63)|59[347]|76[15])|5(?:221|446)|642[23]|8(?:622|8(?:[24]2|5[13]))"],"(0$1)"],["(\\d{5})(\\d{4})","$1 $2",["346|4(?:27|9[35])|883","3469|4(?:279|9(?:30|56))|8834"],"(0$1)"],["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["2"],"(0$1)"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|8[2-8]"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]],["(\\d{4})(\\d{1,2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1"]]],"0"],PK:["92","00","122\\d{6}|[24-8]\\d{10,11}|9(?:[013-9]\\d{8,10}|2(?:[01]\\d\\d|2(?:[06-8]\\d|1[01]))\\d{7})|(?:[2-8]\\d{3}|92(?:[0-7]\\d|8[1-9]))\\d{6}|[24-9]\\d{8}|[89]\\d{7}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,7})","$1 $2 $3",["[89]0"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["1"]],["(\\d{3})(\\d{6,7})","$1 $2",["2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8])","9(?:2[3-8]|98)|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:22|3[27-9]|4[2-6]|6[3569]|9[25-7]))[2-9]"],"(0$1)"],["(\\d{2})(\\d{7,8})","$1 $2",["(?:2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]"],"(0$1)"],["(\\d{5})(\\d{5})","$1 $2",["58"],"(0$1)"],["(\\d{3})(\\d{7})","$1 $2",["3"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["2[125]|4[0-246-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91"],"(0$1)"],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[24-9]"],"(0$1)"]],"0"],PL:["48","00","(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",[6,7,8,9,10],[["(\\d{5})","$1",["19"]],["(\\d{3})(\\d{3})","$1 $2",["11|20|64"]],["(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["30|(?: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","30|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])19"]],["(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["64"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["21|39|45|5[0137]|6[0469]|7[02389]|8(?:0[14]|8)"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[2-8]|[2-7]|8[1-79]|9[145]"]],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["8"]]]],PM:["508","00","[78]\\d{8}|[2-9]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[2-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],"0"],PR:["1","011","(?:[589]\\d\\d|787)\\d{7}",[10],0,"1",0,0,0,0,"787|939"],PS:["970","00","[2489]2\\d{6}|(?:1\\d|5)\\d{8}",[8,9,10],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["[2489]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["5"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],PT:["351","00","1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]]],PW:["680","01[12]","(?:[24-8]\\d\\d|345|900)\\d{4}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]]],PY:["595","00","[36-8]\\d{5,8}|4\\d{6,8}|59\\d{6}|9\\d{5,10}|(?:2\\d|5[0-8])\\d{6,7}",[6,7,8,9,10,11],[["(\\d{3})(\\d{3,6})","$1 $2",["[2-9]0"],"0$1"],["(\\d{2})(\\d{5})","$1 $2",["3[289]|4[246-8]|61|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-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[2-8]"],"0$1"],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["9"]]],"0"],QA:["974","00","800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",[7,8,9,11],[["(\\d{3})(\\d{4})","$1 $2",["2[136]|8"]],["(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]]],RE:["262","00","709\\d{6}|(?:26|[689]\\d)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[26-9]"],"0$1"]],"0",0,0,0,0,0,[["2631[0-6]\\d{4}|26(?:2\\d|30|88)\\d{5}"],["(?:69(?:2\\d\\d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4\\d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])\\d{4}"],["80\\d{7}"],["89[1-37-9]\\d{6}"],0,0,0,0,["9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))\\d{4}"],["8(?:1[019]|2[0156]|84|90)\\d{6}"]]],RO:["40","00","(?:[236-8]\\d|90)\\d{7}|[23]\\d{5}",[6,9],[["(\\d{3})(\\d{3})","$1 $2",["2[3-6]","2[3-6]\\d9"],"0$1"],["(\\d{2})(\\d{4})","$1 $2",["219|31"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23]1"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[236-9]"],"0$1"]],"0",0,0,0,0,0,0,0," int "],RS:["381","00","38[02-9]\\d{6,9}|6\\d{7,9}|90\\d{4,8}|38\\d{5,6}|(?:7\\d\\d|800)\\d{3,9}|(?:[12]\\d|3[0-79])\\d{5,10}",[6,7,8,9,10,11,12],[["(\\d{3})(\\d{3,9})","$1 $2",["(?:2[389]|39)0|[7-9]"],"0$1"],["(\\d{2})(\\d{5,10})","$1 $2",["[1-36]"],"0$1"]],"0"],RU:["7","810","8\\d{13}|[347-9]\\d{9}",[10,14],[["(\\d{4})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-8]|2[1-9])","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:1[23]|[2-9]2))","7(?:1(?:[0-356]2|4[29]|7|8[27])|2(?:13[03-69]|62[013-9]))|72[1-57-9]2"],"8 ($1)",1],["(\\d{5})(\\d)(\\d{2})(\\d{2})","$1 $2 $3 $4",["7(?:1[0-68]|2[1-9])","7(?:1(?:[06][3-6]|[18]|2[35]|[3-5][3-5])|2(?:[13][3-5]|[24-689]|7[457]))","7(?:1(?:0(?:[356]|4[023])|[18]|2(?:3[013-9]|5)|3[45]|43[013-79]|5(?:3[1-8]|4[1-7]|5)|6(?:3[0-35-9]|[4-6]))|2(?:1(?:3[178]|[45])|[24-689]|3[35]|7[457]))|7(?:14|23)4[0-8]|71(?:33|45)[1-79]"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["7"],"8 ($1)",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2-$3-$4",["[349]|8(?:[02-7]|1[1-8])"],"8 ($1)",1],["(\\d{4})(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3 $4",["8"],"8 ($1)"]],"8",0,0,0,0,"[3489]",0,"8~10"],RW:["250","00","(?:06|[27]\\d\\d|[89]00)\\d{6}",[8,9],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"]],"0"],SA:["966","00","(?:[15]\\d|800|92)\\d{7}",[9,10],[["(\\d{4})(\\d{5})","$1 $2",["9"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["5"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],"0"],SB:["677","0[01]","[6-9]\\d{6}|[1-6]\\d{4}",[5,7],[["(\\d{2})(\\d{5})","$1 $2",["6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])"]]]],SC:["248","010|0[0-2]","(?:[2489]\\d|64)\\d{5}",[7],[["(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],0,0,0,0,0,0,0,"00"],SD:["249","00","[19]\\d{8}",[9],[["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],"0"],SE:["46","00","(?:[26]\\d\\d|9)\\d{9}|[1-9]\\d{8}|[1-689]\\d{7}|[1-4689]\\d{6}|2\\d{5}",[6,7,8,9,10,12],[["(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1",0,"$1 $2"],["(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3"],["(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2,3})(\\d{2})","$1-$2 $3",["1[2457]|2(?:[247-9]|5[0138])|3[0247-9]|4[1357-9]|5[0-35-9]|6(?:[125689]|4[02-57]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3"],["(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1",0,"$1 $2 $3"],["(\\d{2})(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["1[13689]|2[0136]|3[1356]|4[0246]|54|6[03]|90[1-9]"],"0$1",0,"$1 $2 $3 $4"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1",0,"$1 $2 $3 $4"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1-$2 $3 $4",["[13-5]|2(?:[247-9]|5[0138])|6(?:[124-689]|7[0-2])|9(?:[125-8]|3[02-5]|4[0-3])"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1",0,"$1 $2 $3 $4"],["(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1",0,"$1 $2 $3 $4 $5"]],"0"],SG:["65","0[0-3]\\d","(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",[8,10,11],[["(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-9]|[1-9])"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]],["(\\d{4})(\\d{4})(\\d{3})","$1 $2 $3",["7"]],["(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]]],SH:["290","00","(?:[256]\\d|8)\\d{3}",[4,5],0,0,0,0,0,0,"[256]"],SI:["386","00|10(?:22|66|88|99)","[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",[5,6,7,8],[["(\\d{2})(\\d{3,6})","$1 $2",["8[09]|9"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["59|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[37][01]|4[013]|51|6"],"0$1"],["(\\d)(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[1-57]"],"(0$1)"]],"0",0,0,0,0,0,0,"00"],SJ:["47","00","0\\d{4}|(?:[489]\\d|79)\\d{6}",[5,8],0,0,0,0,0,0,"79"],SK:["421","00","[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",[6,7,9],[["(\\d)(\\d{2})(\\d{3,4})","$1 $2 $3",["21"],"0$1"],["(\\d{2})(\\d{2})(\\d{2,3})","$1 $2 $3",["[3-5][1-8]1","[3-5][1-8]1[67]"],"0$1"],["(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["2"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[689]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[3-5]"],"0$1"]],"0"],SL:["232","00","(?:[237-9]\\d|66)\\d{6}",[8],[["(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],"0"],SM:["378","00","(?:0549|[5-7]\\d)\\d{6}",[8,10],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],["(\\d{4})(\\d{6})","$1 $2",["0"]]],0,0,"([89]\\d{5})$","0549$1"],SN:["221","00","(?:[378]\\d|93)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[379]"]]]],SO:["252","00","[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",[6,7,8,9],[["(\\d{2})(\\d{4})","$1 $2",["8[125]"]],["(\\d{6})","$1",["[134]"]],["(\\d)(\\d{6})","$1 $2",["[15]|2[0-79]|3[0-46-8]|4[0-7]"]],["(\\d{2})(\\d{5,7})","$1 $2",["1|28|9[2-9]"]],["(\\d)(\\d{7})","$1 $2",["[267]|904"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[346-9]"]]],"0"],SR:["597","00","(?:[2-5]|[6-9]\\d)\\d{5}",[6,7],[["(\\d{2})(\\d{2})(\\d{2})","$1-$2-$3",["56"]],["(\\d{3})(\\d{3})","$1-$2",["[2-5]"]],["(\\d{3})(\\d{4})","$1-$2",["[6-9]"]]]],SS:["211","00","[19]\\d{8}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],"0"],ST:["239","00","(?:22|9\\d)\\d{5}",[7],[["(\\d{3})(\\d{4})","$1 $2",["[29]"]]]],SV:["503","00","[25-7]\\d{7}|(?:80\\d|900)\\d{4}(?:\\d{4})?",[7,8,11],[["(\\d{3})(\\d{4})","$1 $2",["[89]"]],["(\\d{4})(\\d{4})","$1 $2",["[25-7]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]]],SX:["1","011","7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"(5\\d{6})$|1","721$1",0,"721"],SY:["963","00","[1-359]\\d{8}|[1-5]\\d{7}",[8,9],[["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-4]|5[1-3]"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[59]"],"0$1",1]],"0"],SZ:["268","00","0800\\d{4}|(?:[237]\\d|900)\\d{6}",[8,9],[["(\\d{4})(\\d{4})","$1 $2",["[0237]"]],["(\\d{5})(\\d{4})","$1 $2",["9"]]]],TA:["290","00","8\\d{3}",[4],0,0,0,0,0,0,"8"],TC:["1","011","(?:[58]\\d\\d|649|900)\\d{7}",[10],0,"1",0,"([2-479]\\d{6})$|1","649$1",0,"649"],TD:["235","00|16","(?:22|[3689]\\d|77)\\d{6}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[236-9]"]]],0,0,0,0,0,0,0,"00"],TG:["228","00","[279]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]]],TH:["66","00[1-9]","(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",[8,9,10,13],[["(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["2"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[13-9]"],"0$1"],["(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],"0"],TJ:["992","810","(?:[0-57-9]\\d|66)\\d{7}",[9],[["(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["44[02-479]|[34]7"]],["(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3(?:[1245]|3[12])"]],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["\\d"]]],0,0,0,0,0,0,0,"8~10"],TK:["690","00","[2-47]\\d{3,6}",[4,5,6,7]],TL:["670","00","7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",[7,8],[["(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],["(\\d{4})(\\d{4})","$1 $2",["7"]]]],TM:["993","810","[1-7]\\d{7}",[8],[["(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2-$3-$4",["12"],"(8 $1)"],["(\\d{3})(\\d)(\\d{2})(\\d{2})","$1 $2-$3-$4",["[1-5]"],"(8 $1)"],["(\\d{2})(\\d{6})","$1 $2",["[67]"],"8 $1"]],"8",0,0,0,0,0,0,"8~10"],TN:["216","00","[2-57-9]\\d{7}",[8],[["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]]],TO:["676","00","(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",[5,7],[["(\\d{2})(\\d{3})","$1-$2",["[2-4]|50|6[09]|7[0-24-69]|8[05]"]],["(\\d{4})(\\d{3})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[5-9]"]]]],TR:["90","00","4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",[7,10,12,13],[["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["512|8[01589]|90"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["5"],"0$1",1],["(\\d{3})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24][1-8]|3[1-9]"],"(0$1)",1],["(\\d{3})(\\d{3})(\\d{6,7})","$1 $2 $3",["80"],"0$1",1]],"0"],TT:["1","011","(?:[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-46-8]\\d{6})$|1","868$1",0,"868"],TV:["688","00","(?:2|7\\d\\d|90)\\d{4}",[5,6,7],[["(\\d{2})(\\d{3})","$1 $2",["2"]],["(\\d{2})(\\d{4})","$1 $2",["90"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],TW:["886","0(?:0[25-79]|19)","[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",[7,8,9,10,11],[["(\\d{2})(\\d)(\\d{4})","$1 $2 $3",["202"],"0$1"],["(\\d{3})(\\d{5})","$1 $2",["826"],"0$1"],["(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["83"],"0$1"],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["82"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[25]0|37|49|8[09]"],"0$1"],["(\\d)(\\d{3,4})(\\d{4})","$1 $2 $3",["[23568]|4(?:0[02-48]|[1-478])|7[1-9]","[23568]|4(?:0[2-48]|[1-478])|(?:400|7)[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"],"0$1"],["(\\d{2})(\\d{4})(\\d{4,5})","$1 $2 $3",["7"],"0$1"]],"0",0,0,0,0,0,0,0,"#"],TZ:["255","00[056]","(?:[25-8]\\d|41|90)\\d{7}",[9],[["(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[89]"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[24]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["5"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[67]"],"0$1"]],"0"],UA:["380","00","[89]\\d{9}|[3-9]\\d{8}",[9,10],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6[12][29]|(?:3[1-8]|4[136-8]|5[12457]|6[49])2|(?:56|65)[24]","6[12][29]|(?:35|4[1378]|5[12457]|6[49])2|(?:56|65)[24]|(?:3[1-46-8]|46)2[013-9]"],"0$1"],["(\\d{4})(\\d{5})","$1 $2",["3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6[0135689]|7[4-6])|6(?:[12][3-7]|[459])","3[1-8]|4(?:[1367]|[45][6-9]|8[4-6])|5(?:[1-5]|6(?:[015689]|3[02389])|7[4-6])|6(?:[12][3-7]|[459])"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[3-7]|89|9[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"],"0$1"]],"0",0,0,0,0,0,0,"0~0"],UG:["256","00[057]","800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",[9],[["(\\d{4})(\\d{5})","$1 $2",["202","2024","20240"],"0$1"],["(\\d{3})(\\d{6})","$1 $2",["20[0-35-7]|4(?:6[45]|[7-9])|[7-9]","20(?:[0135-7]|2[5-9])|4(?:6[45]|[7-9])|[7-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[2-4]"],"0$1"]],"0"],US:["1","011","[2-9]\\d{9}|3\\d{6}",[10],[["(\\d{3})(\\d{4})","$1-$2",["310"],0,1],["(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],0,1,"$1-$2-$3"]],"1",0,0,0,0,0,[["(?:472[2-47-9]|983[2-57-9])\\d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-57-9]|3[1459]|4[08]|5[1-46]|6[0279]|7[02469]|8[13])|3(?:0[1-57-9]|1[02-9]|2[013-79]|3[0-24679]|4[167]|5[0-3]|6[01349]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-57-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|3[016]|4[0156]|5[01679]|6[0-279]|78|8[0-269])|7(?:0[1-46-8]|1[2-9]|2[04-8]|3[0-2478]|4[0378]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[0168]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-3589]|8[04-69]))[2-9]\\d{6}"],[""],["8(?:00|33|44|55|66|77|88)[2-9]\\d{6}"],["900[2-9]\\d{6}"],["52(?:3(?:[2-46-9][02-9]\\d|5(?:[02-46-9]\\d|5[0-46-9]))|4(?:[2-478][02-9]\\d|5(?:[034]\\d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]\\d)|9(?:[05-9]\\d|2[0-5]|49)))\\d{4}|52[34][2-9]1[02-9]\\d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]\\d{6}"]]],UY:["598","0(?:0|1[3-9]\\d)","0004\\d{2,9}|[1249]\\d{7}|2\\d{3,4}|(?:[49]\\d|80)\\d{5}",[4,5,6,7,8,9,10,11,12,13],[["(\\d{4,5})","$1",["21"]],["(\\d{3})(\\d{3,4})","$1 $2",["0"]],["(\\d{3})(\\d{4})","$1 $2",["[49]0|8"],"0$1"],["(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["9"],"0$1"],["(\\d{4})(\\d{4})","$1 $2",["[124]"]],["(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3",["0"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{2,4})","$1 $2 $3 $4",["0"]]],"0",0,0,0,0,0,0,"00"," int. "],UZ:["998","00","(?:20|33|[5-9]\\d)\\d{7}",[9],[["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-9]"]]]],VA:["39","00","0\\d{5,10}|3[0-8]\\d{7,10}|55\\d{8}|8\\d{5}(?:\\d{2,4})?|(?:1\\d|39)\\d{7,8}",[6,7,8,9,10,11,12],0,0,0,0,0,0,"06698"],VC:["1","011","(?:[58]\\d\\d|784|900)\\d{7}",[10],0,"1",0,"([2-7]\\d{6})$|1","784$1",0,"784"],VE:["58","00","[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",[10],[["(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1"]],"0"],VG:["1","011","(?:284|[58]\\d\\d|900)\\d{7}",[10],0,"1",0,"([2-578]\\d{6})$|1","284$1",0,"284"],VI:["1","011","[58]\\d{9}|(?:34|90)0\\d{7}",[10],0,"1",0,"([2-9]\\d{6})$|1","340$1",0,"340"],VN:["84","00","[12]\\d{9}|[135-9]\\d{8}|[16]\\d{6,7}|7\\d{6}",[7,8,9,10],[["(\\d{4})(\\d{4,6})","$1 $2",["1(?:2[02]|[89])"],0,1],["(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["1[26]|6"],"0$1",1],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[1357-9]"],"0$1",1],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["2[48]"],"0$1",1],["(\\d{3})(\\d{4})(\\d{3})","$1 $2 $3",["2"],"0$1",1]],"0"],VU:["678","00","[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",[5,7],[["(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]]],WF:["681","00","(?:40|72|8\\d{4})\\d{4}|[89]\\d{5}",[6,9],[["(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[47-9]"]],["(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]]],WS:["685","0","(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",[5,6,7,10],[["(\\d{5})","$1",["[2-5]|6[1-9]"]],["(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],["(\\d{2})(\\d{5})","$1 $2",["7"]]]],XK:["383","00","2\\d{7,8}|3\\d{7,11}|(?:4\\d\\d|[89]00)\\d{5}",[8,9,10,11,12],[["(\\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",["2|39"],"0$1"],["(\\d{2})(\\d{7,10})","$1 $2",["3"],"0$1"]],"0"],YE:["967","00","(?:1|7\\d)\\d{7}|[1-7]\\d{6}",[7,8,9],[["(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-6]|7(?:[24-6]|8[0-7])"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["7"],"0$1"]],"0"],YT:["262","00","(?:639\\d|7093)\\d{5}|(?:26|80|9\\d)\\d{7}",[9],0,"0",0,0,0,0,0,[["26(?:89\\d|9(?:0[0-467]|15|5[0-4]|6\\d|[78]0))\\d{4}"],["(?:639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])\\d{4}"],["80\\d{7}"],0,0,0,0,0,["9(?:(?:39|47)8[01]|769\\d)\\d{4}"]]],ZA:["27","00","[1-79]\\d{8}|8\\d{4,9}",[5,6,7,8,9,10],[["(\\d{2})(\\d{3,4})","$1 $2",["8[1-4]"],"0$1"],["(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["8[1-4]"],"0$1"],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["860"],"0$1"],["(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-9]"],"0$1"],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"],"0$1"]],"0"],ZM:["260","00","800\\d{6}|(?:21|[579]\\d|63)\\d{7}",[9],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[579]"],"0$1"]],"0"],ZW:["263","00","(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",[7,9,10],[["(\\d{2})(\\d{3,5})","$1 $2",["1|2(?:0[0-36-9]|29|58)|67[0-46-9]|(?:55|68)[0-69]"],"0$1"],["(\\d{3})(\\d{3,5})","$1 $2",["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],"0$1"],["(\\d{3})(\\d{4})","$1 $2",["80"],"0$1"],["(\\d{4})(\\d{3,5})","$1 $2",["548"],"0$1"],["(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["29[013-9]"],"0$1"],["(\\d{2})(\\d{7})","$1 $2",["[256]|39|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",["3"],"0$1"],["(\\d{4})(\\d{6})","$1 $2",["8"],"0$1"]],"0"]},nonGeographic:{800:["800",0,"(?:00|[1-9]\\d)\\d{6}",[8],[["(\\d{4})(\\d{4})","$1 $2",["\\d"]]],0,0,0,0,0,0,[0,0,["(?:00|[1-9]\\d)\\d{6}"]]],808:["808",0,"[1-9]\\d{7}",[8],[["(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,0,["[1-9]\\d{7}"]]],870:["870",0,"7\\d{11}|[235-7]\\d{8}",[9,12],[["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235-7]"]]],0,0,0,0,0,0,[0,["(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}"],0,0,0,0,0,0,["2\\d{8}",[9]]]],878:["878",0,"10\\d{10}",[12],[["(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["10\\d{10}"]]],881:["881",0,"6\\d{9}|[0-36-9]\\d{8}",[9,10],[["(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-37-9]"]],["(\\d)(\\d{3})(\\d{5,6})","$1 $2 $3",["6"]]],0,0,0,0,0,0,[0,["6\\d{9}|[0-36-9]\\d{8}"]]],882:["882",0,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",[7,8,9,10,11,12],[["(\\d{2})(\\d{5})","$1 $2",["16|342"]],["(\\d{2})(\\d{6})","$1 $2",["49"]],["(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["1[36]|9"]],["(\\d{2})(\\d{4})(\\d{3})","$1 $2 $3",["3[23]"]],["(\\d{2})(\\d{3,4})(\\d{4})","$1 $2 $3",["16"]],["(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["10|23|3(?:[15]|4[57])|4|5[12]"]],["(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["34"]],["(\\d{2})(\\d{4,5})(\\d{5})","$1 $2 $3",["[1-35]"]]],0,0,0,0,0,0,[0,["342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|5(?:0\\d{3}|2[0-2]))\\d{7}",[7,8,9,10,12]],0,0,0,["348[57]\\d{7}",[11]],0,0,["1(?:3(?:0[0347]|[13][0139]|2[035]|4[013568]|6[0459]|7[06]|8[15-8]|9[0689])\\d{4}|6\\d{5,10})|(?:345\\d|9[89])\\d{6}|(?:10|2(?:3|85\\d)|3(?:[15]|[69]\\d\\d)|4[15-8]|51)\\d{8}"]]],883:["883",0,"(?:[1-4]\\d|51)\\d{6,10}",[8,9,10,11,12],[["(\\d{3})(\\d{3})(\\d{2,8})","$1 $2 $3",["[14]|2[24-689]|3[02-689]|51[24-9]"]],["(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["510"]],["(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["21"]],["(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["51[13]"]],["(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[235]"]]],0,0,0,0,0,0,[0,0,0,0,0,0,0,0,["(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[0-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}"]]],888:["888",0,"\\d{11}",[11],[["(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],0,0,0,0,0,0,[0,0,0,0,0,0,["\\d{11}"]]],979:["979",0,"[1359]\\d{8}",[9],[["(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],0,0,0,0,0,0,[0,0,0,["[1359]\\d{8}"]]]}};function KW(e,t){var a=Array.prototype.slice.call(t);return a.push(BW),e.apply(this,a)}function Ob(e,t){e=e.split("-"),t=t.split("-");for(var a=e[0].split("."),n=t[0].split("."),i=0;i<3;i++){var c=Number(a[i]),d=Number(n[i]);if(c>d)return 1;if(d>c)return-1;if(!isNaN(c)&&isNaN(d))return 1;if(isNaN(c)&&!isNaN(d))return-1}return e[1]&&t[1]?e[1]>t[1]?1:e[1]<t[1]?-1:0:!e[1]&&t[1]?1:e[1]&&!t[1]?-1:0}var LD={}.constructor;function wn(e){return e!=null&&e.constructor===LD}var XD=/^\d+$/;function MD(e){return XD.test(e)}function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function ks(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eb(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VD(n.key),n)}}function Fs(e,t,a){return t&&Eb(e.prototype,t),a&&Eb(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function VD(e){var t=TD(e,"string");return Si(t)=="symbol"?t:t+""}function TD(e,t){if(Si(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ID="1.2.0",xD="1.7.35",Bb=" ext. ",Ut=(function(){function e(t){ks(this,e),HW(t),this.metadata=t,QW.call(this,t)}return Fs(e,[{key:"getCountries",value:function(){return Object.keys(this.metadata.countries).filter(function(a){return a!=="001"})}},{key:"getCountryMetadata",value:function(a){return this.metadata.countries[a]}},{key:"nonGeographic",value:function(){if(!(this.v1||this.v2||this.v3))return this.metadata.nonGeographic||this.metadata.nonGeographical}},{key:"hasCountry",value:function(a){return this.getCountryMetadata(a)!==void 0}},{key:"hasCallingCode",value:function(a){if(this.getCountryCodesForCallingCode(a))return!0;if(this.nonGeographic()){if(this.nonGeographic()[a])return!0}else{var n=this.countryCallingCodes()[a];if(n&&n.length===1&&n[0]==="001")return!0}}},{key:"isNonGeographicCallingCode",value:function(a){return this.nonGeographic()?!!this.nonGeographic()[a]:!this.getCountryCodesForCallingCode(a)}},{key:"country",value:function(a){return this.selectNumberingPlan(a)}},{key:"selectNumberingPlan",value:function(a,n){var i,c;if(a&&(MD(a)?c=a:i=a),n&&(c=n),i&&i!=="001"){var d=this.getCountryMetadata(i);if(!d)throw new Error("Unknown country: ".concat(i));this.numberingPlan=new Kb(d,this)}else if(c){if(!this.hasCallingCode(c))throw new Error("Unknown calling code: ".concat(c));this.numberingPlan=new Kb(this.getNumberingPlanMetadata(c),this)}else this.numberingPlan=void 0;return this}},{key:"getCountryCodesForCallingCode",value:function(a){var n=this.countryCallingCodes()[a];if(n)return n.length===1&&n[0].length===3?void 0:n}},{key:"getCountryCodeForCallingCode",value:function(a){var n=this.getCountryCodesForCallingCode(a);if(n)return n[0]}},{key:"getNumberingPlanMetadata",value:function(a){var n=this.getCountryCodeForCallingCode(a);if(n)return this.getCountryMetadata(n);if(this.nonGeographic()){var i=this.nonGeographic()[a];if(i)return i}else{var c=this.countryCallingCodes()[a];if(c&&c.length===1&&c[0]==="001")return this.metadata.countries["001"]}}},{key:"countryCallingCode",value:function(){return this.numberingPlan.callingCode()}},{key:"IDDPrefix",value:function(){return this.numberingPlan.IDDPrefix()}},{key:"defaultIDDPrefix",value:function(){return this.numberingPlan.defaultIDDPrefix()}},{key:"nationalNumberPattern",value:function(){return this.numberingPlan.nationalNumberPattern()}},{key:"possibleLengths",value:function(){return this.numberingPlan.possibleLengths()}},{key:"formats",value:function(){return this.numberingPlan.formats()}},{key:"nationalPrefixForParsing",value:function(){return this.numberingPlan.nationalPrefixForParsing()}},{key:"nationalPrefixTransformRule",value:function(){return this.numberingPlan.nationalPrefixTransformRule()}},{key:"leadingDigits",value:function(){return this.numberingPlan.leadingDigits()}},{key:"hasTypes",value:function(){return this.numberingPlan.hasTypes()}},{key:"type",value:function(a){return this.numberingPlan.type(a)}},{key:"ext",value:function(){return this.numberingPlan.ext()}},{key:"countryCallingCodes",value:function(){return this.v1?this.metadata.country_phone_code_to_countries:this.metadata.country_calling_codes}},{key:"chooseCountryByCountryCallingCode",value:function(a){return this.selectNumberingPlan(a)}},{key:"hasSelectedNumberingPlan",value:function(){return this.numberingPlan!==void 0}}])})(),Kb=(function(){function e(t,a){ks(this,e),this.globalMetadataObject=a,this.metadata=t,QW.call(this,a.metadata)}return Fs(e,[{key:"callingCode",value:function(){return this.metadata[0]}},{key:"_getDefaultCountryMetadataForThisCallingCode",value:function(){return this.globalMetadataObject.getNumberingPlanMetadata(this.callingCode())}},{key:"getDefaultCountryMetadataForRegion",value:function(){return this._getDefaultCountryMetadataForThisCallingCode()}},{key:"IDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[1]}},{key:"defaultIDDPrefix",value:function(){if(!(this.v1||this.v2))return this.metadata[12]}},{key:"nationalNumberPattern",value:function(){return this.v1||this.v2?this.metadata[1]:this.metadata[2]}},{key:"possibleLengths",value:function(){if(!this.v1)return this.metadata[this.v2?2:3]}},{key:"_getFormats",value:function(a){return a[this.v1?2:this.v2?3:4]}},{key:"formats",value:function(){var a=this;return(this._getFormats(this.metadata)||this._getFormats(this._getDefaultCountryMetadataForThisCallingCode())||[]).map(function(n){return new gD(n,a)})}},{key:"nationalPrefix",value:function(){return this.metadata[this.v1?3:this.v2?4:5]}},{key:"_getNationalPrefixFormattingRule",value:function(a){return a[this.v1?4:this.v2?5:6]}},{key:"nationalPrefixFormattingRule",value:function(){return this._getNationalPrefixFormattingRule(this.metadata)||this._getNationalPrefixFormattingRule(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"_nationalPrefixForParsing",value:function(){return this.metadata[this.v1?5:this.v2?6:7]}},{key:"nationalPrefixForParsing",value:function(){return this._nationalPrefixForParsing()||this.nationalPrefix()}},{key:"nationalPrefixTransformRule",value:function(){return this.metadata[this.v1?6:this.v2?7:8]}},{key:"_getNationalPrefixIsOptionalWhenFormatting",value:function(){return!!this.metadata[this.v1?7:this.v2?8:9]}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return this._getNationalPrefixIsOptionalWhenFormatting(this.metadata)||this._getNationalPrefixIsOptionalWhenFormatting(this._getDefaultCountryMetadataForThisCallingCode())}},{key:"leadingDigits",value:function(){return this.metadata[this.v1?8:this.v2?9:10]}},{key:"types",value:function(){return this.metadata[this.v1?9:this.v2?10:11]}},{key:"hasTypes",value:function(){return this.types()&&this.types().length===0?!1:!!this.types()}},{key:"type",value:function(a){if(this.hasTypes()&&Hb(this.types(),a))return new wD(Hb(this.types(),a),this)}},{key:"ext",value:function(){return this.v1||this.v2?Bb:this.metadata[13]||Bb}}])})(),gD=(function(){function e(t,a){ks(this,e),this._format=t,this.metadata=a}return Fs(e,[{key:"pattern",value:function(){return this._format[0]}},{key:"format",value:function(){return this._format[1]}},{key:"leadingDigitsPatterns",value:function(){return this._format[2]||[]}},{key:"nationalPrefixFormattingRule",value:function(){return this._format[3]||this.metadata.nationalPrefixFormattingRule()}},{key:"nationalPrefixIsOptionalWhenFormattingInNationalFormat",value:function(){return!!this._format[4]||this.metadata.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"nationalPrefixIsMandatoryWhenFormattingInNationalFormat",value:function(){return this.usesNationalPrefix()&&!this.nationalPrefixIsOptionalWhenFormattingInNationalFormat()}},{key:"usesNationalPrefix",value:function(){return!!(this.nationalPrefixFormattingRule()&&!zD.test(this.nationalPrefixFormattingRule()))}},{key:"internationalFormat",value:function(){return this._format[5]||this.format()}}])})(),zD=/^\(?\$1\)?$/,wD=(function(){function e(t,a){ks(this,e),this.type=t,this.metadata=a}return Fs(e,[{key:"pattern",value:function(){return this.metadata.v1?this.type:this.type[0]}},{key:"possibleLengths",value:function(){if(!this.metadata.v1)return this.type[1]||this.metadata.possibleLengths()}}])})();function Hb(e,t){switch(t){case"FIXED_LINE":return e[0];case"MOBILE":return e[1];case"TOLL_FREE":return e[2];case"PREMIUM_RATE":return e[3];case"PERSONAL_NUMBER":return e[4];case"VOICEMAIL":return e[5];case"UAN":return e[6];case"PAGER":return e[7];case"VOIP":return e[8];case"SHARED_COST":return e[9]}}function HW(e){if(!e)throw new Error("[libphonenumber-js] `metadata` argument not passed. Check your arguments.");if(!wn(e)||!wn(e.countries))throw new Error("[libphonenumber-js] `metadata` argument was passed but it's not a valid metadata. Must be an object having `.countries` child object property. Got ".concat(wn(e)?"an object of shape: { "+Object.keys(e).join(", ")+" }":"a "+RD(e)+": "+e,"."))}var RD=function(t){return Si(t)};function PW(e,t){var a=new Ut(t);if(a.hasCountry(e))return a.selectNumberingPlan(e).countryCallingCode();throw new Error("Unknown country: ".concat(e))}function SD(e,t){return t.countries.hasOwnProperty(e)}function QW(e){var t=e.version;typeof t=="number"?(this.v1=t===1,this.v2=t===2,this.v3=t===3,this.v4=t===4):t?Ob(t,ID)===-1?this.v2=!0:Ob(t,xD)===-1?this.v3=!0:this.v4=!0:this.v1=!0}function fD(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=vD(e))||t&&e&&typeof e.length=="number"){a&&(e=a);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
548
552
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vD(e,t){if(e){if(typeof e=="string")return Pb(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Pb(e,t):void 0}}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function kD(e,t){for(var a=e.slice(),n=fD(t),i;!(i=n()).done;){var c=i.value;e.indexOf(c)<0&&a.push(c)}return a.sort(function(d,o){return d-o})}function Nd(e,t,a){return AW(e,void 0,t,a)}function AW(e,t,a,n){a&&(n=new Ut(n.metadata),n.selectNumberingPlan(a));var i=n.type(t),c=i&&i.possibleLengths()||n.possibleLengths();if(!c)return"IS_POSSIBLE";if(t==="FIXED_LINE_OR_MOBILE"){if(!n.type("FIXED_LINE"))return AW(e,"MOBILE",a,n);var d=n.type("MOBILE");d&&(c=kD(c,d.possibleLengths()))}else if(t&&!i)return"INVALID_LENGTH";var o=e.length,s=c[0];return s===o?"IS_POSSIBLE":s>o?"TOO_SHORT":c[c.length-1]<o?"TOO_LONG":c.indexOf(o,1)>=0?"IS_POSSIBLE":"INVALID_LENGTH"}function FD(e,t,a){t===void 0&&(t={});var n=new Ut(a);if(t.v2){if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.country||e.countryCallingCode)}else{if(!e.phone)return!1;if(e.country){if(!n.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));n.selectNumberingPlan(e.country)}else{if(!e.countryCallingCode)throw new Error("Invalid phone number object passed");n.selectNumberingPlan(e.countryCallingCode)}}if(n.possibleLengths())return _W(e.phone||e.nationalNumber,n);if(e.countryCallingCode&&n.isNonGeographicCallingCode(e.countryCallingCode))return!0;throw new Error('Missing "possibleLengths" in metadata. Perhaps the metadata has been generated before v1.0.18.')}function _W(e,t){return Nd(e,void 0,t)==="IS_POSSIBLE"}function fa(e,t){return e=e||"",new RegExp("^(?:"+t+")$").test(e)}function jD(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=CD(e))||t&&e&&typeof e.length=="number"){a&&(e=a);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
549
553
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CD(e,t){if(e){if(typeof e=="string")return Qb(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Qb(e,t):void 0}}function Qb(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}var JD=["MOBILE","PREMIUM_RATE","TOLL_FREE","SHARED_COST","VOIP","PERSONAL_NUMBER","PAGER","UAN","VOICEMAIL"];function z0(e,t,a){if(t=t||{},!(!e.country&&!e.countryCallingCode)){var n=new Ut(a);n.selectNumberingPlan(e.country||e.countryCallingCode);var i=t.v2?e.nationalNumber:e.phone;if(fa(i,n.nationalNumberPattern())){if(Em(i,"FIXED_LINE",n))return n.type("MOBILE")&&n.type("MOBILE").pattern()===""||!n.type("MOBILE")||Em(i,"MOBILE",n)?"FIXED_LINE_OR_MOBILE":"FIXED_LINE";for(var c=jD(JD),d;!(d=c()).done;){var o=d.value;if(Em(i,o,n))return o}}}}function Em(e,t,a){var n=a.type(t);return!n||!n.pattern()||n.possibleLengths()&&n.possibleLengths().indexOf(e.length)<0?!1:fa(e,n.pattern())}function DD(e,t,a){t=t||{};var n=new Ut(a);return n.selectNumberingPlan(e.country||e.countryCallingCode),n.hasTypes()?z0(e,t,n.metadata)!==void 0:fa(t.v2?e.nationalNumber:e.phone,n.nationalNumberPattern())}var UD=/^[A-Z]{2}$/;function OD(e){return UD.test(e)}var ED=!1;function BD(e,t){var a,n,i=new Ut(t);return OD(e)?(a=e,i.selectNumberingPlan(a),n=i.countryCallingCode()):(n=e,ED&&i.isNonGeographicCallingCode(n)&&(a="001")),{country:a,callingCode:n}}function KD(e,t,a){var n=new Ut(a).getCountryCodesForCallingCode(e);return n?n.filter(function(i){return HD(t,i,a)}):[]}function HD(e,t,a){var n=new Ut(a);return n.selectNumberingPlan(t),n.numberingPlan.possibleLengths().indexOf(e.length)>=0}var tl="0-90-9٠-٩۰-۹",PD="-‐-―−ー-",QD="//",AD="..",_D=" ",$D="()()[]\\[\\]",qD="~⁓∼~",Ql="".concat(PD).concat(QD).concat(AD).concat(_D).concat($D).concat(qD),js="++",eU=new RegExp("(["+tl+"])");function $W(e,t,a,n){if(t){var i=new Ut(n);i.selectNumberingPlan(t||a);var c=new RegExp(i.IDDPrefix());if(e.search(c)===0){e=e.slice(e.match(c)[0].length);var d=e.match(eU);if(!(d&&d[1]!=null&&d[1].length>0&&d[1]==="0"))return e}}}function cu(e,t){if(e&&t.numberingPlan.nationalPrefixForParsing()){var a=new RegExp("^(?:"+t.numberingPlan.nationalPrefixForParsing()+")"),n=a.exec(e);if(n){var i,c,d=n.length-1,o=d>0&&n[d];if(t.nationalPrefixTransformRule()&&o)i=e.replace(a,t.nationalPrefixTransformRule()),d>1&&(c=n[1]);else{var s=n[0];i=e.slice(s.length),o&&(c=n[1])}var m;if(o){var r=e.indexOf(n[1]);e.slice(0,r)===t.numberingPlan.nationalPrefix()&&(m=t.numberingPlan.nationalPrefix())}else m=n[0];return{nationalNumber:i,nationalPrefix:m,carrierCode:c}}}return{nationalNumber:e}}function tU(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=lU(e))||t&&e&&typeof e.length=="number"){a&&(e=a);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
550
554
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lU(e,t){if(e){if(typeof e=="string")return Ab(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ab(e,t):void 0}}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,n=Array(t);a<t;a++)n[a]=e[a];return n}function qW(e,t,a){for(var n=new Ut(a),i=tU(t),c;!(c=i()).done;){var d=c.value;if(n.selectNumberingPlan(d),n.leadingDigits()){if(e&&e.search(n.leadingDigits())===0)return d}else if(z0({phone:e,country:d},void 0,n.metadata))return d}}var aU=!1;function w0(e,t){var a=t.nationalNumber,n=t.metadata;if(aU&&n.isNonGeographicCallingCode(e))return"001";var i=n.getCountryCodesForCallingCode(e);if(i)return i.length===1?i[0]:qW(a,i,n.metadata)}function du(e,t,a){var n=cu(e,a),i=n.carrierCode,c=n.nationalNumber;if(c!==e){if(!nU(e,c,a))return{nationalNumber:e};if(a.numberingPlan.possibleLengths()&&(t||(t=w0(a.numberingPlan.callingCode(),{nationalNumber:c,metadata:a})),!iU(c,t,a)))return{nationalNumber:e}}return{nationalNumber:c,carrierCode:i}}function nU(e,t,a){return!(fa(e,a.nationalNumberPattern())&&!fa(t,a.nationalNumberPattern()))}function iU(e,t,a){switch(Nd(e,t,a)){case"TOO_SHORT":case"INVALID_LENGTH":return!1;default:return!0}}function eG(e,t,a,n,i){if(!(t||a||n))return{number:e};var c=t||a?PW(t||a,i):n;if(e.indexOf(c)===0){var d=new Ut(i);d.selectNumberingPlan(t||a||n);var o=e.slice(c.length),s=du(o,void 0,d).nationalNumber,m=du(e,void 0,d).nationalNumber;if(!fa(m,d.nationalNumberPattern())&&fa(s,d.nationalNumberPattern())||Nd(m,void 0,d)==="TOO_LONG")return{countryCallingCode:c,number:o}}return{number:e}}function R0(e,t,a,n,i){if(!e)return{};var c;if(e[0]!=="+"){var d=$W(e,t||a,n,i);if(d&&d!==e)c=!0,e="+"+d;else{if(t||a||n){var o=eG(e,t,a,n,i),s=o.countryCallingCode,m=o.number;if(s)return{countryCallingCodeSource:"FROM_NUMBER_WITHOUT_PLUS_SIGN",countryCallingCode:s,number:m}}return{number:e}}}if(e[1]==="0")return{};for(var r=new Ut(i),u=2;u-1<=3&&u<=e.length;){var Z=e.slice(1,u);if(r.hasCallingCode(Z))return r.selectNumberingPlan(Z),{countryCallingCodeSource:c?"FROM_NUMBER_WITH_IDD":"FROM_NUMBER_WITH_PLUS_SIGN",countryCallingCode:Z,number:e.slice(u)};u++}return{}}function tG(e){return e.replace(new RegExp("[".concat(Ql,"]+"),"g")," ").trim()}var lG=/(\$\d)/;function aG(e,t,a){var n=a.useInternationalFormat,i=a.withNationalPrefix;a.carrierCode,a.metadata;var c=e.replace(new RegExp(t.pattern()),n?t.internationalFormat():i&&t.nationalPrefixFormattingRule()?t.format().replace(lG,t.nationalPrefixFormattingRule()):t.format());return n?tG(c):c}var cU=/^[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?$/;function dU(e,t,a){var n=new Ut(a);if(n.selectNumberingPlan(e||t),n.defaultIDDPrefix())return n.defaultIDDPrefix();if(cU.test(n.IDDPrefix()))return n.IDDPrefix()}var oU=";ext=",ai=function(t){return"([".concat(tl,"]{1,").concat(t,"})")};function nG(e){var t="20",a="15",n="9",i="6",c="[ \\t,]*",d="[:\\..]?[ \\t,-]*",o="#?",s="(?:e?xt(?:ensi(?:ó?|ó))?n?|e?xtn?|доб|anexo)",m="(?:[xx##~~]|int|int)",r="[- ]+",u="[ \\t]*",Z="(?:,{2}|;)",h=oU+ai(t),p=c+s+d+ai(t)+o,b=c+m+d+ai(n)+o,y=r+ai(i)+"#",W=u+Z+d+ai(a)+o,G=u+"(?:,)+"+d+ai(n)+o;return h+"|"+p+"|"+b+"|"+y+"|"+W+"|"+G}var sU="["+tl+"]{2}",mU="["+js+"]{0,1}(?:["+Ql+"]*["+tl+"]){3,}["+Ql+tl+"]*",rU=new RegExp("^["+js+"]{0,1}(?:["+Ql+"]*["+tl+"]){1,2}$","i"),uU=mU+"(?:"+nG()+")?",ZU=new RegExp("^"+sU+"$|^"+uU+"$","i");function bU(e){return e.length>=2&&ZU.test(e)}function hU(e){return rU.test(e)}function pU(e){var t=e.number,a=e.ext;if(!t)return"";if(t[0]!=="+")throw new Error('"formatRFC3966()" expects "number" to be in E.164 format.');return"tel:".concat(t).concat(a?";ext="+a:"")}var _b={formatExtension:function(t,a,n){return"".concat(t).concat(n.ext()).concat(a)}};function WU(e,t,a,n){a?a=yU({},_b,a):a=_b;var i=new Ut(n);if(e.country&&e.country!=="001"){if(!i.hasCountry(e.country))throw new Error("Unknown country: ".concat(e.country));i.selectNumberingPlan(e.country)}else if(e.countryCallingCode)i.selectNumberingPlan(e.countryCallingCode);else return e.phone||"";var c=i.countryCallingCode(),d=a.v2?e.nationalNumber:e.phone,o;switch(t){case"NATIONAL":return d?(o=Qo(d,e.carrierCode,"NATIONAL",i,a),Bm(o,e.ext,i,a.formatExtension)):"";case"INTERNATIONAL":return d?(o=Qo(d,null,"INTERNATIONAL",i,a),o="+".concat(c," ").concat(o),Bm(o,e.ext,i,a.formatExtension)):"+".concat(c);case"E.164":return"+".concat(c).concat(d);case"RFC3966":return pU({number:"+".concat(c).concat(d),ext:e.ext});case"IDD":if(!a.fromCountry)return;var s=NU(d,e.carrierCode,c,a.fromCountry,i);return s?Bm(s,e.ext,i,a.formatExtension):void 0;default:throw new Error('Unknown "format" argument passed to "formatNumber()": "'.concat(t,'"'))}}function Qo(e,t,a,n,i){var c=GU(n.formats(),e);return c?aG(e,c,{useInternationalFormat:a==="INTERNATIONAL",withNationalPrefix:!(c.nationalPrefixIsOptionalWhenFormattingInNationalFormat()&&i&&i.nationalPrefix===!1),carrierCode:t,metadata:n}):e}function GU(e,t){return YU(e,function(a){if(a.leadingDigitsPatterns().length>0){var n=a.leadingDigitsPatterns()[a.leadingDigitsPatterns().length-1];if(t.search(n)!==0)return!1}return fa(t,a.pattern())})}function Bm(e,t,a,n){return t?n(e,t,a):e}function NU(e,t,a,n,i){if(PW(n,i.metadata)===a){var c=Qo(e,t,"NATIONAL",i);return a==="1"?a+" "+c:c}var d=dU(n,void 0,i.metadata);if(d)return"".concat(d," ").concat(a," ").concat(Qo(e,null,"INTERNATIONAL",i))}function yU(){for(var e=1,t=arguments.length,a=new Array(t),n=0;n<t;n++)a[n]=arguments[n];for(;e<a.length;){if(a[e])for(var i in a[e])a[0][i]=a[e][i];e++}return a[0]}function YU(e,t){for(var a=0;a<e.length;){if(t(e[a]))return e[a];a++}}function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function $b(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),a.push.apply(a,n)}return a}function qb(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?$b(Object(a),!0).forEach(function(n){LU(e,n,a[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):$b(Object(a)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(a,n))})}return e}function LU(e,t,a){return(t=iG(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function XU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e1(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,iG(n.key),n)}}function MU(e,t,a){return t&&e1(e.prototype,t),a&&e1(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function iG(e){var t=VU(e,"string");return jc(t)=="symbol"?t:t+""}function VU(e,t){if(jc(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(jc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S0=(function(){function e(t,a,n){if(XU(this,e),!t)throw new TypeError("First argument is required");if(typeof t!="string")throw new TypeError("First argument must be a string");if(t[0]==="+"&&!a)throw new TypeError("`metadata` argument not passed");if(wn(a)&&wn(a.countries)){n=a;var i=t;if(!TU.test(i))throw new Error('Invalid `number` argument passed: must consist of a "+" followed by digits');var c=R0(i,void 0,void 0,void 0,n),d=c.countryCallingCode;if(a=c.number,t=d,!a)throw new Error("Invalid `number` argument passed: too short")}if(!a)throw new TypeError("`nationalNumber` argument is required");if(typeof a!="string")throw new TypeError("`nationalNumber` argument must be a string");HW(n);var o=BD(t,n),s=o.country,m=o.callingCode;this.country=s,this.countryCallingCode=m,this.nationalNumber=a,this.number="+"+this.countryCallingCode+this.nationalNumber,this.getMetadata=function(){return n}}return MU(e,[{key:"setExt",value:function(a){this.ext=a}},{key:"getPossibleCountries",value:function(){return this.country?[this.country]:KD(this.countryCallingCode,this.nationalNumber,this.getMetadata())}},{key:"isPossible",value:function(){return FD(this,{v2:!0},this.getMetadata())}},{key:"isValid",value:function(){return DD(this,{v2:!0},this.getMetadata())}},{key:"isNonGeographic",value:function(){return new Ut(this.getMetadata()).isNonGeographicCallingCode(this.countryCallingCode)}},{key:"isEqual",value:function(a){return this.number===a.number&&this.ext===a.ext}},{key:"getType",value:function(){return z0(this,{v2:!0},this.getMetadata())}},{key:"format",value:function(a,n){return WU(this,a,n?qb(qb({},n),{},{v2:!0}):{v2:!0},this.getMetadata())}},{key:"formatNational",value:function(a){return this.format("NATIONAL",a)}},{key:"formatInternational",value:function(a){return this.format("INTERNATIONAL",a)}},{key:"getURI",value:function(a){return this.format("RFC3966",a)}}])})(),TU=/^\+\d+$/;function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function t1(e,t){for(var a=0;a<t.length;a++){var n=t[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xU(n.key),n)}}function IU(e,t,a){return t&&t1(e.prototype,t),a&&t1(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e}function xU(e){var t=gU(e,"string");return fi(t)=="symbol"?t:t+""}function gU(e,t){if(fi(e)!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var n=a.call(e,t||"default");if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zU(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wU(e,t,a){return t=Jc(t),RU(e,f0()?Reflect.construct(t,a||[],Jc(e).constructor):t.apply(e,a))}function RU(e,t){if(t&&(fi(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SU(e)}function SU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fU(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cc(e,t)}function ou(e){var t=typeof Map=="function"?new Map:void 0;return ou=function(n){if(n===null||!kU(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return vU(n,arguments,Jc(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Cc(i,n)},ou(e)}function vU(e,t,a){if(f0())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return a&&Cc(i,a.prototype),i}function f0(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f0=function(){return!!e})()}function kU(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Cc(e,t){return Cc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,n){return a.__proto__=n,a},Cc(e,t)}function Jc(e){return Jc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Jc(e)}var ya=(function(e){function t(a){var n;return zU(this,t),n=wU(this,t,[a]),Object.setPrototypeOf(n,t.prototype),n.name=n.constructor.name,n}return fU(t,e),IU(t)})(ou(Error)),l1=new RegExp("(?:"+nG()+")$","i");function FU(e){var t=e.search(l1);if(t<0)return{};for(var a=e.slice(0,t),n=e.match(l1),i=1;i<n.length;){if(n[i])return{number:a,ext:n[i]};i++}}function jU(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a)return(a=a.call(e)).next.bind(a);if(Array.isArray(e)||(a=CU(e))||t&&e&&typeof e.length=="number"){a&&(e=a);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|