PluginProbe
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder / V3.3.2
Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder vV3.3.2
V3.3.2 3.3.1 V-3.3.0 3.2.2 3.2.1 3.2.0 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 V3.0.3 V3.0.2 -3.0.1 V_3.0.0 1.1.1 1.1.8 1.2 1.3 1.4 1.4.18 1.5.2 1.9 2.0 2.10.0 All 139 releases
bit-form / assets / bf-550-57.js

bf-550-57.js in Bit Form – Contact Form, Payment Forms, Multi Step Forms, Calculator & Custom Form Builder V3.3.2, at assets/bf-550-57.js

1,450 lines 567.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./bf-132-161.js","./main-96.js","./main-96.css","./bf-283-176.js","./bf-781-46.js","./bf-212-373.css","./bf-687-180.js","./bf-551-68.js","./bf-200-43.js","./bf-431-60.js","./bf-63-62.js","./bf-762-63.js","./bf-63-372.css","./bf-705-374.css","./bf-163-182.js","./bf-405-178.js","./bf-621-177.js","./bf-751-375.css","./bf-678-179.js","./bf-542-181.js","./bf-403-183.js","./bf-235-184.js","./bf-235-185.js","./bf-890-186.js","./bf-682-187.js","./bf-825-45.js","./bf-894-52.js","./bf-580-188.js","./bf-20-55.js","./bf-135-189.js","./bf-377-190.js","./bf-624-191.js","./bf-362-162.js","./bf-599-163.js","./bf-261-164.js","./bf-717-165.js","./bf-79-166.js","./bf-325-211.js","./bf-994-212.js","./bf-765-167.js","./bf-721-323.js","./bf-460-326.js","./bf-285-324.js","./bf-245-208.js","./bf-870-206.js","./bf-859-210.js","./bf-178-325.js","./bf-828-327.js","./bf-29-328.js","./bf-81-377.css","./bf-239-168.js","./bf-109-329.js","./bf-135-169.js","./bf-909-170.js","./bf-142-330.js","./bf-399-171.js","./bf-522-331.js","./bf-164-335.js","./bf-42-332.js","./bf-605-336.js","./bf-805-333.js","./bf-527-337.js","./bf-524-334.js","./bf-329-172.js","./bf-921-338.js","./bf-508-339.js","./bf-214-173.js","./bf-191-174.js","./bf-270-340.js","./bf-73-175.js","./bf-42-209.js","./bf-10-376.css"])))=>i.map(i=>d[i]);
2 var Xa=Object.defineProperty,Ja=Object.defineProperties;var Qa=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols;var ao=Object.prototype.hasOwnProperty,lo=Object.prototype.propertyIsEnumerable;var so=(e,n,t)=>n in e?Xa(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,S=(e,n)=>{for(var t in n||(n={}))ao.call(n,t)&&so(e,t,n[t]);if(lr)for(var t of lr(n))lo.call(n,t)&&so(e,t,n[t]);return e},B=(e,n)=>Ja(e,Qa(n));var cr=(e,n)=>{var t={};for(var r in e)ao.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&lr)for(var r of lr(e))n.indexOf(r)<0&&lo.call(e,r)&&(t[r]=e[r]);return t};import{bo as xs,bp as Gt,j as o,r as N,a as re,aj as ie,b1 as We,ah as vs,bz as Ni,bb as Kn,a0 as di,a1 as nt,at as be,cs as Jn,ct as Le,ax as ys,av as ws,aw as Ss,bB as js,i as q,an as Mr,h as v,_ as m,aY as Dt,z as co,cu as el,cv as tl,cc as nl,cw as Cs,cx as ee,g as me,ap as rl,cy as uo,cz as zr,k as le,bc as Is,cA as il,f as P,l as _e,bI as K,cB as X,cC as W,cD as ol,cE as ks,cF as sl,u as ce,ay as Qn,cG as Ei,y as al,E as ll,cH as cl,cI as ui,cJ as ne,cK as ve,G as vn,cL as Yt,cM as Qt,bu as Ar,cN as Ts,cO as Ns,q as Mi,bi as Ke,cP as dl,cQ as ul,I as xe,H as Pt,a5 as ue,m as Es,b0 as fo,aA as yn,aZ as gr,cR as fl,cm as Ee,cS as pl,bg as Ms,co as zs,ca as bl,a$ as xr,cT as As,cU as hl,cV as _l,cW as Os,cX as po,cY as bo,cZ as zi,c_ as $l,c$ as ml,d0 as fi,d1 as gl,d2 as Mn,aB as Ai,d3 as ho,aD as Or,F as er,al as Bs,d4 as Oi,aq as Ls,ag as xl,d5 as _o,a2 as $o,ad as vl,d6 as yl,d7 as mo,ae as wl,cj as pi,aG as go,aH as xo,au as Rs,ba as Sl,d8 as bi,az as Fs,M as Ps,bG as $t,aX as vr,d9 as jl,da as Cl,db as Il,dc as kl,dd as vo,de as yo,df as Tl,dg as Nl,ck as El,dh as hi,di as _r,dj as Ml,dk as zl,dl as Al,dm as Ol,dn as Bl,dp as Ll,W as Rl,dq as Fl,dr as Pl,R as Dl,bv as Hl,ds as Ds,dt as Vl,du as Hs,A as Bi,B as Vs,D as St,aM as wo,ak as Wl,aC as Gl,aF as Ul,aL as dr,dv as So,d as Kl,dw as ql,dx as Gr,dy as Ur,bA as Yl}from"./main-96.js";import{D as yr,E as Zl,C as Xl,$ as Jl,a as Br,b as Ql,c as Ws,S as ec,d as tc,u as nc}from"./bf-200-43.js";import{O as fe,C as Gs,S as Xt,T as Kr,a as qr,b as Yr,c as jo,d as rc}from"./bf-283-176.js";import{e as Ie,n as ic,S as _i,j as zn,C as Li,f as Ri,u as oc}from"./bf-781-46.js";import{C as An,$ as $i,S as Us,I as Ks,b as Q,s as gn,a as Co}from"./bf-621-177.js";import{N as Wn,B as ur,a as sc,S as qs}from"./bf-405-178.js";import{G as Qe}from"./bf-678-179.js";import{S as wr}from"./bf-687-180.js";import{S as et,T as ac}from"./bf-542-181.js";import{S as ke}from"./bf-163-182.js";import{B as Io,a as On}from"./bf-403-183.js";import{S as lc,a as cc,D as dc,b as uc,c as fc}from"./bf-235-184.js";import{L as Ys,T as Zs,M as Xs}from"./bf-235-185.js";import{P as pc}from"./bf-551-68.js";import{T as bc}from"./bf-890-186.js";import{F as hc}from"./bf-682-187.js";import{A as _c,a as $c,P as mc,H as gc,T as xc,G as vc}from"./bf-825-45.js";import{D as yc}from"./bf-580-188.js";import{R as wc}from"./bf-20-55.js";import{T as Sc}from"./bf-135-189.js";import{U as ko}from"./bf-377-190.js";import{R as jc}from"./bf-624-191.js";var Zr={},xt={};var mi=function(e,n){return mi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},mi(e,n)};function A(e,n){mi(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function wn(e){return typeof e=="function"}var To=!1,ot={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e)var n=new Error;To=e},get useDeprecatedSynchronousErrorHandling(){return To}};function mn(e){setTimeout(function(){throw e},0)}var Sr={closed:!0,next:function(e){},error:function(e){if(ot.useDeprecatedSynchronousErrorHandling)throw e;mn(e)},complete:function(){}},Ge=(function(){return Array.isArray||(function(e){return e&&typeof e.length=="number"})})();function Fi(e){return e!==null&&typeof e=="object"}var Cc=(function(){function e(n){return Error.call(this),this.message=n?n.length+` errors occurred during unsubscription:
3 `+n.map(function(t,r){return r+1+") "+t.toString()}).join(`
4 `):"",this.name="UnsubscriptionError",this.errors=n,this}return e.prototype=Object.create(Error.prototype),e})(),Un=Cc,$e=(function(){function e(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}return e.prototype.unsubscribe=function(){var n;if(!this.closed){var t=this,r=t._parentOrParents,i=t._ctorUnsubscribe,s=t._unsubscribe,a=t._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof e)r.remove(this);else if(r!==null)for(var l=0;l<r.length;++l){var d=r[l];d.remove(this)}if(wn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(c){n=c instanceof Un?No(c.errors):[c]}}if(Ge(a))for(var l=-1,f=a.length;++l<f;){var u=a[l];if(Fi(u))try{u.unsubscribe()}catch(p){n=n||[],p instanceof Un?n=n.concat(No(p.errors)):n.push(p)}}if(n)throw new Un(n)}},e.prototype.add=function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||typeof t.unsubscribe!="function")return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;t=new e,t._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(i===null)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else if(i.indexOf(this)===-1)i.push(this);else return t;var s=this._subscriptions;return s===null?this._subscriptions=[t]:s.push(t),t},e.prototype.remove=function(n){var t=this._subscriptions;if(t){var r=t.indexOf(n);r!==-1&&t.splice(r,1)}},e.EMPTY=(function(n){return n.closed=!0,n})(new e),e})();function No(e){return e.reduce(function(n,t){return n.concat(t instanceof Un?t.errors:t)},[])}var jr=(function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()})(),U=(function(e){A(n,e);function n(t,r,i){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=Sr;break;case 1:if(!t){s.destination=Sr;break}if(typeof t=="object"){t instanceof n?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new Eo(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new Eo(s,t,r,i);break}return s}return n.prototype[jr]=function(){return this},n.create=function(t,r,i){var s=new n(t,r,i);return s.syncErrorThrowable=!1,s},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},n})($e),Eo=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this)||this;a._parentSubscriber=t;var l,d=a;return wn(r)?l=r:r&&(l=r.next,i=r.error,s=r.complete,r!==Sr&&(d=Object.create(r),wn(d.unsubscribe)&&a.add(d.unsubscribe.bind(d)),d.unsubscribe=a.unsubscribe.bind(a))),a._context=d,a._next=l,a._error=i,a._complete=s,a}return n.prototype.next=function(t){if(!this.isStopped&&this._next){var r=this._parentSubscriber;!ot.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?this.__tryOrUnsub(this._next,t):this.__tryOrSetError(r,this._next,t)&&this.unsubscribe()}},n.prototype.error=function(t){if(!this.isStopped){var r=this._parentSubscriber,i=ot.useDeprecatedSynchronousErrorHandling;if(this._error)!i||!r.syncErrorThrowable?(this.__tryOrUnsub(this._error,t),this.unsubscribe()):(this.__tryOrSetError(r,this._error,t),this.unsubscribe());else if(r.syncErrorThrowable)i?(r.syncErrorValue=t,r.syncErrorThrown=!0):mn(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;mn(t)}}},n.prototype.complete=function(){var t=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};!ot.useDeprecatedSynchronousErrorHandling||!r.syncErrorThrowable?(this.__tryOrUnsub(i),this.unsubscribe()):(this.__tryOrSetError(r,i),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(t,r){try{t.call(this._context,r)}catch(i){if(this.unsubscribe(),ot.useDeprecatedSynchronousErrorHandling)throw i;mn(i)}},n.prototype.__tryOrSetError=function(t,r,i){if(!ot.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return ot.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(mn(s),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n})(U);function Pi(e){for(;e;){var n=e,t=n.closed,r=n.destination,i=n.isStopped;if(t||i)return!1;r&&r instanceof U?e=r:e=null}return!0}function Ic(e,n,t){if(e){if(e instanceof U)return e;if(e[jr])return e[jr]()}return!e&&!n&&!t?new U(Sr):new U(e,n,t)}var In=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Ht(e){return e}function gi(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Js(e)}function Js(e){return e.length===0?Ht:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var te=(function(){function e(n){this._isScalar=!1,n&&(this._subscribe=n)}return e.prototype.lift=function(n){var t=new e;return t.source=this,t.operator=n,t},e.prototype.subscribe=function(n,t,r){var i=this.operator,s=Ic(n,t,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||ot.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),ot.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(n){try{return this._subscribe(n)}catch(t){ot.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),Pi(n)&&n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=Mo(t),new t(function(i,s){var a;a=r.subscribe(function(l){try{n(l)}catch(d){s(d),a&&a.unsubscribe()}},s,i)})},e.prototype._subscribe=function(n){var t=this.source;return t&&t.subscribe(n)},e.prototype[In]=function(){return this},e.prototype.pipe=function(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return n.length===0?this:Js(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=Mo(n),new n(function(r,i){var s;t.subscribe(function(a){return s=a},function(a){return i(a)},function(){return r(s)})})},e.create=function(n){return new e(n)},e})();function Mo(e){if(e||(e=ot.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var kc=(function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})(),Ft=kc,Qs=(function(e){A(n,e);function n(t,r){var i=e.call(this)||this;return i.subject=t,i.subscriber=r,i.closed=!1,i}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,r=t.observers;if(this.subject=null,!(!r||r.length===0||t.isStopped||t.closed)){var i=r.indexOf(this.subscriber);i!==-1&&r.splice(i,1)}}},n})($e),ea=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.destination=t,r}return n})(U),Me=(function(e){A(n,e);function n(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.prototype[jr]=function(){return new ea(this)},n.prototype.lift=function(t){var r=new zo(this,this);return r.operator=t,r},n.prototype.next=function(t){if(this.closed)throw new Ft;if(!this.isStopped)for(var r=this.observers,i=r.length,s=r.slice(),a=0;a<i;a++)s[a].next(t)},n.prototype.error=function(t){if(this.closed)throw new Ft;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var r=this.observers,i=r.length,s=r.slice(),a=0;a<i;a++)s[a].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new Ft;this.isStopped=!0;for(var t=this.observers,r=t.length,i=t.slice(),s=0;s<r;s++)i[s].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(t){if(this.closed)throw new Ft;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Ft;return this.hasError?(t.error(this.thrownError),$e.EMPTY):this.isStopped?(t.complete(),$e.EMPTY):(this.observers.push(t),new Qs(this,t))},n.prototype.asObservable=function(){var t=new te;return t.source=this,t},n.create=function(t,r){return new zo(t,r)},n})(te),zo=(function(e){A(n,e);function n(t,r){var i=e.call(this)||this;return i.destination=t,i.source=r,i}return n.prototype.next=function(t){var r=this.destination;r&&r.next&&r.next(t)},n.prototype.error=function(t){var r=this.destination;r&&r.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){var r=this.source;return r?this.source.subscribe(t):$e.EMPTY},n})(Me);function Di(){return function(n){return n.lift(new Tc(n))}}var Tc=(function(){function e(n){this.connectable=n}return e.prototype.call=function(n,t){var r=this.connectable;r._refCount++;var i=new Nc(n,r),s=t.subscribe(i);return i.closed||(i.connection=r.connect()),s},e})(),Nc=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._unsubscribe=function(){var t=this.connectable;if(!t){this.connection=null;return}this.connectable=null;var r=t._refCount;if(r<=0){this.connection=null;return}if(t._refCount=r-1,r>1){this.connection=null;return}var i=this.connection,s=t._connection;this.connection=null,s&&(!i||s===i)&&s.unsubscribe()},n})(U),ta=(function(e){A(n,e);function n(t,r){var i=e.call(this)||this;return i.source=t,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new $e,t.add(this.source.subscribe(new Mc(this.getSubject(),this))),t.closed&&(this._connection=null,t=$e.EMPTY)),t},n.prototype.refCount=function(){return Di()(this)},n})(te),Ec=(function(){var e=ta.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})(),Mc=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.connectable=r,i}return n.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var r=t._connection;t._refCount=0,t._subject=null,t._connection=null,r&&r.unsubscribe()}},n})(ea);function zc(e,n,t,r){return function(i){return i.lift(new Ac(e,n,t,r))}}var Ac=(function(){function e(n,t,r,i){this.keySelector=n,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=i}return e.prototype.call=function(n,t){return t.subscribe(new Oc(n,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e})(),Oc=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.keySelector=r,l.elementSelector=i,l.durationSelector=s,l.subjectSelector=a,l.groups=null,l.attemptedToUnsubscribe=!1,l.count=0,l}return n.prototype._next=function(t){var r;try{r=this.keySelector(t)}catch(i){this.error(i);return}this._group(t,r)},n.prototype._group=function(t,r){var i=this.groups;i||(i=this.groups=new Map);var s=i.get(r),a;if(this.elementSelector)try{a=this.elementSelector(t)}catch(f){this.error(f)}else a=t;if(!s){s=this.subjectSelector?this.subjectSelector():new Me,i.set(r,s);var l=new xi(r,s,this);if(this.destination.next(l),this.durationSelector){var d=void 0;try{d=this.durationSelector(new xi(r,s))}catch(f){this.error(f);return}this.add(d.subscribe(new Bc(r,s,this)))}}s.closed||s.next(a)},n.prototype._error=function(t){var r=this.groups;r&&(r.forEach(function(i,s){i.error(t)}),r.clear()),this.destination.error(t)},n.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(r,i){r.complete()}),t.clear()),this.destination.complete()},n.prototype.removeGroup=function(t){this.groups.delete(t)},n.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,this.count===0&&e.prototype.unsubscribe.call(this))},n})(U),Bc=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,r)||this;return s.key=t,s.group=r,s.parent=i,s}return n.prototype._next=function(t){this.complete()},n.prototype._unsubscribe=function(){var t=this,r=t.parent,i=t.key;this.key=this.parent=null,r&&r.removeGroup(i)},n})(U),xi=(function(e){A(n,e);function n(t,r,i){var s=e.call(this)||this;return s.key=t,s.groupSubject=r,s.refCountSubscription=i,s}return n.prototype._subscribe=function(t){var r=new $e,i=this,s=i.refCountSubscription,a=i.groupSubject;return s&&!s.closed&&r.add(new Lc(s)),r.add(a.subscribe(t)),r},n})(te),Lc=(function(e){A(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return n.prototype.unsubscribe=function(){var t=this.parent;!t.closed&&!this.closed&&(e.prototype.unsubscribe.call(this),t.count-=1,t.count===0&&t.attemptedToUnsubscribe&&t.unsubscribe())},n})($e),na=(function(e){A(n,e);function n(t){var r=e.call(this)||this;return r._value=t,r}return Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ft;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n})(Me),Rc=(function(e){A(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n})($e),tr=(function(e){A(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i.pending=!1,i}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),this.closed)return this;this.state=t;var i=this.id,s=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(s,i,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(s,this.id,r),this},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),setInterval(t.flush.bind(t,this),i)},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&this.delay===i&&this.pending===!1)return r;clearInterval(r)},n.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,r){var i=!1,s=void 0;try{this.work(t)}catch(a){i=!0,s=!!a&&a||new Error(a)}if(i)return this.unsubscribe(),s},n.prototype._unsubscribe=function(){var t=this.id,r=this.scheduler,i=r.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,s!==-1&&i.splice(s,1),t!=null&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null},n})(Rc),Fc=(function(e){A(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.schedule=function(t,r){return r===void 0&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},n.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,i):t.flush(this)},n})(tr),vi=(function(){function e(n,t){t===void 0&&(t=e.now),this.SchedulerAction=n,this.now=t}return e.prototype.schedule=function(n,t,r){return t===void 0&&(t=0),new this.SchedulerAction(this,n).schedule(r,t)},e.now=function(){return Date.now()},e})(),nr=(function(e){A(n,e);function n(t,r){r===void 0&&(r=vi.now);var i=e.call(this,t,function(){return n.delegate&&n.delegate!==i?n.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return n.prototype.schedule=function(t,r,i){return r===void 0&&(r=0),n.delegate&&n.delegate!==this?n.delegate.schedule(t,r,i):e.prototype.schedule.call(this,t,r,i)},n.prototype.flush=function(t){var r=this.actions;if(this.active){r.push(t);return}var i;this.active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=r.shift());if(this.active=!1,i){for(;t=r.shift();)t.unsubscribe();throw i}},n})(vi),Pc=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n})(nr),ra=new Pc(Fc),ia=ra,Sn=new te(function(e){return e.complete()});function kn(e){return e?Dc(e):Sn}function Dc(e){return new te(function(n){return e.schedule(function(){return n.complete()})})}function tt(e){return e&&typeof e.schedule=="function"}var oa=function(e){return function(n){for(var t=0,r=e.length;t<r&&!n.closed;t++)n.next(e[t]);n.complete()}};function Hi(e,n){return new te(function(t){var r=new $e,i=0;return r.add(n.schedule(function(){if(i===e.length){t.complete();return}t.next(e[i++]),t.closed||r.add(this.schedule())})),r})}function rr(e,n){return n?Hi(e,n):new te(oa(e))}function Lr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return tt(t)?(e.pop(),Hi(e,t)):rr(e)}function Vi(e,n){return n?new te(function(t){return n.schedule(Hc,0,{error:e,subscriber:t})}):new te(function(t){return t.error(e)})}function Hc(e){var n=e.error,t=e.subscriber;t.error(n)}var yi;yi||(yi={});var jt=(function(){function e(n,t,r){this.kind=n,this.value=t,this.error=r,this.hasValue=n==="N"}return e.prototype.observe=function(n){switch(this.kind){case"N":return n.next&&n.next(this.value);case"E":return n.error&&n.error(this.error);case"C":return n.complete&&n.complete()}},e.prototype.do=function(n,t,r){var i=this.kind;switch(i){case"N":return n&&n(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(n,t,r){return n&&typeof n.next=="function"?this.observe(n):this.do(n,t,r)},e.prototype.toObservable=function(){var n=this.kind;switch(n){case"N":return Lr(this.value);case"E":return Vi(this.error);case"C":return kn()}throw new Error("unexpected notification kind value")},e.createNext=function(n){return typeof n!="undefined"?new e("N",n):e.undefinedValueNotification},e.createError=function(n){return new e("E",void 0,n)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();function Vc(e,n){return n===void 0&&(n=0),function(r){return r.lift(new Wc(e,n))}}var Wc=(function(){function e(n,t){t===void 0&&(t=0),this.scheduler=n,this.delay=t}return e.prototype.call=function(n,t){return t.subscribe(new sa(n,this.scheduler,this.delay))},e})(),sa=(function(e){A(n,e);function n(t,r,i){i===void 0&&(i=0);var s=e.call(this,t)||this;return s.scheduler=r,s.delay=i,s}return n.dispatch=function(t){var r=t.notification,i=t.destination;r.observe(i),this.unsubscribe()},n.prototype.scheduleMessage=function(t){var r=this.destination;r.add(this.scheduler.schedule(n.dispatch,this.delay,new Gc(t,this.destination)))},n.prototype._next=function(t){this.scheduleMessage(jt.createNext(t))},n.prototype._error=function(t){this.scheduleMessage(jt.createError(t)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(jt.createComplete()),this.unsubscribe()},n})(U),Gc=(function(){function e(n,t){this.notification=n,this.destination=t}return e})(),Wi=(function(e){A(n,e);function n(t,r,i){t===void 0&&(t=Number.POSITIVE_INFINITY),r===void 0&&(r=Number.POSITIVE_INFINITY);var s=e.call(this)||this;return s.scheduler=i,s._events=[],s._infiniteTimeWindow=!1,s._bufferSize=t<1?1:t,s._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(s._infiniteTimeWindow=!0,s.next=s.nextInfiniteTimeWindow):s.next=s.nextTimeWindow,s}return n.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},n.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new Uc(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},n.prototype._subscribe=function(t){var r=this._infiniteTimeWindow,i=r?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,a=i.length,l;if(this.closed)throw new Ft;if(this.isStopped||this.hasError?l=$e.EMPTY:(this.observers.push(t),l=new Qs(this,t)),s&&t.add(t=new sa(t,s)),r)for(var d=0;d<a&&!t.closed;d++)t.next(i[d]);else for(var d=0;d<a&&!t.closed;d++)t.next(i[d].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),l},n.prototype._getNow=function(){return(this.scheduler||ia).now()},n.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),r=this._bufferSize,i=this._windowTime,s=this._events,a=s.length,l=0;l<a&&!(t-s[l].time<i);)l++;return a>r&&(l=Math.max(l,a-r)),l>0&&s.splice(0,l),s},n})(Me),Uc=(function(){function e(n,t){this.time=n,this.value=t}return e})(),Tn=(function(e){A(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),$e.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),$e.EMPTY):e.prototype._subscribe.call(this,t)},n.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},n.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},n.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},n})(Me),Kc=1,qc=(function(){return Promise.resolve()})(),wi={};function Ao(e){return e in wi?(delete wi[e],!0):!1}var Oo={setImmediate:function(e){var n=Kc++;return wi[n]=!0,qc.then(function(){return Ao(n)&&e()}),n},clearImmediate:function(e){Ao(e)}},Yc=(function(e){A(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=Oo.setImmediate(t.flush.bind(t,null))))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(Oo.clearImmediate(r),t.scheduled=void 0)},n})(tr),Zc=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,a=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<a&&(t=r.shift()));if(this.active=!1,i){for(;++s<a&&(t=r.shift());)t.unsubscribe();throw i}},n})(nr),aa=new Zc(Yc),$r=aa,la=new nr(tr),Ue=la,Xc=(function(e){A(n,e);function n(t,r){var i=e.call(this,t,r)||this;return i.scheduler=t,i.work=r,i}return n.prototype.requestAsyncId=function(t,r,i){return i===void 0&&(i=0),i!==null&&i>0?e.prototype.requestAsyncId.call(this,t,r,i):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},n.prototype.recycleAsyncId=function(t,r,i){if(i===void 0&&(i=0),i!==null&&i>0||i===null&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,i);t.actions.length===0&&(cancelAnimationFrame(r),t.scheduled=void 0)},n})(tr),Jc=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var r=this.actions,i,s=-1,a=r.length;t=t||r.shift();do if(i=t.execute(t.state,t.delay))break;while(++s<a&&(t=r.shift()));if(this.active=!1,i){for(;++s<a&&(t=r.shift());)t.unsubscribe();throw i}},n})(nr),ca=new Jc(Xc),Qc=ca,ed=(function(e){A(n,e);function n(t,r){t===void 0&&(t=da),r===void 0&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t,function(){return i.frame})||this;return i.maxFrames=r,i.frame=0,i.index=-1,i}return n.prototype.flush=function(){for(var t=this,r=t.actions,i=t.maxFrames,s,a;(a=r[0])&&a.delay<=i&&(r.shift(),this.frame=a.delay,!(s=a.execute(a.state,a.delay))););if(s){for(;a=r.shift();)a.unsubscribe();throw s}},n.frameTimeFactor=10,n})(nr),da=(function(e){A(n,e);function n(t,r,i){i===void 0&&(i=t.index+=1);var s=e.call(this,t,r)||this;return s.scheduler=t,s.work=r,s.index=i,s.active=!0,s.index=t.index=i,s}return n.prototype.schedule=function(t,r){if(r===void 0&&(r=0),!this.id)return e.prototype.schedule.call(this,t,r);this.active=!1;var i=new n(this.scheduler,this.work);return this.add(i),i.schedule(t,r)},n.prototype.requestAsyncId=function(t,r,i){i===void 0&&(i=0),this.delay=t.frame+i;var s=t.actions;return s.push(this),s.sort(n.sortActions),!0},n.prototype.recycleAsyncId=function(t,r,i){},n.prototype._execute=function(t,r){if(this.active===!0)return e.prototype._execute.call(this,t,r)},n.sortActions=function(t,r){return t.delay===r.delay?t.index===r.index?0:t.index>r.index?1:-1:t.delay>r.delay?1:-1},n})(tr);function ht(){}function td(e){return!!e&&(e instanceof te||typeof e.lift=="function"&&typeof e.subscribe=="function")}var nd=(function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e})(),jn=nd,rd=(function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e})(),ir=rd,id=(function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e})(),ua=id;function st(e,n){return function(r){if(typeof e!="function")throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new od(e,n))}}var od=(function(){function e(n,t){this.project=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new sd(n,this.project,this.thisArg))},e})(),sd=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.project=r,s.count=0,s.thisArg=i||s,s}return n.prototype._next=function(t){var r;try{r=this.project.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}this.destination.next(r)},n})(U);function fa(e,n,t){if(n)if(tt(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return fa(e,t).apply(void 0,r).pipe(st(function(s){return Ge(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s=this,a,l={context:s,subject:a,callbackFunc:e,scheduler:t};return new te(function(d){if(t){var u={args:r,subscriber:d,params:l};return t.schedule(ad,0,u)}else{if(!a){a=new Tn;var f=function(){for(var c=[],p=0;p<arguments.length;p++)c[p]=arguments[p];a.next(c.length<=1?c[0]:c),a.complete()};try{e.apply(s,r.concat([f]))}catch(c){Pi(a)&&a.error(c)}}return a.subscribe(d)}})}}function ad(e){var n=this,t=e.args,r=e.subscriber,i=e.params,s=i.callbackFunc,a=i.context,l=i.scheduler,d=i.subject;if(!d){d=i.subject=new Tn;var f=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var p=u.length<=1?u[0]:u;n.add(l.schedule(ld,0,{value:p,subject:d}))};try{s.apply(a,t.concat([f]))}catch(u){d.error(u)}}this.add(d.subscribe(r))}function ld(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function pa(e,n,t){if(n)if(tt(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return pa(e,t).apply(void 0,r).pipe(st(function(s){return Ge(s)?n.apply(void 0,s):n(s)}))};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s={subject:void 0,args:r,callbackFunc:e,scheduler:t,context:this};return new te(function(a){var l=s.context,d=s.subject;if(t)return t.schedule(cd,0,{params:s,subscriber:a,context:l});if(!d){d=s.subject=new Tn;var f=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var p=u.shift();if(p){d.error(p);return}d.next(u.length<=1?u[0]:u),d.complete()};try{e.apply(l,r.concat([f]))}catch(u){Pi(d)&&d.error(u)}}return d.subscribe(a)})}}function cd(e){var n=this,t=e.params,r=e.subscriber,i=e.context,s=t.callbackFunc,a=t.args,l=t.scheduler,d=t.subject;if(!d){d=t.subject=new Tn;var f=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var p=u.shift();if(p)n.add(l.schedule(Bo,0,{err:p,subject:d}));else{var h=u.length<=1?u[0]:u;n.add(l.schedule(dd,0,{value:h,subject:d}))}};try{s.apply(i,a.concat([f]))}catch(u){this.add(l.schedule(Bo,0,{err:u,subject:d}))}}this.add(d.subscribe(r))}function dd(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function Bo(e){var n=e.err,t=e.subject;t.error(n)}var rn=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t,r,i,s,a){this.destination.next(r)},n.prototype.notifyError=function(t,r){this.destination.error(t)},n.prototype.notifyComplete=function(t){this.destination.complete()},n})(U),ud=(function(e){A(n,e);function n(t,r,i){var s=e.call(this)||this;return s.parent=t,s.outerValue=r,s.outerIndex=i,s.index=0,s}return n.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},n.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n})(U),fd=function(e){return function(n){return e.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,mn),n}};function pd(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Vt=pd(),bd=function(e){return function(n){var t=e[Vt]();do{var r=void 0;try{r=t.next()}catch(i){return n.error(i),n}if(r.done){n.complete();break}if(n.next(r.value),n.closed)break}while(!0);return typeof t.return=="function"&&n.add(function(){t.return&&t.return()}),n}},hd=function(e){return function(n){var t=e[In]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(n)}},ba=(function(e){return e&&typeof e.length=="number"&&typeof e!="function"});function ha(e){return!!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var qn=function(e){if(e&&typeof e[In]=="function")return hd(e);if(ba(e))return oa(e);if(ha(e))return fd(e);if(e&&typeof e[Vt]=="function")return bd(e);var n=Fi(e)?"an invalid object":"'"+e+"'",t="You provided "+n+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(t)};function kt(e,n,t,r,i){if(i===void 0&&(i=new ud(e,t,r)),!i.closed)return n instanceof te?n.subscribe(i):qn(n)(i)}var Lo={};function _d(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=void 0,r=void 0;return tt(e[e.length-1])&&(r=e.pop()),typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&Ge(e[0])&&(e=e[0]),rr(e,r).lift(new Gi(t))}var Gi=(function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new $d(n,this.resultSelector))},e})(),$d=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return n.prototype._next=function(t){this.values.push(Lo),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{this.active=r,this.toRespond=r;for(var i=0;i<r;i++){var s=t[i];this.add(kt(this,s,void 0,i))}}},n.prototype.notifyComplete=function(t){(this.active-=1)===0&&this.destination.complete()},n.prototype.notifyNext=function(t,r,i){var s=this.values,a=s[i],l=this.toRespond?a===Lo?--this.toRespond:this.toRespond:0;s[i]=r,l===0&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))},n.prototype._tryResultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n})(rn);function md(e,n){return new te(function(t){var r=new $e;return r.add(n.schedule(function(){var i=e[In]();r.add(i.subscribe({next:function(s){r.add(n.schedule(function(){return t.next(s)}))},error:function(s){r.add(n.schedule(function(){return t.error(s)}))},complete:function(){r.add(n.schedule(function(){return t.complete()}))}}))})),r})}function gd(e,n){return new te(function(t){var r=new $e;return r.add(n.schedule(function(){return e.then(function(i){r.add(n.schedule(function(){t.next(i),r.add(n.schedule(function(){return t.complete()}))}))},function(i){r.add(n.schedule(function(){return t.error(i)}))})})),r})}function xd(e,n){if(!e)throw new Error("Iterable cannot be null");return new te(function(t){var r=new $e,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(n.schedule(function(){i=e[Vt](),r.add(n.schedule(function(){if(!t.closed){var s,a;try{var l=i.next();s=l.value,a=l.done}catch(d){t.error(d);return}a?t.complete():(t.next(s),this.schedule())}}))})),r})}function vd(e){return e&&typeof e[In]=="function"}function yd(e){return e&&typeof e[Vt]=="function"}function _a(e,n){if(e!=null){if(vd(e))return md(e,n);if(ha(e))return gd(e,n);if(ba(e))return Hi(e,n);if(yd(e)||typeof e=="string")return xd(e,n)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}function Tt(e,n){return n?_a(e,n):e instanceof te?e:new te(qn(e))}var ye=(function(e){A(n,e);function n(t){var r=e.call(this)||this;return r.parent=t,r}return n.prototype._next=function(t){this.parent.notifyNext(t)},n.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},n})(U),we=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyError=function(t){this.destination.error(t)},n.prototype.notifyComplete=function(){this.destination.complete()},n})(U);function Se(e,n){if(!n.closed){if(e instanceof te)return e.subscribe(n);var t;try{t=qn(e)(n)}catch(r){n.error(r)}return t}}function en(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?function(r){return r.pipe(en(function(i,s){return Tt(e(i,s)).pipe(st(function(a,l){return n(i,a,s,l)}))},t))}:(typeof n=="number"&&(t=n),function(r){return r.lift(new wd(e,t))})}var wd=(function(){function e(n,t){t===void 0&&(t=Number.POSITIVE_INFINITY),this.project=n,this.concurrent=t}return e.prototype.call=function(n,t){return t.subscribe(new Sd(n,this.project,this.concurrent))},e})(),Sd=(function(e){A(n,e);function n(t,r,i){i===void 0&&(i=Number.POSITIVE_INFINITY);var s=e.call(this,t)||this;return s.project=r,s.concurrent=i,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return n.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},n.prototype._tryNext=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this.active++,this._innerSub(r)},n.prototype._innerSub=function(t){var r=new ye(this),i=this.destination;i.add(r);var s=Se(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&this.destination.complete()},n})(we),jd=en;function Ui(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),en(Ht,e)}function $a(){return Ui(1)}function Yn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return $a()(Lr.apply(void 0,e))}function Ki(e){return new te(function(n){var t;try{t=e()}catch(i){n.error(i);return}var r=t?Tt(t):kn();return r.subscribe(n)})}function Cd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1){var t=e[0];if(Ge(t))return fr(t,null);if(Fi(t)&&Object.getPrototypeOf(t)===Object.prototype){var r=Object.keys(t);return fr(r.map(function(s){return t[s]}),r)}}if(typeof e[e.length-1]=="function"){var i=e.pop();return e=e.length===1&&Ge(e[0])?e[0]:e,fr(e,null).pipe(st(function(s){return i.apply(void 0,s)}))}return fr(e,null)}function fr(e,n){return new te(function(t){var r=e.length;if(r===0){t.complete();return}for(var i=new Array(r),s=0,a=0,l=function(f){var u=Tt(e[f]),c=!1;t.add(u.subscribe({next:function(p){c||(c=!0,a++),i[f]=p},error:function(p){return t.error(p)},complete:function(){s++,(s===r||!c)&&(a===r&&t.next(n?n.reduce(function(p,h,x){return p[h]=i[x],p},{}):i),t.complete())}}))},d=0;d<r;d++)l(d)})}function ma(e,n,t,r){return wn(t)&&(r=t,t=void 0),r?ma(e,n,t).pipe(st(function(i){return Ge(i)?r.apply(void 0,i):r(i)})):new te(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a)}ga(e,n,s,i,t)})}function ga(e,n,t,r,i){var s;if(Td(e)){var a=e;e.addEventListener(n,t,i),s=function(){return a.removeEventListener(n,t,i)}}else if(kd(e)){var l=e;e.on(n,t),s=function(){return l.off(n,t)}}else if(Id(e)){var d=e;e.addListener(n,t),s=function(){return d.removeListener(n,t)}}else if(e&&e.length)for(var f=0,u=e.length;f<u;f++)ga(e[f],n,t,r,i);else throw new TypeError("Invalid event target");r.add(s)}function Id(e){return e&&typeof e.addListener=="function"&&typeof e.removeListener=="function"}function kd(e){return e&&typeof e.on=="function"&&typeof e.off=="function"}function Td(e){return e&&typeof e.addEventListener=="function"&&typeof e.removeEventListener=="function"}function xa(e,n,t){return t?xa(e,n).pipe(st(function(r){return Ge(r)?t.apply(void 0,r):t(r)})):new te(function(r){var i=function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return r.next(a.length===1?a[0]:a)},s;try{s=e(i)}catch(a){r.error(a);return}if(wn(n))return function(){return n(i,s)}})}function Nd(e,n,t,r,i){var s,a;if(arguments.length==1){var l=e;a=l.initialState,n=l.condition,t=l.iterate,s=l.resultSelector||Ht,i=l.scheduler}else r===void 0||tt(r)?(a=e,s=Ht,i=r):(a=e,s=r);return new te(function(d){var f=a;if(i)return i.schedule(Ed,0,{subscriber:d,iterate:t,condition:n,resultSelector:s,state:f});do{if(n){var u=void 0;try{u=n(f)}catch(p){d.error(p);return}if(!u){d.complete();break}}var c=void 0;try{c=s(f)}catch(p){d.error(p);return}if(d.next(c),d.closed)break;try{f=t(f)}catch(p){d.error(p);return}}while(!0)})}function Ed(e){var n=e.subscriber,t=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(s){n.error(s);return}else e.needIterate=!0;if(t){var r=void 0;try{r=t(e.state)}catch(s){n.error(s);return}if(!r){n.complete();return}if(n.closed)return}var i;try{i=e.resultSelector(e.state)}catch(s){n.error(s);return}if(!n.closed&&(n.next(i),!n.closed))return this.schedule(e)}}function Md(e,n,t){return n===void 0&&(n=Sn),t===void 0&&(t=Sn),Ki(function(){return e()?n:t})}function Cn(e){return!Ge(e)&&e-parseFloat(e)+1>=0}function zd(e,n){return e===void 0&&(e=0),n===void 0&&(n=Ue),(!Cn(e)||e<0)&&(e=0),(!n||typeof n.schedule!="function")&&(n=Ue),new te(function(t){return t.add(n.schedule(Ad,e,{subscriber:t,counter:0,period:e})),t})}function Ad(e){var n=e.subscriber,t=e.counter,r=e.period;n.next(t),this.schedule({subscriber:n,counter:t+1,period:r},r)}function va(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=Number.POSITIVE_INFINITY,r=null,i=e[e.length-1];return tt(i)?(r=e.pop(),e.length>1&&typeof e[e.length-1]=="number"&&(t=e.pop())):typeof i=="number"&&(t=e.pop()),r===null&&e.length===1&&e[0]instanceof te?e[0]:Ui(t)(rr(e,r))}var ya=new te(ht);function Od(){return ya}function Si(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===0)return Sn;var t=e[0],r=e.slice(1);return e.length===1&&Ge(t)?Si.apply(void 0,t):new te(function(i){var s=function(){return i.add(Si.apply(void 0,r).subscribe(i))};return Tt(t).subscribe({next:function(a){i.next(a)},error:s,complete:s})})}function Bd(e,n){return n?new te(function(t){var r=Object.keys(e),i=new $e;return i.add(n.schedule(Ld,0,{keys:r,index:0,subscriber:t,subscription:i,obj:e})),i}):new te(function(t){for(var r=Object.keys(e),i=0;i<r.length&&!t.closed;i++){var s=r[i];e.hasOwnProperty(s)&&t.next([s,e[s]])}t.complete()})}function Ld(e){var n=e.keys,t=e.index,r=e.subscriber,i=e.subscription,s=e.obj;if(!r.closed)if(t<n.length){var a=n[t];r.next([a,s[a]]),i.add(this.schedule({keys:n,index:t+1,subscriber:r,subscription:i,obj:s}))}else r.complete()}function wa(e,n){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=e,t.thisArg=n,t}function Wt(e,n){return function(r){return r.lift(new Rd(e,n))}}var Rd=(function(){function e(n,t){this.predicate=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new Fd(n,this.predicate,this.thisArg))},e})(),Fd=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.thisArg=i,s.count=0,s}return n.prototype._next=function(t){var r;try{r=this.predicate.call(this.thisArg,t,this.count++)}catch(i){this.destination.error(i);return}r&&this.destination.next(t)},n})(U);function Pd(e,n,t){return[Wt(n,t)(new te(qn(e))),Wt(wa(n,t))(new te(qn(e)))]}function Sa(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1)if(Ge(e[0]))e=e[0];else return e[0];return rr(e,void 0).lift(new Dd)}var Dd=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Hd(n))},e})(),Hd=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.hasFirst=!1,r.observables=[],r.subscriptions=[],r}return n.prototype._next=function(t){this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,r=t.length;if(r===0)this.destination.complete();else{for(var i=0;i<r&&!this.hasFirst;i++){var s=t[i],a=kt(this,s,void 0,i);this.subscriptions&&this.subscriptions.push(a),this.add(a)}this.observables=null}},n.prototype.notifyNext=function(t,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var s=0;s<this.subscriptions.length;s++)if(s!==i){var a=this.subscriptions[s];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(r)},n})(rn);function Vd(e,n,t){return e===void 0&&(e=0),new te(function(r){n===void 0&&(n=e,e=0);var i=0,s=e;if(t)return t.schedule(Wd,0,{index:i,count:n,start:e,subscriber:r});do{if(i++>=n){r.complete();break}if(r.next(s++),r.closed)break}while(!0)})}function Wd(e){var n=e.start,t=e.index,r=e.count,i=e.subscriber;if(t>=r){i.complete();return}i.next(n),!i.closed&&(e.index=t+1,e.start=n+1,this.schedule(e))}function ja(e,n,t){e===void 0&&(e=0);var r=-1;return Cn(n)?r=Number(n)<1&&1||Number(n):tt(n)&&(t=n),tt(t)||(t=Ue),new te(function(i){var s=Cn(e)?e:+e-t.now();return t.schedule(Gd,s,{index:0,period:r,subscriber:i})})}function Gd(e){var n=e.index,t=e.period,r=e.subscriber;if(r.next(n),!r.closed){if(t===-1)return r.complete();e.index=n+1,this.schedule(e,t)}}function Ud(e,n){return new te(function(t){var r;try{r=e()}catch(l){t.error(l);return}var i;try{i=n(r)}catch(l){t.error(l);return}var s=i?Tt(i):Sn,a=s.subscribe(t);return function(){a.unsubscribe(),r&&r.unsubscribe()}})}function Ca(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return typeof t=="function"&&e.pop(),rr(e,void 0).lift(new Ia(t))}var Ia=(function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Kd(n,this.resultSelector))},e})(),Kd=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.resultSelector=r,s.iterators=[],s.active=0,s.resultSelector=typeof r=="function"?r:void 0,s}return n.prototype._next=function(t){var r=this.iterators;Ge(t)?r.push(new Yd(t)):typeof t[Vt]=="function"?r.push(new qd(t[Vt]())):r.push(new Zd(this.destination,this,t))},n.prototype._complete=function(){var t=this.iterators,r=t.length;if(this.unsubscribe(),r===0){this.destination.complete();return}this.active=r;for(var i=0;i<r;i++){var s=t[i];if(s.stillUnsubscribed){var a=this.destination;a.add(s.subscribe())}else this.active--}},n.prototype.notifyInactive=function(){this.active--,this.active===0&&this.destination.complete()},n.prototype.checkIterators=function(){for(var t=this.iterators,r=t.length,i=this.destination,s=0;s<r;s++){var a=t[s];if(typeof a.hasValue=="function"&&!a.hasValue())return}for(var l=!1,d=[],s=0;s<r;s++){var a=t[s],f=a.next();if(a.hasCompleted()&&(l=!0),f.done){i.complete();return}d.push(f.value)}this.resultSelector?this._tryresultSelector(d):i.next(d),l&&i.complete()},n.prototype._tryresultSelector=function(t){var r;try{r=this.resultSelector.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n})(U),qd=(function(){function e(n){this.iterator=n,this.nextResult=n.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var n=this.nextResult;return this.nextResult=this.iterator.next(),n},e.prototype.hasCompleted=function(){var n=this.nextResult;return!!(n&&n.done)},e})(),Yd=(function(){function e(n){this.array=n,this.index=0,this.length=0,this.length=n.length}return e.prototype[Vt]=function(){return this},e.prototype.next=function(n){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e})(),Zd=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.parent=r,s.observable=i,s.stillUnsubscribed=!0,s.buffer=[],s.isComplete=!1,s}return n.prototype[Vt]=function(){return this},n.prototype.next=function(){var t=this.buffer;return t.length===0&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},n.prototype.hasValue=function(){return this.buffer.length>0},n.prototype.hasCompleted=function(){return this.buffer.length===0&&this.isComplete},n.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},n.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},n.prototype.subscribe=function(){return Se(this.observable,new ye(this))},n})(we),Xd=Object.freeze({__proto__:null,ArgumentOutOfRangeError:jn,AsyncSubject:Tn,BehaviorSubject:na,ConnectableObservable:ta,EMPTY:Sn,EmptyError:ir,GroupedObservable:xi,NEVER:ya,Notification:jt,get NotificationKind(){return yi},ObjectUnsubscribedError:Ft,Observable:te,ReplaySubject:Wi,Scheduler:vi,Subject:Me,Subscriber:U,Subscription:$e,TimeoutError:ua,UnsubscriptionError:Un,VirtualAction:da,VirtualTimeScheduler:ed,animationFrame:Qc,animationFrameScheduler:ca,asap:$r,asapScheduler:aa,async:Ue,asyncScheduler:la,bindCallback:fa,bindNodeCallback:pa,combineLatest:_d,concat:Yn,config:ot,defer:Ki,empty:kn,forkJoin:Cd,from:Tt,fromEvent:ma,fromEventPattern:xa,generate:Nd,identity:Ht,iif:Md,interval:zd,isObservable:td,merge:va,never:Od,noop:ht,observable:In,of:Lr,onErrorResumeNext:Si,pairs:Bd,partition:Pd,pipe:gi,queue:ia,queueScheduler:ra,race:Sa,range:Vd,scheduled:_a,throwError:Vi,timer:ja,using:Ud,zip:Ca}),qi=xs(Xd);function ka(e){return function(t){return t.lift(new Jd(e))}}var Jd=(function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Qd(n,this.durationSelector))},e})(),Qd=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.durationSelector=r,i.hasValue=!1,i}return n.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var r=void 0;try{var i=this.durationSelector;r=i(t)}catch(a){return this.destination.error(a)}var s=Se(r,new ye(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}},n.prototype.clearThrottle=function(){var t=this,r=t.value,i=t.hasValue,s=t.throttled;s&&(this.remove(s),this.throttled=void 0,s.unsubscribe()),i&&(this.value=void 0,this.hasValue=!1,this.destination.next(r))},n.prototype.notifyNext=function(){this.clearThrottle()},n.prototype.notifyComplete=function(){this.clearThrottle()},n})(we);function eu(e,n){return n===void 0&&(n=Ue),ka(function(){return ja(e,n)})}function tu(e){return function(t){return t.lift(new nu(e))}}var nu=(function(){function e(n){this.closingNotifier=n}return e.prototype.call=function(n,t){return t.subscribe(new ru(n,this.closingNotifier))},e})(),ru=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.buffer=[],i.add(Se(r,new ye(i))),i}return n.prototype._next=function(t){this.buffer.push(t)},n.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},n})(we);function iu(e,n){return n===void 0&&(n=null),function(r){return r.lift(new ou(e,n))}}var ou=(function(){function e(n,t){this.bufferSize=n,this.startBufferEvery=t,!t||n===t?this.subscriberClass=su:this.subscriberClass=au}return e.prototype.call=function(n,t){return t.subscribe(new this.subscriberClass(n,this.bufferSize,this.startBufferEvery))},e})(),su=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.bufferSize=r,i.buffer=[],i}return n.prototype._next=function(t){var r=this.buffer;r.push(t),r.length==this.bufferSize&&(this.destination.next(r),this.buffer=[])},n.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},n})(U),au=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.bufferSize=r,s.startBufferEvery=i,s.buffers=[],s.count=0,s}return n.prototype._next=function(t){var r=this,i=r.bufferSize,s=r.startBufferEvery,a=r.buffers,l=r.count;this.count++,l%s===0&&a.push([]);for(var d=a.length;d--;){var f=a[d];f.push(t),f.length===i&&(a.splice(d,1),this.destination.next(f))}},n.prototype._complete=function(){for(var t=this,r=t.buffers,i=t.destination;r.length>0;){var s=r.shift();s.length>0&&i.next(s)}e.prototype._complete.call(this)},n})(U);function lu(e){var n=arguments.length,t=Ue;tt(arguments[arguments.length-1])&&(t=arguments[arguments.length-1],n--);var r=null;n>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return n>=3&&(i=arguments[2]),function(a){return a.lift(new cu(e,r,i,t))}}var cu=(function(){function e(n,t,r,i){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new uu(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e})(),du=(function(){function e(){this.buffer=[]}return e})(),uu=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;l.bufferTimeSpan=r,l.bufferCreationInterval=i,l.maxBufferSize=s,l.scheduler=a,l.contexts=[];var d=l.openContext();if(l.timespanOnly=i==null||i<0,l.timespanOnly){var f={subscriber:l,context:d,bufferTimeSpan:r};l.add(d.closeAction=a.schedule(Ro,r,f))}else{var u={subscriber:l,context:d},c={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:l,scheduler:a};l.add(d.closeAction=a.schedule(Ta,r,u)),l.add(a.schedule(fu,i,c))}return l}return n.prototype._next=function(t){for(var r=this.contexts,i=r.length,s,a=0;a<i;a++){var l=r[a],d=l.buffer;d.push(t),d.length==this.maxBufferSize&&(s=l)}s&&this.onBufferFull(s)},n.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},n.prototype._complete=function(){for(var t=this,r=t.contexts,i=t.destination;r.length>0;){var s=r.shift();i.next(s.buffer)}e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.contexts=null},n.prototype.onBufferFull=function(t){this.closeContext(t);var r=t.closeAction;if(r.unsubscribe(),this.remove(r),!this.closed&&this.timespanOnly){t=this.openContext();var i=this.bufferTimeSpan,s={subscriber:this,context:t,bufferTimeSpan:i};this.add(t.closeAction=this.scheduler.schedule(Ro,i,s))}},n.prototype.openContext=function(){var t=new du;return this.contexts.push(t),t},n.prototype.closeContext=function(t){this.destination.next(t.buffer);var r=this.contexts,i=r?r.indexOf(t):-1;i>=0&&r.splice(r.indexOf(t),1)},n})(U);function Ro(e){var n=e.subscriber,t=e.context;t&&n.closeContext(t),n.closed||(e.context=n.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function fu(e){var n=e.bufferCreationInterval,t=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,s=r.openContext(),a=this;r.closed||(r.add(s.closeAction=i.schedule(Ta,t,{subscriber:r,context:s})),a.schedule(e,n))}function Ta(e){var n=e.subscriber,t=e.context;n.closeContext(t)}function pu(e,n){return function(r){return r.lift(new bu(e,n))}}var bu=(function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new hu(n,this.openings,this.closingSelector))},e})(),hu=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.closingSelector=i,s.contexts=[],s.add(kt(s,r)),s}return n.prototype._next=function(t){for(var r=this.contexts,i=r.length,s=0;s<i;s++)r[s].buffer.push(t)},n.prototype._error=function(t){for(var r=this.contexts;r.length>0;){var i=r.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},n.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},n.prototype.notifyNext=function(t,r){t?this.closeBuffer(t):this.openBuffer(r)},n.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},n.prototype.openBuffer=function(t){try{var r=this.closingSelector,i=r.call(this,t);i&&this.trySubscribe(i)}catch(s){this._error(s)}},n.prototype.closeBuffer=function(t){var r=this.contexts;if(r&&t){var i=t.buffer,s=t.subscription;this.destination.next(i),r.splice(r.indexOf(t),1),this.remove(s),s.unsubscribe()}},n.prototype.trySubscribe=function(t){var r=this.contexts,i=[],s=new $e,a={buffer:i,subscription:s};r.push(a);var l=kt(this,t,a);!l||l.closed?this.closeBuffer(a):(l.context=a,this.add(l),s.add(l))},n})(rn);function _u(e){return function(n){return n.lift(new $u(e))}}var $u=(function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new mu(n,this.closingSelector))},e})(),mu=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.subscribing=!1,i.openBuffer(),i}return n.prototype._next=function(t){this.buffer.push(t)},n.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},n.prototype.notifyNext=function(){this.openBuffer()},n.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},n.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];var i;try{var s=this.closingSelector;i=s()}catch(a){return this.error(a)}t=new $e,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Se(i,new ye(this))),this.subscribing=!1},n})(we);function gu(e){return function(t){var r=new xu(e),i=t.lift(r);return r.caught=i}}var xu=(function(){function e(n){this.selector=n}return e.prototype.call=function(n,t){return t.subscribe(new vu(n,this.selector,this.caught))},e})(),vu=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.selector=r,s.caught=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(a){e.prototype.error.call(this,a);return}this._unsubscribeAndRecycle();var i=new ye(this);this.add(i);var s=Se(r,i);s!==i&&this.add(s)}},n})(we);function yu(e){return function(n){return n.lift(new Gi(e))}}function wu(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=null;return typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&Ge(e[0])&&(e=e[0].slice()),function(r){return r.lift.call(Tt([r].concat(e)),new Gi(t))}}function Su(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(Yn.apply(void 0,[t].concat(e)))}}function Na(e,n){return en(e,n,1)}function ju(e,n){return Na(function(){return e},n)}function Cu(e){return function(n){return n.lift(new Iu(e,n))}}var Iu=(function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new ku(n,this.predicate,this.source))},e})(),ku=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.source=i,s.count=0,s.index=0,s}return n.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},n.prototype._tryPredicate=function(t){var r;try{r=this.predicate(t,this.index++,this.source)}catch(i){this.destination.error(i);return}r&&this.count++},n.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},n})(U);function Tu(e){return function(n){return n.lift(new Nu(e))}}var Nu=(function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Eu(n,this.durationSelector))},e})(),Eu=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.durationSelector=r,i.hasValue=!1,i}return n.prototype._next=function(t){try{var r=this.durationSelector.call(this,t);r&&this._tryNext(t,r)}catch(i){this.destination.error(i)}},n.prototype._complete=function(){this.emitValue(),this.destination.complete()},n.prototype._tryNext=function(t,r){var i=this.durationSubscription;this.value=t,this.hasValue=!0,i&&(i.unsubscribe(),this.remove(i)),i=Se(r,new ye(this)),i&&!i.closed&&this.add(this.durationSubscription=i)},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=void 0,r.unsubscribe(),this.remove(r)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},n})(we);function Mu(e,n){return n===void 0&&(n=Ue),function(t){return t.lift(new zu(e,n))}}var zu=(function(){function e(n,t){this.dueTime=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Au(n,this.dueTime,this.scheduler))},e})(),Au=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.dueTime=r,s.scheduler=i,s.debouncedSubscription=null,s.lastValue=null,s.hasValue=!1,s}return n.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Ou,this.dueTime,this))},n.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},n.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},n.prototype.clearDebounce=function(){var t=this.debouncedSubscription;t!==null&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},n})(U);function Ou(e){e.debouncedNext()}function or(e){return e===void 0&&(e=null),function(n){return n.lift(new Bu(e))}}var Bu=(function(){function e(n){this.defaultValue=n}return e.prototype.call=function(n,t){return t.subscribe(new Lu(n,this.defaultValue))},e})(),Lu=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.defaultValue=r,i.isEmpty=!0,i}return n.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},n.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},n})(U);function Ea(e){return e instanceof Date&&!isNaN(+e)}function Ru(e,n){n===void 0&&(n=Ue);var t=Ea(e),r=t?+e-n.now():Math.abs(e);return function(i){return i.lift(new Fu(r,n))}}var Fu=(function(){function e(n,t){this.delay=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Pu(n,this.delay,this.scheduler))},e})(),Pu=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.delay=r,s.scheduler=i,s.queue=[],s.active=!1,s.errored=!1,s}return n.dispatch=function(t){for(var r=t.source,i=r.queue,s=t.scheduler,a=t.destination;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(a);if(i.length>0){var l=Math.max(0,i[0].time-s.now());this.schedule(t,l)}else this.unsubscribe(),r.active=!1},n.prototype._schedule=function(t){this.active=!0;var r=this.destination;r.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},n.prototype.scheduleNotification=function(t){if(this.errored!==!0){var r=this.scheduler,i=new Du(r.now()+this.delay,t);this.queue.push(i),this.active===!1&&this._schedule(r)}},n.prototype._next=function(t){this.scheduleNotification(jt.createNext(t))},n.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.scheduleNotification(jt.createComplete()),this.unsubscribe()},n})(U),Du=(function(){function e(n,t){this.time=n,this.notification=t}return e})();function Hu(e,n){return n?function(t){return new Wu(t,n).lift(new Fo(e))}:function(t){return t.lift(new Fo(e))}}var Fo=(function(){function e(n){this.delayDurationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Vu(n,this.delayDurationSelector))},e})(),Vu=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.delayDurationSelector=r,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return n.prototype.notifyNext=function(t,r,i,s,a){this.destination.next(t),this.removeSubscription(a),this.tryComplete()},n.prototype.notifyError=function(t,r){this._error(t)},n.prototype.notifyComplete=function(t){var r=this.removeSubscription(t);r&&this.destination.next(r),this.tryComplete()},n.prototype._next=function(t){var r=this.index++;try{var i=this.delayDurationSelector(t,r);i&&this.tryDelay(i,t)}catch(s){this.destination.error(s)}},n.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},n.prototype.removeSubscription=function(t){t.unsubscribe();var r=this.delayNotifierSubscriptions.indexOf(t);return r!==-1&&this.delayNotifierSubscriptions.splice(r,1),t.outerValue},n.prototype.tryDelay=function(t,r){var i=kt(this,t,r);if(i&&!i.closed){var s=this.destination;s.add(i),this.delayNotifierSubscriptions.push(i)}},n.prototype.tryComplete=function(){this.completed&&this.delayNotifierSubscriptions.length===0&&this.destination.complete()},n})(rn),Wu=(function(e){A(n,e);function n(t,r){var i=e.call(this)||this;return i.source=t,i.subscriptionDelay=r,i}return n.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new Gu(t,this.source))},n})(te),Gu=(function(e){A(n,e);function n(t,r){var i=e.call(this)||this;return i.parent=t,i.source=r,i.sourceSubscribed=!1,i}return n.prototype._next=function(t){this.subscribeToSource()},n.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},n.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},n.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},n})(U);function Uu(){return function(n){return n.lift(new Ku)}}var Ku=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new qu(n))},e})(),qu=(function(e){A(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){t.observe(this.destination)},n})(U);function Yu(e,n){return function(t){return t.lift(new Zu(e,n))}}var Zu=(function(){function e(n,t){this.keySelector=n,this.flushes=t}return e.prototype.call=function(n,t){return t.subscribe(new Xu(n,this.keySelector,this.flushes))},e})(),Xu=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.keySelector=r,s.values=new Set,i&&s.add(Se(i,new ye(s))),s}return n.prototype.notifyNext=function(){this.values.clear()},n.prototype.notifyError=function(t){this._error(t)},n.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},n.prototype._useKeySelector=function(t){var r,i=this.destination;try{r=this.keySelector(t)}catch(s){i.error(s);return}this._finalizeNext(r,t)},n.prototype._finalizeNext=function(t,r){var i=this.values;i.has(t)||(i.add(t),this.destination.next(r))},n})(we);function Ma(e,n){return function(t){return t.lift(new Ju(e,n))}}var Ju=(function(){function e(n,t){this.compare=n,this.keySelector=t}return e.prototype.call=function(n,t){return t.subscribe(new Qu(n,this.compare,this.keySelector))},e})(),Qu=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.keySelector=i,s.hasKey=!1,typeof r=="function"&&(s.compare=r),s}return n.prototype.compare=function(t,r){return t===r},n.prototype._next=function(t){var r;try{var i=this.keySelector;r=i?i(t):t}catch(l){return this.destination.error(l)}var s=!1;if(this.hasKey)try{var a=this.compare;s=a(this.key,r)}catch(l){return this.destination.error(l)}else this.hasKey=!0;s||(this.key=r,this.destination.next(t))},n})(U);function e0(e,n){return Ma(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}function Rr(e){return e===void 0&&(e=r0),function(n){return n.lift(new t0(e))}}var t0=(function(){function e(n){this.errorFactory=n}return e.prototype.call=function(n,t){return t.subscribe(new n0(n,this.errorFactory))},e})(),n0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.errorFactory=r,i.hasValue=!1,i}return n.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},n.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(r){t=r}this.destination.error(t)},n})(U);function r0(){return new ir}function Yi(e){return function(n){return e===0?kn():n.lift(new i0(e))}}var i0=(function(){function e(n){if(this.total=n,this.total<0)throw new jn}return e.prototype.call=function(n,t){return t.subscribe(new o0(n,this.total))},e})(),o0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.count=0,i}return n.prototype._next=function(t){var r=this.total,i=++this.count;i<=r&&(this.destination.next(t),i===r&&(this.destination.complete(),this.unsubscribe()))},n})(U);function s0(e,n){if(e<0)throw new jn;var t=arguments.length>=2;return function(r){return r.pipe(Wt(function(i,s){return s===e}),Yi(1),t?or(n):Rr(function(){return new jn}))}}function a0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return Yn(t,Lr.apply(void 0,e))}}function l0(e,n){return function(t){return t.lift(new c0(e,n,t))}}var c0=(function(){function e(n,t,r){this.predicate=n,this.thisArg=t,this.source=r}return e.prototype.call=function(n,t){return t.subscribe(new d0(n,this.predicate,this.thisArg,this.source))},e})(),d0=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.predicate=r,a.thisArg=i,a.source=s,a.index=0,a.thisArg=i||a,a}return n.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},n.prototype._next=function(t){var r=!1;try{r=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(i){this.destination.error(i);return}r||this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n})(U);function u0(){return function(e){return e.lift(new f0)}}var f0=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new p0(n))},e})(),p0=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.hasCompleted=!1,r.hasSubscription=!1,r}return n.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(Se(t,new ye(this))))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},n.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},n})(we);function za(e,n){return n?function(t){return t.pipe(za(function(r,i){return Tt(e(r,i)).pipe(st(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new b0(e))}}var b0=(function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new h0(n,this.project))},e})(),h0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.project=r,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return n.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},n.prototype.tryNext=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this.hasSubscription=!0,this._innerSub(r)},n.prototype._innerSub=function(t){var r=new ye(this),i=this.destination;i.add(r);var s=Se(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this.destination.next(t)},n.prototype.notifyError=function(t){this.destination.error(t)},n.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},n})(we);function _0(e,n,t){return n===void 0&&(n=Number.POSITIVE_INFINITY),n=(n||0)<1?Number.POSITIVE_INFINITY:n,function(r){return r.lift(new $0(e,n,t))}}var $0=(function(){function e(n,t,r){this.project=n,this.concurrent=t,this.scheduler=r}return e.prototype.call=function(n,t){return t.subscribe(new m0(n,this.project,this.concurrent,this.scheduler))},e})(),m0=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.project=r,a.concurrent=i,a.scheduler=s,a.index=0,a.active=0,a.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(a.buffer=[]),a}return n.dispatch=function(t){var r=t.subscriber,i=t.result,s=t.value,a=t.index;r.subscribeToProjection(i,s,a)},n.prototype._next=function(t){var r=this.destination;if(r.closed){this._complete();return}var i=this.index++;if(this.active<this.concurrent){r.next(t);try{var s=this.project,a=s(t,i);if(!this.scheduler)this.subscribeToProjection(a,t,i);else{var l={subscriber:this,result:a,value:t,index:i},d=this.destination;d.add(this.scheduler.schedule(n.dispatch,0,l))}}catch(f){r.error(f)}}else this.buffer.push(t)},n.prototype.subscribeToProjection=function(t,r,i){this.active++;var s=this.destination;s.add(Se(t,new ye(this)))},n.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&this.active===0&&this.destination.complete(),this.unsubscribe()},n.prototype.notifyNext=function(t){this._next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&this.active===0&&this.destination.complete()},n})(we);function g0(e){return function(n){return n.lift(new x0(e))}}var x0=(function(){function e(n){this.callback=n}return e.prototype.call=function(n,t){return t.subscribe(new v0(n,this.callback))},e})(),v0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.add(new $e(r)),i}return n})(U);function y0(e,n){if(typeof e!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Aa(e,t,!1,n))}}var Aa=(function(){function e(n,t,r,i){this.predicate=n,this.source=t,this.yieldIndex=r,this.thisArg=i}return e.prototype.call=function(n,t){return t.subscribe(new w0(n,this.predicate,this.source,this.yieldIndex,this.thisArg))},e})(),w0=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.predicate=r,l.source=i,l.yieldIndex=s,l.thisArg=a,l.index=0,l}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete(),this.unsubscribe()},n.prototype._next=function(t){var r=this,i=r.predicate,s=r.thisArg,a=this.index++;try{var l=i.call(s||this,t,a,this.source);l&&this.notifyComplete(this.yieldIndex?a:t)}catch(d){this.destination.error(d)}},n.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},n})(U);function S0(e,n){return function(t){return t.lift(new Aa(e,t,!0,n))}}function j0(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Wt(function(i,s){return e(i,s,r)}):Ht,Yi(1),t?or(n):Rr(function(){return new ir}))}}function C0(){return function(n){return n.lift(new I0)}}var I0=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new k0(n))},e})(),k0=(function(e){A(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype._next=function(t){},n})(U);function T0(){return function(e){return e.lift(new N0)}}var N0=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new E0(n))},e})(),E0=(function(e){A(n,e);function n(t){return e.call(this,t)||this}return n.prototype.notifyComplete=function(t){var r=this.destination;r.next(t),r.complete()},n.prototype._next=function(t){this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n})(U);function Cr(e){return function(t){return e===0?kn():t.lift(new M0(e))}}var M0=(function(){function e(n){if(this.total=n,this.total<0)throw new jn}return e.prototype.call=function(n,t){return t.subscribe(new z0(n,this.total))},e})(),z0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.ring=new Array,i.count=0,i}return n.prototype._next=function(t){var r=this.ring,i=this.total,s=this.count++;if(r.length<i)r.push(t);else{var a=s%i;r[a]=t}},n.prototype._complete=function(){var t=this.destination,r=this.count;if(r>0)for(var i=this.count>=this.total?this.total:this.count,s=this.ring,a=0;a<i;a++){var l=r++%i;t.next(s[l])}t.complete()},n})(U);function A0(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Wt(function(i,s){return e(i,s,r)}):Ht,Cr(1),t?or(n):Rr(function(){return new ir}))}}function O0(e){return function(n){return n.lift(new B0(e))}}var B0=(function(){function e(n){this.value=n}return e.prototype.call=function(n,t){return t.subscribe(new L0(n,this.value))},e})(),L0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.value=r,i}return n.prototype._next=function(t){this.destination.next(this.value)},n})(U);function R0(){return function(n){return n.lift(new F0)}}var F0=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new P0(n))},e})(),P0=(function(e){A(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){this.destination.next(jt.createNext(t))},n.prototype._error=function(t){var r=this.destination;r.next(jt.createError(t)),r.complete()},n.prototype._complete=function(){var t=this.destination;t.next(jt.createComplete()),t.complete()},n})(U);function Ir(e,n){var t=!1;return arguments.length>=2&&(t=!0),function(i){return i.lift(new D0(e,n,t))}}var D0=(function(){function e(n,t,r){r===void 0&&(r=!1),this.accumulator=n,this.seed=t,this.hasSeed=r}return e.prototype.call=function(n,t){return t.subscribe(new H0(n,this.accumulator,this.seed,this.hasSeed))},e})(),H0=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.accumulator=r,a._seed=i,a.hasSeed=s,a.index=0,a}return Object.defineProperty(n.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),n.prototype._next=function(t){if(!this.hasSeed)this.seed=t,this.destination.next(t);else return this._tryNext(t)},n.prototype._tryNext=function(t){var r=this.index++,i;try{i=this.accumulator(this.seed,t,r)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)},n})(U);function Fr(e,n){return arguments.length>=2?function(r){return gi(Ir(e,n),Cr(1),or(n))(r)}:function(r){return gi(Ir(function(i,s,a){return e(i,s,a+1)}),Cr(1))(r)}}function V0(e){var n=typeof e=="function"?function(t,r){return e(t,r)>0?t:r}:function(t,r){return t>r?t:r};return Fr(n)}function W0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(va.apply(void 0,[t].concat(e)))}}function G0(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?en(function(){return e},n,t):(typeof n=="number"&&(t=n),en(function(){return e},t))}function U0(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(r){return r.lift(new K0(e,n,t))}}var K0=(function(){function e(n,t,r){this.accumulator=n,this.seed=t,this.concurrent=r}return e.prototype.call=function(n,t){return t.subscribe(new q0(n,this.accumulator,this.seed,this.concurrent))},e})(),q0=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.accumulator=r,a.acc=i,a.concurrent=s,a.hasValue=!1,a.hasCompleted=!1,a.buffer=[],a.active=0,a.index=0,a}return n.prototype._next=function(t){if(this.active<this.concurrent){var r=this.index++,i=this.destination,s=void 0;try{var a=this.accumulator;s=a(this.acc,t,r)}catch(l){return i.error(l)}this.active++,this._innerSub(s)}else this.buffer.push(t)},n.prototype._innerSub=function(t){var r=new ye(this),i=this.destination;i.add(r);var s=Se(t,r);s!==r&&i.add(s)},n.prototype._complete=function(){this.hasCompleted=!0,this.active===0&&this.buffer.length===0&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},n.prototype.notifyNext=function(t){var r=this.destination;this.acc=t,this.hasValue=!0,r.next(t)},n.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):this.active===0&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},n})(we);function Y0(e){var n=typeof e=="function"?function(t,r){return e(t,r)<0?t:r}:function(t,r){return t<r?t:r};return Fr(n)}function tn(e,n){return function(r){var i;if(typeof e=="function"?i=e:i=function(){return e},typeof n=="function")return r.lift(new Z0(i,n));var s=Object.create(r,Ec);return s.source=r,s.subjectFactory=i,s}}var Z0=(function(){function e(n,t){this.subjectFactory=n,this.selector=t}return e.prototype.call=function(n,t){var r=this.selector,i=this.subjectFactory(),s=r(i).subscribe(n);return s.add(t.subscribe(i)),s},e})();function X0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Ge(e[0])&&(e=e[0]),function(t){return t.lift(new J0(e))}}var J0=(function(){function e(n){this.nextSources=n}return e.prototype.call=function(n,t){return t.subscribe(new Q0(n,this.nextSources))},e})(),Q0=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.destination=t,i.nextSources=r,i}return n.prototype.notifyError=function(){this.subscribeToNextSource()},n.prototype.notifyComplete=function(){this.subscribeToNextSource()},n.prototype._error=function(t){this.subscribeToNextSource(),this.unsubscribe()},n.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},n.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();if(t){var r=new ye(this),i=this.destination;i.add(r);var s=Se(t,r);s!==r&&i.add(s)}else this.destination.complete()},n})(we);function ef(){return function(e){return e.lift(new tf)}}var tf=(function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new nf(n))},e})(),nf=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.hasPrev=!1,r}return n.prototype._next=function(t){var r;this.hasPrev?r=[this.prev,t]:this.hasPrev=!0,this.prev=t,r&&this.destination.next(r)},n})(U);function rf(e,n){return function(t){return[Wt(e,n)(t),Wt(wa(e,n))(t)]}}function of(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return function(r){return st(sf(e,t))(r)}}function sf(e,n){var t=function(r){for(var i=r,s=0;s<n;s++){var a=i!=null?i[e[s]]:void 0;if(a!==void 0)i=a;else return}return i};return t}function af(e){return e?tn(function(){return new Me},e):tn(new Me)}function lf(e){return function(n){return tn(new na(e))(n)}}function cf(){return function(e){return tn(new Tn)(e)}}function df(e,n,t,r){t&&typeof t!="function"&&(r=t);var i=typeof t=="function"?t:void 0,s=new Wi(e,n,r);return function(a){return tn(function(){return s},i)(a)}}function uf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return e.length===1&&Ge(e[0])&&(e=e[0]),r.lift.call(Sa.apply(void 0,[r].concat(e)))}}function ff(e){return e===void 0&&(e=-1),function(n){return e===0?kn():e<0?n.lift(new Po(-1,n)):n.lift(new Po(e-1,n))}}var Po=(function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new pf(n,this.count,this.source))},e})(),pf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.count=r,s.source=i,s}return n.prototype.complete=function(){if(!this.isStopped){var t=this,r=t.source,i=t.count;if(i===0)return e.prototype.complete.call(this);i>-1&&(this.count=i-1),r.subscribe(this._unsubscribeAndRecycle())}},n})(U);function bf(e){return function(n){return n.lift(new hf(e))}}var hf=(function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new _f(n,this.notifier,t))},e})(),_f=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.notifier=r,s.source=i,s.sourceIsBeingSubscribedTo=!0,s}return n.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},n.prototype.notifyComplete=function(){if(this.sourceIsBeingSubscribedTo===!1)return e.prototype.complete.call(this)},n.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},n.prototype._unsubscribe=function(){var t=this,r=t.notifications,i=t.retriesSubscription;r&&(r.unsubscribe(),this.notifications=void 0),i&&(i.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},n.prototype.subscribeToRetries=function(){this.notifications=new Me;var t;try{var r=this.notifier;t=r(this.notifications)}catch(i){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=Se(t,new ye(this))},n})(we);function $f(e){return e===void 0&&(e=-1),function(n){return n.lift(new mf(e,n))}}var mf=(function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new gf(n,this.count,this.source))},e})(),gf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.count=r,s.source=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=this,i=r.source,s=r.count;if(s===0)return e.prototype.error.call(this,t);s>-1&&(this.count=s-1),i.subscribe(this._unsubscribeAndRecycle())}},n})(U);function xf(e){return function(n){return n.lift(new vf(e,n))}}var vf=(function(){function e(n,t){this.notifier=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new yf(n,this.notifier,this.source))},e})(),yf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.notifier=r,s.source=i,s}return n.prototype.error=function(t){if(!this.isStopped){var r=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{r=new Me;try{var a=this.notifier;i=a(r)}catch(l){return e.prototype.error.call(this,l)}s=Se(i,new ye(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=i,this.retriesSubscription=s,r.next(t)}},n.prototype._unsubscribe=function(){var t=this,r=t.errors,i=t.retriesSubscription;r&&(r.unsubscribe(),this.errors=void 0),i&&(i.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},n.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},n})(we);function wf(e){return function(n){return n.lift(new Sf(e))}}var Sf=(function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){var r=new jf(n),i=t.subscribe(r);return i.add(Se(this.notifier,new ye(r))),i},e})(),jf=(function(e){A(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return n.prototype._next=function(t){this.value=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.emitValue()},n.prototype.notifyComplete=function(){this.emitValue()},n.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},n})(we);function Cf(e,n){return n===void 0&&(n=Ue),function(t){return t.lift(new If(e,n))}}var If=(function(){function e(n,t){this.period=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new kf(n,this.period,this.scheduler))},e})(),kf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.period=r,s.scheduler=i,s.hasValue=!1,s.add(i.schedule(Tf,r,{subscriber:s,period:r})),s}return n.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},n.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},n})(U);function Tf(e){var n=e.subscriber,t=e.period;n.notifyNext(),this.schedule(e,t)}function Nf(e,n){return function(t){return t.lift(new Ef(e,n))}}var Ef=(function(){function e(n,t){this.compareTo=n,this.comparator=t}return e.prototype.call=function(n,t){return t.subscribe(new Mf(n,this.compareTo,this.comparator))},e})(),Mf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.compareTo=r,s.comparator=i,s._a=[],s._b=[],s._oneComplete=!1,s.destination.add(r.subscribe(new zf(t,s))),s}return n.prototype._next=function(t){this._oneComplete&&this._b.length===0?this.emit(!1):(this._a.push(t),this.checkValues())},n.prototype._complete=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0,this.unsubscribe()},n.prototype.checkValues=function(){for(var t=this,r=t._a,i=t._b,s=t.comparator;r.length>0&&i.length>0;){var a=r.shift(),l=i.shift(),d=!1;try{d=s?s(a,l):a===l}catch(f){this.destination.error(f)}d||this.emit(!1)}},n.prototype.emit=function(t){var r=this.destination;r.next(t),r.complete()},n.prototype.nextB=function(t){this._oneComplete&&this._a.length===0?this.emit(!1):(this._b.push(t),this.checkValues())},n.prototype.completeB=function(){this._oneComplete?this.emit(this._a.length===0&&this._b.length===0):this._oneComplete=!0},n})(U),zf=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.parent=r,i}return n.prototype._next=function(t){this.parent.nextB(t)},n.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},n.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},n})(U);function Af(){return new Me}function Of(){return function(e){return Di()(tn(Af)(e))}}function Bf(e,n,t){var r;return e&&typeof e=="object"?r=e:r={bufferSize:e,windowTime:n,refCount:!1,scheduler:t},function(i){return i.lift(Lf(r))}}function Lf(e){var n=e.bufferSize,t=n===void 0?Number.POSITIVE_INFINITY:n,r=e.windowTime,i=r===void 0?Number.POSITIVE_INFINITY:r,s=e.refCount,a=e.scheduler,l,d=0,f,u=!1,c=!1;return function(h){d++;var x;!l||u?(u=!1,l=new Wi(t,i,a),x=l.subscribe(this),f=h.subscribe({next:function($){l.next($)},error:function($){u=!0,l.error($)},complete:function(){c=!0,f=void 0,l.complete()}}),c&&(f=void 0)):x=l.subscribe(this),this.add(function(){d--,x.unsubscribe(),x=void 0,f&&!c&&s&&d===0&&(f.unsubscribe(),f=void 0,l=void 0)})}}function Rf(e){return function(n){return n.lift(new Ff(e,n))}}var Ff=(function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Pf(n,this.predicate,this.source))},e})(),Pf=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.source=i,s.seenValue=!1,s.index=0,s}return n.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},n.prototype._next=function(t){var r=this.index++;this.predicate?this.tryNext(t,r):this.applySingleValue(t)},n.prototype.tryNext=function(t,r){try{this.predicate(t,r,this.source)&&this.applySingleValue(t)}catch(i){this.destination.error(i)}},n.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new ir)},n})(U);function Df(e){return function(n){return n.lift(new Hf(e))}}var Hf=(function(){function e(n){this.total=n}return e.prototype.call=function(n,t){return t.subscribe(new Vf(n,this.total))},e})(),Vf=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.total=r,i.count=0,i}return n.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},n})(U);function Wf(e){return function(n){return n.lift(new Gf(e))}}var Gf=(function(){function e(n){if(this._skipCount=n,this._skipCount<0)throw new jn}return e.prototype.call=function(n,t){return this._skipCount===0?t.subscribe(new U(n)):t.subscribe(new Uf(n,this._skipCount))},e})(),Uf=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i._skipCount=r,i._count=0,i._ring=new Array(r),i}return n.prototype._next=function(t){var r=this._skipCount,i=this._count++;if(i<r)this._ring[i]=t;else{var s=i%r,a=this._ring,l=a[s];a[s]=t,this.destination.next(l)}},n})(U);function Kf(e){return function(n){return n.lift(new qf(e))}}var qf=(function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new Yf(n,this.notifier))},e})(),Yf=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;i.hasValue=!1;var s=new ye(i);i.add(s),i.innerSubscription=s;var a=Se(r,s);return a!==s&&(i.add(a),i.innerSubscription=a),i}return n.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},n.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},n.prototype.notifyComplete=function(){},n})(we);function Zf(e){return function(n){return n.lift(new Xf(e))}}var Xf=(function(){function e(n){this.predicate=n}return e.prototype.call=function(n,t){return t.subscribe(new Jf(n,this.predicate))},e})(),Jf=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.predicate=r,i.skipping=!0,i.index=0,i}return n.prototype._next=function(t){var r=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||r.next(t)},n.prototype.tryCallPredicate=function(t){try{var r=this.predicate(t,this.index++);this.skipping=!!r}catch(i){this.destination.error(i)}},n})(U);function Qf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return tt(t)?(e.pop(),function(r){return Yn(e,r,t)}):function(r){return Yn(e,r)}}var ep=(function(e){A(n,e);function n(t,r,i){r===void 0&&(r=0),i===void 0&&(i=$r);var s=e.call(this)||this;return s.source=t,s.delayTime=r,s.scheduler=i,(!Cn(r)||r<0)&&(s.delayTime=0),(!i||typeof i.schedule!="function")&&(s.scheduler=$r),s}return n.create=function(t,r,i){return r===void 0&&(r=0),i===void 0&&(i=$r),new n(t,r,i)},n.dispatch=function(t){var r=t.source,i=t.subscriber;return this.add(r.subscribe(i))},n.prototype._subscribe=function(t){var r=this.delayTime,i=this.source,s=this.scheduler;return s.schedule(n.dispatch,r,{source:i,subscriber:t})},n})(te);function tp(e,n){return n===void 0&&(n=0),function(r){return r.lift(new np(e,n))}}var np=(function(){function e(n,t){this.scheduler=n,this.delay=t}return e.prototype.call=function(n,t){return new ep(t,this.delay,this.scheduler).subscribe(n)},e})();function Zn(e,n){return typeof n=="function"?function(t){return t.pipe(Zn(function(r,i){return Tt(e(r,i)).pipe(st(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new rp(e))}}var rp=(function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new ip(n,this.project))},e})(),ip=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.project=r,i.index=0,i}return n.prototype._next=function(t){var r,i=this.index++;try{r=this.project(t,i)}catch(s){this.destination.error(s);return}this._innerSub(r)},n.prototype._innerSub=function(t){var r=this.innerSubscription;r&&r.unsubscribe();var i=new ye(this),s=this.destination;s.add(i),this.innerSubscription=Se(t,i),this.innerSubscription!==i&&s.add(this.innerSubscription)},n.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},n.prototype._unsubscribe=function(){this.innerSubscription=void 0},n.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},n.prototype.notifyNext=function(t){this.destination.next(t)},n})(we);function op(){return Zn(Ht)}function sp(e,n){return n?Zn(function(){return e},n):Zn(function(){return e})}function ap(e){return function(n){return n.lift(new lp(e))}}var lp=(function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){var r=new cp(n),i=Se(this.notifier,new ye(r));return i&&!r.seenValue?(r.add(i),t.subscribe(r)):r},e})(),cp=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.seenValue=!1,r}return n.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},n.prototype.notifyComplete=function(){},n})(we);function dp(e,n){return n===void 0&&(n=!1),function(t){return t.lift(new up(e,n))}}var up=(function(){function e(n,t){this.predicate=n,this.inclusive=t}return e.prototype.call=function(n,t){return t.subscribe(new fp(n,this.predicate,this.inclusive))},e})(),fp=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.predicate=r,s.inclusive=i,s.index=0,s}return n.prototype._next=function(t){var r=this.destination,i;try{i=this.predicate(t,this.index++)}catch(s){r.error(s);return}this.nextOrComplete(t,i)},n.prototype.nextOrComplete=function(t,r){var i=this.destination;r?i.next(t):(this.inclusive&&i.next(t),i.complete())},n})(U);function pp(e,n,t){return function(i){return i.lift(new bp(e,n,t))}}var bp=(function(){function e(n,t,r){this.nextOrObserver=n,this.error=t,this.complete=r}return e.prototype.call=function(n,t){return t.subscribe(new hp(n,this.nextOrObserver,this.error,this.complete))},e})(),hp=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a._tapNext=ht,a._tapError=ht,a._tapComplete=ht,a._tapError=i||ht,a._tapComplete=s||ht,wn(r)?(a._context=a,a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||ht,a._tapError=r.error||ht,a._tapComplete=r.complete||ht),a}return n.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(r){this.destination.error(r);return}this.destination.next(t)},n.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(r){this.destination.error(r);return}this.destination.error(t)},n.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){this.destination.error(t);return}return this.destination.complete()},n})(U),Oa={leading:!0,trailing:!1};function _p(e,n){return n===void 0&&(n=Oa),function(t){return t.lift(new $p(e,!!n.leading,!!n.trailing))}}var $p=(function(){function e(n,t,r){this.durationSelector=n,this.leading=t,this.trailing=r}return e.prototype.call=function(n,t){return t.subscribe(new mp(n,this.durationSelector,this.leading,this.trailing))},e})(),mp=(function(e){A(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a.destination=t,a.durationSelector=r,a._leading=i,a._trailing=s,a._hasValue=!1,a}return n.prototype._next=function(t){this._hasValue=!0,this._sendValue=t,this._throttled||(this._leading?this.send():this.throttle(t))},n.prototype.send=function(){var t=this,r=t._hasValue,i=t._sendValue;r&&(this.destination.next(i),this.throttle(i)),this._hasValue=!1,this._sendValue=void 0},n.prototype.throttle=function(t){var r=this.tryDurationSelector(t);r&&this.add(this._throttled=Se(r,new ye(this)))},n.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(r){return this.destination.error(r),null}},n.prototype.throttlingDone=function(){var t=this,r=t._throttled,i=t._trailing;r&&r.unsubscribe(),this._throttled=void 0,i&&this.send()},n.prototype.notifyNext=function(){this.throttlingDone()},n.prototype.notifyComplete=function(){this.throttlingDone()},n})(we);function gp(e,n,t){return n===void 0&&(n=Ue),t===void 0&&(t=Oa),function(r){return r.lift(new xp(e,n,t.leading,t.trailing))}}var xp=(function(){function e(n,t,r,i){this.duration=n,this.scheduler=t,this.leading=r,this.trailing=i}return e.prototype.call=function(n,t){return t.subscribe(new vp(n,this.duration,this.scheduler,this.leading,this.trailing))},e})(),vp=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.duration=r,l.scheduler=i,l.leading=s,l.trailing=a,l._hasTrailingValue=!1,l._trailingValue=null,l}return n.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(yp,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},n.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},n.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},n})(U);function yp(e){var n=e.subscriber;n.clearThrottle()}function Sp(e){return e===void 0&&(e=Ue),function(n){return Ki(function(){return n.pipe(Ir(function(t,r){var i=t.current;return{value:r,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),st(function(t){var r=t.current,i=t.last,s=t.value;return new jp(s,r-i)}))})}}var jp=(function(){function e(n,t){this.value=n,this.interval=t}return e})();function Ba(e,n,t){return t===void 0&&(t=Ue),function(r){var i=Ea(e),s=i?+e-t.now():Math.abs(e);return r.lift(new Cp(s,i,n,t))}}var Cp=(function(){function e(n,t,r,i){this.waitFor=n,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new Ip(n,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e})(),Ip=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;return l.absoluteTimeout=r,l.waitFor=i,l.withObservable=s,l.scheduler=a,l.scheduleTimeout(),l}return n.dispatchTimeout=function(t){var r=t.withObservable;t._unsubscribeAndRecycle(),t.add(Se(r,new ye(t)))},n.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(n.dispatchTimeout,this.waitFor,this))},n.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},n.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},n})(we);function kp(e,n){return n===void 0&&(n=Ue),Ba(e,Vi(new ua),n)}function Tp(e){return e===void 0&&(e=Ue),st(function(n){return new Np(n,e.now())})}var Np=(function(){function e(n,t){this.value=n,this.timestamp=t}return e})();function Ep(e,n,t){return t===0?[n]:(e.push(n),e)}function Mp(){return Fr(Ep,[])}function zp(e){return function(t){return t.lift(new Ap(e))}}var Ap=(function(){function e(n){this.windowBoundaries=n}return e.prototype.call=function(n,t){var r=new Op(n),i=t.subscribe(r);return i.closed||r.add(Se(this.windowBoundaries,new ye(r))),i},e})(),Op=(function(e){A(n,e);function n(t){var r=e.call(this,t)||this;return r.window=new Me,t.next(r.window),r}return n.prototype.notifyNext=function(){this.openWindow()},n.prototype.notifyError=function(t){this._error(t)},n.prototype.notifyComplete=function(){this._complete()},n.prototype._next=function(t){this.window.next(t)},n.prototype._error=function(t){this.window.error(t),this.destination.error(t)},n.prototype._complete=function(){this.window.complete(),this.destination.complete()},n.prototype._unsubscribe=function(){this.window=null},n.prototype.openWindow=function(){var t=this.window;t&&t.complete();var r=this.destination,i=this.window=new Me;r.next(i)},n})(we);function Bp(e,n){return n===void 0&&(n=0),function(r){return r.lift(new Lp(e,n))}}var Lp=(function(){function e(n,t){this.windowSize=n,this.startWindowEvery=t}return e.prototype.call=function(n,t){return t.subscribe(new Rp(n,this.windowSize,this.startWindowEvery))},e})(),Rp=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.destination=t,s.windowSize=r,s.startWindowEvery=i,s.windows=[new Me],s.count=0,t.next(s.windows[0]),s}return n.prototype._next=function(t){for(var r=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,i=this.destination,s=this.windowSize,a=this.windows,l=a.length,d=0;d<l&&!this.closed;d++)a[d].next(t);var f=this.count-s+1;if(f>=0&&f%r===0&&!this.closed&&a.shift().complete(),++this.count%r===0&&!this.closed){var u=new Me;a.push(u),i.next(u)}},n.prototype._error=function(t){var r=this.windows;if(r)for(;r.length>0&&!this.closed;)r.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},n.prototype._unsubscribe=function(){this.count=0,this.windows=null},n})(U);function Fp(e){var n=Ue,t=null,r=Number.POSITIVE_INFINITY;return tt(arguments[3])&&(n=arguments[3]),tt(arguments[2])?n=arguments[2]:Cn(arguments[2])&&(r=Number(arguments[2])),tt(arguments[1])?n=arguments[1]:Cn(arguments[1])&&(t=Number(arguments[1])),function(s){return s.lift(new Pp(e,t,r,n))}}var Pp=(function(){function e(n,t,r,i){this.windowTimeSpan=n,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=i}return e.prototype.call=function(n,t){return t.subscribe(new Hp(n,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e})(),Dp=(function(e){A(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return n.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(n.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),n})(Me),Hp=(function(e){A(n,e);function n(t,r,i,s,a){var l=e.call(this,t)||this;l.destination=t,l.windowTimeSpan=r,l.windowCreationInterval=i,l.maxWindowSize=s,l.scheduler=a,l.windows=[];var d=l.openWindow();if(i!==null&&i>=0){var f={subscriber:l,window:d,context:null},u={windowTimeSpan:r,windowCreationInterval:i,subscriber:l,scheduler:a};l.add(a.schedule(La,r,f)),l.add(a.schedule(Wp,i,u))}else{var c={subscriber:l,window:d,windowTimeSpan:r};l.add(a.schedule(Vp,r,c))}return l}return n.prototype._next=function(t){for(var r=this.windows,i=r.length,s=0;s<i;s++){var a=r[s];a.closed||(a.next(t),a.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(a))}},n.prototype._error=function(t){for(var r=this.windows;r.length>0;)r.shift().error(t);this.destination.error(t)},n.prototype._complete=function(){for(var t=this.windows;t.length>0;){var r=t.shift();r.closed||r.complete()}this.destination.complete()},n.prototype.openWindow=function(){var t=new Dp;this.windows.push(t);var r=this.destination;return r.next(t),t},n.prototype.closeWindow=function(t){t.complete();var r=this.windows;r.splice(r.indexOf(t),1)},n})(U);function Vp(e){var n=e.subscriber,t=e.windowTimeSpan,r=e.window;r&&n.closeWindow(r),e.window=n.openWindow(),this.schedule(e,t)}function Wp(e){var n=e.windowTimeSpan,t=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,s=t.openWindow(),a=this,l={action:a,subscription:null},d={subscriber:t,window:s,context:l};l.subscription=r.schedule(La,n,d),a.add(l.subscription),a.schedule(e,i)}function La(e){var n=e.subscriber,t=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),n.closeWindow(t)}function Gp(e,n){return function(t){return t.lift(new Up(e,n))}}var Up=(function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new Kp(n,this.openings,this.closingSelector))},e})(),Kp=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.openings=r,s.closingSelector=i,s.contexts=[],s.add(s.openSubscription=kt(s,r,r)),s}return n.prototype._next=function(t){var r=this.contexts;if(r)for(var i=r.length,s=0;s<i;s++)r[s].window.next(t)},n.prototype._error=function(t){var r=this.contexts;if(this.contexts=null,r)for(var i=r.length,s=-1;++s<i;){var a=r[s];a.window.error(t),a.subscription.unsubscribe()}e.prototype._error.call(this,t)},n.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,i=-1;++i<r;){var s=t[i];s.window.complete(),s.subscription.unsubscribe()}e.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,i=-1;++i<r;){var s=t[i];s.window.unsubscribe(),s.subscription.unsubscribe()}},n.prototype.notifyNext=function(t,r,i,s,a){if(t===this.openings){var l=void 0;try{var d=this.closingSelector;l=d(r)}catch(h){return this.error(h)}var f=new Me,u=new $e,c={window:f,subscription:u};this.contexts.push(c);var p=kt(this,l,c);p.closed?this.closeWindow(this.contexts.length-1):(p.context=c,u.add(p)),this.destination.next(f)}else this.closeWindow(this.contexts.indexOf(t))},n.prototype.notifyError=function(t){this.error(t)},n.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},n.prototype.closeWindow=function(t){if(t!==-1){var r=this.contexts,i=r[t],s=i.window,a=i.subscription;r.splice(t,1),s.complete(),a.unsubscribe()}},n})(rn);function qp(e){return function(t){return t.lift(new Yp(e))}}var Yp=(function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Zp(n,this.closingSelector))},e})(),Zp=(function(e){A(n,e);function n(t,r){var i=e.call(this,t)||this;return i.destination=t,i.closingSelector=r,i.openWindow(),i}return n.prototype.notifyNext=function(t,r,i,s,a){this.openWindow(a)},n.prototype.notifyError=function(t){this._error(t)},n.prototype.notifyComplete=function(t){this.openWindow(t)},n.prototype._next=function(t){this.window.next(t)},n.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},n.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},n.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},n.prototype.openWindow=function(t){t===void 0&&(t=null),t&&(this.remove(t),t.unsubscribe());var r=this.window;r&&r.complete();var i=this.window=new Me;this.destination.next(i);var s;try{var a=this.closingSelector;s=a()}catch(l){this.destination.error(l),this.window.error(l);return}this.add(this.closingNotification=kt(this,s))},n})(rn);function Xp(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){var r;typeof e[e.length-1]=="function"&&(r=e.pop());var i=e;return t.lift(new Jp(i,r))}}var Jp=(function(){function e(n,t){this.observables=n,this.project=t}return e.prototype.call=function(n,t){return t.subscribe(new Qp(n,this.observables,this.project))},e})(),Qp=(function(e){A(n,e);function n(t,r,i){var s=e.call(this,t)||this;s.observables=r,s.project=i,s.toRespond=[];var a=r.length;s.values=new Array(a);for(var l=0;l<a;l++)s.toRespond.push(l);for(var l=0;l<a;l++){var d=r[l];s.add(kt(s,d,void 0,l))}return s}return n.prototype.notifyNext=function(t,r,i){this.values[i]=r;var s=this.toRespond;if(s.length>0){var a=s.indexOf(i);a!==-1&&s.splice(a,1)}},n.prototype.notifyComplete=function(){},n.prototype._next=function(t){if(this.toRespond.length===0){var r=[t].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},n.prototype._tryProject=function(t){var r;try{r=this.project.apply(this,t)}catch(i){this.destination.error(i);return}this.destination.next(r)},n})(rn);function eb(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return r.lift.call(Ca.apply(void 0,[r].concat(e)))}}function tb(e){return function(n){return n.lift(new Ia(e))}}var nb=Object.freeze({__proto__:null,audit:ka,auditTime:eu,buffer:tu,bufferCount:iu,bufferTime:lu,bufferToggle:pu,bufferWhen:_u,catchError:gu,combineAll:yu,combineLatest:wu,concat:Su,concatAll:$a,concatMap:Na,concatMapTo:ju,count:Cu,debounce:Tu,debounceTime:Mu,defaultIfEmpty:or,delay:Ru,delayWhen:Hu,dematerialize:Uu,distinct:Yu,distinctUntilChanged:Ma,distinctUntilKeyChanged:e0,elementAt:s0,endWith:a0,every:l0,exhaust:u0,exhaustMap:za,expand:_0,filter:Wt,finalize:g0,find:y0,findIndex:S0,first:j0,flatMap:jd,groupBy:zc,ignoreElements:C0,isEmpty:T0,last:A0,map:st,mapTo:O0,materialize:R0,max:V0,merge:W0,mergeAll:Ui,mergeMap:en,mergeMapTo:G0,mergeScan:U0,min:Y0,multicast:tn,observeOn:Vc,onErrorResumeNext:X0,pairwise:ef,partition:rf,pluck:of,publish:af,publishBehavior:lf,publishLast:cf,publishReplay:df,race:uf,reduce:Fr,refCount:Di,repeat:ff,repeatWhen:bf,retry:$f,retryWhen:xf,sample:wf,sampleTime:Cf,scan:Ir,sequenceEqual:Nf,share:Of,shareReplay:Bf,single:Rf,skip:Df,skipLast:Wf,skipUntil:Kf,skipWhile:Zf,startWith:Qf,subscribeOn:tp,switchAll:op,switchMap:Zn,switchMapTo:sp,take:Yi,takeLast:Cr,takeUntil:ap,takeWhile:dp,tap:pp,throttle:_p,throttleTime:gp,throwIfEmpty:Rr,timeInterval:Sp,timeout:kp,timeoutWith:Ba,timestamp:Tp,toArray:Mp,window:zp,windowCount:Bp,windowTime:Fp,windowToggle:Gp,windowWhen:qp,withLatestFrom:Xp,zip:eb,zipAll:tb}),Zi=xs(nb),Xr={},Do;function Pr(){return Do||(Do=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),(function(n){n.ACTIVATE="activate",n.MOVE="move",n.DEACTIVATE="deactivate"})(e.BarActionType||(e.BarActionType={}))})(Xr)),Xr}var sn={},Ho;function sr(){if(Ho)return sn;Ho=1,Object.defineProperty(sn,"__esModule",{value:!0});function e(r){return typeof r=="number"&&r===r}sn.isValidNumber=e;function n(){}sn.noop=n;function t(r,i){var s=i.reduce(function(a,l){return a[l]=!0,a},{});return Object.keys(r).reduce(function(a,l){return s[l]||(a[l]=r[l]),a},{})}return sn.omit=t,sn}var Bn={},Vo;function Xi(){return Vo||(Vo=1,(function(e){var n=Bn&&Bn.__assign||function(){return n=Object.assign||function(l){for(var d,f=1,u=arguments.length;f<u;f++){d=arguments[f];for(var c in d)Object.prototype.hasOwnProperty.call(d,c)&&(l[c]=d[c])}return l},n.apply(this,arguments)},t;Object.defineProperty(e,"__esModule",{value:!0});var r=Gt(),i=qi,s=sr();e.ResizerProvider=(t=r.createContext({createID:function(){return-1},populateInstance:s.noop,triggerBarAction:s.noop,vertical:!1,sizeRelatedInfo$:i.EMPTY}),t.Provider),e.ResizerConsumer=t.Consumer;function a(l){return function(d){return r.createElement(e.ResizerConsumer,null,function(f){var u=n(n({},d),{context:f});return r.createElement(l,n({},u))})}}e.withResizerContext=a})(Bn)),Bn}var an={},Ln={},Wo;function Ji(){return Wo||(Wo=1,(function(e){var n=Ln&&Ln.__assign||function(){return n=Object.assign||function(c){for(var p,h=1,x=arguments.length;h<x;h++){p=arguments[h];for(var $ in p)Object.prototype.hasOwnProperty.call(p,$)&&(c[$]=p[$])}return c},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var t=sr();e.DEFAULT_COORDINATE_OFFSET={x:0,y:0};function r(c,p){var h=p.maxSize,x=p.minSize,$=x===void 0?0:x;return c<$?{nextSize:$,remainingOffset:c-$}:t.isValidNumber(h)&&c>h?{nextSize:h,remainingOffset:c-h}:{nextSize:c,remainingOffset:0}}function i(c){var p=c.size;return t.isValidNumber(p)}e.isSolid=i;function s(c){var p=c.disableResponsive;return i(c)&&p===void 0?!0:!!p}e.isDisabledResponsive=s;function a(c,p){return p?{x:c.x-p.x,y:c.y-p.y}:e.DEFAULT_COORDINATE_OFFSET}e.calculateCoordinateOffset=a;function l(){var c=[],p=0,h=0;return{collect:function(x){c.push(x),x.disableResponsive||(p+=1,h+=x.currentSize)},getResult:function(){return{sizeInfoArray:c,flexGrowRatio:p/h}}}}e.collectSizeRelatedInfo=l;function d(c,p){if(p.isSolid)return{remainingOffset:c,sizeInfo:p};var h=r(p.currentSize+c,p),x=h.nextSize,$=h.remainingOffset;return{sizeInfo:n(n({},p),{currentSize:x}),remainingOffset:$}}function f(c,p,h,x){for(var $=[],y=p,I=c+h;b(I);I+=h)if(y){var T=d(y,x[I]),w=T.sizeInfo,_=T.remainingOffset;y=_,g(w)}else g(x[I]);function g(j){h===-1?$.unshift(j):$.push(j)}function b(j){return h===-1?j>=0:j<=x.length-1}return{sizeInfoArray:$,remainingOffset:y}}function u(c,p,h){var x=l(),$=x.collect,y=x.getResult,I=f(c,p,-1,h),T=f(c,-p,1,h),w=p-I.remainingOffset,_=-p-T.remainingOffset;function g(E,O){E.forEach($),$(h[c]),O.forEach($)}if(w===-_)g(I.sizeInfoArray,T.sizeInfoArray);else if(Math.abs(w)<Math.abs(_)){var b=f(c,-w,1,h);g(I.sizeInfoArray,b.sizeInfoArray)}else{var j=f(c,-_,-1,h);g(j.sizeInfoArray,T.sizeInfoArray)}return y()}e.getNextSizeRelatedInfo=u})(Ln)),Ln}var Go;function rb(){if(Go)return an;Go=1;var e=an&&an.__assign||function(){return e=Object.assign||function(s){for(var a,l=1,d=arguments.length;l<d;l++){a=arguments[l];for(var f in a)Object.prototype.hasOwnProperty.call(a,f)&&(s[f]=a[f])}return s},e.apply(this,arguments)};Object.defineProperty(an,"__esModule",{value:!0});var n=Ji();function t(s){return s*2+1}function r(s){return s*2}var i=(function(){function s(a){this.resizeResult=a,this.isDiscarded=!1}return s.prototype.resizeSection=function(a,l){if(!this.isDiscarded){var d=r(a),f=this.getSize(d);if(f>=0&&l.toSize>=0){var u=l.toSize-f;d===this.resizeResult.sizeInfoArray.length-1||l.preferMoveLeftBar?this.moveBar(a-1,{withOffset:-u}):this.moveBar(a,{withOffset:u})}}},s.prototype.moveBar=function(a,l){this.isDiscarded||(this.resizeResult=n.getNextSizeRelatedInfo(t(a),l.withOffset,this.resizeResult.sizeInfoArray))},s.prototype.discard=function(){this.isDiscarded=!0},s.prototype.isSectionResized=function(a){var l=r(a);return"defaultSizeInfoArray"in this.resizeResult?this.getSize(l)!==this.resizeResult.defaultSizeInfoArray[l].currentSize:!1},s.prototype.isBarActivated=function(a){return"barID"in this.resizeResult?this.resizeResult.barID===t(a):!1},s.prototype.getSectionSize=function(a){return this.getSize(r(a))},s.prototype.getResult=function(){return e(e({},this.resizeResult),{discard:this.isDiscarded})},s.prototype.getTotalSize=function(){return this.resizeResult.sizeInfoArray.filter(function(a,l){return a&&l%2===0}).reduce(function(a,l){var d=l.currentSize;return a+d},0)},s.prototype.getSize=function(a){var l=this.resizeResult.sizeInfoArray[a];return l?l.currentSize:-1},s})();return an.Resizer=i,an}var ln={},Uo;function ib(){if(Uo)return ln;Uo=1;var e=ln&&ln.__assign||function(){return e=Object.assign||function(a){for(var l,d=1,f=arguments.length;d<f;d++){l=arguments[d];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(a[u]=l[u])}return a},e.apply(this,arguments)};Object.defineProperty(ln,"__esModule",{value:!0});var n=Zi,t=Pr(),r=Ji(),i={barID:-1,offset:0,type:t.BarActionType.DEACTIVATE,originalCoordinate:r.DEFAULT_COORDINATE_OFFSET,defaultSizeInfoArray:[],sizeInfoArray:[],discard:!0,flexGrowRatio:0};function s(a){return n.scan(function(l,d){var f={barID:d.barID,type:d.type};switch(d.type){case t.BarActionType.ACTIVATE:var u=a.getSizeRelatedInfo(),c=u.sizeInfoArray,p=u.flexGrowRatio;return e(e(e({},i),f),{originalCoordinate:d.coordinate,defaultSizeInfoArray:c,sizeInfoArray:c,flexGrowRatio:p});case t.BarActionType.MOVE:var h=a.calculateOffset(d.coordinate,l.originalCoordinate);return e(e(e({},f),r.getNextSizeRelatedInfo(d.barID,h,l.defaultSizeInfoArray)),{offset:h,originalCoordinate:l.originalCoordinate,defaultSizeInfoArray:l.defaultSizeInfoArray,discard:!1});case t.BarActionType.DEACTIVATE:return i}},i)}return ln.scanBarAction=s,ln}var Et={},Ko;function ob(){if(Ko)return Et;Ko=1;var e=Et&&Et.__assign||function(){return e=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},e.apply(this,arguments)},n=Et&&Et.__rest||function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(s[a[l]]=r[a[l]]);return s};Object.defineProperty(Et,"__esModule",{value:!0});var t=Gt();return Et.StyledContainer=t.forwardRef(function(r,i){var s=r.vertical,a=r.style,l=n(r,["vertical","style"]);return t.createElement("div",e({},l,{ref:i,style:e({display:"flex",flexDirection:s?"column":"row"},a)}))}),Et}var qo;function sb(){if(qo)return xt;qo=1;var e=xt&&xt.__extends||(function(){var h=function(x,$){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,I){y.__proto__=I}||function(y,I){for(var T in I)I.hasOwnProperty(T)&&(y[T]=I[T])},h(x,$)};return function(x,$){h(x,$);function y(){this.constructor=x}x.prototype=$===null?Object.create($):(y.prototype=$.prototype,new y)}})(),n=xt&&xt.__assign||function(){return n=Object.assign||function(h){for(var x,$=1,y=arguments.length;$<y;$++){x=arguments[$];for(var I in x)Object.prototype.hasOwnProperty.call(x,I)&&(h[I]=x[I])}return h},n.apply(this,arguments)};Object.defineProperty(xt,"__esModule",{value:!0});var t=Gt(),r=qi,i=Zi,s=Pr(),a=sr(),l=Xi(),d=rb();xt.Resizer=d.Resizer;var f=ib(),u=Ji(),c=ob(),p=(function(h){e(x,h);function x(){var $=h!==null&&h.apply(this,arguments)||this;return $.childrenProps=[],$.childrenInstance=[],$.barActions$=new r.Subject,$.sizeRelatedInfoAction$=new r.Subject,$.sizeRelatedInfo$=r.merge($.sizeRelatedInfoAction$,$.barActions$.pipe(f.scanBarAction({calculateOffset:function(y,I){return u.calculateCoordinateOffset(y,I)[$.axis]},getSizeRelatedInfo:function(){return $.makeSizeInfos()}}),i.tap(function(y){return $.monitorBarStatusChanges(y)}))).pipe(i.filter(function(y){var I=y.discard;return!I}),i.map(function(y){if(typeof $.props.beforeApplyResizer=="function"){var I=new d.Resizer(y);return $.props.beforeApplyResizer(I),I.getResult()}else return y}),i.filter(function(y){var I=y.discard;return!I}),i.observeOn(r.animationFrameScheduler),i.share()),$.triggerBarAction=function(y){$.barActions$.next(y)},$.createID=function(y){return $.childrenProps.push(y),$.childrenProps.length-1},$.populateChildInstance=function(y,I){I.current&&($.childrenInstance[y]=I.current)},$}return Object.defineProperty(x.prototype,"axis",{get:function(){return this.props.vertical?"y":"x"},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"dimension",{get:function(){return this.props.vertical?"height":"width"},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"contextValue",{get:function(){return{vertical:!!this.props.vertical,sizeRelatedInfo$:this.sizeRelatedInfo$,createID:this.createID,populateInstance:this.populateChildInstance,triggerBarAction:this.triggerBarAction}},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"containerProps",{get:function(){return a.omit(this.props,["onActivate","beforeApplyResizer","afterResizing"])},enumerable:!0,configurable:!0}),x.prototype.componentDidMount=function(){this.refreshSizeInfos()},x.prototype.render=function(){return t.createElement(l.ResizerProvider,{value:this.contextValue},t.createElement(c.StyledContainer,n({},this.containerProps),this.props.children))},x.prototype.getResizer=function(){return new d.Resizer(this.makeSizeInfos())},x.prototype.applyResizer=function($){this.sizeRelatedInfoAction$.next($.getResult())},x.prototype.monitorBarStatusChanges=function($){var y=$.type;switch(y){case s.BarActionType.ACTIVATE:typeof this.props.onActivate=="function"&&this.props.onActivate();return;case s.BarActionType.DEACTIVATE:typeof this.props.afterResizing=="function"&&this.props.afterResizing();return;default:return}},x.prototype.refreshSizeInfos=function(){this.sizeRelatedInfoAction$.next(this.makeSizeInfos())},x.prototype.makeSizeInfos=function(){var $=this,y=u.collectSizeRelatedInfo(),I=y.collect,T=y.getResult;return this.childrenProps.forEach(function(w,_){var g=$.childrenInstance[_];I({maxSize:w.maxSize,minSize:w.minSize,disableResponsive:u.isDisabledResponsive(w),isSolid:u.isSolid(w),currentSize:g.getBoundingClientRect()[$.dimension]})}),T()},x})(t.PureComponent);return xt.Container=p,xt}var Mt={},zt={},Yo;function ab(){if(Yo)return zt;Yo=1;var e=zt&&zt.__assign||function(){return e=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},e.apply(this,arguments)},n=zt&&zt.__rest||function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(s[a[l]]=r[a[l]]);return s};Object.defineProperty(zt,"__esModule",{value:!0});var t=Gt();return zt.StyledSection=t.forwardRef(function(r,i){var s,a=r.context,l=r.maxSize,d=r.minSize,f=r.flexGrow,u=r.flexShrink,c=r.flexBasis,p=r.style,h=n(r,["context","maxSize","minSize","flexGrow","flexShrink","flexBasis","style"]);return t.createElement("div",e({},h,{ref:i,style:e((s={overflow:"hidden"},s[a.vertical?"maxHeight":"maxWidth"]=l,s[a.vertical?"minHeight":"minWidth"]=d,s.flexGrow=f,s.flexShrink=u,s.flexBasis=c,s),p)}))}),zt}var Zo;function lb(){if(Zo)return Mt;Zo=1;var e=Mt&&Mt.__extends||(function(){var f=function(u,c){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var x in h)h.hasOwnProperty(x)&&(p[x]=h[x])},f(u,c)};return function(u,c){f(u,c);function p(){this.constructor=u}u.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}})(),n=Mt&&Mt.__assign||function(){return n=Object.assign||function(f){for(var u,c=1,p=arguments.length;c<p;c++){u=arguments[c];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(f[h]=u[h])}return f},n.apply(this,arguments)};Object.defineProperty(Mt,"__esModule",{value:!0});var t=Gt(),r=qi,i=Zi,s=Xi(),a=sr(),l=ab(),d=(function(f){e(u,f);function u(){var c=f!==null&&f.apply(this,arguments)||this;return c.defaultInnerRef=t.createRef(),c.id=c.props.context.createID(c.props),c.subscription=new r.Subscription,c.flexGrowRatio=0,c.resize$=c.props.context.sizeRelatedInfo$.pipe(i.map(function(p){var h=p.sizeInfoArray,x=p.flexGrowRatio;return{sizeInfo:h[c.id],flexGrowRatio:x}}),i.filter(function(p){var h=p.sizeInfo;return!!h}),i.tap(function(p){var h=p.sizeInfo,x=p.flexGrowRatio;if(c.sizeInfo=h,c.flexGrowRatio=x,c.ref.current){var $=c.getStyle(h,x),y=$.flexGrow,I=$.flexShrink,T=$.flexBasis;c.ref.current.style.flexGrow=""+y,c.ref.current.style.flexShrink=""+I,c.ref.current.style.flexBasis=T+"px",c.onSizeChanged(h.currentSize)}})),c}return Object.defineProperty(u.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"childProps",{get:function(){return n(n({},a.omit(this.props,["defaultSize","size","disableResponsive","innerRef","onSizeChanged"])),this.getStyle())},enumerable:!0,configurable:!0}),u.prototype.componentDidMount=function(){this.subscription.add(this.resize$.subscribe()),this.props.context.populateInstance(this.id,this.ref)},u.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},u.prototype.render=function(){return t.createElement(l.StyledSection,n({},this.childProps,{ref:this.ref}))},u.prototype.onSizeChanged=function(c){typeof this.props.onSizeChanged=="function"&&this.props.onSizeChanged(c)},u.prototype.getFlexShrink=function(){return a.isValidNumber(this.props.size)?0:this.props.disableResponsive?1:0},u.prototype.getStyle=function(c,p){c===void 0&&(c=this.sizeInfo),p===void 0&&(p=this.flexGrowRatio);var h=this.getFlexShrink();if(c){var x=c.disableResponsive,$=c.currentSize;return{flexShrink:h,flexGrow:x?0:p*$,flexBasis:x?$:0}}else{var y=this.props.size||this.props.defaultSize;return a.isValidNumber(y)?{flexShrink:h,flexGrow:0,flexBasis:y}:{flexShrink:h,flexGrow:1,flexBasis:0}}},u})(t.PureComponent);return Mt.Section=s.withResizerContext(d),Mt}var At={},vt={},Xo;function cb(){if(Xo)return vt;Xo=1;var e=vt&&vt.__assign||function(){return e=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},e.apply(this,arguments)},n=vt&&vt.__rest||function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(s[a[l]]=r[a[l]]);return s};Object.defineProperty(vt,"__esModule",{value:!0});var t=Gt();return vt.StyledBar=t.forwardRef(function(r,i){var s=r.size,a=r.style,l=n(r,["size","style"]);return t.createElement("div",e({},l,{ref:i,style:e({position:"relative",flex:"0 0 "+s+"px"},a)}))}),vt.StyledInteractiveArea=t.forwardRef(function(r,i){var s=r.top,a=s===void 0?0:s,l=r.right,d=l===void 0?0:l,f=r.bottom,u=f===void 0?0:f,c=r.left,p=c===void 0?0:c,h=r.vertical,x=r.style,$=n(r,["top","right","bottom","left","vertical","style"]);return t.createElement("div",e({},$,{style:e({position:"absolute",top:-a,left:-p,right:-d,bottom:-u,cursor:h?"row-resize":"col-resize",WebkitTapHighlightColor:"transparent",userSelect:"none"},x),ref:i}))}),vt}var Rn={},Jo;function db(){if(Jo)return Rn;Jo=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.disablePassive=!0;try{window.addEventListener("test",null,{get passive(){return Rn.disablePassive={passive:!1},!0}})}catch(e){}return Rn}var Qo;function ub(){if(Qo)return At;Qo=1;var e=At&&At.__extends||(function(){var f=function(u,c){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,h){p.__proto__=h}||function(p,h){for(var x in h)h.hasOwnProperty(x)&&(p[x]=h[x])},f(u,c)};return function(u,c){f(u,c);function p(){this.constructor=u}u.prototype=c===null?Object.create(c):(p.prototype=c.prototype,new p)}})(),n=At&&At.__assign||function(){return n=Object.assign||function(f){for(var u,c=1,p=arguments.length;c<p;c++){u=arguments[c];for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&(f[h]=u[h])}return f},n.apply(this,arguments)};Object.defineProperty(At,"__esModule",{value:!0});var t=Gt(),r=Pr(),i=sr(),s=Xi(),a=cb(),l=db(),d=(function(f){e(u,f);function u(){var c=f!==null&&f.apply(this,arguments)||this;return c.defaultInnerRef=t.createRef(),c.interactiveAreaRef=t.createRef(),c.id=c.props.context.createID(c.props),c.isValidClick=!0,c.isActivated=!1,c.onMouseDown=c.triggerMouseAction(r.BarActionType.ACTIVATE),c.onMouseMove=c.triggerMouseAction(r.BarActionType.MOVE),c.onMouseUp=c.triggerMouseAction(r.BarActionType.DEACTIVATE),c.onTouchStart=c.triggerTouchAction(r.BarActionType.ACTIVATE),c.onTouchMove=c.triggerTouchAction(r.BarActionType.MOVE),c.onTouchEnd=c.triggerTouchAction(r.BarActionType.DEACTIVATE),c.onTouchCancel=c.triggerTouchAction(r.BarActionType.DEACTIVATE),c}return Object.defineProperty(u.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(u.prototype,"childProps",{get:function(){return i.omit(this.props,["context","innerRef","onClick","expandInteractiveArea","onStatusChanged"])},enumerable:!0,configurable:!0}),u.prototype.componentDidMount=function(){this.props.context.populateInstance(this.id,this.ref),document.addEventListener("mousemove",this.onMouseMove),document.addEventListener("mouseup",this.onMouseUp),document.addEventListener("touchmove",this.onTouchMove,l.disablePassive),document.addEventListener("touchend",this.onTouchEnd),document.addEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.addEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.addEventListener("touchstart",this.onTouchStart,l.disablePassive))},u.prototype.componentWillUnmount=function(){document.removeEventListener("mousemove",this.onMouseMove),document.removeEventListener("mouseup",this.onMouseUp),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd),document.removeEventListener("touchcancel",this.onTouchCancel),this.interactiveAreaRef.current&&(this.interactiveAreaRef.current.removeEventListener("mousedown",this.onMouseDown),this.interactiveAreaRef.current.removeEventListener("touchstart",this.onTouchStart))},u.prototype.render=function(){return t.createElement(a.StyledBar,n({},this.childProps,{ref:this.ref}),this.props.children,t.createElement(a.StyledInteractiveArea,n({},this.props.expandInteractiveArea,{ref:this.interactiveAreaRef,vertical:this.props.context.vertical})))},u.prototype.onStatusChanged=function(c){this.isActivated!==c&&(this.isActivated=c,typeof this.props.onStatusChanged=="function"&&this.props.onStatusChanged(c))},u.prototype.updateStatusIfNeed=function(c){c===r.BarActionType.ACTIVATE?this.onStatusChanged(!0):c===r.BarActionType.DEACTIVATE&&this.onStatusChanged(!1)},u.prototype.triggerAction=function(c,p){(this.isActivated||c===r.BarActionType.ACTIVATE)&&this.props.context.triggerBarAction({type:c,coordinate:p,barID:this.id}),this.isActivated&&c===r.BarActionType.DEACTIVATE&&this.onClick(),this.updateStatusIfNeed(c),this.updateClickStatus(c)},u.prototype.triggerMouseAction=function(c){var p=this;return function(h){p.disableUserSelectIfResizing(h,c);var x=h.clientX,$=h.clientY;p.triggerAction(c,{x,y:$})}},u.prototype.triggerTouchAction=function(c){var p=this;return function(h){p.disableUserSelectIfResizing(h,c);var x=h.touches[0]||{clientX:0,clientY:0},$=x.clientX,y=x.clientY;p.triggerAction(c,{x:$,y})}},u.prototype.disableUserSelectIfResizing=function(c,p){(this.isActivated||p===r.BarActionType.ACTIVATE)&&c.preventDefault()},u.prototype.updateClickStatus=function(c){this.isActivated&&(c===r.BarActionType.ACTIVATE?this.isValidClick=!0:c===r.BarActionType.MOVE&&(this.isValidClick=!1))},u.prototype.onClick=function(){this.isValidClick&&typeof this.props.onClick=="function"&&(this.isValidClick=!1,this.props.onClick())},u})(t.PureComponent);return At.Bar=s.withResizerContext(d),At}var es;function fb(){return es||(es=1,(function(e){function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(sb()),n(lb()),n(ub()),n(Pr())})(Zr)),Zr}var cn=fb();function ts({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,d:"M9.16,23.13A10.81,10.81,0,1,0,5.48,15"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"2.91 13.71 5.48 16.29 7.95 13.82"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"20.09 20.33 15.29 16 15.29 9.53"})]})}function pb({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",d:"M18.2,26H14.89a8.15,8.15,0,0,1-8.16-8.08h0A8.15,8.15,0,0,1,14.89,9.8h6.57"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,strokeLinejoin:"round",points:"17.32 4.03 23.27 9.93 17.32 15.82"})]})}function bb({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",d:"M11.8,26h3.31a8.15,8.15,0,0,0,8.16-8.08h0A8.15,8.15,0,0,0,15.11,9.8H8.54"}),o.jsx("polyline",{className:"svg-icn",strokeWidth:n,strokeLinejoin:"round",points:"12.68 4.03 6.74 9.93 12.68 15.82"})]})}const Ot={menu:{mnw:150,mxw:200},title:{flx:"align-center",mt:0,mb:5,pb:2,bb:"1px solid var(--lightgray)",fs:14,fw:600},secondary:{dy:"block",pt:2,pb:2},list:{w:200,mxh:300,m:0,mb:5,dy:"block",owy:"auto",ff:"Roboto","&> div":{owx:"hidden !important"}},item:{mb:0,fs:12},btn:{b:0,p:"5px 10px",m:1,w:"100%",brs:8,ta:"start",bc:"var(--white-100)",curp:1,"&:hover":{bc:"var(--white-0-93)"},"&:focus-visible":{oe:"none",bs:"0 0 0 2px var(--b-50) inset"},"&.active":{fw:500,bc:"var(--white-0-93)"},"&.unactive":{cr:"var(--white-0-0-64)"}},subtitle:{dy:"block",ws:"nowrap",ow:"hidden",to:"ellipsis"},fldkey:{fs:10,cr:"var(--white-0-50)"}};function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},kr.apply(this,arguments)}function Tr(){return Tr=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},Tr.apply(this,arguments)}function dn(e,n,t){var r,i=(r=t.initialDeps)!=null?r:[],s;return function(){var a;t.key&&t.debug!=null&&t.debug()&&(a=Date.now());var l=e(),d=l.length!==i.length||l.some(function(x,$){return i[$]!==x});if(!d)return s;i=l;var f;if(t.key&&t.debug!=null&&t.debug()&&(f=Date.now()),s=n.apply(void 0,l),t.key&&t.debug!=null&&t.debug())var u=Math.round((Date.now()-a)*100)/100,c=Math.round((Date.now()-f)*100)/100,p=c/16,h=function($,y){for($=String($);$.length<y;)$=" "+$;return $};return t==null||t.onChange==null||t.onChange(s),s}}function Jr(e,n){if(e===void 0)throw new Error("Unexpected undefined");return e}var hb=function(n,t){return Math.abs(n-t)<1};var _b=function(n){return n},$b=function(n){for(var t=Math.max(n.startIndex-n.overscan,0),r=Math.min(n.endIndex+n.overscan,n.count-1),i=[],s=t;s<=r;s++)i.push(s);return i},mb=function(n,t){var r=n.scrollElement;if(r){var i=function(l){var d=l.width,f=l.height;t({width:Math.round(d),height:Math.round(f)})};i(r.getBoundingClientRect());var s=new ResizeObserver(function(a){var l=a[0];if(l!=null&&l.borderBoxSize){var d=l.borderBoxSize[0];if(d){i({width:d.inlineSize,height:d.blockSize});return}}i(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),function(){s.unobserve(r)}}},gb=function(n,t){var r=n.scrollElement;if(r){var i=function(){t(r[n.options.horizontal?"scrollLeft":"scrollTop"])};return i(),r.addEventListener("scroll",i,{passive:!0}),function(){r.removeEventListener("scroll",i)}}},xb=function(n,t,r){if(t!=null&&t.borderBoxSize){var i=t.borderBoxSize[0];if(i){var s=Math.round(i[r.options.horizontal?"inlineSize":"blockSize"]);return s}}return Math.round(n.getBoundingClientRect()[r.options.horizontal?"width":"height"])},vb=function(n,t,r){var i,s,a=t.adjustments,l=a===void 0?0:a,d=t.behavior,f=n+l;(i=r.scrollElement)==null||i.scrollTo==null||i.scrollTo((s={},s[r.options.horizontal?"left":"top"]=f,s.behavior=d,s))},yb=function(n){var t=this;this.unsubs=[],this.scrollElement=null,this.isScrolling=!1,this.isScrollingTimeoutId=null,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollDirection=null,this.scrollAdjustments=0,this.measureElementCache=new Map,this.observer=(function(){var r=null,i=function(){return r||(typeof ResizeObserver!="undefined"?r=new ResizeObserver(function(a){a.forEach(function(l){t._measureElement(l.target,l)})}):null)};return{disconnect:function(){var a;return(a=i())==null?void 0:a.disconnect()},observe:function(a){var l;return(l=i())==null?void 0:l.observe(a,{box:"border-box"})},unobserve:function(a){var l;return(l=i())==null?void 0:l.unobserve(a)}}})(),this.range={startIndex:0,endIndex:0},this.setOptions=function(r){Object.entries(r).forEach(function(i){var s=i[0],a=i[1];typeof a=="undefined"&&delete r[s]}),t.options=Tr({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:_b,rangeExtractor:$b,onChange:function(){},measureElement:xb,initialRect:{width:0,height:0},scrollMargin:0,scrollingDelay:150,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1},r)},this.notify=function(){t.options.onChange==null||t.options.onChange(t)},this.cleanup=function(){t.unsubs.filter(Boolean).forEach(function(r){return r()}),t.unsubs=[],t.scrollElement=null},this._didMount=function(){return t.measureElementCache.forEach(t.observer.observe),function(){t.observer.disconnect(),t.cleanup()}},this._willUpdate=function(){var r=t.options.getScrollElement();t.scrollElement!==r&&(t.cleanup(),t.scrollElement=r,t._scrollToOffset(t.scrollOffset,{adjustments:void 0,behavior:void 0}),t.unsubs.push(t.options.observeElementRect(t,function(i){var s=t.scrollRect;t.scrollRect=i,(t.options.horizontal?i.width!==s.width:i.height!==s.height)&&t.maybeNotify()})),t.unsubs.push(t.options.observeElementOffset(t,function(i){t.scrollAdjustments=0,t.scrollOffset!==i&&(t.isScrollingTimeoutId!==null&&(clearTimeout(t.isScrollingTimeoutId),t.isScrollingTimeoutId=null),t.isScrolling=!0,t.scrollDirection=t.scrollOffset<i?"forward":"backward",t.scrollOffset=i,t.maybeNotify(),t.isScrollingTimeoutId=setTimeout(function(){t.isScrollingTimeoutId=null,t.isScrolling=!1,t.scrollDirection=null,t.maybeNotify()},t.options.scrollingDelay))})))},this.getSize=function(){return t.scrollRect[t.options.horizontal?"width":"height"]},this.memoOptions=dn(function(){return[t.options.count,t.options.paddingStart,t.options.scrollMargin,t.options.getItemKey]},function(r,i,s,a){return t.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:i,scrollMargin:s,getItemKey:a}},{key:!1}),this.getFurthestMeasurement=function(r,i){for(var s=new Map,a=new Map,l=i-1;l>=0;l--){var d=r[l];if(!s.has(d.lane)){var f=a.get(d.lane);if(f==null||d.end>f.end?a.set(d.lane,d):d.end<f.end&&s.set(d.lane,!0),s.size===t.options.lanes)break}}return a.size===t.options.lanes?Array.from(a.values()).sort(function(u,c){return u.end-c.end})[0]:void 0},this.getMeasurements=dn(function(){return[t.memoOptions(),t.itemSizeCache]},function(r,i){var s=r.count,a=r.paddingStart,l=r.scrollMargin,d=r.getItemKey,f=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var u=t.measurementsCache.slice(0,f),c=f;c<s;c++){var p=d(c),h=t.options.lanes===1?u[c-1]:t.getFurthestMeasurement(u,c),x=h?h.end:a+l,$=i.get(p),y=typeof $=="number"?$:t.options.estimateSize(c),I=x+y,T=h?h.lane:c%t.options.lanes;u[c]={index:c,start:x,size:y,end:I,key:p,lane:T}}return t.measurementsCache=u,u},{key:!1,debug:function(){return t.options.debug}}),this.calculateRange=dn(function(){return[t.getMeasurements(),t.getSize(),t.scrollOffset]},function(r,i,s){return t.range=wb({measurements:r,outerSize:i,scrollOffset:s})},{key:!1,debug:function(){return t.options.debug}}),this.maybeNotify=dn(function(){var r=t.calculateRange();return[r.startIndex,r.endIndex,t.isScrolling]},function(){t.notify()},{key:!1,debug:function(){return t.options.debug},initialDeps:[this.range.startIndex,this.range.endIndex,this.isScrolling]}),this.getIndexes=dn(function(){return[t.options.rangeExtractor,t.calculateRange(),t.options.overscan,t.options.count]},function(r,i,s,a){return r(Tr({},i,{overscan:s,count:a}))},{key:!1,debug:function(){return t.options.debug}}),this.indexFromElement=function(r){var i=t.options.indexAttribute,s=r.getAttribute(i);return s?parseInt(s,10):-1},this._measureElement=function(r,i){var s=t.indexFromElement(r),a=t.options.getItemKey(s),l=t.measureElementCache.get(a);if(!r.isConnected){t.observer.unobserve(r),r===l&&t.measureElementCache.delete(a);return}l!==r&&(l&&t.observer.unobserve(l),t.observer.observe(r),t.measureElementCache.set(a,r));var d=t.options.measureElement(r,i,t);t.resizeItem(s,d)},this.resizeItem=function(r,i){var s,a=t.measurementsCache[r];if(a){var l=(s=t.itemSizeCache.get(a.key))!=null?s:a.size,d=i-l;d!==0&&(a.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=d,behavior:void 0}),t.pendingMeasuredCacheIndexes.push(r),t.itemSizeCache=new Map(t.itemSizeCache.set(a.key,i)),t.notify())}},this.measureElement=function(r){r&&t._measureElement(r,void 0)},this.getVirtualItems=dn(function(){return[t.getIndexes(),t.getMeasurements()]},function(r,i){for(var s=[],a=0,l=r.length;a<l;a++){var d=r[a],f=i[d];s.push(f)}return s},{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(r){var i=t.getMeasurements();return Jr(i[Ra(0,i.length-1,function(s){return Jr(i[s]).start},r)])},this.getOffsetForAlignment=function(r,i){var s=t.getSize();i==="auto"&&(r<=t.scrollOffset?i="start":r>=t.scrollOffset+s?i="end":i="start"),i==="start"?r=r:i==="end"?r=r-s:i==="center"&&(r=r-s/2);var a=t.options.horizontal?"scrollWidth":"scrollHeight",l=t.scrollElement?"document"in t.scrollElement?t.scrollElement.document.documentElement[a]:t.scrollElement[a]:0,d=l-t.getSize();return Math.max(Math.min(d,r),0)},this.getOffsetForIndex=function(r,i){i===void 0&&(i="auto"),r=Math.max(0,Math.min(r,t.options.count-1));var s=Jr(t.getMeasurements()[r]);if(i==="auto")if(s.end>=t.scrollOffset+t.getSize()-t.options.scrollPaddingEnd)i="end";else if(s.start<=t.scrollOffset+t.options.scrollPaddingStart)i="start";else return[t.scrollOffset,i];var a=i==="end"?s.end+t.options.scrollPaddingEnd:s.start-t.options.scrollPaddingStart;return[t.getOffsetForAlignment(a,i),i]},this.isDynamicMode=function(){return t.measureElementCache.size>0},this.cancelScrollToIndex=function(){t.scrollToIndexTimeoutId!==null&&(clearTimeout(t.scrollToIndexTimeoutId),t.scrollToIndexTimeoutId=null)},this.scrollToOffset=function(r,i){var s=i===void 0?{}:i,a=s.align,l=a===void 0?"start":a,d=s.behavior;t.cancelScrollToIndex(),d==="smooth"&&t.isDynamicMode(),t._scrollToOffset(t.getOffsetForAlignment(r,l),{adjustments:void 0,behavior:d})},this.scrollToIndex=function(r,i){var s=i===void 0?{}:i,a=s.align,l=a===void 0?"auto":a,d=s.behavior;r=Math.max(0,Math.min(r,t.options.count-1)),t.cancelScrollToIndex(),d==="smooth"&&t.isDynamicMode();var f=t.getOffsetForIndex(r,l),u=f[0],c=f[1];t._scrollToOffset(u,{adjustments:void 0,behavior:d}),d!=="smooth"&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout(function(){t.scrollToIndexTimeoutId=null;var p=t.measureElementCache.has(t.options.getItemKey(r));if(p){var h=t.getOffsetForIndex(r,c),x=h[0];hb(x,t.scrollOffset)||t.scrollToIndex(r,{align:c,behavior:d})}else t.scrollToIndex(r,{align:c,behavior:d})}))},this.scrollBy=function(r,i){var s=i===void 0?{}:i,a=s.behavior;t.cancelScrollToIndex(),a==="smooth"&&t.isDynamicMode(),t._scrollToOffset(t.scrollOffset+r,{adjustments:void 0,behavior:a})},this.getTotalSize=function(){var r;return(((r=t.getMeasurements()[t.options.count-1])==null?void 0:r.end)||t.options.paddingStart)-t.options.scrollMargin+t.options.paddingEnd},this._scrollToOffset=function(r,i){var s=i.adjustments,a=i.behavior;t.options.scrollToFn(r,{behavior:a,adjustments:s},t)},this.measure=function(){t.itemSizeCache=new Map,t.notify()},this.setOptions(n),this.scrollRect=this.options.initialRect,this.scrollOffset=this.options.initialOffset,this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(function(r){t.itemSizeCache.set(r.key,r.size)}),this.maybeNotify()},Ra=function(n,t,r,i){for(;n<=t;){var s=(n+t)/2|0,a=r(s);if(a<i)n=s+1;else if(a>i)t=s-1;else return s}return n>0?n-1:0};function wb(e){for(var n=e.measurements,t=e.outerSize,r=e.scrollOffset,i=n.length-1,s=function(f){return n[f].start},a=Ra(0,i,s,r),l=a;l<i&&n[l].end<r+t;)l++;return{startIndex:a,endIndex:l}}var Sb=typeof document!="undefined"?N.useLayoutEffect:N.useEffect;function jb(e){var n=N.useReducer(function(){return{}},{})[1],t=kr({},e,{onChange:function(a){n(),e.onChange==null||e.onChange(a)}}),r=N.useState(function(){return new yb(t)}),i=r[0];return i.setOptions(t),N.useEffect(function(){return i._didMount()},[]),Sb(function(){return i._willUpdate()}),i}function Cb(e){return jb(kr({observeElementRect:mb,observeElementOffset:gb,scrollToFn:vb},e))}function Ib({virtualizerRef:e,itemCount:n,itemSizes:t,overScanCount:r=3,renderItem:i,scrollToIndex:s,scrollToAlignment:a,className:l,style:d}){e||(e=N.useRef(null));const[f,u]=N.useState(null);return e.current=Cb({count:n,getScrollElement:()=>f,estimateSize:Array.isArray(t)?c=>t[c]:()=>t,overscan:r,enableSmoothScroll:!0}),o.jsx("div",{ref:u,className:l,style:B(S({},d),{maxHeight:"70vh",overflow:"auto"}),children:o.jsx("div",{style:{height:`${e.current.getTotalSize()}px`,width:"100%",position:"relative",overflow:"hidden",minHeight:e.current.getVirtualItems().length&&"70px"},children:e.current.getVirtualItems().map(({index:c,size:p,start:h})=>o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${p}px`,transform:`translateY(${h}px)`},children:i(c)},c))})})}function ji(e){e.target.tagName!=="INPUT"&&e.ctrlKey&&(e.preventDefault(),e.key.toLowerCase()==="z"?document.querySelector("#builder-undo-btn").click():e.key.toLowerCase()==="y"&&document.querySelector("#builder-redo-btn").click())}function kb(){const{css:e}=re(),[n,t]=N.useState(!1),[r,i]=N.useState(null),s=ie(We),a=ie(vs),l=ie(Ni),d=ie(Kn),f=ie(di),u=ie(nt),c=ie(be),p=ie(Jn),h=ie(Le),x=ie(ys),$=ie(ws),y=ie(Ss),I=ie(js),[T,w]=q(el),_=ie(Mr),g=N.useRef(null),{active:b,histories:j}=T;N.useEffect(()=>(document.addEventListener("keypress",ji),()=>document.removeEventListener("keypress",ji)),[b,n]);const E=k=>{if(k<0||n||b===k)return;const{state:F}=j[k];t(!0),sessionStorage.setItem("btcd-lc","-"),F.colorScheme?f(F.colorScheme):L(k,f,"colorScheme"),F.breakpoint?u(F.breakpoint):L(k,u,"breakpoint"),F.fields?s(F.fields):L(k,s,"fields"),F.activeBuilderStep!==void 0?I(F.activeBuilderStep):L(k,I,"activeBuilderStep"),F.formInfo?a(F.formInfo):L(k,a,"formInfo"),F.allLayouts?l(F.allLayouts):L(k,l,"allLayouts"),F.nestedLayouts?d(F.nestedLayouts):L(k,d,"nestedLayouts"),F.styles?c(F.styles):L(k,c,"styles"),F.themeColors?p(F.themeColors):L(k,p,"themeColors"),F.themeVars?h(F.themeVars):L(k,h,"themeVars"),F.allThemeColors&&$(F.allThemeColors),F.allThemeVars&&y(F.allThemeVars),F.allStyles&&x(F.allStyles),O(k),w(D=>B(S({},D),{active:k})),_(D=>B(S({},D),{forceBuilderWidthToBrkPnt:D.forceBuilderWidthToBrkPnt+1,reRenderGridLayoutByRootLay:D.reRenderGridLayoutByRootLay+1,recalculateNestedField:{counter:D.recalculateNestedField.counter+1}})),Dt(),t(!1)},O=k=>{if(b>k){co.success(j[k].event,{position:"bottom-right"});return}co.success(j[k].event,{position:"bottom-right"})},L=(k,F,D)=>{for(let z=k-1;z>=0;z-=1)if(D in j[z].state){F(j[z].state[D]);break}},H=()=>{var k;(k=g==null?void 0:g.current)==null||k.scrollToIndex(b),i(!0)},C=()=>{i(!1)},M=j.map(k=>k.state.fldKey?40:25);return o.jsx("div",{children:o.jsxs("div",{className:e(fe.option_right),children:[o.jsx(Ie,{msg:"Undo",children:o.jsx("button",{"data-testid":"undo",type:"button",id:"builder-undo-btn",disabled:!b||n,className:e([fe.icn_btn,v.icn_hover]),onClick:()=>E(b-1),children:o.jsx(bb,{size:"25"})})}),o.jsx("div",{className:e(fe.border_right)}),o.jsx(Ie,{msg:"Redo",children:o.jsx("button",{"data-testid":"redo",type:"button",id:"builder-redo-btn",disabled:b===j.length-1||n,className:e([fe.icn_btn,v.icn_hover]),onClick:()=>E(b+1),children:o.jsx(pb,{size:"25"})})}),o.jsx("div",{className:e(fe.border_right)}),o.jsxs(yr,{place:"bottom-end",onShow:H,onHide:C,children:[o.jsx("button",{"data-testid":"history-list",type:"button",className:`${e([fe.icn_btn,v.icn_hover])} ${r?"active":""}`,children:o.jsx(ts,{size:"25"})}),o.jsxs("div",{className:e(Ot.menu),children:[o.jsxs("p",{className:e(Ot.title),children:[o.jsx("span",{className:e(v.mr1),children:o.jsx(ts,{size:"20"})}),"History"]}),j.length<=1&&o.jsx("span",{className:e(Ot.secondary),children:m("History Empty")}),j.length>1&&o.jsx(Ib,{virtualizerRef:g,className:e(Ot.list),itemCount:j.length,itemSizes:M,renderItem:k=>o.jsx("div",{className:e(Ot.item),children:o.jsxs("button",{type:"button",className:`${e(Ot.btn)} ${b===k&&"active"} ${b<k&&"unactive"}`,onClick:()=>E(k),title:j[k].event,children:[o.jsx("span",{className:e(Ot.subtitle),children:j[k].event}),j[k].state.fldKey&&o.jsx("span",{className:e(Ot.fldkey),children:`Field Key: ${j[k].state.fldKey}`})]})})})]})]})]})})}const Tb=r=>{var i=r,{children:e,title:n}=i,t=cr(i,["children","title"]);var f,u,c;const[s,a]=N.useState(null),l=(f=s==null?void 0:s.contentDocument)==null?void 0:f.body;s&&((u=s==null?void 0:s.contentWindow)==null||u.addEventListener("keydown",tl),(c=s==null?void 0:s.contentWindow)==null||c.addEventListener("keydown",ji));const d=p=>(p==null?void 0:p.doctype)!==null;if(s&&!d(s==null?void 0:s.contentDocument)){const p=document.implementation.createDocumentType("html","","");s.contentDocument.insertBefore(p,s.contentDocument.childNodes[0])}return N.useEffect(()=>{var p;(p=s==null?void 0:s.contentDocument)==null||p.querySelectorAll("a").forEach(h=>{h.bfClickPrevented||(h.addEventListener("click",x=>{x.preventDefault(),x.stopPropagation()}),h.bfClickPrevented=!0)})},[e]),o.jsx("iframe",B(S({title:n},t),{ref:a,referrerPolicy:"no-referrer",children:l&&d(s.contentDocument)&&nl.createPortal(e,l)}))},Qi={},Nr=[],nn=Qi.toString,Jt=Qi.hasOwnProperty,Fa=nn.call(Qi),Er=nn.call(Nr),Nb=nn.call("");function Ci(e,n,t,r,i,s){r=[];for(s in n)if(Jt.call(n,s))for(i in e)Jt.call(e,i)&&r.push(Ii(e[i],n[s],t));return r}function Ii(e,n,t){return t&&(/^[-\w$]+$/.test(n)&&`:-error-bad-sub-selector-${n}`||/&/.test(n)&&n.replace(/&/g,e))||e+n}function Eb(e){return`-${e.toLowerCase()}`}function Zt(e,n,t,r,i,s,a,l,d){if(e!=null){if(/\$/.test(t)){for(d in t=t.split("$"))Jt.call(t,d)&&Zt(e,n,t[d],r,i,s);return}switch(nn.call(e=e.valueOf())){case Er:for(a=0;a<e.length;a+=1)Zt(e[a],n,t,r,i,s);break;case Fa:t=t&&`${t}-`;for(a in e)if(Jt.call(e,a))if(l=e[a],/\$/.test(a))for(d in a=a.split("$"))Jt.call(a,d)&&Zt(l,n,t+a[d],r,i,s);else Zt(l,n,t+a,r,i,s);break;default:for(a=t.replace(/_/g,"-").replace(/[A-Z]/g,Eb),i&&(a==="animation-name"||a==="animation")&&(e=e.split(",").map(f=>f.replace(/()(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,s.l)).join(",")),/^animation|^transition/.test(a)&&(r=["webkit"]),a=a.replace(/^@/,"*"),d=0;d<r.length;d+=1)n.push("-",r[d],"-",a,a?":":"",e,";");n.push(a,a?":":"",e,";")}}}const Mb=/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g;function zb(e,n,t,r,i,s,a,l){let d;if(/^@(?:namespace|import|charset)$/.test(e))if(nn.call(n)===Er)for(d=0;d<n.length;d+=1)t.push(e," ",n[d],";");else t.push(e," ",n,";");else if(/^@keyframes /.test(e))e=a?e.replace(/( )(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,l.l):e,t.push("@-webkit-",e.slice(1)," {"),wt(n,t,"","",["webkit"]),t.push("}"),t.push(e," {"),wt(n,t,"","",s,a,l),t.push("}");else if(/^@extends?$/.test(e)){for(;d=Mb.exec(i);)e=d[4];if(e==null||!a){t.push("@-error-cannot-extend-in-global-context ",JSON.stringify(i),";");return}if(/^@extends?$/.test(e)){t.push("@-error-no-class-to-extend-in ",JSON.stringify(i),";");return}l.e(nn.call(n)===Er?n.map(f=>f.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,l.l)).join(" "):n.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|()\.([-\w]+))/,l.l),e)}else/^@(?:font-face$|viewport$|page )/.test(e)?wt(n,t,e,e,Nr):/^@global$/.test(e)?wt(n,t,r,i,s,0,l):/^@local$/.test(e)?wt(n,t,r,i,s,1,l):/^@(?:media |supports |document )./.test(e)?(t.push(e," {"),wt(n,t,r,i,s,a,l),t.push("}")):t.push("@-error-unsupported-at-rule ",JSON.stringify(e),";")}function wt(e,n,t,r,i,s,a){let l,d,f,u;switch(nn.call(e)){case Er:for(l=0;l<e.length;l+=1)wt(e[l],n,t,r,i,s,a);break;case Fa:for(l in e)f=e[l],t&&/^[-\w$]+$/.test(l)?(u||(u=1,n.push(t||"*"," {")),Zt(f,n,l,i,s,a)):/^@/.test(l)?(u=u&&n.push("}")&&0,zb(l,f,n,t,r,i,s,a)):(u=u&&n.push("}")&&0,wt(f,n,(d=/,/.test(t)||t&&/,/.test(l))?Ci(t.split(","),(s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l).split(","),t).join(","):Ii(t,s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l,t),d?Ci(r.split(","),l.split(","),r).join(","):Ii(r,l,r),i,s,a));u&&n.push("}");break;case Nb:n.push(t||":-error-no-selector"," {"),Zt(e,n,"",i,s,a),n.push("}")}}function Ct(e){e=e||{};const n=[];function t(r,i){for(i=0;i<n.length;i+=1)r=n[i](r)||r;return r.join("")}return e.use=function(){const r=arguments;for(let i=0;i<r.length;i+=1)n.push(r[i]);return e},e.sheet=function(r,i){arguments.length===1&&(i=r,r={});const s={};let a,l=[];for(a in r)a-0!==a-0&&Jt.call(r,a)&&(s[a]=r[a]);wt(i,l,"","",Nr,1,{e:function(f,u){const c=s[u];s[u]=`${c.slice(0,c.lastIndexOf(" ")+1)+f} ${c.slice(c.lastIndexOf(" ")+1)}`},l:function(f,u,c,p,h){return c?u+c:(s[h]||(s[h]=h),u+p+s[h].match(/\S+$/))}}),l=new String(t(l));for(a in s)Jt.call(s,a)&&(l[a]=s[a]);return l},e.inline=function(r,i,s){return arguments.length===1&&(i=r,r={}),Zt(i,s=[],"",Nr,1,{l:function(l,d,f,u,c){return f?d+f:r[c]?d+u+r[c]:c}}),t(s)},e.prefix=function(r,i){return Ci(i.map(s=>`-${s}-`).concat([""]),[r])},e}Ct.global=function(e){return`:global(${e})`};Ct.kv=Pa;function Pa(e,n,t){return t={},t[e]=n,t}Ct.at=function e(n,t,r){if(arguments.length<3){const i=e.bind.apply(e,[null].concat([].slice.call(arguments,0)));return i.toString=function(){return`@${n} ${t}`},i}return Pa(`@${n} ${t}`,r)};Ct(Ct);delete Ct.use;var Ab={};function ki(e,n){for(let t=0,r=e.length;t<r;t++)if(n.apply(n,[e[t],t,e]))return e[t]}function ns(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function Gn(e){return typeof e=="number"&&!isNaN(e)}function Be(e){return parseInt(e,10)}function xn(e,n,t){if(e[n])return new Error(`Invalid prop ${n} passed to ${t} - do not set this, set it on the child.`)}var Qr=["Moz","Webkit","O","ms"];function Ob(e="transform"){var n,t;if(typeof window=="undefined")return"";const r=(t=(n=window.document)==null?void 0:n.documentElement)==null?void 0:t.style;if(!r||e in r)return"";for(let i=0;i<Qr.length;i++)if(Da(e,Qr[i])in r)return Qr[i];return""}function Da(e,n){return n?`${n}${Bb(e)}`:e}function Bb(e){let n="",t=!0;for(let r=0;r<e.length;r++)t?(n+=e[r].toUpperCase(),t=!1):e[r]==="-"?t=!0:n+=e[r];return n}var Lb=Ob(),ei="";function Rb(e,n){var t;ei||(ei=(t=ki(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(i){return ns(e[i])}))!=null?t:"");const r=e[ei];return ns(r)?!!r.call(e,n):!1}function rs(e,n,t){let r=e;do{if(Rb(r,n))return!0;if(r===t)return!1;r=r.parentNode}while(r);return!1}function ti(e,n,t,r){if(!e)return;const i=S({capture:!0},r),s=t;e.addEventListener?e.addEventListener(n,s,i):e.attachEvent?e.attachEvent("on"+n,s):e["on"+n]=s}function Kt(e,n,t,r){if(!e)return;const i=S({capture:!0},r),s=t;e.removeEventListener?e.removeEventListener(n,s,i):e.detachEvent?e.detachEvent("on"+n,s):e["on"+n]=null}function Fb(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=Be(t.borderTopWidth),n+=Be(t.borderBottomWidth),n}function Pb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=Be(t.borderLeftWidth),n+=Be(t.borderRightWidth),n}function Db(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=Be(t.paddingTop),n-=Be(t.paddingBottom),n}function Hb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=Be(t.paddingLeft),n-=Be(t.paddingRight),n}function Vb(e,n,t){const i=n===n.ownerDocument.body?{left:0,top:0}:n.getBoundingClientRect(),s=(e.clientX+n.scrollLeft-i.left)/t,a=(e.clientY+n.scrollTop-i.top)/t;return{x:s,y:a}}function Wb(e,n){const t=Ha(e,n,"px");return{[Da("transform",Lb)]:t}}function Gb(e,n){return Ha(e,n,"")}function Ha({x:e,y:n},t,r){let i=`translate(${e}${r},${n}${r})`;if(t){const s=`${typeof t.x=="string"?t.x:t.x+r}`,a=`${typeof t.y=="string"?t.y:t.y+r}`;i=`translate(${s}, ${a})`+i}return i}function Ub(e,n){return e.targetTouches&&ki(e.targetTouches,t=>n===t.identifier)||e.changedTouches&&ki(e.changedTouches,t=>n===t.identifier)}function Kb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function qb(){return typeof __webpack_nonce__!="undefined"?__webpack_nonce__:void 0}function Yb(e,n){if(!e)return;let t=e.getElementById("react-draggable-style-el");if(!t){t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el";const r=n!=null?n:qb();r&&t.setAttribute("nonce",r),t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
5 `,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
6 `,e.getElementsByTagName("head")[0].appendChild(t)}e.body&&Zb(e.body,"react-draggable-transparent-selection")}function is(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{os(e)}):os(e)}function os(e){if(e)try{e.body&&Xb(e.body,"react-draggable-transparent-selection");const n=e.selection;if(n)n.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch(n){}}function Zb(e,n){e.classList?e.classList.add(n):e.className.match(new RegExp(`(?:^|\\s)${n}(?!\\S)`))||(e.className+=` ${n}`)}function Xb(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp(`(?:^|\\s)${n}(?!\\S)`,"g"),"")}function Jb(e,n,t){if(!e.props.bounds)return[n,t];let{bounds:r}=e.props;r=typeof r=="string"?r:th(r);const i=eo(e);if(typeof r=="string"){const{ownerDocument:s}=i,a=s.defaultView;if(!a)throw new Error("Cannot resolve the owner window of the draggable node.");let l;if(r==="parent"?l=i.parentNode:l=i.getRootNode().querySelector(r),!(l instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const d=l,f=a.getComputedStyle(i),u=a.getComputedStyle(d);r={left:-i.offsetLeft+Be(u.paddingLeft)+Be(f.marginLeft),top:-i.offsetTop+Be(u.paddingTop)+Be(f.marginTop),right:Hb(d)-Pb(i)-i.offsetLeft+Be(u.paddingRight)-Be(f.marginRight),bottom:Db(d)-Fb(i)-i.offsetTop+Be(u.paddingBottom)-Be(f.marginBottom)}}return Gn(r.right)&&(n=Math.min(n,r.right)),Gn(r.bottom)&&(t=Math.min(t,r.bottom)),Gn(r.left)&&(n=Math.max(n,r.left)),Gn(r.top)&&(t=Math.max(t,r.top)),[n,t]}function ss(e,n,t){const r=Math.round(n/e[0])*e[0],i=Math.round(t/e[1])*e[1];return[r,i]}function Qb(e){return e.props.axis==="both"||e.props.axis==="x"}function eh(e){return e.props.axis==="both"||e.props.axis==="y"}function ni(e,n,t){const r=typeof n=="number"?Ub(e,n):null;if(typeof n=="number"&&!r)return null;const i=eo(t),s=t.props.offsetParent||i.offsetParent||i.ownerDocument.body;return Vb(r||e,s,t.props.scale)}function ri(e,n,t){const r=!Gn(e.lastX),i=eo(e);return r?{node:i,deltaX:0,deltaY:0,lastX:n,lastY:t,x:n,y:t}:{node:i,deltaX:n-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:n,y:t}}function ii(e,n){const t=e.props.scale;return{node:n.node,x:e.state.x+n.deltaX/t,y:e.state.y+n.deltaY/t,deltaX:n.deltaX/t,deltaY:n.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function th(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function eo(e){const n=e.findDOMNode();if(!n)throw new Error("<DraggableCore>: Unmounted during event!");return n}var nh=typeof process!="undefined"&&Ab.DRAGGABLE_DEBUG?(()=>{}).bind(console):function(){},_t=nh,dt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Bt=dt.mouse,Nn=class extends N.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:t}=n;if(this.props.disabled||!(e.target instanceof t.defaultView.Node)||this.props.handle&&!rs(e.target,this.props.handle,n)||this.props.cancel&&rs(e.target,this.props.cancel,n))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();const r=Kb(e);this.touchIdentifier=r;const i=ni(e,r,this);if(i==null)return;const{x:s,y:a}=i,l=ri(this,s,a);_t("DraggableCore: handleDragStart: %j",l),_t("calling",this.props.onStart),!(this.props.onStart(e,l)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&Yb(t,this.props.nonce),this.dragging=!0,this.lastX=s,this.lastY=a,ti(t,Bt.move,this.handleDrag),ti(t,Bt.stop,this.handleDragStop))},this.handleDrag=e=>{const n=ni(e,this.touchIdentifier,this);if(n==null)return;let{x:t,y:r}=n;if(Array.isArray(this.props.grid)){let a=t-this.lastX,l=r-this.lastY;if([a,l]=ss(this.props.grid,a,l),!a&&!l)return;t=this.lastX+a,r=this.lastY+l}const i=ri(this,t,r);if(_t("DraggableCore: handleDrag: %j",i),this.props.onDrag(e,i)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(a){const l=document.createEvent("MouseEvents");l.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(l)}return}this.lastX=t,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;const n=ni(e,this.touchIdentifier,this);if(n==null)return;let{x:t,y:r}=n;if(Array.isArray(this.props.grid)){let l=t-this.lastX||0,d=r-this.lastY||0;[l,d]=ss(this.props.grid,l,d),t=this.lastX+l,r=this.lastY+d}const i=ri(this,t,r);if(this.props.onStop(e,i)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&is(a.ownerDocument),_t("DraggableCore: handleDragStop: %j",i),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(_t("DraggableCore: Removing handlers"),Kt(a.ownerDocument,Bt.move,this.handleDrag),Kt(a.ownerDocument,Bt.stop,this.handleDragStop))},this.onMouseDown=e=>(Bt=dt.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(Bt=dt.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(Bt=dt.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(Bt=dt.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&ti(e,dt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:n}=e;Kt(n,dt.mouse.move,this.handleDrag),Kt(n,dt.touch.move,this.handleDrag),Kt(n,dt.mouse.stop,this.handleDragStop),Kt(n,dt.touch.stop,this.handleDragStop),Kt(e,dt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&is(n)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;const n=Cs;return typeof n.findDOMNode=="function"?n.findDOMNode(this):(_t("react-draggable: ReactDOM.findDOMNode is not available in React 19+. You must provide a nodeRef prop. See: https://github.com/react-grid-layout/react-draggable#noderef"),null)}render(){return N.cloneElement(N.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Nn.displayName="DraggableCore";Nn.propTypes={allowAnyClick:ee.bool,allowMobileScroll:ee.bool,children:ee.node.isRequired,disabled:ee.bool,enableUserSelectHack:ee.bool,offsetParent:function(e,n){if(e[n]&&e[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:ee.arrayOf(ee.number),handle:ee.string,cancel:ee.string,nodeRef:ee.object,nonce:ee.string,onStart:ee.func,onDrag:ee.func,onStop:ee.func,onMouseDown:ee.func,scale:ee.number,className:xn,style:xn,transform:xn};Nn.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var Dr=class extends N.Component{constructor(e){super(e),this.onDragStart=(n,t)=>{if(_t("Draggable: onDragStart: %j",t),this.props.onStart(n,ii(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(n,t)=>{if(!this.state.dragging)return!1;_t("Draggable: onDrag: %j",t);const r=ii(this,t),i={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:a,y:l}=i;i.x+=this.state.slackX,i.y+=this.state.slackY;const[d,f]=Jb(this,i.x,i.y);i.x=d,i.y=f,i.slackX=this.state.slackX+(a-i.x),i.slackY=this.state.slackY+(l-i.y),r.x=i.x,r.y=i.y,r.deltaX=i.x-this.state.x,r.deltaY=i.y-this.state.y}if(this.props.onDrag(n,r)===!1)return!1;this.setState(i)},this.onDragStop=(n,t)=>{if(!this.state.dragging||this.props.onStop(n,ii(this,t))===!1)return!1;_t("Draggable: onDragStop: %j",t);const i={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:a,y:l}=this.props.position;i.x=a,i.y=l}this.setState(i)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:S({},e.position),slackX:0,slackY:0,isElementSVG:!1},e.position&&(e.onDrag||e.onStop)}static getDerivedStateFromProps({position:e},{prevPropsPosition:n}){return e&&(!n||e.x!==n.x||e.y!==n.y)?(_t("Draggable: getDerivedStateFromProps %j",{position:e,prevPropsPosition:n}),{x:e.x,y:e.y,prevPropsPosition:S({},e)}):null}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;const n=Cs;return typeof n.findDOMNode=="function"?n.findDOMNode(this):null}render(){const w=this.props,{axis:e,bounds:n,children:t,defaultPosition:r,defaultClassName:i,defaultClassNameDragging:s,defaultClassNameDragged:a,position:l,positionOffset:d,scale:f}=w,u=cr(w,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let c={},p=null;const x=!!!l||this.state.dragging,$=l||r,y={x:Qb(this)&&x?this.state.x:$.x,y:eh(this)&&x?this.state.y:$.y};this.state.isElementSVG?p=Gb(y,d):c=Wb(y,d);const I=N.Children.only(t),T=ic(I.props.className||"",i,{[s]:this.state.dragging,[a]:this.state.dragged});return N.createElement(Nn,B(S({},u),{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),N.cloneElement(I,{className:T,style:S(S({},I.props.style),c),transform:p}))}};Dr.displayName="Draggable";Dr.propTypes=B(S({},Nn.propTypes),{axis:ee.oneOf(["both","x","y","none"]),bounds:ee.oneOfType([ee.shape({left:ee.number,right:ee.number,top:ee.number,bottom:ee.number}),ee.string,ee.oneOf([!1])]),defaultClassName:ee.string,defaultClassNameDragging:ee.string,defaultClassNameDragged:ee.string,defaultPosition:ee.shape({x:ee.number,y:ee.number}),positionOffset:ee.shape({x:ee.oneOfType([ee.number,ee.string]),y:ee.oneOfType([ee.number,ee.string])}),position:ee.shape({x:ee.number,y:ee.number}),className:xn,style:xn,transform:xn});Dr.defaultProps=B(S({},Nn.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1});var rh=Dr;const Lt={container:{bc:"var(--white-100)",pn:"absolute",tp:10,zx:9995,pt:0,pb:10,brs:10,b:"1px solid var(--white-0-83)",bs:"0 6px 6px 0 #00000012, 0 3px 23px 0 #e8e8e8"},titleContainer:{w:"85%",cur:"move",py:3},title:{fw:500,fs:14,px:3,dy:"block"},subTitle:{fs:10,mx:3,cr:"var(--white-0-50)"},button:{p:0,m:0,b:0,mnw:30,mnh:30,dy:"block",bc:"transparent",cr:"var(--white-0-0-32)",curp:1,flx:"center",":hover":{cr:"var(--white-0-0-64)"}},hr:{mx:10,mb:10,mt:5},content:{px:10,mxh:401},titleBar:{h:35,pl:10,pt:5,flx:"center-between"}};function ih({stateObjName:e,propertyPath:n,objectPaths:t,id:r,fldKey:i,canSetVariable:s=!0}){const[a,l]=N.useState({parent:"Solid",child:"Solid",color:"Custom"}),{css:d}=re(),{element:f,fieldKey:u}=me(),{object:c,paths:p}=t,[h,x]=N.useState(),[$,y]=N.useState(),[I,T]=N.useState({type:"auto",w:"0px",h:"0px"}),[w,_]=N.useState({type:"initial",x:"0px",y:"0px",value:"center"}),[g,b]=N.useState("initial"),[j,E]=q(be),O=ie(Le),[L,H]=q(Jn),[C,M]=q(sl),k=rl(uo),[F,D]=q(uo),z=zr(c,{styles:j}),V=[{label:"Custom",icn:"Custom color",show:["icn"],tip:"Custom color"},{label:"Var",icn:"Variables",show:["icn"],tip:"Variable color"}],{"--global-bg-color":se,"--global-fld-bdr-clr":Re,"--global-fld-bg-color":mt,"--global-font-color":En,"--global-accent-color":on}=L,Te=(R,Z)=>{switch(e){case"themeColors":H(oe=>P(oe,he=>{he[`${n}`]=Z})),K(X(f,u,n,Z,{themeColors:W("themeColors")}));break;case"themeVars":O(oe=>P(oe,he=>{he[`${n}`]=Z})),K(X(f,u,n,Z,{themeVars:W("themeVars")}));break;case"styles":E(oe=>P(oe,he=>{var Xe;let Ye=Z;const De=le(he,R);(Xe=De==null?void 0:De.match(/(!important)/gi))!=null&&Xe[0]&&(Ye=`${Z} !important`),_e(he,R,Ye)})),K(X(f,u,R,Z,{styles:W("styles")}));break}},Nt=R=>{Te(p["background-image"],R.style),y(R.style)},Fe=R=>{if(typeof R=="object")x(R),G(R.h,R.s,R.v,R.a);else{const Z=`var(${R})`,oe=L[R];if(oe){const[he,Ye,De,rt]=oe.match(/[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)/gi),[Xe,ut,He,lt]=ol(he,Ye,De,rt);x({h:Xe,s:ut,v:He,a:lt}),G(Xe,ut,He,lt,Z)}else G("","","","",Z)}},Ut=R=>{const Z={h:0,s:0,v:0,a:0};R.target.checked?Fe(Z):Fe("--global-accent-color")},J=()=>(h==null?void 0:h.h)===0&&(h==null?void 0:h.s)===0&&(h==null?void 0:h.v)===0&&(h==null?void 0:h.a)===0,G=(R,Z,oe,he,Ye="")=>{const[De,rt,Xe,ut,He]=ks(R,Z,oe,he);switch(e){case"themeColors":H(lt=>P(lt,ct=>{ct[n]=He})),K(X(f,u,n,He,{themeColors:W("themeColors")}));break;case"themeVars":O(lt=>P(lt,ct=>{ct[n]=He})),K(X(f,u,n,He,{themeVars:W("themeVars")}));break;case"styles":E(lt=>P(lt,ct=>{var oo;let Hr=He;const Ya=Array.isArray(p)?p[0]:n,Vr=le(ct,Ya),Wr=(oo=Vr==null?void 0:Vr.match(/(!important)/gi))==null?void 0:oo[0];Wr&&(Hr=`${Hr} !important`);const io=Ye?`${Ye}${Wr?" !important":""}`:Hr;Array.isArray(p)?p.forEach(Za=>{_e(ct,Za,io)}):(Wr?_e(ct,p["background-image"]," !important"):_e(ct,p["background-image"],""),_e(ct,p.background,io))})),K(X(f,u,n,Ye||He,{styles:W("styles")}));break}},je=R=>{R.stopPropagation(),y(""),Te(p["background-image"],""),D("")};N.useEffect(()=>{const R=le(z,p["background-image"]);y(R),x(Wn(le(z,p.background)))},[]),N.useEffect(()=>(F&&(Te(p["background-image"],`url(${F})`),y(`url(${F})`)),()=>{k()}),[F]);const ge=R=>{T(Z=>B(S({},Z),{type:R.target.value})),Te(p["background-size"],`${R.target.value}`)},at=({target:{value:R}})=>{_(Z=>B(S({},Z),{type:R})),R!=="size"&&R!=="positions"&&Te(p["background-position"],R)},qe=R=>{b(R.target.value),Te(p["background-repeat"],R.target.value)},Y=R=>{_(Z=>B(S({},Z),{value:R})),Te(p["background-position"],R)},pe=R=>{Te(p["background-image"],`url(${R.target.value})`),y(`url(${R.target.value})`)},Pe=(R,Z,oe)=>{oe===0?(T(he=>B(S({},he),{w:`${R}${Z}`})),Te(p["background-size"],`${R}${Z} ${I.h}`)):(T(he=>B(S({},he),{h:`${R}${Z}`})),Te(p["background-size"],`${I.w} ${R}${Z}`))},ae=(R,Z,oe)=>{oe===0?(_(he=>B(S({},he),{x:`${R}${Z}`})),Te(p["background-position"],`${R}${Z} ${w.y}`)):(_(he=>B(S({},he),{y:`${R}${Z}`})),Te(p["background-position"],`${w.x} ${R}${Z}`))},Ne=(R,Z)=>{Z==="parent"?l({parent:R,child:"Upload",color:"Custom"}):Z==="child"?l(oe=>B(S({},oe),{child:R})):Z==="color"&&l(oe=>B(S({},oe),{color:R}))},gt=()=>{if(typeof wp!="undefined"&&wp.media){const R=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});R.on("select",()=>{const Z=R.state().get("selection").first().toJSON();Te(p["background-image"],`url(${Z.url})`),y(`url(${Z.url})`)}),R.open()}};return o.jsxs("div",{className:d(Q.container),children:[o.jsx(et,{options:[{label:"Solid"},{label:"Gradient"},{label:"Image"}],onChange:R=>Ne(R,"parent"),defaultActive:a.parent,wideTab:!0}),o.jsx(Is,{autoHide:!0,autoHeight:!0,autoHeightMin:200,autoHeightMax:365,children:o.jsxs("div",{className:d(v.mt1),children:[o.jsx(Qe,{open:a.parent==="Solid",children:s?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:d(Ae.mb),children:o.jsx(et,{square:!0,noShadow:!0,defaultActive:"Custom",options:V,size:60,component:"button",onChange:R=>Ne(R,"color"),show:["icn"],variant:"lightgray",width:"100%",wideTab:!0})}),o.jsx(Qe,{open:a.color==="Var",children:o.jsxs("div",{className:d(Ae.varClr),children:[o.jsxs("button",{className:`${d(Ae.clrItem)} ${d(h==="--global-bg-color"&&Ae.active)}`,type:"button",onClick:()=>Fe("--global-bg-color"),"data-testid":`${r}-g-bg-c`,children:[o.jsx(An,{bg:se,className:d(v.mr2)}),o.jsx("span",{children:"Background Color"})]}),o.jsxs("button",{className:d(Ae.clrItem,h==="--global-accent-color"&&Ae.active),type:"button",onClick:()=>Fe("--global-accent-color"),"data-testid":`${r}-g-a-c`,children:[o.jsx(An,{bg:on,className:d(v.mr2)}),o.jsx("span",{children:"Background Accent Color"})]}),o.jsxs("button",{className:d(Ae.clrItem,h==="--global-font-color"&&Ae.active),type:"button",onClick:()=>Fe("--global-font-color"),"data-testid":`${r}-g-f-c`,children:[o.jsx(An,{bg:En,className:d(v.mr2)}),o.jsx("span",{children:"Font Color"})]}),o.jsxs("button",{className:d(Ae.clrItem,h==="--global-fld-bdr-clr"&&Ae.active),type:"button",onClick:()=>Fe("--global-fld-bdr-clr"),"data-testid":`${r}-g-f-b`,children:[o.jsx(An,{bg:Re,className:d(v.mr2)}),o.jsx("span",{children:"Field Border Color"})]}),o.jsxs("button",{className:d(Ae.clrItem,h==="--global-fld-bg-color"&&Ae.active),type:"button",onClick:()=>Fe("--global-fld-bg-color"),"data-testid":`${r}-g-f-bg-c`,children:[o.jsx(An,{bg:mt,className:d(v.mr2)}),o.jsx("span",{children:"Field Background Color"})]})]})}),o.jsx(Qe,{open:a.color==="Custom",children:o.jsxs("div",{className:d(Ae.container,as.container,as.preview_wrp),children:[o.jsx("div",{className:d(Ae.subContainer),children:o.jsx(wr,{title:m("Transparant"),action:Ut,isChecked:J(),id:"color-transparant"})}),o.jsx($i,{showParams:!0,showPreview:!0,onChange:Fe,value:h})]})})]}):o.jsxs("div",{className:d(Ae.container),children:[o.jsx("div",{className:d(Ae.subContainer),children:o.jsx(wr,{title:m("Transparant"),action:Ut,isChecked:J(),id:"color-transparant"})}),o.jsx($i,{showParams:!0,showPreview:!0,onChange:Fe,value:h})]})}),o.jsx(Qe,{open:a.parent==="Gradient",children:o.jsx(Us,{gradient:il($),changeHandler:Nt})}),o.jsx(Qe,{open:a.parent==="Image",children:o.jsxs(o.Fragment,{children:[o.jsx(et,{options:[{label:"Upload"},{label:"Link"}],onChange:R=>Ne(R,"child"),defaultActive:a.child,wideTab:!0}),o.jsxs("div",{className:d(v.mt2,{p:"0px 2px"}),children:[a.child==="Upload"&&o.jsx(Ks,{title:"Image",imageSrc:$!=null&&$.match(/(^url\(.+\)$)/)?$==null?void 0:$.replace(/(url\(|\))/gi,""):"",value:$==null?void 0:$.slice($.lastIndexOf("/")+1,-1),clickAction:gt,clearAction:je}),a.child==="Link"&&o.jsx("div",{className:d(v.mt2),children:o.jsxs("div",{className:d(v.flxClm),children:[o.jsxs("div",{className:d({flx:"between"}),children:[o.jsx("span",{className:d(Q.title),children:"URL"}),o.jsx("span",{className:d(Q.title,Q.browse),role:"button",tabIndex:0,onClick:()=>M(!0),onKeyUp:()=>M(!0),children:"Browse"})]}),o.jsx("input",{type:"url",className:d(Q.urlinput,{pr:"30px !important"}),value:$!=null&&$.match(/(^url\(.+\)$)/)?$==null?void 0:$.replace(/(url\(|\))/gi,""):"",onChange:pe,placeholder:"ex: https://www.example.com"})]})}),o.jsxs("div",{className:d(v.mt2),children:[o.jsxs("div",{className:d(v.flxcb),children:[o.jsx("span",{className:d(Q.title),children:"Size"}),o.jsx("div",{className:d(v.flxc),children:o.jsxs("select",{value:I.type,name:"",id:"",onChange:ge,className:d(gn.select),children:[o.jsx("option",{value:"auto",children:"auto"}),o.jsx("option",{value:"size",children:"size"}),o.jsx("option",{value:"cover",children:"cover"}),o.jsx("option",{value:"contain",children:"contain"}),o.jsx("option",{value:"initial",children:"initial"})]})})]}),o.jsx(Qe,{open:I.type==="size",children:o.jsx(Co,{className:d(v.ml6,v.mb2),options:[{label:"W",value:I.w},{label:"H",value:I.h}],unitOptions:["px","%"],valuChangeHandler:Pe})})]}),o.jsxs("div",{className:d(v.mt2),children:[o.jsxs("div",{className:d(v.flxcb),children:[o.jsx("span",{className:d(Q.title),children:"Position"}),o.jsx("div",{className:d(v.flxc),children:o.jsxs("select",{value:w.type,name:"",id:"",onChange:at,className:d(gn.select),children:[o.jsx("option",{value:"positions",children:"Positions"}),o.jsx("option",{value:"size",children:"Size"}),o.jsx("option",{value:"inherit",children:"Inherit"}),o.jsx("option",{value:"initial",children:"Initial"})]})})]}),o.jsx(Qe,{open:w.type==="size",children:o.jsx(Co,{className:d(v.ml6,v.mb2),options:[{label:"X",value:w.x},{label:"Y",value:w.y}],unitOptions:["px","%"],valuChangeHandler:ae})}),o.jsx(Qe,{open:w.type==="positions",children:o.jsxs("div",{className:d(v.flxcb,v.ml6,v.mt2,Q.positioncontainer),children:[o.jsx("div",{className:d(Q.positionitem),children:o.jsx(Ie,{msg:"Top Left",children:o.jsx("span",{className:d(Q.positiondot,w.value==="top left"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("top left"),onClick:()=>Y("top left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Top Center",children:o.jsx("span",{className:d(Q.positiondot,w.value==="top center"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("top center"),onClick:()=>Y("top center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Top Right",children:o.jsx("span",{className:d(Q.positiondot,w.value==="top right"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("top right"),onClick:()=>Y("top right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem),children:o.jsx(Ie,{msg:"Center Left",children:o.jsx("span",{className:d(Q.positiondot,w.value==="center left"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("center left"),onClick:()=>Y("center left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Center",children:o.jsx("span",{className:d(Q.positiondot,w.value==="center"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("center"),onClick:()=>Y("center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Center Right",children:o.jsx("span",{className:d(Q.positiondot,w.value==="center right"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("center right"),onClick:()=>Y("center right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem),children:o.jsx(Ie,{msg:"Bottom Left",children:o.jsx("span",{className:d(Q.positiondot,w.value==="bottom left"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("bottom left"),onClick:()=>Y("bottom left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txCenter),children:o.jsx(Ie,{msg:"Bottom Center",children:o.jsx("span",{className:d(Q.positiondot,w.value==="bottom center"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("bottom center"),onClick:()=>Y("bottom center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:d(Q.positionitem,v.txRight),children:o.jsx(Ie,{msg:"Bottom Right",children:o.jsx("span",{className:d(Q.positiondot,w.value==="bottom right"&&Q.positionDotActive),role:"button",onKeyDown:()=>Y("bottom right"),onClick:()=>Y("bottom right"),tabIndex:0,children:" "})})})]})})]}),o.jsx("div",{className:d(v.mt2),children:o.jsxs("div",{className:d(v.flxcb),children:[o.jsx("span",{className:d(Q.title),children:"Repeat"}),o.jsx("div",{className:d(v.flxc),children:o.jsxs("select",{value:g,name:"",id:"",onChange:qe,className:d(gn.select),children:[o.jsx("option",{value:"repeat",children:"Repeat"}),o.jsx("option",{value:"repeat-x",children:"Repeat-X"}),o.jsx("option",{value:"repeat-y",children:"Repeat-Y"}),o.jsx("option",{value:"no-repeat",children:"No Repeat"}),o.jsx("option",{value:"space",children:"Space"}),o.jsx("option",{value:"round",children:"Round"}),o.jsx("option",{value:"initial",children:"Initial"})]})})]})})]})]})})]})})]})}var oh=N.memo(ih);const as={preview_wrp:{'& div[role="group"]':{p:4,b:0},"& input":{brs:8,b:"1px solid lightgray",p:"3px 8px",mnh:"10px !important",fs:12,mb:3,bs:"none",":focus":{focusShadow:1,b:"1px solid var(--b-50)"}},"& .styles-module_container__2LiHz":{w:"100%"},"& .common-module_transBackground__2AOKu":{brs:8,ow:"hidden"}},container:{"& > .ui-color-picker":{w:"100%"}}},Ae={container:{dy:"flex",fd:"column"},subContainer:{m:5,"& span":{fs:12},"& input":{m:0}},varClr:{my:5,w:"100%"},active:{bcr:"var(--b-50) !important",bd:"#f3f8ff"},clrItem:{dy:"block",flx:"align-center",bd:"transparent",b:"2px solid var(--white-0-93)",p:3,mb:8,brs:10,fs:12,cur:"pointer",w:"100%",tn:"background .3s",":hover":{bd:"var(--white-0-97)"}},mb:{mb:5}};var sh=""+new URL("bf-529-39.png",import.meta.url).href,ah=""+new URL("bf-347-37.png",import.meta.url).href,lh=""+new URL("bf-418-38.png",import.meta.url).href,ch=""+new URL("bf-347-37.png",import.meta.url).href;const dh=[{name:"No Style",slug:"noStyle",img:sh},{name:"Bit Form Default",slug:"bitformDefault",img:ch},{name:"Bit Form Legacy",slug:"bitformLegacy",img:ah},{name:"Atlassian Theme",slug:"atlassian",img:lh}];function to({fldKey:e}){const{css:n}=re(),[t,r]=q(be),i=ce(Qn),a=ce(We)[e].typ,l=[{name:"Checkbox Theme",slug:"individual",img:"",allowedFlds:["check","radio"]}],d=[...dh,...l.filter(p=>p.allowedFlds.includes(a))],f=(p,h,x)=>Ei(p,h,x,{breakpoint:"lg",colorScheme:"light",direction:"ltr"}),u=p=>{const h=e||i,x=P(t,$=>{const y=$.fields[h].fieldType;$.fields[h]=f(p,h,y)});r(x),Dt(e),K(X("",h,"theme",p,{styles:x}))},c=p=>{var x;const h=e||i;return((x=t.fields[h])==null?void 0:x.theme)===p};return o.jsx("div",{className:n(pt.thm_container),children:d.map(p=>o.jsx(to.Card,{name:p.name,applyThemeAction:()=>u(p==null?void 0:p.slug),img:p.img,isActive:c(p==null?void 0:p.slug)},p.name))})}const uh=({name:e,img:n,isActive:t,applyThemeAction:r})=>{const{formType:i,formID:s}=me(),{css:a}=re();return o.jsxs("div",{className:a(pt.thm_wrp),children:[o.jsxs("div",{className:a(pt.thm_btn,t&&pt.activeStyle),children:[o.jsxs("div",{"data-thm-ctrl-wrp":!0,className:a(pt.thm_control_wrp),children:[o.jsx(Ie,{msg:"Preview",children:o.jsx("button",{type:"button",className:a(pt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(Zl,{size:"20"})})}),t?o.jsx(Ie,{msg:"Customize theme",children:o.jsx(al,{to:`/form/builder/${i}/${s}/theme-customize`,type:"button",className:a(pt.thm_ctrl_btn),"aria-label":"Theme Customize",children:o.jsx(ll,{size:"20",stroke:"2.2"})})}):o.jsx(Ie,{msg:"Apply Theme",children:o.jsx("button",{type:"button",onClick:r,className:a(pt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(Xl,{size:"20px"})})})]}),o.jsx("img",{className:a(pt.thmImg),width:"120",height:"147.64",alt:"Theme thumbnail",src:n||`https://raw.githubusercontent.com/Bit-Apps-Pro/bitform-resourses/main/theme-thumbnails/${n}`})]}),o.jsx("span",{className:a(pt.thm_name),children:e})]})};to.Card=uh;const pt={thm_container:{flx:1,flxp:"jc"},thmImg:{dy:"block"},thm_wrp:{w:124,h:170,flxi:1,fd:"column",mx:5,mt:10},thm_btn:{pn:"relative",curp:1,b:"2px solid var(--white-0-83)",brs:8,p:0,bd:"var(--white-100)",ow:"hidden",":hover":{bcr:"var(--white-0-50)","& div[data-thm-ctrl-wrp]":{oy:"1 !important",visibility:"visible"}}},thm_name:{fs:13,mt:4},thm_control_wrp:{pn:"absolute",w:"100%",h:"100%",bd:"#1a1b318c",backdropFilter:"blur(2px)",flx:"center",oy:0,visibility:"hidden",tn:"opacity .3s"},thm_ctrl_btn:{p:0,brs:"50%",w:30,h:30,b:"1px solid gray",flx:"center",mx:2,curp:1,cr:"var(--b-54-12)",bd:"var(--white-0-95)",":hover":{cr:"var(--b-50)",bd:"var(--white-100)"}},activeStyle:{bcr:"var(--b-50)",bs:"0 0 0 2px var(--b-50)"}};function fh({stateObjName:e,objectPaths:n,id:t,propertyPath:r}){const{css:i}=re(),{fieldKey:s,element:a}=me(),[l,d]=q(Le),[f,u]=N.useState(),[c,p]=q(Jn),[h,x]=q(be),{paths:$}=n;N.useEffect(()=>{var w;switch(e){case"themeColors":const _=le(c,r);u(Wn(_));break;case"themeVars":const g=le(l,r);u(Wn(g));break;case"styles":const b=Array.isArray(r)?r[0]:r,j=le(h,b);let E=j;if(((w=j==null?void 0:j.match(/var/gi))==null?void 0:w[0])==="var"){const L=j==null?void 0:j.replace(/\(|var|,.*|\)/gi,"");E=l[L]?l[L]:c[L]}u(Wn(E));break;case"field-accent-color":const O=le(c,r);u(Wn(O));break}},[t]);const y=(w,_,g,b,j)=>{const[E,O,L,H,C]=ks(_,g,b,j);switch(e){case"themeColors":p(M=>P(M,k=>{k[w]=C})),K(X(a,s,w,C,{themeColors:W("themeColors")}));break;case"themeVars":d(M=>P(M,k=>{k[w]=C})),K(X(a,s,w,C,{themeVars:W("themeVars")}));break;case"styles":x(M=>P(M,k=>{var V;let F=C;const D=le(k,w);(V=D==null?void 0:D.match(/!important/gi))!=null&&V[0]&&(F=`${F} !important`),_e(k,w,F)})),K(X(a,s,w,C,{styles:W("styles")}));break}},I=(w,_)=>{switch(e){case"themeColors":p(g=>P(g,b=>{b[w]=_})),K(X(a,s,w,_,{themeColors:W("themeColors")}));break;case"themeVars":d(g=>P(g,b=>{b[w]=_})),K(X(a,s,w,_,{themeVars:W("themeVars")}));break;case"styles":x(g=>P(g,b=>{var L;let j=_;const E=le(b,w);(L=E==null?void 0:E.match(/!important/gi))!=null&&L[0]&&(j=`${j} !important`),_e(b,w,j)})),K(X(a,s,w,_,{styles:W("styles")}));break}},T=w=>{u(w);const _=cl(w.str);y($["icon-color"],w.h,w.s,w.v,w.a),I($.filter,_.filter)};return o.jsx("div",{className:i(bh.preview_wrp),children:o.jsx($i,{showParams:!0,showPreview:!0,onChange:T,value:f})})}var ph=N.memo(fh);const bh={preview_wrp:{'& div[role="group"]':{p:4,b:0},"& input":{brs:8,b:"1px solid lightgray",p:"3px 8px",mnh:"10px !important",fs:12,mb:3,bs:"none",":focus":{focusShadow:1,b:"1px solid var(--b-50)"}},"& .common-module_transBackground__2AOKu":{brs:8,ow:"hidden"}}};function ls({title:e="Filters",objectPaths:n,id:t}){var H;const{css:r}=re(),{fieldKey:i,element:s}=me(),[a,l]=q(be),[d,f]=q(Jn),{object:u,paths:c}=n,p=()=>zr(u,{styles:a,themeColors:d}),h=C=>{let M={};switch(C){case"brightness":case"grayscale":case"contrast":case"invert":case"sepia":M={value:`${C}(100%)`,units:["","%"],minValue:0,maxValue:100};break;case"blur":M={value:`${C}(2px)`,units:["","px","em","rem"],minValue:.1,maxValue:10};break;case"drop-shadow":M={value:`${C}(8px 8px 10px #878787)`,units:["px"],minValue:-200,maxValue:200};break;case"hue-rotate":M={value:`${C}(90deg)`,units:["deg"],minValue:-360,maxValue:360};break;case"saturate":case"opacity":M={value:`${C}(30%)`,units:["","%"],minValue:0,maxValue:100};break;default:M={value:"none",units:[""],minValue:0,maxValue:0}}return M};let x,$=!1;if(u==="themeColors")x=d[c.filter];else{const C=le(a,c==null?void 0:c.filter);x=ui(d,C)}const y=C=>(C!=null&&C.match(/(!important)/gi)&&(C=C==null?void 0:C.replace(/(!important)/gi,""),$=!0),C);x=y(x);const I=C=>$?C!=null&&C.match(/(!important)/gi)?C:`${C}!important`:C;x=x==null?void 0:x.replace("none","");const T=x!=null&&x.trim()?(H=x==null?void 0:x.trim())==null?void 0:H.split(/\B\s+(?![^(]*\))/gi):[],w=T==null?void 0:T.map(C=>{var V;const M=C==null?void 0:C.slice(0,C==null?void 0:C.indexOf("("));let k=(V=C==null?void 0:C.slice(C.indexOf("(")+1,C.indexOf(")")))==null?void 0:V.trim();const F=ne(k)||"";k.indexOf(" ")<0&&(k=ve(k));const D=h(M);let z=M.replace("-"," ");return z=z.replace(z.slice(0,1),z.slice(0,1).toUpperCase()),{title:z,name:M,value:k,unit:F,options:D.units,min:D.minValue,max:D.maxValue}}),_=w.map(C=>C.name),g=(C,{value:M,unit:k},F)=>{let D=le(p(),c.filter);D=y(x);const z=D.indexOf(C),V=D.indexOf(")",z)+1;if(k||(k=""),C==="drop-shadow"){const se=D.slice(D.indexOf("(",z)+1,V-1).split(/\s(?![^(]*\))/gi);se[F]=`${M}${k}`,D=D.replace(D.slice(z,V),`${C}(${se.join(" ")})`)}else D=D.replace(D.slice(z,V),`${C}(${M}${k})`);D=I(D),Yt(u,c.filter,D==null?void 0:D.trim(),{setThemeColors:f,setStyles:l}),K(X(s,i,c.filter,D==null?void 0:D.trim(),{[u]:W(u)}))},b=(C,M,k,F,D)=>{let z=le(p(),c.filter);z=y(x);const V=z.indexOf(C),se=z.indexOf(")",V)+1;if(M||(M=""),C==="drop-shadow"){const Re=z.slice(z.indexOf("(",V)+1,se-1).split(/\s(?![^(]*\))/gi),mt=Qt(M,k,D);Re[F]=`${mt}${M}`,z=z.replace(z.slice(V,se),`${C}(${Re.join(" ")})`)}else{const Re=Qt(M,k,D);z=z.replace(z.slice(V,se),`${C}(${Re}${M})`)}z=I(z),Yt(u,c.filter,z.trim(),{setThemeColors:f,setStyles:l}),K(X(s,i,c.filter,z==null?void 0:z.trim(),{[u]:W(u)}))},j=C=>{let M=le(p(),c.filter);M=y(M);const k=M.indexOf(C),F=M.indexOf(")",k)+1;M=M.replace(M.slice(k,F),"").trim(),M=I(M),Yt(u,c.filter,M,{setThemeColors:f,setStyles:l}),K(X(s,i,c.filter,M,{[u]:W(u)}))},E=C=>{const M=h(C).value;let k=le(p(),c.filter);k=ui(p(),k),k=y(k);let F;M==="none"?F=`${M}`:F=`${k==null?void 0:k.replace("none","")} ${M}`.trim(),F=I(F),Yt(u,c.filter,F,{setThemeColors:f,setStyles:l}),K(X(s,i,c.filter,F,{[u]:W(u)}))},L=Object.keys({blur:{},brightness:{},contrast:{},"drop-shadow":{},grayscale:{},"hue-rotate":{},invert:{},opacity:{},saturate:{},sepia:{},none:{}}).filter(C=>!(_!=null&&_.includes(C)));return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fs12,v.fw500),children:e}),o.jsx(Gs,{id:"fltr-prop",properties:L,setProperty:E,classNames:r({mt:"0px !important"})})]}),w.map(C=>{if(C.name==="drop-shadow"){const M=C.value.split(/\s(?![^(]*\))/gi);return o.jsxs("div",{children:[o.jsx(Xt,{className:r(un.accordionHead,un.containerHover),open:!0,titleCls:r({fw:500}),icnStrok:1,title:"Drop Shadow",actionComponent:o.jsx("button",{title:"Clear Value",onClick:()=>j(C.name),className:`${r(v.stylePropDeleteBtn,{rt:-14})} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(vn,{})}),children:o.jsxs("div",{className:r(v.p1),children:[o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"X"}),o.jsx(ke,{width:"120px",value:Number(ve(M[0])||0),unit:ne(M[0])||"px",inputHandler:k=>g("drop-shadow",k,0),sizeHandler:({unitKey:k,unitValue:F})=>b("drop-shadow",k,F,0,ne(M[0])),options:["px","mm","em","rem"],min:"-100",max:"100",dataTestId:`${t}-drop-shadow-x`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Y"}),o.jsx(ke,{width:"120px",value:Number(ve(M[1])||0),unit:ne(M[1])||"px",inputHandler:k=>g("drop-shadow",k,1),sizeHandler:({unitKey:k,unitValue:F})=>b("drop-shadow",k,F,1,ne(M[1])),options:["px","mm","em","rem"],min:"-100",max:"100",dataTestId:`${t}-drop-shadow-y`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Blur"}),o.jsx(ke,{width:"120px",value:Number(ve(M[2])||0),unit:ne(M[2])||"px",inputHandler:k=>g("drop-shadow",k,2),sizeHandler:({unitKey:k,unitValue:F})=>b("drop-shadow",k,F,2,ne(M[2])),options:["px","mm","em","rem"],min:"0",max:"100",dataTestId:`${t}-drop-shadow-blur`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Color"}),o.jsx("input",{"aria-label":"Filter image",width:"120px",type:"color",className:r(un.input,un.colorInput),onChange:k=>g("drop-shadow",{value:k.target.value},3),value:M[3],"data-testid":`${t}-drop-shadow-color`})]})]})},C.name),o.jsx("div",{className:r(un.divider)})]},C.name)}return o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2,un.containerHover),children:[o.jsx("span",{className:r(v.fs12,v.fw500,{w:85}),children:C.title}),o.jsxs("div",{className:r(v.flxcb),children:[o.jsx(ke,{className:r({mr:15}),width:"120px",value:Number(C.value),unit:C.unit,inputHandler:M=>g(C.name,M),sizeHandler:({unitKey:M,unitValue:k})=>b(C.name,M,k,"",C.unit),options:C.options,min:C.min,max:C.max,dataTestId:`${t}-${C.name}`}),o.jsx("button",{title:"Clear Value",onClick:()=>j(C.name),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(vn,{})})]})]})})]})}const un={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},input:{h:"30px !important",fs:"12px !important",fw:600,bd:"#f0f0f1 !important",brs:"10px !important",b:"none !important",":focus":{bs:"0 0 0 2px var(--b-50) !important"}},colorInput:{w:120,p:0,brs:"8px !important","-webkit-appearance":"none","::-webkit-color-swatch-wrapper":{p:0},"::-webkit-color-swatch":{b:"1px solid #afafaf",brs:"10px !important"},"::-moz-color-swatch":{b:"1px solid #afafaf",brs:"10px !important"},"::-moz-focus-inner":{b:"1px solid #afafaf",brs:"10px !important"}},containerHover:{pn:"relative","&:hover .delete-btn":{tm:"scale(1)"}}};function hh({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",children:[o.jsx("path",{d:"M3.63611 3.63605C4.93071 2.34144 6.58936 1.47246 8.3907 1.14507C10.192 0.817678 12.0504 1.04745 13.7177 1.80373C15.3851 2.56 16.7821 3.8068 17.7224 5.37774C18.6627 6.94868 19.1015 8.76903 18.9803 10.5959C18.8591 12.4227 18.1836 14.1691 17.044 15.602C15.9044 17.035 14.3549 18.0863 12.6022 18.6156C10.8496 19.145 8.97716 19.1272 7.23487 18.5647C5.49258 18.0022 3.96328 16.9217 2.85107 15.4674"}),o.jsx("circle",{cx:"3",cy:"5",r:"2.5",fill:"currentColor"})]})}const _h={resetBtn:{se:20,flx:"center",p:3,brs:20,b:"none",bd:"none",curp:1,cr:"var(--white-0-0-29)",mr:3,":hover":{bd:"var(--white-0-95)",cr:"var(--white-0-29)"}}};function _n({stateObjName:e,propertyPath:n,id:t}){const r=ce(Jl),i=ce(Br),s=ce(Ql),[a,l]=q(Jn),[d,f]=q(Le),[u,c]=q(be),{css:p}=re();let h=!1;switch(e){case"styles":if(Array.isArray(n))n.forEach(y=>{const I=le(u,y),T=le(s,y);T!==""&&I!==T&&(h=!0)});else{const y=le(u,n),I=le(s,n);I!==""&&y!==I&&(h=!0)}break;case"themeVars":Array.isArray(n)?n.forEach(y=>{i!=null&&i[y]&&(d==null?void 0:d[y])!==(i==null?void 0:i[y])&&(h=!0)}):i!=null&&i[n]&&(d==null?void 0:d[n])!==(i==null?void 0:i[n])&&(h=!0);break;case"themeColors":Array.isArray(n)?n.forEach(y=>{r!=null&&r[y]&&(r==null?void 0:r[y])!==(a==null?void 0:a[y])&&(h=!0)}):r!=null&&r[n]&&(r==null?void 0:r[n])!==(a==null?void 0:a[n])&&(h=!0);break}const x=y=>{switch(e){case"themeVars":if(!i[y])return;f(T=>P(T,w=>{w[y]=i[y]}));break;case"themeColors":if(!r[y])return;l(T=>P(T,w=>{w[y]=r[y]}));break;case"styles":const I=s&&Object.keys(s).length>0&&le(s,y);I&&c(T=>P(T,w=>{_e(w,y,I)}));break}},$=()=>{Array.isArray(n)?n.forEach(y=>x(y)):x(n)};return h?o.jsx(Ie,{msg:"Reset style",children:o.jsx("button",{onClick:$,className:p(_h.resetBtn),type:"button","data-testid":`${t}-reset-style`,children:o.jsx(hh,{size:"20"})})}):""}function It({value:e,unitOption:n,title:t,onChange:r=()=>{},className:i,stateObjName:s,propertyPath:a,width:l,dataTestId:d,radius:f}){const{css:u}=re();let c=((e==null?void 0:e.replace(/!important/gi,""))||"0px 0px 0px 0px").trim().split(" ");if(c.length===4){const w=c.filter((_,g,b)=>b.indexOf(_)===g);w.length===1&&(c=w)}const[p,h]=N.useState(c.length===1?"All":"Individual"),x=w=>w&&ve(w)||0,$=w=>w&&ne(w)||"px",y=[{label:"All",icn:o.jsx(Io,{stroke:"1.7",size:14}),show:["icn"],tip:"All Side"},{label:"Individual",icn:f?o.jsx(sc,{size:20}):o.jsx(On,{stroke:"1.7",size:"15"}),show:["icn"],tip:"Individual Side"}];c.length===1&&p==="All"&&(c=[c[0]]),c.length===1&&p==="Individual"&&(c=Array(4).fill(c[0])),c.length===2&&(c=[c[0],c[1],c[0],c[1]]),c.length===3&&(c=[c[0],c[1],c[2],c[1]]);const I=({value:w,unit:_,id:g})=>{const b=_==="var"?"px":_,j=ne(c[g]),E=Qt(b,w,j);c[g]=E+b;let O;p==="All"?O=`${c[0]}`:O=`${c[0]} ${c[1]} ${c[2]} ${c[3]}`,r(O)},T=w=>{w==="All"?c=[c[0]]:c=Array(4).fill(c[0]),h(w)};return o.jsxs("div",{className:i,children:[o.jsxs("div",{className:u(qt.titlecontainer),children:[o.jsx("span",{className:u(qt.title),children:t}),o.jsxs("span",{className:u(v.flxc),children:[o.jsx(_n,{stateObjName:s,propertyPath:a}),o.jsx(et,{square:!0,defaultActive:p,options:y,values:60,component:"button",onChange:w=>T(w),show:["icn"],variant:"lightgray",noShadow:!0})]})]}),o.jsxs("div",{className:u(qt.segmentcontainer),children:[o.jsx(Qe,{open:p==="All",children:o.jsx("div",{className:u({p:2}),children:o.jsx(ke,{min:"0",inputHandler:I,sizeHandler:({unitKey:w,unitValue:_,id:g})=>I({value:_,unit:w,id:g}),id:"0",label:o.jsx(Io,{size:14}),value:c[0]&&ve(c[0]),unit:c[0]&&ne(c[0]),options:n,width:l||"110px",dataTestId:`${d}-all`})})}),o.jsx(Qe,{open:p==="Individual",children:o.jsxs("div",{className:u(v.flxc,{flxp:"wrap",jc:"end",p:2}),children:[o.jsx(ke,{min:"0",inputHandler:I,sizeHandler:({unitKey:w,unitValue:_,id:g})=>I({value:_,unit:w,id:g}),id:"0",label:f?o.jsx(ur,{size:12,className:u({tm:"rotate(90deg)"})}):o.jsx(On,{size:"14",variant:"top",className:u(qt.blueTxt)}),width:"100px",value:x(c[0]),unit:$(c[0]),options:n,className:u(v.mr1,v.mb1),dataTestId:`${d}-top`}),o.jsx(ke,{min:"0",inputHandler:I,sizeHandler:({unitKey:w,unitValue:_,id:g})=>I({value:_,unit:w,id:g}),id:"1",label:f?o.jsx(ur,{size:12,className:u({tm:"rotate(180deg)"})}):o.jsx(On,{size:"14",variant:"right",className:u(qt.blueTxt)}),width:"100px",value:x(c[1]),unit:$(c[1]),options:n,className:u(v.mb1),dataTestId:`${d}-right`}),o.jsx(ke,{min:"0",inputHandler:I,sizeHandler:({unitKey:w,unitValue:_,id:g})=>I({value:_,unit:w,id:g}),id:"3",label:f?o.jsx(ur,{size:12,className:u({tm:"rotate(0deg)"})}):o.jsx(On,{size:"14",variant:"left",className:u(qt.blueTxt)}),width:"100px",value:x(c[3]),unit:$(c[3]),options:n,className:u(v.mr1),dataTestId:`${d}-bottom`}),o.jsx(ke,{min:"0",inputHandler:I,sizeHandler:({unitKey:w,unitValue:_,id:g})=>I({value:_,unit:w,id:g}),id:"2",label:f?o.jsx(ur,{size:12,className:u({tm:"rotate(270deg)"})}):o.jsx(On,{size:"14",variant:"bottom",className:u(qt.blueTxt)}),width:"100px",value:x(c[2]),unit:$(c[2]),options:n,dataTestId:`${d}-left`})]})})]})]})}const qt={segmentcontainer:{flx:"align-center",jc:"flex-end",flxp:"wrap",my:10,w:220},titlecontainer:{flx:"center-between"},title:{fs:12,fw:500},blueTxt:{cr:"var(--b-50)"}};function $h(){const{element:e,fieldKey:n}=me(),[t,r]=q(be),{_frm:i}=t.form,s=d=>{r(f=>P(f,u=>{u.form._frm.margin=`${d}`})),K(X(e,n,"Form Wrapper Margin",d,{styles:W("styles")}))},a=d=>{r(f=>P(f,u=>{u.form._frm.padding=`${d}`})),K(X(e,n,"Form Wrapper Padding",d,{styles:W("styles")}))},l=d=>{r(f=>P(f,u=>{u.form._frm[d]="0px 0px 0px 0px"})),K(X(e,n,"Undo Form Wrapper Spacing","0px 0px 0px 0px",{styles:W("styles")}))};return o.jsxs(o.Fragment,{children:[o.jsx(It,{isResetable:i==null?void 0:i.margin,value:(i==null?void 0:i.margin)||"0px 0px 0px 0px",undoHandler:()=>l("margin"),title:"Form Wrapper Margin",onChange:d=>s(d),unitOption:["px","em","rem"]}),o.jsx(It,{isResetable:i==null?void 0:i.padding,value:(i==null?void 0:i.padding)||"0px 0px 0px 0px",undoHandler:()=>l("padding"),title:"Form Wrapper Padding",onChange:d=>a(d),unitOption:["px","em","rem"]})]})}function mh({propertyPath:e,id:n,propertyArray:t=["xOffset","yOffset","blur","spread","color","inset"],defaultValue:r="0px 5px 15px 2px hsla(0, 0%, 0%, 35%) "}){const{css:i}=re(),{fieldKey:s,element:a}=me(),l=ce(Le),[d,f]=q(be);let u="";const c=()=>{var g;let _=le(d,e);if(((g=_==null?void 0:_.match(/var/gi))==null?void 0:g[0])==="var"){const b=_.replace(/\(|var|,.*|\)/gi,"");_=l[b]}return _!=null&&_.match(/(!important)/gi)&&(u="!important",_=_.replace(/(!important)/gi,"")),_},p=_=>_&&(_==null?void 0:_.split(/,(?![^(]*\))/gi))||[],h=p(c()),x=xh(h,t),$=(_,g,b)=>_==="color"?g||"hsla(0, 0%, 0%, 100)":_==="inset"?g||"":`${g||"0"}${b===void 0?"px":b}`,y=(_,{value:g,unit:b},j)=>{const E=Object.entries(x[j]).map(([L,H])=>L===_?$(_,g,b):$(L,H,"")).join(" ");h[j]=E;let O=h.toString();u&&(O=`${O} !important`),f(L=>P(L,H=>{_e(H,e,O)})),K(X(a,s,e,O,{styles:W("styles")}))},I=(_,g,b,j,E)=>{if(b){const O=ne(j),L=Qt(g,b,O);y(_,{value:L,unit:g},E)}},T=()=>{const _=c(),g=_===void 0||_===""?r:`${_},${r}${u}`;f(b=>P(b,j=>{_e(j,e,g)})),K(X(a,s,e,g,{styles:W("styles")}))},w=_=>{const g=c(),b=p(g);b.length!==1&&(b.splice(_,1),f(j=>P(j,E=>{_e(E,e,b.toString())})),K(X(a,s,e,b.toString(),{styles:W("styles")})))};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:i(Fn.overFlowScroll),children:x.map((_,g)=>o.jsxs(N.Fragment,{children:[o.jsx(Xt,{className:i(Fn.accordionHead),title:m(`Shadow ${g+1}`),open:g===0,actionComponent:x.length>1&&o.jsx("button",{type:"button",title:"Remove",className:i(v.stylePropDeleteBtn),onClick:()=>w(g),"data-testid":`${n}-del-shadow-${g}`,children:o.jsx(vn,{size:"14"})}),children:o.jsxs("div",{className:i(v.p1),children:[t.includes("xOffset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"X"}),o.jsx(ke,{width:"128px",value:Number(ve(_.xOffset)||0),unit:ne(_.xOffset)||"px",inputHandler:b=>y("xOffset",b,g),sizeHandler:({unitKey:b,unitValue:j})=>I("xOffset",b,j,_.xOffset,g),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-x-ofset-${g}`})]}),t.includes("yOffset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Y"}),o.jsx(ke,{width:"128px",value:Number(ve(_.yOffset)||0),unit:ne(_.yOffset)||"px",inputHandler:b=>y("yOffset",b,g),sizeHandler:({unitKey:b,unitValue:j})=>I("yOffset",b,j,_.yOffset,g),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-y-ofset-${g}`})]}),t.includes("blur")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Blur"}),o.jsx(ke,{width:"128px",value:Number(ve(_.blur)||0),unit:ne(_.blur)||"px",inputHandler:b=>y("blur",b,g),sizeHandler:({unitKey:b,unitValue:j})=>I("blur",b,j,_.blur,g),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-blur-${g}`})]}),t.includes("spread")&&o.jsxs("div",{className:i(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Spread"}),o.jsx(ke,{width:"128px",value:Number(ve(_.spread)||0),unit:ne(_.spread)||"px",inputHandler:b=>y("spread",b,g),sizeHandler:({unitKey:b,unitValue:j})=>I("spread",b,j,_.spread,g),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-spread-${g}`})]}),t.includes("color")&&o.jsxs("div",{className:i(v.flxcb,v.mb2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Color"}),o.jsx(qs,{action:{onChange:b=>y("color",{value:b},g)},value:_.color})]}),t.includes("inset")&&o.jsxs("div",{className:i(v.flxcb,v.mb2),children:[o.jsx("span",{className:i(v.fs12,v.fw500),children:"Inset"}),o.jsxs("select",{"data-testid":`${n}-inse-${g}`,className:i(gn.select),value:_.inset||"",onChange:b=>y("inset",{value:b.target.value},g),children:[o.jsx("option",{value:"",children:"outset"}),o.jsx("option",{value:"inset",children:"inset"})]})]})]})},`shadow-accordion-${g+276}`),o.jsx("div",{className:i(Fn.divider)})]},`key-${g+1}`))}),o.jsx("div",{className:i(Fn.footer),children:o.jsx("button",{className:i(Fn.addBtn),type:"button",onClick:T,title:"None","data-testid":`${n}-add-shad`,children:o.jsx(Ar,{size:"12",className:i({tm:"rotate(45deg)"})})})})]})}var gh=N.memo(mh);const xh=(e,n)=>e.map(r=>{if(!r)return{xOffset:"2px",yOffset:"2px",blur:"3px",spread:"0px",color:"hsla(0, 44%, 35%, 66%)",inset:""};const i={};return Ts(r).map((s,a)=>{i[n[a]]=s}),i}),Fn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},footer:{flx:"center"},addBtn:{se:25,b:"none",brs:"50%",p:0,flxi:"center",bd:"var(--white-0-95)",curp:1,tn:"transform 0.2s",":hover":{tm:"scale(1.1)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"}},overFlowScroll:{owx:"scroll",mxh:200,w:235}};function vh({size:e=30,strok:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"11.56",y:"11.09",width:"16.44",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",x1:"2",y1:"15",x2:"8.96",y2:"15"})]})}function yh({size:e=30,strok:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"11.09",width:"16.44",height:"7.83",rx:"1",transform:"translate(20.44 30) rotate(180)"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"28",y1:"15",x2:"21.04",y2:"15"})]})}function wh({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"14.09",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"2",y1:"9.09",x2:"17.95",y2:"9.09"})]})}function Sh({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"11.09",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"15",y1:"2",x2:"15",y2:"28"})]})}function jh({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"17.17",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,strokeMiterlimit:"10",x1:"15",y1:"2",x2:"15",y2:"28"})]})}function Ch({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("rect",{fill:"currentColor",x:"2",y:"5",width:"26",height:"7.83",rx:"1"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:n,x1:"15",y1:"2",x2:"15",y2:"28"})]})}function Ih(){const{css:e}=re(),{fieldKey:n,element:t}=me(),[r,i]=q(Le),[s,a]=N.useState(!1),{"--fld-lbl-fs":l,"--sub-titl-fs":d,"--hlp-txt-fs":f,"--lbl-wrp-width":u,"--fld-wrp-dis":c,"--fld-wrp-fdir":p,"--lbl-wrp-sa":h,"--lbl-al":x,"--sub-titl-al":$,"--hlp-txt-al":y}=r;ve(l),ne(l),ve(d),ne(d),ve(f),ne(f);const I=ve(u),T=ne(u),w=()=>{if(c==="block")return"top";if(c==="flex"&&p==="")return"inline";if(c==="flex"&&p==="row-reverse")return"inline-rev"},_=C=>{switch(C){case"top":i(M=>P(M,k=>{k["--fld-wrp-dis"]="block",k["--lbl-wrp-width"]="",k["--inp-wrp-width"]="",k["--lbl-wrp-sa"]="",k["--fld-wrp-width"]="",k["--lbl-wrp-m"]="0 0 5px 0"})),a(!1),Dt();break;case"inline":i(M=>P(M,k=>{k["--fld-wrp-dis"]="flex",k["--fld-wrp-fdir"]="",k["--lbl-wrp-width"]||(k["--lbl-wrp-width"]="40%"),k["--inp-wrp-width"]="100%",k["--fld-wrp-width"]="100%",k["--lbl-wrp-m"]=""})),a(!0),Dt();break;case"inline-rev":i(M=>P(M,k=>{k["--fld-wrp-dis"]="flex",k["--fld-wrp-fdir"]="row-reverse",k["--lbl-wrp-width"]||(k["--lbl-wrp-width"]="40%"),k["--inp-wrp-width"]="60%",k["--fld-wrp-width"]="100%",k["--lbl-wrp-m"]="0px 0px 0px 10px"})),a(!0),Dt();break}K(X(t,n,"Label Position",C,{themeVars:W("themeVars")}))},g=(C,M="")=>{i(k=>P(k,F=>{F[C]=M})),K(X(t,n,C,M,{themeVars:W("themeVars")}))},b=C=>g("--lbl-wrp-sa",C==="top"?"":C),j=C=>g("--lbl-al",C==="left"?"":C),E=C=>g("--sub-titl-al",C==="left"?"":C),O=C=>g("--hlp-txt-al",C==="left"?"":C),L=({value:C,unit:M})=>{const k=`${C}${M}`;g("--lbl-wrp-width",k)},H=(C,M,k)=>{const F=ne(r[k]),z=`${Qt(C,M,F)}${C}`;g(k,z)};return o.jsxs("div",{style:{marginTop:"3px"},children:[o.jsxs("div",{className:e(v.flxcb,v.mb2),children:[o.jsx("span",{className:e(v.fs12),children:m("Label Wrapper Width")}),o.jsxs("span",{className:e(v.flxc),children:[o.jsx(_n,{id:"lbl-wrp-width",propertyPath:"--lbl-wrp-width",stateObjName:"themeVars"}),o.jsx(ke,{width:"100px",value:Number(I),unit:T,inputHandler:L,sizeHandler:({unitKey:C,unitValue:M})=>H(C,M,"--lbl-wrp-width"),options:["px","em","rem","%"],dataTestId:"lbl-wrp-wdth"})]})]}),o.jsxs("div",{className:e(v.mb2,ft.main),children:[o.jsx("span",{className:e(ft.label),children:m("Label Position")}),o.jsx(et,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(wh,{size:"17"}),label:"top",tip:m("Top")},{icn:o.jsx(vh,{size:"17"}),label:"inline",tip:m("Inline")},{icn:o.jsx(yh,{size:"17"}),label:"inline-rev",tip:m("Inline reverse")}],onChange:C=>_(C),defaultActive:w,width:"100px"})]}),o.jsx(Qe,{open:s,overflw:"visible",children:o.jsxs("div",{className:e(v.mb2,ft.main),children:[o.jsx("span",{className:e(ft.label),children:m("Label Position Vertical")}),o.jsx(_n,{propertyPath:"--lbl-wrp-sa",stateObjName:"themeVars",id:"lbl-wrp-sa"}),o.jsx(et,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(Ch,{size:"17"}),label:"top",tip:m("Top")},{icn:o.jsx(Sh,{size:"17"}),label:"center",tip:m("Middle")},{icn:o.jsx(jh,{size:"17"}),label:"end",tip:m("Bottom")}],onChange:C=>b(C),defaultActive:h===""?"top":h,width:"100px"})]})}),o.jsxs("div",{className:e(v.mb2,ft.main),children:[o.jsx("span",{className:e(ft.label),children:m("Label Alignment")}),o.jsx(_n,{propertyPath:"--lbl-al",stateObjName:"themeVars",id:"lbl-al"}),o.jsx(et,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(Kr,{size:"17"}),label:"left",tip:m("Left")},{icn:o.jsx(qr,{size:"17"}),label:"center",tip:m("Center")},{icn:o.jsx(Yr,{size:"17"}),label:"right",tip:m("Right")}],onChange:C=>j(C),defaultActive:x===""?"left":x,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,ft.main),children:[o.jsx("span",{className:e(ft.label),children:m("Subtitle Alignment")}),o.jsx(_n,{propertyPath:"--sub-titl-al",stateObjName:"themeVars",id:"sub-titl-al"}),o.jsx(et,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(Kr,{size:"17"}),label:"left",tip:m("Left")},{icn:o.jsx(qr,{size:"17"}),label:"center",tip:m("Center")},{icn:o.jsx(Yr,{size:"17"}),label:"right",tip:m("Right")}],onChange:C=>E(C),defaultActive:$===""?"left":$,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,ft.main),children:[o.jsx("span",{className:e(ft.label),children:m("Helper Text Alignment")}),o.jsx(_n,{propertyPath:"--hlp-txt-al",stateObjName:"themeVars",id:"hlp-txt-al"}),o.jsx(et,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(Kr,{size:"17"}),label:"left",tip:m("Left")},{icn:o.jsx(qr,{size:"17"}),label:"center",tip:m("Center")},{icn:o.jsx(Yr,{size:"17"}),label:"right",tip:m("Right")}],onChange:C=>O(C),defaultActive:y===""?"left":y,width:"100px"})]})]})}const ft={main:{flx:"center-between"},label:{fs:12}};function kh({objectPaths:e}){const{css:n}=re(),{fieldKey:t,element:r}=me(),[i,s]=q(Le),[a,l]=q(be),d=ce(Br),[f,u]=N.useState(!0),{object:c,paths:p}=e,h=w=>{var _;if(c==="themeVars")return i[w];if(c==="styles"){let g=le(a,w);if(((_=g==null?void 0:g.match(/var/gi))==null?void 0:_[0])==="var"){const j=g.replace(/\(|var|,.*|\)/gi,"");g=i[j]}return g}},x=h(p==null?void 0:p.width),$=h(p==null?void 0:p.height),y=(w,_)=>{c==="themeVars"?(s(g=>P(g,b=>{b[_]=`${w}`})),K(X(r,t,_,w,{themeVars:W("themeVars")}))):c==="styles"&&(l(g=>P(g,b=>{var O;const j=le(b,_);(O=j==null?void 0:j.match(/!important/gi))!=null&&O[0]&&(w=`${w} !important`),_e(b,_,`${w}`)})),K(X(r,t,_,w,{styles:W("styles")})))},I=(w,_,g)=>{if(f){const b=ve(x)||1,j=ne(x),E=ve($)||1,O=ne($);if(g==="width"){const L=Number(w*E/b).toFixed(2);y(`${w}${_}`,p.width),y(`${L}${O}`,p.height)}else if(g==="height"){const L=Number(w*b/E).toFixed(2);y(`${L}${j}`,p.width),y(`${w}${_}`,p.height)}}else y(`${w}${_}`,p[g])},T=w=>{c==="themeVars"&&(s(_=>P(_,g=>{g[w]=d[w]||"0px"})),K(X(r,t,w,"0px",{themeVars:W("themeVars")})))};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:n(v.flxcb,v.mb2),children:[o.jsx("span",{className:n(v.fs12,v.fs12,v.fw500),children:"Width"}),o.jsx(ke,{stateObjName:e.object,propertyPath:e.paths.width,undoHandler:()=>T(p.width),value:ve(x||0),title:"width",width:100,unit:ne(x||"px"),sizeHandler:w=>I(w.unitValue,w.unitKey,"width"),inputHandler:w=>I(w.value,w.unit,"width")})]}),o.jsxs("div",{className:n(v.flxcb,v.mb2),children:[o.jsx("span",{className:n(v.fs12,v.fs12,v.fw500),children:"Height"}),o.jsx(ke,{stateObjName:e.object,propertyPath:e.paths.height,undoHandler:()=>T(p.height),value:ve($||0),title:"height",width:100,unit:ne($||"px"),sizeHandler:w=>I(w.unitValue,w.unitKey,"height"),inputHandler:w=>I(w.value,w.unit,"height")})]}),o.jsx(wr,{title:"Follow Aspect Ratio",action:()=>u(w=>!w),isChecked:f,className:n({fs:12})})]})}function Th({objectPaths:e,id:n}){const[t,r]=q(Le),{element:i,fieldKey:s}=me(),[a,l]=q(be),d=ce(Br),{object:f,paths:u}=e,c=(x,$)=>{f==="themeVars"&&(r(y=>P(y,I=>{I[$]=`${x}`})),K(X(i,s,$,x,{themeVars:W("themeVars")}))),f==="styles"&&(l(y=>P(y,I=>{var _;const T=le(I,$);(_=T==null?void 0:T.match(/!important/gi))!=null&&_[0]&&(x=`${x} !important`),_e(I,$,x)})),K(X(i,s,$,x,{styles:W("styles")})))},p=x=>{f==="themeVars"&&(r($=>P($,y=>{y[x]=d[x]||"0px"})),K(X(i,s,x,"0px",{themeVars:W("themeVars")})))},h=x=>{var $;if(f==="themeVars")return t[x];if(f==="styles"){let y=le(a,x);const I=y==null?void 0:y.replace(/!important/gi,"");return(($=y==null?void 0:y.match(/var/gi))==null?void 0:$[0])==="var"&&(y=ui(t,I)),y}};return o.jsxs(o.Fragment,{children:[(u==null?void 0:u.margin)&&o.jsx(It,{stateObjName:e.object,propertyPath:e.paths.margin,undoHandler:()=>p(u.margin),value:h(u.margin),title:"Margin",onChange:x=>c(x,u.margin),unitOption:["px","em","rem"],dataTestId:`${n}-mrgn`}),(u==null?void 0:u.padding)&&o.jsx(It,{stateObjName:e.object,propertyPath:e.paths.padding,undoHandler:()=>p(u.padding),value:h(u.padding),title:"Padding",onChange:x=>c(x,u.padding),unitOption:["px","em","rem"],dataTestId:`${n}-paddng`})]})}function Nh(){const{fieldKey:e,element:n}=me(),[t,r]=q(Le),i=ce(Br),{"--fld-m":s,"--fld-p":a}=t,l=u=>{r(c=>P(c,p=>{p["--fld-m"]=`${u}`})),K(X(n,e,"Field Margin",u,{themeVars:W("themeVars")}))},d=u=>{r(c=>P(c,p=>{p["--fld-p"]=`${u}`})),K(X(n,e,"Field Padding",u,{themeVars:W("themeVars")}))},f=u=>{i[u]&&(r(c=>P(c,p=>{p[u]=i[u]})),K(X(n,e,"Undo Field Spacing",i[u],{themeVars:W("themeVars")})))};return o.jsxs(o.Fragment,{children:[o.jsx(It,{isResetable:i["--fld-m"],undoHandler:()=>f("--fld-m"),value:s,title:"Field Margin",onChange:u=>l(u),unitOption:["px","em","rem"]}),o.jsx(It,{isResetable:i["--fld-p"],undoHandler:()=>f("--fld-p"),value:a,title:"Field Padding",onChange:u=>d(u),unitOption:["px","em","rem"]})]})}function Eh({propertyPath:e,id:n}){const t="Transform",{css:r}=re(),{fieldKey:i,element:s}=me(),a=ce(Le),[l,d]=q(be);let f="";const u=()=>{var j,E;let b=le(l,e);if(((j=b==null?void 0:b.match(/var/gi))==null?void 0:j[0])==="var"){const O=b==null?void 0:b.replace(/\(|var|,.*|\)/gi,"");b=a[O]}return(E=b==null?void 0:b.match(/(!important)/gi))!=null&&E[0]&&(f="!important",b=b==null?void 0:b.replace(/(!important)/gi,"")),b},c=b=>b&&(b==null?void 0:b.split(/(?!\(.*)\s(?![^(]*?\))/gi))||[],p=c(u()),h=zh(p),x=h.map(b=>b.name),$=Object.keys(yt).filter(b=>!x.includes(b)),y=(b,j,E)=>(j=`${b}(${j}${E})`,j),I=(b,{value:j,unit:E},O)=>{const L=y(b,j,E);p[O]=L;let H=p.join(" ");f&&(H=`${H} !important`),d(C=>P(C,M=>{_e(M,e,H)})),K(X(s,i,e,p.join(" "),{styles:W("styles")}))},T=b=>{const j=u(),E=j===void 0||j===""?y(b,0,yt[b].unit[0]):`${j} ${y(b,0,yt[b].unit[0])}${f}`;d(O=>P(O,L=>{_e(L,e,E)})),K(X(s,i,e,E,{styles:W("styles")}))},w=b=>{const j=u(),E=c(j);E.length!==1&&(E.splice(b,1),d(O=>P(O,L=>{_e(L,e,E.join(" "))})),K(X(s,i,e,E.join(" "),{styles:W("styles")})))},_=(b,j,E,O)=>{const{unitKey:L,unitValue:H}=b,C=Qt(L,H,O);I(j,{value:C,unit:L},E)},g=(b,j)=>{var E;return b!=null&&b.name?(E=yt==null?void 0:yt[b==null?void 0:b.name][ne(b.value)])==null?void 0:E[j]:""};return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:r(v.flxcb,v.mb1),children:[o.jsx("span",{className:r(v.fs12,v.fs12,v.fw500),children:t}),$.length>0&&o.jsx(Gs,{id:"transform-prop",properties:$,setProperty:T,classNames:r({mt:"0px !important"})})]}),o.jsx("div",{className:r(ds.overFlowScroll),children:h.map((b,j)=>{var E;return o.jsx("div",{className:r(v.p1,ds.containerHover,h.length===1&&{mnh:90}),children:o.jsxs("div",{className:r(v.flxcb,v.mt1),children:[o.jsxs("span",{className:r(v.flxcb,v.fs12,v.fw500),children:[h.length>1&&o.jsx("button",{"data-testid":`${n}-del-btn-${j}`,onClick:()=>w(j),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button",children:o.jsx(vn,{})}),o.jsx("span",{className:r({ml:20}),children:Ns(b.name)})]}),o.jsx(ke,{width:"100px",value:Number(ve(b.value)||0),unit:ne(b.value)||"",inputHandler:O=>I(b.name,O,j),sizeHandler:O=>_(O,b.name,j,ne(b.value)),options:b!=null&&b.name?(E=yt==null?void 0:yt[b==null?void 0:b.name])==null?void 0:E.unit:"",min:g(b,"min")||"",max:g(b,"max")||"",step:g(b,"step")||"",dataTestId:`${n}-input-${j}`})]})},`transformObj-${j*5}`)})})]})}var Mh=N.memo(Eh);const zh=e=>e.map(t=>{if(!t)return{name:"perspective",value:"10px"};const[r,i]=t.split(/\(|\)/gi);return{name:r,value:i}}),oi={unit:["px","%"],px:{min:1,max:100,step:1},"%":{min:1,max:200,step:1}},si={unit:[""],"":{min:"",max:"",step:""}},cs={unit:["deg","rad","turn"],deg:{min:1,max:360,step:1},turn:{min:.1,max:10,step:.1},rad:{min:"",max:"",step:.1}},yt={perspective:{unit:["px","rem","cm"],px:{min:1,max:1e3,step:1},rem:{min:.1,max:500,step:.1},cm:{min:1,max:500,step:1}},rotate:{unit:["deg","turn","rad"],deg:{min:1,max:360,step:1},turn:{min:.1,max:10,step:.1},rad:{min:"",max:"",step:.1}},translateX:S({},oi),translateY:S({},oi),translateZ:S({},oi),scaleX:S({},si),scaleY:S({},si),scaleZ:S({},si),skewX:S({},cs),skewY:S({},cs)},ds={containerHover:{pn:"relative","&:hover .delete-btn":{tm:"scale(1.1)"}},overFlowScroll:{owx:"scroll",mxh:200}};function Ah({stateObjName:e,propertyPath:n,id:t}){const{css:r}=re(),{fieldKey:i,element:s}=me(),a=ce(Le),[l,d]=q(be);let f="";const u=()=>{var g,b;let _=le(l,n)||"";if(((g=_.match(/var/gi))==null?void 0:g[0])==="var"){const j=_==null?void 0:_.replace(/\(|var|,.*|\)/gi,"");_=a[j]}return(b=_.match(/(!important)/gi))!=null&&b[0]&&(f="!important",_=_.replace(/(!important)/gi,"")),_},c=_=>_&&(_==null?void 0:_.split(/,(?![^(]*\))/gi))||[],p=c(u()),h=Bh(p),x=(_,g,b)=>_==="duration"||_==="delay"?`${g||"0.1"}${b===void 0?"s":b}`:`${g}`,$=(_,{value:g,unit:b},j)=>{const E=Object.entries(h[j]).map(([L,H])=>L===_?x(_,g,b):x(L,H,"")).join(" ");p[j]=E;let O=p.toString();f&&(O=`${O} !important`),d(L=>P(L,H=>{_e(H,n,O)})),K(X(s,i,n,O,{styles:W("styles")}))},y=()=>{const _=u(),g=_===void 0||_===""?`all 0.1s 0.1s ease${f}`:`${_},all 0.1s 0.1s ease${f}`;d(b=>P(b,j=>{_e(j,n,g)})),K(X(s,i,n,g,{styles:W("styles")}))},I=_=>{const g=u(),b=c(g);b.length!==1&&(b.splice(_,1),d(j=>P(j,E=>{_e(E,n,b.toString())})),K(X(s,i,n,b.toString(),{styles:W("styles")})))},T=(_,g,b)=>{let j;return b===g?j=_:b==="ms"&&g==="s"?j=_/1e3:b==="s"&&g==="ms"&&(j=_*1e3),j},w=(_,g,b,j)=>{const{unitKey:E,unitValue:O}=_,L=T(O,E,j);$(g,{value:L,unit:E},b)};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:r(fn.overFlowScroll),children:h.map((_,g)=>o.jsxs(o.Fragment,{children:[o.jsx(Xt,{className:r(fn.accordionHead),title:m(`Transition ${g+1}`),open:g===0,actionComponent:h.length>1&&o.jsx("button",{type:"button",title:"Remove",className:r(v.stylePropDeleteBtn),onClick:()=>I(g),"data-testid":`${t}-del-transn-${g}`,children:o.jsx(vn,{size:"14"})}),children:o.jsxs("div",{className:r(v.p1),children:[o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Property"}),o.jsxs("select",{className:r(gn.select),value:_.property||"",onChange:b=>$("property",{value:b.target.value},g),"data-testid":`${t}-transn-property-${g}`,children:[o.jsx("option",{value:"all",children:"all"}),o.jsx("option",{value:"width",children:"width"}),o.jsx("option",{value:"background",children:"background"}),o.jsx("option",{value:"opacity",children:"opacity"}),o.jsx("option",{value:"box-shadow",children:"box-shadow"}),o.jsx("option",{value:"border-radius",children:"border-radius"}),o.jsx("option",{value:"text-shadow",children:"text-shadow"}),o.jsx("option",{value:"transform",children:"transform"})]})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Duration"}),o.jsx(ke,{width:"128px",value:Number(ve(_.duration)||0),unit:ne(_.duration)||"s",inputHandler:b=>$("duration",b,g),sizeHandler:b=>w(b,"duration",g,ne(_.duration)),options:["s","ms"],min:ne(_.duration)==="s"?.1:100,max:ne(_.duration)==="s"?10:1e4,step:ne(_.duration)==="s"?.1:100,dataTestId:`${t}-transn-duration-${g}`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Delay"}),o.jsx(ke,{width:"128px",value:Number(ve(_.delay)||0),unit:ne(_.delay)||"s",inputHandler:b=>$("delay",b,g),sizeHandler:b=>w(b,"delay",g,ne(_.delay)),options:["s","ms"],min:ne(_.delay)==="s"?.1:100,max:ne(_.delay)==="s"?10:1e4,step:ne(_.delay)==="s"?.1:100,dataTestId:`${t}-transn-delay-${g}`})]}),o.jsxs("div",{className:r(v.flxcb,v.mb2),children:[o.jsx("span",{className:r(v.fs12,v.fw500),children:"Function"}),o.jsx("div",{children:o.jsxs("select",{className:r(gn.select),value:_.func||"",onChange:b=>$("func",{value:b.target.value},g),"data-testid":`${t}-transn-func-${g}`,children:[o.jsx("option",{value:"Custom",children:"Custom"}),us.map(b=>o.jsx("option",{value:b,children:b}))]})})]}),!us.includes(_.func)&&o.jsx("input",{className:r(fn.input),type:"text","aria-label":"Custom transition",onChange:b=>$("func",{value:b.target.value},g),value:_.func})]})},`transition-${(g*2*4).toString()}`),o.jsx("div",{className:r(fn.divider)})]}))}),o.jsx("div",{className:r(fn.footer),children:o.jsx("button",{className:r(fn.addBtn),type:"button","aria-label":"Add Transition",onClick:y,title:"Add Transition","data-testid":`${t}-add-transn`,children:o.jsx(Ar,{size:"12",className:r({tm:"rotate(45deg)"})})})})]})}var Oh=N.memo(Ah);const Bh=e=>e.map(t=>{if(!t)return{property:"all",duration:"8.4s",delay:"7.6s",func:"ease"};const[r,i,s,a]=Ts(t);return{property:r,duration:i,delay:s,func:a}}),fn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},footer:{flx:"center"},addBtn:{se:25,b:"none",brs:"50%",p:0,flxi:"center",bd:"var(--white-0-95)",curp:1,tn:"transform 0.2s",":hover":{tm:"scale(1.1)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"}},input:{fs:14,fw:500,w:"100%",h:35,bd:"var(--b-79-96) !important",oe:"none !important",mx:"auto",dy:"block",lh:"2 !important",px:8,mt:10,mb:3,bs:"none !important",brs:"8px !important",tn:"box-shadow .3s",b:"1px solid #e6e6e6 !important","::placeholder":{cr:"hsl(215deg 16% 57%)",fs:12},":focus":{bs:"0 0 0 1px var(--b-50) !important",bcr:"var(--b-50)!important"}},overFlowScroll:{owx:"scroll",mxh:200}},us=["ease","ease-in","ease-out","ease-in-out","linear"];function Lh({stateObjName:e,objectPaths:n,id:t,fldKey:r}){const[i,s]=N.useState({parent:"Image",child:"Upload"}),[a,l]=q(Le),{css:d}=re(),{fieldKey:f,element:u}=me(),{object:c,bgObjName:p,paths:h}=n,[x,$]=N.useState(""),[y,I]=N.useState("initial"),[T,w]=q(be),_=zr(c,{styles:T}),g=(z,V)=>{Yt(c,z,V,{setStyles:w}),K(X(u,f,z,V,{[c]:W(c)}))},b=z=>{g(h["border-image"],z.style)},j=z=>{z.stopPropagation(),$("")};N.useEffect(()=>{$(le(_,h["border-image"]))},[]),N.useEffect(()=>{g(h["border-image"],x)},[x]),N.useEffect(()=>{g(h["border-image-repeat"],y)},[y]);const E=z=>{I(z.target.value)},O=z=>{g(h["border-image"],`url(${z.target.value})`),$(`url(${z.target.value})`)},L=(z,V)=>{V==="parent"?s({parent:z,child:"Upload"}):V==="child"&&s(se=>B(S({},se),{child:z}))},H=()=>{if(typeof wp!="undefined"&&wp.media){const z=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});z.on("select",()=>{const V=z.state().get("selection").first().toJSON();g(h["border-image"],`url(${V.url})`),$(`url(${V.url})`)}),z.open()}},C=(z,V)=>{Yt(c,z,V,{setThemeVars:l,setStyles:w}),K(X(u,f,z,V,{[c]:W(c)}))},M=z=>{var V;if(c==="themeVars")return a[z];if(c==="styles"){let se=le(T,z);if(((V=se==null?void 0:se.match(/var/gi))==null?void 0:V[0])==="var"){const mt=se.replace(/\(|var|,.*|\)/gi,"");se=a[mt]}return se}},k=M(h["border-image-width"]),F=M(h["border-image-slice"]),D=M(h["border-image-outset"]);return o.jsxs("div",{className:d(Q.container),children:[o.jsx(et,{options:[{label:"Image"},{label:"Gradient"}],onChange:z=>L(z,"parent"),defaultActive:i.parent,wideTab:!0}),o.jsxs("div",{className:d(Q.innercontainer,v.mt1),children:[i.parent==="Image"&&o.jsxs(o.Fragment,{children:[o.jsx(et,{options:[{label:"Upload"},{label:"Link"}],onChange:z=>L(z,"child"),defaultActive:i.child,wideTab:!0}),o.jsxs("div",{className:d(v.mt2),children:[i.child==="Upload"&&o.jsx(Ks,{title:"Image",imageSrc:x==null?void 0:x.replace(/(url\(|\))/gi,""),value:x==null?void 0:x.slice(x.lastIndexOf("/")+1,-1),clickAction:H,clearAction:j}),i.child==="Link"&&o.jsx("div",{className:d(v.mt2),children:o.jsxs("div",{className:d(v.flxClm),children:[o.jsx("span",{className:d(Q.title),children:"URL"}),o.jsx("input",{type:"url",className:d(Q.urlinput),value:x.replace(/(url\(|\))/gi,""),onChange:O,placeholder:"ex: https://www.example.com","data-testid":`${t}-url-input`})]})}),o.jsx("div",{className:d(v.mt2),children:o.jsxs("div",{className:d(v.flxcb),children:[o.jsx("span",{className:d(Q.title),children:"Repeat"}),o.jsx("div",{className:d(v.flxc),children:o.jsxs("select",{value:y,name:"",id:"",onChange:E,className:d(Q.select),"data-testid":`${t}-repeat-select`,children:[o.jsx("option",{value:"stretch",children:"Stretch"}),o.jsx("option",{value:"repeat",children:"Repeat"}),o.jsx("option",{value:"round",children:"Round"}),o.jsx("option",{value:"space",children:"space"}),o.jsx("option",{value:"initial",children:"initial"})]})})]})}),o.jsx(It,{value:D,className:d(v.mb2),onChange:z=>C(h["border-image-outset"],z),title:"Outset",unitOption:["px","%"],min:"0",max:"20",dataTestId:`${t}-outset`}),o.jsx(It,{value:k,className:d(v.mb2),onChange:z=>C(h["border-image-width"],z),title:"Width",unitOption:["","px","%"],min:"0",max:"100",dataTestId:`${t}-width`}),o.jsx(It,{value:F,className:d(v.mb2),onChange:z=>C(h["border-image-slice"],z),title:"Slice",unitOption:["","%"],min:"0",max:"100",dataTestId:`${t}-slice`})]})]}),i.parent==="Gradient"&&o.jsx(Us,{changeHandler:b})]})]})}function Rh({objectPaths:e,id:n}){const{css:t}=re(),{fieldKey:r,element:i}=me(),[s,a]=q(Le),[l,d]=q(be),{object:f,paths:u}=e,c=zr(f,{themeVars:s,styles:l}),p=le(c,u["text-decoration-line"]),h=le(c,u["text-decoration-style"]),x=le(c,u["text-decoration-color"]),$=le(c,u["text-decoration-thickness"]),y=ve($)||"0",I=ne($)||"px",T=({value:b,unit:j})=>{const E=Qt(j,b,I);d(O=>P(O,L=>{_e(L,u["text-decoration-thickness"],`${E}${j}`)}))},w=(b,j)=>{Yt(f,b,j,{setThemeVars:a,setStyles:d}),K(X(i,r,b,j,{[f]:W(f)}))},_=[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Double",value:"double"}],g=[{label:"Overline",value:"overline"},{label:"Underline",value:"underline"},{label:"Line Through",value:"line-through"}];return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Line"}),o.jsx(jo,{options:g,value:p,onChange:b=>w(u["text-decoration-line"],b),w:130,h:30,id:`${n}-txt-dec-line`})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Style"}),o.jsx(jo,{options:_,value:h,onChange:b=>w(u["text-decoration-style"],b),w:130,h:30,id:`${n}-txt-dec-style`})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fs12,v.fw500),children:"Color"}),o.jsx(qs,{action:{onChange:b=>w(u["text-decoration-color"],b)},value:x})]}),o.jsxs("div",{className:t(v.flxcb,v.mb2),children:[o.jsx("span",{className:t(v.fs12,v.fw500),children:"Thickness"}),o.jsx(ke,{min:.1,max:100,inputHandler:T,sizeHandler:({unitKey:b,unitValue:j})=>T({unit:b,value:j}),value:y,unit:I,width:"130px",options:["px","em","rem",""],step:I!=="px"?"0.1":1,dataTestId:`${n}-txt-dec-thickness`})]})]})}const Fh=N.lazy(()=>Ke(()=>import("./bf-132-161.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),Ph=N.lazy(()=>Ke(()=>import("./bf-362-162.js"),__vite__mapDeps([32,1,2,20,15,8,4,5,9,10,11,12,13,16,14,17,18,19,3,6,7]),import.meta.url)),Dh=N.lazy(()=>Ke(()=>import("./bf-599-163.js"),__vite__mapDeps([33,1,2,16,14,4,5,17,15,8,9,10,11,12,13,18,19,6]),import.meta.url)),Hh=N.lazy(()=>Ke(()=>import("./bf-261-164.js"),__vite__mapDeps([34,1,2,8,4,5,9,10,11,12,13,6,19,3,7,14,16,17,15,18,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url)),Vh=N.lazy(()=>Ke(()=>import("./bf-717-165.js"),__vite__mapDeps([35,1,2,16,14,4,5,17,15,8,9,10,11,12,13,18,19]),import.meta.url)),Wh=({component:e,action:n,value:t,defaultValue:r,objectPaths:i,id:s,canSetVariable:a,stateObjName:l,propertyPath:d,propertyArray:f,fldKey:u,hslaPaths:c})=>{switch(e){case"border-style":return o.jsx(Fh,{objectPaths:i,hslaPaths:c,id:s});case"outline-style":return o.jsx(Ph,{objectPaths:i,hslaPaths:c,id:s});case"border-image":return o.jsx(Lh,{stateObjName:l,action:n,objectPaths:i,propertyPath:d,id:s,hslaPaths:c,fldKey:u});case"background":return o.jsx(oh,{stateObjName:l,action:n,objectPaths:i,propertyPath:d,id:s,hslaPaths:c,fldKey:u});case"color-picker":return o.jsx(Dh,{canSetVariable:a,stateObjName:l,action:n,propertyPath:d,id:s,hslaPaths:c,fldKey:u});case"filter-color":return o.jsx(ph,{stateObjName:l,action:n,objectPaths:i,propertyPath:d,id:s,hslaPaths:c,fldKey:u});case"individual-shadow-control":return o.jsx(gh,{stateObjName:l,action:n,propertyPath:d,propertyArray:f,defaultValue:r,id:s,hslaPaths:c,fldKey:u});case"font":return o.jsx(Hh,{id:s});case"label-control":return o.jsx(Ih,{});case"spacing-control":return o.jsx(Nh,{});case"text-decoration":return o.jsx(Rh,{objectPaths:i,id:s});case"theme-control":return o.jsx(to,{fldKey:u});case"form-wrapper-control":return o.jsx($h,{});case"space-control":return o.jsx(Th,{value:t,objectPaths:i,id:s});case"size-control":return o.jsx(kh,{value:t,objectPaths:i});case"shadow-control":return o.jsx(Vh,{objectPaths:i,id:s});case"transition-control":return o.jsx(Oh,{stateObjName:l,propertyPath:d,id:s});case"transform-control":return o.jsx(Mh,{stateObjName:l,propertyPath:d,id:s});case"filter-control":return o.jsx(ls,{value:t,objectPaths:i,id:s});case"backdrop-filter-control":return o.jsx(ls,{title:"Backdrop-Filter",value:t,objectPaths:i,id:s});default:return"loading"}},Gh=e=>({"border-style":"Border","outline-style":"Outline","border-image":"Border Image","color-picker":"Color picker",background:"Background","individual-shadow-control":"Shadow",font:"Fonts","label-control":"Label Placement","spacing-control":"Label Spacing","text-decoration":"Text Decoration","theme-control":"Theme Gallery","form-wrapper-control":"Form Wrapper","space-control":"Margin & Padding","size-control":"Width & Height","shadow-control":"Shadow","transition-control":"Transition","transform-control":"Transform","filter-control":"Filter","backdrop-filter-control":"Backdrop Filter","filter-color":"Filter Color"})[e]||"...";function Uh({setBuilderPointerEventNone:e}){const{css:n}=re(),[t,r]=q(dl),{show:i,position:s,component:a,width:l,stateObjName:d,propertyPath:f,propertyArray:u,mainTitle:c,subtitle:p,action:h,value:x,defaultValue:$,objectPaths:y,state:I,id:T,fldKey:w,hslaPaths:_,canSetVariable:g}=t,b=Mi(),[j,E]=N.useState(""),O=N.useRef(null);return N.useEffect(()=>{E(S({},s))},[s]),N.useEffect(()=>r({show:!1}),[b]),i?o.jsx(rh,{ref:O,bounds:"parent",handle:".draggable-modal-handle",position:j!==null?s:j,onMouseDown:()=>E(null),onStart:()=>e(!0),onStop:()=>e(!1),children:o.jsxs("div",{className:n(Lt.container),style:S({width:l},j&&{transition:"transform .2s"}),children:[o.jsxs("div",{className:`${n([v.flxb,Lt.titleBar])} draggable-modal-handle`,children:[o.jsxs("div",{className:n(v.flxClm,Lt.titleContainer),children:[o.jsx("span",{className:n(Lt.title),children:c||Gh(a)}),o.jsx("span",{className:n(Lt.subTitle,v.fontBody),children:p})]}),o.jsx("button",{"data-testid":"draggable-modal-close-btn",type:"button",className:n(Lt.button),onClick:()=>r({show:!1}),children:o.jsx(Ar,{size:10})})]}),o.jsx("hr",{className:n(Lt.hr)}),o.jsx("div",{className:n(Lt.content),children:o.jsx(N.Suspense,{fallback:o.jsx(qh,{}),children:o.jsx(Wh,{component:a,action:h,value:x,defaultValue:$,objectPaths:y,state:I,id:T,stateObjName:d,propertyPath:f,propertyArray:u,fldKey:w,hslaPaths:_,canSetVariable:g})})})]})}):o.jsx(o.Fragment,{})}var Kh=N.memo(Uh);const qh=()=>{const{css:e}=re();return o.jsxs(o.Fragment,{children:[o.jsxs("div",{title:"Loading...",className:e(v.flxcb,v.mb2),children:[o.jsx("div",{title:"Loading...",className:`${e({w:70,h:15,brs:5})} loader`}),o.jsx("div",{title:"Loading...",className:`${e({w:80,h:30,brs:5})} loader`})]}),o.jsxs("div",{title:"Loading...",className:e(v.flxcb),children:[o.jsx("div",{title:"Loading...",className:`${e({w:70,h:15,brs:5})} loader`}),o.jsx("div",{title:"Loading...",className:`${e({w:80,h:30,brs:5})} loader`})]})]})},Yh=e=>({[`._frm-bg-${e}`]:{"border-radius":"10px 10px 10px 10px","background-size":"100% 100%","background-color":"rgba(255, 255, 255, 1)"},[`._frm-g-${e}`]:{},[`._frm-${e}`]:{margin:"0px 0px 0px 0px",padding:"15px 15px 15px 15px"},[`.fld-wrp-${e}`]:{padding:"10px 10px 10px 10px"},[`.fld-lbl-${e}`]:{},[`input.fld-${e},textarea.fld-${e}`]:{},[`input.fld-${e}:focus,textarea.fld-${e}:focus`]:{},[`.fld-${e}>.btcd-ck-wrp span:first-child`]:{color:"rgba(0, 0, 0, 1) !important"},[`.fld-${e}.dpd`]:{"--border-radius":"8px"},[`.fld-${e}.dpd .msl`]:{"border-color":"rgba(199, 212, 221, 1)!important"},"@media only screen and (max-width:600px)":{},"@media only screen and (max-width:400px)":{}});function Va(){return o.jsxs("div",{style:de.wrp,children:[o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"60%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"40%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"50%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"70%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"10%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:de.fldWrp,children:[o.jsx("div",{style:B(S({},de.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(S({},de.fld),{width:"80%"}),className:"loader"})]})]})}const de={wrp:{paddingBlock:20},fldWrp:{display:"flex",justifyContent:"center",alignItems:"center"},fld:{height:70,borderRadius:5,margin:5}};var pr={},fs;function Zh(){if(fs)return pr;fs=1,Object.defineProperty(pr,"__esModule",{value:!0});var e=Gt(),n=function(){var t=e.useRef(null),r=e.useState(!0),i=r[0],s=r[1],a=e.useState(!1),l=a[0],d=a[1];return e.useEffect(function(){t.current&&d(t.current.scrollWidth===t.current.offsetWidth)},[t]),{scrollContainerRef:t,handleScroll:function(){var f,u,c,p;t.current&&(s(((f=t.current)===null||f===void 0?void 0:f.scrollLeft)===0),d(Math.floor(((u=t.current)===null||u===void 0?void 0:u.scrollWidth)-((c=t.current)===null||c===void 0?void 0:c.scrollLeft))<=((p=t.current)===null||p===void 0?void 0:p.offsetWidth)))},scrollTo:function(f){var u,c;(u=t.current)!==null&&u!==void 0&&u.scrollTo({left:((c=t.current)===null||c===void 0?void 0:c.scrollLeft)+f,behavior:"smooth"})},isAtStart:i,isAtEnd:l}};return pr.default=n,pr}var Xh=Zh(),Jh=ul(Xh);function Qh({className:e,size:n,stroke:t=2.5,rotate:r=!1,rotateDeg:i=0}){const s=r?180:i||0;return o.jsxs("svg",{className:e,fill:"none",stroke:"currentColor",width:n,height:n,viewBox:"0 0 30 30",style:{transform:`rotate(${s}deg)`,transition:"transform .2s"},children:[o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"10.27",y1:"15",x2:"10.27",y2:"15"}),o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"15",y1:"15",x2:"15",y2:"15"}),o.jsx("line",{className:"svg-icn",strokeWidth:t,x1:"19.73",y1:"15",x2:"19.73",y2:"15"})]})}const e1={themeStyle:"style-0",showStepHeader:xe,showLbl:xe,showSubtitle:xe,validateOnStepChange:xe,maintainStepHistory:xe,saveProgress:xe,stepHeaderSwitchable:xe,headerIcon:{show:xe,iconType:"number"},btnSettings:{show:!0,prevBtn:{key:"prev-step-btn",typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:m("Previous")},nextBtn:{key:"next-step-btn",typ:"button",btnTyp:"next-step",btnSiz:"md",txt:m("Next")},position:"column",orientation:"horizontal",alignment:"right"},progressSettings:{show:!0,position:"top",alignment:"left",orientation:"horizontal",type:"bar",barStyle:"style-0",showStepNumber:!0,showStepLabel:!0,showPercentage:!0}},Pn=(e,n)=>{const t=ue(We);let r;return"prefixIcn"in t[e]&&"suffixIcn"in t[e]?r=`var(--fld-p) ${n}px var(--fld-p) ${n}px !important`:"prefixIcn"in t[e]?r=`var(--fld-p) var(--fld-p) var(--fld-p) ${n}px !important`:"suffixIcn"in t[e]&&(r=`var(--fld-p) ${n}px var(--fld-p) var(--fld-p) !important`),r};function t1({fk:e,type:n,fieldType:t,breakpoint:r,theme:i,colorScheme:s,direction:a=""}){let l=null;switch(n){case"small-2":return l=Pn(e,25)||"4px !important",S(S(S(S(S(S(S(S(S(S(B(S(S({[`.${e}-lbl`]:{"font-size":"12px"},[`.${e}-lbl-pre-i`]:{width:"16px",height:"16px"},[`.${e}-lbl-suf-i`]:{width:"16px",height:"16px"},[`.${e}-sub-titl`]:{"font-size":"8px"},[`.${e}-sub-titl-pre-i`]:{width:"16px",height:"16px"},[`.${e}-sub-titl-suf-i`]:{width:"16px",height:"16px"},[`.${e}-hlp-txt`]:{"font-size":"8px"},[`.${e}-hlp-txt-pre-i`]:{width:"16px",height:"16px"},[`.${e}-hlp-txt-suf-i`]:{width:"16px",height:"16px"}},["check","radio","decision-box","gdpr"].includes(t)&&S({[`.${e}-bx`]:{width:"10px",height:"10px"},[`.${e}-ct`]:{"font-size":"12px"}},(t==="check"||t==="radio")&&{[`.${e}-other-inp`]:{"font-size":"0.625rem",padding:"6px 4px !important",height:"25px","border-radius":"6px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"3px"}}),{[`.${e}-fld`]:S(S(S({"font-size":"0.625rem",height:"25px","border-radius":"6px",padding:l},t==="html-select"&&{padding:"2px 1px"}),t==="color"&&{padding:"2px 1px"}),t==="textarea"&&{height:"40px"})}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"16px",height:"16px"},[`.${e}-suf-i`]:{width:"16px",height:"16px"}}),(t==="select"||t==="country")&&{[`.${e}-dpd-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"21px"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"21px"},[`.${e}-dpd-wrp`]:{padding:"6px 4px",height:"25px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"},[`.${e}-phone-amount-input`]:{padding:"6px 4px"},[`.${e}-phone-fld-container`]:{height:"25px"},[`.${e}-selected-country-img`]:{height:"13px",width:"25px","border-radius":"3px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"6px","font-size":"0.625rem"},[`.${e}-currency-amount-input`]:{padding:"6px 4px"},[`.${e}-currency-fld-container`]:{height:"25px"},[`.${e}-selected-currency-img`]:{height:"13px",width:"25px","border-radius":"3px"}}),t==="select"&&{[`.${e}-dpd-wrp`]:{padding:"3px 4px","min-height":"30px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"},[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"3px 8px"}}),(t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"6px 4px",height:"24px"},[`.${e}-opt-search-input`]:{height:"25px","font-size":"0.625rem"},[`.${e}-opt-search-icn`]:{height:"18px",width:"18px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"7px 10px","font-size":"0.625rem"},[`.${e}-btn-suf-i`]:{width:"16px",height:"16px"},[`.${e}-btn-pre-i`]:{width:"16px",height:"16px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"7px 10px","font-size":"0.625rem"},[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}});case"small-1":return l=Pn(e,30)||"6px",S(S(S(S(S(S(S(S(S(S(B(S(S({[`.${e}-lbl`]:{"font-size":"14px"},[`.${e}-sub-titl`]:{"font-size":"10px"},[`.${e}-hlp-txt`]:{"font-size":"10px"}},["check","radio","decision-box","gdpr"].includes(t)&&S({[`.${e}-bx`]:{width:"14px",height:"14px"},[`.${e}-ct`]:{"font-size":"14px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"0.8rem",padding:"8px 6px",height:"30px","border-radius":"8px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"4px"}}),{[`.${e}-fld`]:S(S(S(B(S({"font-size":"0.8rem"},l!==null&&{padding:l}),{height:"30px","border-radius":"8px"}),t==="html-select"&&{padding:"3px 1px"}),t==="color"&&{padding:"3px 2px"}),t==="textarea"&&{height:"48px"}),[`.${e}-lbl-pre-i`]:{width:"18px",height:"18px"},[`.${e}-lbl-suf-i`]:{width:"18px",height:"18px"},[`.${e}-sub-titl-pre-i`]:{width:"18px",height:"18px"},[`.${e}-sub-titl-suf-i`]:{width:"18px",height:"18px"},[`.${e}-hlp-txt-pre-i`]:{width:"18px",height:"18px"},[`.${e}-hlp-txt-suf-i`]:{width:"18px",height:"18px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"20px",height:"20px"},[`.${e}-suf-i`]:{width:"20px",height:"20px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"30px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"30px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"},[`.${e}-phone-amount-input`]:{padding:"8px 6px"},[`.${e}-phone-fld-container`]:{height:"30px"},[`.${e}-selected-country-img`]:{height:"17px",width:"25px","border-radius":"4px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"8px","font-size":"0.8rem"},[`.${e}-currency-amount-input`]:{padding:"8px 6px"},[`.${e}-currency-fld-container`]:{height:"30px"},[`.${e}-selected-currency-img`]:{height:"17px",width:"25px","border-radius":"4px"}}),t==="country"&&{[`.${e}-dpd-wrp`]:{padding:"8px 6px",height:"30px"},[`.${e}-opt-search-input`]:{height:"30px","font-size":"0.8rem"},[`.${e}-opt-search-icn`]:{height:"20px",width:"20px"}}),(t==="select"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"8px 6px",height:"24px"},[`.${e}-opt-search-input`]:{height:"30px","font-size":"0.8rem"},[`.${e}-opt-search-icn`]:{height:"20px",width:"20px"}}),t==="select"&&{[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"4px 8px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"9px 15px","font-size":"0.875rem"},[`.${e}-btn-suf-i`]:{width:"18px",height:"18px"},[`.${e}-btn-pre-i`]:{width:"18px",height:"18px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"9px 11px","font-size":"0.875rem"},[`.${e}-pre-i`]:{width:"18px",height:"18px"},[`.${e}-suf-i`]:{width:"18px",height:"18px"}});case"medium":return l=Pn(e,35)||"8px",S(S(S(S(S(S(S(S(S(B(S({[`.${e}-lbl`]:{"font-size":"1rem"},[`.${e}-sub-titl`]:{"font-size":"12px"},[`.${e}-hlp-txt`]:{"font-size":"12px"}},["check","radio","decision-box","gdpr"].includes(t)&&S({[`.${e}-bx`]:{width:"18px",height:"18px"},[`.${e}-ct`]:{"font-size":"14px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"14px",padding:"10px 8px !important",height:"40px"}})),{[`.${e}-fld`]:S(S({"font-size":"14px",padding:l,height:"40px","border-radius":"11px"},t==="html-select"&&{padding:"6px!important"}),t==="color"&&{padding:"10px"}),[`.${e}-lbl-pre-i`]:{width:"20px",height:"20px"},[`.${e}-lbl-suf-i`]:{width:"20px",height:"20px"},[`.${e}-sub-titl-pre-i`]:{width:"15px",height:"15px"},[`.${e}-sub-titl-suf-i`]:{width:"15px",height:"15px"},[`.${e}-hlp-txt-pre-i`]:{width:"15px",height:"15px"},[`.${e}-hlp-txt-suf-i`]:{width:"15px",height:"15px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"40px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"11px","font-size":"14px"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"40px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"11px","font-size":"14px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"11px","font-size":"14px"},[`.${e}-phone-fld-container`]:{height:"40px"},[`.${e}-selected-country-img`]:{height:"17px !important",width:"25px","border-radius":"3px !important"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"11px","font-size":"14px"},[`.${e}-currency-amount-input`]:S(S({},a!=="rtl"&&{padding:"8px 26px 8px 8px !important"}),a==="rtl"&&{padding:"8px 8px 8px 26px !important"}),[`.${e}-currency-fld-container`]:{height:"40px"},[`.${e}-selected-currency-img`]:{height:"17px !important",width:"25px","border-radius":"3px !important"}}),t==="select"&&{[`.${e}-dpd-wrp`]:{padding:"4px 10px","min-height":"38px"},[`.${e}-opt-search-input`]:{height:"35px","font-size":"14px"},[`.${e}-selected-opt-lbl .chip-wrp`]:{padding:"5px 8px"}}),(t==="country"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"10px",height:t==="country"?"38px":"32px"},[`.${e}-opt-search-input`]:{height:"35px","font-size":"1rem"}}),t==="button"&&{[`.${e}-btn`]:{padding:"11px 20px","font-size":"14px"},[`.${e}-btn-suf-i`]:{width:"20px",height:"20px"},[`.${e}-btn-pre-i`]:{width:"20px",height:"20px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"11px 20px","font-size":"14px"},[`.${e}-pre-i`]:{width:"15px",height:"15px"},[`.${e}-suf-i`]:{width:"15px",height:"15px"}});case"large-1":return l=Pn(e,40)||"9px",S(S(S(S(S(S(S(S(B(S(S({[`.${e}-lbl`]:{"font-size":"18px"},[`.${e}-sub-titl`]:{"font-size":"14px"},[`.${e}-hlp-txt`]:{"font-size":"14px"}},["check","radio","decision-box","gdpr"].includes(t)&&S({[`.${e}-bx`]:{width:"22px",height:"22px"},[`.${e}-ct`]:{"font-size":"18px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"1.2rem",padding:"11px 9px",height:"44px","border-radius":"12px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"6px"}}),{[`.${e}-fld`]:S(S(S({"font-size":"1.2rem",padding:l,"border-radius":"12px"},t==="html-select"&&{padding:"5px 3px"}),t==="color"&&{padding:"5px 3px"}),t!=="textarea"&&{height:"45px"}),[`.${e}-lbl-pre-i`]:{width:"24px",height:"24px"},[`.${e}-lbl-suf-i`]:{width:"24px",height:"24px"},[`.${e}-sub-titl-pre-i`]:{width:"24px",height:"24px"},[`.${e}-sub-titl-suf-i`]:{width:"24px",height:"24px"},[`.${e}-hlp-txt-pre-i`]:{width:"24px",height:"24px"},[`.${e}-hlp-txt-suf-i`]:{width:"24px",height:"24px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"30px",height:"30px"},[`.${e}-suf-i`]:{width:"30px",height:"30px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"44px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"45px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-dpd-wrp`]:{padding:"11px 9px",height:"45px"},[`.${e}-opt-search-input`]:{height:"40px","font-size":"1.2rem"},[`.${e}-opt-search-icn`]:{height:"24px",width:"24px"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-phone-amount-input`]:{padding:"11px 9px"},[`.${e}-phone-fld-container`]:{height:"44px"},[`.${e}-selected-country-img`]:{height:"25px",width:"33px","border-radius":"6px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"12px","font-size":"1.2rem"},[`.${e}-currency-amount-input`]:{padding:"11px 9px"},[`.${e}-currency-fld-container`]:{height:"44px"},[`.${e}-selected-currency-img`]:{height:"25px",width:"33px","border-radius":"6px"}}),(t==="select"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"11px 9px",height:"40px"},[`.${e}-opt-search-input`]:{height:"40px","font-size":"1.2rem"},[`.${e}-opt-search-icn`]:{height:"24px",width:"24px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"12px 22px","font-size":"1.125rem"},[`.${e}-btn-suf-i`]:{width:"24px",height:"24px"},[`.${e}-btn-pre-i`]:{width:"24px",height:"24px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"12px 18px","font-size":"1.125rem"},[`.${e}-pre-i`]:{width:"24px",height:"24px"},[`.${e}-suf-i`]:{width:"24px",height:"24px"}});case"large-2":return l=Pn(e,45)||"10px",S(S(S(S(S(S(S(S(B(S(S({[`.${e}-lbl`]:{"font-size":"20px"},[`.${e}-sub-titl`]:{"font-size":"16px"},[`.${e}-hlp-txt`]:{"font-size":"16px"}},["check","radio","decision-box","gdpr"].includes(t)&&S({[`.${e}-bx`]:{width:"26px",height:"26px"},[`.${e}-ct`]:{"font-size":"20px"}},(t==="radio"||t==="check")&&{[`.${e}-other-inp`]:{"font-size":"1.4rem",padding:"12px 10px",height:"48px","border-radius":"13px"}})),["check","decision-box","gdpr"].includes(t)&&{[`.${e}-ck`]:{"border-radius":"7px"}}),{[`.${e}-fld`]:S(S(S({"font-size":"1.4rem",padding:l,"border-radius":"13px"},t==="html-select"&&{padding:"6px 4px"}),t==="color"&&{padding:"6px 4px"}),t!=="textarea"&&{height:"54px"}),[`.${e}-lbl-pre-i`]:{width:"28px",height:"28px"},[`.${e}-lbl-suf-i`]:{width:"28px",height:"28px"},[`.${e}-sub-titl-pre-i`]:{width:"28px",height:"28px"},[`.${e}-sub-titl-suf-i`]:{width:"28px",height:"28px"},[`.${e}-hlp-txt-pre-i`]:{width:"28px",height:"28px"},[`.${e}-hlp-txt-suf-i`]:{width:"28px",height:"28px"}}),t!=="file-up"&&{[`.${e}-pre-i`]:{width:"35px",height:"35px"},[`.${e}-suf-i`]:{width:"35px",height:"35px"}}),t==="select"&&{[`.${e}-dpd-fld-container`]:{height:"48px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"}}),t==="country"&&{[`.${e}-country-fld-container`]:{height:"48px"},[`.${e}-dpd-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"}}),t==="phone-number"&&{[`.${e}-phone-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"},[`.${e}-phone-amount-input`]:{padding:"12px 10px"},[`.${e}-phone-fld-container`]:{height:"48px"},[`.${e}-selected-country-img`]:{height:"26px",width:"35px","border-radius":"7px"}}),t==="currency"&&{[`.${e}-currency-fld-wrp`]:{"border-radius":"13px","font-size":"1.4rem"},[`.${e}-currency-amount-input`]:{padding:"12px 10px"},[`.${e}-currency-fld-container`]:{height:"48px"},[`.${e}-selected-currency-img`]:{height:"26px",width:"35px","border-radius":"7px"}}),(t==="select"||t==="country"||t==="currency"||t==="phone-number")&&{[`.${e}-dpd-wrp`]:{padding:"12px 10px",height:"48px"},[`.${e}-opt-search-input`]:{height:"45px","font-size":"1.4rem"},[`.${e}-opt-search-icn`]:{height:"26px",width:"26px"}}),t==="button"&&{[`.${e}-btn`]:{padding:"13px 20px","font-size":"1.313rem"},[`.${e}-btn-suf-i`]:{width:"28px",height:"28px"},[`.${e}-btn-pre-i`]:{width:"28px",height:"28px"}}),t==="file-up"&&{[`.${e}-inp-btn`]:{padding:"13px 20px","font-size":"1.313rem"},[`.${e}-pre-i`]:{width:"28px",height:"28px"},[`.${e}-suf-i`]:{width:"28px",height:"28px"}});default:return"default......"}}const Wa=(e,n,t,r,i,s)=>{var p,h;const l=t1({fk:n,type:i,fieldType:t,theme:r,direction:""}),d=Object.keys(l),f=Pt(e),u=f.classes;_e(f,"fieldSize",i);const c=d.length;for(let x=0;x<c;x+=1){const $=d[x];if(Object.prototype.hasOwnProperty.call(u,$)){const y=u[$],I=l[$],T=Object.keys(I),w=T.length;for(let _=0;_<w;_+=1){const g=T[_];if(Object.prototype.hasOwnProperty.call(y,g)){const b=y[g],j=I[g];if(b!==j)if(((p=b==null?void 0:b.match(/(var)/gi))==null?void 0:p.length)===1&&s){const E=(h=b.replace(/\(|var|!important|,.*|\)/gi,""))==null?void 0:h.trim();s[E]!==j&&(s[E]=j)}else{const E=`classes->${$}->${g}`;_e(f,E,j)}}else{const b=`classes->${$}->${g}`;_e(f,b,I[g])}}}}return f},n1=["section","repeater"];var Ga=JSON.parse(`[{"i":"AF","lbl":"Afghanistan","img":"af.png"},{"i":"AL","lbl":"Albania","img":"al.png"},{"i":"DZ","lbl":"Algeria","img":"dz.png"},{"i":"AS","lbl":"American Samoa","img":"as.png"},{"i":"AD","lbl":"Andorra","img":"ad.png"},{"i":"AO","lbl":"Angola","img":"ao.png"},{"i":"AI","lbl":"Anguilla","img":"ai.png"},{"i":"AQ","lbl":"Antarctica","img":"aq.png"},{"i":"AG","lbl":"Antigua and Barbuda","img":"ag.png"},{"i":"AR","lbl":"Argentina","img":"ar.png"},{"i":"AM","lbl":"Armenia","img":"am.png"},{"i":"AW","lbl":"Aruba","img":"aw.png"},{"i":"AU","lbl":"Australia","img":"au.png"},{"i":"AT","lbl":"Austria","img":"at.png"},{"i":"AZ","lbl":"Azerbaijan","img":"az.png"},{"i":"BS","lbl":"Bahamas (the)","img":"bs.png"},{"i":"BH","lbl":"Bahrain","img":"bh.png"},{"i":"BD","lbl":"Bangladesh","img":"bd.png"},{"i":"BB","lbl":"Barbados","img":"bb.png"},{"i":"BY","lbl":"Belarus","img":"by.png"},{"i":"BE","lbl":"Belgium","img":"be.png"},{"i":"BZ","lbl":"Belize","img":"bz.png"},{"i":"BJ","lbl":"Benin","img":"bj.png"},{"i":"BM","lbl":"Bermuda","img":"bm.png"},{"i":"BT","lbl":"Bhutan","img":"bt.png"},{"i":"BO","lbl":"Bolivia (Plurinational State of)","img":"bo.png"},{"i":"BQ","lbl":"Bonaire, Sint Eustatius and Saba","img":"bq.png"},{"i":"BA","lbl":"Bosnia and Herzegovina","img":"ba.png"},{"i":"BW","lbl":"Botswana","img":"bw.png"},{"i":"BV","lbl":"Bouvet Island","img":"bv.png"},{"i":"BR","lbl":"Brazil","img":"br.png"},{"i":"IO","lbl":"British Indian Ocean Territory (the)","img":"io.png"},{"i":"BN","lbl":"Brunei Darussalam","img":"bn.png"},{"i":"BG","lbl":"Bulgaria","img":"bg.png"},{"i":"BF","lbl":"Burkina Faso","img":"bf.png"},{"i":"BI","lbl":"Burundi","img":"bi.png"},{"i":"CV","lbl":"Cabo Verde","img":"cv.png"},{"i":"KH","lbl":"Cambodia","img":"kh.png"},{"i":"CM","lbl":"Cameroon","img":"cm.png"},{"i":"CA","lbl":"Canada","img":"ca.png"},{"i":"KY","lbl":"Cayman Islands (the)","img":"ky.png"},{"i":"CF","lbl":"Central African Republic (the)","img":"cf.png"},{"i":"TD","lbl":"Chad","img":"td.png"},{"i":"CL","lbl":"Chile","img":"cl.png"},{"i":"CN","lbl":"China","img":"cn.png"},{"i":"CX","lbl":"Christmas Island","img":"cx.png"},{"i":"CC","lbl":"Cocos (Keeling) Islands (the)","img":"cc.png"},{"i":"CO","lbl":"Colombia","img":"co.png"},{"i":"KM","lbl":"Comoros (the)","img":"km.png"},{"i":"CD","lbl":"Congo (the Democratic Republic of the)","img":"cd.png"},{"i":"CG","lbl":"Congo (the)","img":"cg.png"},{"i":"CK","lbl":"Cook Islands (the)","img":"ck.png"},{"i":"CR","lbl":"Costa Rica","img":"cr.png"},{"i":"HR","lbl":"Croatia","img":"hr.png"},{"i":"CU","lbl":"Cuba","img":"cu.png"},{"i":"CW","lbl":"Curaçao","img":"cw.png"},{"i":"CY","lbl":"Cyprus","img":"cy.png"},{"i":"CZ","lbl":"Czechia","img":"cz.png"},{"i":"CI","lbl":"Côte d'Ivoire","img":"ci.png"},{"i":"DK","lbl":"Denmark","img":"dk.png"},{"i":"DJ","lbl":"Djibouti","img":"dj.png"},{"i":"DM","lbl":"Dominica","img":"dm.png"},{"i":"DO","lbl":"Dominican Republic (the)","img":"do.png"},{"i":"EU","lbl":"Drapeau européen","img":"eu.png"},{"i":"EC","lbl":"Ecuador","img":"ec.png"},{"i":"EG","lbl":"Egypt","img":"eg.png"},{"i":"GB-ENG","lbl":"England","img":"gb-eng.png"},{"i":"SV","lbl":"El Salvador","img":"sv.png"},{"i":"GQ","lbl":"Equatorial Guinea","img":"gq.png"},{"i":"ER","lbl":"Eritrea","img":"er.png"},{"i":"EE","lbl":"Estonia","img":"ee.png"},{"i":"SZ","lbl":"Eswatini","img":"sz.png"},{"i":"ET","lbl":"Ethiopia","img":"et.png"},{"i":"FK","lbl":"Falkland Islands (the) [Malvinas]","img":"fk.png"},{"i":"FO","lbl":"Faroe Islands (the)","img":"fo.png"},{"i":"FJ","lbl":"Fiji","img":"fj.png"},{"i":"FI","lbl":"Finland","img":"fi.png"},{"i":"FR","lbl":"France","img":"fr.png"},{"i":"GF","lbl":"French Guiana","img":"gf.png"},{"i":"PF","lbl":"French Polynesia","img":"pf.png"},{"i":"TF","lbl":"French Southern Territories (the)","img":"tf.png"},{"i":"GA","lbl":"Gabon","img":"ga.png"},{"i":"GM","lbl":"Gambia (the)","img":"gm.png"},{"i":"GE","lbl":"Georgia","img":"ge.png"},{"i":"DE","lbl":"Germany","img":"de.png"},{"i":"GH","lbl":"Ghana","img":"gh.png"},{"i":"GI","lbl":"Gibraltar","img":"gi.png"},{"i":"GR","lbl":"Greece","img":"gr.png"},{"i":"GL","lbl":"Greenland","img":"gl.png"},{"i":"GD","lbl":"Grenada","img":"gd.png"},{"i":"GP","lbl":"Guadeloupe","img":"gp.png"},{"i":"GU","lbl":"Guam","img":"gu.png"},{"i":"GT","lbl":"Guatemala","img":"gt.png"},{"i":"GG","lbl":"Guernsey","img":"gg.png"},{"i":"GN","lbl":"Guinea","img":"gn.png"},{"i":"GW","lbl":"Guinea-Bissau","img":"gw.png"},{"i":"GY","lbl":"Guyana","img":"gy.png"},{"i":"HT","lbl":"Haiti","img":"ht.png"},{"i":"HM","lbl":"Heard Island and McDonald Islands","img":"hm.png"},{"i":"VA","lbl":"Holy See (the)","img":"va.png"},{"i":"HN","lbl":"Honduras","img":"hn.png"},{"i":"HK","lbl":"Hong Kong","img":"hk.png"},{"i":"HU","lbl":"Hungary","img":"hu.png"},{"i":"IS","lbl":"Iceland","img":"is.png"},{"i":"IN","lbl":"India","img":"in.png"},{"i":"ID","lbl":"Indonesia","img":"id.png"},{"i":"IR","lbl":"Iran (Islamic Republic of)","img":"ir.png"},{"i":"IQ","lbl":"Iraq","img":"iq.png"},{"i":"IE","lbl":"Ireland","img":"ie.png"},{"i":"IM","lbl":"Isle of Man","img":"im.png"},{"i":"IL","lbl":"Israel","img":"il.png"},{"i":"IT","lbl":"Italy","img":"it.png"},{"i":"JM","lbl":"Jamaica","img":"jm.png"},{"i":"JP","lbl":"Japan","img":"jp.png"},{"i":"JE","lbl":"Jersey","img":"je.png"},{"i":"JO","lbl":"Jordan","img":"jo.png"},{"i":"KZ","lbl":"Kazakhstan","img":"kz.png"},{"i":"KE","lbl":"Kenya","img":"ke.png"},{"i":"KI","lbl":"Kiribati","img":"ki.png"},{"i":"KP","lbl":"Korea (the Democratic People's Republic of)","img":"kp.png"},{"i":"KR","lbl":"Korea (the Republic of)","img":"kr.png"},{"i":"KW","lbl":"Kuwait","img":"kw.png"},{"i":"KG","lbl":"Kyrgyzstan","img":"kg.png"},{"i":"LA","lbl":"Lao People's Democratic Republic (the)","img":"la.png"},{"i":"LV","lbl":"Latvia","img":"lv.png"},{"i":"LB","lbl":"Lebanon","img":"lb.png"},{"i":"LS","lbl":"Lesotho","img":"ls.png"},{"i":"LR","lbl":"Liberia","img":"lr.png"},{"i":"LY","lbl":"Libya","img":"ly.png"},{"i":"LI","lbl":"Liechtenstein","img":"li.png"},{"i":"LT","lbl":"Lithuania","img":"lt.png"},{"i":"LU","lbl":"Luxembourg","img":"lu.png"},{"i":"MO","lbl":"Macao","img":"mo.png"},{"i":"MG","lbl":"Madagascar","img":"mg.png"},{"i":"MW","lbl":"Malawi","img":"mw.png"},{"i":"MY","lbl":"Malaysia","img":"my.png"},{"i":"MV","lbl":"Maldives","img":"mv.png"},{"i":"ML","lbl":"Mali","img":"ml.png"},{"i":"MT","lbl":"Malta","img":"mt.png"},{"i":"MH","lbl":"Marshall Islands (the)","img":"mh.png"},{"i":"MQ","lbl":"Martinique","img":"mq.png"},{"i":"MR","lbl":"Mauritania","img":"mr.png"},{"i":"MU","lbl":"Mauritius","img":"mu.png"},{"i":"YT","lbl":"Mayotte","img":"yt.png"},{"i":"MX","lbl":"Mexico","img":"mx.png"},{"i":"FM","lbl":"Micronesia (Federated States of)","img":"fm.png"},{"i":"MD","lbl":"Moldova (the Republic of)","img":"md.png"},{"i":"MC","lbl":"Monaco","img":"mc.png"},{"i":"MN","lbl":"Mongolia","img":"mn.png"},{"i":"ME","lbl":"Montenegro","img":"me.png"},{"i":"MS","lbl":"Montserrat","img":"ms.png"},{"i":"MA","lbl":"Morocco","img":"ma.png"},{"i":"MZ","lbl":"Mozambique","img":"mz.png"},{"i":"MM","lbl":"Myanmar","img":"mm.png"},{"i":"NA","lbl":"Namibia","img":"na.png"},{"i":"NR","lbl":"Nauru","img":"nr.png"},{"i":"NP","lbl":"Nepal","img":"np.png"},{"i":"NL","lbl":"Netherlands (the)","img":"nl.png"},{"i":"NC","lbl":"New Caledonia","img":"nc.png"},{"i":"NZ","lbl":"New Zealand","img":"nz.png"},{"i":"NI","lbl":"Nicaragua","img":"ni.png"},{"i":"NE","lbl":"Niger (the)","img":"ne.png"},{"i":"NG","lbl":"Nigeria","img":"ng.png"},{"i":"NU","lbl":"Niue","img":"nu.png"},{"i":"NF","lbl":"Norfolk Island","img":"nf.png"},{"i":"GB-NIR","lbl":"Northern Ireland","img":"gb-nir.png"},{"i":"MP","lbl":"Northern Mariana Islands (the)","img":"mp.png"},{"i":"NO","lbl":"Norway","img":"no.png"},{"i":"OM","lbl":"Oman","img":"om.png"},{"i":"PK","lbl":"Pakistan","img":"pk.png"},{"i":"PW","lbl":"Palau","img":"pw.png"},{"i":"PS","lbl":"Palestine, State of","img":"ps.png"},{"i":"PA","lbl":"Panama","img":"pa.png"},{"i":"PG","lbl":"Papua New Guinea","img":"pg.png"},{"i":"PY","lbl":"Paraguay","img":"py.png"},{"i":"PE","lbl":"Peru","img":"pe.png"},{"i":"PH","lbl":"Philippines (the)","img":"ph.png"},{"i":"PN","lbl":"Pitcairn","img":"pn.png"},{"i":"PL","lbl":"Poland","img":"pl.png"},{"i":"PT","lbl":"Portugal","img":"pt.png"},{"i":"PR","lbl":"Puerto Rico","img":"pr.png"},{"i":"QA","lbl":"Qatar","img":"qa.png"},{"i":"MK","lbl":"Republic of North Macedonia","img":"mk.png"},{"i":"RO","lbl":"Romania","img":"ro.png"},{"i":"RU","lbl":"Russian Federation (the)","img":"ru.png"},{"i":"RW","lbl":"Rwanda","img":"rw.png"},{"i":"RE","lbl":"Réunion","img":"re.png"},{"i":"BL","lbl":"Saint Barthélemy","img":"bl.png"},{"i":"SH","lbl":"Saint Helena, Ascension and Tristan da Cunha","img":"sh.png"},{"i":"KN","lbl":"Saint Kitts and Nevis","img":"kn.png"},{"i":"LC","lbl":"Saint Lucia","img":"lc.png"},{"i":"MF","lbl":"Saint Martin (French part)","img":"mf.png"},{"i":"PM","lbl":"Saint Pierre and Miquelon","img":"pm.png"},{"i":"VC","lbl":"Saint Vincent and the Grenadines","img":"vc.png"},{"i":"WS","lbl":"Samoa","img":"ws.png"},{"i":"SM","lbl":"San Marino","img":"sm.png"},{"i":"ST","lbl":"Sao Tome and Principe","img":"st.png"},{"i":"SA","lbl":"Saudi Arabia","img":"sa.png"},{"i":"GB-SCT","lbl":"Scotland","img":"gb-sct.png"},{"i":"SN","lbl":"Senegal","img":"sn.png"},{"i":"RS","lbl":"Serbia","img":"rs.png"},{"i":"SC","lbl":"Seychelles","img":"sc.png"},{"i":"SL","lbl":"Sierra Leone","img":"sl.png"},{"i":"SG","lbl":"Singapore","img":"sg.png"},{"i":"SX","lbl":"Sint Maarten (Dutch part)","img":"sx.png"},{"i":"SK","lbl":"Slovakia","img":"sk.png"},{"i":"SI","lbl":"Slovenia","img":"si.png"},{"i":"SB","lbl":"Solomon Islands","img":"sb.png"},{"i":"SO","lbl":"Somalia","img":"so.png"},{"i":"ZA","lbl":"South Africa","img":"za.png"},{"i":"GS","lbl":"South Georgia and the South Sandwich Islands","img":"gs.png"},{"i":"SS","lbl":"South Sudan","img":"ss.png"},{"i":"ES","lbl":"Spain","img":"es.png"},{"i":"LK","lbl":"Sri Lanka","img":"lk.png"},{"i":"SD","lbl":"Sudan (the)","img":"sd.png"},{"i":"SR","lbl":"Suriname","img":"sr.png"},{"i":"SJ","lbl":"Svalbard and Jan Mayen","img":"sj.png"},{"i":"SE","lbl":"Sweden","img":"se.png"},{"i":"CH","lbl":"Switzerland","img":"ch.png"},{"i":"SY","lbl":"Syrian Arab Republic","img":"sy.png"},{"i":"TW","lbl":"Taiwan (Province of China)","img":"tw.png"},{"i":"TJ","lbl":"Tajikistan","img":"tj.png"},{"i":"TZ","lbl":"Tanzania, United Republic of","img":"tz.png"},{"i":"TH","lbl":"Thailand","img":"th.png"},{"i":"TL","lbl":"Timor-Leste","img":"tl.png"},{"i":"TG","lbl":"Togo","img":"tg.png"},{"i":"TK","lbl":"Tokelau","img":"tk.png"},{"i":"TO","lbl":"Tonga","img":"to.png"},{"i":"TT","lbl":"Trinidad and Tobago","img":"tt.png"},{"i":"TN","lbl":"Tunisia","img":"tn.png"},{"i":"TR","lbl":"Turkey","img":"tr.png"},{"i":"TM","lbl":"Turkmenistan","img":"tm.png"},{"i":"TC","lbl":"Turks and Caicos Islands (the)","img":"tc.png"},{"i":"TV","lbl":"Tuvalu","img":"tv.png"},{"i":"UG","lbl":"Uganda","img":"ug.png"},{"i":"UA","lbl":"Ukraine","img":"ua.png"},{"i":"AE","lbl":"United Arab Emirates (the)","img":"ae.png"},{"i":"GB","lbl":"United Kingdom","img":"gb.png"},{"i":"UM","lbl":"United States Minor Outlying Islands (the)","img":"um.png"},{"i":"US","lbl":"United States of America (the)","img":"us.png"},{"i":"UY","lbl":"Uruguay","img":"uy.png"},{"i":"UZ","lbl":"Uzbekistan","img":"uz.png"},{"i":"VU","lbl":"Vanuatu","img":"vu.png"},{"i":"VE","lbl":"Venezuela (Bolivarian Republic of)","img":"ve.png"},{"i":"VN","lbl":"Viet Nam","img":"vn.png"},{"i":"VG","lbl":"Virgin Islands (British)","img":"vg.png"},{"i":"VI","lbl":"Virgin Islands (U.S.)","img":"vi.png"},{"i":"WF","lbl":"Wallis and Futuna","img":"wf.png"},{"i":"GB-WLS","lbl":"Wales","img":"gb-wls.png"},{"i":"EH","lbl":"Western Sahara","img":"eh.png"},{"i":"YE","lbl":"Yemen","img":"ye.png"},{"i":"ZM","lbl":"Zambia","img":"zm.png"},{"i":"ZW","lbl":"Zimbabwe","img":"zw.png"},{"i":"AX","lbl":"Åland Islands","img":"ax.png"}]`);const r1=e=>{var i,s,a,l;const n=ue(Es);return!e||!["password","email","name","address"].includes(e.toLowerCase())?[]:{password:[{typ:"password",lbl:"Confirm password",fieldName:"confirm",err:{notMatch:{dflt:((i=n.err.password)==null?void 0:i.notMatch)||`<p style="margin:0">${m("The entered values do not match.")}</p>`,show:!0}}}],email:[{typ:"email",lbl:"Confirm email",fieldName:"confirm",pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",err:{invalid:{dflt:((s=n.err.email)==null?void 0:s.invalid)||`<p style="margin:0">${m("Please enter a valid email address.")}</p>`,show:!0},notMatch:{dflt:((a=n.err.email)==null?void 0:a.notMatch)||`<p style="margin:0">${m("The entered values do not match.")}</p>`,show:!0}}}],name:[{typ:"text",lbl:"First name",fieldName:"first_name"},{typ:"text",lbl:"Middle name",fieldName:"middle_name",isDeactive:!0},{typ:"text",lbl:"Last name",fieldName:"last_name"}],address:[{typ:"text",lbl:"Street address",fieldName:"address_1",colSpan:12},{typ:"text",lbl:"Address line 2",fieldName:"address_2",isDeactive:!0,colSpan:12},{typ:"text",lbl:"City",fieldName:"city",colSpan:6},{typ:"text",lbl:"State / Province / Region",fieldName:"state",colSpan:6},{typ:"text",lbl:"Zip / Postal code",fieldName:"zip",colSpan:6,err:{invalid:{dflt:((l=n.err.address)==null?void 0:l.zip)||`<p style="margin:0">${m("Please enter a valid zip/postal code.")}</p>`,show:!0}}},{typ:"country",lbl:"Country",fieldName:"country",phHide:!0,ph:"Select a Country",colSpan:6,config:{selectedFlagImage:xe,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:xe,detectCountryByIp:!1,detectCountryByGeo:!1,defaultValue:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found"},options:Ga}]}[e.toLowerCase()]},i1=(e,n)=>{const{typ:t}=n;t==="paypal"?(Mn({fieldKey:e,errorKey:"paypalClientIdMissing",errorMsg:m("PayPal Client ID is missing"),errorUrl:`field-settings/${e}`}),Mn({fieldKey:e,errorKey:"paypalAmountMissing",errorMsg:m("PayPal Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})):t==="razorpay"&&(Mn({fieldKey:e,errorKey:"razorpayClientIdMissing",errorMsg:m("Razorpay Client ID is missing"),errorUrl:`field-settings/${e}`}),Mn({fieldKey:e,errorKey:"razorpayAmountMissing",errorMsg:m("Razorpay Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})),t==="email-otp"&&Mn({fieldKey:e,errorKey:"emailOtpReciverEmailMissing",errorMsg:m("Email OTP Receiver Email is missing"),errorUrl:`field-settings/${e}`})},no=e=>e.typ==="button"?e.txt:e.typ==="decision-box"?"Decision Box":e.typ==="gdpr"?"GDPR Agreement":e.typ==="title"?"Title Field":e.typ==="html"?"HTML Field":e.typ==="recaptcha"?"Recaptcha Field":e.lbl?e.lbl:e.typ.charAt(0).toUpperCase()+e.typ.slice(1),ps=()=>{ue(nt)!=="lg"&&Ee(nt,"lg")};function o1(e,n,t,r){const i=ue(Ms),s=ue(_l),a=ue(We),l=ue(be),d=ue(Le),f=ue(yn);let u=Os(n);if(!u)return;u=B(S({},u),{fieldName:n.fieldName||`${u.typ}-${i}-${s}`});const c=`b${i}-${s}`;i1(c,u);const p=r==null?void 0:r.previousFieldKey,h=!!(t&&r);let x=null;if(h&&p){const O=f1(e,p,t.w),{w:L,h:H,minH:C,maxH:M,minW:k}=t,F={i:c,x:0,y:0,w:L,h:H,minH:C,maxH:M,minW:k},D=po(n.typ);D&&(F.resizeHandles=D),x=bo(e,F,O)}else if(h){let{x:O,y:L}=r;L!==0&&(L-=1);const{w:H,h:C,minH:M,maxH:k,minW:F}=t,D={i:c,x:O,y:L,w:H,h:C,minH:M,maxH:k,minW:F},z=po(n.typ);z&&(D.resizeHandles=z),x=bo(e,D)}const $=B(S({},a),{[c]:u});Ee(We,$),sessionStorage.setItem("btcd-lc","-"),Ee(zi,"out-of-sync");const y=`${no(n)} added`,I="add_fld",T=u.typ;if(n1.includes(T)){const O=ue(Kn);Ee(Kn,P(O,L=>{L[c]={lg:[],md:[],sm:[]}}))}const w=Pt(d),_=P(l,O=>{const L=O.theme,H=ue(Ws)||{},C=u==null?void 0:u.btnTyp,M=u==null?void 0:u.align,k=u==null?void 0:u.fulW,F=u==null?void 0:u.txtAlign,D=Ei(L,c,u.typ,{breakpoint:"lg",colorScheme:"light",direction:d["--dir"],fldPrefix:!!u.prefixIcn,fldSuffix:!!u.suffixIcn,buttonOptions:{btnTyp:C,align:M,fulW:k,txtAlign:F}},H);if(O.fieldsSize!=="medium"){const z=Wa(D,c,u.typ,O.fieldsSize,w);O.fields[c]=z}else O.fields[c]=D});if(Ee(be,_),Ee(Le,w),gr.includes(T)&&Ee(yn,P(f,O=>{O.staticStyles[".pos-rel"]={position:"relative"},O.staticStyles[".form-loading::before"]={position:"absolute","border-radius":"5px",display:"block",top:0,left:0,content:"''",height:"100%",width:"100%","z-index":"9999","background-color":"rgba(0,0,0,0.2)"},O.staticStyles[".form-loading::after"]={position:"absolute","border-radius":"5px",color:"#fff",top:"50%",left:"50%",content:"'loading...'",transform:"translate(-50%, -50%)","z-index":"99999","font-size":"20px","background-color":"#222",padding:"5px 15px"},T==="razorpay"&&(O.staticStyles[".razorpay-checkout-frame"]={height:"100% !important"})})),$l(u)){const O=r1(u.typ),L=[];O.forEach(H=>{const se=H,{typ:C,lbl:M,fieldName:k,isDeactive:F}=se,D=cr(se,["typ","lbl","fieldName","isDeactive"]),z=ml(S({typ:C,lbl:M,fieldName:k,isDeactive:F},D)),V=o1({},z);V.newBlk&&L.push({fldKey:V.newBlk})}),L.length>0&&Ee(We,P(ue(We),H=>{const C=H[c];C.childFields=L,L.forEach(({fldKey:M})=>{H[M].parentFieldKey=c,H[M].fieldName=`${C.fieldName}[${H[M].fieldName}]`})}))}const g=ue(We),b=ue(be),E={event:y,type:I,state:{fldKey:c,fields:g,styles:b}};return setTimeout(()=>{var O;(O=xr(`[data-key="${c}"]`))==null||O.focus()},500),setTimeout(()=>{Dt(c)},100),{newBlk:c,newLayouts:x,historyData:E}}const T_=e=>{const n=ue(be);if(Object.keys(e).length===0&&typeof e=="object"&&e!==null)return n;const t=ue(Le),r=Pt(t);return P(n,s=>{Object.entries(e).forEach(([a,l])=>{const d=s1({draftStyle:s,fieldData:l,fldKey:a,themeVars:t,tempThemeVars:r});s.fields[a]=d})})},s1=({draftStyle:e,fieldData:n,fldKey:t,themeVars:r,tempThemeVars:i})=>{const s=e.theme,a=ue(Ws)||{},l=n==null?void 0:n.btnTyp,d=n==null?void 0:n.align,f=n==null?void 0:n.fulW,u=n==null?void 0:n.txtAlign,c=Ei(s,t,n.typ,{breakpoint:"lg",colorScheme:"light",direction:r["--dir"],fldPrefix:!!n.prefixIcn,fldSuffix:!!n.suffixIcn,buttonOptions:{btnTyp:l,align:d,fulW:f,txtAlign:u}},a);return e.fieldsSize!=="medium"?Wa(c,t,n.typ,e.fieldsSize,i):c},bs=(e,n,t)=>{const r=n.slice(1),i=t.slice(1),s=new RegExp(`(^|[^0-9])${r}(?![0-9])`,"g");return e.replace(s,`$1${i}`)},Ua=e=>{const t=ue(We)[e];if(!t)return{};const r=t.typ;if(["textarea","signature"].includes(r)){const s=xr(`[data-key="${e}"]`),a=xr(`[data-dev-fld="${e}"]`),l=ho(s,0);return{fldHeight:ho(a,0),wrpHeight:l}}return{}},N_=(e,n)=>{const t=n.i;Ee(fi,S({fieldKey:t},Ua(t)))},E_=(e,n)=>{N.startTransition(()=>{const t=ue(fi),r=P(t,i=>{if(i.fieldKey){const l=e.find(d=>d.i===i.fieldKey);return i.w=l.w,i.x=l.x,i}const s=n.i,a=S({fieldKey:s},Ua(s));return a.w=n.w,a.x=n.x,gl(a)});Ee(fi,r)})},a1=e=>{const n=ue(be),t=P(n,r=>{Array.isArray(e)?e.forEach(i=>{delete r.fields[i]}):delete r.fields[e]});Ee(be,t)},l1=(e,n)=>([...n].forEach(r=>{var i,s;(s=(i=e[r])==null?void 0:i.childFields)==null||s.forEach(({fldKey:a})=>{a&&!n.includes(a)&&n.push(a)})}),n),c1=(e,n,t)=>{let r=hl(e);const i={},s=new Set;return Object.values(e).forEach(l=>{l!=null&&l.fieldName&&s.add(l.fieldName)}),{newFields:P(e,l=>{n.forEach(d=>{var h,x,$,y,I,T;const f=e[d];if(!f)return;const u=`b${t}-${r}`;i[d]=u;let c;const p=f.parentFieldKey&&i[f.parentFieldKey];if(p){const w=(x=(h=f.fieldName)==null?void 0:h.match(/\[[^\]]*\]$/))==null?void 0:x[0],_=($=e[f.parentFieldKey])!=null&&$.confirm?(I=(y=l[p])==null?void 0:y.fieldName)==null?void 0:I.replace(/\[primary\]$/,""):(T=l[p])==null?void 0:T.fieldName;c=_&&w?`${_}${w}`:bs(f.fieldName,f.parentFieldKey,p)}else{c=bs(f.fieldName,d,u);const w=f.confirm&&/\[primary\]$/.test(f.fieldName||"")?"[primary]":"";s.has(c)&&(c=`${f.typ}-${t}-${r}${w}`);let _=1;for(;s.has(c);)c=`${f.typ}-${t}-${r}-${_}${w}`,_+=1}s.add(c),r+=1,l[u]=B(S({},Pt(f)),{fieldName:c})}),n.forEach(d=>{const f=l[i[d]];f&&(f.childFields&&(f.childFields=f.childFields.map(u=>B(S({},u),{fldKey:i[u.fldKey]||u.fldKey}))),f.parentFieldKey&&(f.parentFieldKey=i[f.parentFieldKey]||f.parentFieldKey))})}),clonedNewFieldKey:i}},d1=(e,n)=>{Object.entries(n).forEach(([t,r])=>{const i=e.fields[t];if(!i)return;const s=i.classes||{};e.fields[r]=S({},i),e.fields[r].classes={},Object.keys(s).forEach(a=>{const l=a.replaceAll(t,r);e.fields[r].classes[l]=s[a]})})},hs=(e,n)=>{const t=ue(We),r=ue(be),i=ue(Ms),s=ue(nt);if(!xe){Ee(zs,S({show:!0},bl.fieldClone));return}const a=t[e],l=l1(t,[e]),{newFields:d,clonedNewFieldKey:f}=c1(t,l,i),u=f[e],c={},p=["sm","md","lg"],h=P(n,w=>{p.forEach(_=>{const g=n[_].findIndex(O=>O.i===e);if(g===-1)return;const{y:b,h:j}=n[_][g],E=B(S({},n[_][g]),{i:u,y:b+j});c[_]=E,w[_].splice(g+1,0,E)})}),x=d[u].fieldName;Ee(We,d);const $=P(r,w=>{d1(w,f)});Ee(be,$),sessionStorage.setItem("btcd-lc","-"),setTimeout(()=>{var w;(w=xr(`[data-key="${u}"]`))==null||w.focus()},500);const y=`${no(a)} cloned`,I="clone_fld",T={fldKey:u,breakpoint:s,layout:c,fldData:a,allLayouts:W("allLayouts"),fields:d,styles:W("styles")};return K({event:y,type:I,state:T}),Ee(As,{}),{newBlk:u,newFldName:x,newLayouts:h}},_s=(e,n)=>{const t=ue(We),r=ue(nt),i=ue(fo),s=ue(yn),a=t[e];if((a==null?void 0:a.typ)==="button"&&(a==null?void 0:a.btnTyp)==="submit"&&!(t?Object.values(t).filter(I=>gr.includes(I.typ)):[]).length)return!1;n.lg.find(y=>y.i===e),n.md.find(y=>y.i===e),n.sm.find(y=>y.i===e);const l=[e];a!=null&&a.childFields&&a.childFields.forEach(({fldKey:y})=>{l.push(y)});const d=fl(e,n),f=P(t,y=>{l.forEach(I=>{delete y[I]})});Ee(We,f),Ee(Qn,null),a1(l);const u=P(i,y=>{l.forEach(I=>{y.includes(I)||y.push(I)})});Ee(fo,u),sessionStorage.setItem("btcd-lc","-");const c=a==null?void 0:a.typ;if(gr.includes(c)){const y=P(s,I=>{delete I.staticStyles[".pos-rel"],delete I.staticStyles[".form-loading::before"],delete I.staticStyles[".form-loading::after"],c==="razorpay"&&delete I.staticStyles[".razorpay-checkout-frame"]});Ee(yn,y)}const $={event:`${no(a)} removed`,type:"remove_fld",state:{fldKey:e,breakpoint:r,fldData:a,fields:f}};return pl(e),{newLayouts:d,historyData:$}},u1=(e,n)=>!e||!Array.isArray(e)||!n?null:e.find(t=>t.i===n)||null,f1=(e,n,t)=>{const r=Object.keys(ue(Ai)),i={};return r.forEach(s=>{const a=e[s],l=u1(a,n);l?i[s]={x:0,y:l.y+l.h}:i[s]={x:0,y:0}}),i};function p1(){const[e,n]=q(Ni),[t,r]=q(js),[i,s]=q(vs),a=ie(Mr),l=ie(As),d=ce(Or),f=ce(nt),u=er(),{formType:c,formID:p}=me(),h=ce(Bs),$=c!=="edit"?h:p,{scrollContainerRef:y,handleScroll:I,scrollTo:T,isAtStart:w,isAtEnd:_}=Jh(),g=Array.isArray(e)?e:[e],b=`/form/builder/${c}/${$}`,j=g.length>1,[E,O]=q(be),L=ce(We),H=ie(Oi),[C,M]=q(Kn),k=ie(Ls),F=ie(Qn),{styleMode:D}=d,{css:z}=re(),[V,se]=q(yn),Re=()=>{var J,G;(G=(J=V.staticStyles)==null?void 0:J["@media (max-width: 576px)"])!=null&&G[`._frm-b${$}-stp-hdr-lbl`]||se(je=>P(je,ge=>{ge.staticStyles=$o(ge.staticStyles,wl($))}))},mt=()=>{Re(),n(J=>P(J,G=>{const je=Array.isArray(G)?G.length:1,ge={layout:{lg:[],md:[],sm:[]},settings:_o(je)};if(!Array.isArray(G))return r(1),G=[{layout:G,settings:_o(0)},ge],G;G.push(ge),r(G.length-1)})),s(J=>P(J,G=>{G.multiStepSettings||(G.multiStepSettings=e1),G.isMultiStepForm=!0})),O(J=>P(J,G=>{G.form[`._frm-b${$}-stp-cntnr`]||(G.form=$o(G.form,vl({formID:$,themeSlug:E.theme})))})),a(J=>B(S({},J),{reRenderGridLayoutByRootLay:J.reRenderGridLayoutByRootLay+1})),k(J=>B(S({},J),{unsaved:!0})),N.startTransition(()=>{const J="New Step added",G="step_added",je=W("activeBuilderStep"),at={fldKey:`step-${je+1}`,activeBuilderStep:je,allLayouts:W("allLayouts"),styles:W("styles"),formInfo:W("formInfo")};K({event:J,type:G,state:at})})},En=J=>{const G=e.length-1,je=Pt(e[J].layout),ge=[...new Set(["lg","md","sm"].flatMap(Y=>(je[Y]||[]).map(pe=>pe.i)))],at=ge.some(Y=>{const pe=L[Y];if((pe==null?void 0:pe.typ)==="button"&&(pe==null?void 0:pe.btnTyp)==="submit"&&!(L?Object.values(L).filter(ae=>gr.includes(ae.typ)):[]).length)return H({show:!0,msg:m("Submit button cannot be removed"),cancelBtn:!1}),!0});if(zn(),at)return;ge.forEach(Y=>{if(C[Y]){const pe=Pt(C[Y]);[...new Set(["lg","md","sm"].flatMap(ae=>(pe[ae]||[]).map(Ne=>Ne.i)))].forEach(ae=>{_s(ae,pe)}),M(ae=>P(ae,Ne=>{delete Ne[Y]}))}_s(Y,je)});const qe=P(e,Y=>{Y.splice(J,1)});n(qe),J===t&&J===G?r(J-1):t>J&&r(Y=>Y-1),qe.length===1&&(O(Y=>P(Y,pe=>{const Pe=yl({formId:$});Object.keys(Pe).forEach(ae=>{delete pe.form[ae]})})),s(Y=>P(Y,pe=>{pe.isMultiStepForm=!1}))),a(Y=>B(S({},Y),{reRenderGridLayoutByRootLay:Y.reRenderGridLayoutByRootLay+1})),k(Y=>B(S({},Y),{unsaved:!0})),N.startTransition(()=>{const Y="Step removed",pe="step_removed",Pe=W("activeBuilderStep"),Ne={fldKey:`step-${Pe}`,breakpoint:f,activeBuilderStep:Pe,allLayouts:W("allLayouts"),fields:W("fields"),styles:W("styles"),nestedLayouts:W("nestedLayouts"),formInfo:W("formInfo")};K({event:Y,type:pe,state:Ne})})},on=J=>{const G=e[J],je=G.layout,ge=[...new Set(["lg","md","sm"].flatMap(ae=>(je[ae]||[]).map(Ne=>Ne.i)))],at=ge.some(ae=>{const Ne=L[ae];return!Os(Ne)});if(zn(),at)return;const qe=J+1,Y=Pt(G);Y.settings.title=`Step ${e.length+1}`;let pe=P(e,ae=>{ae.splice(qe,0,Y)}),Pe=P(C,()=>{});ge.forEach(ae=>{const Ne=pe[qe].layout,{newBlk:gt,newLayouts:R}=hs(ae,Ne),Z=P(R,oe=>{Object.keys(mo).forEach(he=>{const Ye=oe[he].findIndex(De=>De.i===ae);Ye!==-1&&oe[he].splice(Ye,1)})});pe=P(pe,oe=>{oe[qe].layout=Z}),C[ae]&&(Pe=P(Pe,oe=>{oe[gt]=Pt(C[ae]);const he=C[ae];[...new Set(["lg","md","sm"].flatMap(De=>(he[De]||[]).map(rt=>rt.i)))].forEach(De=>{const{newLayouts:rt}=hs(De,oe[gt]);oe[gt]=rt,Object.keys(mo).forEach(Xe=>{const ut=rt[Xe].findIndex(He=>He.i===De);ut!==-1&&rt[Xe].splice(ut,1)})})}))}),M(Pe),n(pe),r(qe),a(ae=>B(S({},ae),{reRenderGridLayoutByRootLay:ae.reRenderGridLayoutByRootLay+1})),k(ae=>B(S({},ae),{unsaved:!0})),N.startTransition(()=>{const ae="Step cloned",Ne="clone_step",R={fldKey:`step-${qe}`,allLayouts:pe,nestedLayouts:Pe,fields:W("fields"),styles:W("styles")};K({event:ae,type:Ne,state:R})})},Te=({oldIndex:J,newIndex:G})=>{Array.isArray(e)&&(n(je=>uc(je,J,G)),J===t&&r(G),k(je=>B(S({},je),{unsaved:!0})))},Nt=J=>()=>{r(J),l({}),a(G=>B(S({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),g.length!==1&&!D&&u(`${b}/step-settings`,{replace:!0}),D&&u(`${b}/theme-customize/multi-step/quick-tweaks`,{replace:!0}),N.startTransition(()=>{const G=`Active step shifts to Step-${J+1}`,je="step_changed",at={fldKey:`step-${J+1}`,activeBuilderStep:J};K({event:G,type:je,state:at})})},Fe=J=>()=>{r(J),l({}),zn(),a(G=>B(S({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),u(`${b}/step-settings`,{replace:!0})},Ut=()=>{l({}),zn(),F(null),u(`${b}/multi-step-settings`,{replace:!0})};return o.jsxs("div",{className:z(Oe.wrp),children:[o.jsx("div",{ref:y,onScroll:I,children:o.jsx(lc,{useDragHandle:!0,axis:"x",onSortEnd:Te,children:o.jsx("div",{className:z(Oe.tabWrpr),children:g.map((J,G)=>o.jsx(cc,{index:G,itemId:`grid-${G*2}`,children:o.jsxs("div",{className:`btcd-s-tab-link ${z(Oe.stepTab)} ${t===G&&"active"} ${j?"multi-step":""}`,children:[j&&o.jsx(dc,{}),o.jsxs("span",{type:"button",className:z(Oe.stepTitle),onClick:Nt(G),onKeyDown:Nt(G),role:"button",tabIndex:0,children:[m("Step-"),G+1]}),j&&o.jsxs(yr,{children:[o.jsx("button",{className:`${z(Oe.ellipsBtn)} step-options-btn`,"aria-label":"Step Options",type:"button",children:o.jsx(Qh,{size:"20",rotateDeg:90})}),o.jsxs("ul",{className:z(Oe.optionWrap),children:[o.jsx("li",{className:z(Oe.option),children:o.jsxs("button",{type:"button",className:z(Oe.optionBtn),onClick:Fe(G),children:[o.jsx(_i,{size:18}),o.jsx("span",{children:m("Settings")})]})}),o.jsx("li",{className:z(Oe.option),children:o.jsxs("button",{type:"button",className:z(Oe.optionBtn),onClick:()=>on(G),children:[o.jsx(xl,{size:18}),o.jsx("span",{children:m("Clone Step")})]})}),o.jsx("li",{className:z(Oe.option),children:o.jsxs(yr,{width:250,children:[o.jsxs("button",{type:"button",className:z(Oe.optionBtn),children:[o.jsx(vn,{size:18}),o.jsx("span",{children:m("Delete Step")})]}),o.jsxs("div",{className:z(Oe.confirmModal),children:[o.jsx("div",{className:"mb-2 mt-1",children:o.jsx("b",{children:"Are you sure to delete the step?"})}),o.jsx("p",{className:z({fs:12,fw:400}),children:"Note: After delete this Step. you will lose all responses of included fields."}),o.jsxs("div",{className:"flx flx-c",children:[o.jsx("button",{onClick:()=>zn(),className:"tip-btn mr-2",type:"button",children:"Cancel"}),o.jsx("button",{onClick:()=>En(G),className:"tip-btn red-btn",type:"button",children:"Delete"})]})]})]})})]})]})]})},`grid-${G*2}`))})})}),o.jsxs("div",{className:z(Oe.addBtnWrp),children:[o.jsx(Ie,{msg:m("Add New Step"),children:o.jsxs("button",{onClick:mt,className:z([Oe.btnStyle,j?{}:{bd:"none"}]),type:"button",children:[o.jsx(Ar,{size:"12",className:z({tm:"rotate(45deg)"})}),!j&&o.jsx("span",{children:m("Add Steps")})]})}),j&&o.jsx(Ie,{msg:m("Multi step settings"),children:o.jsx("button",{onClick:Ut,className:z(Oe.btnStyle),type:"button",children:o.jsx(_i,{size:20})})})]})]})}const Oe={wrp:{dy:"flex",ai:"center",bb:"1px solid var(--bf-stroke-clr)"},addBtnWrp:{mnw:25,dy:"flex",flxp:"wrap",gp:5},btnStyle:{b:"none",brs:"var(--bf-bdr-radius-sm)",p:5,flxi:"center",bd:"var(--bf-bg-ghostwhite)",curp:1,tn:"transform 0.2s",gp:5,":hover":{bd:"var(--b-79-96)",cr:"var(--b-50)"},":active":{tm:"scale(0.95)"},ff:"var(--bf-font-family-base) !important",fs:12,fw:"var(--bf-font-semibold)",mnw:30,mnh:30},ellipsBtn:{bd:"transparent",cr:"var(--dp-blue)",pn:"relative",cur:"pointer",fs:20,b:"1px solid transparent",p:"0",w:22,h:22,brs:"var(--bf-bdr-radius-sm)",oe:"none","&:hover":{b:"1px solid var(--bf-secondary-400) !important"},"&:active":{b:"1px solid var(--bf-secondary-400) !important"},"&:focus":{b:"1px solid var(--bf-secondary-400) !important"}},tabWrpr:{dy:"flex",flxp:1},stepTab:{flxi:"center",mr:5,mt:0,cg:4,h:30,ws:"nowrap",fs:12,fw:500,b:"none",us:"none",p:"0 20px",cr:"var(--bf-text-clr-darkgray)","&.multi-step":{p:"0px 10px"},"&.active":{b:"1px solid var(--bf-stroke-clr)",bd:"var(--bf-bg-bluishwhite)",cr:"var(--bf-text-clr-tertiary)",fw:"var(--bf-font-semibold)"},":hover .step-options-btn":{b:"1px solid var(--bf-secondary-200)"}},stepTitle:{cur:"pointer",p:"8px 0px"},optionWrap:{m:0,w:125},option:{dy:"block",m:0},optionBtn:{m:0,brs:6,curp:1,tn:"background .3s",py:5,px:10,fw:500,b:"none",w:"100%",bd:"none",ta:"left",flx:"align-center",gp:5,":hover":{bd:"var(--white-0-95)"}},confirmModal:{m:0,p:0,w:200}};function b1({size:e=18,stroke:n=2}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 30 30",fill:"none",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:n,children:o.jsx("path",{d:"M25.79,18.59A11.18,11.18,0,1,1,10.68,4.33,11.2,11.2,0,0,0,25.79,18.59Z"})})}function h1({size:e}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",children:[o.jsx("path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6"}),o.jsx("path",{d:"m12 12l4 10l1.7-4.3L22 16Z"})]})})}function _1({size:e=18,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:n,children:[o.jsx("circle",{cx:"15",cy:"15",r:"4.22"}),o.jsx("line",{x1:"15",y1:"7.11",x2:"15",y2:"3.37"}),o.jsx("line",{x1:"20.58",y1:"9.42",x2:"23.23",y2:"6.77"}),o.jsx("line",{x1:"22.89",y1:"15",x2:"26.63",y2:"15"}),o.jsx("line",{x1:"20.58",y1:"20.58",x2:"23.23",y2:"23.23"}),o.jsx("line",{x1:"15",y1:"22.89",x2:"15",y2:"26.63"}),o.jsx("line",{x1:"9.42",y1:"20.58",x2:"6.77",y2:"23.23"}),o.jsx("line",{x1:"7.11",y1:"15",x2:"3.37",y2:"15"}),o.jsx("line",{x1:"9.42",y1:"9.42",x2:"6.77",y2:"6.77"})]})}function $1({className:e,size:n=20,stroke:t=1.5,syncState:r="disabled"}){const s=(()=>{switch(r){case"in-sync":return"#28a745";case"out-of-sync":return"#ffc107";case"syncing":return"#007bff";default:return"currentColor"}})(),a=r==="syncing";return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,children:[o.jsx("path",{d:"M3.5 16.5L6.94444 20.5L10.3889 16.5",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M6.94531 20.5V4.5",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 4.5H18.9998",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 8.5H16.4164",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.3887 12.5H13.8331",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsxs("g",{clipPath:"url(#clip0_1727_3682)",style:{transformOrigin:"17.5px 17.5px",animation:a?"spin-sync 1s linear infinite":"none"},children:[o.jsx("path",{d:"M21.1869 16.8102C21.0039 15.8326 20.4401 14.9677 19.6195 14.4059C18.7988 13.844 17.7886 13.6311 16.811 13.8141C15.7813 14.0108 14.8674 14.598 14.2606 15.4529L13.5083 16.5517",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.125 14.5039L13.5083 16.5517L15.556 16.1684",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M13.8145 18.1899C13.9974 19.1675 14.5612 20.0324 15.3819 20.5943C16.2025 21.1562 17.2127 21.3691 18.1903 21.1861C19.22 20.9894 20.1339 20.4022 20.7407 19.5473L21.4931 18.4485",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.4453 18.832L21.4931 18.4488L21.8763 20.4966",stroke:s,strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round"})]}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_1727_3682",children:o.jsx("rect",{width:"10",height:"10",fill:"white",transform:"translate(11.666 13.5054) rotate(-10.6005)"})})}),a&&o.jsx("style",{children:`
7 @keyframes spin-sync {
8 from { transform: rotate(0deg); }
9 to { transform: rotate(360deg); }
10 }
11 `})]})}function m1(){const{css:e}=re(),[n,t]=q(Rs),[r,i]=q(Ai),s=ce(nt),[a,l]=q(Sl),[d,f]=q(Kn),u=ie(zi),c=ie(Oi),p=ie(Ls),h=()=>{const $=!n.respectLGLayoutOrder;t(y=>B(S({},y),{respectLGLayoutOrder:$})),$?N.startTransition(()=>{try{if((!a.lg||a.lg.length===0)&&(a.md&&a.md.length>0||a.sm&&a.sm.length>0)){c({show:!0,msg:"Cannot sync: Desktop layout is empty"});return}const y=go("lg",a.lg,a,!0,xo);l(y),u("in-sync");const I=P(d,g=>{Object.keys(g).forEach(b=>{const j=g[b];if(j&&j.lg&&j.lg.length>0)try{const E=go("lg",j.lg,j,!0,xo);g[b]=E}catch(E){}})});f(I),K({event:"Enabled layout sync with Desktop order",type:"toggle_respect_order",state:{breakpoint:s,respectLGLayoutOrder:!0,allLayouts:y,nestedLayouts:I}})}catch(y){c({show:!0,msg:"Failed to enable layout sync"})}}):(sessionStorage.removeItem("btcd-hide-sync-warning"),u("disabled"))},x=({target:{name:$,value:y}})=>{const I=P(r,T=>{T[$]=Number(y)});i(I),p(T=>B(S({},T),{unsaved:!0}))};return o.jsxs("div",{className:e(Je.wraper),children:[o.jsxs("h4",{className:e(Je.title),children:["Breakpoint Sizes",!xe&&o.jsx(pi,{proProperty:"breakPoint"})]}),o.jsx("div",{className:e(Je.divider)}),o.jsxs("div",{className:"pos-rel",children:[!xe&&o.jsx(pc,{hideText:!0,proProperty:"breakPoint"}),o.jsxs("div",{className:e(v.flxc,Je.inputWrp),children:[o.jsx("span",{className:e(Je.icon_wrp),children:o.jsx(Ys,{size:"26"})}),o.jsx("input",{title:"Large device breakpoint size","aria-label":"Large device breakpoint size",name:"lg",onChange:x,value:r.lg,className:e(Je.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,Je.inputWrp),children:[o.jsx("span",{className:e(Je.icon_wrp),children:o.jsx(Zs,{size:"24"})}),o.jsx("input",{title:"Medium device breakpoint size","aria-label":"Medium device breakpoint size",name:"md",onChange:x,value:r.md,className:e(Je.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,Je.inputWrp),children:[o.jsx("span",{className:e(Je.icon_wrp),children:o.jsx(Xs,{size:"25"})}),o.jsx("input",{title:"Mobile device breakpoint size","aria-label":"Mobile device breakpoint size",name:"sm",onChange:x,value:r.sm,className:e(Je.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsx("div",{className:e(Je.divider)}),o.jsxs("div",{className:e(v.flxcb,v.mt2,v.mb1),children:[o.jsxs("div",{className:e(v.flxi,v.w8),children:[o.jsx("span",{className:e(v.fw500,v.fs12),children:m("Sync Field Order Across Breakpoints")}),o.jsx(Li,{icnSize:"15",children:o.jsx("span",{className:e([v.tipBody,v.mr2]),children:m("When enabled, all layouts will automatically sync with and follow the active breakpoint’s field order.")})})]}),o.jsx(wr,{isChecked:n.respectLGLayoutOrder,action:h})]})]})]})}const Je={wraper:{w:180},title:{my:5,fw:600,fs:14},divider:{mt:8,mb:3,bb:"1px solid var(--white-0-78)"},input:{w:70,b:"1px solid transparent !important",brs:"8px !important",fw:500,":hover:not(:focus)":{b:"1px solid gray !important"},":focus":{b:"1px solid var(--b-50) !important"}},inputWrp:{mx:5,my:4},icon_wrp:{w:30,flx:"center"}},g1=[30,50,70,100,120,140,160,180,200,220];function x1(){const{css:e}=re(),n=(t,r)=>Math.round(Math.random()*(r-t)+t);return o.jsxs("div",{className:e(br.wrp),children:[o.jsx("div",{className:`${e(br.src)} loader`}),o.jsx("div",{className:`${e(br.t_wrp)} flx`,children:Array(40).fill(0).map((t,r)=>o.jsx("div",{className:`${e(br.img,{w:g1[n(1,10)]})} loader`},`cdl-${r+2}`))})]})}const br={wrp:{mx:10,my:10},src:{w:250,mx:"auto",h:32,brs:8},t_wrp:{bd:"var(--white-0-97)",mt:15,flxc:1,flxp:1,p:10,brs:8},img:{h:13,m:5,brs:8}},$s={default:{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9"},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"#495057 !important",bd:"#ffffff !important"}},primary:{tabs:{bd:"var(--bf-primary)"},selector:{bd:"var(--bf-primary)",bs:"0 2px 3px -1px rgba(var(--bf-primary-rgb), 0.3)"},tabLink:{cr:"hsl(0, 0%, 70%)",":hover:not(.active)":{cr:"hsl(0, 0%, 90%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},warning:{tabs:{bd:"hsl(42, 100%, 50%)"},selector:{bd:"hsl(42, 100%, 60%)",bs:"0 2px 3px -1px hsla(42, 100%, 50%, 0.3)"},tabLink:{cr:"hsl(42, 100%, 30%)",":hover:not(.active)":{cr:"hsl(42, 100%, 20%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},secondary:{tabs:{bd:"hsl(208, 7%, 46%)"},selector:{bd:"hsl(208, 7%, 56%)",bs:"0 2px 3px -1px hsla(208, 7%, 46%, 0.3)"},tabLink:{cr:"hsl(208, 7%, 30%)",":hover:not(.active)":{cr:"hsl(208, 7%, 20%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},tertiary:{tabs:{bd:"var(--bf-bg-tertiary)"},selector:{bd:"var(--bf-bg-tertiary-hover)",bs:"0 2px 3px -1px rgba(0, 0, 0, 0.1)"},tabLink:{cr:"var(--bf-text-clr-gray)",":hover:not(.active)":{cr:"var(--bf-text-clr-offwhite)"}},active:{cr:"var(--bf-text-clr-offwhite) !important"}},clean:{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9",py:0,px:0},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"#495057 !important",bd:"#ffffff !important"}},"clean-tertiary":{tabs:{bd:"#ffffff",b:"1px solid #e1e5e9",py:2,px:2},selector:{bd:"#f8f9fa",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{tdy:"0s",cr:"#6c757d",":hover:not(.active)":{cr:"#495057",bd:"#f8f9fa"}},active:{cr:"var(--bf-text-clr-white) !important",bd:"var(--bf-bg-tertiary) !important"}},"clean-tertiary-bottom-outline":{tabs:{bd:"var(--bf-bg-offwhite)",b:"1px solid #e1e5e9",py:0,px:0},selector:{bd:"var(--bf-bg-white)",bs:"0 1px 3px rgba(0, 0, 0, 0.1)",b:"1px solid #dee2e6"},tabLink:{cr:"#6c757d",b:"1px solid var(--bf-bdr-clr-tertiary)",":hover:not(.active)":{cr:"#495057",bd:"var(--bf-bg-lightgray)"}},active:{cr:"#495057 !important",bd:"var(--bf-bg-white) !important",bb:"2px solid var(--bf-bdr-clr-tertiary) !important",brs:"0px !important",fw:"var(--bf-font-bold)"}},success:{tabs:{bd:"hsla(160, 100%, 49%, 100%)"},selector:{bd:"hsla(160, 100%, 59%, 100%)",bs:"0 2px 3px -1px hsla(160, 100%, 49%, 0.3)"},tabLink:{cr:"hsla(160, 100%, 30%, 100%)",":hover:not(.active)":{cr:"hsla(160, 100%, 20%, 100%)"}},active:{cr:"hsla(215, 63%, 18%, 67%) !important"}},danger:{tabs:{bd:"hsl(0, 100%, 64%)"},selector:{bd:"hsl(0, 100%, 74%)",bs:"0 2px 3px -1px hsla(0, 100%, 64%, 0.3)"},tabLink:{cr:"hsl(0, 100%, 40%)",":hover:not(.active)":{cr:"hsl(0, 100%, 30%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"primary-outline":{tabs:{bd:"transparent",b:"1px solid var(--bf-primary)"},selector:{bd:"var(--bf-primary)",bs:"0 2px 3px -1px rgba(var(--bf-primary-rgb), 0.2)"},tabLink:{cr:"var(--bf-primary)",":hover:not(.active)":{cr:"var(--bf-primary-hover)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"secondary-outline":{tabs:{bd:"transparent",b:"1px solid hsl(208, 7%, 46%)"},selector:{bd:"hsl(208, 7%, 46%)",bs:"0 2px 3px -1px hsla(208, 7%, 46%, 0.2)"},tabLink:{cr:"hsl(208, 7%, 46%)",":hover:not(.active)":{cr:"hsl(208, 7%, 36%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"tertiary-outline":{tabs:{bd:"transparent",b:"1px solid var(--bf-bdr-clr-tertiary)"},selector:{bd:"var(--bf-bg-tertiary)",bs:"0 2px 3px -1px rgba(0, 0, 0, 0.1)"},tabLink:{cr:"var(--bf-text-clr-gray)",":hover:not(.active)":{cr:"var(--bf-text-clr-offwhite)"}},active:{cr:"hsl(0, 0%, 100%) !important"}},"success-outline":{tabs:{bd:"transparent",b:"1px solid hsla(160, 100%, 49%, 100%)"},selector:{bd:"hsla(160, 100%, 49%, 100%)",bs:"0 2px 3px -1px hsla(160, 100%, 49%, 0.2)"},tabLink:{cr:"hsla(160, 100%, 49%, 100%)",":hover:not(.active)":{cr:"hsla(160, 100%, 39%, 100%)"}},active:{cr:"hsla(215, 63%, 18%, 67%) !important"}},"danger-outline":{tabs:{bd:"transparent",b:"1px solid hsl(0, 100%, 50%)"},selector:{bd:"hsl(0, 100%, 50%)",bs:"0 2px 3px -1px hsla(0, 100%, 50%, 0.2)"},tabLink:{cr:"hsl(0, 100%, 50%)",":hover:not(.active)":{cr:"hsl(0, 100%, 40%)"}},active:{cr:"hsl(0, 0%, 100%) !important"}}};function Ka({defaultActive:e,className:n="",options:t,size:r=100,onChange:i,show:s,width:a,tipPlace:l="top",borderRadius:d="var(--bf-bdr-radius-sm)",activeShow:f,noShadow:u,defaultItmWidth:c,wideTab:p,h,variant:x="default"}){var H;const{css:$}=re(),y=Number(r),I=C=>Math.floor(y/C),T=$s[x]||$s.default,w={wrapper:S({ta:"center"},a&&{w:a}),tabs:S({fs:13,flx:"center",py:1.5,px:3,ls:"none",brs:d,pn:"relative","& .active":T.active,"& button":{bd:"none",oe:"none",b:"none"}},T.tabs),selector:S({w:0,h:"80%",dy:"inline-block",pn:"absolute",lt:5,tp:"50%",tm:"translatey(-50%)",zx:1,brs:d-2,tdn:"0.3s",ttf:"cubic-bezier(0.42, 0.44, 0.57, 1.35)",willChange:"transform"},T.selector),tab_link:B(S({curp:1,td:"none",fw:500,pn:"relative",p:0,zx:1,mnh:24,w:p?"100%":24,h:p?30:24,brs:d,flx:"center",tdy:"0.3s",tdn:"0.6s","transition-property":"color"},T.tabLink),{":focus-visible":{oe:"2px solid var(--b-50)"},"& .icn":{mr:s!=null&&s.includes("label")?I(20):0,lh:"75%",flx:"center"}})},_=N.useRef(null),g=N.useRef({}),b=N.useRef(null),[j,E]=N.useState(e||((H=t[0])==null?void 0:H.label)||"");N.useEffect(()=>{j!==e&&e&&E(e)},[e]),N.useLayoutEffect(()=>{var M;const C=(M=b==null?void 0:b.current)==null?void 0:M.querySelector(`[data-label="${j}"]`);if(C){const{width:k}=C.getBoundingClientRect()||{width:0};if(!_.current)return;_.current.style.width===""?(g.current.transition=_.current.style.transition,_.current.style.transition="all 0s"):_.current.style.transition=g.current.transition||"",_.current.style.width=`${k}px`,_.current.style.transform=`translate(${C.offsetLeft-5}px, -50%)`}else _.current&&(_.current.style.width="0px",_.current.style.transform="translate(0px, -50%)")});const O=(C,M)=>{var D;if(C.preventDefault(),C.type==="keydown"){const z=C;if(z.code!=="Space"&&z.code!=="Enter")return}const k=C.currentTarget;if(C.type!=="keydown"&&C.type!=="click")return;const F=(D=b.current)==null?void 0:D.querySelector(".tabs button.active");k!==F&&(F==null||F.classList.remove("active"),E(t[M].label)),i&&i(t[M].label)},L=(C,M)=>!!(C[M]&&(f&&j===C.label&&f.includes(M)||s&&s.includes(M)||!s&&!f));return o.jsx("div",{className:`${$(w.wrapper)} ${n}`,children:o.jsxs("div",{ref:b,className:`${$(w.tabs)} tabs`,style:{height:h},children:[o.jsx("div",{ref:_,className:`selector ${$(w.selector)}`,style:{width:c}}),t==null?void 0:t.map((C,M)=>{const k=o.jsxs("button",{type:"button",className:`${$(w.tab_link)} ${j===C.label?" active":""}`,onClick:F=>O(F,M),onKeyDown:F=>O(F,M),"data-label":C.label,"data-testid":`${bi(C.label)}-tab`,children:[L(C,"icn")&&o.jsx("span",{className:`icn ${$(w.icn)} ${j===C.label?$(w.segment_img):""}`,children:C.icn}),L(C,"label")&&m(C.label)]},`segment-option-${M*10}`);return C.tip?o.jsx(Ie,{className:`${$({w:"100%",dy:"inline-block"})} segment-tip`,msg:C.tip,place:l,whiteSpaceNowrap:!0,theme:"light-border",delay:300,children:k},`segment-option-${M*100}`):k})]})})}const v1=$t(()=>Ke(()=>import("./bf-79-166.js"),__vite__mapDeps([36,1,2,37,8,4,5,9,10,11,12,13,38,24,19,18]),import.meta.url),{fallback:o.jsx(x1,{})});function y1(){var L;const{css:e}=re(),{"*":n}=me(),t=(L=n.split("/"))==null?void 0:L[0],{darkModeConfig:r}=ce(Fs),[i,s]=q(Or),a=ce(nt),l=ce(di),d=ie(di),[f,u]=N.useState(!1),[c,p]=N.useState(!1),[h,x]=N.useState("Builder Settings"),[$,y]=N.useState("fld-settings"),[I,T]=N.useState("Fields"),_=ce(Rs).respectLGLayoutOrder,g=ie(nt),b=ce(zi);N.useEffect(()=>{t.match(/fields-list|field-settings/)&&((i.styleMode||i.inspectMode)&&s(H=>B(S({},H),{styleMode:!1,inspectMode:!1})),y("fld-settings"),T("Fields")),t.match(/themes|style|field-theme-customize|theme-customize/)&&(i.styleMode||s(H=>B(S({},H),{styleMode:!0})),y("theme-customize"),T("Style"))},[t]);const j=()=>{s(H=>B(S({},H),{inspectMode:!H.inspectMode}))},E=()=>{d(H=>H==="light"?"dark":"light")},O=H=>{g(H),K(X("","","Breakpoint",H,{breakpoint:H}))};return o.jsxs("div",{className:e(fe.optionToolBar),children:[o.jsxs("div",{className:e(fe.form_section),children:[o.jsx("div",{className:e(v.flxc),children:o.jsxs(ac,{children:[o.jsx(kb,{}),o.jsx("div",{className:e(fe.border_right)}),i.styleMode&&o.jsx(Ie,{msg:o.jsxs("div",{className:e(fe.inspectTooltipContainer),children:[o.jsx("div",{className:e(fe.inspectTooltipTitle),children:"Inspect Element"}),o.jsx("div",{className:e(fe.inspectTooltipText),children:"Hover + Click to select common elements"}),o.jsxs("div",{className:e(fe.inspectTooltipText),children:["Hold"," ",o.jsx("kbd",{className:e(fe.inspectTooltipKbd),children:"Ctrl"})," ","(",o.jsx("kbd",{className:e(fe.inspectTooltipKbd),children:"⌘"})," ","on Mac) to select individual element"]})]}),hideOnClick:!0,visible:i.styleMode?void 0:!1,children:o.jsxs("button",{"data-testid":"inspect-element",onClick:j,type:"button",className:`${e([fe.icn_btn,v.icn_hover,fe.inspectBtn])} ${i.inspectMode?"active":""}`,children:[o.jsx(h1,{size:"20"}),"Inspect"]})},"inspect-mode-tip")]})}),o.jsxs("div",{className:e(fe.option_section),children:[o.jsx(Ka,{width:130,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:a,onChange:O,className:e(v.mr1),variant:"clean-tertiary",options:[{icn:o.jsx("span",{className:e(fe.respIcnWrp),children:o.jsx(Xs,{size:23})}),label:"sm",tip:"Small Screen View"},{icn:o.jsx("span",{className:e(fe.respIcnWrp),children:o.jsx(Zs,{size:22})}),label:"md",tip:"Medium Screen View"},{icn:o.jsx("span",{className:e(fe.respIcnWrp),children:o.jsx(Ys,{size:29,stroke:1.6})}),label:"lg",tip:"Large Screen View"}]}),o.jsxs(yr,{place:"bottom-end",onShow:()=>u(!0),onHide:()=>u(!1),children:[o.jsx("button",{className:`${e([fe.icn_btn,v.icn_hover])} ${f?"active":""}`,type:"button",title:_?b==="in-sync"?m("Layouts are in sync"):m("Layouts will sync on breakpoint switch or form update."):m("Layout sync settings"),children:o.jsx($1,{size:24,stroke:1.5,syncState:_?b:"disabled"})}),o.jsx(m1,{})]}),o.jsx("div",{className:e(fe.border_right)})]}),o.jsxs("div",{className:e(fe.option_section),children:[!((r==null?void 0:r.darkModeSelector)===""&&!(r!=null&&r.preferSystemColorScheme))&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:e(fe.border_right)}),o.jsx(et,{width:90,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:l,onChange:E,options:[{icn:o.jsx(_1,{size:"19"}),label:"light",tip:"Light Mode"},{icn:o.jsx(b1,{size:"19"}),label:"dark",tip:"Dark Mode"}]})]}),o.jsx("div",{className:e(fe.border_right)}),o.jsx(Ie,{msg:"Builder Settings",children:o.jsx("button",{"data-testid":"custom-css-js",className:`${e([fe.icn_btn,v.icn_hover])}`,onClick:()=>p(!0),type:"button",children:o.jsx(_i,{size:22})})})]})]}),o.jsxs(Ps,{md:!0,autoHeight:!0,show:c,setModal:p,className:"o-v",title:o.jsx("div",{className:e(fe.modalTitleBar),children:o.jsx(et,{width:300,wideTab:!0,tipPlace:"bottom",defaultActive:h,onChange:x,options:[{label:"Builder Settings"},{label:"Custom Code"}]})}),closeOnOutsideClick:!1,children:[o.jsx(Qe,{open:h==="Builder Settings",children:o.jsx(rc,{})}),o.jsx(Qe,{open:h==="Custom Code",children:o.jsx(v1,{})})]})]})}var w1=".tippy-box[data-animation=shift-away-extreme][data-state=hidden]{opacity:0}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=top]{transform:translateY(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=bottom]{transform:translateY(-20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=left]{transform:translate(20px)}.tippy-box[data-animation=shift-away-extreme][data-state=hidden][data-placement^=right]{transform:translate(-20px)}",S1=".tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}",j1='.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',C1='.tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,8,16,.15);color:#333;box-shadow:0 4px 14px -2px #00081014}.tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light-border]>.tippy-arrow:after,.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:#00081033;border-width:7px 7px 0;top:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:#00081033;border-width:0 7px 7px;bottom:17px;left:1px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:#00081033;border-width:7px 0 7px 7px;left:17px;top:1px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:#00081033}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}';function I1(){const e={div([r]){return r}};N.useEffect(()=>{var s,a;const r=vr("#bf-font-0-css"),i=vr("#bf-font-1-css");r&&i&&((a=(s=document.getElementById("bit-grid-layout"))==null?void 0:s.contentWindow)==null||a.document.head.appendChild(document.importNode(r)).appendChild(document.importNode(i)))},[]);const n=e.div`
12 :root {
13 --b-50: #006aff;
14 --g-41: #00faa7;
15 --white-base: 0;
16 --white-100: hsla(var(--white-base), 0%, 100%, 100%); /* #FFFFFF White*/
17 --white-0-95: hsla(var(--white-base), 0%, 95%, 100%); /* #F2F2F2 White 95% */
18 --white-0-90: hsla(var(--white-base), 0%, 90%, 100%); /* #E6E6E6 White 90% */
19 --white-0-80: hsla(var(--white-base), 0%, 80%, 100%); /* #CCCCCC Light Gray */
20 --white-0-0-12: hsla(var(--white-base), 0%, 0%, 12%); /* #000000 Black 12% */
21 --white-0-0-8: hsla(var(--white-base), 0%, 0%, 8%); /* #000000 Black 8% */
22 --white-0-93: hsla(var(--white-base), 0%, 93%, 100%); /* #EEEEEE Light Gray */
23 --black-0: hsla(var(--white-base), 0%, 0%, 100%); /* #000000 Black */
24 --red-83-54: hsla(var(--white-base), 83%, 54%, 100%); /* #E02424 Red 83% */
25 --red-100-49: hsla(var(--white-base), 100%, 49%, 100%); /* #FF0000 Red 100% */
26
27 --bf-font-family-base: 'DM Sans', sans-serif;
28
29 --bf-stroke-clr: #D9E3EB;
30 --bf-primary-500: #3B82F6;
31 --bf-tertiary-600: #3B486B;
32 --bf-tertiary-700: #2C3656;
33 --bf-tertiary-800: #1E253F;
34
35 --bf-text-clr-darkgray: #56585d;
36
37 --bf-clr-ghostwhite: #e6e6e6;
38 --bf-clr-lightgray: #f0f0f0;
39 --bf-clr-gray: #888888;
40
41 --bf-bg-bluishwhite: #f5f8ff;
42
43 --bf-bdr-radius-sm: 4px;
44 --bf-bdr-radius-md: 6px;
45 }
46
47 body {
48 margin: 0;
49 padding: 0;
50 box-sizing: border-box;
51 font-family: sans-serif;
52 }
53 body *{
54 box-sizing: border-box !important;
55 }
56
57 .custom-conf-mdl {
58 display: block !important;
59 text-align: left;
60 }
61
62 .tippy-box[data-theme~=light-border] {
63 box-shadow: 0 3px 6px -1px #00000026, 0 4px 35px -12px rgb(0 8 16 / 32%) !important;
64 }
65
66 .tippy-box {
67 border-radius: .8em !important;
68 }
69
70 .tippy-backdrop {
71 background: var(--dp-blue-bg) !important;
72 }
73 .isDragging {
74 box-shadow: inset 0 0 4px 1px var(--b-50);
75 }
76 .isDragging .layout{
77 min-height: calc(100vh - 40px);
78 }
79
80 .builder_dark_mode {
81 background: var(--black-0) !important;
82 }
83
84 .layout {
85 overflow: visible;
86 }
87
88 .loader{
89 background: rgb(255, 255, 255);
90 background-image: linear-gradient(90deg, #e9e9e9 0px, #f7f7f7 30px, #ebebeb 60px);
91 background-size: 200%;
92 animation: skeleton .6s infinite ease-out;
93 }
94
95 .empty-layout-msg {
96 padding: 10px;
97 text-align: center;
98 }
99
100 .empty-layout-add-btn {
101 display:inline-flex !important;
102 transform: none !important;
103 opacity: 1 !important;
104 visibility: visible !important;
105 margin-top: 5px;
106 }
107
108 @keyframes skeleton {
109 0% {
110 background-position: calc(100%);
111 }
112 60%, 100% {
113 background-position: -100%;
114 }
115 }
116
117 @keyframes slideUp {
118 from {
119 transform: translateY(100%);
120 opacity: 0;
121 }
122 to {
123 transform: translateY(0);
124 opacity: 1;
125 }
126 }
127
128 @keyframes slideDown {
129 from {
130 transform: translateY(0);
131 opacity: 1;
132 }
133 to {
134 transform: translateY(100%);
135 opacity: 0;
136 }
137 }
138
139 /* Sync warning banner */
140 .sync-warning-banner {
141 position: fixed;
142 bottom: 0;
143 left: 0;
144 right: 0;
145 background-color: #FFF3CD;
146 border: 1px solid #FFE69C;
147 border-top: 2px solid #FFE69C;
148 padding: 12px 16px;
149 display: flex;
150 align-items: center;
151 justify-content: space-between;
152 z-index: 9999;
153 font-size: 13px;
154 color: #856404;
155 box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
156 animation: slideUp 0.3s ease-out;
157 }
158
159 .sync-warning-banner__message {
160 display: flex;
161 align-items: center;
162 gap: 8px;
163 }
164
165 .sync-warning-banner__icon {
166 font-size: 18px;
167 }
168
169 .sync-warning-banner__close {
170 background: none;
171 border: none;
172 font-size: 24px;
173 cursor: pointer;
174 padding: 0 8px;
175 color: #856404;
176 line-height: 1;
177 font-weight: bold;
178 }
179
180 .sync-warning-banner__close:hover {
181 opacity: 0.8;
182 }
183
184 .sync-warning-banner__close:focus-visible {
185 outline: 2px solid #856404;
186 outline-offset: 2px;
187 border-radius: 4px;
188 }
189
190 .itm-focus {
191 // outline: 3px solid var(--b-50);
192 // outline: 2px solid var(--bf-tertiary-600);
193 outline: 1px dashed var(--bf-stroke-clr);
194 background-color: var(--bf-bg-bluishwhite);
195 z-index: 9
196 }
197
198 .blk {
199 border-radius: var(--bf-bdr-radius-sm);
200 }
201
202 .blk:focus:not(.itm-focus) {
203 z-index: 9;
204 // outline: 3px solid var(--g-41)
205 }
206
207 .blk:hover:not(.itm-focus) {
208 z-index: 999;
209 }
210
211 .blk:focus > .blk-icn-wrp,.blk:hover > .blk-icn-wrp {
212 visibility: visible;
213 }
214
215 .blk:focus > .blk-icn-wrp,.itm-focus > .blk-icn-wrp {
216 top: -25px;
217 right: 0px;
218 }
219
220 .blk:not(.itm-focus):hover:not(:focus) > .blk-icn-wrp {
221 top: -24px;
222 right: 0px;
223 }
224
225 .blk:focus > .blk-icn-wrp button,.blk:focus > .react-resizable-handle,.blk:hover > .blk-icn-wrp button,.blk:hover > .react-resizable-handle,.itm-focus > .blk-icn-wrp button,.itm-focus > .react-resizable-handle {
226 transform: scale(1)
227 }
228
229 .tip-btn {
230 display:inline-flex;
231 justify-content: center;
232 align-items: center;
233 // font-family: "Outfit", sans-serif;
234 font-family: var(--bf-font-family-base);
235 border: 0;
236 padding: 6px 15px;
237 font-weight: 600;
238 border-radius: 12px;
239 cursor: pointer;
240 background: var(--white-0-93);
241 border: 1px solid var(--white-0-86)
242 }
243
244 .tip-btn:hover {
245 background: var(--white-0-0-12)
246 }
247
248 .red-btn {
249 background: var(--red-100-49);
250 color: var(--white-100);
251 border: 1px solid var(--crimson);
252 text-shadow: 0 .5px 1px #101010b5
253 }
254
255 .red-btn:hover {
256 background: var(--red-83-54)
257 }
258
259 .resize-txt {
260 position: absolute;
261 top: -25px;
262 font-size: 12px;
263 padding: 3px 6px;
264 background-color: #a5a5afbd;
265 border-radius: 10px;
266 z-index: 1;
267 }
268
269 .blk-icn-wrp {
270 background-color: var(--bf-tertiary-600);
271 color: white;
272 right: 0;
273 top: -24px;
274 visibility: hidden;
275 border-top-left-radius: var(--bf-bdr-radius-sm);
276 border-top-right-radius: var(--bf-bdr-radius-sm);
277 }
278
279 .blk-wrp-btn {
280 background: none;
281 color: var(--white-100);
282 cursor: pointer;
283 outline: 0;
284 width: 25px;
285 height: 25px;
286 border-radius: 7px;
287 border: 0;
288 display: flex;
289 align-items: center;
290 justify-content: center;
291 filter: drop-shadow(0px 1px .7px #00000032);
292 transition: background .2s ease-in-out;
293 }
294
295 .blk-wrp-btn:hover {
296 background: hsl(215deg 100% 40%);
297 }
298
299 .blk-wrp-btn:focus-visible {
300 box-shadow: 0 0 0 2px var(--b-50) inset
301 }
302
303 .blk-wrp-add-btn {
304
305 bottom: -10px;
306 left: 50%;
307 cursor: pointer;
308 background: var(--white-100);
309 color: var(--bf-text-clr-darkgray);
310 padding: 5px 10px;
311 font-size: 13px;
312 font-weight: 500;
313 border-radius: var(--bf-bdr-radius-sm);
314 border: 1px solid var(--bf-stroke-clr);
315 display: flex;
316 flex-direction: row;
317 align-items: center;
318 transform: translateX(-50%);
319 opacity: 0;
320 visibility: hidden;
321 transition: all .3s ease-in-out;
322 filter: drop-shadow(0px 1px .7px #00000032);
323 }
324 .blk-wrp-add-btn:hover {
325 background: var(--bf-tertiary-600);
326 font-weight: 500;
327 color: var(--white-100);
328 border-color: var(--bf-tertiary-600);
329 }
330
331 .blk-wrp-add-btn:active {
332 background: var(--bf-tertiary-800);
333 }
334 .blk:hover > .blk-wrp-add-btn, .blk.add-field-picker-opened > .blk-wrp-add-btn {
335 visibility: visible;
336 opacity: 1;
337 }
338
339 .blk.add-field-picker-opened > .blk-wrp-add-btn {
340 background: var(--bf-tertiary-600);
341 border-color: var(--bf-tertiary-600);
342 color: var(--white-100);
343 }
344
345 /* FieldPickerModal.css */
346
347 /* Container */
348 .field-picker-modal {
349 width: 100%;
350 height: 100%;
351 display: flex;
352 flex-direction: column;
353 padding: 0px 10px;
354 container-type: inline-size;
355 padding: 15px;
356 }
357
358
359 /* Search Section */
360 .fpm__search-section {
361 flex-shrink: 0;
362 }
363
364 .field-picker-modal__search-container {
365 position: relative;
366 width: 100%;
367 }
368
369 .field-picker-modal__search-input {
370 width: 100%;
371 padding: 12px 40px;
372 font-size: 14px;
373 border: 1px solid var(--bf-stroke-clr);
374 border-radius: var(--bf-bdr-radius-sm);
375 outline: none;
376 transition: border-color 0.2s ease;
377 }
378
379 .field-picker-modal__search-input:focus {
380 box-shadow: 0 0 0 2px var(--bf-tertiary-600);
381 }
382
383 .field-picker-modal__search-input::-webkit-input-placeholder {
384 color: #9ca3af;
385 }
386
387 .field-picker-modal__search-input::-moz-placeholder {
388 color: #9ca3af;
389 }
390
391 .field-picker-modal__search-input::placeholder {
392 color: #9ca3af;
393 }
394
395 .field-picker-modal__search-icon {
396 position: absolute;
397 left: 12px;
398 top: 50%;
399 transform: translateY(-50%);
400 color: #6b7280;
401 pointer-events: none;
402 }
403
404 .field-picker-modal__clear-button {
405 position: absolute;
406 right: 12px;
407 top: 50%;
408 transform: translateY(-50%);
409 background: transparent;
410 border: none;
411 color: #6b7280;
412 cursor: pointer;
413 font-size: 20px;
414 line-height: 1;
415 }
416
417 .field-picker-modal__clear-button:hover {
418 color: #374151;
419 }
420
421 .field-picker-modal__shortcut {
422 position: absolute;
423 right: 12px;
424 top: 50%;
425 transform: translateY(-50%);
426 font-size: 11px;
427 color: #9ca3af;
428 background: #f3f4f6;
429 padding: 2px 6px;
430 border-radius: 4px;
431 pointer-events: none;
432 }
433
434 /* Content */
435 .fpm__content {
436 flex-grow: 1;
437 padding-top: 15px;
438
439 }
440
441
442 /* Field Tabs Styles */
443 .field-tabs {
444 width: 100%;
445 }
446
447 .field-tabs__content {
448 height: 260px;
449 overflow: auto;
450 }
451
452 .field-tabs__grid {
453 padding-top: 5px;
454 display: grid;
455 grid-template-columns: repeat(2, 1fr);
456 gap: 10px;
457 }
458
459 @container (max-width: 290px) {
460 .field-tabs__grid {
461 grid-template-columns: 1fr;
462 }
463 }
464
465 .field-tabs__item {
466 display: flex;
467 height: 42px;
468 align-items: center;
469 padding: 8px 10px;
470 border-radius: 4px;
471 background: #ffffff;
472 border: 1px solid #e2e8f0;
473 cursor: pointer;
474 transition: all 0.2s ease;
475 max-width: 230px;
476 }
477
478 .field-tabs__item:hover {
479 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
480 transform: translateY(-1px);
481 border: 1px solid #cbd5e1;
482 color: #060606;
483 font-weight: 500;
484 }
485
486 .field-tabs__item:active {
487 transform: translateY(0);
488 }
489
490 .field-tabs__icon {
491 color: var(--bf-text-clr-darkgray);
492 margin-right: 12px;
493 flex-shrink: 0;
494 display: flex;
495 align-items: center;
496 }
497
498 .field-tabs__info {
499 display: flex;
500 flex-direction: column;
501 flex-grow: 1;
502 min-width: 0;
503 }
504
505 .field-tabs__name {
506 font-size: 14px;
507 color: var(--bf-text-clr-darkgray);
508 margin: 0;
509 overflow: hidden;
510 text-overflow: ellipsis;
511 white-space: nowrap;
512 }
513
514
515 .field-tabs__badges {
516 display: flex;
517 align-items: center;
518 gap: 6px;
519 // margin-left: 8px;
520 }
521
522 .field-tabs__empty-state {
523 text-align: center;
524 padding: 40px;
525 color: #6b7280;
526 }
527
528 /* Search Results Styles */
529 .search-results {
530 width: 100%;
531 }
532
533 .search-results__header {
534 // margin-bottom: 16px;
535 // padding-bottom: 12px;
536 // border-bottom: 1px solid #e5e7eb;
537 }
538
539
540 .search-results__subtitle {
541 font-size: 14px;
542 color: #6b7280;
543 margin-top: 4px;
544 margin-bottom: 5;
545 }
546
547 .search-results__grid {
548 display: grid;
549 grid-template-columns: repeat(2, 1fr);
550 gap: 12px;
551 max-height: 300px;
552 overflow: auto;
553 padding-top: 5px;
554 }
555
556 @container (max-width: 290px) {
557 .search-results__grid {
558 grid-template-columns: 1fr;
559 }
560 }
561
562 @container (width > 500px) {
563 .search-results__grid {
564 grid-template-columns: repeat(3, 1fr);
565 }
566 }
567
568 .search-results__item {
569 display: flex;
570 align-items: center;
571 padding: 6px 10px;
572 border-radius: 8px;
573 background: #ffffff;
574 border: 1px solid #e2e8f0;
575 cursor: pointer;
576 transition: all 0.2s ease;
577 }
578
579 .search-results__item:hover {
580 box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
581 transform: translateY(-1px);
582 border: 1px solid #cbd5e1;
583 }
584
585 .search-results__item:active {
586 transform: translateY(0);
587 }
588
589 .search-results__icon {
590 margin-right: 12px;
591 flex-shrink: 0;
592 display: flex;
593 align-items: center;
594 }
595
596 .search-results__info {
597 display: flex;
598 flex-direction: column;
599 flex-grow: 1;
600 min-width: 0;
601 }
602
603 .search-results__name {
604 font-size: 14px;
605 font-weight: 500;
606 color: #1f2937;
607 margin: 0;
608 overflow: hidden;
609 text-overflow: ellipsis;
610 white-space: nowrap;
611 }
612
613 .search-results__meta {
614 display: flex;
615 align-items: center;
616 margin-top: 4px;
617 gap: 8px;
618 }
619
620 .search-results__category {
621 font-size: 11px;
622 color: #6b7280;
623 background: #f3f4f6;
624 padding: 2px 6px;
625 border-radius: 4px;
626 text-transform: capitalize;
627 }
628
629 .search-results__badges {
630 display: flex;
631 align-items: center;
632 gap: 6px;
633 margin-left: 8px;
634 }
635
636
637 .search-results__empty-state {
638 text-align: center;
639 padding: 5px 10px;
640 }
641
642
643 .search-results__empty-description {
644 font-size: 14px;
645 color: #6b7280;
646 line-height: 1.5;
647
648 width: 100%;
649 text-align: center;
650 margin: 0 auto;
651 }
652
653 /* Search highlighting */
654 .search-results mark {
655 background-color: #fef3c7;
656 padding: 1px 2px;
657 border-radius: 2px;
658 }
659
660
661
662 /* ===================================== */
663 /* Positioned Modal Styles (New Component) */
664 /* ===================================== */
665
666 .positioned-modal-backdrop.modal-backdrop {
667 position: fixed;
668 top: 0;
669 left: 0;
670 width: 100%;
671 height: 100%;
672 background: transparent;
673 z-index: 1000;
674 backdrop-filter: blur(1px);
675 }
676
677 .positioned-modal-content {
678 position: absolute;
679 background: #ffffff;
680 border-radius: 6px;
681 box-shadow:
682 0 20px 25px -5px rgba(0, 0, 0, 0.1),
683 0 10px 10px -5px rgba(0, 0, 0, 0.04),
684 0 0 0 1px rgba(0, 0, 0, 0.05);
685 overflow: hidden;
686 display: flex;
687 flex-direction: column;
688 border: 1px solid #e5e7eb;
689 z-index: 1001;
690 transition: all 0.2s ease;
691 }
692
693 .positioned-modal-close {
694 position: absolute;
695 top: 12px;
696 right: 12px;
697 background: rgba(243, 244, 246, 0.8);
698 backdrop-filter: blur(4px);
699 border: none;
700 border-radius: 6px;
701 width: 28px;
702 height: 28px;
703 display: flex;
704 align-items: center;
705 justify-content: center;
706 cursor: pointer;
707 transition: all 0.2s ease;
708 z-index: 10;
709 }
710
711 .positioned-modal-close:hover {
712 background: rgba(229, 231, 235, 0.9);
713 transform: scale(1.05);
714 }
715
716 .positioned-modal-header {
717 padding: 16px 48px 12px 16px; /* Right padding for close button */
718 border-bottom: 1px solid #f3f4f6;
719 flex-shrink: 0;
720 }
721
722 .positioned-modal-title {
723 font-size: 18px;
724 font-weight: 600;
725 color: #1f2937;
726 margin: 0;
727 }
728
729 .positioned-modal-subtitle {
730 font-size: 13px;
731 color: #6b7280;
732 margin: 4px 0 0 0;
733 }
734
735 .positioned-modal-body {
736 flex-grow: 1;
737 // overflow: auto;
738 // min-height: 0;
739 }
740
741 /* ===================================== */
742 /* Field Builder Specific Styles */
743 /* ===================================== */
744
745
746 /* Responsive adjustments */
747 @media (max-width: 768px) {
748 .positioned-modal-content {
749 width: calc(100vw - 32px) !important;
750 max-width: none !important;
751 left: 16px !important;
752 right: 16px !important;
753 max-height: calc(100vh - 32px);
754 }
755
756 .btcd-modal {
757 width: calc(100vw - 32px) !important;
758 max-width: none !important;
759 margin: 16px;
760 }
761
762 .btcd-modal-content {
763 width: 100% !important;
764 }
765 .field-tabs__item{
766 max-width: none;
767 }
768 }
769
770
771 .positioned-modal-close:focus-visible {
772 outline: 2px solid #3b82f6;
773 outline-offset: 1px;
774 }
775
776 /* ===================================== */
777 /* TabsView Styles - Tertiary-Segment Variant */
778 /* ===================================== */
779
780 .tabs-container {
781 display: flex;
782 flex-direction: column;
783 height: 100%;
784 }
785
786 /* Header Wrapper - Segmented Control Container */
787 .tabs-header-wrapper {
788 position: relative;
789 display: flex;
790 align-items: center;
791 padding: 4px;
792 border-radius: var(--bf-bdr-radius-md);
793 border: 1px solid var(--bf-stroke-clr);
794 }
795
796 /* Navigation Button */
797 .tabs-nav-button {
798 padding: 0;
799 position: absolute;
800 top: 50%;
801 transform: translateY(-50%);
802 z-index: 10;
803 display: flex;
804 align-items: center;
805 justify-content: center;
806 width: 25px;
807 height: 25px;
808 border: none;
809 cursor: pointer;
810 transition: all 0.2s ease;
811 outline: none;
812 background-color: #ffffff;
813 color: var(--bf-clr-gray);
814 border-radius: var(--bf-bdr-radius-sm);
815 border: 1px solid var(--bf-stroke-clr);
816 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
817 }
818
819 .tabs-nav-button:hover {
820 background-color: var(--bf-clr-lightgray);
821 color: var(--bf-text-clr-dark);
822 border-color: var(--bf-bdr-clr-light);
823 }
824
825 .tabs-nav-button:focus-visible {
826 outline: 2px solid var(--bf-tertiary-600);
827 outline-offset: 2px;
828 }
829
830 .tabs-nav-button:disabled {
831 opacity: 0;
832 pointer-events: none;
833 visibility: hidden;
834 }
835
836 /* Prev and Next Buttons */
837 .tabs-prev-button {
838 left: 4px;
839 }
840
841 .tabs-next-button {
842 right: 4px;
843 }
844
845 /* Tab Header Container */
846 .tabs-header-container {
847 flex: 1;
848 position: relative;
849 overflow: hidden;
850 }
851
852 /* Tab Header */
853 .tabs-header {
854 display: flex;
855 gap: 4px;
856 position: relative;
857 overflow-x: auto;
858 overflow-y: hidden;
859 scroll-behavior: smooth;
860 scrollbar-width: none; /* Firefox */
861 -ms-overflow-style: none; /* IE/Edge */
862 background-color: transparent;
863 border-bottom: none;
864 padding: 0;
865 }
866
867 .tabs-header::-webkit-scrollbar {
868 display: none; /* Chrome/Safari */
869 }
870
871 /* Tab Button - Segmented Control Style */
872 .tab-button {
873 padding: 7px 20px;
874 border: none;
875 background-color: transparent;
876 cursor: pointer;
877 position: relative;
878 transition: color 0.2s ease, background-color 0.2s ease;
879 z-index: 2;
880 outline: none;
881 white-space: nowrap;
882 flex: 1;
883 color: #6b7280;
884 font-size: 14px;
885 font-weight: 500;
886 border-radius: var(--bf-bdr-radius-sm);
887 }
888
889 .tab-button:hover {
890 color: #374151 !important;
891 background-color: rgba(255, 255, 255, 0.5);
892 }
893
894 .tab-button.active {
895 color: #ffffff;
896 font-weight: 600;
897 background-color: transparent;
898 }
899
900 .tab-button.active:hover {
901 color: #f3f4f6 !important;
902 background-color: var(--bf-tertiary-800) !important;
903 }
904
905 .tab-button:focus-visible {
906 outline: 2px solid var(--bf-tertiary-600);
907 outline-offset: -2px;
908 }
909
910 /* Selector - Full Height Pill Background */
911 .tab-selector {
912 position: absolute;
913 height: 100%;
914 top: 0;
915 left: 0;
916 background-color: var(--bf-tertiary-600);
917 border-radius: var(--bf-bdr-radius-sm);
918 box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
919 z-index: 1;
920 transition: all 0.3s cubic-bezier(0.42, 0.44, 0.57, 1.35);
921 will-change: transform, width;
922 }
923
924 /* ===================================== */
925 /* Old Clean-Bottom-Line Variant (Commented Out) */
926 /* ===================================== */
927
928 /*
929 // .tabs-header-wrapper {
930 // position: relative;
931 // display: flex;
932 // align-items: center;
933 // }
934
935 // .tabs-header {
936 // border-bottom: 1px solid #e1e5e9;
937 // background-color: transparent;
938 // padding: 0;
939 // gap: 4px;
940 // }
941
942 // .tab-button {
943 // padding: 12px 20px;
944 // border-radius: var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm) 0 0;
945 // color: #6c757d;
946 // font-size: 14px;
947 // font-weight: 500;
948 // }
949
950 // .tab-button:hover {
951 // color: #495057 !important;
952 // background-color: var(--bf-clr-ghostwhite) !important;
953 // }
954
955 // .tab-button.active {
956 // background-color: var(--bf-clr-lightgray);
957 // color: #56585d;
958 // }
959
960 // .tab-selector {
961 // position: absolute;
962 // bottom: 0;
963 // left: 0;
964 // height: 2px;
965 // background-color: var(--bf-tertiary-600);
966 // box-shadow: none;
967 // }
968 */
969
970 /* Tab Content */
971 .tab-content {
972 flex: 1;
973 overflow-y: auto;
974 overflow-x: hidden;
975 padding: 10px 0px;
976 position: relative;
977 }
978
979 /* Content Wrapper (for animations) */
980 .tab-content-wrapper {
981 position: relative;
982 width: 100%;
983 animation: none;
984 }
985
986 .tab-content-wrapper.slide-in-right {
987 animation: slideInFromRight 0.3s ease-out;
988 }
989
990 .tab-content-wrapper.slide-in-left {
991 animation: slideInFromLeft 0.3s ease-out;
992 }
993
994
995 @keyframes slideInFromRight {
996 0% {
997 transform: translateX(100%);
998 opacity: 0;
999 }
1000 100% {
1001 transform: translateX(0);
1002 opacity: 1;
1003 }
1004 }
1005 @keyframes slideInFromLeft{
1006 0% {
1007 transform: translateX(-100%);
1008 opacity: 0;
1009 }
1010 100% {
1011 transform: translateX(0);
1012 opacity: 1;
1013 }
1014 }
1015
1016 /* ===================================== */
1017 .drag:not(.no-drg) {
1018 cursor: grab
1019 }
1020
1021 .blk:focus-within .drag:not(.blk-wrp-btn), .blk.add-field-picker-opened .drag:not(.blk-wrp-btn), .blk:hover .drag:not(.blk-wrp-btn), .drag-hover:not(.blk-wrp-btn) {
1022 // outline: 2px dashed var(--b-50);
1023 outline: 1px dashed var(--bf-tertiary-600);
1024 outline-offset: -1px;
1025 // border-radius: var(--bf-bdr-radius-sm) 0px var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm);
1026 }
1027
1028
1029
1030 .drag:active {
1031 cursor: grabbing
1032 }
1033
1034 .no-drg {
1035 cursor: default
1036 }
1037
1038 .react-grid-layout {
1039 position: relative;
1040 }
1041
1042 .react-grid-item {
1043 transition: all 200ms ease;
1044 transition-property: left,top
1045 }
1046
1047 .react-grid-item.cssTransforms {
1048 transition-property: transform
1049 }
1050
1051 .react-grid-item.resizing {
1052 transition: none !important;
1053 z-index: 1;
1054 will-change: width, height, transform
1055 }
1056
1057 .react-grid-item.react-draggable-dragging {
1058 background: #fff;
1059 transition: none;
1060 z-index: 3;
1061 will-change: transform
1062 }
1063
1064 .react-grid-item.dropping {
1065 visibility: hidden
1066 }
1067
1068 .react-grid-item.react-grid-placeholder {
1069 background: rgba(160,205,255,.2);
1070 transition-duration: 100ms;
1071 transition-property: width, height;
1072 border: 2px dashed #0059ff;
1073 -webkit-user-select: none;
1074 -moz-user-select: none;
1075 -ms-user-select: none;
1076 -o-user-select: none;
1077 user-select: none
1078 }
1079
1080 .react-grid-item.react-grid-placeholder.placeholder-resizing {
1081 transition-duration: 0ms !important;
1082 }
1083
1084 .react-grid-item>.react-resizable-handle {
1085 position: absolute;
1086 transform: scale(0)
1087 }
1088
1089 .react-grid-item>.react-resizable-handle::after {
1090 position: absolute;
1091 right: 3px;
1092 bottom: 3px;
1093 content: "";
1094 width: 5px;
1095 height: 5px
1096 }
1097
1098 .react-resizable-hide>.react-resizable-handle {
1099 display: none
1100 }
1101
1102 .react-resizable {
1103 position: relative
1104 }
1105
1106 .react-resizable-handle {
1107 position: absolute;
1108 background-repeat: no-repeat;
1109 background-origin: content-box;
1110 box-sizing: border-box;
1111 padding: 0 1px 1px 0;
1112 border-radius:20px;
1113 background-color: var(--bf-tertiary-600);
1114 box-shadow: 0 1px 1.5px 0 #7b7a7a;
1115 }
1116
1117 .react-resizable-handle-se {
1118 right: -8px;
1119 bottom: -8px;
1120 width: 20px;
1121 height: 20px;
1122 cursor: se-resize;
1123 transform: rotate(90deg);
1124 background-position: bottom right;
1125 background-position: 60% 58%;
1126 z-index: 1;
1127 background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 21 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.909822 0.753938L13.0461 1.84232L6.03541 11.8085L0.909822 0.753938Z" fill="white"/><path d="M20.0902 14.2461L7.95387 13.1577L14.9646 3.19152L20.0902 14.2461Z" fill="white"/></svg>')
1128 }
1129
1130 .react-resizable-handle-e {
1131 top: 40%;
1132 width: 13px;
1133 right: -6px;
1134 height: 30px;
1135 margin-top: -10px;
1136 cursor: ew-resize;
1137 background-position: center;
1138 background-repeat: no-repeat;
1139 background-image: url('data:image/svg+xml;utf8,<svg width="7" height="18" viewBox="0 0 29 72" fill="none" xmlns="http://www.w3.org/2000/svg"><style>.r{fill:white;width: 12px;height: 12px;rx: 10px;}</style><rect x="10" y="1" class="r" /><rect x="10" y="31" class="r" /><rect x="10" y="61" class="r" /></svg>')
1140 }
1141
1142 .react-resizable-handle-w {
1143 top: 40%;
1144 width: 13px;
1145 left: -6px;
1146 height: 30px;
1147 margin-top: -10px;
1148 cursor: ew-resize;
1149 background-position: center;
1150 background-repeat: no-repeat;
1151 background-image: url('data:image/svg+xml;utf8,<svg width="7" height="18" viewBox="0 0 29 72" fill="none" xmlns="http://www.w3.org/2000/svg"><style>.r{fill:white;width: 12px;height: 12px;rx: 10px;}</style><rect x="10" y="1" class="r" /><rect x="10" y="31" class="r" /><rect x="10" y="61" class="r" /></svg>')
1152 }
1153 .context-menu {
1154 display: flex;
1155 flex-direction: column;
1156 border-radius: 10px;
1157 position: relative;
1158 background-color: var(--white-100);
1159 z-index: 9999999;
1160 }
1161 .context-list {
1162 margin: 0px;
1163 display: block;
1164 width: 100%;
1165 list-style: none;
1166 padding-left: 0;
1167 }
1168 .context-item {
1169 position: relative;
1170 margin-bottom: 0px;
1171 width: 100%;
1172 }
1173 .context-btn {
1174 // font-family: "Outfit", sans-serif;
1175 font-family: var(--bf-font-family-base);
1176 border: 0px;
1177 padding: 6px 6px;
1178 padding-right: 36px;
1179 width: 100%;
1180 border-radius: 8px;
1181 font-weight: 500;
1182 display: flex;
1183 align-items: center;
1184 position: relative;
1185 background-color: var(--white-100);
1186 cursor: pointer;
1187 }
1188 .context-btn span {
1189 text-align: left;
1190 }
1191 .context-btn:hover, .context-btn.active {
1192 background-color: var(--white-0-93);
1193 }
1194 .context-btn:hover svg, .context-btn.active svg {
1195 filter: drop-shadow(1px 1px 0.5px #b3b3b3);
1196 }
1197 .context-btn:focus-visible {
1198 outline: none;
1199 box-shadow: 0 0 0 2px var(--b-50) inset
1200 }
1201 .context-btn svg {
1202 flex-shrink: 0;
1203 width: 20px;
1204 height: 20px;
1205 margin-right: 10px;
1206 stroke: var(--black-0);
1207 }
1208 .context-btn svg:nth-of-type(2) {
1209 margin-right: 0;
1210 position: absolute;
1211 right: 8;
1212 }
1213 .context-btn-color {
1214 color: var(--b-50)
1215 }
1216 .context-btn .tag-label{
1217 font-size: 10px;
1218 align-self: baseline;
1219 background-color: var(--white-0-0-8) !important;
1220 border-radius: 5px;
1221 margin-left: 3px;
1222 padding: 2px 4px;
1223 }
1224 .pro-badge{
1225 border: 0.5px solid var(--bf-stroke-clr);
1226 display: flex;
1227 align-items: center;
1228 justify-content: center;
1229 color: var(--bf-clr-gray);
1230 font-size: 10;
1231 border-radius: var(--bf-bdr-radius-sm);
1232 padding: 2px 4px;
1233 margin-left: 5;
1234 }
1235 .pro-badge:hover {
1236 font-weight: 700;
1237 cursor: pointer;
1238 }
1239 .pro-badge svg {
1240 width: 12px;
1241 height: 12px;
1242 margin-right: 3px;
1243 stroke: var(--bf-clr-gray);
1244 }
1245 .delete:hover,.delete.active {
1246 color: var(--red-100-49) !important;
1247 }
1248 .delete:hover svg,.delete.active svg {
1249 stroke: var(--red-100-49) !important;
1250 }
1251 .right-click-context-menu{
1252 border:1px solid #d0d0d0;
1253 padding: 5px;
1254 box-shadow: 0px 47px 58px rgba(0, 0, 0, 0.07), 0px 19.6355px 25.6741px rgba(0, 0, 0, 0.0503198), 0px 10.4981px 17.9875px rgba(0, 0, 0, 0.0417275), 0px 5.88513px 13.1341px rgba(0, 0, 0, 0.035), 0px 3.12555px 8.79534px rgba(0, 0, 0, 0.0282725), 0px 1.30061px 4.46737px rgba(0, 0, 0, 0.0196802);
1255 }
1256 .fld-hide::after {
1257 position: absolute;
1258 top: 0;
1259 left: 0;
1260 text-align: center; vertical-align: -50%;
1261 content: "";
1262 background-repeat: no-repeat;
1263 background-position: center;
1264 background-image: url("data:image/svg+xml, %3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='currentColor' strokeLinecap='round' strokeLinejoin='round' strokeWidth='5'%3E%3Cpath d='m3 3l18 18M10.584 10.587a2 2 0 0 0 2.828 2.83' /%3E%3Cpath d='M9.363 5.365A9.466 9.466 0 0 1 12 5c4 0 7.333 2.333 10 7c-.778 1.361-1.612 2.524-2.503 3.488m-2.14 1.861C15.726 18.449 13.942 19 12 19c-4 0-7.333-2.333-10-7c1.369-2.395 2.913-4.175 4.632-5.341' /%3E%3C/g%3E%3C/svg%3E");
1265 width: 100%;
1266 height: 100%;
1267 background-color: hsla(0, 0%, 0%, 20%);
1268 }
1269
1270
1271 .spacer-field-bg {
1272 position: relative;
1273 background-image: repeating-linear-gradient(
1274 45deg, /* angle of the stripes */
1275 hsla(var(--gah),var(--gas),var(--gal),20%), /* stripe color */
1276 hsla(var(--gah),var(--gas),var(--gal),5%) 5px, /* end of stripe */
1277 transparent 5px, /* start of space between stripes */
1278 transparent 20px /* end of space */
1279 );
1280 overflow: hidden;
1281 }
1282 .spacer-field-bg::before {
1283 content: attr(data-admin-label);
1284 position: absolute;
1285 top: 50%;
1286 left: 50%;
1287 transform: translate(-50%, -50%);
1288 color: var(--fld-lbl-c, var(--fld-inp-c));;
1289 font-size: 16px;
1290 text-align: center;
1291 padding: var(--fld-p);
1292 border-radius: var(--g-bdr-rad);
1293 background-color: var(--global-fld-bg-color, var(--bg-0));
1294 pointer-events: none; /* Prevent interaction with the text */
1295 }
1296 `,t=e.div`
1297 .pos-rel { position: relative}
1298 .g-c {
1299 display: -ms-grid;
1300 display: grid;
1301 place-content: center;
1302 }
1303 .f-rob {font-family: "Roboto",sans-serif}
1304 // .f-mon {font-family:"Outfit", sans-serif !important; }
1305 .f-mon {font-family: var(--bf-font-family-base) !important; }
1306 .wdt-200 {width: 200px !important;}
1307 .curp{cursor:pointer}
1308 .us-n {
1309 -webkit--ms-user-select: none;
1310 -webkit-user-select: none;
1311 -khtml--ms-user-select: none;
1312 -moz--ms-user-select: none;
1313 -o--ms-user-select: none;
1314 -ms-user-select: none;
1315 user-select: none;
1316 }
1317 .pos-abs{position:absolute;}
1318
1319 .flx {display: flex }
1320 .flx-c {justify-content: center}
1321
1322 .mt-1 {margin-top: 5px}
1323 .mr-1 {margin-right: 5px}
1324 .mr-2 {margin-right: 10px}
1325 .mb-2 {margin-bottom: 10px}
1326
1327 .f-12{font-size:12px;}
1328 .svg-icn {
1329 fill: none;
1330 stroke: currentColor;
1331 stroke-linecap: round;
1332 stroke-linejoin: round;
1333 }
1334 .highlight-margin {
1335 background-color: rgb(255, 200, 98);
1336 opacity: 0.3;
1337 position: fixed; /* Changed from absolute - prevents document overflow */
1338 overflow: hidden;
1339 z-index: 999999;
1340 pointer-events: none; /* Added - prevents interference with mouse events */
1341 }
1342 .highlight-padding {
1343 overflow: hidden;
1344 background-color: rgb(86, 111, 255);
1345 outline: 1px dashed #003f53;
1346 outline-offset: -1px;
1347 }
1348 .highlight-element {
1349 overflow: hidden;
1350 background: rgb(255, 255, 103);
1351 outline: 1px dashed #635700;
1352 outline-offset: -1px;
1353 }
1354 .layout-wrapper{
1355 // background-size: 13px 13px;
1356 // background-image: radial-gradient(#458ff7 0.5px, #fff 0.5px);
1357 // background-size: 10px 10px;
1358 font-family: var(--g-font-family)
1359 }
1360 /* hide default scrollbar in custom scrollbar */
1361 .layout-wrapper > div > div::-webkit-scrollbar {
1362 display:none;
1363 }
1364
1365
1366 `;return o.jsxs("style",{children:[n,jl,Cl,Il,j1,C1,w1,S1,t]})}function k1({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{className:"svg-icn",strokeWidth:n,d:"M6.4,4.16H23.6a2.43,2.43,0,0,1,2.45,2.41V23.43a2.43,2.43,0,0,1-2.45,2.41H6.4A2.43,2.43,0,0,1,4,23.43V6.57A2.43,2.43,0,0,1,6.4,4.16Z"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,x1:"15",y1:"10.18",x2:"15",y2:"19.82"}),o.jsx("line",{className:"svg-icn",strokeWidth:n,x1:"10.09",y1:"15",x2:"19.91",y2:"15"})]})}function ar(){const{css:e}=re();return o.jsxs("div",{className:e(Rt.wrp),children:[o.jsx("div",{className:`${e(Rt.lnk)} loader`}),o.jsx("div",{className:`${e(Rt.titl)} loader`}),o.jsx("div",{className:`${e(Rt.sub)} loader`}),Array(10).fill(0).map((n,t)=>o.jsxs(N.Fragment,{children:[o.jsxs("div",{className:`${e(Rt.t_wrp)} flx`,children:[o.jsx("div",{className:`${e(Rt.txt)} loader`}),o.jsx("div",{className:`${e(Rt.icn)} loader`})]}),o.jsx("div",{className:`${e(Rt.fld)} loader`})]},`tb-${t+3}`))]})}const Rt={wrp:{mx:10,my:10},lnk:{w:130,h:10,brs:4},titl:{w:120,h:20,brs:5,my:10},sub:{w:40,h:10,brs:3,my:10},t_wrp:{ml:10,my:10,flx:"between",w:"95%"},icn:{w:50,h:25,brs:6},txt:{h:23,w:90,brs:6},fld:{h:40,w:"90%",brs:8,mx:18}},T1=({title:e=m("No fields available"),description:n=m("You haven’t added any fields to this form or step yet."),note:t=m("Please add fields from the Form Fields panel."),iconSize:r=30})=>{const{css:i}=re();return o.jsxs("div",{className:i(Dn.emptyStateWrapper),children:[o.jsx("div",{className:i(Dn.emptyIcon),children:o.jsx(kl,{size:r})}),o.jsx("h3",{className:i(Dn.emptyStateTitle),children:e}),o.jsxs("div",{className:i(Dn.emptyStateDescription),children:[n,o.jsx("div",{className:i(Dn.emptyNote),children:t})]})]})},Dn={emptyStateWrapper:{ta:"center",p:20,cr:"#666",fs:14},emptyStateDescription:{mt:5,cr:"#999",fs:12},emptyIcon:{mb:10},emptyStateTitle:{fs:18,fw:"var(--bf-font-semibold)",color:"#4b5563",mb:8},emptyNote:{fs:12,mt:5,cr:"#999"}},qa=({highlightSelector:e,classNames:n,iconSize:t=16,iconStroke:r=2.5})=>{const{css:i}=re(),s=()=>{e&&Tl(e)};return o.jsx("button",{onMouseEnter:()=>yo(e),onFocus:()=>yo(e),onMouseLeave:()=>vo(),onBlur:()=>vo(),className:`${i(N1.iconBtn)} ${n}`,onClick:s,title:m("Click to Highlight Element in Builder"),type:"button",children:o.jsx(hc,{size:t,stroke:r})})},N1={iconBtn:{flx:"center",w:25,h:25,p:0,brs:"var(--bf-bdr-radius-sm)",bd:"transparent",curp:1,tn:"all 0.2s ease",b:"1px solid transparent",":hover":{bd:"#d3d3d3",b:"1px solid var(--bf-bdr-clr-light)"},":focus-visible":{focusShadow:1,b:"1px solid var(--bf-bdr-clr-light)"}}};function mr({className:e="",route:n,title:t,children:r,childrenAccordion:i=!1,fldData:s,open:a=!1,actionComponent:l,offset:d=0,tag:f,highlightSelector:u,onClick:c,styleOverride:p,level:h=0,badge:x,hasTarget:$=!0}){const[y,I]=N.useState(a),[T,w]=N.useState(a?"auto":0),_=N.useRef(null),g=N.useRef(null),{css:b}=re(),{"*":j}=me(),[E,O,L]=(j==null?void 0:j.split("/"))||[],H=`${f?`${f}-`:""}${bi(t)}-acc`;f&&`${f}`,`${bi(t)}`,N.useEffect(()=>{I(a)},[a]);let C=!1;E==="theme-customize"&&!f&&(O===n||L&&`${O}/${L}`===n)&&(C=!0),E==="field-theme-customize"&&L&&f&&f===L&&(O===n||`${O}/${L}`===n)&&(C=!0),N.useEffect(()=>{C&&g.current&&setTimeout(()=>{var V;(V=g.current)==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},300)},[C]);const M=V=>{if(V.type==="keypress"){const se=V;if(se.code==="Space"||se.code==="Enter"){I(Re=>!Re);return}}if(V.type==="keyup"&&V.code==="Escape"){I(!1);return}V.type==="click"&&I(se=>!se)},k=V=>V.stopPropagation(),F=V=>{const se=window.getComputedStyle(V),Re=parseFloat(se.marginTop)+parseFloat(se.marginBottom);return Math.ceil(V.offsetHeight+Re)},D=()=>{_.current&&w(F(_.current))},z=(h||d)*16;return o.jsxs("div",{ref:g,role:"button",tabIndex:0,onKeyUp:M,onKeyDown:M,className:`${b([Ze.accordionLbl,y&&r?Ze.active:{}])} ${e} ${y&&r?"toggle":""} ${r?"has-children":""} ${C?"active":""}`,onClick:c,"data-testid":H,children:[o.jsx("div",{className:`btgl-wrapper ${b([{w:"100%"},C?Ze.navBtnActive:{}])}`,tabIndex:-1,role:"button",onClick:M,onKeyDown:M,children:o.jsxs("div",{className:`title-bar ${b(v.flxc,Ze.titlebar)} ${b(C?{bd:"hsl(233deg 36% 95%)"}:{})}`,style:{paddingLeft:z},children:[r&&o.jsx("div",{className:"toggle-icn-wrapper",children:o.jsx(Nl,{className:`toggle-icn ${b(Ze.icn)}`,size:"9",style:{transform:`rotate(${y?180:90}deg)`}})}),o.jsxs("div",{className:b(Ze.flxbwn),children:[o.jsxs("div",{className:b(v.flxc,v.mr2),children:[o.jsx("span",{className:`title ${b([Ze.dflx,i?{}:v.fw500])}`,children:t}),f&&o.jsx("span",{title:`Field key: ${f}`,className:b(Ze.titleTag),children:f}),x&&o.jsx("span",{className:b(Ze.badge),children:x}),p&&o.jsx("span",{className:b(Ze.overrideIndicator),title:"Theme styles override"}),s&&o.jsx(Li,{width:150,icnSize:15,className:`${b(v.mr2)} hovertip`,children:o.jsx("div",{className:b(Ze.tipBody),children:((s==null?void 0:s.lbl)||(s==null?void 0:s.txt)||(s==null?void 0:s.adminLbl))&&(s.lbl||s.txt||s.adminLbl)})}),o.jsx("div",{className:b(Ze.navActionBtn),"data-action-btn-lbl":!0,children:$&&u&&o.jsx(qa,{highlightSelector:u,classNames:b(Ze.highlightBtn),iconSize:15,iconStroke:2.5})})]}),o.jsx("div",{onClick:k,onKeyDown:k,role:"button",tabIndex:-1,children:l&&l})]})]})}),r&&o.jsx("div",{style:{height:T,transition:"height 300ms",overflow:T==="auto"?"auto":"hidden"},children:o.jsx(El,{nodeRef:_,in:y,timeout:300,onEntering:D,onEntered:()=>w("auto"),onExit:()=>{_.current&&w(_.current.offsetHeight)},onExiting:()=>w(0),unmountOnExit:!0,style:{overflow:y?"auto":"hidden"},children:o.jsx("div",{ref:_,className:`body ${b(Ze.body)}`,onClick:k,onKeyDown:k,style:{paddingLeft:z+8},children:r})})})]})}const Ze={flxbwn:{flx:"between"},titlebar:{ws:"nowrap",fw:500,ow:"hidden",py:8,px:8,":hover":{bd:"#eeeff7"},"& .hovertip":{oy:0}},dflx:{flx:"align-center",fw:400,fs:13,lh:2,curp:1,"& .hover-tip":{oy:0}},icn:{cr:"#c6c6c6",mr:4,ml:4,mt:-1,tn:"transform 250ms"},body:{fs:12,py:4},titleTag:{p:"1px 5px",bd:"#EDF2F7",brs:"var(--bf-bdr-radius-sm)",cr:"gray",fs:11,fw:400,b:"1px solid #d8dde2",ml:"7px",curp:1},badge:{fs:10,fw:500,cr:"var(--b-50)",bg:"var(--b-14-100-93)",px:6,py:2,br:4,tt:"uppercase",ml:6},tipBody:{lh:"1.1",fs:"12.5px",fw:100,ff:'"Roboto", sans-serif'},accordionLbl:{mb:2,":focus-within":{"& div[data-action-btn-lbl]":{dy:"flex"}},":focus-visible":{focusShadow:1,"& div[data-action-btn-lbl]":{dy:"flex"}},":hover":{bd:"#f8f8f8","& div[data-action-btn-lbl]":{dy:"flex"}}},highlightBtn:{h:"20px !important",w:"20px !important"},navActionBtn:{b:"none",pn:"absolute",rt:15,jc:"center",ai:"center",dy:"none",pl:15},overrideIndicator:{w:"5px",h:"5px",brs:"50%",bc:"#ffd64f",ml:5},active:{bd:"var(--bf-bg-offwhite)"},navBtnActive:{bd:"#eeeff7",bs:"0 0 0 1px var(--bf-tertiary-300)","& .title":{fw:"var(--bf-font-medium)"}}};function Xn({route:e,subRoute:n,cssSelector:t,label:r,offset:i=1,icn:s,highlightSelector:a,styleOverride:l,classNames:d=""}){const{formType:f,formID:u,"*":c}=me(),[p,h,x]=(c==null?void 0:c.split("/"))||[],$=N.useRef(null),y=`${n?`${n}-`:""}${e}-nav`;let I=!1;(p==="theme-customize"&&!x&&!n&&h===e||p==="field-theme-customize"&&n&&n===x&&h===e)&&(I=!0),N.useEffect(()=>{I&&$.current&&setTimeout(()=>{var j;(j=$.current)==null||j.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},100)},[I]);const T=er(),w=()=>{T(n?`/form/builder/${f}/${u}/field-theme-customize/${e}/${n}`:`/form/builder/${f}/${u}/theme-customize/${e}`)},_=j=>{(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),w())},{css:g}=re(),b=typeof i=="number"?i*10:parseFloat(i)*10;return o.jsxs("div",{ref:$,className:`${g([Hn.navBtn,I?Hn.navBtnActive:{}])} ${d} ${I?"active":""}`,style:{paddingLeft:b},onClick:w,onKeyDown:_,role:"button",tabIndex:0,"data-testid":y,children:[o.jsxs("div",{className:g(v.flxc),children:[s&&o.jsx("span",{className:g(v.flxc,{mr:5}),children:s}),r,l&&o.jsx("span",{className:g(Hn.overrideIndicator),title:"Theme styles overridden"})]}),o.jsx("div",{className:g(Hn.navActionBtn,v.mr2),"data-action-btn":!0,children:a&&o.jsx(qa,{highlightSelector:a,classNames:g(Hn.highlightBtn),iconSize:15,iconStroke:2.5})})]})}const Hn={navBtn:{w:"100%",h:26,fs:13,ta:"left",p:0,pl:13,lh:2,cr:"inherit",flx:"center-between",wb:"keep-all",ws:"nowrap",pn:"relative",us:1,curp:1,":focus-within":{"& div[data-action-btn]":{dy:"flex"}},":focus-visible":{focusShadow:1,"& div[data-action-btn]":{dy:"flex"}},"& .hovertip":{oy:0},":hover":{"& .hovertip":{oy:1},bd:"#eeeff7","& div[data-action-btn]":{dy:"flex"}}},navBtnActive:{bd:"#eeeff7"},navActionBtn:{h:"100%",b:"none",pn:"absolute",bd:"linear-gradient(90deg, transparent, #eeeff7 45%)",rt:0,jc:"center",ai:"center",dy:"none",pl:15},highlightBtn:{h:"20px !important",w:"20px !important"},overrideIndicator:{w:"5px",h:"5px",brs:"50%",bc:"#ffd64f",ml:"3px",px:2}},Ve={con:{h:"100%",bs:"0 0 0 1px var(--b-44-87)",ow:"hidden"},themeQuickTweaks:{w:"auto",fs:"var(--bf-font-semibase)",fw:"var(--bf-font-medium)",brs:"var(--bf-bdr-radius-sm)",m:"15px 10px",p:"var(--bf-space-3) 5px !important",h:"auto !important","&.active":{bs:"0 0 0 1px var(--bf-tertiary-300)"}},divider:{bb:"1px solid var(--white-0-83)"},sectionAccordion:{"& .btgl":{curp:1,p:"var(--bf-space-5) 15px !important",fs:"var(--bf-font-base) !important",bb:"1px solid var(--bf-stroke-clr)"},"& .body":{p:"10px",gp:"var(--bf-space-2)",dy:"flex",fd:"column"}},layerAccordion:{brs:"var(--bf-bdr-radius-sm)","& .btgl-wrapper":{brs:"var(--bf-bdr-radius-sm)"},"& .title-bar":{p:"3px 10px",brs:"var(--bf-bdr-radius-sm)"},"& .title":{fs:"var(--bf-font-base)"},"& .toggle-icn-wrapper":{ml:"-15px",cr:"var(--b-189-67)"},"& .body":{pn:"relative",pl:"var(--bf-space-4)","&::before":{content:'""',pn:"absolute",lt:"var(--bf-space-4)",tp:10,h:"calc(100% - 20px)",bl:"1px solid var(--bf-stroke-clr)"}},"&.has-children .body":{pl:"var(--bf-space-6)"}},simpleNavBtn:{brs:"var(--bf-bdr-radius-sm)",fs:"var(--bf-font-md)",p:"7px 10px",h:"auto","&.active":{bs:"0 0 0 1px var(--bf-tertiary-300)",fw:"var(--bf-font-medium)"}}},bt=({fldKey:e,fieldObj:n,styles:t,route:r,label:i,offset:s="1",classNames:a=""})=>{var f;const l=((f=hi[r])==null?void 0:f[0])||r,{css:d}=re();return o.jsx(Xn,{cssSelector:`.${e}-${l}`,subRoute:e,route:r,label:i,offset:s,highlightSelector:`[data-dev-${r}="${e}"]`,styleOverride:_r(t,e,r),classNames:`${a} ${d(Ve.simpleNavBtn)}`})},$n=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l="1",preIconKey:d,sufIconKey:f,preIconRoute:u,sufIconRoute:c,accordionOffset:p="1",childOffset:h="1",additionalChild:x})=>{var w,_;const $=d&&n[d],y=f&&n[f],I=$||y,{css:T}=re();return!I&&!x?o.jsx(bt,{fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l,classNames:T(Ve.simpleNavBtn)}):o.jsxs(mr,{childrenAccordion:!0,route:s,onClick:()=>i(s),offset:p,title:a,fldData:n,tag:e,open:e===r&&I,highlightSelector:`[data-dev-${s}="${e}"]`,styleOverride:_r(t,e,s),className:T(Ve.layerAccordion),children:[$&&u&&o.jsx(Xn,{cssSelector:`.${e}-${((w=hi[u])==null?void 0:w[0])||u}`,subRoute:e,route:u,label:"Leading Icon",offset:h,highlightSelector:`[data-dev-${u}="${e}"]`,styleOverride:_r(t,e,u),classNames:T(Ve.simpleNavBtn)}),y&&c&&o.jsx(Xn,{cssSelector:`.${e}-${((_=hi[c])==null?void 0:_[0])||c}`,subRoute:e,route:c,label:"Trailing Icon",offset:h,highlightSelector:`[data-dev-${c}="${e}"]`,styleOverride:_r(t,e,c),classNames:T(Ve.simpleNavBtn)}),x]},e)},ze=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,elements:s,additionalChild:a})=>o.jsx(o.Fragment,{children:s.map((l,d)=>l.condition&&!l.condition(n)?null:o.jsx($n,B(S({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i},l),{additionalChild:l.additionalChild||a?o.jsxs(o.Fragment,{children:[" ",l.additionalChild," ",a," "]}):void 0}),`${l.route}-${d}`))}),E1=[{condition:e=>!!(e.title||e.titlePreIcn||e.titleSufIcn),route:"title",label:"Title",preIconKey:"titlePreIcn",sufIconKey:"titleSufIcn",preIconRoute:"title-pre-i",sufIconRoute:"title-suf-i"}],ms=[{condition:e=>!!(e.lbl||e.lblPreIcn||e.lblSufIcn)&&!e.typ.match(/^(decision-box|gdpr|razorpay|paypal)$/gi),route:"lbl",label:"Label",preIconKey:"lblPreIcn",sufIconKey:"lblSufIcn",preIconRoute:"lbl-pre-i",sufIconRoute:"lbl-suf-i"}],M1=[{condition:e=>!!(e.subtitle||e.subTlePreIcn||e.subTleSufIcn||e.subTitlPreIcn||e.subTitlSufIcn),route:"sub-titl",label:"Subtitle",preIconKey:"subTlePreIcn",sufIconKey:"subTleSufIcn",preIconRoute:"sub-titl-pre-i",sufIconRoute:"sub-titl-suf-i"}],z1=[{condition:e=>!!(e.helperTxt||e.hlpPreIcn||e.hlpSufIcn),route:"hlp-txt",label:"Helper Text",preIconKey:"hlpPreIcn",sufIconKey:"hlpSufIcn",preIconRoute:"hlp-txt-pre-i",sufIconRoute:"hlp-txt-suf-i"}],A1=[{condition:e=>!!(e.txt||e.btnPreIcn||e.btnSufIcn),route:"btn",label:"Button",preIconKey:"btnPreIcn",sufIconKey:"btnSufIcn",preIconRoute:"btn-pre-i",sufIconRoute:"btn-suf-i"}],O1=[{condition:e=>!e.typ.match(/^(title|image|html|divider|button|check|radio|decision-box|gdpr|select|currency|phone-number|country|razorpay|paypal|section|repeater|email-otp|address)$/gi),route:"fld",label:"Input",preIconKey:"prefixIcn",sufIconKey:"suffixIcn",preIconRoute:"pre-i",sufIconRoute:"suf-i"}],ai={addButton:{route:"rpt-add-btn",label:"Add Button",preIconKey:"addBtnPreIcn",sufIconKey:"addBtnSufIcn",preIconRoute:"rpt-add-btn-pre-i",sufIconRoute:"rpt-add-btn-suf-i"},removeButton:{route:"rpt-rmv-btn",label:"Remove Button",preIconKey:"removeBtnPreIcn",sufIconKey:"removeBtnSufIcn",preIconRoute:"rpt-rmv-btn-pre-i",sufIconRoute:"rpt-rmv-btn-suf-i"},addToEndButton:{route:"add-to-end-btn",label:"Add To End Button",preIconKey:"addToEndBtnPreIcn",sufIconKey:"addToEndBtnSufIcn",preIconRoute:"add-to-end-btn-pre-i",sufIconRoute:"add-to-end-btn-suf-i"}},it={fieldContainer:{condition:e=>e.typ!=="paypal",route:"fld-wrp",label:"Field Container"},titleContainer:{condition:e=>e.typ==="title"&&!!(e.title||e.titlePreIcn||e.titleSufIcn||e.subtitle||e.subTitlPreIcn||e.subTitlSufIcn),route:"titl-wrp",label:"Title Container"},labelContainer:{condition:e=>!!(e.lbl||e.lblPreIcn||e.lblSufIcn||e.subtitle||e.subTlePreIcn||e.subTleSufIcn)&&e.typ!=="title",route:"lbl-wrp",label:"Label Container"},fileInputContainer:{condition:e=>e.typ==="file",route:"file-up-wrpr",label:"File Input Container"}},li={condition:e=>!e.typ.match(/^(button|divider|spacer|title|image|html|razorpay|paypal|recaptcha|section|repeater|turnstile|hcaptcha)$/),route:"err-msg",label:"Error Message"},ci={condition:e=>!e.typ.match(/^(title|image|html|divider)$/gi),route:"quick-tweaks",label:"Quick Tweaks"},B1=[{condition:e=>!!e.typ.match(/^(check|radio|decision-box|gdpr)/gi),route:"cc",label:"Check Container"},{condition:e=>!!e.typ.match(/^(check|radio|decision-box|gdpr)/gi),route:"ct",label:"Option Label"},{condition:e=>!!e.typ.match(/^(check|radio)$/gi),route:"cw",label:"Check Wrapper"},{condition:e=>!!e.typ.match(/^(check|radio)$/gi),route:"cl",label:"Option Wrapper"},{condition:e=>!!e.typ.match(/(check|decision-box|radio|gdpr)/gi),route:"bx",label:"Box"},{condition:e=>!!e.typ.match(/(check|radio)/gi),route:"other-inp",label:"Other Option Input"}],L1=[{route:"ic",label:"Field Wrapper"},{route:"inp-opt",label:"Image Option"},{route:"img-inp",label:"Input"},{route:"img-wrp",label:"Image Wrapper"},{route:"check-box",label:"Check Box"},{route:"check-img",label:"Check Box Image"},{route:"img-card-wrp",label:"Image Container"},{route:"select-img",label:"Image"},{condition:e=>!e.optLblHide,route:"tc",label:"Image Label Container"},{condition:e=>!e.optLblHide,route:"img-title",label:"Image Label"}],R1=[{route:"fld",label:"Select"},{route:"slct-optn",label:"Options"},{route:"slct-opt-grp",label:"Options Group"}],F1=[{route:"rpt-wrp",label:"Repeatative Container"},{route:"rpt-grid-wrp",label:"Grid Container"},{route:"pair-btn-wrp",label:"Button Container"}],P1=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"signature-pad",label:"Signature Pad"},{route:"clr-btn",label:"Clear Button",preIconKey:"clrPreIcn",sufIconKey:"clrSufIcn",preIconRoute:"clr-btn-pre-i",sufIconRoute:"clr-btn-suf-i"},{route:"undo-btn",label:"Undo Button",preIconKey:"undoPreIcn",sufIconKey:"undoSufIcn",preIconRoute:"undo-btn-pre-i",sufIconRoute:"undo-btn-suf-i"},{route:"redo-btn",label:"Redo Button",preIconKey:"redoPreIcn",sufIconKey:"redoSufIcn",preIconRoute:"redo-btn-pre-i",sufIconRoute:"redo-btn-suf-i"}],D1=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"otp-boxes-wrp",label:"OTP Boxes Wrapper"},{route:"otp-box",label:"OTP Box Input"},{route:"otp-actions-wrp",label:"Actions Row"},{route:"send-otp-btn",label:"Send OTP Button"},{route:"resend-wrp",label:"Resend Wrapper"},{route:"wait-txt",label:"Wait Text"},{route:"verify-btn",label:"Verify Button"},{route:"otp-success-msg",label:"OTP Success Message"},{route:"otp-error-msg",label:"OTP Error Message"}],H1=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"rating-img",label:"Rating Image"},{route:"rating-msg",label:"Rating Message"}],V1=[{route:"filepond--drop-label",label:"Drop Label"},{route:"filepond--label-action",label:"Label Action"},{route:"filepond--panel-root",label:"Panel Root"},{route:"filepond--item-panel",label:"Item Panel"},{route:"filepond--file-action-button",label:"File Action Button"},{route:"filepond--file",label:"File"}],W1=[{route:"currency-fld-wrp",label:"Currency Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-currency-img",label:"Selected Currency Image"},{route:"currency-amount-input",label:"Currency Amount Input"},{route:"input-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Currency Option"},{route:"opt-lbl-wrp",label:"Currency Option Label Wrapper"},{route:"opt-icn",label:"Currency Option Icon"},{route:"opt-lbl",label:"Currency Option Label"},{route:"opt-suffix",label:"Currency Option Trailing"}],G1=[{route:"phone-fld-wrp",label:"Phone Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-country-img",label:"Selected Country Image"},{route:"phone-number-input",label:"Phone Number Input"},{route:"input-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Phone Number Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Phone Option Icon"},{route:"opt-lbl",label:"Phone Option Label"},{route:"opt-suffix",label:"Phone Option Suffix"}],U1=[{route:"country-fld-wrp",label:"Country Field Wrapper"},{route:"selected-country-img",label:"Selected Country Image"},{route:"selected-country-lbl",label:"Selected Country Label"},{route:"inp-clr-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"opt-search-input",label:"Option Search Input"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Country Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Country Option Icon"},{route:"opt-lbl",label:"Country Option Label"}],K1=[{route:"dpd-fld-wrp",label:"Dropdown Field Wrapper"},{route:"dpd-wrp",label:"Dropdown Wrapper"},{route:"selected-opt-img",label:"Selected Option Image"},{route:"selected-opt-lbl",label:"Selected Option Label"},{route:"selected-opt-clear-btn",label:"Input Clear Button"},{route:"option-wrp",label:"Option Wrapper"},{route:"option-search-wrp",label:"Option Search Wrapper"},{route:"opt-search-input",label:"Option Search Input"},{route:"opt-search-icn",label:"Option Search Icon"},{route:"search-clear-btn",label:"Search Clear Button"},{route:"option-list",label:"Option List"},{route:"option",label:"Option"},{route:"opt-lbl-wrp",label:"Option Label Wrapper"},{route:"opt-icn",label:"Option Icon"},{route:"opt-lbl",label:"Option Label"},{route:"chip-wrp",label:"Chip Wrapper"},{route:"chip-icn",label:"Chip Icon"},{route:"chip-lbl",label:"Chip Label"},{route:"chip-clear-btn",label:"Chip Clear Button"}];function q1({fldKey:e}){var c,p,h,x;const n=ce(be),{formType:t,formID:r}=me(),i=er(),a=ce(We)[e],l=ce(Qn)||"",{css:d}=re(),f=$=>{i(`/form/builder/${t}/${r}/field-theme-customize/${$}/${e}`)};if(!a)return null;const u={fldKey:e,fieldObj:a,styles:n,selectedFieldKey:l,styleHandler:f};return o.jsxs(o.Fragment,{children:[ci.condition(a)&&o.jsx(bt,B(S({},u),{route:ci.route,label:ci.label})),it.fieldContainer.condition(a)&&o.jsx(bt,B(S({},u),{route:it.fieldContainer.route,label:it.fieldContainer.label})),a.logo&&o.jsx(bt,B(S({},u),{route:"logo",label:"Logo"})),it.titleContainer.condition(a)&&o.jsx(bt,B(S({},u),{route:it.titleContainer.route,label:it.titleContainer.label})),o.jsx(ze,B(S({},u),{elements:E1})),it.labelContainer.condition(a)&&o.jsx(bt,B(S({},u),{route:it.labelContainer.route,label:it.labelContainer.label})),ms[0].condition(a)&&o.jsx($n,B(S(S({},u),ms[0]),{additionalChild:(c=a.valid)!=null&&c.req&&((p=a.valid)!=null&&p.reqShow)?o.jsx(Xn,{cssSelector:`.${e}-req-smbl`,subRoute:e,route:"req-smbl",label:"Asterisk",offset:"1",highlightSelector:`[data-dev-req-smbl="${e}"]`,styleOverride:((h=n==null?void 0:n[e])==null?void 0:h["req-smbl"])!==void 0,classNames:d(Ve.simpleNavBtn)}):void 0})),o.jsx(ze,B(S({},u),{elements:M1})),it.fileInputContainer.condition(a)&&o.jsx(bt,B(S({},u),{route:it.fileInputContainer.route,label:it.fileInputContainer.label})),o.jsx(ze,B(S({},u),{elements:O1,additionalChild:o.jsx(bt,B(S({},u),{route:"fld::placeholder",label:"Placeholder"}))})),a.typ.match(/^(button)$/gi)&&o.jsx(ze,B(S({},u),{elements:A1})),a.typ==="repeater"&&o.jsxs(o.Fragment,{children:[o.jsx(ze,B(S({},u),{elements:F1})),o.jsx($n,S(S({},u),ai.addButton)),o.jsx($n,S(S({},u),ai.removeButton)),((x=a.addToEndBtn)==null?void 0:x.show)&&o.jsxs(o.Fragment,{children:[o.jsx(bt,B(S({},u),{route:"add-to-end-btn-wrp",label:"End Button Container"})),o.jsx($n,S(S({},u),ai.addToEndButton))]})]}),o.jsx(ze,B(S({},u),{elements:B1})),a.typ==="image-select"&&o.jsx(ze,B(S({},u),{elements:L1})),a.typ==="html-select"&&o.jsx(ze,B(S({},u),{elements:R1})),a.typ==="signature"&&o.jsx(ze,B(S({},u),{elements:P1})),a.typ==="email-otp"&&o.jsx(ze,B(S({},u),{elements:D1})),a.typ==="rating"&&o.jsx(ze,B(S({},u),{elements:H1})),a.typ==="advanced-file-up"&&o.jsx($n,B(S({},u),{route:"filepond--drop-label",label:"File Upload Field",additionalChild:o.jsx(ze,B(S({},u),{elements:V1}))})),a.typ==="currency"&&o.jsx(ze,B(S({},u),{elements:W1})),a.typ==="phone-number"&&o.jsx(ze,B(S({},u),{elements:G1})),a.typ==="country"&&o.jsx(ze,B(S({},u),{elements:U1})),a.typ==="select"&&o.jsx(ze,B(S({},u),{elements:K1})),o.jsx(ze,B(S({},u),{elements:z1})),li.condition(a)&&o.jsx(bt,B(S({},u),{route:li.route,label:li.label}))]})}const Y1=[{route:"_frm-bg",label:"Form Wrapper",highlightSelector:"[data-dev-_frm-bg]",hasTarget:!0},{route:"fld-wrp",label:"Field Containers",highlightSelector:"[data-dev-fld-wrp]",hasTarget:!0},{route:"lbl-wrp",label:"Label Containers",highlightSelector:"[data-dev-lbl-wrp]",hasTarget:!0},{route:"lbl",label:"Labels",highlightSelector:"[data-dev-lbl]",hasTarget:!0,children:[{route:"lbl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-lbl-pre-i]",hasTarget:!0},{route:"lbl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-lbl-suf-i]",hasTarget:!0},{route:"req-smbl",label:"Asterisk Icon",highlightSelector:"[data-dev-req-smbl]",hasTarget:!0}]},{route:"sub-titl",label:"Subtitles",highlightSelector:"[data-dev-sub-titl]",hasTarget:!0,children:[{route:"sub-titl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-sub-titl-pre-i]",hasTarget:!0},{route:"sub-titl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-sub-titl-suf-i]",hasTarget:!0}]},{route:"fld",label:"Inputs",highlightSelector:"[data-dev-fld]",hasTarget:!0,children:[{route:"pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-pre-i]",hasTarget:!0},{route:"suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-suf-i]",hasTarget:!0},{route:"fld::placeholder",label:"Placeholder Text",highlightSelector:"[data-dev-fld-placeholder]",hasTarget:!1}]},{route:"hlp-txt",label:"Helper Texts",highlightSelector:"[data-dev-hlp-txt]",hasTarget:!0,children:[{route:"hlp-txt-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-hlp-txt-pre-i]",hasTarget:!0},{route:"hlp-txt-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-hlp-txt-suf-i]",hasTarget:!0}]},{route:"err-msg",label:"Error Messages",highlightSelector:"[data-dev-err-msg]",hasTarget:!0,children:[{route:"err-txt-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-err-txt-pre-i]",hasTarget:!0},{route:"err-txt-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-err-txt-suf-i]",hasTarget:!0}]},{route:"btn",label:"Buttons",highlightSelector:"[data-dev-btn]",hasTarget:!0,children:[{route:"btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-btn-pre-i]",hasTarget:!0},{route:"btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-btn-suf-i]",hasTarget:!0}]}],Z1=[{route:"multi-step/stp-hdr-wrpr",label:"Step Header Wrapper",highlightSelector:"[data-dev-stp-hdr-wrpr]",hasTarget:!0},{route:"multi-step/stp-hdr",label:"Step Header",highlightSelector:"[data-dev-stp-hdr]",hasTarget:!0},{route:"multi-step/stp-icn-cntn",label:"Header Icon",highlightSelector:"[data-dev-stp-icn-cntn]",hasTarget:!0},{route:"multi-step/stp-hdr-lbl",label:"Header Label",highlightSelector:"[data-dev-stp-hdr-lbl]",hasTarget:!0,children:[{route:"multi-step/stp-lbl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-stp-lbl-pre-i]",hasTarget:!0},{route:"multi-step/stp-lbl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-stp-lbl-suf-i]",hasTarget:!0}]},{route:"multi-step/stp-hdr-sub-titl",label:"Header Subtitle",highlightSelector:"[data-dev-stp-hdr-sub-titl]",hasTarget:!0,children:[{route:"multi-step/stp-sub-titl-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-stp-sub-titl-pre-i]",hasTarget:!0},{route:"multi-step/stp-sub-titl-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-stp-sub-titl-suf-i]",hasTarget:!0}]},{route:"multi-step/stp-wrpr",label:"Step Wrapper",highlightSelector:"[data-dev-stp-wrpr]",hasTarget:!0},{route:"multi-step/stp-progress-wrpr",label:"Progress Wrapper",highlightSelector:"[data-dev-stp-progress-wrpr]",hasTarget:!0},{route:"multi-step/stp-progress-bar",label:"Progress Bar",highlightSelector:"[data-dev-stp-progress-bar]",hasTarget:!0},{route:"multi-step/stp-cntnt",label:"Step Content",highlightSelector:"[data-dev-stp-cntnt]",hasTarget:!0},{route:"multi-step/stp-btn-wrpr",label:"Button Wrapper",highlightSelector:"[data-dev-stp-btn-wrpr]",hasTarget:!0},{route:"multi-step/prev-step-btn",label:"Previous Button",highlightSelector:"[data-dev-prev-step-btn]",hasTarget:!0,children:[{route:"multi-step/prev-step-btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-prev-step-btn-pre-i]",hasTarget:!0},{route:"multi-step/prev-step-btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-prev-step-btn-suf-i]",hasTarget:!0}]},{route:"multi-step/next-step-btn",label:"Next Button",highlightSelector:"[data-dev-next-step-btn]",hasTarget:!0,children:[{route:"multi-step/next-step-btn-pre-i",label:"Prefix Icon",highlightSelector:"[data-dev-next-step-btn-pre-i]",hasTarget:!0},{route:"multi-step/next-step-btn-suf-i",label:"Suffix Icon",highlightSelector:"[data-dev-next-step-btn-suf-i]",hasTarget:!0}]}];function X1(){const{css:e}=re(),n=ce(be),t=ce(Ni),i=(Array.isArray(t)?t:[t]).length>1,s=er(),{formID:a,formType:l,"*":d}=me(),[f,u,c]=(d==null?void 0:d.split("/"))||[],p=Ml(),h=Object.entries(p).filter(([,T])=>!T.hidden),x=T=>Ns(Al[T]||T),$=(T,w=null,_=null)=>{_&&(T=_.typ==="html"||_.typ==="divider"?"fld-wrp":T),s(w?`/form/builder/${l}/${a}/field-theme-customize/${T}/${w}`:`/form/builder/${l}/${a}/theme-customize/${T}`)},y=(T,w)=>T.route===w?!0:T.children?T.children.some(_=>y(_,w)):!1,I=(T,w=1)=>{let _="";return f==="theme-customize"&&(c?_=`${u}/${c}`:_=u||""),T.map((g,b)=>{let j=!1;return _&&g.children&&g.children.length>0&&(g.route===_?j=!0:j=y(g,_)),g.children&&g.children.length>0?o.jsx(mr,{title:g.label,level:w,route:g.route,onClick:()=>$(g.route),highlightSelector:g.highlightSelector,hasTarget:g.hasTarget!==!1,open:j,className:e(Ve.layerAccordion),children:I(g.children,w)},`${g.route}-${b}`):o.jsx(mr,{title:g.label,level:w,route:g.route,onClick:()=>$(g.route),highlightSelector:g.highlightSelector,hasTarget:g.hasTarget!==!1,open:!1,className:e(Ve.layerAccordion)},`${g.route}-${b}`)})};return o.jsxs("div",{className:e(Ve.con),children:[o.jsx(Xn,{icn:o.jsx(bc,{size:13}),route:"quick-tweaks",label:m("Theme Quick Tweaks"),classNames:e(Ve.themeQuickTweaks)}),o.jsx("div",{className:e(Ve.divider)}),o.jsxs(Is,{style:{height:"calc(100% - 120px)"},autoHide:!0,children:[o.jsx(Xt,{id:"common-elements-fields",title:m("Global Elements"),className:e(Ve.sectionAccordion),open:!["field-theme-customize","themes","multi-step"].includes(f)&&u!=="quick-tweaks",children:I(Y1)},"common-elements"),i&&o.jsx(Xt,{id:"multi-step-elements-fields",title:m("Multi-Step Elements"),className:e(Ve.sectionAccordion),open:u==="multi-step",children:I(Z1)},"multi-step-elements"),o.jsxs(Xt,{id:"individual-elements-fields",title:m("Individual Elements"),className:e(Ve.sectionAccordion),open:f==="field-theme-customize",children:[h==null?void 0:h.map(([T,w],_)=>o.jsx(mr,{title:x(w.typ),level:1,route:`quick-tweaks/${T}`,tag:T,open:T===c,onClick:()=>$("quick-tweaks",T,w),highlightSelector:`[data-dev-fld-wrp="${T}"]`,fldData:w,className:e(Ve.layerAccordion),styleOverride:zl(n,T),children:o.jsx(J1,{fldKey:T,fldData:w,styles:n,styleHandler:$})},T)),h.length===0&&o.jsx(T1,{})]},"individual-elements")]})]})}function J1({fldKey:e,fldData:n,styles:t,styleHandler:r}){return re(),o.jsx(q1,{fldKey:e})}var Q1=N.memo(X1);function e2({size:e=30,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("polyline",{className:"svg-icn",strokeWidth:n,points:"19.23 4.28 19.23 25.72 24.04 20.61 19.23 25.72 14.48 20.68"}),o.jsx("path",{fill:"currentColor",d:"M9.74,3.51H7.9L5,11.7h1.8L7.3,10h3l.54,1.73h1.83ZM7.68,8.76,8.55,6,8.8,5,9.05,6l.88,2.81Z"}),o.jsx("path",{fill:"currentColor",d:"M5.47,22.26l-.22-.45,3.64-5.93.34-.46H5.66V14.14H11.3l.23.43L8,20.44,7.56,21h3.72v1.3Z"})]})}const Ti=[{category:"basic",title:"Basic Fields"},{category:"option",title:"Option/Choice Fields"},{category:"advanced",title:"Advanced Fields"},{category:"payment",title:"Payment Fields"},{category:"captcha",title:"Spam Protection/Captcha"},{category:"element",title:"Elements"}],t2=()=>Ti.reduce((e,{category:n})=>(e[n]=[],e),{}),Ce={toolbarWrapper:{w:"100%",h:"100%",p:"10px 15px","container-type":"inline-size","container-name":"bf-toolbar"},searchSection:{mb:5,py:8},categoriesWrapper:{px:5},twoColumnGrid:{dy:"grid","grid-template-columns":"1fr 1fr",gp:10,py:10},categorySection:{mb:10,"& .btgl":{py:10,bb:"1px solid var(--bf-stroke-clr)"}},toolWrapper:{pn:"relative",flx:"align-center",ow:"hidden",w:"100%",cg:5,p:8,"&:hover":{"& .drag-icon":{w:"13px"}}},emptyStateWrapper:{ta:"center",p:20,cr:"#666",fs:14},emptyStateDescription:{mt:5,cr:"#999",fs:12},emptyIcon:{fs:40,mb:10},emptyStateTitle:{fs:18,fw:"var(--bf-font-semibold)",color:"#4b5563",mb:8},searchBar:{bs:"#7b7b7b 0px 7px 9px -9px",pn:"relative",zx:99,pb:8,clipPath:"inset(0 0 -15px 0)"},fields_search:{pn:"relative",mr:5,tn:"width .2s"},search_field:{w:"100%",h:35,oe:"none",b:"1px solid var(--bf-stroke-clr) !important",brs:"var(--bf-bdr-radius-sm) !important",pl:"27px !important",pr:"5px !important",":focus":{bs:"0px 0px 0px 1.5px var(--b-50) !important",bcr:"var(--b-92-62) !important",pr:"0px !important","& ~ .shortcut":{dy:"none"},"& ~ span svg":{cr:"var(--b-50)"}},"::placeholder":{fs:12},"::-webkit-search-cancel-button":{appearance:"none"}},search_icn:{pn:"absolute",tp:"50%",mx:6,lt:0,tm:"translateY(-50%)",cr:"var(--white-0-50)",curp:1,"& svg":{dy:"block"}},clear_icn:{pn:"absolute",tp:"50%",mx:6,rt:0,tm:"translateY(-50%)",cr:"var(--white-0-50)",curp:1,w:18,h:18,bd:"var(--white-0-83)",brs:20,backgroundPosition:"50% 50% !important",bdr:"no-repeat !important",bi:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='Black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E")`,"&:focus-visible":{oe:"2px solid var(--bf-primary)"}},sort_btn:{w:35,h:35,cr:"var(--white-0-50)",p:0,b:"none",bd:"transparent",brs:"var(--bf-bdr-radius-sm)",flxc:1,curp:1,flx:"center",":hover:not(.active)":{bd:"var(--white-0-81-32)",cr:"var(--b-53-8)"},"&.active":{bd:"var(--b-79-96)",cr:"var(--b-50)"},"&:focus-visible":{oe:"2px solid var(--bf-primary)"}},tool_icn:{dy:"flex",cr:"var(--bf-text-clr-darkgray)",mr:8},tool_label:{fs:"var(--bf-font-base)",ws:"nowrap",ow:"hidden",to:"ellipsis"},shortcut:{pn:"absolute",cr:"var(--white-0-0-64)",brs:4,px:4,py:3,fs:9,fw:600,tp:"50%",tm:"translateY(-50%)",rt:5},dragIcon:{pn:"absolute",rt:10,cr:"var(--bf-text-clr-gray)",w:0}},n2={flx:"align-center",b:"1px solid var(--bf-stroke-clr)",bd:"var(--white)",cr:"var(--bf-text-clr-darkgray)",fw:"var(--bf-font-medium)",fs:15,ws:"nowrap",wb:"keep-all",mxw:"var(--bf-tool-item-width, 200px)",h:42,brs:"var(--bf-bdr-radius-sm)",cur:"grab",tn:"all 200ms",":hover":{cr:"var(--b-50)",oe:"none",fw:"var(--bf-font-medium)",bs:"0 0 0 1.5px var(--white-0-86) inset, 0 1px 11px -4px var(--white-0-69)"},":focus":{cr:"var(--b-50)",oe:"none",bs:"0 0 0 1.5px var(--white-0-86) inset, 0 1px 11px -4px var(--white-0-69)"},":hover .tool-icn":{cr:"var(--b-50) !important"},":focus .tool-icn":{cr:"var(--b-50) !important"},":active":{bs:"0 0 0 1.5px var(--b-50) inset, 0 0 2px var(--white-2-47), 0 1px 11px -4px var(--white-0-69)"}};function r2({setNewData:e,value:n,children:t,title:r}){const i=ie(Ol);q(nt),ie(Mr);const{css:s}=re(),a=u=>{u.dataTransfer.setData("text/plain",""),ps(),i(n)},l=()=>{ps(),e(n)},d=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),e(n))},f=()=>{i(null)};return o.jsx("div",{tabIndex:0,title:r,role:"button","data-testid":`${n.fieldData.typ}-tool`,className:`${s(n2)} bf-tool-item`,draggable:!0,onClick:l,onKeyDown:d,onDragStart:a,onDragEnd:f,children:t})}var i2=N.memo(r2);function o2({size:e=24}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsx("path",{fill:"currentColor",d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519a8.001 8.001 0 0 1 15.872 0a6.5 6.5 0 0 1-2.936 12L7 21c-3.356-.274-6-3.078-6-6.5zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503l-.12-.942a6.001 6.001 0 0 0-11.903 0l-.12.942l-.805.503a4.5 4.5 0 0 0 2.029 8.309l.173.013h9.35l.173-.013zM13 13v4h-2v-4H8l4-5l4 5h-3z"})})}function hr({size:e}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 30 30",children:[o.jsx("path",{fill:"currentColor",d:"M9 15h14v2H9z"}),o.jsx("path",{fill:"currentColor",d:"M28 22H4a2.002 2.002 0 0 1-2-2v-8a2.002 2.002 0 0 1 2-2h24a2.002 2.002 0 0 1 2 2v8a2.002 2.002 0 0 1-2 2ZM4 12v8h24v-8Z"})]})}function s2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"19.4",y:"20.7",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("path",{fill:"currentColor",d:"M92.2 156.7a19.1 19.1 0 01-13.4-5.4l-37-36.2a6.9 6.9 0 01-.2-9.7 6.9 6.9 0 019.7-.1l37.2 36a5.3 5.3 0 008-.6l60.8-82a6.9 6.9 0 019.7-1.4 6.9 6.9 0 011.4 9.6l-60.9 82a19 19 0 01-13.8 7.7h-1.5z"})]})}function a2({size:e=20}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:o.jsx("path",{fill:"currentColor",d:"M16.509 16.845c.147-.507.09-.971-.155-1.316c-.225-.316-.605-.499-1.062-.52l-8.66-.113a.156.156 0 0 1-.133-.07a.194.194 0 0 1-.02-.156a.24.24 0 0 1 .203-.156l8.736-.113c1.035-.049 2.16-.886 2.554-1.913l.499-1.302a.27.27 0 0 0 .014-.168a5.689 5.689 0 0 0-10.938-.584a2.584 2.584 0 0 0-1.793-.498a2.561 2.561 0 0 0-2.223 3.18A3.634 3.634 0 0 0 0 16.751c0 .175.014.351.035.527a.174.174 0 0 0 .17.148h15.98a.22.22 0 0 0 .204-.155l.12-.427zm2.757-5.564c-.077 0-.161 0-.239.011c-.056 0-.105.042-.127.098l-.337 1.174c-.148.507-.092.971.154 1.317c.225.316.605.498 1.062.52l1.844.113c.056 0 .105.026.133.07a.203.203 0 0 1 .021.156a.24.24 0 0 1-.204.156l-1.92.112c-1.042.049-2.159.887-2.553 1.914l-.141.358c-.028.072.021.142.099.142h6.597a.174.174 0 0 0 .17-.126a4.87 4.87 0 0 0 .175-1.28a4.74 4.74 0 0 0-4.734-4.727"})})}function l2({w:e}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"currentColor",children:[o.jsx("path",{d:"M20.385 2.879a3 3 0 0 0-4.243 0L14.02 5l-.707-.708a1 1 0 1 0-1.414 1.415l5.657 5.656A1 1 0 0 0 18.97 9.95l-.707-.707l2.122-2.122a3 3 0 0 0 0-4.242Z"}),o.jsx("path",{fillRule:"evenodd",d:"M11.93 7.091L4.152 14.87a3.001 3.001 0 0 0-.587 3.415L2 19.85l1.414 1.415l1.565-1.566a3.001 3.001 0 0 0 3.415-.586l7.778-7.778L11.93 7.09Zm1.414 4.243L11.93 9.92l-6.364 6.364a1 1 0 0 0 1.414 1.414l6.364-6.364Z",clipRule:"evenodd"})]})})}function c2({size:e=24,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",strokeWidth:n,className:"svg-icn",children:[o.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),o.jsx("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]})}function gs({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"19.2",y:"23.14",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("rect",{fill:"currentColor",width:"16",height:"37.79",x:"47.65",y:"5.88",className:"cls-2",rx:"8"}),o.jsx("rect",{fill:"currentColor",width:"16",height:"37.79",x:"149.75",y:"5.88",className:"cls-2",rx:"8"}),o.jsx("rect",{width:"109.57",height:"109.57",x:"54.09",y:"58.23",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"12",rx:"54.78"}),o.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M128.64 140.19L104 116.55a3.78 3.78 0 01-1.17-2.73V80.63a3.79 3.79 0 013.79-3.79h0a3.79 3.79 0 013.79 3.79v30a3.79 3.79 0 001.16 2.73l22.28 21.41a3.78 3.78 0 01.11 5.35h0a3.79 3.79 0 01-5.32.07z"})]})}function d2({size:e}){return o.jsxs("svg",{width:e,height:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"175",height:"175",x:"20",y:"20",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"87.5"}),o.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"7",d:"M96.9 150.2a16.2 16.2 0 01-11.3-4.6L54 115a5.8 5.8 0 01-.1-8.3h0a5.8 5.8 0 018.2 0l31.5 30.5a4.5 4.5 0 006.8-.5L152 67.1a5.9 5.9 0 018.2-1.2h0a5.9 5.9 0 011.2 8.2L110 143.7a16.2 16.2 0 01-11.7 6.5h-1.3z"})]})}function u2({w:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("line",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",x1:"202.89",y1:"107.5",x2:"125.35",y2:"107.5"}),o.jsx("line",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",x1:"89.65",y1:"107.5",x2:"12.11",y2:"107.5"}),o.jsx("path",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",d:"M125.36,107.5A17.86,17.86,0,1,1,107.5,89.64,17.84,17.84,0,0,1,125.36,107.5Z"})]})}function f2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("rect",{width:"169.7",height:"169.7",x:"22.7",y:"23.1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",rx:"30"}),o.jsx("path",{fill:"currentColor",d:"M107.6 152.4a16.2 16.2 0 01-12.1-5.5L46.8 93.4a7.6 7.6 0 010-10.1 6.1 6.1 0 019.2 0l48.6 53.4a4.2 4.2 0 002.4 1.3 3.9 3.9 0 003.4-1.3L159 83.3a6.1 6.1 0 019.2 0 7.7 7.7 0 010 10.1L119.6 147a16.2 16.2 0 01-12 5.5z"})]})}function p2({stroke:e=1.5,size:n=25}){return o.jsxs("svg",{width:n,height:n,viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("path",{d:"M22.3 16H8.7C7.76112 16 7 16.5223 7 17.1667V21.8333C7 22.4777 7.76112 23 8.7 23H22.3C23.2389 23 24 22.4777 24 21.8333V17.1667C24 16.5223 23.2389 16 22.3 16Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M11.2373 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M12.2057 18.6885L10.2686 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M10.2686 18.6885L12.2057 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M15.7109 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M16.6793 18.6885L14.7422 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M14.7422 18.6885L16.6793 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M20.1855 18.104V20.4417",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M21.1539 18.6885L19.2168 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M19.2168 18.6885L21.1539 19.8573",stroke:"currentColor",strokeWidth:"0.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22 13V5.36346C22 4.7848 21.7893 4.22985 21.4142 3.82068C21.0391 3.41151 20.5304 3.18164 20 3.18164H4C3.46957 3.18164 2.96086 3.41151 2.58579 3.82068C2.21071 4.22985 2 4.7848 2 5.36346V18.4544C2 19.6544 2.9 20.6362 4 20.6362H4.5",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("path",{d:"M22 6.45459L13.03 12.6728C12.7213 12.8838 12.3643 12.9957 12 12.9957C11.6357 12.9957 11.2787 12.8838 10.97 12.6728L2 6.45459",stroke:"currentColor",strokeWidth:e,strokeLinecap:"round",strokeLinejoin:"round"})]})}function b2({size:e}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",height:e,width:e,viewBox:"0 0 215 215",children:o.jsx("path",{fill:"none",strokeWidth:"16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M37 134s8.8-8.8 35.3-8.8 44 17.6 70.5 17.6 35.3-8.8 35.3-8.8V28.1s-8.9 8.9-35.3 8.9-44.1-17.7-70.6-17.7S37 28.1 37 28.1zM37 195.7V134"})})}function h2({size:e}){return o.jsxs("svg",{version:"1.1",id:"fi_1035147",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 502.498 502.498",stroke:"currentColor",width:e,height:e,fill:"currentColor",children:[o.jsx("g",{children:o.jsx("g",{children:o.jsxs("g",{children:[o.jsx("path",{d:`M232.04,37.666c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316
1367 s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257
1368 s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48
1369 c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489L255.248,2.7
1370 c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489
1371 l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48L232.04,37.666z`,stroke:"currentColor"}),o.jsx("path",{d:`M278.067,461.249l-13.577-2.075c-1.455-0.223-2.703-1.157-3.328-2.489l-5.915-12.606
1372 c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489
1373 l-13.577,2.075c-1.633,0.252-2.989,1.395-3.513,2.962s-0.129,3.296,1.024,4.48l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796
1374 l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0
1375 l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.791,1.192-3.796
1376 l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48S279.7,461.501,278.067,461.249z`}),o.jsx("path",{d:`M124.538,67.512c0.981,1.003,1.426,2.412,1.201,3.796l-2.348,14.38c-0.273,1.67,0.432,3.349,1.815,4.323
1377 c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488
1378 c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.348-14.38c-0.223-1.386,0.226-2.795,1.209-3.796l10.099-10.355
1379 c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489
1380 l-5.914-12.606c-0.737-1.523-2.281-2.49-3.972-2.49s-3.235,0.967-3.972,2.49l-5.967,12.606c-0.625,1.333-1.873,2.266-3.328,2.489
1381 l-13.577,2.074c-1.635,0.249-2.993,1.391-3.519,2.959c-0.526,1.568-0.132,3.298,1.021,4.483L124.538,67.512z`}),o.jsx("path",{d:`M391.263,431.959l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489l-5.914-12.597c-0.728-1.548-2.284-2.536-3.995-2.536
1382 c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.597c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074
1383 c-1.635,0.249-2.993,1.391-3.519,2.959s-0.132,3.298,1.021,4.483l10.099,10.355c0.981,1.003,1.426,2.412,1.201,3.796
1384 l-2.348,14.38c-0.273,1.67,0.432,3.349,1.815,4.323c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488
1385 c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.348-14.38
1386 c-0.226-1.384,0.22-2.793,1.201-3.796l10.099-10.355c1.153-1.184,1.548-2.912,1.024-4.48S392.897,432.211,391.263,431.959z`}),o.jsx("path",{d:`M44.428,143.739c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316
1387 c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488
1388 c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796
1389 l10.108-10.355c1.153-1.185,1.547-2.915,1.021-4.483c-0.526-1.568-1.885-2.71-3.519-2.959l-13.577-2.074
1390 c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546
1391 l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962
1392 c-0.524,1.567-0.129,3.296,1.024,4.48L44.428,143.739z`}),o.jsx("path",{d:`M472.698,346.632l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489l-5.923-12.606
1393 c-0.728-1.548-2.284-2.536-3.994-2.536c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.606c-0.627,1.335-1.878,2.269-3.337,2.489
1394 l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962s-0.129,3.296,1.024,4.48l10.108,10.355c0.98,1.003,1.426,2.412,1.201,3.796
1395 l-2.348,14.38c-0.271,1.667,0.433,3.343,1.814,4.316c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488
1396 c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.821,3.298,0.724,4.682-0.25c1.384-0.974,2.089-2.653,1.815-4.323
1397 l-2.348-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.108-10.355c1.153-1.185,1.547-2.915,1.021-4.483
1398 C475.691,348.023,474.333,346.881,472.698,346.632z`}),o.jsx("path",{d:`M49.102,280.848c1.381-0.973,2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.099-10.355
1399 c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489
1400 l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606
1401 c-0.625,1.333-1.873,2.266-3.328,2.489L3.741,240.56c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48
1402 l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257
1403 l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488C45.906,281.92,47.721,281.821,49.102,280.848z`}),o.jsx("path",{d:`M501.246,248.001c1.153-1.184,1.548-2.913,1.024-4.48c-0.524-1.567-1.88-2.71-3.513-2.962l-13.577-2.074
1404 c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546
1405 l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962
1406 c-0.524,1.567-0.129,3.296,1.024,4.48l10.099,10.355c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38
1407 c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488
1408 c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796
1409 L501.246,248.001z`}),o.jsx("path",{d:`M94.348,344.822l-13.577-2.074c-1.458-0.22-2.71-1.154-3.337-2.489l-5.914-12.597c-0.728-1.548-2.284-2.536-3.994-2.536
1410 c-1.71,0-3.267,0.988-3.995,2.536l-5.914,12.57c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.101
1411 c-1.635,0.249-2.993,1.391-3.519,2.959c-0.526,1.568-0.132,3.298,1.021,4.483l10.108,10.355c0.977,1.004,1.42,2.413,1.192,3.796
1412 l-2.348,14.424c-0.273,1.67,0.432,3.349,1.815,4.323c1.384,0.974,3.202,1.071,4.682,0.25l11.732-6.488
1413 c1.322-0.749,2.936-0.766,4.273-0.044l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316
1414 l-2.348-14.38c-0.226-1.384,0.22-2.793,1.201-3.796l10.099-10.355c1.153-1.184,1.548-2.913,1.024-4.48
1415 C97.336,346.217,95.981,345.074,94.348,344.822z`}),o.jsx("path",{d:`M430.564,141.929c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.424c-0.271,1.667,0.433,3.343,1.814,4.316
1416 s3.195,1.073,4.674,0.257l11.732-6.488c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.482,0.842,3.315,0.755,4.711-0.222
1417 c1.396-0.977,2.105-2.671,1.821-4.351l-2.339-14.38c-0.228-1.383,0.214-2.792,1.192-3.796l10.108-10.355
1418 c1.153-1.185,1.547-2.915,1.021-4.483c-0.526-1.568-1.885-2.71-3.519-2.959l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489
1419 l-5.914-12.597c-0.726-1.553-2.285-2.546-3.999-2.546c-1.714,0-3.273,0.992-3.999,2.546l-5.914,12.597
1420 c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48
1421 L430.564,141.929z`}),o.jsx("path",{d:`M166.681,421.048l-13.577-2.074c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606
1422 c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489
1423 l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962c-0.524,1.567-0.129,3.296,1.024,4.48l10.099,10.355
1424 c0.977,1.004,1.42,2.413,1.192,3.796l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316s3.195,1.073,4.674,0.257l11.732-6.488
1425 c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257c1.381-0.973,2.085-2.648,1.814-4.316
1426 l-2.339-14.389c-0.228-1.383,0.214-2.791,1.192-3.796l10.081-10.328c1.163-1.18,1.566-2.913,1.045-4.485
1427 C169.676,422.45,168.318,421.301,166.681,421.048z`}),o.jsx("path",{d:`M342.535,60.397l-2.339,14.38c-0.271,1.667,0.433,3.343,1.814,4.316c1.381,0.973,3.195,1.073,4.674,0.257l11.732-6.488
1428 c1.329-0.735,2.943-0.735,4.273,0l11.732,6.488c1.479,0.816,3.294,0.716,4.674-0.257s2.085-2.648,1.814-4.316l-2.339-14.38
1429 c-0.228-1.383,0.214-2.792,1.192-3.796l10.081-10.328c1.153-1.184,1.548-2.913,1.024-4.48s-1.88-2.71-3.513-2.962l-13.577-2.074
1430 c-1.455-0.223-2.703-1.157-3.328-2.489l-5.914-12.606c-0.726-1.553-2.285-2.546-3.999-2.546s-3.273,0.992-3.999,2.546
1431 l-5.914,12.606c-0.625,1.333-1.873,2.266-3.328,2.489l-13.577,2.074c-1.633,0.252-2.989,1.395-3.513,2.962
1432 c-0.524,1.567-0.129,3.296,1.024,4.48l10.116,10.328C342.321,57.606,342.763,59.015,342.535,60.397z`}),o.jsx("path",{d:`M92.353,285.501c0,9.751,7.904,17.655,17.655,17.655h35.31c9.751,0,17.655-7.904,17.655-17.655v-26.483
1433 c0-4.875-3.952-8.828-8.828-8.828H136.49c-4.875,0-8.828,3.952-8.828,8.828c0,4.875,3.952,8.828,8.828,8.828h8.828v17.655h-35.31
1434 V214.88h35.31c0,4.875,3.952,8.828,8.828,8.828c4.875,0,8.828-3.952,8.828-8.828c0-9.751-7.904-17.655-17.655-17.655h-35.31
1435 c-9.751,0-17.655,7.904-17.655,17.655V285.501z`}),o.jsx("path",{d:`M242.421,267.846v-35.31c0-19.501-15.809-35.31-35.31-35.31h-26.483c-4.875,0-8.828,3.952-8.828,8.828v88.276
1436 c0,4.875,3.952,8.828,8.828,8.828h26.483C226.612,303.156,242.421,287.347,242.421,267.846z M224.766,267.846
1437 c0,9.751-7.904,17.655-17.655,17.655h-17.655V214.88h17.655c9.751,0,17.655,7.904,17.655,17.655V267.846z`}),o.jsx("path",{d:`M304.215,197.225h-35.31c-4.875,0-8.828,3.952-8.828,8.828v88.276c0,4.875,3.952,8.828,8.828,8.828
1438 c4.875,0,8.828-3.952,8.828-8.828v-26.483h26.483c14.626,0,26.483-11.857,26.483-26.483v-17.655
1439 C330.697,209.082,318.841,197.225,304.215,197.225z M313.042,241.363c0,4.875-3.952,8.828-8.828,8.828h-26.483v-35.31h26.483
1440 c4.875,0,8.828,3.952,8.828,8.828V241.363z`}),o.jsx("path",{d:`M383.663,197.225h-35.31c-4.875,0-8.828,3.952-8.828,8.828v88.276c0,4.875,3.952,8.828,8.828,8.828
1441 c4.875,0,8.828-3.952,8.828-8.828v-26.483h26.483c4.875,0,8.828,3.952,8.828,8.828v17.655c0,4.875,3.952,8.828,8.828,8.828
1442 c4.875,0,8.828-3.952,8.828-8.828v-17.655c-0.023-6.536-2.477-12.829-6.885-17.655c4.408-4.826,6.862-11.119,6.885-17.655
1443 v-17.655C410.146,209.082,398.289,197.225,383.663,197.225z M392.49,241.363c0,4.875-3.952,8.828-8.828,8.828H357.18v-35.31
1444 h26.483c4.875,0,8.828,3.952,8.828,8.828V241.363z`})]})})}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{}),o.jsx("g",{})]})}function _2({size:e=12}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[o.jsxs("defs",{children:[o.jsxs("linearGradient",{id:"logosHcaptchaIcon0",x1:"49.979%",x2:"49.979%",y1:"-702.201%",y2:"97.969%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon1",x1:"50%",x2:"50%",y1:"-602.243%",y2:"197.926%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon2",x1:"49.979%",x2:"49.979%",y1:"-602.243%",y2:"197.926%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon3",x1:"50.021%",x2:"50.021%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon4",x1:"50%",x2:"50%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon5",x1:"49.979%",x2:"49.979%",y1:"-502.498%",y2:"298.01%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon6",x1:"50.021%",x2:"50.021%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon7",x1:"50%",x2:"50%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon8",x1:"49.979%",x2:"49.979%",y1:"-402.285%",y2:"397.884%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcon9",x1:"50.021%",x2:"50.021%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcona",x1:"50%",x2:"50%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconb",x1:"49.979%",x2:"49.979%",y1:"-302.328%",y2:"497.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconc",x1:"50.021%",x2:"50.021%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcond",x1:"50%",x2:"50%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcone",x1:"49.979%",x2:"49.979%",y1:"-202.328%",y2:"597.842%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconf",x1:"50%",x2:"50%",y1:"-102.37%",y2:"697.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIcong",x1:"49.979%",x2:"49.979%",y1:"-102.37%",y2:"697.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]}),o.jsxs("linearGradient",{id:"logosHcaptchaIconh",x1:"49.979%",x2:"49.979%",y1:"-2.37%",y2:"797.799%",children:[o.jsx("stop",{offset:"0%",stopColor:"#00D4BF"}),o.jsx("stop",{offset:"100%",stopColor:"#0074BF"})]})]}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M160.007 223.993h32.007V256h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M128 223.993h32.007V256H128z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M96.007 223.993h32.007V256H96.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon0)",d:"M64 223.993h32.007V256H64z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon1)",d:"M192 192h31.993v32.007H192z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M160.007 192h32.007v32.007h-32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M128 192h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M96.007 192h32.007v32.007H96.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M64 192h32.007v32.007H64z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon2)",d:"M32.007 192h32.007v32.007H32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon3)",d:"M223.993 160.007H256V192h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon4)",d:"M192 160.007h31.993V192H192z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M160.007 160.007h32.007V192h-32.007zm-32.007 0h32.007V192H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M96.007 160.007h32.007V192H96.007zm-32.007 0h32.007V192H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M32.007 160.007h32.007V192H32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon5)",d:"M0 160.007h32.007V192H0z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon6)",d:"M223.993 128H256v32.007h-32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon7)",d:"M192 128h31.993v32.007H192z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M160.007 128h32.007v32.007h-32.007zM128 128h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M96.007 128h32.007v32.007H96.007zM64 128h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M32.007 128h32.007v32.007H32.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon8)",d:"M0 128h32.007v32.007H0z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcon9)",d:"M223.993 96.007H256v32.007h-32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcona)",d:"M192 96.007h31.993v32.007H192z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M160.007 96.007h32.007v32.007h-32.007zm-32.007 0h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M96.007 96.007h32.007v32.007H96.007zm-32.007 0h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M32.007 96.007h32.007v32.007H32.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIconb)",d:"M0 96.007h32.007v32.007H0z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconc)",d:"M223.993 64H256v32.007h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIcond)",d:"M192 64h31.993v32.007H192z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M160.007 64h32.007v32.007h-32.007zM128 64h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M96.007 64h32.007v32.007H96.007zM64 64h32.007v32.007H64z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M32.007 64h32.007v32.007H32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcone)",d:"M0 64h32.007v32.007H0z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIconf)",d:"M192 32.007h31.993v32.007H192z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M160.007 32.007h32.007v32.007h-32.007z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M128 32.007h32.007v32.007H128z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M96.007 32.007h32.007v32.007H96.007z"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M64 32.007h32.007v32.007H64z",opacity:".8"}),o.jsx("path",{fill:"url(#logosHcaptchaIcong)",d:"M32.007 32.007h32.007v32.007H32.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M160.007 0h32.007v32.007h-32.007z",opacity:".5"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M128 0h32.007v32.007H128z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M96.007 0h32.007v32.007H96.007z",opacity:".7"}),o.jsx("path",{fill:"url(#logosHcaptchaIconh)",d:"M64 0h32.007v32.007H64z",opacity:".5"}),o.jsx("path",{fill:"#FFF",d:"m84.25 117.841l8.912-19.951c3.251-5.12 2.818-11.378-.745-14.9a9.13 9.13 0 0 0-1.57-1.26a9.847 9.847 0 0 0-8.223-.934a13.437 13.437 0 0 0-7.409 5.756s-12.19 28.445-16.755 41.285c-4.565 12.841-2.709 36.274 14.778 53.828c18.556 18.557 45.47 22.837 62.605 9.942a10.755 10.755 0 0 0 2.018-1.354l52.825-44.143c2.574-2.154 6.38-6.502 2.953-11.487c-3.427-4.984-9.63-1.557-12.19.095l-30.423 22.12a1.354 1.354 0 0 1-1.964-.231a3.738 3.738 0 0 1 .298-4.47l46.636-39.578c4.063-3.63 4.592-8.9 1.354-12.516c-3.237-3.616-8.249-3.44-12.299.23l-41.989 32.833a1.87 1.87 0 0 1-2.709-.352a2.587 2.587 0 0 1-.217-3.44l47.557-46.148a9.305 9.305 0 0 0 .474-13.125a8.886 8.886 0 0 0-6.461-2.709a9.481 9.481 0 0 0-6.678 2.71l-48.531 45.578c-1.165 1.165-3.44 0-3.712-1.355c-.1-.493.058-1.004.42-1.354L160.4 70.556a9.17 9.17 0 1 0-12.936-12.976l-56.428 62.307c-2.018 2.018-4.998 2.113-6.42.948a2.113 2.113 0 0 1-.366-2.994Z"})]})}function $2({size:e=32,stroke:n=4}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 48 48",children:o.jsxs("g",{fill:"none",children:[o.jsx("path",{fill:"currentColor",d:"M44 22a2 2 0 1 0-4 0h4ZM24 8a2 2 0 1 0 0-4v4Zm15 32H9v4h30v-4ZM8 39V9H4v30h4Zm32-17v17h4V22h-4ZM9 8h15V4H9v4Zm0 32a1 1 0 0 1-1-1H4a5 5 0 0 0 5 5v-4Zm30 4a5 5 0 0 0 5-5h-4a1 1 0 0 1-1 1v4ZM8 9a1 1 0 0 1 1-1V4a5 5 0 0 0-5 5h4Z"}),o.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:n,d:"m6 35l10.693-9.802a2 2 0 0 1 2.653-.044L32 36m-4-5l4.773-4.773a2 2 0 0 1 2.615-.186L42 31"}),o.jsx("path",{fill:"currentColor",d:"M31.414 9.586a2 2 0 1 0-2.828 2.828l2.828-2.828ZM34 15l-1.414 1.414a2 2 0 0 0 2.828 0L34 15Zm9.414-6.586a2 2 0 1 0-2.828-2.828l2.828 2.828Zm-14.828 4l4 4l2.828-2.828l-4-4l-2.828 2.828Zm6.828 4l8-8l-2.828-2.828l-8 8l2.828 2.828Z"})]})})}function m2({w:e,stroke:n=2.2}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"svg-icn",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"25.75",y:"30.43",width:"163.51",height:"154.14",rx:"20"}),o.jsx("circle",{stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16px",className:"svg-icn",cx:"130.56",cy:"86.45",r:"16.37"}),o.jsx("path",{strokeWidth:"16px",className:"svg-icn",strokeMiterlimit:"10",d:"M25.78,142.72l34.39-22.6a23.55,23.55,0,0,1,25.38-.32l25.26,15.69a23.54,23.54,0,0,0,23.65.71l54.75-29.62"})]})}function g2({size:e=80,stroke:n=3}){return o.jsx("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 80 80",xmlSpace:"preserve",height:e,width:e,children:o.jsx("path",{strokeWidth:n,className:"svg-icn",d:"M74.79,39.15v21.4c0,0.36-0.07,0.46-0.44,0.46c-3.59-0.02-7.21-0.02-10.8,0c-0.41,0-0.51-0.1-0.51-0.51 c0.02-6.94,0-13.86,0.02-20.79c0-2.89-0.97-5.31-3.25-7.09c-2.62-2.06-5.56-2.5-8.64-1.21c-3.03,1.26-4.76,3.62-5.24,6.89 c-0.05,0.49-0.07,0.99-0.07,1.48c0,6.89,0,13.78,0.02,20.7c0,0.41-0.1,0.53-0.53,0.53c-3.57-0.02-7.16-0.02-10.75,0 c-0.36,0-0.46-0.1-0.46-0.49V39.73c0.02-2.89-0.97-5.34-3.28-7.13c-2.62-2.04-5.56-2.48-8.61-1.19c-3.03,1.26-4.76,3.62-5.22,6.87 c-0.07,0.51-0.07,1.02-0.07,1.53c0,6.89-0.02,13.81,0,20.7c0,0.41-0.1,0.51-0.51,0.51c-3.59-0.02-7.18-0.02-10.77,0 c-0.36,0-0.46-0.1-0.46-0.46c0.02-7.3-0.05-14.61,0.05-21.94c0.05-4.97,1.89-9.37,5.29-13.01c4.54-4.9,10.19-7.09,16.86-6.53 c4.76,0.39,8.83,2.35,12.28,5.63c0.24,0.24,0.36,0.24,0.61,0c4.78-4.46,10.41-6.38,16.91-5.53c8.83,1.14,15.8,7.93,17.28,16.72 C74.69,36.99,74.79,38.06,74.79,39.15z"})})}function x2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("path",{fill:"currentColor",d:"M165.8 12.7v-1.3a8 8 0 00-16 0v1.3H63.5v-1.3a8 8 0 00-16 0v1.3a38 38 0 00-36.4 38v115a38 38 0 0038 38h115a38 38 0 0038-38v-115a38 38 0 00-36.4-38zm-118.2 16v4.5a8 8 0 0016 0v-4.5h86.2v4.5a8 8 0 0016 0v-4.5a22 22 0 0120.4 22V69h-159V50.7a22 22 0 0120.4-22zm116.6 159h-115a22 22 0 01-22-22V85h159v80.7a22 22 0 01-22 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M89.8 108.4H78.3q-4 6.4-15.4 8.8v12q4.2-.5 11.7-3.9v25.4H61.4v11.9h41v-12H89.8zM153 135.2a17.8 17.8 0 003-9.8 15.4 15.4 0 00-5.5-12.3q-5.5-4.7-14.2-4.7a22 22 0 00-13.9 4.6q-5.9 4.6-7.4 14l13.5 2.6q.7-9.2 6.6-9.2a5 5 0 013.8 1.5 5.7 5.7 0 011.5 4.1 8.8 8.8 0 01-1.7 5.1q-1.7 2.4-7.1 7t-7.5 5.8l-9 6.4v12.3h40.6l.6-13.1h-20.8q14.5-9.6 17.5-14.3z",className:"cls-1"})]})}function v2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg",id:"Layer_1","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M39.6 85.4h7.8v51.1h11.5V77.9l-19.5 1.7.2 5.8zM106.1 115.1l3.9-3.1q7.5-6 9.8-10a17.1 17.1 0 002.4-8.8 14 14 0 00-5.6-11.6q-5.6-4.4-14.7-4.4a48.7 48.7 0 00-17 3.3V89q8.4-4.3 14.7-4.3a11.3 11.3 0 017.5 2.3 8.3 8.3 0 012.8 6.7 15.1 15.1 0 01-3.3 9.2 61.5 61.5 0 01-8.4 8.9l-4.7 4.2a72.3 72.3 0 00-10.1 11.3v9.2H122v-9.2H96.5a16.1 16.1 0 014-6.8 57.1 57.1 0 015.6-5.4zM168.2 109a22 22 0 00-8.5-3.6q6.4-2 9.6-5.7a12.7 12.7 0 003.2-8.7 12 12 0 00-5-10q-4.9-3.7-14-3.7a57.3 57.3 0 00-10.4 1 43.4 43.4 0 00-5.7 1.6v7.9a32.9 32.9 0 0113.5-3.3c3.4 0 5.8.7 7.4 2.2a7.4 7.4 0 012.4 5.6 9.8 9.8 0 01-6.2 9.1q-3 1.2-9.5 1.2h-3v7h3.5q7 0 10.2 1.4a11 11 0 014.9 4 10.7 10.7 0 011.7 6 8.7 8.7 0 01-3.2 7 12.5 12.5 0 01-8.2 2.7q-5.7 0-14.3-3.3v8.6a51.2 51.2 0 009.4 1.7l6.4.2q11.6 0 16.8-5.2a16 16 0 005.1-11.7 14.6 14.6 0 00-1.5-6.6 15.8 15.8 0 00-4.6-5.4z",className:"cls-1"})]})}function y2({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M94.61,20.9H52.3c-7.26,0-13.14-4.48-13.14-10h0C39.16,5.38,45,.9,52.3.9H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,16.42,101.87,20.9,94.61,20.9Z"}),o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M94.61,214.1H52.3c-7.26,0-13.14-4.48-13.14-10h0c0-5.52,5.88-10,13.14-10H94.61c7.26,0,13.15,4.48,13.15,10h0C107.76,209.62,101.87,214.1,94.61,214.1Z"}),o.jsx("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"161.34",width:"20",height:"35.76"}),o.jsx("rect",{className:"cls-1",fill:"currentColor",x:"63.46",y:"20.9",width:"20",height:"35.76"}),o.jsx("rect",{className:"cls-2",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),o.jsx("text",{className:"cls-3",fill:"currentColor",fontSize:"110.35",fontFamily:"Calibri-Bold, Calibri",fontWeight:"700",transform:"translate(26.36 162.55)",children:"***"})]})}function w2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 163.4 163.6",children:[o.jsx("defs",{}),o.jsx("path",{fill:"currentColor",d:"M124.4 28.1A47.8 47.8 0 0081 0H28.4A8.5 8.5 0 0020 7.1L.1 126.4a8.5 8.5 0 008.4 10h27.6l-2.9 17.3a8.5 8.5 0 008.4 10h34a8.5 8.5 0 008.4-7.2l5-30.2a4.3 4.3 0 014.2-3.6h22.4a47.7 47.7 0 008.8-94.6zm-86 94.6H14.5L32 17.2a4.3 4.3 0 014.2-3.6H81a34 34 0 110 68.2H52.4A8.5 8.5 0 0044 89zm111-42.1a34 34 0 01-33.7 28.5H85.3a8.5 8.5 0 00-8.4 7L71.3 150H47.6l8.5-51a4.3 4.3 0 014.2-3.6H81a48.7 48.7 0 005.6-.3A48 48 0 00128 55.6v-.1a46.5 46.5 0 00.6-5.8.8.8 0 000-.1 47.6 47.6 0 00-.1-5.7v-.3a1.2 1.2 0 010-.2 34.4 34.4 0 0114.2 10.8 33.7 33.7 0 016.6 26.4z"})]})}function S2({size:e=24,stroke:n=2}){return o.jsx("svg",{width:e,height:e,viewBox:"0 0 24 24",strokeWidth:n,className:"svg-icn",children:o.jsx("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})})}function j2({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),o.jsx("rect",{className:"cls-2",fill:"currentColor",x:"71.6",y:"72.59",width:"70.62",height:"70.62",rx:"34.5"})]})}function C2({w:e,h:n}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:n,viewBox:"0 0 176.53 215",children:[o.jsx("polygon",{fill:"currentColor",fillRule:"evenodd",points:"74.38 65.67 60.27 117.95 110.33 85.52 77.51 207.9 116.45 207.9 170.23 7.1 74.38 65.67"}),o.jsx("polygon",{fill:"currentColor",fillRule:"evenodd",points:"17.75 165.25 6.3 207.9 62.93 207.9 86.1 121.13 17.79 165.21 17.75 165.25"})]})}function I2({size:e=14,strokeWidth:n=2}){return o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-repeat",children:[o.jsx("polyline",{points:"17 1 21 5 17 9"}),o.jsx("path",{d:"M3 11V9a4 4 0 0 1 4-4h14"}),o.jsx("polyline",{points:"7 23 3 19 7 15"}),o.jsx("path",{d:"M21 13v2a4 4 0 0 1-4 4H3"})]})}function k2({size:e=14}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("rect",{x:"1",y:"7",width:"32",height:"20",rx:"1",stroke:"currentColor",strokeWidth:"2"}),o.jsx("rect",{x:"4.75",y:"15.75",width:"24.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"4.75",y:"10.75",width:"24.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"18.75",y:"20.75",width:"10.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("rect",{x:"4.75",y:"20.75",width:"10.5",height:"1.5",rx:"0.75",stroke:"currentColor",strokeWidth:"1.5"})]})}function T2({size:e=32}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 16 16",children:o.jsx("path",{fill:"currentColor",d:"M9.021 1.772a2.445 2.445 0 0 1 3.458 3.457l-.272.271l.086.086a2 2 0 0 1 0 2.828l-1.44 1.44a.5.5 0 0 1-.707-.707l1.44-1.44a1 1 0 0 0 0-1.414l-.086-.086l-5.646 5.647a.5.5 0 0 1-.233.131l-4 1a.5.5 0 0 1-.595-.643l1.25-3.75a.5.5 0 0 1 .12-.195l6.625-6.625Zm2.75.707a1.445 1.445 0 0 0-2.042 0L3.187 9.02l-.925 2.774l2.982-.745l6.527-6.527a1.445 1.445 0 0 0 0-2.043ZM4.967 15c-1.235 0-2.208-.566-2.855-1.107l1.284-.32a3.2 3.2 0 0 0 1.57.427c.406 0 .824-.164 1.27-.457c.447-.293.878-.687 1.314-1.095l.113-.107c.385-.361.784-.737 1.166-.996c.408-.278.95-.53 1.517-.311c.376.144.62.41.791.736c.161.306.272.688.38 1.105c.05.19.133.374.23.498a.46.46 0 0 0 .114.112c.025.015.036.015.039.015c.122 0 .331-.082.63-.286c.185-.126.344-.252.502-.379c.098-.078.197-.157.302-.235c.279-.209.52-.349.697-.438a3.05 3.05 0 0 1 .278-.124l.02-.008l.007-.002l.003-.001h.001l.16.473l-.159-.474a.5.5 0 0 1 .321.947l-.004.002a2.141 2.141 0 0 0-.175.08c-.13.064-.321.174-.55.346c-.059.043-.135.104-.223.174c-.181.143-.409.324-.618.466c-.31.212-.741.46-1.192.46c-.436 0-.751-.265-.946-.517a2.435 2.435 0 0 1-.405-.858c-.11-.423-.196-.7-.296-.89c-.09-.168-.17-.232-.266-.27c-.082-.03-.245-.033-.595.206c-.313.212-.655.533-1.058.912l-.1.093c-.431.405-.92.855-1.449 1.202c-.53.348-1.14.621-1.818.621Z"})})}function N2({size:e}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 15 15",children:o.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.3 7.5a1.8 1.8 0 1 1-3.6 0a1.8 1.8 0 0 1 3.6 0m.905.5a2.751 2.751 0 0 1-5.41 0H.5a.5.5 0 0 1 0-1h5.295a2.751 2.751 0 0 1 5.41 0H14.5a.5.5 0 0 1 0 1z",clipRule:"evenodd"})})}function E2({size:e="14px",strokeWidth:n=0}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:n,children:o.jsx("path",{d:"M5 5v4h14V5h-2v2H7V5zM5 19v-4h14v4h-2v-2H7v2zM7 11h10v2H7z"})})}function M2({size:e=24}){return o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 24 24",children:o.jsxs("g",{fill:"none",fillRule:"evenodd",children:[o.jsx("path",{d:"M24 0v24H0V0h24ZM12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035c-.01-.004-.019-.001-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427c-.002-.01-.009-.017-.017-.018Zm.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093c.012.004.023 0 .029-.008l.004-.014l-.034-.614c-.003-.012-.01-.02-.02-.022Zm-.715.002a.023.023 0 0 0-.027.006l-.006.014l-.034.614c0 .012.007.02.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01l-.184-.092Z"}),o.jsx("path",{fill:"currentColor",d:"M6.936 3.715C8.326 2.567 10.24 2 12.404 2c1.746 0 3.49.275 5.259.981a1 1 0 0 1 .629.929v3.64c0 1.244-1.286 1.916-2.291 1.5c-1.198-.494-2.532-.759-3.597-.759c-.217 0-.386.016-.512.04c-.05.01-.089.02-.12.03c.089.072.25.17.528.29c.309.134.68.263 1.129.416l.061.02c.42.144.892.305 1.367.495c.99.396 2.094.954 2.95 1.882c.885.957 1.445 2.241 1.45 3.954v.003c0 2.065-.835 3.755-2.305 4.904C15.511 21.454 13.542 22 11.34 22a14.62 14.62 0 0 1-5.777-1.21a1 1 0 0 1-.604-.918V16.18c0-1.241 1.297-1.937 2.322-1.47c1.39.636 2.901 1.038 4.059 1.038c.497 0 .761-.073.87-.134a.255.255 0 0 0 .017-.01a.352.352 0 0 0 .005-.062v-.005a.34.34 0 0 0-.04-.05c-.084-.086-.25-.205-.56-.353a13.21 13.21 0 0 0-1.112-.444a146.78 146.78 0 0 0-.22-.08c-.373-.135-.782-.283-1.189-.448c-.973-.395-2.066-.935-2.916-1.81c-.882-.908-1.453-2.127-1.453-3.753c0-2.026.782-3.717 2.194-4.883ZM8.21 5.257c-.918.758-1.467 1.866-1.467 3.34c0 1.104.366 1.824.888 2.361c.555.571 1.334.985 2.233 1.349c.369.15.736.283 1.107.417l.234.085c.437.16.888.329 1.288.519c.713.34 1.74.97 1.74 2.213c0 .375-.083.744-.277 1.077a2.015 2.015 0 0 1-.766.74c-.561.314-1.243.39-1.85.39c-1.373 0-2.957-.408-4.38-.998v2.447c1.503.562 3.001.803 4.38.803c1.898 0 3.388-.473 4.381-1.249c.964-.754 1.537-1.852 1.538-3.327c-.005-1.234-.39-2.03-.92-2.602c-.556-.603-1.334-1.026-2.223-1.382c-.426-.17-.855-.316-1.285-.463l-.047-.017a17.654 17.654 0 0 1-1.278-.473c-.387-.168-.809-.387-1.142-.703c-.362-.344-.634-.819-.634-1.424c0-.72.328-1.323.936-1.683c.52-.308 1.157-.385 1.739-.385c1.203 0 2.597.259 3.888.728V4.608C15.002 4.177 13.717 4 12.404 4c-1.836 0-3.255.481-4.195 1.257Z"})]})})}function z2({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",d:"M38.87,53.59H175a30,30,0,0,1,30,30v77.75a0,0,0,0,1,0,0H38.87a30,30,0,0,1-30-30V83.59A30,30,0,0,1,38.87,53.59Z"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,20.86H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.52,5.89-10,13.14-10H94.36c7.26,0,13.14,4.48,13.14,10h0C107.5,16.38,101.62,20.86,94.36,20.86Z"}),o.jsx("path",{className:"cls-2",fill:"currentColor",d:"M94.36,214.07H52c-7.25,0-13.14-4.48-13.14-10h0c0-5.53,5.89-10,13.14-10H94.36c7.26,0,13.14,4.47,13.14,10h0C107.5,209.59,101.62,214.07,94.36,214.07Z"}),o.jsx("rect",{className:"cls-2",fill:"currentColor",x:"63.2",y:"11.27",width:"20",height:"185.79"}),o.jsx("polyline",{className:"cls-2",fill:"currentColor",points:"196.96 114.03 154.44 156.55 202.68 156.55 202.68 114.03 199 114.03"})]})}function A2({size:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",strokeWidth:"16",stroke:"currentColor",strokeMiterlimit:"10",x:"19.91",y:"20.9",width:"174",height:"174",rx:"85"}),o.jsx("path",{fill:"currentColor",className:"cls-2",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"4",d:"M138.3,151.06,99.23,113.52a6,6,0,0,1-1.85-4.34V56.47a6,6,0,0,1,6-6h0a6,6,0,0,1,6,6v47.59a6,6,0,0,0,1.85,4.33l35.37,34a6,6,0,0,1,.17,8.51h0A6,6,0,0,1,138.3,151.06Z"})]})}function O2({w:e}){return o.jsxs("svg",{id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x:"21.93",y:"25.06",width:"171.15",height:"164.89",rx:"20"}),o.jsx("path",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",d:"M44.91,92.42V75.63A1.14,1.14,0,0,1,46,74.49H110.7a1.14,1.14,0,0,1,1.13,1.14V92.42"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"78.37",y1:"140.51",x2:"78.37",y2:"74.49"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"64.54",y1:"140.51",x2:"92.15",y2:"140.51"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"76.65",x2:"173.89",y2:"76.65"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"107.5",x2:"173.89",y2:"107.5"}),o.jsx("line",{className:"svg-icn",strokeMiterlimit:"10",strokeWidth:"16px",x1:"131.34",y1:"138.35",x2:"173.89",y2:"138.35"})]})}function B2({w:e}){return o.jsxs("svg",{width:e,xmlns:"http://www.w3.org/2000/svg","data-name":"Layer 1",viewBox:"0 0 215 215",children:[o.jsx("defs",{}),o.jsx("path",{fill:"currentColor",d:"M175.6 45.6H83.5V20.9h11.1c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h11.2v24.7h-24a38 38 0 00-38 38v47.7a38 38 0 0038 38h24v24.8H52.3c-7.3 0-13.1 4.5-13.1 10s5.8 10 13.1 10h42.3c7.3 0 13.2-4.5 13.2-10s-6-10-13.2-10H83.5v-24.8h92a38 38 0 0038-38V83.6a38 38 0 00-38-38zm22 85.7a22 22 0 01-22 22H39.4a22 22 0 01-22-22V83.6a22 22 0 0122-22h136.2a22 22 0 0122 22z",className:"cls-1"}),o.jsx("path",{fill:"currentColor",d:"M77 92.4a2.5 2.5 0 00-1-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H26a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1L35 128.3a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm57.4 0a2.5 2.5 0 00-.9-.2h-3.2a4.3 4.3 0 00-1 .2 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.4-.4l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.8 29v.3l-.1-.3-8.5-29a2.8 2.8 0 00-.3-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2h-3.3a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.1.6 3 3 0 000 .7 8 8 0 00.3 1l10.3 33.4a1.8 1.8 0 00.3.6 1.5 1.5 0 00.8.5 6.4 6.4 0 001.2.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.8-.4 1.6 1.6 0 00.3-.7l6.9-25.5v-.4l.2.4 7.3 25.5a1.7 1.7 0 00.4.6 1.6 1.6 0 00.7.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.4-33.4.2-1a3.5 3.5 0 00.1-.7 1 1 0 00-.1-.5 1.1 1.1 0 00-.5-.3zm55.1-.3h-1.7a4.3 4.3 0 00-1 .3 1.1 1.1 0 00-.5.4 1.8 1.8 0 00-.3.6l-8.3 29v.3-.3l-8.5-29.1a2 2 0 00-.3-.6 1 1 0 00-.5-.3 3.7 3.7 0 00-1-.2h-3.1a3.9 3.9 0 00-1 .2 1 1 0 00-.5.4 1.6 1.6 0 00-.3.6l-7.7 29-.1.3v-.3l-8.6-29a2.8 2.8 0 00-.2-.6 1 1 0 00-.5-.4 4 4 0 00-1-.2H141a3.8 3.8 0 00-1 .1 1.1 1.1 0 00-.5.3 1 1 0 00-.2.6 3 3 0 000 .7 8 8 0 00.4 1l10.2 33.4a1.8 1.8 0 00.4.6 1.5 1.5 0 00.7.5 6.4 6.4 0 001.3.2 17.8 17.8 0 002 0h2a6.4 6.4 0 001.3-.2 1.8 1.8 0 00.7-.4 1.6 1.6 0 00.4-.7l6.8-25.5.1-.4.1.4 7.4 25.5a1.7 1.7 0 00.3.6 1.6 1.6 0 00.8.5 6.8 6.8 0 001.3.2 19.6 19.6 0 002 0h2a5.3 5.3 0 001.2-.2 1.8 1.8 0 00.7-.4 1.7 1.7 0 00.4-.7l10.3-33.4.3-1a3.5 3.5 0 000-.7 1 1 0 000-.5 1.1 1.1 0 00-.5-.4 2.5 2.5 0 00-1-.2h-1.5z",className:"cls-1"})]})}function L2({size:e}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 215 215",children:[o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M165.75,12.72V11.43a8,8,0,0,0-16,0v1.25H63.65V11.43a8,8,0,0,0-8-8h0a8,8,0,0,0-8,8v1.29a38,38,0,0,0-36.45,38v115a38,38,0,0,0,38,38h115a38,38,0,0,0,38-38v-115A38,38,0,0,0,165.75,12.72Zm-118.1,16v4.48a8,8,0,0,0,8,8h0a8,8,0,0,0,8-8V28.68h86.1v4.54a8,8,0,0,0,16,0V28.74A22,22,0,0,1,186.2,50.68V69H27.2V50.68A22,22,0,0,1,47.65,28.74ZM164.2,187.68H49.2a22,22,0,0,1-22-22V85h159v80.72A22,22,0,0,1,164.2,187.68Z"}),o.jsx("path",{className:"cls-1",fill:"currentColor",d:"M86.92,122.59h24.73A63.65,63.65,0,0,0,99.32,142q-4.59,11.13-4.59,20.55h17.62c-.1-1.56-.16-2.68-.16-3.36a63.16,63.16,0,0,1,4.18-21.76q4.18-11.37,10-18.2v-10H88.05Z"})]})}var R2=JSON.parse(`[{"i":"AED","lbl":"Emirati Dirham","img":"aed.png"},{"i":"AFN","lbl":"Afghan Afghani","img":"afn.png"},{"i":"ALL","lbl":"Albanian Lek","img":"all.png"},{"i":"AMD","lbl":"Armenian Dram","img":"amd.png"},{"i":"ANG","lbl":"Dutch Guilder","img":"ang.png"},{"i":"AOA","lbl":"Angolan Kwanza","img":"aoa.png"},{"i":"ARS","lbl":"Argentine Peso","img":"ars.png"},{"i":"AUD","lbl":"Australian Dollar","img":"aud.png"},{"i":"AWG","lbl":"Aruban or Dutch Guilder","img":"awg.png"},{"i":"AZN","lbl":"Azerbaijan Manat","img":"azn.png"},{"i":"BAM","lbl":"Bosnian Convertible Mark","img":"bam.png"},{"i":"BBD","lbl":"Barbadian or Bajan Dollar","img":"bbd.png"},{"i":"BDT","lbl":"Bangladeshi Taka","img":"bdt.png"},{"i":"BGN","lbl":"Bulgarian Lev","img":"bgn.png"},{"i":"BHD","lbl":"Bahraini Dinar","img":"bhd.png"},{"i":"BIF","lbl":"Burundian Franc","img":"bif.png"},{"i":"BMD","lbl":"Bermudian Dollar","img":"bmd.png"},{"i":"BND","lbl":"Bruneian Dollar","img":"bnd.png"},{"i":"BOB","lbl":"Bolivian Bolíviano","img":"bob.png"},{"i":"BRL","lbl":"Brazilian Real","img":"brl.png"},{"i":"BSD","lbl":"Bahamian Dollar","img":"bsd.png"},{"i":"BTN","lbl":"Bhutanese Ngultrum","img":"btn.png"},{"i":"BWP","lbl":"Botswana Pula","img":"bwp.png"},{"i":"BYN","lbl":"Belarusian Ruble","img":"byn.png"},{"i":"BYR","lbl":"Belarusian Ruble","img":"byr.png"},{"i":"BZD","lbl":"Belizean Dollar","img":"bzd.png"},{"i":"CAD","lbl":"Canadian Dollar","img":"cad.png"},{"i":"CDF","lbl":"Congolese Franc","img":"cdf.png"},{"i":"CHF","lbl":"Swiss Franc","img":"chf.png"},{"i":"CLP","lbl":"Chilean Peso","img":"clp.png"},{"i":"CNY","lbl":"Chinese Yuan Renminbi","img":"cny.png"},{"i":"COP","lbl":"Colombian Peso","img":"cop.png"},{"i":"CRC","lbl":"Costa Rican Colon","img":"crc.png"},{"i":"CUC","lbl":"Cuban Convertible Peso","img":"cuc.png"},{"i":"CUP","lbl":"Cuban Peso","img":"cup.png"},{"i":"CVE","lbl":"Cape Verdean Escudo","img":"cve.png"},{"i":"CZK","lbl":"Czech Koruna","img":"czk.png"},{"i":"DJF","lbl":"Djiboutian Franc","img":"djf.png"},{"i":"DKK","lbl":"Danish Krone","img":"dkk.png"},{"i":"DOP","lbl":"Dominican Peso","img":"dop.png"},{"i":"DZD","lbl":"Algerian Dinar","img":"dzd.png"},{"i":"EEK","lbl":"Estonian Kroon","img":"eek.png"},{"i":"EGP","lbl":"Egyptian Pound","img":"egp.png"},{"i":"ERN","lbl":"Eritrean Nakfa","img":"ern.png"},{"i":"ETB","lbl":"Ethiopian Birr","img":"etb.png"},{"i":"EUR","lbl":"Euro","img":"eur.png"},{"i":"FJD","lbl":"Fijian Dollar","img":"fjd.png"},{"i":"FKP","lbl":"Falkland Island Pound","img":"fkp.png"},{"i":"GBP","lbl":"British Pound","img":"gbp.png"},{"i":"GEL","lbl":"Georgian Lari","img":"gel.png"},{"i":"GGP","lbl":"Guernsey Pound","img":"ggp.png"},{"i":"GHS","lbl":"Ghanaian Cedi","img":"ghs.png"},{"i":"GIP","lbl":"Gibraltar Pound","img":"gip.png"},{"i":"GMD","lbl":"Gambian Dalasi","img":"gmd.png"},{"i":"GNF","lbl":"Guinean Franc","img":"gnf.png"},{"i":"GTQ","lbl":"Guatemalan Quetzal","img":"gtq.png"},{"i":"GYD","lbl":"Guyanese Dollar","img":"gyd.png"},{"i":"HKD","lbl":"Hong Kong Dollar","img":"hkd.png"},{"i":"HNL","lbl":"Honduran Lempira","img":"hnl.png"},{"i":"HRK","lbl":"Croatian Kuna","img":"hrk.png"},{"i":"HTG","lbl":"Haitian Gourde","img":"htg.png"},{"i":"HUF","lbl":"Hungarian Forint","img":"huf.png"},{"i":"IDR","lbl":"Indonesian Rupiah","img":"idr.png"},{"i":"ILS","lbl":"Israeli Shekel","img":"ils.png"},{"i":"IMP","lbl":"Isle of Man Pound","img":"imp.png"},{"i":"INR","lbl":"Indian Rupee","img":"inr.png"},{"i":"IQD","lbl":"Iraqi Dinar","img":"iqd.png"},{"i":"IRR","lbl":"Iranian Rial","img":"irr.png"},{"i":"ISK","lbl":"Icelandic Krona","img":"isk.png"},{"i":"JEP","lbl":"Jersey Pound","img":"jep.png"},{"i":"JMD","lbl":"Jamaican Dollar","img":"jmd.png"},{"i":"JOD","lbl":"Jordanian Dinar","img":"jod.png"},{"i":"JPY","lbl":"Japanese Yen","img":"jpy.png"},{"i":"KES","lbl":"Kenyan Shilling","img":"kes.png"},{"i":"KGS","lbl":"Kyrgyzstani Som","img":"kgs.png"},{"i":"KHR","lbl":"Cambodian Riel","img":"khr.png"},{"i":"KMF","lbl":"Comorian Franc","img":"kmf.png"},{"i":"KPW","lbl":"North Korean Won","img":"kpw.png"},{"i":"KRW","lbl":"South Korean Won","img":"krw.png"},{"i":"KWD","lbl":"Kuwaiti Dinar","img":"kwd.png"},{"i":"KYD","lbl":"Caymanian Dollar","img":"kyd.png"},{"i":"KZT","lbl":"Kazakhstani Tenge","img":"kzt.png"},{"i":"LAK","lbl":"Lao Kip","img":"lak.png"},{"i":"LBP","lbl":"Lebanese Pound","img":"lbp.png"},{"i":"LKR","lbl":"Sri Lankan Rupee","img":"lkr.png"},{"i":"LRD","lbl":"Liberian Dollar","img":"lrd.png"},{"i":"LSL","lbl":"Basotho Loti","img":"lsl.png"},{"i":"LTL","lbl":"Lithuanian Litas","img":"ltl.png"},{"i":"LVL","lbl":"Latvian Lat","img":"lvl.png"},{"i":"LYD","lbl":"Libyan Dinar","img":"lyd.png"},{"i":"MAD","lbl":"Moroccan Dirham","img":"mad.png"},{"i":"MDL","lbl":"Moldovan Leu","img":"mdl.png"},{"i":"MGA","lbl":"Malagasy Ariary","img":"mga.png"},{"i":"MKD","lbl":"Macedonian Denar","img":"mkd.png"},{"i":"MMK","lbl":"Burmese Kyat","img":"mmk.png"},{"i":"MNT","lbl":"Mongolian Tughrik","img":"mnt.png"},{"i":"MOP","lbl":"Macau Pataca","img":"mop.png"},{"i":"MRU","lbl":"Mauritanian Ouguiya","img":"mru.png"},{"i":"MUR","lbl":"Mauritian Rupee","img":"mur.png"},{"i":"MVR","lbl":"Maldivian Rufiyaa","img":"mvr.png"},{"i":"MWK","lbl":"Malawian Kwacha","img":"mwk.png"},{"i":"MXN","lbl":"Mexican Peso","img":"mxn.png"},{"i":"MYR","lbl":"Malaysian Ringgit","img":"myr.png"},{"i":"MZN","lbl":"Mozambican Metical","img":"mzn.png"},{"i":"NAD","lbl":"Namibian Dollar","img":"nad.png"},{"i":"NGN","lbl":"Nigerian Naira","img":"ngn.png"},{"i":"NIO","lbl":"Nicaraguan Cordoba","img":"nio.png"},{"i":"NOK","lbl":"Norwegian Krone","img":"nok.png"},{"i":"NPR","lbl":"Nepalese Rupee","img":"npr.png"},{"i":"NZD","lbl":"New Zealand Dollar","img":"nzd.png"},{"i":"OMR","lbl":"Omani Rial","img":"omr.png"},{"i":"PAB","lbl":"Panamanian Balboa","img":"pab.png"},{"i":"PEN","lbl":"Peruvian Sol","img":"pen.png"},{"i":"PGK","lbl":"Papua New Guinean Kina","img":"pgk.png"},{"i":"PHP","lbl":"Philippine Peso","img":"php.png"},{"i":"PKR","lbl":"Pakistani Rupee","img":"pkr.png"},{"i":"PLN","lbl":"Polish Zloty","img":"pln.png"},{"i":"PYG","lbl":"Paraguayan Guarani","img":"pyg.png"},{"i":"QAR","lbl":"Qatari Riyal","img":"qar.png"},{"i":"RON","lbl":"Romanian Leu","img":"ron.png"},{"i":"RSD","lbl":"Serbian Dinar","img":"rsd.png"},{"i":"RUB","lbl":"Russian Ruble","img":"rub.png"},{"i":"RWF","lbl":"Rwandan Franc","img":"rwf.png"},{"i":"SAR","lbl":"Saudi Arabian Riyal","img":"sar.png"},{"i":"SBD","lbl":"Solomon Islander Dollar","img":"sbd.png"},{"i":"SCR","lbl":"Seychellois Rupee","img":"scr.png"},{"i":"SDG","lbl":"Sudanese Pound","img":"sdg.png"},{"i":"SEK","lbl":"Swedish Krona","img":"sek.png"},{"i":"SGD","lbl":"Singapore Dollar","img":"sgd.png"},{"i":"SHP","lbl":"Saint Helenian Pound","img":"shp.png"},{"i":"SLL","lbl":"Sierra Leonean Leone","img":"sll.png"},{"i":"SOS","lbl":"Somali Shilling","img":"sos.png"},{"i":"SPL","lbl":"Seborgan Luigino","img":"spl.png"},{"i":"SRD","lbl":"Surinamese Dollar","img":"srd.png"},{"i":"STN","lbl":"Sao Tomean Dobra","img":"stn.png"},{"i":"SVC","lbl":"Salvadoran Colon","img":"svc.png"},{"i":"SYP","lbl":"Syrian Pound","img":"syp.png"},{"i":"SZL","lbl":"Swazi Lilangeni","img":"szl.png"},{"i":"THB","lbl":"Thai Baht","img":"thb.png"},{"i":"TJS","lbl":"Tajikistani Somoni","img":"tjs.png"},{"i":"TMT","lbl":"Turkmenistani Manat","img":"tmt.png"},{"i":"TND","lbl":"Tunisian Dinar","img":"tnd.png"},{"i":"TOP","lbl":"Tongan Pa'anga","img":"top.png"},{"i":"TRY","lbl":"Turkish Lira","img":"try.png"},{"i":"TTD","lbl":"Trinidadian Dollar","img":"ttd.png"},{"i":"TVD","lbl":"Tuvaluan Dollar","img":"tvd.png"},{"i":"TWD","lbl":"Taiwan New Dollar","img":"twd.png"},{"i":"TZS","lbl":"Tanzanian Shilling","img":"tzs.png"},{"i":"UAH","lbl":"Ukrainian Hryvnia","img":"uah.png"},{"i":"UGX","lbl":"Ugandan Shilling","img":"ugx.png"},{"i":"USD","lbl":"US Dollar","img":"usd.png"},{"i":"UYU","lbl":"Uruguayan Peso","img":"uyu.png"},{"i":"UZS","lbl":"Uzbekistani Som","img":"uzs.png"},{"i":"VEF","lbl":"Venezuelan Bolívar","img":"vef.png"},{"i":"VES","lbl":"Venezuelan Bolívar","img":"ves.png"},{"i":"VND","lbl":"Vietnamese Dong","img":"vnd.png"},{"i":"VUV","lbl":"Ni-Vanuatu Vatu","img":"vuv.png"},{"i":"WST","lbl":"Samoan Tala","img":"wst.png"},{"i":"XAF","lbl":"Central African CFA Franc BEAC","img":"xaf.png"},{"i":"XAG","lbl":"Silver Ounce","img":"xag.png"},{"i":"XAU","lbl":"Gold Ounce","img":"xau.png"},{"i":"XBT","lbl":"Bitcoin","img":"xbt.png"},{"i":"XCD","lbl":"East Caribbean Dollar","img":"xcd.png"},{"i":"XOF","lbl":"CFA Franc","img":"xof.png"},{"i":"XPD","lbl":"Palladium Ounce","img":"xpd.png"},{"i":"XPF","lbl":"CFP Franc","img":"xpf.png"},{"i":"XPT","lbl":"Platinum Ounce","img":"xpt.png"},{"i":"YER","lbl":"Yemeni Rial","img":"yer.png"},{"i":"ZAR","lbl":"South African Rand","img":"zar.png"},{"i":"ZMK","lbl":"Zambian Kwacha","img":"zmk.png"},{"i":"ZMW","lbl":"Zambian Kwacha","img":"zmw.png"},{"i":"ZWD","lbl":"Zimbabwean Dollar","img":"zwd.png"}]`),F2=JSON.parse(`[{"i":"US","lbl":"United States of America (the)","img":"us.png","code":"+1","ex":"2015550123","ptrn":"(?:472[2-47-9]|983[2-57-9])$_bf_$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]$_bf_$d{6}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"CA","lbl":"Canada","img":"ca.png","code":"+1","ex":"5062345678","ptrn":"(?:2(?:04|[23]6|[48]9|5[07]|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]$_bf_$d{6}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|(?:5(?:2[125-9]|3[23]|44|66|77|88)|6(?:22|33))[2-9]$_bf_$d{6}|600[2-9]$_bf_$d{6}|310$_bf_$d{4}"},{"i":"AG","lbl":"Antigua and Barbuda","img":"ag.png","code":"+1","ex":"2684641234","ptrn":"268(?:4(?:6[0-38]|84)|56[0-2])$_bf_$d{4}|268(?:464|7(?:1[3-9]|[28]$_bf_$d|3[0246]|64|7[0-689]))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|26848[01]$_bf_$d{4}|26840[69]$_bf_$d{4}"},{"i":"AI","lbl":"Anguilla","img":"ai.png","code":"+1","ex":"2642351234","ptrn":"264(?:292|4(?:6[12]|9[78]))$_bf_$d{4}|264(?:235|4(?:69|7[67])|5(?:3[6-9]|8[1-4])|7(?:29|72))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|264724$_bf_$d{4}"},{"i":"AS","lbl":"American Samoa","img":"as.png","code":"+1","ex":"6847331234","ptrn":"684(?:274|6(?:22|33|44|55|77|88|9[19]))$_bf_$d{4}|684(?:2(?:48|5[2468]|7[246])|7(?:3[13]|70|82))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"BB","lbl":"Barbados","img":"bb.png","code":"+1","ex":"2462501234","ptrn":"246521[0369]$_bf_$d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2$_bf_$d|3[2-9])|5(?:20|[34]$_bf_$d|54|7[1-3])|6(?:2$_bf_$d|38)|7[35]7|9(?:1[89]|63))$_bf_$d{4}|246(?:(?:2(?:[3568]$_bf_$d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5$_bf_$d)|69[5-7]|8(?:[2-5]$_bf_$d|83))$_bf_$d|52(?:1[147]|20))$_bf_$d{3}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|(?:246976|900[2-9]$_bf_$d$_bf_$d)$_bf_$d{4}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|24631$_bf_$d{5}|246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2$_bf_$d|3[016]|53))$_bf_$d{4}"},{"i":"BM","lbl":"Bermuda","img":"bm.png","code":"+1","ex":"4413701234","ptrn":"441(?:[46]$_bf_$d$_bf_$d|5(?:4$_bf_$d|60|89))$_bf_$d{4}|441(?:[2378]$_bf_$d|5[0-39]|9[02])$_bf_$d{5}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"BS","lbl":"Bahamas (the)","img":"bs.png","code":"+1","ex":"2423591234","ptrn":"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))$_bf_$d{4}|242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7$_bf_$d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2$_bf_$d|3[0-4]|[89]9))$_bf_$d{4}|242300$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|242225$_bf_$d{4}"},{"i":"DM","lbl":"Dominica","img":"dm.png","code":"+1","ex":"7672251234","ptrn":"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])$_bf_$d{4}|767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"DO","lbl":"Dominican Republic (the)","img":"do.png","code":"+1","ex":"8092345678","ptrn":"8(?:[04]9[2-9]$_bf_$d$_bf_$d|29(?:2(?:[0-59]$_bf_$d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]$_bf_$d|4[7-9])|[45]$_bf_$d$_bf_$d|6(?:[0-27-9]$_bf_$d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]$_bf_$d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]$_bf_$d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]$_bf_$d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))$_bf_$d{4}|8[024]9[2-9]$_bf_$d{6}|800(?:14|[2-9]$_bf_$d)$_bf_$d{5}|8[024]9[01]$_bf_$d{6}|8(?:33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"GD","lbl":"Grenada","img":"gd.png","code":"+1","ex":"4734031234","ptrn":"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-4]|5[59]|73|90)|63[68]|7(?:58|84)|800|938)$_bf_$d{4}|473(?:4(?:0[2-79]|1[04-9]|2[0-5]|49|5[6-8])|5(?:2[01]|3[3-8])|901)$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"GU","lbl":"Guam","img":"gu.png","code":"+1","ex":"6713001234","ptrn":"671(?:2$_bf_$d$_bf_$d|3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[478])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[16-9]))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"JM","lbl":"Jamaica","img":"jm.png","code":"+1","ex":"8762101234","ptrn":"8766060$_bf_$d{3}|(?:658(?:2(?:[5-8]$_bf_$d|9[0-46-9])|[3-9]$_bf_$d$_bf_$d)|876(?:52[35]|6(?:0[1-3579]|1[0235-9]|[23]$_bf_$d|40|5[06]|6[2-589]|7[0-25-9]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]$_bf_$d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]$_bf_$d|9[2-468])))$_bf_$d{4}|(?:6582(?:[0-4]$_bf_$d|95)|876(?:2(?:0[1-9]|[13-9]$_bf_$d|2[013-9])|[348]$_bf_$d$_bf_$d|5(?:0[1-9]|[1-9]$_bf_$d)|6(?:4[89]|6[67])|7(?:0[07]|7$_bf_$d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"KN","lbl":"Saint Kitts and Nevis","img":"kn.png","code":"+1","ex":"8697652917","ptrn":"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])$_bf_$d{4}|869(?:48[89]|55[6-8]|66$_bf_$d|76[02-7])$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"KY","lbl":"Cayman Islands (the)","img":"ky.png","code":"+1","ex":"3453231234","ptrn":"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|4[89]|88)|9(?:14|4[035-9]))$_bf_$d{4}|345(?:32[1-9]|4(?:1[2-6]|2[0-4])|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|(?:345976|900[2-9]$_bf_$d$_bf_$d)$_bf_$d{4}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"LC","lbl":"Saint Lucia","img":"lc.png","code":"+1","ex":"7582845678","ptrn":"758(?:234|4(?:30|5$_bf_$d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)$_bf_$d{4}|758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2$_bf_$d|3[0-3])|812)$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"MP","lbl":"Northern Mariana Islands (the)","img":"mp.png","code":"+1","ex":"6702345678","ptrn":"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"MS","lbl":"Montserrat","img":"ms.png","code":"+1","ex":"6644923456","ptrn":"6644(?:1[0-3]|91)$_bf_$d{4}|664(?:3(?:49|9[1-6])|49[2-6])$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"PR","lbl":"Puerto Rico","img":"pr.png","code":"+1","ex":"7872345678","ptrn":"(?:787|939)[2-9]$_bf_$d{6}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"SX","lbl":"Sint Maarten (Dutch part)","img":"sx.png","code":"+1","ex":"7215205678","ptrn":"7215(?:4[2-8]|8[39]|9[056])$_bf_$d{4}|7215(?:1[02]|2$_bf_$d|5[034679]|8[0-24-8])$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"TC","lbl":"Turks and Caicos Islands (the)","img":"tc.png","code":"+1","ex":"6492311234","ptrn":"649(?:266|712|9(?:4$_bf_$d|50))$_bf_$d{4}|649(?:2(?:3[129]|4[1-79])|3$_bf_$d$_bf_$d|4[34][1-3])$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|649(?:71[01]|966)$_bf_$d{4}"},{"i":"TT","lbl":"Trinidad and Tobago","img":"tt.png","code":"+1","ex":"8682911234","ptrn":"868(?:2(?:01|1[5-9]|[23]$_bf_$d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]$_bf_$d|7[0-79])|82[124])$_bf_$d{4}|868(?:(?:2[5-9]|3$_bf_$d)$_bf_$d|4(?:3[0-6]|[6-9]$_bf_$d)|6(?:20|78|8$_bf_$d)|7(?:0[1-9]|1[02-9]|[2-9]$_bf_$d))$_bf_$d{4}|868800$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|868619$_bf_$d{4}"},{"i":"VC","lbl":"Saint Vincent and the Grenadines","img":"vc.png","code":"+1","ex":"7844301234","ptrn":"784(?:266|3(?:6[6-9]|7$_bf_$d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)$_bf_$d{4}|784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}|78451[0-2]$_bf_$d{4}"},{"i":"VG","lbl":"Virgin Islands (British)","img":"vg.png","code":"+1","ex":"2843001234","ptrn":"284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))$_bf_$d{4}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|9[69])|5(?:4[0-7]|68|9[69]))$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"VI","lbl":"Virgin Islands (U.S.)","img":"vi.png","code":"+1","ex":"3406421234","ptrn":"340(?:2(?:0$_bf_$d|10|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7$_bf_$d)|884|998)$_bf_$d{4}|8(?:00|33|44|55|66|77|88)[2-9]$_bf_$d{6}|900[2-9]$_bf_$d{6}|52(?:3(?:[2-46-9][02-9]$_bf_$d|5(?:[02-46-9]$_bf_$d|5[0-46-9]))|4(?:[2-478][02-9]$_bf_$d|5(?:[034]$_bf_$d|2[024-9]|5[0-46-9])|6(?:0[1-9]|[2-9]$_bf_$d)|9(?:[05-9]$_bf_$d|2[0-5]|49)))$_bf_$d{4}|52[34][2-9]1[02-9]$_bf_$d{4}|5(?:00|2[125-9]|3[23]|44|66|77|88)[2-9]$_bf_$d{6}"},{"i":"AD","lbl":"Andorra","img":"ad.png","code":"+376","ex":"312345","frmt":"+c ## ### ### ##","ptrn":"[78]$_bf_$d{5}|690$_bf_$d{6}|[356]$_bf_$d{5}|180[02]$_bf_$d{4}|[19]$_bf_$d{5}"},{"i":"AE","lbl":"United Arab Emirates (the)","img":"ae.png","code":"+971","ex":"501234567","ptrn":"[2-4679][2-8]$_bf_$d{6}|5[02-68]$_bf_$d{7}|400$_bf_$d{6}|800$_bf_$d{2,9}|900[02]$_bf_$d{5}|700[05]$_bf_$d{5}|600[25]$_bf_$d{5}"},{"i":"AF","lbl":"Afghanistan","img":"af.png","code":"+93","ex":"701234567","ptrn":"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]$_bf_$d{6}|7$_bf_$d{8}"},{"i":"AL","lbl":"Albania","img":"al.png","code":"+355","ex":"672123456","ptrn":"4505[0-2]$_bf_$d{3}|(?:[2358][16-9]$_bf_$d[2-9]|4410)$_bf_$d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6$_bf_$d))$_bf_$d{5}|6(?:[78][2-9]|9$_bf_$d)$_bf_$d{6}|800$_bf_$d{4}|900[1-9]$_bf_$d$_bf_$d|808[1-9]$_bf_$d$_bf_$d|700[2-9]$_bf_$d{4}"},{"i":"AM","lbl":"Armenia","img":"am.png","code":"+374","ex":"77123456","ptrn":"(?:(?:1[0-25]|47)$_bf_$d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)$_bf_$d{5}|(?:33|4[1349]|55|77|88|9[13-9])$_bf_$d{6}|800$_bf_$d{5}|90[016]$_bf_$d{5}|80[1-4]$_bf_$d{5}|60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]$_bf_$d|9[0-2])$_bf_$d{4}"},{"i":"AO","lbl":"Angola","img":"ao.png","code":"+244","ex":"923123456","ptrn":"2$_bf_$d(?:[0134][25-9]|[25-9]$_bf_$d)$_bf_$d{5}|9[1-79]$_bf_$d{7}"},{"i":"AR","lbl":"Argentina","img":"ar.png","code":"+54","ex":"91123456789","ptrn":"3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]$_bf_$d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]$_bf_$d{5}|(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]$_bf_$d{5}|(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]$_bf_$d{5}|(?:(?:11[0-8]|670)$_bf_$d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68])))$_bf_$d{6}|(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]$_bf_$d{5}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4$_bf_$d{5}|(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]$_bf_$d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]$_bf_$d{5}|93(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]$_bf_$d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|47[35]|9(?:[07]2|2[26]|34|46))|3327)[45]$_bf_$d{5}|9(?:2(?:657|9(?:54|66))|3(?:48[27]|7(?:55|77)|8(?:65|78)))[2-8]$_bf_$d{5}|9(?:2(?:284|3(?:02|23)|477|622|920)|3(?:4(?:46|89|92)|541))[2-7]$_bf_$d{5}|(?:675$_bf_$d|9(?:11[0-8]$_bf_$d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-8]|[25][4-6]|3[3-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|1[2-7]|3[4-6]|5[3-6]|7[2-6]|8[3-68]))))$_bf_$d{6}|9(?:2(?:2(?:62|81)|320|9(?:42|83))|3(?:329|4(?:62|7[16])|5(?:43|64)|7(?:18|5[17])))[2-6]$_bf_$d{5}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4$_bf_$d{5}|9(?:2(?:257|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|64)|5(?:25|37|4[47]|71)|7(?:35|72)|825))[3-6]$_bf_$d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[035-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[14]|4[13]|5[468]|7[3-5]|8[26])|8(?:2[67]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]$_bf_$d{5}|800$_bf_$d{7,8}|60[04579]$_bf_$d{7}|810$_bf_$d{7}"},{"i":"AT","lbl":"Austria","img":"at.png","code":"+43","ex":"664123456","ptrn":"1(?:11$_bf_$d|[2-9]$_bf_$d{3,11})|(?:316|463)$_bf_$d{3,10}|648[34]$_bf_$d{3,9}|(?:51|66|73)2$_bf_$d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-7]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))$_bf_$d{4,10}|6(?:485|(?:5[0-3579]|6[013-9]|[7-9]$_bf_$d)$_bf_$d)$_bf_$d{3,9}|800$_bf_$d{6,10}|(?:8[69][2-68]|9(?:0[01]|3[019]))$_bf_$d{6,10}|8(?:10|2[018])$_bf_$d{6,10}|828$_bf_$d{5}|5(?:0[1-9]|17|[79]$_bf_$d)$_bf_$d{2,10}|7[28]0$_bf_$d{6,10}"},{"i":"AU","lbl":"Australia","img":"au.png","code":"+61","ex":"412345678","ptrn":"(?:(?:241|349)0$_bf_$d$_bf_$d|8(?:51(?:0(?:0[03-9]|[12479]$_bf_$d|3[2-9]|5[0-8]|6[1-9]|8[0-7])|1(?:[0235689]$_bf_$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]$_bf_$d|7[89]|9[0-4])|[34]$_bf_$d$_bf_$d)|91(?:(?:[0-58]$_bf_$d|6[0135-9])$_bf_$d|7(?:0[0-24-9]|[1-9]$_bf_$d)|9(?:[0-46-9]$_bf_$d|5[0-79]))))$_bf_$d{3}|(?:2(?:[0-26-9]$_bf_$d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]$_bf_$d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]$_bf_$d|2[0-8])|8(?:55|6[0-8]|[78]$_bf_$d|9[02-9]))$_bf_$d{6}|4(?:79[01]|83[0-36-9]|95[0-3])$_bf_$d{5}|4(?:[0-36]$_bf_$d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])$_bf_$d{6}|180(?:0$_bf_$d{3}|2)$_bf_$d{3}|190[0-26]$_bf_$d{6}|13(?:00$_bf_$d{6}(?:$_bf_$d{2})?|45[0-4]$_bf_$d{3})|13$_bf_$d{4}|14(?:5(?:1[0458]|[23][458])|71$_bf_$d)$_bf_$d{4}|163$_bf_$d{2,6}"},{"i":"CC","lbl":"Cocos (Keeling) Islands (the)","img":"cc.png","code":"+61","ex":"412345678","ptrn":"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$_bf_$d|70[23]|959))$_bf_$d{3}|4(?:79[01]|83[0-36-9]|95[0-3])$_bf_$d{5}|4(?:[0-36]$_bf_$d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])$_bf_$d{6}|180(?:0$_bf_$d{3}|2)$_bf_$d{3}|190[0-26]$_bf_$d{6}|13(?:00$_bf_$d{6}(?:$_bf_$d{2})?|45[0-4]$_bf_$d{3})|13$_bf_$d{4}|14(?:5(?:1[0458]|[23][458])|71$_bf_$d)$_bf_$d{4}"},{"i":"CX","lbl":"Christmas Island","img":"cx.png","code":"+61","ex":"412345678","ptrn":"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$_bf_$d|7(?:0[01]|1[0-2])|958))$_bf_$d{3}|4(?:79[01]|83[0-36-9]|95[0-3])$_bf_$d{5}|4(?:[0-36]$_bf_$d|4[047-9]|[58][0-24-9]|7[02-8]|9[0-47-9])$_bf_$d{6}|180(?:0$_bf_$d{3}|2)$_bf_$d{3}|190[0-26]$_bf_$d{6}|13(?:00$_bf_$d{6}(?:$_bf_$d{2})?|45[0-4]$_bf_$d{3})|13$_bf_$d{4}|14(?:5(?:1[0458]|[23][458])|71$_bf_$d)$_bf_$d{4}"},{"i":"AW","lbl":"Aruba","img":"aw.png","code":"+297","ex":"5601234","ptrn":"5(?:2$_bf_$d|8[1-9])$_bf_$d{4}|(?:290|5[69]$_bf_$d|6(?:[03]0|22|4[0-2]|[69]$_bf_$d)|7(?:[34]$_bf_$d|7[07])|9(?:6[45]|9[4-8]))$_bf_$d{4}|800$_bf_$d{4}|900$_bf_$d{4}|(?:28$_bf_$d|501)$_bf_$d{4}"},{"i":"AX","lbl":"Åland Islands","img":"ax.png","code":"+358","ex":"412345678","ptrn":"18[1-8]$_bf_$d{3,6}|4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}|800$_bf_$d{4,6}|[67]00$_bf_$d{5,6}|20$_bf_$d{4,8}|60[12]$_bf_$d{5,6}|7(?:099$_bf_$d{4,5}|5[03-9]$_bf_$d{3,7})|20[2-59]$_bf_$d$_bf_$d|(?:606|7(?:0[78]|1|3$_bf_$d))$_bf_$d{7}|(?:10|29|3[09]|70[1-5]$_bf_$d)$_bf_$d{4,8}"},{"i":"FI","lbl":"Finland","img":"fi.png","code":"+358","ex":"412345678","ptrn":"1[3-7][1-8]$_bf_$d{3,6}|(?:19[1-8]|[23568][1-8]$_bf_$d|9(?:00|[1-8]$_bf_$d))$_bf_$d{2,6}|4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}|800$_bf_$d{4,6}|[67]00$_bf_$d{5,6}|20$_bf_$d{4,8}|60[12]$_bf_$d{5,6}|7(?:099$_bf_$d{4,5}|5[03-9]$_bf_$d{3,7})|20[2-59]$_bf_$d$_bf_$d|(?:606|7(?:0[78]|1|3$_bf_$d))$_bf_$d{7}|(?:10|29|3[09]|70[1-5]$_bf_$d)$_bf_$d{4,8}"},{"i":"AZ","lbl":"Azerbaijan","img":"az.png","code":"+994","ex":"401234567","ptrn":"(?:2[12]428|3655[02])$_bf_$d{4}|(?:2(?:22[0-79]|63[0-28])|3654)$_bf_$d{5}|(?:(?:1[28]|46)$_bf_$d|2(?:[014-6]2|[23]3))$_bf_$d{6}|36554$_bf_$d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)$_bf_$d{7}|88$_bf_$d{7}|900200$_bf_$d{3}"},{"i":"BA","lbl":"Bosnia and Herzegovina","img":"ba.png","code":"+387","ex":"61123456","ptrn":"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))$_bf_$d{5}|6040$_bf_$d{5}|6(?:03|[1-356]|44|7$_bf_$d)$_bf_$d{6}|8[08]$_bf_$d{6}|9[0246]$_bf_$d{6}|8[12]$_bf_$d{6}|703[235]0$_bf_$d{3}|70(?:2[0-5]|3[0146]|[56]0)$_bf_$d{4}"},{"i":"BD","lbl":"Bangladesh","img":"bd.png","code":"+880","ex":"1812345678","ptrn":"(?:4(?:31$_bf_$d$_bf_$d|423)|5222)$_bf_$d{3}(?:$_bf_$d{2})?|8332[6-9]$_bf_$d$_bf_$d|(?:3(?:03[56]|224)|4(?:22[25]|653))$_bf_$d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))$_bf_$d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)$_bf_$d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))$_bf_$d{4}|(?:2(?:[23]$_bf_$d|[45])$_bf_$d$_bf_$d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1$_bf_$d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21$_bf_$d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)$_bf_$d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])$_bf_$d{5}|[59]1$_bf_$d{5}|(?:1[13-9]$_bf_$d|644)$_bf_$d{7}|(?:3[78]|44|66)[02-9]$_bf_$d{7}|80[03]$_bf_$d{7}|96(?:0[1-69]|1[0-479]|2[278]|3[13-9]|4[0134]|54|6[69]|7[78]|88)$_bf_$d{6}"},{"i":"BE","lbl":"Belgium","img":"be.png","code":"+32","ex":"470123456","ptrn":"80[2-8]$_bf_$d{5}|(?:1[0-69]|[23][2-8]|4[23]|5$_bf_$d|6[013-57-9]|71|8[1-79]|9[2-4])$_bf_$d{6}|4[5-9]$_bf_$d{7}|800[1-9]$_bf_$d{4}|(?:70(?:2[0-57]|3[04-7]|44|6[04-69]|7[0579])|90$_bf_$d$_bf_$d)$_bf_$d{4}|7879$_bf_$d{4}|78(?:0[578]|1[014-8]|2[25]|3[15-8]|48|5[05]|60|7[06-8]|9$_bf_$d)$_bf_$d{4}"},{"i":"BF","lbl":"Burkina Faso","img":"bf.png","code":"+226","ex":"70123456","ptrn":"2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]$_bf_$d|50|6[5-8]))$_bf_$d{4}|(?:0[1-7]|4[4-6]|5[0-8]|[67]$_bf_$d)$_bf_$d{6}"},{"i":"BG","lbl":"Bulgaria","img":"bg.png","code":"+359","ex":"2123456","ptrn":"2$_bf_$d{5,7}|(?:43[1-6]|70[1-9])$_bf_$d{4,5}|(?:[36]$_bf_$d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])$_bf_$d{5,6}|(?:43[07-9]|99[69]$_bf_$d)$_bf_$d{5}|(?:8[7-9]|98)$_bf_$d{7}|(?:00800$_bf_$d$_bf_$d|800)$_bf_$d{5}|90$_bf_$d{6}|700$_bf_$d{5}"},{"i":"BH","lbl":"Bahrain","img":"bh.png","code":"+973","ex":"36001234","ptrn":"(?:1(?:3[1356]|6[0156]|7$_bf_$d)$_bf_$d|6(?:1[16]$_bf_$d|500|6(?:0$_bf_$d|3[12]|44|55|7[7-9]|88)|9[69][69])|7(?:[07]$_bf_$d$_bf_$d|1(?:11|78)))$_bf_$d{4}|(?:3(?:[0-79]$_bf_$d|8[0-57-9])$_bf_$d|6(?:3(?:00|33|6[16])|441|6(?:3[03-9]|[69]$_bf_$d|7[0-689])))$_bf_$d{4}|8[02369]$_bf_$d{6}|(?:87|9[0-8])$_bf_$d{6}|84$_bf_$d{6}"},{"i":"BI","lbl":"Burundi","img":"bi.png","code":"+257","ex":"79561234","ptrn":"(?:22|31)$_bf_$d{6}|(?:29|6[1-9]|7[125-9])$_bf_$d{6}"},{"i":"BJ","lbl":"Benin","img":"bj.png","code":"+229","ex":"0120211234","ptrn":"012$_bf_$d{7}|01(?:2[5-9]|[4-69]$_bf_$d)$_bf_$d{6}|857[58]$_bf_$d{4}|81$_bf_$d{6}"},{"i":"BL","lbl":"Saint Barthélemy","img":"bl.png","code":"+590","ex":"690001234","ptrn":"(?:59(?:0(?:2[7-9]|3[3-7]|5[12]|87)|87$_bf_$d)|80[6-9]$_bf_$d$_bf_$d)$_bf_$d{4}|(?:69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))|7090[0-4])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}|9(?:(?:39[5-7]|76[018])$_bf_$d|475[0-6])$_bf_$d{4}"},{"i":"GP","lbl":"Guadeloupe","img":"gp.png","code":"+590","ex":"690001234","ptrn":"(?:59(?:0(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1-9]|5[3-579]|[68][0-689]|7[08]|9$_bf_$d)|87$_bf_$d)|80[6-9]$_bf_$d$_bf_$d)$_bf_$d{4}|(?:69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))|7090[0-4])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}|9(?:(?:39[5-7]|76[018])$_bf_$d|475[0-6])$_bf_$d{4}"},{"i":"MF","lbl":"Saint Martin (French part)","img":"mf.png","code":"+590","ex":"690001234","ptrn":"(?:59(?:0(?:0[079]|[14]3|[27][79]|3[03-7]|5[0-268]|87)|87$_bf_$d)|80[6-9]$_bf_$d$_bf_$d)$_bf_$d{4}|(?:69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))|7090[0-4])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}|9(?:(?:39[5-7]|76[018])$_bf_$d|475[0-6])$_bf_$d{4}"},{"i":"BN","lbl":"Brunei Darussalam","img":"bn.png","code":"+673","ex":"7123456","ptrn":"22[0-7]$_bf_$d{4}|(?:2[013-9]|[34]$_bf_$d|5[0-25-9])$_bf_$d{5}|(?:22[89]|[78]$_bf_$d$_bf_$d)$_bf_$d{4}|5[34]$_bf_$d{5}"},{"i":"BO","lbl":"Bolivia (Plurinational State of)","img":"bo.png","code":"+591","ex":"71234567","ptrn":"(?:2(?:2$_bf_$d$_bf_$d|5(?:11|[258]$_bf_$d|9[67])|6(?:12|2$_bf_$d|9[34])|8(?:2[34]|39|62))|3(?:3$_bf_$d$_bf_$d|4(?:6$_bf_$d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]$_bf_$d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4$_bf_$d$_bf_$d|6(?:11|[24689]$_bf_$d|72)))$_bf_$d{4}|(?:57|[67]$_bf_$d)$_bf_$d{6}|8001[07]$_bf_$d{4}|50$_bf_$d{6}"},{"i":"BQ","lbl":"Bonaire, Sint Eustatius and Saba","img":"bq.png","code":"+599","ex":"3181234","ptrn":"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)$_bf_$d)$_bf_$d{3}|(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8$_bf_$d|9[056])$_bf_$d)$_bf_$d{3}"},{"i":"CW","lbl":"Curaçao","img":"cw.png","code":"+599","ex":"95181234","ptrn":"9(?:4(?:3[0-5]|4[14]|6$_bf_$d)|50$_bf_$d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]$_bf_$d|7[01]|8[57-9]))$_bf_$d{4}|953[01]$_bf_$d{4}|9(?:5[12467]|6[5-9])$_bf_$d{5}|60[0-2]$_bf_$d{4}|955$_bf_$d{5}"},{"i":"BR","lbl":"Brazil","img":"br.png","code":"+55","ex":"11961234567","ptrn":"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]$_bf_$d{7}|(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9$_bf_$d)$_bf_$d{7}|800$_bf_$d{6,7}|[59]00$_bf_$d{6,7}|(?:30[03]$_bf_$d{3}|4(?:0(?:0$_bf_$d|20)|370|864))$_bf_$d{4}|300$_bf_$d{5}"},{"i":"BT","lbl":"Bhutan","img":"bt.png","code":"+975","ex":"17123456","ptrn":"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])$_bf_$d{5}|(?:1[67]|[78]7)$_bf_$d{6}"},{"i":"BW","lbl":"Botswana","img":"bw.png","code":"+267","ex":"71123456","ptrn":"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]$_bf_$d|7[013]|81)|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[013467]))$_bf_$d{4}|(?:321|7(?:[1-8]$_bf_$d|9[03]))$_bf_$d{5}|(?:0800|800$_bf_$d)$_bf_$d{6}|90$_bf_$d{5}|79(?:1(?:[0-2]$_bf_$d|3[0-8])|2[0-7]$_bf_$d)$_bf_$d{3}"},{"i":"BY","lbl":"Belarus","img":"by.png","code":"+375","ex":"294911911","ptrn":"(?:1(?:5(?:1[1-5]|[24]$_bf_$d|6[2-4]|9[1-7])|6(?:[235]$_bf_$d|4[1-7])|7$_bf_$d$_bf_$d)|2(?:1(?:[246]$_bf_$d|3[0-35-9]|5[1-9])|2(?:[235]$_bf_$d|4[0-8])|3(?:[26]$_bf_$d|3[02-79]|4[024-7]|5[03-7])))$_bf_$d{5}|(?:2(?:5[5-79]|9[1-9])|(?:33|44)$_bf_$d)$_bf_$d{6}|800$_bf_$d{3,7}|8(?:0[13]|20$_bf_$d)$_bf_$d{7}|(?:810|902)$_bf_$d{7}|249$_bf_$d{6}"},{"i":"BZ","lbl":"Belize","img":"bz.png","code":"+501","ex":"6221234","ptrn":"(?:2(?:[02]$_bf_$d|36|[68]0)|[3-58](?:[02]$_bf_$d|[68]0)|7(?:[02]$_bf_$d|32|[68]0))$_bf_$d{4}|6[0-35-7]$_bf_$d{5}|0800$_bf_$d{7}"},{"i":"CD","lbl":"Congo (the Democratic Republic of the)","img":"cd.png","code":"+243","ex":"991234567","ptrn":"(?:(?:12|573)$_bf_$d$_bf_$d|276)$_bf_$d{5}|[1-6]$_bf_$d{6}|88$_bf_$d{5}|(?:8[0-69]|9[016-9])$_bf_$d{7}"},{"i":"CF","lbl":"Central African Republic (the)","img":"cf.png","code":"+236","ex":"70012345","ptrn":"(?:2[12]|61)$_bf_$d{6}|7[02-7]$_bf_$d{6}|8776$_bf_$d{4}"},{"i":"CG","lbl":"Congo (the)","img":"cg.png","code":"+242","ex":"061234567","ptrn":"222[1-589]$_bf_$d{5}|026(?:1[0-5]|6[6-9])$_bf_$d{4}|0(?:[14-6]$_bf_$d$_bf_$d|2(?:40|5[5-8]|6[07-9]))$_bf_$d{5}|80[0-2]$_bf_$d{6}"},{"i":"CH","lbl":"Switzerland","img":"ch.png","code":"+41","ex":"781234567","ptrn":"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)$_bf_$d{7}|(?:6[89]|7[235-9])$_bf_$d{7}|800$_bf_$d{6}|90[016]$_bf_$d{6}|84[0248]$_bf_$d{6}|878$_bf_$d{6}|5[18]$_bf_$d{7}|860$_bf_$d{9}|74[0248]$_bf_$d{6}"},{"i":"CI","lbl":"Côte d'Ivoire","img":"ci.png","code":"+225","ex":"0123456789","ptrn":"2(?:[15]$_bf_$d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))$_bf_$d{5}|0[157]$_bf_$d{8}"},{"i":"CK","lbl":"Cook Islands (the)","img":"ck.png","code":"+682","ex":"71234","ptrn":"(?:2$_bf_$d|3[13-7]|4[1-5])$_bf_$d{3}|[578]$_bf_$d{4}"},{"i":"CL","lbl":"Chile","img":"cl.png","code":"+56","ex":"221234567","ptrn":"2(?:1982[0-6]|3314[05-9])$_bf_$d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]$_bf_$d|50)$_bf_$d|3(?:[0346-9]$_bf_$d|1[0-35-9]|2[1-9]|5[0-24-9])|600)|646[59])|(?:600|80[1-9])$_bf_$d$_bf_$d|9(?:(?:10[0-2]|7[1-9]$_bf_$d)$_bf_$d|3(?:[0-57-9]$_bf_$d$_bf_$d|6(?:0[02-9]|[1-9]$_bf_$d))|6(?:[0-8]$_bf_$d$_bf_$d|9(?:[02-79]$_bf_$d|1[05-9]))|9(?:[03-9]$_bf_$d$_bf_$d|1(?:[0235-9]$_bf_$d|4[0-24-9])|2(?:[0-79]$_bf_$d|8[0-46-9]))))$_bf_$d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])$_bf_$d{7}|2(?:1982[0-6]|3314[05-9])$_bf_$d{3}|(?:2(?:1(?:160|962)|3(?:(?:[24]$_bf_$d|50)$_bf_$d|3(?:[0346-9]$_bf_$d|1[0-35-9]|2[1-9]|5[0-24-9])|600)|646[59])|80[1-8]$_bf_$d$_bf_$d|9(?:(?:10[0-2]|7[1-9]$_bf_$d)$_bf_$d|3(?:[0-57-9]$_bf_$d$_bf_$d|6(?:0[02-9]|[1-9]$_bf_$d))|6(?:[0-8]$_bf_$d$_bf_$d|9(?:[02-79]$_bf_$d|1[05-9]))|9(?:[03-9]$_bf_$d$_bf_$d|1(?:[0235-9]$_bf_$d|4[0-24-9])|2(?:[0-79]$_bf_$d|8[0-46-9]))))$_bf_$d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])$_bf_$d{7}|(?:123|8)00$_bf_$d{6}|600$_bf_$d{7,8}|44$_bf_$d{7}"},{"i":"CM","lbl":"Cameroon","img":"cm.png","code":"+237","ex":"671234567","ptrn":"2(?:22|33)$_bf_$d{6}|(?:24[23]|6(?:[25-9]$_bf_$d|4[0-2]))$_bf_$d{6}|88$_bf_$d{6,7}"},{"i":"CN","lbl":"China","img":"cn.png","code":"+86","ex":"13123456789","ptrn":"(?:10(?:[02-79]$_bf_$d$_bf_$d|[18](?:0[1-9]|[1-9]$_bf_$d))|2(?:[02-57-9]$_bf_$d{3}|1(?:[18](?:0[1-9]|[1-9]$_bf_$d)|[2-79]$_bf_$d$_bf_$d))|(?:41[03]|8078|9(?:78|94))$_bf_$d$_bf_$d)$_bf_$d{5}|(?:10|2[0-57-9])(?:1(?:00|23)$_bf_$d$_bf_$d|95$_bf_$d{3,4})|(?:41[03]|9(?:78|94))(?:100$_bf_$d$_bf_$d|95$_bf_$d{3,4})|8078123|(?:43[35]|754|851)$_bf_$d{7,8}|(?:43[35]|754|851)(?:1(?:00$_bf_$d|23)$_bf_$d|95$_bf_$d{3,4})|(?:3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1$_bf_$d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]$_bf_$d{7}|1(?:0(?:0$_bf_$d$_bf_$d(?:$_bf_$d{3})?|[1-9]$_bf_$d{5})|[13-9]$_bf_$d{6}|2(?:[0-24-9]$_bf_$d{5}|3$_bf_$d(?:$_bf_$d{4})?))|9(?:[0-46-9]$_bf_$d{6}|5$_bf_$d{3}(?:$_bf_$d(?:$_bf_$d{2})?)?))|(?:3(?:1[02-9]|35|49|5$_bf_$d|7[02-68]|9[1-68])|4(?:1[24-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7$_bf_$d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]$_bf_$d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3$_bf_$d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|3$_bf_$d|4[13]|5[1-5]|7[0-79]|9[0-35-9]))(?:[02-8]$_bf_$d{6}|1(?:0(?:0$_bf_$d$_bf_$d(?:$_bf_$d{2})?|[1-9]$_bf_$d{4})|[13-9]$_bf_$d{5}|2(?:[0-24-9]$_bf_$d{4}|3$_bf_$d(?:$_bf_$d{3})?))|9(?:[0-46-9]$_bf_$d{5}|5$_bf_$d{3,5}))|1(?:610$_bf_$d|740[0-5])$_bf_$d{6}|1(?:[38]$_bf_$d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])$_bf_$d{8}|(?:(?:10|21)8|8)00$_bf_$d{7}|16[08]$_bf_$d{5}|10(?:10$_bf_$d{4}|96$_bf_$d{3,4})|400$_bf_$d{7}|950$_bf_$d{7,8}|(?:2[0-57-9]|3(?:[157]$_bf_$d|35|49|9[1-68])|4(?:[17]$_bf_$d|2[179]|[35][1-9]|6[47-9]|8[23])|5(?:[1357]$_bf_$d|2[37]|4[36]|6[1-46]|80|9[1-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[1579]$_bf_$d|2[248]|3[014-9]|4[3-6]|6[023689])|8(?:1[236-8]|2[5-7]|[37]$_bf_$d|5[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]$_bf_$d|4[13]|5[1-5]))96$_bf_$d{3,4}"},{"i":"CO","lbl":"Colombia","img":"co.png","code":"+57","ex":"3211234567","ptrn":"601055(?:[0-4]$_bf_$d|50)$_bf_$d$_bf_$d|6010(?:[0-4]$_bf_$d|5[0-4])$_bf_$d{4}|(?:46|60(?:[18][1-9]|[24-7][2-9]))$_bf_$d{6}|333301[0-5]$_bf_$d{3}|3333(?:00|2[5-9]|[3-9]$_bf_$d)$_bf_$d{4}|(?:3(?:(?:0[0-5]|1$_bf_$d|5[01]|70)$_bf_$d|2(?:[0-3]$_bf_$d|4[1-9])|3(?:00|3[0-24-9]))|9(?:101|408))$_bf_$d{6}|1800$_bf_$d{7}|(?:19(?:0[01]|4[78])|901)$_bf_$d{7}"},{"i":"CR","lbl":"Costa Rica","img":"cr.png","code":"+506","ex":"83123456","ptrn":"210[7-9]$_bf_$d{4}|2(?:[024-7]$_bf_$d|1[1-9])$_bf_$d{5}|(?:3005$_bf_$d|6500[01])$_bf_$d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])$_bf_$d{6}|800$_bf_$d{7}|90[059]$_bf_$d{7}|(?:210[0-6]|4$_bf_$d{3}|5100)$_bf_$d{4}"},{"i":"CU","lbl":"Cuba","img":"cu.png","code":"+53","ex":"51234567","ptrn":"(?:3[23]|4[89])$_bf_$d{4,6}|(?:31|4[36]|8(?:0[25]|78)$_bf_$d)$_bf_$d{6}|(?:2[1-4]|4[1257]|7$_bf_$d)$_bf_$d{5,6}|(?:5$_bf_$d|6[2-4])$_bf_$d{6}|800$_bf_$d{7}|807$_bf_$d{7}"},{"i":"CV","lbl":"Cabo Verde","img":"cv.png","code":"+238","ex":"9911234","ptrn":"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6$_bf_$d|7[1-3]|8[1-5])$_bf_$d{4}|(?:36|5[1-389]|9$_bf_$d)$_bf_$d{5}|800$_bf_$d{4}|(?:3[3-5]|4[356])$_bf_$d{5}"},{"i":"CY","lbl":"Cyprus","img":"cy.png","code":"+357","ex":"96123456","ptrn":"2[2-6]$_bf_$d{6}|9(?:10|[4-79]$_bf_$d)$_bf_$d{5}|800$_bf_$d{5}|90[09]$_bf_$d{5}|80[1-9]$_bf_$d{5}|700$_bf_$d{5}|(?:50|77)$_bf_$d{6}"},{"i":"CZ","lbl":"Czechia","img":"cz.png","code":"+420","ex":"601123456","ptrn":"(?:2$_bf_$d|3[1257-9]|4[16-9]|5[13-9])$_bf_$d{7}|7060$_bf_$d{5}|(?:60[1-8]|7(?:0[2-5]|19|[2379]$_bf_$d))$_bf_$d{6}|800$_bf_$d{6}|9(?:0[05689]|76)$_bf_$d{6}|8[134]$_bf_$d{7}|70[01]$_bf_$d{6}|9[17]0$_bf_$d{6}|9(?:5$_bf_$d|7[2-4])$_bf_$d{6}|9(?:3$_bf_$d{9}|6$_bf_$d{7,10})"},{"i":"DE","lbl":"Germany","img":"de.png","code":"+49","ex":"15123456789","ptrn":"32$_bf_$d{9,11}|49[1-6]$_bf_$d{10}|322$_bf_$d{6}|49[0-7]$_bf_$d{3,9}|(?:[34]0|[68]9)$_bf_$d{3,13}|(?:2(?:0[1-689]|[1-3569]$_bf_$d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]$_bf_$d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]$_bf_$d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]$_bf_$d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]$_bf_$d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3$_bf_$d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2$_bf_$d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]$_bf_$d|[589][0-7]|6[0-8]|7[0-467]))$_bf_$d{3,12}|1(?:6[023]|7$_bf_$d)$_bf_$d{7,8}|15(?:[0-25-9]$_bf_$d$_bf_$d|3(?:10|33))$_bf_$d{6}|800$_bf_$d{7,12}|(?:137[7-9]|900(?:[135]|9$_bf_$d))$_bf_$d{6}|180$_bf_$d{5,11}|13(?:7[1-6]$_bf_$d$_bf_$d|8)$_bf_$d{4}|700$_bf_$d{8}|18(?:1$_bf_$d{5,11}|[2-9]$_bf_$d{8})|1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))$_bf_$d{7,8}|15(?:(?:[03-68]00|113)$_bf_$d|2$_bf_$d55|7$_bf_$d99|9$_bf_$d33)$_bf_$d{7}|16(?:4$_bf_$d{1,10}|[89]$_bf_$d{1,11})"},{"i":"DJ","lbl":"Djibouti","img":"dj.png","code":"+253","ex":"77831001","ptrn":"2(?:1[2-5]|7[45])$_bf_$d{5}|77$_bf_$d{6}"},{"i":"DK","lbl":"Denmark","img":"dk.png","code":"+45","ex":"32123456","ptrn":"(?:2(?:[0-59][1-9]|[6-8]$_bf_$d)|3(?:[0-3][1-9]|4[13]|5[1-58]|6[1347-9]|7$_bf_$d|8[1-8]|9[1-79])|4(?:[0-25][1-9]|[34][2-9]|6[13-579]|7[13579]|8[1-47]|9[127])|5(?:[0-36][1-9]|4[146-9]|5[3-57-9]|7[568]|8[1-358]|9[1-69])|6(?:[0135][1-9]|2[1-68]|4[2-8]|6[1689]|[78]$_bf_$d|9[15689])|7(?:[0-69][1-9]|7[3-9]|8[147])|8(?:[16-9][1-9]|2[1-58])|9(?:[1-47-9][1-9]|6$_bf_$d))$_bf_$d{5}|(?:2[6-8]|37|6[78]|96)$_bf_$d{6}|(?:2[0-59]|3[0-689]|[457]$_bf_$d|6[0-69]|8[126-9]|9[1-47-9])[1-9]$_bf_$d{5}|80$_bf_$d{6}|90$_bf_$d{6}"},{"i":"DZ","lbl":"Algeria","img":"dz.png","code":"+213","ex":"551234567","ptrn":"9619$_bf_$d{5}|(?:[1-3]$_bf_$d|4[013-689])$_bf_$d{6}|5(?:4[0-29]|6[0-4])$_bf_$d{6}|(?:55|6$_bf_$d|7[7-9])$_bf_$d{7}|800$_bf_$d{6}|80[3-689]1$_bf_$d{5}|80[12]1$_bf_$d{5}|98[23]$_bf_$d{6}"},{"i":"EC","lbl":"Ecuador","img":"ec.png","code":"+593","ex":"991234567","ptrn":"[2-7][2-7]$_bf_$d{6}|964[0-2]$_bf_$d{5}|9(?:39|[57][89]|6[0-36-9]|[89]$_bf_$d)$_bf_$d{6}|1800$_bf_$d{7}|1[78]00$_bf_$d{6}|[2-7]890$_bf_$d{4}"},{"i":"EE","lbl":"Estonia","img":"ee.png","code":"+372","ex":"51234567","ptrn":"(?:3[23589]|4[3-8]|6$_bf_$d|7[1-9]|88)$_bf_$d{5}|(?:5$_bf_$d{5}|8(?:1(?:0(?:0(?:00|[178]$_bf_$d)|[3-9]$_bf_$d$_bf_$d)|(?:1(?:0[2-6]|1$_bf_$d)|[2-79]$_bf_$d$_bf_$d)$_bf_$d)|2(?:0(?:0(?:00|4$_bf_$d)|(?:19|[2-7]$_bf_$d)$_bf_$d)|(?:(?:[124-69]$_bf_$d|3[5-9])$_bf_$d|7(?:[0-79]$_bf_$d|8[013-9])|8(?:[2-6]$_bf_$d|7[01]))$_bf_$d)|[349]$_bf_$d{4}))$_bf_$d$_bf_$d|5(?:(?:[02]$_bf_$d|5[0-478])$_bf_$d|1(?:[0-8]$_bf_$d|95)|6(?:4[0-4]|5[1-589]))$_bf_$d{3}|800(?:(?:0$_bf_$d$_bf_$d|1)$_bf_$d|[2-9])$_bf_$d{3}|(?:40$_bf_$d$_bf_$d|900)$_bf_$d{4}|70[0-2]$_bf_$d{5}"},{"i":"EG","lbl":"Egypt","img":"eg.png","code":"+20","ex":"1001234567","ptrn":"13[23]$_bf_$d{6}|(?:15|57)$_bf_$d{6,7}|(?:2$_bf_$d|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])$_bf_$d{7}|1[0-25]$_bf_$d{8}|800$_bf_$d{7}|900$_bf_$d{7}"},{"i":"EH","lbl":"Western Sahara","img":"eh.png","code":"+212","ex":"650123456","ptrn":"528[89]$_bf_$d{5}|(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:[016-8]$_bf_$d|2[0-8]|3[01]|5[0-5]))$_bf_$d{6}|80[0-7]$_bf_$d{6}|89$_bf_$d{7}|(?:592(?:4[0-2]|93)|80[89]$_bf_$d$_bf_$d)$_bf_$d{4}"},{"i":"MA","lbl":"Morocco","img":"ma.png","code":"+212","ex":"650123456","ptrn":"5(?:(?:18|4[0679]|5[03])$_bf_$d|2(?:[0-25-79]$_bf_$d|3[1-578]|4[02-46-8]|8[0235-9])|3(?:[0-47]$_bf_$d|5[02-9]|6[02-8]|8[014-9]|9[3-9]))$_bf_$d{5}|(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:[016-8]$_bf_$d|2[0-8]|3[01]|5[0-5]))$_bf_$d{6}|80[0-7]$_bf_$d{6}|89$_bf_$d{7}|(?:592(?:4[0-2]|93)|80[89]$_bf_$d$_bf_$d)$_bf_$d{4}"},{"i":"ER","lbl":"Eritrea","img":"er.png","code":"+291","ex":"7123456","ptrn":"(?:1(?:1[12568]|[24]0|55|6[146])|8$_bf_$d$_bf_$d)$_bf_$d{4}|(?:17[1-3]|7$_bf_$d$_bf_$d)$_bf_$d{4}"},{"i":"ES","lbl":"Spain","img":"es.png","code":"+34","ex":"612345678","ptrn":"96906(?:0[0-8]|1[1-9]|[2-9]$_bf_$d)$_bf_$d$_bf_$d|9(?:69(?:0[0-57-9]|[1-9]$_bf_$d)|73(?:[0-8]$_bf_$d|9[1-9]))$_bf_$d{4}|(?:400|8(?:[1356]$_bf_$d|[28][0-8]|[47][1-9])|9(?:[135]$_bf_$d|[268][0-8]|4[1-9]|7[124-9]))$_bf_$d{6}|96906(?:09|10)$_bf_$d$_bf_$d|(?:590(?:10[0-2]|600)|97390$_bf_$d)$_bf_$d{3}|(?:6$_bf_$d|7[1-48])$_bf_$d{7}|[89]00$_bf_$d{6}|80[367]$_bf_$d{6}|90[12]$_bf_$d{6}|70$_bf_$d{7}|51$_bf_$d{7}"},{"i":"ET","lbl":"Ethiopia","img":"et.png","code":"+251","ex":"911234567","ptrn":"(?:11(?:[124]$_bf_$d$_bf_$d|3(?:[0-79]$_bf_$d|8[0-7])|5(?:[02-9]$_bf_$d|1[0-57-9])|6(?:[02-79]$_bf_$d|1[0-57-9]|8[0-8]))|2(?:2(?:11[1-9]|22[0-7]|33$_bf_$d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77$_bf_$d)))$_bf_$d{4}|700[1-9]$_bf_$d{5}|(?:7(?:0[1-9]|1[0-8]|2[1-35-79]|3$_bf_$d|77|86|99)|(?:8[01]|9$_bf_$d)$_bf_$d)$_bf_$d{6}"},{"i":"FJ","lbl":"Fiji","img":"fj.png","code":"+679","ex":"7012345","ptrn":"603$_bf_$d{4}|(?:3[0-6]|6[25-7]|8[58])$_bf_$d{5}|(?:[279]$_bf_$d|45|5[01568]|8[034679])$_bf_$d{5}|0800$_bf_$d{7}"},{"i":"FK","lbl":"Falkland Islands (the) [Malvinas]","img":"fk.png","code":"+500","ex":"51234","ptrn":"[2-47]$_bf_$d{4}|[56]$_bf_$d{4}"},{"i":"FM","lbl":"Micronesia (Federated States of)","img":"fm.png","code":"+691","ex":"3501234","ptrn":"31(?:00[67]|208|309)$_bf_$d$_bf_$d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]$_bf_$d)$_bf_$d)$_bf_$d{3}|31(?:00[67]|208|309)$_bf_$d$_bf_$d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]$_bf_$d)$_bf_$d)$_bf_$d{3}"},{"i":"FO","lbl":"Faroe Islands (the)","img":"fo.png","code":"+298","ex":"211234","ptrn":"(?:20|[34]$_bf_$d|8[19])$_bf_$d{4}|(?:[27][1-9]|5$_bf_$d|9[16])$_bf_$d{4}|80[257-9]$_bf_$d{3}|90(?:[13-5][15-7]|2[125-7]|9$_bf_$d)$_bf_$d$_bf_$d|6[0-36]$_bf_$d{4}"},{"i":"FR","lbl":"France","img":"fr.png","code":"+33","ex":"612345678","ptrn":"(?:26[013-9]|59[1-35-9])$_bf_$d{6}|(?:[13]$_bf_$d|2[0-57-9]|4[1-9]|5[0-8])$_bf_$d{7}|(?:6(?:[0-24-8]$_bf_$d|3[0-8]|9[589])|7[3-9]$_bf_$d)$_bf_$d{6}|80[0-5]$_bf_$d{6}|836(?:0[0-36-9]|[1-9]$_bf_$d)$_bf_$d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]$_bf_$d|8[0-35-9])$_bf_$d{6}|8(?:1[01]|2[0156]|4[024]|84)$_bf_$d{6}|9$_bf_$d{8}|80[6-9]$_bf_$d{6}"},{"i":"GA","lbl":"Gabon","img":"ga.png","code":"+241","ex":"06031234","ptrn":"[01]1$_bf_$d{6}|(?:(?:0[2-7]|7[467])$_bf_$d|6(?:0[0-4]|10|[256]$_bf_$d))$_bf_$d{5}|[2-7]$_bf_$d{6}"},{"i":"GB","lbl":"United Kingdom of Great Britain and Northern Ireland (the)","img":"gb.png","code":"+44","ex":"7400123456","ptrn":"(?:1(?:1(?:3(?:[0-58]$_bf_$d$_bf_$d|73[0-5])|4(?:(?:[0-5]$_bf_$d|70)$_bf_$d|69[7-9])|(?:(?:5[0-26-9]|[78][0-49])$_bf_$d|6(?:[0-4]$_bf_$d|5[01]))$_bf_$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$_bf_$d)$_bf_$d|1(?:[0-7]$_bf_$d|8[0-3]))|(?:3(?:0$_bf_$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]$_bf_$d|[28][02-57-9]|4[02-69]|5[0-8]|[69][0-79])|5(?:0[1-35-9]|[16]$_bf_$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$_bf_$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$_bf_$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$_bf_$d|8[02-9]|9[02569])|9(?:0[02-589]|[18]$_bf_$d|2[02-689]|3[1-57-9]|4[2-9]|5[0-579]|6[2-47-9]|7[0-24578]|9[2-57]))$_bf_$d)$_bf_$d)|2(?:0[013478]|3[0189]|4[017]|8[0-46-9]|9[0-2])$_bf_$d{3})$_bf_$d{4}|1(?:2(?:0(?:46[1-4]|87[2-9])|545[1-79]|76(?:2$_bf_$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$_bf_$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$_bf_$d)|76$_bf_$d)|6(?:26[06-9]|686))|6(?:06(?:4$_bf_$d|7[4-79])|295[5-7]|35[34]$_bf_$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)$_bf_$d|50(?:2[0-3]|[3-68]2|76))|8(?:27[56]$_bf_$d|37(?:5[2-5]|8[239])|843[2-58])|9(?:0(?:0(?:6[1-8]|85)|52$_bf_$d)|3583|4(?:66[1-8]|9(?:2[01]|81))|63(?:23|3[1-4])|9561))$_bf_$d{3}|7(?:457[0-57-9]|700[01]|911[028])$_bf_$d{5}|7(?:[1-3]$_bf_$d$_bf_$d|4(?:[0-46-9]$_bf_$d|5[0-689])|5(?:0[0-8]|[13-9]$_bf_$d|2[0-35-9])|7(?:0[1-9]|[1-7]$_bf_$d|8[02-9]|9[0-689])|8(?:[014-9]$_bf_$d|[23][0-8])|9(?:[024-9]$_bf_$d|1[02-9]|3[0-689]))$_bf_$d{6}|80[08]$_bf_$d{7}|800$_bf_$d{6}|8001111|(?:8(?:4[2-5]|7[0-3])|9(?:[01]$_bf_$d|8[2-49]))$_bf_$d{7}|845464$_bf_$d|70$_bf_$d{8}|56$_bf_$d{8}|(?:3[0347]|55)$_bf_$d{8}|76(?:464|652)$_bf_$d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])$_bf_$d{6}"},{"i":"GG","lbl":"Guernsey","img":"gg.png","code":"+44","ex":"7781123456","ptrn":"1481[25-9]$_bf_$d{5}|7(?:(?:781|839)$_bf_$d|911[17])$_bf_$d{5}|80[08]$_bf_$d{7}|800$_bf_$d{6}|8001111|(?:8(?:4[2-5]|7[0-3])|9(?:[01]$_bf_$d|8[0-3]))$_bf_$d{7}|845464$_bf_$d|70$_bf_$d{8}|56$_bf_$d{8}|(?:3[0347]|55)$_bf_$d{8}|76(?:464|652)$_bf_$d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])$_bf_$d{6}"},{"i":"IM","lbl":"Isle of Man","img":"im.png","code":"+44","ex":"7924123456","ptrn":"1624(?:230|[5-8]$_bf_$d$_bf_$d)$_bf_$d{3}|76245[06]$_bf_$d{4}|7(?:4576|[59]24$_bf_$d|624[0-4689])$_bf_$d{5}|808162$_bf_$d{4}|8(?:440[49]06|72299$_bf_$d)$_bf_$d{3}|(?:8(?:45|70)|90[0167])624$_bf_$d{4}|70$_bf_$d{8}|56$_bf_$d{8}|3440[49]06$_bf_$d{3}|(?:3(?:08162|3$_bf_$d{4}|45624|7(?:0624|2299))|55$_bf_$d{4})$_bf_$d{4}"},{"i":"JE","lbl":"Jersey","img":"je.png","code":"+44","ex":"7797712345","ptrn":"1534[0-24-8]$_bf_$d{5}|7(?:(?:(?:50|82)9|937)$_bf_$d|7(?:00[378]|97$_bf_$d))$_bf_$d{5}|80(?:07(?:35|81)|8901)$_bf_$d{4}|(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))$_bf_$d{4}|701511$_bf_$d{4}|56$_bf_$d{8}|(?:3(?:0(?:07(?:35|81)|8901)|3$_bf_$d{4}|4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|55$_bf_$d{4})$_bf_$d{4}|76(?:464|652)$_bf_$d{5}|76(?:0[0-28]|2[356]|34|4[01347]|5[49]|6[0-369]|77|8[14]|9[139])$_bf_$d{6}"},{"i":"GE","lbl":"Georgia","img":"ge.png","code":"+995","ex":"555123456","ptrn":"(?:3(?:[256]$_bf_$d|4[124-9]|7[0-4])|4(?:1$_bf_$d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))$_bf_$d{6}|5(?:(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))$_bf_$d|22252[0-4])$_bf_$d$_bf_$d|5(?:0(?:0(?:1[09]|70)|505)|1(?:0[01]0|1(?:07|33|51))|2(?:0[02]0|2[25]2)|3(?:0[03]0|3[35]3)|4(?:0[04]0|411)|5222|9000)[0-4]$_bf_$d{3}|(?:5(?:0(?:0(?:0$_bf_$d|1[12]|2[02]|3[0-6]|4[04]|5[05]|77|88|9[09])|(?:[14]$_bf_$d|77)$_bf_$d|22[02])|1(?:1(?:[03][01]|[124]$_bf_$d|5[02-6]|7[0-6])|4$_bf_$d$_bf_$d)|2(?:228|555)|3555|4(?:4(?:[02-9]$_bf_$d|14)|555)|5(?:[0157-9]$_bf_$d$_bf_$d|200|333|4(?:44|55))|6[89]$_bf_$d$_bf_$d|7(?:(?:[0147-9]$_bf_$d|22)$_bf_$d|5(?:00|[57]5))|8(?:0(?:[018]$_bf_$d|2[0-4])|5(?:55|8[89])|8(?:55|88))|9(?:090|[1-35-9]$_bf_$d$_bf_$d))|790$_bf_$d$_bf_$d)$_bf_$d{4}|800$_bf_$d{6}|70[67]$_bf_$d{6}"},{"i":"GF","lbl":"French Guiana","img":"gf.png","code":"+594","ex":"694201234","ptrn":"(?:59(?:4(?:[02-49]$_bf_$d|1[0-5]|5[6-9]|6[0-3]|80)|88$_bf_$d)|80[6-9]$_bf_$d$_bf_$d)$_bf_$d{4}|(?:694(?:[0-249]$_bf_$d|3[0-8])|7093[0-3])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}|9(?:(?:396|76$_bf_$d)$_bf_$d|476[0-6])$_bf_$d{4}"},{"i":"GH","lbl":"Ghana","img":"gh.png","code":"+233","ex":"231234567","ptrn":"3082[0-5]$_bf_$d{4}|3(?:0(?:[237]$_bf_$d|8[01])|[167](?:2[0-6]|7$_bf_$d|80)|2(?:2[0-5]|7$_bf_$d|80)|3(?:2[0-3]|7$_bf_$d|80)|4(?:2[013-9]|3[01]|7$_bf_$d|80)|5(?:2[0-7]|7$_bf_$d|80)|8(?:2[0-2]|7$_bf_$d|80)|9(?:[28]0|7$_bf_$d))$_bf_$d{5}|(?:2(?:[0346-9]$_bf_$d|5[67])|5(?:[03-7]$_bf_$d|9[1-9]))$_bf_$d{6}|800$_bf_$d{5,6}"},{"i":"GI","lbl":"Gibraltar","img":"gi.png","code":"+350","ex":"57123456","ptrn":"2190[0-2]$_bf_$d{3}|2(?:0(?:[02]$_bf_$d|3[01])|16[24-9]|2[2-5]$_bf_$d)$_bf_$d{4}|5251[0-4]$_bf_$d{3}|(?:5(?:[146-8]$_bf_$d$_bf_$d|250)|60(?:1[01]|6$_bf_$d))$_bf_$d{4}"},{"i":"GL","lbl":"Greenland","img":"gl.png","code":"+299","ex":"221234","ptrn":"(?:19|3[1-7]|[68][1-9]|70|9$_bf_$d)$_bf_$d{4}|[245]$_bf_$d{5}|80$_bf_$d{4}|3[89]$_bf_$d{4}"},{"i":"GM","lbl":"Gambia (the)","img":"gm.png","code":"+220","ex":"3012345","ptrn":"44(?:44[6-9]|8[0-389]$_bf_$d)$_bf_$d{4}|44[6-9]$_bf_$d{4}|(?:4(?:[23]|44[23])|8[0-389])$_bf_$d{5}|44(?:1|441)[024679]$_bf_$d{3}|(?:445|5)(?:5(?:3$_bf_$d|4[0-7])|6[67]$_bf_$d|7(?:1[04]|2[035]|3[58]|48))$_bf_$d{3}|(?:(?:[23679]$_bf_$d|4[015]|8(?:(?:3[35]|6[68]|99)$_bf_$d|7(?:[27]$_bf_$d|4[015])))$_bf_$d|5(?:[0-489]$_bf_$d|56))$_bf_$d{4}|8[4-7]$_bf_$d{5}"},{"i":"GN","lbl":"Guinea","img":"gn.png","code":"+224","ex":"601123456","ptrn":"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1$_bf_$d$_bf_$d)$_bf_$d{4}|6[0-356]$_bf_$d{7}|722$_bf_$d{6}"},{"i":"GQ","lbl":"Equatorial Guinea","img":"gq.png","code":"+240","ex":"222123456","ptrn":"33[0-24-9]$_bf_$d[46]$_bf_$d{4}|3(?:33|5$_bf_$d)$_bf_$d[7-9]$_bf_$d{4}|(?:222|55$_bf_$d)$_bf_$d{6}|80$_bf_$d[1-9]$_bf_$d{5}|90$_bf_$d[1-9]$_bf_$d{5}"},{"i":"GR","lbl":"Greece","img":"gr.png","code":"+30","ex":"6912345678","ptrn":"2(?:1$_bf_$d$_bf_$d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1$_bf_$d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1$_bf_$d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1$_bf_$d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1$_bf_$d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1$_bf_$d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1$_bf_$d|2[1-5]|[34][1-4]|9[1-57]))$_bf_$d{6}|68[57-9]$_bf_$d{7}|(?:69|94)$_bf_$d{8}|800$_bf_$d{7,9}|90[19]$_bf_$d{7}|8(?:0[16]|12|[27]5|50)$_bf_$d{7}|70$_bf_$d{8}|5005000$_bf_$d{3}"},{"i":"GT","lbl":"Guatemala","img":"gt.png","code":"+502","ex":"51234567","ptrn":"[267][2-9]$_bf_$d{6}|(?:[3-5]$_bf_$d$_bf_$d|80[0-4])$_bf_$d{5}|18[01]$_bf_$d{8}|19$_bf_$d{9}"},{"i":"GW","lbl":"Guinea-Bissau","img":"gw.png","code":"+245","ex":"955012345","ptrn":"443$_bf_$d{6}|9(?:5$_bf_$d|6[569]|77)$_bf_$d{6}|40$_bf_$d{5}"},{"i":"GY","lbl":"Guyana","img":"gy.png","code":"+592","ex":"6091234","ptrn":"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6$_bf_$d|7[0-79])|3(?:2[25-9]|3$_bf_$d)|4(?:4[0-24]|5[56])|50[0-6]|77[1-57])$_bf_$d{4}|(?:51[01]|6$_bf_$d$_bf_$d|7(?:[0-5]$_bf_$d|6[0-79]|70|8[067]))$_bf_$d{4}|(?:289|8(?:00|6[28]|88|99))$_bf_$d{4}|9008$_bf_$d{3}|515$_bf_$d{4}"},{"i":"HK","lbl":"Hong Kong","img":"hk.png","code":"+852","ex":"51234567","ptrn":"(?:2(?:[13-9]$_bf_$d|2[013-9])$_bf_$d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])$_bf_$d|8(?:4[0-8]|[579]$_bf_$d|6[0-5]))|58(?:0[1-9]|1[2-9]))$_bf_$d{4}|(?:4(?:(?:09|24)[3-6]|44[0-35-9]|6(?:4[0-57-9]|6[0-6])|7(?:4[0-48]|6[0-5]))|5(?:25[3-7]|35[4-8]|73[0-6]|95[0-8])|6(?:26[013-8]|(?:66|78)[0-5])|70(?:7[1-8]|8[0-8])|84(?:4[0-2]|8[0-35-9])|9(?:29[013-9]|39[014-9]|59[0-467]|899))$_bf_$d{4}|(?:4(?:4[0-35-9]|6[0-357-9]|7[0-35])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]$_bf_$d|[268][0-57-9]|7[0-79])|70[1-59]|84[0-39]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]$_bf_$d))$_bf_$d{5}|800$_bf_$d{6}|900(?:[0-24-9]$_bf_$d{7}|3$_bf_$d{1,4})|8(?:1[0-4679]$_bf_$d|2(?:[0-36]$_bf_$d|7[0-4])|3(?:[034]$_bf_$d|2[09]|70))$_bf_$d{4}|30(?:0[1-9]|[15-7]$_bf_$d|2[047]|89)$_bf_$d{4}|7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]$_bf_$d|1[18]|7[27-9])|3(?:[0-38]$_bf_$d|7[0-369]|9[2357-9])|47$_bf_$d|5(?:[178]$_bf_$d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]$_bf_$d)|7(?:[27]$_bf_$d|8[7-9])|8(?:[23689]$_bf_$d|7[1-9])|9(?:[025]$_bf_$d|6[0-246-8]|7[0-36-9]|8[238]))$_bf_$d{4}"},{"i":"HN","lbl":"Honduras","img":"hn.png","code":"+504","ex":"91234567","ptrn":"2(?:2(?:0[0-59]|1[1-9]|[23]$_bf_$d|4[02-8]|5[57]|6[2458]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589]|80)|5(?:0[2357-9]|1[1-6]|4[03-58]|5$_bf_$d|6[014-69]|7[04]|80)|6(?:[056]$_bf_$d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|2[01]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))$_bf_$d{4}|[37-9]$_bf_$d{7}|8002$_bf_$d{7}"},{"i":"HR","lbl":"Croatia","img":"hr.png","code":"+385","ex":"921234567","ptrn":"1$_bf_$d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])$_bf_$d{6,7}|9(?:(?:0[1-9]|[12589]$_bf_$d)$_bf_$d$_bf_$d|7(?:[0679]$_bf_$d$_bf_$d|5(?:[01]$_bf_$d|44|55|77|9[5-79])))$_bf_$d{4}|98$_bf_$d{6}|80$_bf_$d{5,7}|6[01459]$_bf_$d{6}|6[01]$_bf_$d{5}|7[45]$_bf_$d{6}|62$_bf_$d{6,7}|72$_bf_$d{6}"},{"i":"HT","lbl":"Haiti","img":"ht.png","code":"+509","ex":"34101234","ptrn":"2(?:2$_bf_$d|5[1-5]|81|9[149])$_bf_$d{5}|(?:[34]$_bf_$d|5[568])$_bf_$d{6}|8$_bf_$d{7}|9(?:[67][0-4]|8[0-3589]|9$_bf_$d)$_bf_$d{5}"},{"i":"HU","lbl":"Hungary","img":"hu.png","code":"+36","ex":"201234567","ptrn":"(?:1$_bf_$d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])$_bf_$d{6}|(?:[257]0|3[01])$_bf_$d{7}|(?:[48]0$_bf_$d|680[29])$_bf_$d{5}|9[01]$_bf_$d{6}|21$_bf_$d{7}|38$_bf_$d{7}"},{"i":"ID","lbl":"Indonesia","img":"id.png","code":"+62","ex":"812345678","ptrn":"2[124]$_bf_$d{7,8}|619$_bf_$d{8}|2(?:1(?:14|500)|2$_bf_$d{3})$_bf_$d{3}|61$_bf_$d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8$_bf_$d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8$_bf_$d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]$_bf_$d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]$_bf_$d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))$_bf_$d{5,8}|8[1-35-9]$_bf_$d{7,10}|00(?:1803$_bf_$d{5,11}|7803$_bf_$d{7})|(?:177$_bf_$d|800)$_bf_$d{5,7}|809$_bf_$d{7}|804$_bf_$d{7}|(?:1500|8071$_bf_$d{3})$_bf_$d{3}"},{"i":"IE","lbl":"Ireland","img":"ie.png","code":"+353","ex":"850123456","ptrn":"(?:1$_bf_$d|21)$_bf_$d{6,7}|(?:2[24-9]|4(?:0[24]|5$_bf_$d|7)|5(?:0[45]|1$_bf_$d|8)|6(?:1$_bf_$d|[237-9])|9(?:1$_bf_$d|[35-9]))$_bf_$d{5}|(?:23|4(?:[1-469]|8$_bf_$d)|5[23679]|6[4-6]|7[14]|9[04])$_bf_$d{7}|8(?:22|[35-9]$_bf_$d)$_bf_$d{6}|1800$_bf_$d{6}|15(?:1[2-8]|[2-8]0|9[089])$_bf_$d{6}|18[59]0$_bf_$d{6}|700$_bf_$d{6}|76$_bf_$d{7}|818$_bf_$d{6}|88210[1-9]$_bf_$d{4}|8(?:[35-79]5$_bf_$d$_bf_$d|8(?:[013-9]$_bf_$d$_bf_$d|2(?:[01][1-9]|[2-9]$_bf_$d)))$_bf_$d{5}"},{"i":"IL","lbl":"Israel","img":"il.png","code":"+972","ex":"502345678","ptrn":"153$_bf_$d{8,9}|29[1-9]$_bf_$d{5}|(?:2[0-8]|[3489]$_bf_$d)$_bf_$d{6}|55(?:4(?:0[0-3]|10|6[015-9])|57[0-289]|8[06][0-2])$_bf_$d{4}|5(?:(?:[0-2][02-9]|[36]$_bf_$d|[49][2-9]|8[3-7])$_bf_$d|5(?:01|2$_bf_$d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))$_bf_$d{5}|1(?:255|80[019]$_bf_$d{3})$_bf_$d{3}|1212$_bf_$d{4}|1(?:200|9(?:0[0-2]|19|9$_bf_$d))$_bf_$d{6}|1700$_bf_$d{6}|7(?:280[01]|38(?:[05]$_bf_$d|8[01358])|8(?:33|55|77|81)$_bf_$d)$_bf_$d{4}|7(?:18|2[23]|3[237]|47|6[258]|7$_bf_$d|82|9[2-9])$_bf_$d{6}|1599$_bf_$d{6}|151$_bf_$d{8,9}"},{"i":"IN","lbl":"India","img":"in.png","code":"+91","ex":"8123456789","ptrn":"(?:2717(?:[2-7]$_bf_$d|95)|6828[235-7]$_bf_$d)$_bf_$d{4}|(?:170[24]|280[13468]|4(?:20[24]|72[2-8])|552[1-7])$_bf_$d{6}|(?:271[0-689]|682[0-79]|782[0-6])[2-7]$_bf_$d{5}|(?:2(?:[02][2-79]|90)|3(?:23|80)|683|79[1-7])$_bf_$d{7}|(?:11|33|4[04]|80)[2-7]$_bf_$d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]$_bf_$d)$_bf_$d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]$_bf_$d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[14-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5$_bf_$d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))$_bf_$d[2-7]$_bf_$d{5}|(?:6(?:1279|828[01489])|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))$_bf_$d{5}|(?:160[01]|6(?:(?:12|[2-4]1|5[17]|6[13]|80)[0189]|7(?:1[0189]|86))|7(?:1(?:2[0189]|9[0-5])|3(?:2[5-8]|[34][017-9]|9[016-9])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))$_bf_$d{6}|(?:731|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]$_bf_$d|7[02-8])$_bf_$d{5}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578])$_bf_$d|7(?:[23569]$_bf_$d|4[0189]|8[0-57-9])|8(?:[14-6]$_bf_$d|2[0-79]))|7(?:1(?:[013-8]$_bf_$d|9[6-9])|3(?:2[0-49]|9[2-5])|5(?:2[1-3]|9[0-6])|6(?:0[5689]|2[5-9]|3[02-8]|4$_bf_$d|5[0-367])|70[13-7]|881))[0189]$_bf_$d{5}|(?:6(?:[09]$_bf_$d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:[024]$_bf_$d|3[05-8]|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]$_bf_$d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9$_bf_$d$_bf_$d)$_bf_$d{7}|000800$_bf_$d{7}|180(?:0$_bf_$d{4,9}|3$_bf_$d{9})|186[12]$_bf_$d{9}|1860$_bf_$d{7}|140$_bf_$d{7}"},{"i":"IO","lbl":"British Indian Ocean Territory (the)","img":"io.png","code":"+246","ex":"3801234","ptrn":"37$_bf_$d{5}|38$_bf_$d{5}"},{"i":"IQ","lbl":"Iraq","img":"iq.png","code":"+964","ex":"7912345678","ptrn":"1$_bf_$d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])$_bf_$d{6,7}|7[3-9]$_bf_$d{8}"},{"i":"IR","lbl":"Iran (Islamic Republic of)","img":"ir.png","code":"+98","ex":"9123456789","ptrn":"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]$_bf_$d{7}|[16]$_bf_$d{3}(?:$_bf_$d{4})?|[289]$_bf_$d{3}(?:$_bf_$d(?:$_bf_$d{3})?)?)|94(?:000[09]|(?:12$_bf_$d|30[0-2])$_bf_$d|2(?:[02689]0$_bf_$d|121)|4(?:111|40$_bf_$d))$_bf_$d{4}|9(?:(?:0[0-5]|[13]$_bf_$d|2[0-3])$_bf_$d$_bf_$d|9(?:[0-46]$_bf_$d$_bf_$d|5(?:10|5$_bf_$d)|8(?:[12]$_bf_$d|3[0-2]|88)|9(?:[01359]$_bf_$d|21|69|77|8[7-9])))$_bf_$d{5}|96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])"},{"i":"IS","lbl":"Iceland","img":"is.png","code":"+354","ex":"6111234","ptrn":"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6$_bf_$d|8[0-36-8])|5(?:05|[156]$_bf_$d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)$_bf_$d{4}|(?:38[589]$_bf_$d$_bf_$d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9$_bf_$d)|7(?:5[057]|[6-9]$_bf_$d)|8(?:2[0-59]|[3-69]$_bf_$d|8[238]))$_bf_$d{4}|80[0-8]$_bf_$d{4}|90(?:0$_bf_$d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])$_bf_$d{3}|49[0-24-79]$_bf_$d{4}|809$_bf_$d{4}|(?:689|8(?:7[18]|80)|95[48])$_bf_$d{4}"},{"i":"IT","lbl":"Italy","img":"it.png","code":"+39","ex":"3123456789","ptrn":"0(?:669[0-79]$_bf_$d{1,6}|831$_bf_$d{2,8})|0(?:1(?:[0159]$_bf_$d|[27][1-5]|31|4[1-4]|6[1356]|8[2-57])|2$_bf_$d$_bf_$d|3(?:[0159]$_bf_$d|2[1-4]|3[12]|[48][1-6]|6[2-59]|7[1-7])|4(?:[0159]$_bf_$d|[23][1-9]|4[245]|6[1-5]|7[1-4]|81)|5(?:[0159]$_bf_$d|2[1-5]|3[2-6]|4[1-79]|6[4-6]|7[1-578]|8[3-8])|6(?:[0-57-9]$_bf_$d|6[0-8])|7(?:[0159]$_bf_$d|2[12]|3[1-7]|4[2-46]|6[13569]|7[13-6]|8[1-59])|8(?:[0159]$_bf_$d|2[3-578]|3[2356]|[6-8][1-5])|9(?:[0159]$_bf_$d|[238][1-5]|4[12]|6[1-8]|7[1-6]))$_bf_$d{2,7}|3[2-9]$_bf_$d{7,8}|(?:31|43)$_bf_$d{8}|80(?:0$_bf_$d{3}|3)$_bf_$d{3}|(?:0878$_bf_$d{3}|89(?:2$_bf_$d|3[04]|4(?:[0-4]|[5-9]$_bf_$d$_bf_$d)|5[0-4]))$_bf_$d$_bf_$d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))$_bf_$d{6}|84(?:[08]$_bf_$d{3}|[17])$_bf_$d{3}|1(?:78$_bf_$d|99)$_bf_$d{6}|55$_bf_$d{8}|3[2-8]$_bf_$d{9,10}"},{"i":"VA","lbl":"Holy See (the)","img":"va.png","code":"+39","ex":"3123456789","ptrn":"06698$_bf_$d{1,6}|3[1-9]$_bf_$d{8}|3[2-9]$_bf_$d{7}|80(?:0$_bf_$d{3}|3)$_bf_$d{3}|(?:0878$_bf_$d{3}|89(?:2$_bf_$d|3[04]|4(?:[0-4]|[5-9]$_bf_$d$_bf_$d)|5[0-4]))$_bf_$d$_bf_$d|(?:1(?:44|6[346])|89(?:38|5[5-9]|9))$_bf_$d{6}|84(?:[08]$_bf_$d{3}|[17])$_bf_$d{3}|1(?:78$_bf_$d|99)$_bf_$d{6}|55$_bf_$d{8}|3[2-8]$_bf_$d{9,10}"},{"i":"JO","lbl":"Jordan","img":"jo.png","code":"+962","ex":"790123456","ptrn":"87(?:000|90[01])$_bf_$d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3$_bf_$d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7$_bf_$d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))$_bf_$d{4}|(?:427|7(?:[78][0-25-9]|9$_bf_$d))$_bf_$d{6}|80$_bf_$d{6}|9$_bf_$d{7}|85$_bf_$d{6}|70$_bf_$d{7}|8(?:10|8$_bf_$d)$_bf_$d{5}|74(?:66|77)$_bf_$d{5}"},{"i":"JP","lbl":"Japan","img":"jp.png","code":"+81","ex":"9012345678","ptrn":"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])$_bf_$d|4(?:[2-578]$_bf_$d|6[02-8]|9[2-59])|5(?:[2-589]$_bf_$d|6[1-9]|7[2-8])|7(?:[25-9]$_bf_$d|3[4-9]|4[02-9])|8(?:[2679]$_bf_$d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]$_bf_$d|[679][1-9]))$_bf_$d{6}|[6-9]0[1-9]$_bf_$d{7}|00777(?:[01]|5$_bf_$d)$_bf_$d$_bf_$d|(?:00(?:7778|882[1245])|(?:120|800$_bf_$d)$_bf_$d$_bf_$d)$_bf_$d{4}|00(?:37|66|78)$_bf_$d{6,13}|990$_bf_$d{6}|60$_bf_$d{7}|50[1-9]$_bf_$d{7}|570$_bf_$d{6}|20$_bf_$d{8}"},{"i":"KE","lbl":"Kenya","img":"ke.png","code":"+254","ex":"712123456","ptrn":"(?:4[245]|5[1-79]|6[01457-9])$_bf_$d{5,7}|(?:4[136]|5[08]|62)$_bf_$d{7}|(?:[24]0|66)$_bf_$d{6,7}|(?:1(?:0[0-8]|[18]$_bf_$d|2[014]|30|4[0-5])|7$_bf_$d$_bf_$d)$_bf_$d{6}|800[02-8]$_bf_$d{5,6}|900[02-9]$_bf_$d{5}"},{"i":"KG","lbl":"Kyrgyzstan","img":"kg.png","code":"+996","ex":"700123456","ptrn":"312(?:5[0-79]$_bf_$d|9(?:[0-689]$_bf_$d|7[0-24-9]))$_bf_$d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]$_bf_$d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6$_bf_$d)|5(?:22|3[4-7]|59|6$_bf_$d)|6(?:22|5[35-7]|6$_bf_$d)|7(?:22|3[468]|4[1-9]|59|[67]$_bf_$d)|9(?:22|4[1-8]|6$_bf_$d))|6(?:09|12|2[2-4])$_bf_$d)$_bf_$d{5}|312(?:58$_bf_$d|973)$_bf_$d{3}|(?:2(?:0[0-35]|2$_bf_$d)|5[0-24-7]$_bf_$d|600|7(?:[07]$_bf_$d|55)|88[08]|9(?:12|9[05-9]))$_bf_$d{6}|800$_bf_$d{6,7}"},{"i":"KH","lbl":"Cambodia","img":"kh.png","code":"+855","ex":"91234567","ptrn":"23(?:4(?:[2-4]|[56]$_bf_$d)|[568]$_bf_$d$_bf_$d)$_bf_$d{4}|23[236-9]$_bf_$d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5$_bf_$d)$_bf_$d{5}|6$_bf_$d{5,6})|(?:(?:1[28]|3[18]|9[67])$_bf_$d|6[016-9]|7(?:[07-9]|[16]$_bf_$d)|8(?:[013-79]|8$_bf_$d))$_bf_$d{6}|(?:1$_bf_$d|9[0-57-9])$_bf_$d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48$_bf_$d{5}|1800(?:1$_bf_$d|2[019])$_bf_$d{4}|1900(?:1$_bf_$d|2[09])$_bf_$d{4}"},{"i":"KI","lbl":"Kiribati","img":"ki.png","code":"+686","ex":"72001234","ptrn":"(?:[24]$_bf_$d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27$_bf_$d$_bf_$d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])$_bf_$d{3}|(?:6200[01]|7(?:310[1-9]|5(?:02[03-9]|12[0-47-9]|22[0-7]|[34](?:0[1-9]|8[02-9])|50[1-9])))$_bf_$d{3}|(?:63$_bf_$d$_bf_$d|7(?:(?:[0146-9]$_bf_$d|2[0-689])$_bf_$d|3(?:[02-9]$_bf_$d|1[1-9])|5(?:[0-2][013-9]|[34][1-79]|5[1-9]|[6-9]$_bf_$d)))$_bf_$d{4}|30(?:0[01]$_bf_$d$_bf_$d|12(?:11|20))$_bf_$d$_bf_$d"},{"i":"KM","lbl":"Comoros (the)","img":"km.png","code":"+269","ex":"3212345","ptrn":"7[4-7]$_bf_$d{5}|[34]$_bf_$d{6}|8$_bf_$d{6}"},{"i":"KP","lbl":"Korea (the Democratic People's Republic of)","img":"kp.png","code":"+850","ex":"1921234567","ptrn":"(?:(?:195|2)$_bf_$d|3[19]|4[159]|5[37]|6[17]|7[39]|85)$_bf_$d{6}|19[1-3]$_bf_$d{7}"},{"i":"KR","lbl":"Korea (the Republic of)","img":"kr.png","code":"+82","ex":"1020000000","ptrn":"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]$_bf_$d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1$_bf_$d{2,3}|1(?:05(?:[0-8]$_bf_$d|9[0-6])|22[13]$_bf_$d)$_bf_$d{4,5}|1(?:0[0-46-9]|[16-9]$_bf_$d|2[013-9])$_bf_$d{6,7}|00(?:308$_bf_$d{6,7}|798$_bf_$d{7,9})|(?:00368|[38]0)$_bf_$d{7}|60[2-9]$_bf_$d{6}|50$_bf_$d{8,9}|70$_bf_$d{8}|1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[0168]|88)|8(?:00|33|55|77|99))$_bf_$d{4}|15$_bf_$d{7,8}"},{"i":"KW","lbl":"Kuwait","img":"kw.png","code":"+965","ex":"50012345","ptrn":"2(?:[23]$_bf_$d$_bf_$d|4(?:[1-35-9]$_bf_$d|44)|5(?:0[034]|[2-46]$_bf_$d|5[1-3]|7[1-7]))$_bf_$d{4}|(?:41$_bf_$d$_bf_$d|5(?:(?:[05]$_bf_$d|1[0-7]|6[56])$_bf_$d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6$_bf_$d)$_bf_$d|1(?:00|11|6[16])|2[26]2|3[36]3|4[46]4|7(?:0[013-9]|[67]$_bf_$d)|8[68]8|9(?:[069]$_bf_$d|3[039]))|9(?:(?:[04679]$_bf_$d|8[057-9])$_bf_$d|1(?:00|1[01]|99)|2(?:00|2$_bf_$d)|3(?:00|3[03])|5(?:00|5$_bf_$d)))$_bf_$d{4}|18$_bf_$d{5}"},{"i":"KZ","lbl":"Kazakhstan","img":"kz.png","code":"+7","ex":"7710009998","ptrn":"7(?:1(?:0(?:[23]$_bf_$d|4[0-3]|59|63)|1(?:[23]$_bf_$d|4[0-79]|59)|2(?:[23]$_bf_$d|59)|3(?:2$_bf_$d|3[0-79]|4[0-35-9]|59)|4(?:[24]$_bf_$d|3[013-9]|5[1-9]|97)|5(?:2$_bf_$d|3[1-9]|4[0-7]|59)|6(?:[2-4]$_bf_$d|5[19]|61)|72$_bf_$d|8(?:[27]$_bf_$d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]$_bf_$d|4[46-9]|5[3469])|2(?:2$_bf_$d|3[0679]|46|5[12679])|3(?:[2-4]$_bf_$d|5[139])|4(?:2$_bf_$d|3[1-35-9]|59)|5(?:[23]$_bf_$d|4[0-8]|59|61)|6(?:2$_bf_$d|3[1-9]|4[0-4]|59)|7(?:[2379]$_bf_$d|40|5[279])|8(?:[23]$_bf_$d|4[0-3]|59)|9(?:2$_bf_$d|3[124578]|59)))$_bf_$d{5}|7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)$_bf_$d{7}|8(?:00|108$_bf_$d{3})$_bf_$d{7}|809$_bf_$d{7}|808$_bf_$d{7}|751$_bf_$d{7}"},{"i":"RU","lbl":"Russian Federation (the)","img":"ru.png","code":"+7","ex":"9123456789","ptrn":"(?:3(?:0[12]|36|4[1-35-79]|5[1-3]|65|8[1-58]|9[0145])|4(?:01|1[1356]|2[13467]|7[1-5]|8[1-7]|9[1-689])|8(?:1[1-8]|2[01]|3[13-6]|4[0-8]|5[15-7]|6[0-35-79]|7[1-37-9]))$_bf_$d{7}|9$_bf_$d{9}|8(?:0[04]|108$_bf_$d{3})$_bf_$d{7}|80[39]$_bf_$d{7}|808$_bf_$d{7}"},{"i":"LA","lbl":"Lao People's Democratic Republic (the)","img":"la.png","code":"+856","ex":"2023123456","ptrn":"(?:2[13]|[35-7][14]|41|8[1468])$_bf_$d{6}|(?:20(?:[23579]$_bf_$d|8[78])|30[24]$_bf_$d)$_bf_$d{6}|30$_bf_$d{7}"},{"i":"LB","lbl":"Lebanon","img":"lb.png","code":"+961","ex":"71123456","ptrn":"7(?:62|8[0-6]|9[04-9])$_bf_$d{4}|(?:[14-69]$_bf_$d|2(?:[14-69]$_bf_$d|[78][1-9])|7[2-57]|8[02-9])$_bf_$d{5}|(?:(?:3|81)$_bf_$d|7(?:[01]$_bf_$d|6[013-9]|8[7-9]|9[0-4]))$_bf_$d{5}|9[01]$_bf_$d{6}|80$_bf_$d{6}"},{"i":"LI","lbl":"Liechtenstein","img":"li.png","code":"+423","ex":"660234567","ptrn":"(?:2(?:01|1[27]|2[024]|3$_bf_$d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))$_bf_$d{4}|(?:6(?:(?:4[5-9]|5$_bf_$d)$_bf_$d|6(?:[024-68]$_bf_$d|1[01]|3[7-9]|7[02]))$_bf_$d|7(?:[37-9]$_bf_$d|42|56))$_bf_$d{4}|8002[28]$_bf_$d$_bf_$d|80(?:05$_bf_$d|9)$_bf_$d{4}|90(?:02[258]|1(?:23|3[14])|66[136])$_bf_$d$_bf_$d|870(?:28|87)$_bf_$d$_bf_$d|697(?:42|56|[78]$_bf_$d)$_bf_$d{4}"},{"i":"LK","lbl":"Sri Lanka","img":"lk.png","code":"+94","ex":"712345678","ptrn":"(?:12[2-9]|602|8[12]$_bf_$d|9(?:1$_bf_$d|22|9[245]))$_bf_$d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]$_bf_$d{6}|7(?:[0-25-8]$_bf_$d|4[0-4])$_bf_$d{6}|1973$_bf_$d{5}"},{"i":"LR","lbl":"Liberia","img":"lr.png","code":"+231","ex":"770123456","ptrn":"2$_bf_$d{7}|(?:(?:(?:22|33)0|555|7(?:6[01]|7$_bf_$d)|88$_bf_$d)$_bf_$d|4(?:240|[67]))$_bf_$d{5}|[56]$_bf_$d{6}|332(?:02|[34]$_bf_$d)$_bf_$d{4}"},{"i":"LS","lbl":"Lesotho","img":"ls.png","code":"+266","ex":"50123456","ptrn":"2$_bf_$d{7}|[56]$_bf_$d{7}|800[1256]$_bf_$d{4}"},{"i":"LT","lbl":"Lithuania","img":"lt.png","code":"+370","ex":"61234567","ptrn":"(?:3[1478]|4[124-6]|52)$_bf_$d{6}|6$_bf_$d{7}|80[02]$_bf_$d{5}|9(?:0[0239]|10)$_bf_$d{5}|808$_bf_$d{5}|70[05]$_bf_$d{5}|[89]01$_bf_$d{5}|70[67]$_bf_$d{5}"},{"i":"LU","lbl":"Luxembourg","img":"lu.png","code":"+352","ex":"628123456","ptrn":"(?:35[013-9]|80[2-9]|90[89])$_bf_$d{1,8}|(?:2[2-9]|3[0-46-9]|[457]$_bf_$d|8[13-9]|9[2-579])$_bf_$d{2,9}|6(?:[26][18]|5[1568]|7[189]|81|9[128])$_bf_$d{6}|800$_bf_$d{5}|90[015]$_bf_$d{5}|801$_bf_$d{5}|20(?:1$_bf_$d{5}|[2-689]$_bf_$d{1,7})"},{"i":"LV","lbl":"Latvia","img":"lv.png","code":"+371","ex":"21234567","ptrn":"6$_bf_$d{7}|2333[0-8]$_bf_$d{3}|2(?:[0-24-9]$_bf_$d$_bf_$d|3(?:0[07]|[14-9]$_bf_$d|2[02-9]|3[0-24-9]))$_bf_$d{4}|80$_bf_$d{6}|90$_bf_$d{6}|81$_bf_$d{6}"},{"i":"LY","lbl":"Libya","img":"ly.png","code":"+218","ex":"912345678","ptrn":"(?:2(?:0[56]|[1-6]$_bf_$d|7[124579]|8[124])|3(?:1$_bf_$d|2[2356])|4(?:[17]$_bf_$d|2[1-357]|5[2-4]|8[124])|5(?:[1347]$_bf_$d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]$_bf_$d|5[2-57]|8[1-5])|7(?:[13]$_bf_$d|2[13-79])|8(?:[124]$_bf_$d|5[124]|84))$_bf_$d{6}|9[1-6]$_bf_$d{7}"},{"i":"MC","lbl":"Monaco","img":"mc.png","code":"+377","ex":"612345678","ptrn":"(?:870|9[2-47-9]$_bf_$d)$_bf_$d{5}|4(?:[46]$_bf_$d|5[1-9])$_bf_$d{5}|(?:3|[67]$_bf_$d)$_bf_$d{7}|(?:800|90$_bf_$d)$_bf_$d{5}"},{"i":"MD","lbl":"Moldova (the Republic of)","img":"md.png","code":"+373","ex":"62112345","ptrn":"(?:(?:2[1-9]|3[1-79])$_bf_$d|5(?:33|5[257]))$_bf_$d{5}|562$_bf_$d{5}|(?:6$_bf_$d|7[16-9])$_bf_$d{6}|800$_bf_$d{5}|90[056]$_bf_$d{5}|808$_bf_$d{5}|3[08]$_bf_$d{6}|803$_bf_$d{5}"},{"i":"ME","lbl":"Montenegro","img":"me.png","code":"+382","ex":"67622901","ptrn":"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))$_bf_$d{5}|6(?:[07-9]$_bf_$d|3[024]|6[0-25])$_bf_$d{5}|80(?:[0-2578]|9$_bf_$d)$_bf_$d{5}|9(?:4[1568]|5[178])$_bf_$d{5}|78[1-49]$_bf_$d{5}|77[1-9]$_bf_$d{5}"},{"i":"MG","lbl":"Madagascar","img":"mg.png","code":"+261","ex":"321234567","ptrn":"2072[29]$_bf_$d{4}|20(?:2$_bf_$d|4[47]|5[3467]|6[279]|7[356]|8[268]|9[2457])$_bf_$d{5}|3[2-9]$_bf_$d{7}|22$_bf_$d{7}"},{"i":"MH","lbl":"Marshall Islands (the)","img":"mh.png","code":"+692","ex":"2351234","ptrn":"(?:247|528|625)$_bf_$d{4}|(?:(?:23|54)5|329|45[35-8])$_bf_$d{4}|635$_bf_$d{4}"},{"i":"MK","lbl":"Republic of North Macedonia","img":"mk.png","code":"+389","ex":"72345678","ptrn":"(?:(?:2(?:62|77)0|3444)$_bf_$d|4[56]440)$_bf_$d{3}|(?:34|4[357])700$_bf_$d{3}|(?:2(?:[0-3]$_bf_$d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))$_bf_$d{5}|7(?:3555|(?:474|9[019]7)7)$_bf_$d{3}|7(?:[0-25-8]$_bf_$d$_bf_$d|3(?:[1-478]$_bf_$d|6[01])|4(?:2$_bf_$d|60|7[01578])|9(?:[2-4]$_bf_$d|5[01]|7[015]))$_bf_$d{4}|800$_bf_$d{5}|5$_bf_$d{7}|8(?:0[1-9]|[1-9]$_bf_$d)$_bf_$d{5}"},{"i":"ML","lbl":"Mali","img":"ml.png","code":"+223","ex":"65012345","ptrn":"2(?:07[0-8]|12[67])$_bf_$d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-69]))$_bf_$d{5}|2(?:0(?:01|79)|17$_bf_$d)$_bf_$d{4}|(?:5[0-3]|[679]$_bf_$d|8[2-59])$_bf_$d{6}|80$_bf_$d{6}"},{"i":"MM","lbl":"Myanmar","img":"mm.png","code":"+95","ex":"92123456","ptrn":"(?:1(?:(?:12|[28]$_bf_$d|3[56]|7[3-6]|9[0-6])$_bf_$d|4(?:2[29]|7[0-2]|83)|6)|2(?:2(?:00|8[34])|4(?:0$_bf_$d|22|7[0-2]|83)|51$_bf_$d$_bf_$d)|4(?:2(?:2$_bf_$d$_bf_$d|48[013])|3(?:20$_bf_$d|4(?:70|83)|56)|420$_bf_$d|5(?:2$_bf_$d|470))|6(?:0(?:[23]|88$_bf_$d)|(?:124|[56]2$_bf_$d)$_bf_$d|2472|3(?:20$_bf_$d|470)|4(?:2[04]$_bf_$d|472)|7(?:3$_bf_$d$_bf_$d|4[67]0|8(?:[01459]$_bf_$d|8))))$_bf_$d{4}|5(?:2(?:2$_bf_$d{5,6}|47[02]$_bf_$d{4})|(?:3472|4(?:2(?:1|86)|470)|522$_bf_$d|6(?:20$_bf_$d|483)|7(?:20$_bf_$d|48[01])|8(?:20$_bf_$d|47[02])|9(?:20$_bf_$d|470))$_bf_$d{4})|7(?:(?:0470|4(?:25$_bf_$d|470)|5(?:202|470|96$_bf_$d))$_bf_$d{4}|1(?:20$_bf_$d{4,5}|4(?:70|83)$_bf_$d{4}))|8(?:1(?:2$_bf_$d{5,6}|4(?:10|7[01]$_bf_$d)$_bf_$d{3})|2(?:2$_bf_$d{5,6}|(?:320|490$_bf_$d)$_bf_$d{3})|(?:3(?:2$_bf_$d$_bf_$d|470)|4[24-7]|5(?:(?:2$_bf_$d|51)$_bf_$d|4(?:[1-35-9]$_bf_$d|4[0-57-9]))|6[23])$_bf_$d{4})|(?:1[2-6]$_bf_$d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])$_bf_$d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|(?:[35]2|64)$_bf_$d))$_bf_$d{4}|25$_bf_$d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))$_bf_$d{4}|(?:17[01]|9(?:2(?:[0-4]|[56]$_bf_$d$_bf_$d)|(?:3(?:[0-36]|4$_bf_$d)|(?:6$_bf_$d|8[89]|9[4-8])$_bf_$d|7(?:3|40|[5-9]$_bf_$d))$_bf_$d|4(?:(?:[0245]$_bf_$d|[1379])$_bf_$d|88)|5[0-6])$_bf_$d)$_bf_$d{4}|9[69]1$_bf_$d{6}|9(?:[68]$_bf_$d|9[089])$_bf_$d{5}|80080(?:0[1-9]|2$_bf_$d)$_bf_$d{3}|1333$_bf_$d{4}"},{"i":"MN","lbl":"Mongolia","img":"mn.png","code":"+976","ex":"88123456","ptrn":"[12](?:2[1-3]|(?:3[2-8]|4[2-68]|5[1-4689])$_bf_$d)$_bf_$d{5,6}|7(?:0(?:[0-5]$_bf_$d|7[078]|80)|128)$_bf_$d{4}|[12]27$_bf_$d{6}|(?:11|2[16]|5[368])$_bf_$d{6}|(?:87[01]|92[0139])$_bf_$d{5}|(?:5[05]|6[069]|7[28]|8[0135689]|9[013-9])$_bf_$d{6}|712[0-79]$_bf_$d{4}|7(?:1[013-9]|[5-79]$_bf_$d)$_bf_$d{5}"},{"i":"MO","lbl":"Macao","img":"mo.png","code":"+853","ex":"66123456","ptrn":"(?:28[2-9]|8(?:11|[2-57-9]$_bf_$d))$_bf_$d{5}|6800[0-79]$_bf_$d{3}|6(?:[235]$_bf_$d$_bf_$d|6(?:0[0-5]|[1-9]$_bf_$d)|8(?:0[1-9]|[14-8]$_bf_$d|2[5-9]|[39][0-4]))$_bf_$d{4}|0800$_bf_$d{3}"},{"i":"MQ","lbl":"Martinique","img":"mq.png","code":"+596","ex":"696201234","ptrn":"(?:59(?:6(?:[03-7]$_bf_$d|1[05]|2[7-9]|8[0-39]|9[04-9])|89$_bf_$d)|80[6-9]$_bf_$d$_bf_$d|9(?:477[6-9]|767[4589]))$_bf_$d{4}|(?:69[67]$_bf_$d$_bf_$d|7091[0-3])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}|9(?:397[0-3]|477[0-5]|76(?:6$_bf_$d|7[0-367]))$_bf_$d{4}"},{"i":"MR","lbl":"Mauritania","img":"mr.png","code":"+222","ex":"22123456","ptrn":"(?:25[08]|35$_bf_$d|45[1-7])$_bf_$d{5}|[2-4][0-46-9]$_bf_$d{6}|800$_bf_$d{5}"},{"i":"MT","lbl":"Malta","img":"mt.png","code":"+356","ex":"96961234","ptrn":"20(?:3[1-4]|6[059])$_bf_$d{4}|2(?:0[19]|[1-357]$_bf_$d|60)$_bf_$d{5}|(?:7(?:210|[79]$_bf_$d$_bf_$d)|9(?:[29]$_bf_$d$_bf_$d|69[67]|8(?:1[1-3]|89|97)))$_bf_$d{4}|800(?:02|[3467]$_bf_$d)$_bf_$d{3}|5(?:0(?:0(?:37|43)|(?:6$_bf_$d|70|9[0168])$_bf_$d)|[12]$_bf_$d0[1-5])$_bf_$d{3}|3550$_bf_$d{4}|501$_bf_$d{5}|7117$_bf_$d{4}"},{"i":"MU","lbl":"Mauritius","img":"mu.png","code":"+230","ex":"52512345","ptrn":"(?:2(?:[0346-8]$_bf_$d|1[0-8])|4(?:[013568]$_bf_$d|2[0-24-8]|71|90)|54(?:[3-5]$_bf_$d|71)|6$_bf_$d$_bf_$d|8(?:14|3[129]))$_bf_$d{4}|5(?:4(?:2[1-389]|7[1-9])|87[15-8])$_bf_$d{4}|(?:5(?:2[5-9]|4[3-689]|[57]$_bf_$d|8[0-689]|9[0-8])|7(?:0[0-7]|3[013]))$_bf_$d{5}|802$_bf_$d{7}|80[0-2]$_bf_$d{4}|30$_bf_$d{5}|3(?:20|9$_bf_$d)$_bf_$d{4}|219$_bf_$d{4}"},{"i":"MV","lbl":"Maldives","img":"mv.png","code":"+960","ex":"7712345","ptrn":"(?:3(?:0[0-4]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))$_bf_$d{4}|(?:46[46]|[79]$_bf_$d$_bf_$d)$_bf_$d{4}|800$_bf_$d{7}|900$_bf_$d{7}|4(?:0[01]|50)$_bf_$d{4}"},{"i":"MW","lbl":"Malawi","img":"mw.png","code":"+265","ex":"991234567","ptrn":"1[2-9]$_bf_$d{5}|111$_bf_$d{6}|(?:2[12]|31|77|[89][89])$_bf_$d{7}"},{"i":"MX","lbl":"Mexico","img":"mx.png","code":"+52","ex":"2001234567","ptrn":"(?:2(?:0[01]|2$_bf_$d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]$_bf_$d|8[1-35-9]|9[2-689])|5(?:[56]$_bf_$d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]$_bf_$d|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]$_bf_$d|7[12]|8[1-8]))$_bf_$d{7}|(?:2(?:2$_bf_$d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[267][1-9]|3[1-8]|[45]$_bf_$d|8[1-35-9]|9[2-689])|5(?:[56]$_bf_$d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-36-9]|6[0-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1346][1-9]|[27]$_bf_$d|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[0-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69]$_bf_$d|7[12]|8[1-8]))$_bf_$d{7}|8(?:00|88)$_bf_$d{7}|900$_bf_$d{7}|300$_bf_$d{7}|500$_bf_$d{7}"},{"i":"MY","lbl":"Malaysia","img":"my.png","code":"+60","ex":"123456789","ptrn":"427[01]$_bf_$d{4}|(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8$_bf_$d|9[0-57])$_bf_$d|4(?:2[0-689]|[3-79]$_bf_$d|8[1-35689])|5(?:2[0-589]|[3468]$_bf_$d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]$_bf_$d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]$_bf_$d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]$_bf_$d|[3489][0-8]))$_bf_$d{5}|1(?:(?:1888[689]|4400|8(?:47|8[27])[0-4])$_bf_$d{4}|9$_bf_$d{7,8})|1(?:0(?:[23568]$_bf_$d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]$_bf_$d$_bf_$d|6(?:0[5-9]|[1-9]$_bf_$d)|7(?:[0-4]$_bf_$d|5[0-79]|6[02-4]|8[02-5]))|(?:[26]$_bf_$d|[37][1-9]|4[235-9])$_bf_$d|5(?:31|9$_bf_$d$_bf_$d)|8(?:1[23]|[236]$_bf_$d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))$_bf_$d{5}|1[378]00$_bf_$d{6}|1600$_bf_$d{6}|15(?:4(?:6[0-4]$_bf_$d|8(?:0[125]|[17]$_bf_$d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78$_bf_$d))$_bf_$d{4}"},{"i":"MZ","lbl":"Mozambique","img":"mz.png","code":"+258","ex":"821234567","ptrn":"2(?:[1346]$_bf_$d|5[0-2]|[78][12]|93)$_bf_$d{5}|8[2-9]$_bf_$d{7}|800$_bf_$d{6}"},{"i":"NA","lbl":"Namibia","img":"na.png","code":"+264","ex":"811234567","ptrn":"64426$_bf_$d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))$_bf_$d{4,5}|6(?:1(?:(?:0$_bf_$d|2[0189]|3[24-69]|4[5-9])$_bf_$d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))$_bf_$d{4}|(?:60|8[1245])$_bf_$d{7}|80$_bf_$d{7}|8701$_bf_$d{5}|8(?:3$_bf_$d$_bf_$d|86)$_bf_$d{5}"},{"i":"NC","lbl":"New Caledonia","img":"nc.png","code":"+687","ex":"751234","ptrn":"(?:2[03-9]|3[0-5]|4[1-7]|88)$_bf_$d{4}|(?:[579]$_bf_$d|8[0-79])$_bf_$d{4}|050$_bf_$d{3}|36$_bf_$d{4}"},{"i":"NE","lbl":"Niger (the)","img":"ne.png","code":"+227","ex":"93123456","ptrn":"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))$_bf_$d{4}|(?:23|7[0467]|[89]$_bf_$d)$_bf_$d{6}|08$_bf_$d{6}|09$_bf_$d{6}"},{"i":"NF","lbl":"Norfolk Island","img":"nf.png","code":"+672","ex":"381234","ptrn":"(?:1(?:06|17|28|39)|3[0-2]$_bf_$d)$_bf_$d{3}|(?:14|3[58])$_bf_$d{4}"},{"i":"NG","lbl":"Nigeria","img":"ng.png","code":"+234","ex":"8021234567","ptrn":"20(?:[1259]$_bf_$d|3[013-9]|4[1-8]|6[024-689]|7[1-79]|8[2-9])$_bf_$d{6}|(?:702[0-24-9]|819[01])$_bf_$d{6}|(?:7(?:0[13-9]|[12]$_bf_$d)|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-6]))$_bf_$d{7}|800$_bf_$d{7,11}|700$_bf_$d{7,11}"},{"i":"NI","lbl":"Nicaragua","img":"ni.png","code":"+505","ex":"81234567","ptrn":"2$_bf_$d{7}|(?:5(?:5[0-7]|[78]$_bf_$d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8$_bf_$d)$_bf_$d)$_bf_$d{5}|1800$_bf_$d{4}"},{"i":"NL","lbl":"Netherlands (the)","img":"nl.png","code":"+31","ex":"612345678","ptrn":"(?:1(?:[035]$_bf_$d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]$_bf_$d|2[2-46-9]|5[125]|9[479])|3(?:[03568]$_bf_$d|1[3-8]|2[01]|4[1-8])|4(?:[0356]$_bf_$d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]$_bf_$d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7$_bf_$d$_bf_$d)$_bf_$d{6}|(?:6[1-58]|970$_bf_$d)$_bf_$d{7}|800$_bf_$d{4,7}|90[069]$_bf_$d{4,7}|(?:85|91)$_bf_$d{7}|140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]$_bf_$d{6})$_bf_$d|66$_bf_$d{7}"},{"i":"NO","lbl":"Norway","img":"no.png","code":"+47","ex":"40612345","ptrn":"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-46-9]|7[0-8])$_bf_$d{6}|45(?:[0-24-9]$_bf_$d|3[0-57-9])$_bf_$d{4}|(?:4[016-8]|9$_bf_$d)$_bf_$d{6}|80[01]$_bf_$d{5}|82[09]$_bf_$d{5}|810(?:0[0-6]|[2-8]$_bf_$d)$_bf_$d{3}|880$_bf_$d{5}|85[0-5]$_bf_$d{5}|(?:0[235-9]|81(?:0(?:0[7-9]|1$_bf_$d)|5$_bf_$d$_bf_$d))$_bf_$d{3}|81[23]$_bf_$d{5}"},{"i":"SJ","lbl":"Svalbard and Jan Mayen","img":"sj.png","code":"+47","ex":"41234567","ptrn":"79$_bf_$d{6}|45(?:[0-24-9]$_bf_$d|3[0-57-9])$_bf_$d{4}|(?:4[016-8]|9$_bf_$d)$_bf_$d{6}|80[01]$_bf_$d{5}|82[09]$_bf_$d{5}|810(?:0[0-6]|[2-8]$_bf_$d)$_bf_$d{3}|880$_bf_$d{5}|85[0-5]$_bf_$d{5}|(?:0[235-9]|81(?:0(?:0[7-9]|1$_bf_$d)|5$_bf_$d$_bf_$d))$_bf_$d{3}|81[23]$_bf_$d{5}"},{"i":"NP","lbl":"Nepal","img":"np.png","code":"+977","ex":"9841234567","ptrn":"(?:1[0-6]$_bf_$d|99[02-6])$_bf_$d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]$_bf_$d{5}|9(?:00|6[0-3]|7[0-24-6]|8[0-24-68])$_bf_$d{7}|1(?:66001|800$_bf_$d$_bf_$d)$_bf_$d{5}"},{"i":"NR","lbl":"Nauru","img":"nr.png","code":"+674","ex":"5551234","ptrn":"444$_bf_$d{4}|(?:222|55[3-9]|666|777|8$_bf_$d$_bf_$d|999)$_bf_$d{4}"},{"i":"NU","lbl":"Niue","img":"nu.png","code":"+683","ex":"8884012","ptrn":"[47]$_bf_$d{3}|(?:[56]|888[1-9])$_bf_$d{3}"},{"i":"NZ","lbl":"New Zealand","img":"nz.png","code":"+64","ex":"211234567","ptrn":"240$_bf_$d{5}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])$_bf_$d{6}|2(?:[0-27-9]$_bf_$d|6)$_bf_$d{6,7}|2(?:1$_bf_$d|75)$_bf_$d{5}|508$_bf_$d{6,7}|80$_bf_$d{6,8}|(?:1[13-57-9]$_bf_$d{5}|50(?:0[08]|30|66|77|88))$_bf_$d{3}|90$_bf_$d{6,8}|70$_bf_$d{7}|8(?:1[16-9]|22|3$_bf_$d|4[045]|5[459]|6[235-9]|7[0-3579]|90)$_bf_$d{2,7}"},{"i":"OM","lbl":"Oman","img":"om.png","code":"+968","ex":"92123456","ptrn":"2[1-6]$_bf_$d{6}|(?:1505|90[1-9]$_bf_$d)$_bf_$d{4}|(?:7[124-9]|9[1-9])$_bf_$d{6}|8007$_bf_$d{4,5}|(?:500|800[05])$_bf_$d{4}|900$_bf_$d{5}"},{"i":"PA","lbl":"Panama","img":"pa.png","code":"+507","ex":"61234567","ptrn":"(?:1(?:0$_bf_$d|1[0479]|2[37]|3[0137]|4[147]|5[05]|6[058]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]$_bf_$d|1[0-7]|4[013-9]|8[02-9])|3(?:[0147-9]$_bf_$d|[25][0-5]|33|6[068])|4(?:00|3[0-579]|4$_bf_$d|7[0-57-9])|5(?:[01]$_bf_$d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[0156]|7[0-24-9]|8[4-9]|90)|8(?:09|2[89]|3$_bf_$d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9$_bf_$d))$_bf_$d{4}|(?:1[16]1|21[89]|6$_bf_$d{3}|8(?:1[01]|7[23]))$_bf_$d{4}|800$_bf_$d{4,5}|(?:00800|800$_bf_$d)$_bf_$d{6}|(?:8(?:22|55|60|7[78]|86)|9(?:00|81))$_bf_$d{4}"},{"i":"PE","lbl":"Peru","img":"pe.png","code":"+51","ex":"912345678","ptrn":"(?:(?:19[02-68]|(?:4[34]|5[14])[0-8]|687)$_bf_$d|7(?:173|(?:3[0-8]|55)$_bf_$d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[0569]|[56]0)))$_bf_$d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])$_bf_$d{6}|9$_bf_$d{8}|800$_bf_$d{5}|805$_bf_$d{5}|801$_bf_$d{5}|80[24]$_bf_$d{5}"},{"i":"PF","lbl":"French Polynesia","img":"pf.png","code":"+689","ex":"87123456","ptrn":"4(?:0[4-689]|9[4-68])$_bf_$d{5}|8[7-9]$_bf_$d{6}|80[0-5]$_bf_$d{6}|499$_bf_$d{5}|44$_bf_$d{4}"},{"i":"PG","lbl":"Papua New Guinea","img":"pg.png","code":"+675","ex":"70123456","ptrn":"(?:(?:3[0-2]|4[257]|5[34]|9[78])$_bf_$d|64[1-9]|85[02-46-9])$_bf_$d{4}|(?:7$_bf_$d|8[1-48])$_bf_$d{6}|180$_bf_$d{4}|2(?:0[0-57]|7[568])$_bf_$d{4}|27[01]$_bf_$d{4}"},{"i":"PH","lbl":"Philippines (the)","img":"ph.png","code":"+63","ex":"9051234567","ptrn":"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])$_bf_$d{3}|88(?:22$_bf_$d$_bf_$d|42))$_bf_$d{4}|(?:2|8[2-8]$_bf_$d$_bf_$d)$_bf_$d{5}|(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]$_bf_$d|4[2-9]|8[135-9]|9[1-9]))$_bf_$d{7}|1800$_bf_$d{7,9}"},{"i":"PK","lbl":"Pakistan","img":"pk.png","code":"+92","ex":"3012345678","ptrn":"(?:(?:21|42)[2-9]|58[126])$_bf_$d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]$_bf_$d{6,7}|(?:2(?:3[2358]|4[2-4]|9[2-8])|45[3479]|54[2-467]|60[468]|72[236]|8(?:2[2-689]|3[23578]|4[3478]|5[2356])|9(?:2[2-8]|3[27-9]|4[2-6]|6[3569]|9[25-8]))[2-9]$_bf_$d{5,6}|3(?:[0-247]$_bf_$d|3[0-79]|55|64)$_bf_$d{7}|800$_bf_$d{5}(?:$_bf_$d{3})?|900$_bf_$d{5}|122$_bf_$d{6}|(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111$_bf_$d{6}"},{"i":"PL","lbl":"Poland","img":"pl.png","code":"+48","ex":"512345678","ptrn":"(?:30|47$_bf_$d$_bf_$d)$_bf_$d{5}|(?:1[2-8]|2[2-69]|3[2-4]|4[1-468]|5[24-689]|6[1-3578]|7[14-7]|8[1-79]|9[145])(?:[02-9]$_bf_$d{6}|1(?:[0-8]$_bf_$d{5}|9$_bf_$d{3}(?:$_bf_$d{2})?))|21(?:1[013-5]|2$_bf_$d|3[1-9])$_bf_$d{5}|(?:45|5[0137]|6[069]|7[2389]|88)$_bf_$d{7}|800$_bf_$d{6,7}|70[01346-8]$_bf_$d{6}|801$_bf_$d{6}|39$_bf_$d{7}|804$_bf_$d{6}|64$_bf_$d{4,7}"},{"i":"PM","lbl":"Saint Pierre and Miquelon","img":"pm.png","code":"+508","ex":"551234","ptrn":"80[6-9]$_bf_$d{6}|(?:[236-9]$_bf_$d|4[1-35-9]|5[0-47-9])$_bf_$d{4}|708(?:4[0-5]|5[0-6])$_bf_$d{4}|(?:[236-9]$_bf_$d|4[02-489]|5[02-9])$_bf_$d{4}|80[0-5]$_bf_$d{6}|8[129]$_bf_$d{7}"},{"i":"PS","lbl":"Palestine, State of","img":"ps.png","code":"+970","ex":"599123456","ptrn":"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])$_bf_$d{5}|5[69]$_bf_$d{7}|1800$_bf_$d{6}|1700$_bf_$d{6}"},{"i":"PT","lbl":"Portugal","img":"pt.png","code":"+351","ex":"912345678","ptrn":"2(?:[12]$_bf_$d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])$_bf_$d{6}|6(?:[06]92(?:30|9$_bf_$d)|[35]92(?:[049]$_bf_$d|3[034]))$_bf_$d{3}|(?:(?:16|6[0356])93|9(?:[1-36]$_bf_$d$_bf_$d|480))$_bf_$d{5}|80[02]$_bf_$d{6}|(?:6(?:0[178]|4[68])$_bf_$d|76(?:0[1-57]|1[2-47]|2[237]))$_bf_$d{5}|80(?:8$_bf_$d|9[1579])$_bf_$d{5}|884[0-4689]$_bf_$d{5}|30$_bf_$d{7}|70(?:38[01]|596|(?:7$_bf_$d|8[17])$_bf_$d)$_bf_$d{4}|600$_bf_$d{6}|6[06]92(?:0$_bf_$d|3[349]|49)$_bf_$d{3}|6(?:222$_bf_$d|89(?:00|88|99))$_bf_$d{4}"},{"i":"PW","lbl":"Palau","img":"pw.png","code":"+680","ex":"6201234","ptrn":"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)$_bf_$d{4}|(?:(?:46|83)[0-5]|(?:6[2-4689]|78)0)$_bf_$d{4}|(?:45|77|88)$_bf_$d{5}"},{"i":"PY","lbl":"Paraguay","img":"py.png","code":"+595","ex":"961456789","ptrn":"(?:3[289]|4[246-8]|61|7[1-3]|8[1-36])$_bf_$d{5,7}|(?:2(?:[14-68]$_bf_$d|2[4-68]|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]$_bf_$d)|4(?:1$_bf_$d|3[12]|5[13]|9[1-47])|5(?:[1-4]$_bf_$d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5$_bf_$d|6[1-578]|75|8[0-8])|858)$_bf_$d{5,6}|9(?:51|6[129]|7[1-6]|8[1-7]|9[1-5])$_bf_$d{6}|9800$_bf_$d{5,7}|8700[0-4]$_bf_$d{4}|[245]0$_bf_$d{6,7}|[36-9]0$_bf_$d{4,7}"},{"i":"QA","lbl":"Qatar","img":"qa.png","code":"+974","ex":"33123456","ptrn":"4(?:(?:[014]$_bf_$d$_bf_$d|999)$_bf_$d|2022)$_bf_$d{3}|[35-7]$_bf_$d{7}|800$_bf_$d{4}|(?:0080[01]|800)$_bf_$d{6}|2[136]$_bf_$d{5}"},{"i":"RE","lbl":"Réunion","img":"re.png","code":"+262","ex":"692123456","ptrn":"2631[0-6]$_bf_$d{4}|26(?:2$_bf_$d|30|88)$_bf_$d{5}|(?:69(?:2$_bf_$d$_bf_$d|3(?:[06][0-6]|1[0-3]|2[0-2]|3[0-39]|4$_bf_$d|5[0-5]|7[0-37]|8[0-8]|9[0-479]))|7092[0-3])$_bf_$d{4}|80$_bf_$d{7}|89[1-37-9]$_bf_$d{6}|8(?:1[019]|2[0156]|84|90)$_bf_$d{6}|9(?:399[0-3]|479[0-6]|76(?:2[278]|3[0-37]))$_bf_$d{4}"},{"i":"YT","lbl":"Mayotte","img":"yt.png","code":"+262","ex":"639012345","ptrn":"26(?:89$_bf_$d|9(?:0[0-467]|15|5[0-4]|6$_bf_$d|[78]0))$_bf_$d{4}|(?:639(?:0[0-79]|1[019]|[267]$_bf_$d|3[09]|40|5[05-9]|9[04-79])|7093[5-7])$_bf_$d{4}|80$_bf_$d{7}|9(?:(?:39|47)8[01]|769$_bf_$d)$_bf_$d{4}"},{"i":"RO","lbl":"Romania","img":"ro.png","code":"+40","ex":"712034567","ptrn":"[23][13-6]$_bf_$d{7}|(?:2(?:19$_bf_$d|[3-6]$_bf_$d9)|31$_bf_$d$_bf_$d)$_bf_$d$_bf_$d|(?:630|702)0$_bf_$d{5}|(?:6(?:00|2$_bf_$d)|7(?:0[013-9]|1[0-3]|[2-7]$_bf_$d|8[03-8]|9[0-39]))$_bf_$d{6}|800$_bf_$d{6}|90[0136]$_bf_$d{6}|801$_bf_$d{6}|(?:37$_bf_$d|80[578])$_bf_$d{6}"},{"i":"RS","lbl":"Serbia","img":"rs.png","code":"+381","ex":"601234567","ptrn":"(?:11[1-9]$_bf_$d|(?:2[389]|39)(?:0[2-9]|[2-9]$_bf_$d))$_bf_$d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]$_bf_$d{4,9}|6(?:[0-689]|7$_bf_$d)$_bf_$d{6,7}|800$_bf_$d{3,9}|(?:78$_bf_$d|90[0169])$_bf_$d{3,7}|7[06]$_bf_$d{4,10}"},{"i":"RW","lbl":"Rwanda","img":"rw.png","code":"+250","ex":"720123456","ptrn":"(?:06|2[23568]$_bf_$d)$_bf_$d{6}|7[237-9]$_bf_$d{7}|800$_bf_$d{6}|900$_bf_$d{6}"},{"i":"SA","lbl":"Saudi Arabia","img":"sa.png","code":"+966","ex":"512345678","ptrn":"1(?:1$_bf_$d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])$_bf_$d{6}|579[0-8]$_bf_$d{5}|5(?:[013-689]$_bf_$d|7[0-8])$_bf_$d{6}|800$_bf_$d{7}|925$_bf_$d{6}|920$_bf_$d{6}"},{"i":"SB","lbl":"Solomon Islands","img":"sb.png","code":"+677","ex":"7421234","ptrn":"(?:1[4-79]|[23]$_bf_$d|4[0-2]|5[03]|6[0-37])$_bf_$d{3}|48$_bf_$d{3}|(?:(?:6[89]|7[1-9]|8[4-9])$_bf_$d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]$_bf_$d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))$_bf_$d{4}|1[38]$_bf_$d{3}|5[12]$_bf_$d{3}"},{"i":"SC","lbl":"Seychelles","img":"sc.png","code":"+248","ex":"2510123","ptrn":"4[2-46]$_bf_$d{5}|2[125-8]$_bf_$d{5}|800[08]$_bf_$d{3}|85$_bf_$d{5}|971$_bf_$d{4}|(?:64|95)$_bf_$d{5}"},{"i":"SD","lbl":"Sudan (the)","img":"sd.png","code":"+249","ex":"911231234","ptrn":"1(?:5$_bf_$d|8[35-7])$_bf_$d{6}|(?:1[0-2]|9[0-3569])$_bf_$d{7}"},{"i":"SE","lbl":"Sweden","img":"se.png","code":"+46","ex":"701234567","ptrn":"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8$_bf_$d)$_bf_$d|90[1-9])$_bf_$d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]$_bf_$d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1$_bf_$d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4$_bf_$d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2$_bf_$d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))$_bf_$d{5,6}|7[023689]$_bf_$d{7}|20$_bf_$d{4,7}|649$_bf_$d{6}|99[1-59]$_bf_$d{4}(?:$_bf_$d{3})?|9(?:00|39|44)[1-8]$_bf_$d{3,6}|77[0-7]$_bf_$d{6}|75[1-8]$_bf_$d{6}|10[1-8]$_bf_$d{6}|(?:25[245]|67[3-68])$_bf_$d{9}|74[02-9]$_bf_$d{6}"},{"i":"SG","lbl":"Singapore","img":"sg.png","code":"+65","ex":"81234567","ptrn":"662[0-24-9]$_bf_$d{4}|6(?:[0-578]$_bf_$d|6[013-57-9]|9[0-35-9])$_bf_$d{5}|80[1-9]$_bf_$d{5}|(?:8[1-9]|9[0-8])$_bf_$d{6}|(?:18|8)00$_bf_$d{7}|1900$_bf_$d{7}|(?:3[12]$_bf_$d|666)$_bf_$d{5}|7000$_bf_$d{7}"},{"i":"SH","lbl":"Saint Helena, Ascension and Tristan da Cunha","img":"sh.png","code":"+290","ex":"51234","ptrn":"2(?:[0-57-9]$_bf_$d|6[4-9])$_bf_$d$_bf_$d|[56]$_bf_$d{4}|262$_bf_$d$_bf_$d"},{"i":"SI","lbl":"Slovenia","img":"si.png","code":"+386","ex":"31234567","ptrn":"(?:[1-357][2-8]|4[24-8])$_bf_$d{6}|65(?:[178]$_bf_$d|5[56]|6[01])$_bf_$d{4}|(?:[37][01]|4[013]|51|6[489])$_bf_$d{6}|80$_bf_$d{4,6}|89[1-3]$_bf_$d{2,5}|90$_bf_$d{4,6}|(?:59$_bf_$d$_bf_$d|8(?:1(?:[67]$_bf_$d|8[0-589])|2(?:0$_bf_$d|2[0-37-9]|8[0-2489])|3[389]$_bf_$d))$_bf_$d{4}"},{"i":"SK","lbl":"Slovakia","img":"sk.png","code":"+421","ex":"912123456","ptrn":"(?:2(?:16|[2-9]$_bf_$d{3})|(?:(?:[3-5][1-8]$_bf_$d|819)$_bf_$d|601[1-5])$_bf_$d)$_bf_$d{4}|(?:2|[3-5][1-8])1[67]$_bf_$d{3}|[3-5][1-8]16$_bf_$d$_bf_$d|909[1-9]$_bf_$d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5$_bf_$d)$_bf_$d{6}|800$_bf_$d{6}|9(?:00|[78]$_bf_$d)$_bf_$d{6}|8[5-9]$_bf_$d{7}|6(?:02|5[0-4]|9[0-6])$_bf_$d{6}|96$_bf_$d{7}|9090$_bf_$d{3}"},{"i":"SL","lbl":"Sierra Leone","img":"sl.png","code":"+232","ex":"25123456","ptrn":"22[2-4][2-9]$_bf_$d{4}|(?:25|3[0-5]|66|7$_bf_$d|8[08]|9[09])$_bf_$d{6}"},{"i":"SM","lbl":"San Marino","img":"sm.png","code":"+378","ex":"66661212","ptrn":"0549(?:8[0157-9]|9$_bf_$d)$_bf_$d{4}|6[16]$_bf_$d{6}|7[178]$_bf_$d{6}|5[158]$_bf_$d{6}"},{"i":"SN","lbl":"Senegal","img":"sn.png","code":"+221","ex":"701234567","ptrn":"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)$_bf_$d{5}|7(?:[015-8]$_bf_$d|21|90)$_bf_$d{6}|800$_bf_$d{6}|88[4689]$_bf_$d{6}|81[02468]$_bf_$d{6}|(?:3(?:392|9[01]$_bf_$d)$_bf_$d|93(?:3[13]0|929))$_bf_$d{4}"},{"i":"SO","lbl":"Somalia","img":"so.png","code":"+252","ex":"71123456","ptrn":"(?:1$_bf_$d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])$_bf_$d{5}|(?:[134]$_bf_$d|8[125])$_bf_$d{4}|(?:(?:15|(?:3[59]|4[89]|6$_bf_$d|7[0-35-9]|8[08])$_bf_$d|9(?:0$_bf_$d|[2-9]))$_bf_$d|2(?:4$_bf_$d|8))$_bf_$d{5}|(?:[67]$_bf_$d$_bf_$d|904)$_bf_$d{5}"},{"i":"SR","lbl":"Suriname","img":"sr.png","code":"+597","ex":"7412345","ptrn":"(?:2[1-3]|3[0-7]|4$_bf_$d|5[2-578])$_bf_$d{4}|(?:6[08]|7[1-7]|8[1-9])$_bf_$d{5}|80$_bf_$d{5}|90$_bf_$d{5}|(?:56|91$_bf_$d)$_bf_$d{4}"},{"i":"SS","lbl":"South Sudan","img":"ss.png","code":"+211","ex":"977123456","ptrn":"1[89]$_bf_$d{7}|(?:12|9[1257-9])$_bf_$d{7}"},{"i":"ST","lbl":"Sao Tome and Principe","img":"st.png","code":"+239","ex":"9812345","ptrn":"22$_bf_$d{5}|900[5-9]$_bf_$d{3}|9(?:0[1-9]|[89]$_bf_$d)$_bf_$d{4}"},{"i":"SV","lbl":"El Salvador","img":"sv.png","code":"+503","ex":"70123456","ptrn":"2(?:79(?:0[0347-9]|[1-9]$_bf_$d)|89(?:0[024589]|[1-9]$_bf_$d))$_bf_$d{3}|2(?:[1-69]$_bf_$d|[78][0-8])$_bf_$d{5}|[5-7]$_bf_$d{7}|800$_bf_$d{8}|80[01]$_bf_$d{4}|900$_bf_$d{4}(?:$_bf_$d{4})?"},{"i":"SY","lbl":"Syrian Arab Republic","img":"sy.png","code":"+963","ex":"944567890","ptrn":"(?:1(?:[1478]$_bf_$d|[2356])|21$_bf_$d|3(?:[13]$_bf_$d|4)|4[134]|5[1-3])$_bf_$d{6}|2[1-5]$_bf_$d{6}|(?:50|9[03-689])$_bf_$d{7}"},{"i":"SZ","lbl":"Eswatini","img":"sz.png","code":"+268","ex":"76123456","ptrn":"[23][2-5]$_bf_$d{6}|7[5-9]$_bf_$d{6}|0800$_bf_$d{4}|900$_bf_$d{6}|70$_bf_$d{6}"},{"i":"TD","lbl":"Chad","img":"td.png","code":"+235","ex":"63012345","ptrn":"22(?:[37-9]0|5[0-5]|6[89])$_bf_$d{4}|(?:3[01]|[69]$_bf_$d|77|8[5-7])$_bf_$d{6}"},{"i":"TG","lbl":"Togo","img":"tg.png","code":"+228","ex":"90112345","ptrn":"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)$_bf_$d{5}|(?:7[0-389]|9[0-36-9])$_bf_$d{6}"},{"i":"TH","lbl":"Thailand","img":"th.png","code":"+66","ex":"812345678","ptrn":"(?:1[0689]|2$_bf_$d|3[2-9]|4[2-5]|5[2-6]|7[3-7])$_bf_$d{6}|(?:(?:14|[89]$_bf_$d)$_bf_$d$_bf_$d|6(?:[1-6]$_bf_$d$_bf_$d|7(?:1[0-8]|2[4-7]|3[1-6])))$_bf_$d{5}|(?:001800$_bf_$d|1800)$_bf_$d{6}|1900$_bf_$d{6}|6[08]$_bf_$d{7}"},{"i":"TJ","lbl":"Tajikistan","img":"tj.png","code":"+992","ex":"917123456","ptrn":"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))$_bf_$d{6}|(?:33[03-9]|4(?:1[18]|4[02-479])|81[1-9])$_bf_$d{6}|(?:[09]$_bf_$d|1[0-27-9]|2[0-27]|3[08]|40|5[05]|66|7[0157-9]|8[07-9])$_bf_$d{7}"},{"i":"TK","lbl":"Tokelau","img":"tk.png","code":"+690","ex":"7290","ptrn":"(?:2[2-4]|[34]$_bf_$d)$_bf_$d{2,5}|7[2-4]$_bf_$d{2,5}"},{"i":"TL","lbl":"Timor-Leste","img":"tl.png","code":"+670","ex":"77212345","ptrn":"(?:2[1-5]|3[1-9]|4[1-4])$_bf_$d{5}|7[2-8]$_bf_$d{6}|80$_bf_$d{5}|90$_bf_$d{5}|70$_bf_$d{5}"},{"i":"TM","lbl":"Turkmenistan","img":"tm.png","code":"+993","ex":"66123456","ptrn":"(?:1(?:2$_bf_$d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4$_bf_$d|6[15])|5(?:22|5[7-9]|6[014-689]))$_bf_$d{5}|(?:6$_bf_$d|7[12])$_bf_$d{6}"},{"i":"TN","lbl":"Tunisia","img":"tn.png","code":"+216","ex":"20123456","ptrn":"81200$_bf_$d{3}|(?:3[0-2]|7$_bf_$d)$_bf_$d{6}|3(?:001|[12]40)$_bf_$d{4}|(?:(?:[259]$_bf_$d|4[0-8])$_bf_$d|3(?:1[1-35]|6[0-4]|91))$_bf_$d{5}|8010$_bf_$d{4}|88$_bf_$d{6}|8[12]10$_bf_$d{4}"},{"i":"TO","lbl":"Tonga","img":"to.png","code":"+676","ex":"7715123","ptrn":"(?:2$_bf_$d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])$_bf_$d{3}|(?:5(?:4[0-5]|5[4-6])|6(?:[09]$_bf_$d|3[02]|8[15-9])|(?:7$_bf_$d|8[46-9])$_bf_$d|999)$_bf_$d{4}|0800$_bf_$d{3}|55[0-37-9]$_bf_$d{4}"},{"i":"TR","lbl":"Turkey","img":"tr.png","code":"+90","ex":"5012345678","ptrn":"(?:2(?:1[26]|[28][2468]|[3-5][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))$_bf_$d{7}|5(?:61(?:011|61$_bf_$d)|82[2-4]$_bf_$d$_bf_$d)$_bf_$d{4}|5(?:[03-5]$_bf_$d|1[06]|24|6[24]|7[245]|9[46])$_bf_$d{7}|8(?:00$_bf_$d{7}(?:$_bf_$d{2,3})?|11$_bf_$d{7})|(?:8[89]8|900)$_bf_$d{7}|592(?:21[12]|461)$_bf_$d{4}|850$_bf_$d{7}|444$_bf_$d{4}|512$_bf_$d{7}"},{"i":"TV","lbl":"Tuvalu","img":"tv.png","code":"+688","ex":"901234","ptrn":"2[02-9]$_bf_$d{3}|(?:7[01]$_bf_$d|90)$_bf_$d{4}"},{"i":"TW","lbl":"Taiwan (Province of China)","img":"tw.png","code":"+886","ex":"912345678","ptrn":"(?:2[2-8]$_bf_$d|370|55[01]|7[1-9])$_bf_$d{6}|4(?:(?:0(?:0[1-9]|[2-48]$_bf_$d)|1[023]$_bf_$d)$_bf_$d{4,5}|(?:[239]$_bf_$d$_bf_$d|4(?:0[56]|12|49))$_bf_$d{5})|6(?:[01]$_bf_$d{7}|4(?:0[56]|12|24|4[09])$_bf_$d{4,5})|8(?:(?:2(?:3$_bf_$d|4[0-269]|[578]0|66)|36[24-9]|90$_bf_$d$_bf_$d)$_bf_$d{4}|4(?:0[56]|12|24|4[09])$_bf_$d{4,5})|(?:2(?:2(?:0$_bf_$d$_bf_$d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]$_bf_$d|1[0-4])|(?:4$_bf_$d|5[0-49]|6[0-29]|7[0-5])$_bf_$d)$_bf_$d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])$_bf_$d$_bf_$d|4(?:2(?:[089]$_bf_$d|7[1-9])|(?:3[0-4]|[78]$_bf_$d|9[01])$_bf_$d))$_bf_$d)$_bf_$d{3}|(?:40001[0-2]|9[0-8]$_bf_$d{4})$_bf_$d{3}|80[0-79]$_bf_$d{6}|800$_bf_$d{5}|20(?:[013-9]$_bf_$d$_bf_$d|2)$_bf_$d{4}|99$_bf_$d{7}|7010(?:[0-2679]$_bf_$d|3[0-7]|8[0-5])$_bf_$d{5}|70$_bf_$d{8}|50[0-46-9]$_bf_$d{6}"},{"i":"TZ","lbl":"Tanzania, United Republic of","img":"tz.png","code":"+255","ex":"621234567","ptrn":"2[2-8]$_bf_$d{7}|(?:6[1-35-9]|7$_bf_$d)$_bf_$d{7}|80[08]$_bf_$d{6}|90$_bf_$d{7}|8(?:40|6[01])$_bf_$d{6}|41$_bf_$d{7}"},{"i":"UA","lbl":"Ukraine","img":"ua.png","code":"+380","ex":"501234567","ptrn":"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])$_bf_$d{7}|790$_bf_$d{6}|(?:39|50|6[36-8]|7[1-357]|9[1-9])$_bf_$d{7}|800[1-8]$_bf_$d{5,6}|900[239]$_bf_$d{5,6}|89[1-579]$_bf_$d{6}"},{"i":"UG","lbl":"Uganda","img":"ug.png","code":"+256","ex":"712345678","ptrn":"20(?:(?:24[09]|30[67])$_bf_$d|6(?:00[0-2]|30[0-4]))$_bf_$d{3}|(?:20(?:[017]$_bf_$d|2[5-9]|3[1-4]|5[0-4]|6[15-9])|[34]$_bf_$d{3})$_bf_$d{5}|7(?:28|34)0$_bf_$d{5}|7(?:[014-8]$_bf_$d|2[01467]|3[0167]|9[0-589])$_bf_$d{6}|800[1-3]$_bf_$d{5}|90[1-3]$_bf_$d{6}"},{"i":"UY","lbl":"Uruguay","img":"uy.png","code":"+598","ex":"94231234","ptrn":"(?:1(?:770|9(?:20|[89]7))|(?:2$_bf_$d|4[2-7])$_bf_$d$_bf_$d)$_bf_$d{4}|9[1-9]$_bf_$d{6}|0004$_bf_$d{2,9}|(?:405|80[05])$_bf_$d{4}|90[0-8]$_bf_$d{4}|21$_bf_$d{2,3}"},{"i":"UZ","lbl":"Uzbekistan","img":"uz.png","code":"+998","ex":"912345678","ptrn":"(?:55$_bf_$d$_bf_$d|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|[69]$_bf_$d$_bf_$d|7(?:[23]$_bf_$d|7[69]))|7(?:[168]$_bf_$d$_bf_$d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2$_bf_$d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2$_bf_$d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|9(?:22|5[1-9])))$_bf_$d{5}|(?:(?:[25]0|33|8[078]|9[0-57-9])$_bf_$d{3}|6(?:1(?:2(?:2[01]|98)|35[0-4]|50$_bf_$d|61[23]|7(?:[01][017]|4$_bf_$d|55|9[5-9]))|2(?:(?:11|7$_bf_$d)$_bf_$d|2(?:[12]1|9[01379])|5(?:[126]$_bf_$d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7$_bf_$d)$_bf_$d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])$_bf_$d|4(?:56|83)|7(?:[07]$_bf_$d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0$_bf_$d|[39][07])|9(?:0$_bf_$d|7[079])))|7(?:[07]$_bf_$d{3}|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57$_bf_$d|7(?:0$_bf_$d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])$_bf_$d|5(?:0[0-4]|5[579]|9$_bf_$d)|7(?:[0-3579]$_bf_$d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8$_bf_$d|9[5-9])|7(?:0$_bf_$d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]$_bf_$d))|5(?:112|2(?:0$_bf_$d|2[29]|[49]4)|3[1568]$_bf_$d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]$_bf_$d|8[78]|9[079]))|9(?:22[128]|3(?:2[0-4]|7$_bf_$d)|57[02569]|7(?:2[05-9]|3[37]|4$_bf_$d|60|7[2579]|87|9[07]))))$_bf_$d{4}"},{"i":"VE","lbl":"Venezuela (Bolivarian Republic of)","img":"ve.png","code":"+58","ex":"4121234567","ptrn":"(?:2(?:12|3[457-9]|[467]$_bf_$d|[58][1-9]|9[1-6])|[4-6]00)$_bf_$d{7}|4(?:1[24-8]|2[246])$_bf_$d{7}|800$_bf_$d{7}|90[01]$_bf_$d{7}|501$_bf_$d{7}"},{"i":"VN","lbl":"Viet Nam","img":"vn.png","code":"+84","ex":"912345678","ptrn":"2(?:0[3-9]|1[0-689]|2[0-25-9]|[38][2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|9[0-4679])$_bf_$d{7}|121[0-3]$_bf_$d{5}|(?:160|(?:3$_bf_$d|7[06-9])$_bf_$d|5(?:[1689]$_bf_$d|2[238]|59)|8(?:[1-8]$_bf_$d|9[6-9])|9(?:[0-8]$_bf_$d|9[013-9]))$_bf_$d{6}|1800$_bf_$d{4,6}|12(?:0[13]|28)$_bf_$d{4}|1900$_bf_$d{4,6}|672$_bf_$d{6}|[17]99$_bf_$d{4}|69$_bf_$d{5,6}"},{"i":"VU","lbl":"Vanuatu","img":"vu.png","code":"+678","ex":"5912345","ptrn":"(?:38[0-8]|48[4-9])$_bf_$d$_bf_$d|(?:2[02-9]|3[4-7]|88)$_bf_$d{3}|(?:[58]$_bf_$d|7[0-7])$_bf_$d{5}|81[18]$_bf_$d$_bf_$d|9(?:0[1-9]|1[01])$_bf_$d{4}|(?:3[03]|900$_bf_$d)$_bf_$d{3}"},{"i":"WF","lbl":"Wallis and Futuna","img":"wf.png","code":"+681","ex":"821234","ptrn":"72$_bf_$d{4}|(?:72|8[23])$_bf_$d{4}|80[0-5]$_bf_$d{6}|9[23]$_bf_$d{4}|[48]0$_bf_$d{4}"},{"i":"WS","lbl":"Samoa","img":"ws.png","code":"+685","ex":"7212345","ptrn":"6[1-9]$_bf_$d{3}|(?:[2-5]|60)$_bf_$d{4}|(?:7[1-35-8]|8(?:[3-7]|9$_bf_$d{3}))$_bf_$d{5}|800$_bf_$d{3}"},{"i":"YE","lbl":"Yemen","img":"ye.png","code":"+967","ex":"712345678","ptrn":"78[0-7]$_bf_$d{4}|17$_bf_$d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])$_bf_$d{5}|7[01378]$_bf_$d{7}"},{"i":"ZA","lbl":"South Africa","img":"za.png","code":"+27","ex":"711234567","ptrn":"(?:2(?:0330|4302)|52087)0$_bf_$d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4$_bf_$d|5[1346-8])$_bf_$d{7}|(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])$_bf_$d{3}|8[1-4]$_bf_$d{3,7}|(?:2[27]|47|54)4950$_bf_$d{3}|(?:1(?:049[2-4]|9[12]$_bf_$d$_bf_$d)|(?:50[0-2]|[67]$_bf_$d$_bf_$d)$_bf_$d$_bf_$d|8(?:5$_bf_$d{3}|7(?:08[67]|158|28[5-9]|310)))$_bf_$d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920$_bf_$d{3}|(?:12|[2-5]1)492$_bf_$d{4}|80$_bf_$d{7}|(?:86[2-9]|9[0-2]$_bf_$d)$_bf_$d{6}|860$_bf_$d{6}|87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])$_bf_$d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]$_bf_$d)$_bf_$d{5}|861$_bf_$d{6,7}"},{"i":"ZM","lbl":"Zambia","img":"zm.png","code":"+260","ex":"955123456","ptrn":"21[1-8]$_bf_$d{6}|(?:[59][5-8]|7[5-9])$_bf_$d{7}|800$_bf_$d{6}|63$_bf_$d{7}"},{"i":"ZW","lbl":"Zimbabwe","img":"zw.png","code":"+263","ex":"712345678","ptrn":"(?:1(?:(?:3$_bf_$d|9)$_bf_$d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)$_bf_$d$_bf_$d|[56](?:[14]$_bf_$d$_bf_$d|20)|7(?:[089]|2[03]|[35]$_bf_$d$_bf_$d))$_bf_$d|4(?:2$_bf_$d$_bf_$d|8))$_bf_$d|1(?:2|[39]$_bf_$d{4}))|3(?:(?:123|(?:29$_bf_$d|92)$_bf_$d)$_bf_$d$_bf_$d|7(?:[19]|[56]$_bf_$d))|5(?:0|1[2-478]|26|[37]2|4(?:2$_bf_$d{3}|83)|5(?:25$_bf_$d$_bf_$d|[78])|[689]$_bf_$d)|6(?:(?:[16-8]21|28|52[013])$_bf_$d$_bf_$d|[39])|8(?:[1349]28|523)$_bf_$d$_bf_$d)$_bf_$d{3}|(?:4$_bf_$d$_bf_$d|9[2-9])$_bf_$d{4,5}|(?:(?:2(?:(?:(?:0|8[146])$_bf_$d|7[1-7])$_bf_$d|2(?:[278]$_bf_$d|92)|58(?:2$_bf_$d|3))|3(?:[26]|9$_bf_$d{3})|5(?:4$_bf_$d|5)$_bf_$d$_bf_$d)$_bf_$d|6(?:(?:(?:[0-246]|[78]$_bf_$d)$_bf_$d|37)$_bf_$d|5[2-8]))$_bf_$d$_bf_$d|(?:2(?:[569]$_bf_$d|8[2-57-9])|3(?:[013-59]$_bf_$d|8[37])|6[89]8)$_bf_$d{3}|7(?:[1278]$_bf_$d|3[1-9]|9[01])$_bf_$d{6}|80(?:[01]$_bf_$d|20|8[0-8])$_bf_$d{3}|86(?:1[12]|22|30|44|55|77|8[368])$_bf_$d{6}"}]`);const P2=e=>{var r,i,s,a,l,d;const n=(e==null?void 0:e.err)||{},t=`${bits.rootURL}/static`;return[{name:m("Text"),keywords:"Text, name, input, field",icn:o.jsx(Sc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"text",lbl:m("Text"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Multiline Text"),keywords:"Multiline Text, Textarea, Text Area, Messages, message, comment, feedback",icn:o.jsx(z2,{size:"20"}),pos:{h:145,w:60,minW:9,i:"shadow_block"},category:"basic",elm:{typ:"textarea",lbl:m("Multi-Line Text"),valid:{},err:{},customClasses:{},customAttributes:{fld:[{key:"rows",value:"4"}]}}},{name:m("Name"),keywords:"name, full name, text, first name, last name, middle name, prefix, suffix, given name, family name",icn:o.jsx(ko,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"name",lbl:m("Name"),ph:m("Placeholder..."),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Email"),keywords:"Email, Email Address",icn:o.jsx(Bl,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"email",lbl:m("Email"),ph:m("[email protected]"),phHide:!0,pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",valid:{},err:{invalid:{dflt:((r=n.email)==null?void 0:r.invalid)||'<p style="margin:0">Please, Enter a valid email address.</p>',show:!0},req:{dflt:n.req||`<p style="margin:0">${m("This field is required")}</p>`,show:!0,custom:!0}},customClasses:{},customAttributes:{}}},{name:m("Number"),keywords:"Number, Numeric, Numeric Field, Calculator",icn:o.jsx(v2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"number",lbl:m("Number"),ph:m("e.g. 123"),phHide:!0,valid:{},err:{invalid:{dflt:((i=n.number)==null?void 0:i.invalid)||"<p style='margin:0'>Number is invalid</p>",show:!0}},customClasses:{},customAttributes:{}}},{name:m("Username"),keywords:"User Name, text",icn:o.jsx(ko,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"username",lbl:m("Username"),ph:m("e.g. John Doe"),phHide:!0,valid:{},err:{entryUnique:{dflt:n.entryUnique||"That User Name is taken. Try another.",show:!0}},customAttributes:{}}},{name:m("Password"),keywords:"Password, encrypted, secure",icn:o.jsx(y2,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"password",lbl:m("Password"),ph:m("Placeholder..."),phHide:!0,valid:{},err:{},config:{},customClasses:{},customAttributes:{}}},{name:m("Slider"),keywords:"Slider, range, number-range, range-slider",icn:o.jsx(N2,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"range",lbl:m("Slider"),phHide:!0,hlpTxtHide:!0,showValue:!0,showMinMaxTip:!0,valTxt:"Value: ",valPos:"bottom-left",valAlign:"end",mn:"0",mx:"100",step:"1",valid:{},err:{mn:{dflt:n.mn||'<p style="margin:0">Minimum value is 0</p>',show:!0},mx:{dflt:n.mx||'<p style="margin:0">Maximum value is 100</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("URL"),keywords:"URL, Link, Website, Web Address, Web URL, Web Link, Web Site",icn:o.jsx(B2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"url",attr:{title:"https://www.example.com or www.example.com",pattern:"^(?:(?:https?|ftp):$_bf_$/$_bf_$/)?(?:(?!(?:10|127)(?:$_bf_$.$_bf_$d{1,3}){3})(?!(?:169$_bf_$.254|192$_bf_$.168)(?:$_bf_$.$_bf_$d{1,3}){2})(?!172$_bf_$.(?:1[6-9]|2$_bf_$d|3[0-1])(?:$_bf_$.$_bf_$d{1,3}){2})(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[01]$_bf_$d|22[0-3])(?:$_bf_$.(?:1?$_bf_$d{1,2}|2[0-4]$_bf_$d|25[0-5])){2}(?:$_bf_$.(?:[1-9]$_bf_$d?|1$_bf_$d$_bf_$d|2[0-4]$_bf_$d|25[0-4]))|(?:(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff0-9]-*)*[a-z$_bf_$u00a1-$_bf_$uffff0-9]+)*(?:$_bf_$.(?:[a-z$_bf_$u00a1-$_bf_$uffff]{2,})))(?::$_bf_$d{2,5})?(?:$_bf_$/$_bf_$S*)?$"},lbl:m("URL"),ph:m("https://www.example.com"),phHide:!0,valid:{},err:{invalid:{dflt:((s=n.url)==null?void 0:s.invalid)||'<p style="margin:0">URL is invalid</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("Color Picker"),keywords:"Color Picker, Color Select, Color Picker Field, Color Select Field",icn:o.jsx(l2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"color",lbl:m("Color Picker"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("reCAPTCHA v2"),keywords:"ReCaptcha v2, Google ReCaptcha v2, spam protection, bot protection, security",icn:o.jsx(wc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"recaptcha",valid:{},config:{theme:"light",size:"normal"}}},{name:m("Turnstile"),keywords:"ReCaptcha, hCaptcha, Captcha, Turnstile, cloudflare, spam protection, bot protection",icn:o.jsx(a2,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"turnstile",valid:{},layout:{autoHeight:1},config:{theme:"auto",size:"normal",language:"auto",appearance:"always"}}},{name:m("hCaptcha"),keywords:"ReCaptcha, hCaptcha, Captcha, spam protection, bot protection",icn:o.jsx(_2,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"hcaptcha",valid:{},layout:{autoHeight:1},config:{theme:"light",size:"normal"}}},{name:m("Email OTP"),keywords:"Email OTP, OTP, One Time Password, Verification, Email Verification, Security",icn:o.jsx(p2,{size:20,stroke:2}),pos:{h:120,w:60,i:"shadow_block",minW:20},category:"captcha",pro:"This field is available only in pro version",elm:{typ:"email-otp",lbl:m("Email OTP"),subtitle:m("A verification code will be sent to the specified email address."),subtitleHide:!0,valid:{},err:{notVerified:{show:!0,custom:!1,msg:"",dflt:m("Please verify your email OTP before submitting.")}},config:{receiverEmailType:"dynamic",receiverEmail:"",receiverEmailFld:"",otpLength:6,resendDelay:60,expiryDelay:15,emailTemplate:`<p>Hello,</p>
1445 <p>We received a request to verify your action.</p>
1446 <p>Your One-Time Password (OTP) is: <strong>\${bf_otp_code}</strong></p>
1447 <p>This code is valid for <strong>\${bf_expiry_minutes}</strong> minutes and can only be used once.</p>
1448 <p>If you did not initiate this request, please ignore this email.</p>
1449 <p>Thank you</p>`,sendBtnTxt:m("Send OTP"),resendBtnTxt:m("Resend OTP"),verifyBtnTxt:m("Verify OTP"),waitTxt:m("Resend available in ${bf_resend_countdown}s."),maxAttempts:5,sendOnValidate:!0,autoVerifyOnInput:!0}}},{name:m("Repeater"),keywords:"Repeater, Field Group, Group, Repeater Field",icn:o.jsx(I2,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"repeater",lbl:m("Repeater"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{},addBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:"",icn:{pos:"",url:""}},addBtnPreIcn:`${t}/repeater/plusicon.svg`,removeBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:"",icn:{pos:"",url:""}},removeBtnPreIcn:`${t}/repeater/minusicon.svg`,addToEndBtn:{btnAlignment:"start",show:!1,btnTyp:"button",btnSiz:"md",txt:m("Add New"),icn:{pos:"",url:""}},addToEndBtnPreIcn:`${t}/repeater/plusicon.svg`,btnPosition:"row",btnAlignment:"center",btnView:"row",repeatDirecton:"column"}},{name:m("Signature"),keywords:"Signature Editor, Signature Field, Signature, Signature Block, Canvas, Digital Signature",icn:o.jsx(T2,{size:20}),pos:{h:140,w:60,i:"shadow_block"},pro:"This field is available only in pro version",category:"advanced",elm:{typ:"signature",adminLbl:m("Signature"),lbl:m("Signature"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},btnAlign:"start",config:{maxWidth:2.5,penColor:"#000000",backgroundColor:"#ffffff",imgTyp:"image/png"},clrBtnHide:!1,clrBtn:m("Clear"),clrPreIcn:"",clrSufIcn:"",btnDir:!1,undoBtnHide:!1,undoBtn:m("Undo"),undoPreIcn:"",undoSufIcn:"",redoBtnHide:!1,redoBtn:m("Redo"),redoPreIcn:"",redoSufIcn:""}},{name:m("Rating"),keywords:"Check Box, Mark, Rating, Star, Review, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(Ll,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"rating",lbl:m("Rating"),opt:[{lbl:m("Terrible"),val:"1",img:`${t}/rating/star.svg`},{lbl:m("Bad"),val:"2",img:`${t}/rating/star.svg`},{lbl:m("Satisfied"),val:"3",img:`${t}/rating/star.svg`},{lbl:m("Good"),val:"4",img:`${t}/rating/star.svg`},{lbl:m("Excellent"),val:"5",img:`${t}/rating/star.svg`}],ratingPos:"start",valid:{},err:{},customClasses:{},customAttributes:{},showReviewLblOnHover:!1,showReviewLblOnSelect:!1,selectedRating:!1}},{name:m("Image Select"),keywords:"Image, Image select, Radio button, Choice, Single Choice, Radio Group, Check Box, Mark, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx($2,{size:20}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"image-select",lbl:m("Image Select"),opt:[{lbl:m("Option 1"),val:"1",img:`${t}/placeholder-image.svg`},{lbl:m("Option 2"),val:"2",img:`${t}/placeholder-image.svg`},{lbl:m("Option 3"),val:"3",img:`${t}/placeholder-image.svg`},{lbl:m("Option 4"),val:"4",img:`${t}/placeholder-image.svg`}],valid:{},err:{},tickImgSrc:`${t}/image-select/tick.svg`,itemSize:200,layout:{autoHeight:1},tickPosition:"top-left",optLblHide:!1,inpType:"radio",customClasses:{},customAttributes:{}}},{name:m("Select"),keywords:"Select, Dropdown, Drop Down, option",icn:o.jsx(Ri,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"option",elm:{typ:"html-select",lbl:m("Select"),opt:[{lbl:"Option 1"},{lbl:"Option 2"},{lbl:"Option 3"}],ph:m("Select an option..."),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Button"),keywords:"Button, Submit, Submit Button, Submit Form, click, click button",icn:o.jsx(hr,{size:"20"}),pos:{h:60,w:60,i:"shadow_block"},category:"basic",elm:{typ:"button",btnTyp:"button",btnSiz:"md",txt:m("Button"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:m("Section"),keywords:"Section, Field Group, Group, Section Field, Fieldset, Fieldset Group",icn:o.jsx(k2,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"section",lbl:m("Section"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Title"),keywords:"title, heading, heading 1, heading 2, heading 3, heading 4, heading 5, heading 6",icn:o.jsx(O2,{w:"20"}),pos:{h:48,w:60,i:"shadow_block"},category:"element",elm:{typ:"title",adminLbl:m("Title"),adminLblHide:!0,titleImg:"",logoHide:!0,title:m("Your Title Here"),titleHide:!1,subtitleHide:!0,titleTag:"h1",subTitleTag:"h5",valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Image"),keywords:"image, picture, photo, logo, icon, avatar, profile picture, profile photo",icn:o.jsx(m2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"image",adminLbl:m("Image"),adminLblHide:!0,alt:"",valid:{},height:"",width:"",img:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Divider"),keywords:"divider, line, horizontal line, horizontal divider",icn:o.jsx(u2,{w:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"element",elm:{typ:"divider",adminLbl:m("Divider"),adminLblHide:!0,valid:{},divider:{},err:{},customClasses:{},customAttributes:{}}},{name:m("HTML"),keywords:"HTML, HTML Code, HTML Block, HTML Element, HTML Field, HTML Editor",icn:o.jsx(Rl,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"html",adminLbl:m("HTML"),layout:{autoHeight:1},adminLblHide:!0,content:'<b>Html Field</b><p style="margin:0"><span style="font-size: 12pt">Add html content on editor</span></p>',valid:{},customClasses:{},customAttributes:{}}},{name:m("Radio Button"),keywords:"Radio button, Choice, Single Choice, Radio Group",icn:o.jsx(j2,{size:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"radio",lbl:m("Radio"),round:!0,opt:[{lbl:m("Option 1")},{lbl:m("Option 2")},{lbl:m("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:m("Checkbox"),keywords:"Check Box, Mark, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(s2,{w:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"check",lbl:m("Checkbox"),opt:[{lbl:m("Option 1")},{lbl:m("Option 2")},{lbl:m("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:m("Dropdown"),keywords:"Dropdown, Select, Drop Down, Multiple Select, Multiple Choice, Multiple Option",icn:o.jsx(f2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"select",lbl:m("Dropdown"),phHide:!0,ph:"Select an Option",optionsList:[{"List-1":[{lbl:"Option 1 1"},{lbl:"Option 1 2"},{lbl:"Option 1 3"}]}],config:{selectedOptImage:!1,selectedOptClearable:!0,searchClearable:!0,showSearch:!0,optionIcon:!1,placeholder:"Select an option",showSearchPh:!0,searchPlaceholder:"Search options..",maxHeight:400,multipleSelect:!0,showChip:!0,selectedOptImgSrc:"test.png",closeOnSelect:!1,activeList:0,allowCustomOption:!1},valid:{},err:{mn:{dflt:((a=n.select)==null?void 0:a.mn)||'<p style="margin:0">You must select the minimum required options.</p>',show:!0},mx:{dflt:((l=n.select)==null?void 0:l.mx)||'<p style="margin:0">You can select up to the maximum allowed options.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("File Upload"),keywords:"File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(Fl,{w:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"basic",elm:{typ:"file-up",lbl:m("File Upload"),btnTxt:"Attach File",valid:{},prefixIcn:`${t}/file-upload/paperclip.svg`,err:{maxSize:{dflt:n.maxSize||'<p style="margin:0">File Size is Exceeded</p>',show:!0},minFile:{dflt:n.minFile||'<p style="margin:0">Minimum 0 file required</p>',show:!0},maxFile:{dflt:n.maxFile||'<p style="margin:0">Maximum 0 file can uploaded</p>',show:!0}},customClasses:{},customAttributes:{},config:{multiple:!0,allowMaxSize:!0,showMaxSize:xe,maxSize:2,sizeUnit:"MB",isItTotalMax:!1,showSelectStatus:!0,fileSelectStatus:"No File Selected",allowedFileType:"",showFileList:!0,fileExistMsg:"A file already exists",showFilePreview:!0,showFileSize:!0,duplicateAllow:!1,accept:"",minFile:0,maxFile:0}}},{name:m("Date"),keywords:"Date, Date Field, month",icn:o.jsx(yc,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"date",lbl:m("Pick A Date"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Time"),keywords:"Time, Time Picker, Time Select, minutes, hours",icn:o.jsx(A2,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"time",lbl:m("Select Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Date-Time"),keywords:"Date-Time, Date, Time, day, month, year",icn:o.jsx(gs,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"datetime-local",lbl:m("Select Date-Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Week"),keywords:"Week, Date, day",icn:o.jsx(L2,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"week",lbl:m("Select Week"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Month"),keywords:"Month, Date",icn:o.jsx(x2,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"month",lbl:m("Month Input"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Date Time (Advanced)"),keywords:"advanced date time, date-time, date time field",icn:o.jsx(gs,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",pro:"This field is available only in pro version",elm:{typ:"advanced-datetime",lbl:m("Advanced Date Time"),ph:m("Please Select a Date"),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},config:{mode:"single",dateFormat:"Y-m-d",disableMobile:!0}}},{name:m("Spacer"),keywords:"Gap, Spacer, Space, Empty Space, Blank Space, Vertical Space, Horizontal Space",icn:o.jsx(E2,{size:"22"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"spacer",adminLbl:m("Spacer"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Advanced File Upload"),keywords:"Advanced File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(o2,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"advanced",pro:"This field is available only in pro version",elm:{typ:"advanced-file-up",lbl:m("Advanced File Upload"),layout:{autoHeight:1},upBtnTxt:"Attach File",valid:{},config:{credits:!1,allowDrop:!0,allowPaste:!0,allowMultiple:!1,allowReplace:!0,allowReorder:!1,allowBrowse:!0,allowRevert:!0,allowRemove:!0,forceRevert:!0,instantUpload:!1,dropOnElement:!1,allowFileSizeValidation:!1,allowFileTypeValidation:!1,allowPreview:!1,allowImageCrop:!1,allowImagePreview:!1,allowImageResize:!1,allowImageTransform:!1,allowImageValidateSize:!1,styleButtonRemoveItemPosition:"left",styleButtonProcessItemPosition:"right",styleLoadIndicatorPosition:"right",styleProgressIndicatorPosition:"right",maxParallelUploads:2},err:{},customClasses:{},customAttributes:{}}},{name:m("Address"),keywords:"Address, Street, City, State, ZIP, Country, Postal",icn:o.jsx(_c,{size:"20"}),pos:{h:240,w:60,i:"shadow_block"},new:!0,category:"advanced",elm:{typ:"address",lbl:m("Address"),layout:{autoHeight:1},valid:{},err:{},config:{scheme:"international",defaultCountry:"",autocomplete:"none",autocompleteApiKey:"",autoLocate:"disable",showMap:"none",saveCoordinates:!1,zipValidation:"auto",zipCustomRegex:""},customClasses:{},customAttributes:{}}},{name:m("Country"),keywords:"Country, Country List, Country Dropdown, Country Select, flag",icn:o.jsx(b2,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"country",lbl:m("Country"),mul:!1,phHide:!0,ph:"Select a Country",config:{selectedFlagImage:xe,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:xe,detectCountryByIp:!1,detectCountryByGeo:!1,defaultValue:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found"},options:Ga,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:m("Currency"),keywords:"Currency, Currency Field, Amount, Price",icn:o.jsx(c2,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"currency",lbl:m("Currency"),ph:m("Enter Amount.."),phHide:!0,inputFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},valueFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},config:{selectedFlagImage:xe,selectedCurrencyClearable:!0,searchClearable:!0,optionFlagImage:xe,defaultCurrencyKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCurrencyFoundText:"No Currency Found"},options:R2,valid:{},err:{minValue:{dflt:n.minValue||'<p style="margin:0">Minimum required amount not met.</p>',show:!0},maxValue:{dflt:n.maxValue||'<p style="margin:0">The entered amount exceeds the maximum limit.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("Phone Number"),keywords:"Phone number, Number",icn:o.jsx(S2,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"phone-number",lbl:m("Phone Number"),ph:m("Enter Phone Number"),phHide:!0,config:{selectedFlagImage:xe,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:xe,defaultCountryKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found",inputFormat:"+c #### ### ###",valueFormat:"+c #### ### ###"},options:F2,valid:{},err:{invalid:{dflt:((d=n["phone-number"])==null?void 0:d.invalid)||'<p style="margin:0">Please enter a valid phone number</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("Hidden Field"),keywords:"hidden,Text, number, hide, hidden field, hidden text, hidden number",icn:o.jsx(Pl,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"hidden",lbl:m("Hidden Field"),ph:m("Set Default Value"),phHide:!0,valid:{hide:!0},err:{},customClasses:{},customAttributes:{}}},{name:m("GDPR Agreement"),keywords:"Consent, GDPR, Yes/No, Agree/Disagree,GDPR agreement, decision, accept",icn:o.jsx(h2,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"gdpr",adminLbl:m("GDPR Agreement"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${m("I consent to having this website store my submitted information so they can respond to my inquiry. Learn more in ")}<a title="Privacy Policy" href="https://yoursite-example.com/privacy" target="_blank" rel="noopener">${m("Our Privacy Policy.")}</a></span></p>`,msg:{checked:"Consented",unchecked:"dissented"},valid:{req:!0},err:{req:{dflt:'<p style="margin:0">Please provide consent.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:m("Decision Box"),keywords:"Decision box, GDPR, Yes/No, Agree/Disagree, concent",icn:o.jsx(d2,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"basic",elm:{typ:"decision-box",adminLbl:m("Decision Box"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${m("Decision Box")}</span></p>`,msg:{checked:"Accepted",unchecked:"Rejected"},valid:{req:!0},err:{req:{dflt:n.req||`<p style="margin:0">${m("This field is required")}</p>`,show:!0}},customClasses:{},customAttributes:{}}},{name:m("PayPal"),keywords:"PayPal, payment, credit card, credit card payment",icn:o.jsx(w2,{w:"20"}),pos:{h:200,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"paypal",adminLbl:m("PayPal"),currency:"USD",style:{layout:"vertical",color:"gold",shape:"rect",label:"paypal",height:"55"},valid:{}}},{name:m("Razorpay"),keywords:"Razorpay, payment, credit card, credit card payment",icn:o.jsx(C2,{w:"20",h:"23"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"razorpay",lbl:m("Razorpay"),btnSiz:"md",fulW:!1,subTitl:!0,align:"center",btnTxt:"Pay Now",btnTheme:"dark",options:{name:"Razorpay",description:"",currency:"INR",amount:0,amountType:"fixed",theme:{},prefill:{},modal:{confirm_close:!1}},valid:{},customClasses:{},customAttributes:{}}},{name:m("Stripe"),keywords:"Stripe, payment, credit card, credit card payment",icn:o.jsx(M2,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"stripe",adminLbl:m("Stripe"),err:{},txt:m("Pay with Stripe"),layout:{autoHeight:1},config:{payBtnTxt:m("Pay now"),layout:{type:"tabs",defaultCollapsed:!1},amount:50,options:{mode:"payment",currency:"usd",locale:"en",payment_method_types:["card"]},theme:{name:"stripe",style:{theme:"stripe"}}}}},{name:m("Mollie"),keywords:"Mollie, payment, credit card, credit card payment",icn:o.jsx(g2,{size:20,stroke:5}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"payment",pro:"This field is available only in pro version",elm:{typ:"mollie",adminLbl:m("Mollie"),err:{},txt:m("Pay with Mollie"),btnFulW:!0,btnAlign:"center",txtAlign:"center",config:{currency:"EUR",amount:"10.00",description:"Order #12345",payment_method:["creditcard"],redirect_url:""}}},{name:m("Shortcode"),keywords:"Shortcode, Shortcode Block, Shortcode Element, Shortcode Field, Shortcode Editor, embed, Embed Code",icn:o.jsx(ec,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},pro:"This field is available only in pro version",category:"advanced",elm:{typ:"shortcode",adminLbl:m("Shortcode"),adminLblHide:!0,content:"[type_your_shortcode_here]",layout:{autoHeight:1},valid:{},customClasses:{},customAttributes:{}}},{name:m("Draft Button"),keywords:"Button, Submit, Save, Save Draft, Submit Button, Submit Form, Click, Click button",icn:o.jsx(hr,{size:"20"}),pos:{h:60,w:60,i:"shadow_block"},category:"advanced",pro:"This field is available only in pro version",elm:{typ:"button",btnTyp:"save-draft",btnSiz:"md",txt:m("Save Draft"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:m("Next Step"),keywords:"Button, Next, Next Step, Next Button",icn:o.jsx(hr,{size:"23"}),pos:{h:60,w:30,x:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"next-step",btnSiz:"md",txt:m("Next"),align:"end",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:m("Previous Step"),keywords:"Button, Previous, Previous Step, Previous Button",icn:o.jsx(hr,{size:"23"}),pos:{h:60,w:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:m("Previous"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}}]};function D2({setNewData:e}){const{css:n}=re(),t=ce(Es),[r,i]=N.useState(""),[s,a]=N.useState(!1),[l,d]=N.useState(!1),[f,u]=N.useState(!1),c=N.useRef(null),p=N.useMemo(()=>P2(t),[t]),h=t2(),x=N.useMemo(()=>{let b=p;return r&&(b=p.filter(j=>j.keywords.toLowerCase().includes(r.toLowerCase())||j.name.toLowerCase().includes(r.toLowerCase()))),l&&(b=[...b].sort((j,E)=>j.name.localeCompare(E.name))),b.reduce((j,E)=>(j[E.category].push(E),j),h)},[p,r,l]),$=N.useCallback(b=>{const j=b.target.value.trim();i(j)},[]),y=N.useCallback(()=>{c.current&&(c.current.value=""),i(""),a(!1)},[]),I=N.useCallback(()=>{d(b=>!b)},[]);N.useCallback(b=>{const{scrollTop:j}=b.target;u(j>50)},[]);const T=N.useCallback(()=>a(!0),[]),w=N.useCallback(()=>{setTimeout(()=>a(!1),200)},[]);N.useEffect(()=>{const b=j=>{var E;(j.ctrlKey||j.metaKey)&&j.key==="/"&&(j.preventDefault(),(E=c.current)==null||E.focus())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[]);const _=N.useCallback(b=>o.jsx(i2,{setNewData:e,value:{fieldData:b.elm,fieldSize:b.pos},title:b.name,children:o.jsxs("div",{className:n(Ce.toolWrapper),title:b.name,children:[o.jsx("span",{className:`${n(Ce.tool_icn,v.mr1)} tool-icn`,children:b.icn}),o.jsx("span",{className:`${n(Ce.tool_label)} tool-label`,children:b.name}),b.tip&&o.jsx(Li,{className:"hover-tip",icnSize:15,children:o.jsx("div",{className:"txt-body",children:b.tip})}),!xe&&b.pro&&o.jsx(pi,{width:"18",children:o.jsx("div",{className:"txt-body",children:o.jsx(Dl,{html:b.pro})})}),(xe||!b.pro)&&b.new&&o.jsx(pi,{width:"18",text:"New",isNewBadge:!0}),o.jsx(fc,{size:13,classNames:`${n(Ce.dragIcon)} drag-icon`})]})},b.name),[e,n]),g=N.useCallback((b,j,E)=>{if(!E.length)return null;const O=E.length,L=r?`${j} (${O} ${m("found")})`:`${j} (${O})`;return o.jsx(Xt,{id:`${b}-fields`,title:L,className:n(Ce.categorySection),open:!0,children:o.jsx("div",{className:`${n(Ce.twoColumnGrid)} bf-tool-grid`,children:E.map(_)})},b)},[n,_,r]);return o.jsxs("div",{className:n(Ce.toolbarWrapper),"data-testid":"toolbar-wrapper",children:[o.jsxs("div",{className:n(v.flxc,Ce.searchSection,f?Ce.searchBar:{}),children:[o.jsxs("div",{className:n(Ce.fields_search),style:{width:s?"100%":"calc(100% - 35px)"},children:[o.jsx("input",{ref:c,title:"Search Field","aria-label":"Search Field",autoComplete:"off","data-testid":"tlbr-srch-inp",placeholder:m("Search fields.."),type:"search",name:"searchField",onChange:$,onFocus:T,onBlur:w,className:n(Ce.search_field)}),r&&o.jsx("span",{title:"clear","aria-label":"Clear",className:n(Ce.clear_icn),role:"button",tabIndex:0,onClick:y,onKeyDown:b=>b.key==="Enter"&&y()}),o.jsx("span",{title:"search",className:n(Ce.search_icn),children:o.jsx(Hl,{size:"20"})}),!r&&o.jsx("div",{className:`${n(Ce.shortcut)} shortcut`,title:'Press "Ctrl+/" to focus search',children:"Ctrl+/"})]}),!s&&o.jsx("button",{title:"Sort by ascending order","data-testid":"tlbr-sort-btn",className:`${n(Ce.sort_btn)} ${l?"active":""}`,type:"button",onClick:I,"aria-label":"Sort Fields",children:o.jsx(e2,{size:20})})]}),o.jsxs("div",{className:n(Ce.categoriesWrapper),children:[r&&o.jsxs("div",{className:n({mb:10,fs:14,fw:500,cr:"#666",px:5}),children:[m("Search results for:")," ",r]}),Ti.map(b=>g(b.category,m(b.title),x[b.category])),r&&Ti.every(b=>x[b.category].length===0)&&o.jsxs("div",{className:n(Ce.emptyStateWrapper),children:[o.jsx("div",{className:n(Ce.emptyIcon),children:"🔍"}),o.jsx("h3",{className:n(Ce.emptyStateTitle),children:m("No fields found")}),o.jsxs("div",{className:n(Ce.emptyStateDescription),children:[m("We couldn't find any fields matching")," ",o.jsx("strong",{children:` "${r}"`}),o.jsx("div",{className:n({fs:12,mt:5,cr:"#999"}),children:m("Try searching with different keywords")})]})]})]})]})}var H2=N.memo(D2);const pn={elmSettings:{bd:"var(--white-100)",h:"100%",w:"var(--bf-left-panel-width, 450px)",mnw:"var(--bf-left-panel-width, 450px)",fs:18,br:"1px solid var(--bf-stroke-clr)",pn:"relative",tn:"width 0.3s ease, min-width 0.3s ease","&.style-mode":{w:"var(--bf-style-mode-left-panel-width, 450px)",mnw:"var(--bf-style-mode-left-panel-width, 450px)"}},elmSettingsCollapsed:{w:0,mnw:0,"&.style-mode":{w:0,mnw:0}},toggleButton:{pn:"absolute",rt:"-20px",tp:"50%",tm:"translateY(-50%)",zx:100,w:20,h:45,p:2,bd:"var(--white-100)",b:"1px solid var(--bf-stroke-clr)",bl:"none",brs:"0 30px 30px 0",cr:"var(--bf-text-clr-gray)",dy:"flex","align-items":"center","justify-content":"center",cur:"pointer",tn:"all 0.2s ease",":hover":{cr:"var(--bf-text-clr-dark)",bd:"var(--bf-bg-hover)",bs:"2px 0 6px rgba(0, 0, 0, 0.15)","& svg":{ml:-10}},":active":{tm:"translateY(-50%) scale(0.95)"}},toggleIcon:{tn:"transform 0.3s ease",tm:"rotate(90deg) !important",ml:-6},toggleIconRotated:{tm:"rotate(270deg) !important"},segmentMenuWrapper:{h:"var(--bf-option-toolbar-height)",brs:0,bb:"1px solid var(--bf-stroke-clr)",br:"1px solid var(--bf-stroke-clr)","& .tabs":{b:"none",h:"100%"},"& .selector":{h:"100%"},"& .segment-tip":{h:"100%"},"& button":{h:"100%"}}},V2=$t(()=>Ke(()=>import("./bf-765-167.js").then(e=>e.F),__vite__mapDeps([39,1,2,40,41,8,4,5,9,10,11,12,13,42,43,44,45,46,19,18,3,6,7,14,21,26,38,47,48,49]),import.meta.url),{fallback:o.jsx(ar,{})}),W2=$t(()=>Ke(()=>import("./bf-239-168.js"),__vite__mapDeps([50,1,2,42,43,44,4,5,40,41,16,14,17,6,51,8,9,10,11,12,13,46,19,18,3,7,15,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ar,{})}),G2=$t(()=>Ke(()=>import("./bf-135-169.js"),__vite__mapDeps([52,1,2,42,43,44,4,5,40,41,8,9,10,11,12,13,6,46,19,18,3,7,14,16,17,15,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ar,{})}),U2=$t(()=>Ke(()=>import("./bf-909-170.js"),__vite__mapDeps([53,1,2,25,4,5,7,26,27,54,28,8,9,10,11,12,13,29,30,3,6,14,16,17,15,18,19,20,21,22,23,24,31]),import.meta.url),{fallback:o.jsx(ar,{})});function K2({style:e,styleDispatch:n,addNewData:t,onToggle:r,isCollapsed:i}){const{pathname:s}=Mi(),{formID:a,formType:l,"*":d}=me(),f=(d==null?void 0:d.split("/")[0])||"",{css:u}=re(),[c,p]=q(Or),h=ce(Qn),x=ie(Ds);q(nt);const[$,y]=N.useState("Add Fields"),I=er(),T=`/form/builder/${l}/${a}`,{styleMode:w}=c;N.useEffect(()=>{var O,L;const E=(L=(O=vr(".settings"))==null?void 0:O.firstChild)==null?void 0:L.firstChild;E&&E.scrollTop>0&&(E.scrollTop=0),f.match(/add-fields/)?y("Add Fields"):f.match(/fields-list|field-settings|step-settings|multi-step-settings/)?((c.styleMode||c.inspectMode)&&p(H=>B(S({},H),{styleMode:!1,inspectMode:!1})),y("Field Options")):f.match(/themes|style|field-theme-customize|theme-customize/)&&(c.styleMode||p(H=>B(S({},H),{styleMode:!0})),y("Style"))},[f]);const _=({target:{scrollTop:E}})=>{E>20?x(!0):x(!1)},g=()=>{p(E=>B(S({},E),{styleMode:!1,inspectMode:!1})),h?I(`${T}/field-settings/${h}`,{replace:!0}):I(`${T}/fields-list`,{replace:!0}),wo(),Dt()},b=()=>{p(E=>B(S({},E),{styleMode:!1,inspectMode:!1})),I(`${T}/add-fields`,{replace:!0}),wo(),Dt()},j=E=>{E==="Add Fields"?b():E==="Field Options"&&g(),y(E)};return o.jsxs("div",{className:`${u(pn.elmSettings,i?pn.elmSettingsCollapsed:{})} ${w?"style-mode":""} left-bar-panel`,children:[o.jsx("button",{className:u(pn.toggleButton),onClick:r,"aria-label":i?"Show left panel":"Hide left panel",title:i?"Show left panel":"Hide left panel",children:o.jsx(Ri,{size:18,className:u(pn.toggleIcon,i&&pn.toggleIconRotated)})}),!i&&o.jsxs(o.Fragment,{children:[o.jsx(Ka,{className:u(pn.segmentMenuWrapper),show:["icn","label"],tipPlace:"bottom",defaultActive:$,options:[{icn:o.jsx(k1,{size:22}),label:"Add Fields",tip:"Form Fields"},...c.styleMode?[]:[{icn:o.jsx(Vl,{size:22,classNames:u({tm:"rotate(90deg)"})}),label:"Field Options",tip:"Individual Field Settings"}]],onChange:j,wideTab:!0,variant:"clean-tertiary-bottom-outline"}),w?o.jsx(Q1,{}):o.jsx("div",{className:"settings",children:o.jsx(Hs.Scrollbars,{onScroll:_,autoHide:!0,children:o.jsx(Bi,{resetKey:s,children:o.jsxs(Vs,{children:[o.jsx(St,{path:"add-fields",element:o.jsx(H2,{setNewData:t})}),o.jsx(St,{path:"fields-list",element:o.jsx(U2,{})}),o.jsx(St,{path:"field-settings/:fieldKey",element:o.jsx(V2,{})}),o.jsx(St,{path:"multi-step-settings",element:o.jsx(W2,{})}),o.jsx(St,{path:"step-settings",element:o.jsx(G2,{})})]})})})})]})]})}function ro(){const{css:e}=re();return o.jsxs("div",{className:e(bn.wrp),children:[o.jsx("div",{className:`${e(bn.lnk)} loader`}),o.jsx("div",{className:`${e(bn.titl)} loader`}),Array(12).fill(0).map((n,t)=>o.jsxs("div",{className:`${e(bn.t_wrp)} flx`,children:[o.jsx("div",{className:`${e(bn.txt)} loader`}),o.jsx("div",{className:`${e(bn.icn)} loader`})]},`tb-${t+3}`))]})}const bn={wrp:{mx:10,my:10},lnk:{w:140,h:10,brs:4},titl:{w:220,h:22,brs:5,my:10},t_wrp:{ml:10,my:10,flx:"between",w:"98%"},icn:{w:132,h:30,brs:10},txt:{h:15,w:90,brs:6}},Vn={elmSettings:{bd:"var(--white-100)",h:"100%",w:"var(--bf-right-panel-width, 400px)",mnw:"var(--bf-right-panel-width, 400px)",mr:0,fs:18,bl:"1px solid var(--bf-stroke-clr)",pn:"relative",tn:"width 0.3s ease, min-width 0.3s ease"},elmSettingsCollapsed:{w:0,mnw:0},toggleButton:{pn:"absolute",lt:"-20px",tp:"50%",tm:"translateY(-50%)",zx:100,w:20,h:45,p:2,bd:"var(--white-100)",b:"1px solid var(--bf-stroke-clr)",br:"none",brs:"30px 0 0 30px",cr:"var(--bf-text-clr-gray)",dy:"flex","align-items":"center","justify-content":"center",cur:"pointer",tn:"all 0.2s ease",":hover":{cr:"var(--bf-text-clr-dark)",bd:"var(--bf-bg-hover)",bs:"-2px 0 6px rgba(0, 0, 0, 0.15)","& svg":{mr:-10}},":active":{tm:"translateY(-50%) scale(0.95)"}},toggleIcon:{tn:"transform 0.3s ease",tm:"rotate(270deg) !important",mr:-6},toggleIconRotated:{tm:"rotate(90deg) !important"}},q2=$t(()=>Ke(()=>import("./bf-399-171.js"),__vite__mapDeps([55,1,2,41,40,7,56,4,5,8,9,10,11,12,13,57,3,6,14,26,58,16,17,59,45,60,19,61,62,51,15,18,20,21,22,23,24,25,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ro,{})}),Y2=$t(()=>Ke(()=>import("./bf-329-172.js"),__vite__mapDeps([63,1,2,8,4,5,9,10,11,12,13,64,56,57,3,6,7,14,26,58,16,17,59,19,60,61,45,65,51,15,18,20,21,22,23,24,25,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ro,{})}),Z2=$t(()=>Ke(()=>import("./bf-214-173.js"),__vite__mapDeps([66,1,2,56,4,5,8,9,10,11,12,13,57,3,6,7,14,26,58,16,17,59,45,65,15,18,19,20,21,22,23,24,25,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ro,{})}),X2=$t(()=>Ke(()=>import("./bf-191-174.js"),__vite__mapDeps([67,1,2,8,4,5,9,10,11,12,13,64,68,56,57,3,6,7,14,26,45,16,17,15,18,19,20,21,22,23,24,25,27,28,29,30,31]),import.meta.url),{fallback:o.jsx(ar,{})});function J2({style:e,styleDispatch:n,isCollapsed:t,onToggle:r}){const{pathname:i}=Mi(),{formID:s,"*":a}=me(),l=(a==null?void 0:a.split("/")[0])||"themes",{css:d}=re(),f=ie(Ds);q(nt),N.useEffect(()=>{var p,h;const c=(h=(p=vr(".right-bar-panel"))==null?void 0:p.firstChild)==null?void 0:h.firstChild;c&&c.scrollTop>0&&(c.scrollTop=0)},[l]);const u=({target:{scrollTop:c}})=>c>20?f(!0):f(!1);return o.jsxs("div",{id:"theme-style-menu",className:d(Vn.elmSettings,t?Vn.elmSettingsCollapsed:{}),children:[o.jsx("button",{className:d(Vn.toggleButton),onClick:r,"aria-label":t?"Show right panel":"Hide right panel",title:t?"Show right panel":"Hide right panel",children:o.jsx(Ri,{size:18,className:d(Vn.toggleIcon,t?Vn.toggleIconRotated:{})})}),o.jsx("div",{className:"right-bar-panel",children:o.jsxs(Hs.Scrollbars,{onScroll:u,autoHide:!0,children:[o.jsx(Bi,{resetKey:i,children:o.jsxs(Vs,{children:[o.jsx(St,{path:"themes",element:o.jsx(X2,{})}),o.jsx(St,{path:"theme-customize/:element",element:o.jsx(Y2,{})}),o.jsx(St,{path:"theme-customize/multi-step/:element",element:o.jsx(Z2,{})}),o.jsx(St,{path:"field-theme-customize/:element/:fieldKey",element:o.jsx(q2,{})})]})}),o.jsx("div",{className:"mb-50"})]})})]})}const Q2={stripe:"Stripe",paypal:"PayPal",razorpay:"Razorpay",mollie:"Mollie"},e_={recaptcha:{title:m("Set Google reCAPTCHA v2 Keys"),subTitle:m("reCAPTCHA needs a Site Key and Secret Key before this field can be used.")},turnstile:{title:m("Set Cloudflare Turnstile Keys"),subTitle:m("Turnstile needs a Site Key and Secret Key before this field can be used.")},hcaptcha:{title:m("Set hCaptcha Keys"),subTitle:m("hCaptcha needs a Site Key and Secret Key before this field can be used.")},stripe:{title:m("Configure Stripe"),subTitle:m("Stripe must be configured before this field can be used.")},paypal:{title:m("Configure PayPal"),subTitle:m("PayPal must be configured before this field can be used.")},razorpay:{title:m("Configure Razorpay"),subTitle:m("Razorpay must be configured before this field can be used.")},mollie:{title:m("Configure Mollie"),subTitle:m("Mollie must be configured before this field can be used.")},address:{title:m("Set Address Autocomplete API Key"),subTitle:m("Your Address field uses Google/Mapbox autocomplete, which needs an API key before the form can be saved.")}};function t_(){const[e,n]=q(Wl),{fieldType:t}=e,r=()=>n({show:!1,fieldType:"",onConfigured:null}),i=()=>{var l;(l=e.onConfigured)==null||l.call(e),r()},s=()=>{switch(t){case"recaptcha":return o.jsx(vc,{ver:"v2",inModal:!0,onSaved:i});case"turnstile":return o.jsx(xc,{inModal:!0,onSaved:i});case"hcaptcha":return o.jsx(gc,{inModal:!0,onSaved:i});case"stripe":case"paypal":case"razorpay":case"mollie":return o.jsx(mc,{type:Q2[t],inModal:!0,onSaved:i});case"address":return o.jsx($c,{onSaved:i});default:return null}},a=e_[t]||{};return o.jsx(Ps,{lg:!0,show:e.show,setModal:r,title:a.title,subTitle:a.subTitle,children:o.jsx("div",{className:"mt-1 px-1",children:e.show&&s()})})}function n_(){const e=ce(Gl);return e!=null&&e.CSS?o.jsx("style",{"data-bf-custom-css":!0,children:e.CSS}):null}const hn={formBuilderContainer:{h:"calc(100vh - var(--bf-nav-height))",bd:"var(--bf-bg-offwhite)",dy:"flex",fd:"row"},containerWrapper:{mx:"var(--bf-space-7)"},centerColumn:{tn:"width 0.3s ease, min-width 0.3s ease"},builderGridWrapper:{h:"calc(100vh - var(--bf-nav-height) - var(--bf-option-toolbar-height))",py:"var(--bf-space-7)"},gridContainer:{brs:"var(--bf-bdr-radius-md)",bd:"var(--bf-bg-white)",h:"100%",p:"var(--bf-space-7)",b:"1px solid var(--bf-stroke-clr)"},gridRenderPortal:{w:"100%",h:"100%",m:"3px auto auto",ow:"hidden"}},r_=$t(()=>Ke(()=>import("./bf-73-175.js").then(e=>e.G),__vite__mapDeps([69,1,2,4,5,43,8,9,10,11,12,13,70,45,71]),import.meta.url),{fallback:o.jsx(Va,{})}),i_=(e,n)=>{if(n.brkPoint==="lg")return Gr(e,n.apply),sessionStorage.setItem("btcd-fs",Ur(Ct.sheet(e))),S({},e);if(n.brkPoint==="md"){const t=e["@media only screen and (max-width:600px)"]||e["@media only screen and (max-width: 600px)"];return Gr(t,n.apply),sessionStorage.setItem("btcd-fs",Ur(Ct.sheet(e))),S({},e)}if(n.brkPoint==="sm"){const t=e["@media only screen and (max-width:400px)"]||e["@media only screen and (max-width: 400px)"];return Gr(t,n.apply),sessionStorage.setItem("btcd-fs",Ur(Ct.sheet(e))),S({},e)}return n.type==="init"?n.v1Style:e},o_=({isLoading:e})=>{q(zs);const n=ce(Bs),{element:t,fieldKey:r,formType:i,formID:s}=me(),{styleMode:a}=ce(Or),l=i!=="edit",d=l?n:s,[f,u]=N.useState(null),[c,p]=q(nt),[h,x]=q(Yl);ce(Mr);const[$,y]=N.useReducer(i_,Yh(d)),[I,T]=N.useState(!l),[w,_]=N.useState(!1),[g,b]=q(Ai),[j,E]=q(Oi),O=ie(yn),L=ie(ws),H=ie(Ss),C=ie(ys),M=ie(tc),k=ie(Fs),F=ce(be),D=N.useRef(null),z=N.useRef(!1),[V,se]=N.useState(window.innerWidth),{GRID_PADDING:Re,toggleLeftPanel:mt,toggleRightPanel:En,getCenterWidth:on,getCalculatedGridWidth:Te,isLeftCollapsed:Nt,isRightCollapsed:Fe}=nc(),[Ut,J]=N.useState(()=>Te(V,a)),[G,je]=N.useState(()=>on(V,a)),{css:ge}=re();oc(["bitforms_form_helpers_state",d],{formID:d},{fetchCondition:!l,onSuccess:R=>{T(!1),Ul(F)&&at(R)}}),N.useEffect(()=>{z.current=!0,J(Te(V,a)),je(on(V,a)),setTimeout(()=>{z.current=!1},100)},[Nt,Fe,a,V]),N.useEffect(()=>{let R;const Z=()=>{clearTimeout(R),R=setTimeout(()=>{se(window.innerWidth)},150)};return window.addEventListener("resize",Z),()=>{clearTimeout(R),window.removeEventListener("resize",Z)}},[]);const at=R=>{var lt;const oe=((lt=R==null?void 0:R[0])==null?void 0:lt.builder_helper_state)||{},{themeVars:he,themeColors:Ye,style:De,staticStyles:rt}=oe,Xe=dr.parse(he),ut=dr.parse(Ye),He=dr.parse(De);if(rt){const ct=dr.parse(rt);O(ct)}H(Xe),L(ut),C(He),M({allThemeVars:Xe,allThemeColors:ut,allStyles:He}),b(oe.breakpointSize),k(oe.builderSettings),K({state:{allThemeVars:Xe,allThemeColors:ut,allStyles:He}},!1,0),x(!0)};N.useEffect(()=>{const R=D.current.getResizer(),Z=g[c]||1024;if(c==="lg")R.resizeSection(0,{toSize:0}),R.resizeSection(2,{toSize:0});else if(c==="md"||c==="sm"){const oe=Math.max((G-Z)/2,0);R.resizeSection(0,{toSize:oe}),R.resizeSection(2,{toSize:oe})}D.current.applyResizer(R)},[c,t,r,p,Nt,Fe]);const qe=N.useCallback(()=>{if(!h){if(c==="md"){const R=$["@media only screen and (max-width:600px)"]||$["@media only screen and (max-width: 600px)"];return So($,R)}if(c==="sm"){const R=$["@media only screen and (max-width:400px)"]||$["@media only screen and (max-width: 400px)"];return So($,R)}}return $},[c,h,$]),Y=N.useCallback(R=>u(R),[]),pe=N.useCallback(R=>{},[]),Pe=()=>{_(!0)},ae=()=>{_(!1),z.current=!1},Ne=R=>{z.current||J(R-Re*2)},gt=()=>{const R=S({},j);R.show=!1,E(R)};return o.jsxs(o.Fragment,{children:[o.jsx(Kh,{setBuilderPointerEventNone:_}),o.jsxs("div",{className:ge(hn.formBuilderContainer),children:[o.jsx(N.StrictMode,{children:o.jsx(K2,{style:qe(),styleDispatch:y,formID:d,addNewData:Y,onToggle:mt,isCollapsed:Nt})}),o.jsxs("div",{className:ge(hn.centerColumn),style:{width:G},children:[o.jsx(y1,{}),o.jsx("div",{className:ge(hn.containerWrapper),children:o.jsxs(cn.Container,{ref:D,beforeApplyResizer:pe,afterResizing:ae,onActivate:Pe,children:[o.jsx(cn.Section,{defaultSize:0}),o.jsx(cn.Bar,{className:"bar bar-l"}),o.jsx(cn.Section,{onSizeChanged:Ne,minSize:320,defaultSize:Te(V,a),children:o.jsx(N.StrictMode,{children:o.jsx("div",{className:ge(hn.builderGridWrapper),children:o.jsxs("div",{className:ge(hn.gridContainer),children:[o.jsx(p1,{}),!e&&!I?o.jsxs(Tb,{id:"bit-grid-layout",className:ge(hn.gridRenderPortal),style:{width:Ut,pointerEvents:w?"none":"all",height:"calc(100% - 40px)"},children:[o.jsx(jc,{}),o.jsx(I1,{}),o.jsx(Bi,{children:o.jsx(r_,{style:qe(),gridWidth:Ut,newData:f,setNewData:u,formType:i,formID:d,setAlertMdl:E})}),o.jsx(n_,{})]}):o.jsx(Va,{})]})})})}),o.jsx(cn.Bar,{className:"bar bar-r"}),o.jsx(cn.Section,{defaultSize:0})]})})]}),a&&o.jsx(N.StrictMode,{children:o.jsx(J2,{style:qe(),styleDispatch:y,formID:d,isCollapsed:Fe,onToggle:En})})]}),o.jsx(Kl,{className:"custom-conf-mdl",mainMdlCls:"o-v",btnClass:"red",btnTxt:"Close",show:j.show,cancelBtn:j.cancelBtn,close:gt,action:gt,children:o.jsx("div",{className:"txt-center",children:j.msg})}),o.jsx(ql,{}),o.jsx(t_,{})]})};var M_=Object.freeze({__proto__:null,default:o_});export{u2 as $,e2 as A,hr as B,a2 as C,gs as D,T1 as E,ar as F,h2 as G,qa as H,$2 as I,d2 as J,l2 as K,x2 as L,g2 as M,y2 as N,f2 as O,S2 as P,v2 as Q,I2 as R,It as S,A2 as T,B2 as U,Ib as V,L2 as W,j2 as X,s2 as Y,z2 as Z,E2 as _,P2 as a,O2 as a0,Wa as a1,k1 as a2,_n as a3,dh as a4,N_ as a5,hs as a6,_s as a7,Ga as a8,M_ as a9,t2 as b,o1 as c,c1 as d,l1 as e,Ti as f,no as g,d1 as h,E_ as i,Ua as j,Ka as k,r1 as l,T_ as m,hh as n,_h as o,p2 as p,N2 as q,_2 as r,ps as s,T2 as t,k2 as u,b2 as v,c2 as w,C2 as x,M2 as y,w2 as z};
1450