var wl=Object.defineProperty,_l=Object.defineProperties;var $l=Object.getOwnPropertyDescriptors;var lr=Object.getOwnPropertySymbols;var zo=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var Ao=(e,n,t)=>n in e?wl(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,w=(e,n)=>{for(var t in n||(n={}))zo.call(n,t)&&Ao(e,t,n[t]);if(lr)for(var t of lr(n))Oo.call(n,t)&&Ao(e,t,n[t]);return e},B=(e,n)=>_l(e,$l(n));var cr=(e,n)=>{var t={};for(var r in e)zo.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&&Oo.call(e,r)&&(t[r]=e[r]);return t};import{bn as Yi,br as ue,r as M,j as o,a as ne,ap as ie,i as Y,h as v,_ as y,aH as Ue,an as As,bA as qi,aZ as Kn,a6 as Ii,a7 as lt,aX as he,cl as Jn,cm as Re,b1 as zs,a$ as Os,b0 as Ls,bC as Bs,cn as Sl,aK as Dr,ba as Wt,V as Lo,co as jl,c5 as Zi,bo as Rs,cp as Cl,g as xe,cq as Il,aq as Tl,cr as Bo,cs as Hr,l as ae,be as Ps,ct as kl,f as D,m as me,bG as K,cu as X,cv as W,cw as Nl,cx as Fs,u as le,b2 as Qn,cy as Xi,s as Ml,E as El,cz as Al,cA as Ti,cB as te,cC as we,Q as _n,cD as Xt,cE as nn,bs as Vr,cF as Ds,cG as Hs,F as qe,cH as zl,q as Ji,I as ye,H as Jt,ab as de,k as Vs,c9 as Me,N as Ws,cI as Gs,b4 as $n,cJ as Us,cK as Ro,cL as Po,cM as Qi,bb as $r,cN as Ol,cO as Ll,bd as Sr,cP as ki,cQ as Bl,b5 as eo,cR as An,cS as Fo,cc as Ks,cd as Rl,cT as Ys,aG as Do,cU as Pl,cV as Fl,D as er,am as Dl,b7 as Wr,aI as qs,cW as to,aM as Zs,cX as Ho,a8 as Vo,aj as Hl,cY as Vl,cZ as Wo,ak as Wl,c8 as Ni,a_ as Xs,aY as Gl,as as Go,at as Uo,c_ as Mi,bx as _t,M as Js,b3 as Qs,b9 as jr,c$ as Ul,d0 as Kl,d1 as Ko,d2 as Yo,d3 as Yl,d4 as ql,ca as Zl,d5 as Ei,d6 as vr,d7 as Xl,d8 as Jl,d9 as Ql,da as ec,db as tc,a2 as nc,dc as rc,dd as ic,R as oc,bt as sc,de as ea,df as ac,dg as ta,z as no,A as na,B as kt,ay as qo,aF as lc,b6 as cc,dh as Zo,d as uc,di as dc,dj as ai,dk as li,bB as pc,ar as hc,ax as ur}from"./main-634.js";import{D as Cr,E as fc,C as bc,$ as mc,a as Gr,b as gc,c as ra,S as xc,u as vc,d as yc}from"./bf-400-72.js";import{O as pe,C as ia,S as en,T as ci,a as ui,b as di,c as Xo,d as wc}from"./bf-982-242.js";import{e as Te,S as Ai,k as zn,C as ro,g as io,u as _c}from"./bf-25-81.js";import{b as Q,C as On,$ as zi,S as oa,I as sa,s as wn,a as Jo}from"./bf-486-243.js";import{N as Wn,B as dr,a as $c,S as aa}from"./bf-723-244.js";import{G as it}from"./bf-299-245.js";import{S as Ir,a as ke}from"./bf-497-246.js";import{S as ot,T as Sc}from"./bf-534-247.js";import{B as Qo,a as Ln}from"./bf-962-248.js";import{S as jc,a as Cc,D as Ic,b as Tc,c as kc}from"./bf-343-249.js";import{L as la,T as ca,M as ua}from"./bf-791-250.js";import{P as Nc}from"./bf-641-107.js";import{F as Mc}from"./bf-570-251.js";import{A as Ec,a as Ac,P as zc,H as Oc,T as Lc,G as Bc}from"./bf-838-80.js";import{D as Rc}from"./bf-284-252.js";import{R as Pc}from"./bf-17-106.js";import{U as es}from"./bf-671-253.js";import{R as Fc}from"./bf-334-254.js";var Zt={},Ur={};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var Oi=function(e,n){return Oi=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])},Oi(e,n)};function L(e,n){Oi(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}function Sn(e){return typeof e=="function"}var ts=!1,dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e)var n=new Error;ts=e},get useDeprecatedSynchronousErrorHandling(){return ts}};function vn(e){setTimeout(function(){throw e},0)}var Tr={closed:!0,next:function(e){},error:function(e){if(dt.useDeprecatedSynchronousErrorHandling)throw e;vn(e)},complete:function(){}},Ke=function(){return Array.isArray||function(e){return e&&typeof e.length=="number"}}();function oo(e){return e!==null&&typeof e=="object"}var Dc=function(){function e(n){return Error.call(this),this.message=n?n.length+` errors occurred during unsubscription:
`+n.map(function(t,r){return r+1+") "+t.toString()}).join(`
  `):"",this.name="UnsubscriptionError",this.errors=n,this}return e.prototype=Object.create(Error.prototype),e}(),Gn=Dc,ge=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 c=r[l];c.remove(this)}if(Sn(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(d){n=d instanceof Gn?ns(d.errors):[d]}}if(Ke(a))for(var l=-1,h=a.length;++l<h;){var u=a[l];if(oo(u))try{u.unsubscribe()}catch(m){n=n||[],m instanceof Gn?n=n.concat(ns(m.errors)):n.push(m)}}if(n)throw new Gn(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 ns(e){return e.reduce(function(n,t){return n.concat(t instanceof Gn?t.errors:t)},[])}var kr=function(){return typeof Symbol=="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),U=function(e){L(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=Tr;break;case 1:if(!t){s.destination=Tr;break}if(typeof t=="object"){t instanceof n?(s.syncErrorThrowable=t.syncErrorThrowable,s.destination=t,t.add(s)):(s.syncErrorThrowable=!0,s.destination=new rs(s,t));break}default:s.syncErrorThrowable=!0,s.destination=new rs(s,t,r,i);break}return s}return n.prototype[kr]=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}(ge),rs=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this)||this;a._parentSubscriber=t;var l,c=a;return Sn(r)?l=r:r&&(l=r.next,i=r.error,s=r.complete,r!==Tr&&(c=Object.create(r),Sn(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,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;!dt.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=dt.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):vn(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;vn(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)};!dt.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(),dt.useDeprecatedSynchronousErrorHandling)throw i;vn(i)}},n.prototype.__tryOrSetError=function(t,r,i){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{r.call(this._context,i)}catch(s){return dt.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(vn(s),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n}(U);function so(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 Hc(e,n,t){if(e){if(e instanceof U)return e;if(e[kr])return e[kr]()}return!e&&!n&&!t?new U(Tr):new U(e,n,t)}var kn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Gt(e){return e}function Li(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return da(e)}function da(e){return e.length===0?Gt:e.length===1?e[0]:function(t){return e.reduce(function(r,i){return i(r)},t)}}var ee=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=Hc(n,t,r);if(i?s.add(i.call(s,this.source)):s.add(this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.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){dt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),so(n)&&n.error(t)}},e.prototype.forEach=function(n,t){var r=this;return t=is(t),new t(function(i,s){var a;a=r.subscribe(function(l){try{n(l)}catch(c){s(c),a&&a.unsubscribe()}},s,i)})},e.prototype._subscribe=function(n){var t=this.source;return t&&t.subscribe(n)},e.prototype[kn]=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:da(n)(this)},e.prototype.toPromise=function(n){var t=this;return n=is(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 is(e){if(e||(e=dt.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var Vc=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),Vt=Vc,pa=function(e){L(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}(ge),ha=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.destination=t,r}return n}(U),Ee=function(e){L(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[kr]=function(){return new ha(this)},n.prototype.lift=function(t){var r=new os(this,this);return r.operator=t,r},n.prototype.next=function(t){if(this.closed)throw new Vt;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 Vt;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 Vt;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 Vt;return e.prototype._trySubscribe.call(this,t)},n.prototype._subscribe=function(t){if(this.closed)throw new Vt;return this.hasError?(t.error(this.thrownError),ge.EMPTY):this.isStopped?(t.complete(),ge.EMPTY):(this.observers.push(t),new pa(this,t))},n.prototype.asObservable=function(){var t=new ee;return t.source=this,t},n.create=function(t,r){return new os(t,r)},n}(ee),os=function(e){L(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):ge.EMPTY},n}(Ee);function ao(){return function(n){return n.lift(new Wc(n))}}var Wc=function(){function e(n){this.connectable=n}return e.prototype.call=function(n,t){var r=this.connectable;r._refCount++;var i=new Gc(n,r),s=t.subscribe(i);return i.closed||(i.connection=r.connect()),s},e}(),Gc=function(e){L(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),fa=function(e){L(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 ge,t.add(this.source.subscribe(new Kc(this.getSubject(),this))),t.closed&&(this._connection=null,t=ge.EMPTY)),t},n.prototype.refCount=function(){return ao()(this)},n}(ee),Uc=function(){var e=fa.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}}}(),Kc=function(e){L(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}(ha);function Yc(e,n,t,r){return function(i){return i.lift(new qc(e,n,t,r))}}var qc=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 Zc(n,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),Zc=function(e){L(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(h){this.error(h)}else a=t;if(!s){s=this.subjectSelector?this.subjectSelector():new Ee,i.set(r,s);var l=new Bi(r,s,this);if(this.destination.next(l),this.durationSelector){var c=void 0;try{c=this.durationSelector(new Bi(r,s))}catch(h){this.error(h);return}this.add(c.subscribe(new Xc(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),Xc=function(e){L(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),Bi=function(e){L(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 ge,i=this,s=i.refCountSubscription,a=i.groupSubject;return s&&!s.closed&&r.add(new Jc(s)),r.add(a.subscribe(t)),r},n}(ee),Jc=function(e){L(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}(ge),ba=function(e){L(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 Vt;return this._value},n.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},n}(Ee),Qc=function(e){L(n,e);function n(t,r){return e.call(this)||this}return n.prototype.schedule=function(t,r){return this},n}(ge),tr=function(e){L(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}(Qc),eu=function(e){L(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),Ri=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){L(n,e);function n(t,r){r===void 0&&(r=Ri.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}(Ri),tu=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(nr),ma=new tu(eu),ga=ma,jn=new ee(function(e){return e.complete()});function Nn(e){return e?nu(e):jn}function nu(e){return new ee(function(n){return e.schedule(function(){return n.complete()})})}function st(e){return e&&typeof e.schedule=="function"}var xa=function(e){return function(n){for(var t=0,r=e.length;t<r&&!n.closed;t++)n.next(e[t]);n.complete()}};function lo(e,n){return new ee(function(t){var r=new ge,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?lo(e,n):new ee(xa(e))}function Kr(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return st(t)?(e.pop(),lo(e,t)):rr(e)}function co(e,n){return n?new ee(function(t){return n.schedule(ru,0,{error:e,subscriber:t})}):new ee(function(t){return t.error(e)})}function ru(e){var n=e.error,t=e.subscriber;t.error(n)}var Pi;Pi||(Pi={});var Nt=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 Kr(this.value);case"E":return co(this.error);case"C":return Nn()}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 iu(e,n){return n===void 0&&(n=0),function(r){return r.lift(new ou(e,n))}}var ou=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 va(n,this.scheduler,this.delay))},e}(),va=function(e){L(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 su(t,this.destination)))},n.prototype._next=function(t){this.scheduleMessage(Nt.createNext(t))},n.prototype._error=function(t){this.scheduleMessage(Nt.createError(t)),this.unsubscribe()},n.prototype._complete=function(){this.scheduleMessage(Nt.createComplete()),this.unsubscribe()},n}(U),su=function(){function e(n,t){this.notification=n,this.destination=t}return e}(),uo=function(e){L(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 au(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 Vt;if(this.isStopped||this.hasError?l=ge.EMPTY:(this.observers.push(t),l=new pa(this,t)),s&&t.add(t=new va(t,s)),r)for(var c=0;c<a&&!t.closed;c++)t.next(i[c]);else for(var c=0;c<a&&!t.closed;c++)t.next(i[c].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),l},n.prototype._getNow=function(){return(this.scheduler||ga).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}(Ee),au=function(){function e(n,t){this.time=n,this.value=t}return e}(),Mn=function(e){L(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),ge.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),ge.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}(Ee),lu=1,cu=function(){return Promise.resolve()}(),Fi={};function ss(e){return e in Fi?(delete Fi[e],!0):!1}var as={setImmediate:function(e){var n=lu++;return Fi[n]=!0,cu.then(function(){return ss(n)&&e()}),n},clearImmediate:function(e){ss(e)}},uu=function(e){L(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=as.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&&(as.clearImmediate(r),t.scheduled=void 0)},n}(tr),du=function(e){L(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),ya=new du(uu),yr=ya,wa=new nr(tr),Ye=wa,pu=function(e){L(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),hu=function(e){L(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),_a=new hu(pu),fu=_a,bu=function(e){L(n,e);function n(t,r){t===void 0&&(t=$a),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),$a=function(e){L(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 wt(){}function mu(e){return!!e&&(e instanceof ee||typeof e.lift=="function"&&typeof e.subscribe=="function")}var gu=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}(),Cn=gu,xu=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=xu,vu=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}(),Sa=vu;function pt(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 yu(e,n))}}var yu=function(){function e(n,t){this.project=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new wu(n,this.project,this.thisArg))},e}(),wu=function(e){L(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 ja(e,n,t){if(n)if(st(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return ja(e,t).apply(void 0,r).pipe(pt(function(s){return Ke(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 ee(function(c){if(t){var u={args:r,subscriber:c,params:l};return t.schedule(_u,0,u)}else{if(!a){a=new Mn;var h=function(){for(var d=[],m=0;m<arguments.length;m++)d[m]=arguments[m];a.next(d.length<=1?d[0]:d),a.complete()};try{e.apply(s,r.concat([h]))}catch(d){so(a)&&a.error(d)}}return a.subscribe(c)}})}}function _u(e){var n=this,t=e.args,r=e.subscriber,i=e.params,s=i.callbackFunc,a=i.context,l=i.scheduler,c=i.subject;if(!c){c=i.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.length<=1?u[0]:u;n.add(l.schedule($u,0,{value:m,subject:c}))};try{s.apply(a,t.concat([h]))}catch(u){c.error(u)}}this.add(c.subscribe(r))}function $u(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function Ca(e,n,t){if(n)if(st(n))t=n;else return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return Ca(e,t).apply(void 0,r).pipe(pt(function(s){return Ke(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 ee(function(a){var l=s.context,c=s.subject;if(t)return t.schedule(Su,0,{params:s,subscriber:a,context:l});if(!c){c=s.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.shift();if(m){c.error(m);return}c.next(u.length<=1?u[0]:u),c.complete()};try{e.apply(l,r.concat([h]))}catch(u){so(c)&&c.error(u)}}return c.subscribe(a)})}}function Su(e){var n=this,t=e.params,r=e.subscriber,i=e.context,s=t.callbackFunc,a=t.args,l=t.scheduler,c=t.subject;if(!c){c=t.subject=new Mn;var h=function(){for(var u=[],d=0;d<arguments.length;d++)u[d]=arguments[d];var m=u.shift();if(m)n.add(l.schedule(ls,0,{err:m,subject:c}));else{var _=u.length<=1?u[0]:u;n.add(l.schedule(ju,0,{value:_,subject:c}))}};try{s.apply(i,a.concat([h]))}catch(u){this.add(l.schedule(ls,0,{err:u,subject:c}))}}this.add(c.subscribe(r))}function ju(e){var n=e.value,t=e.subject;t.next(n),t.complete()}function ls(e){var n=e.err,t=e.subject;t.error(n)}var an=function(e){L(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),Cu=function(e){L(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),Iu=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,vn),n}};function Tu(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ut=Tu(),ku=function(e){return function(n){var t=e[Ut]();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}},Nu=function(e){return function(n){var t=e[kn]();if(typeof t.subscribe!="function")throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(n)}},Ia=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function Ta(e){return!!e&&typeof e.subscribe!="function"&&typeof e.then=="function"}var Yn=function(e){if(e&&typeof e[kn]=="function")return Nu(e);if(Ia(e))return xa(e);if(Ta(e))return Iu(e);if(e&&typeof e[Ut]=="function")return ku(e);var n=oo(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 At(e,n,t,r,i){if(i===void 0&&(i=new Cu(e,t,r)),!i.closed)return n instanceof ee?n.subscribe(i):Yn(n)(i)}var cs={};function Mu(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=void 0,r=void 0;return st(e[e.length-1])&&(r=e.pop()),typeof e[e.length-1]=="function"&&(t=e.pop()),e.length===1&&Ke(e[0])&&(e=e[0]),rr(e,r).lift(new po(t))}var po=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Eu(n,this.resultSelector))},e}(),Eu=function(e){L(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(cs),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(At(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===cs?--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}(an);function Au(e,n){return new ee(function(t){var r=new ge;return r.add(n.schedule(function(){var i=e[kn]();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 zu(e,n){return new ee(function(t){var r=new ge;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 Ou(e,n){if(!e)throw new Error("Iterable cannot be null");return new ee(function(t){var r=new ge,i;return r.add(function(){i&&typeof i.return=="function"&&i.return()}),r.add(n.schedule(function(){i=e[Ut](),r.add(n.schedule(function(){if(!t.closed){var s,a;try{var l=i.next();s=l.value,a=l.done}catch(c){t.error(c);return}a?t.complete():(t.next(s),this.schedule())}}))})),r})}function Lu(e){return e&&typeof e[kn]=="function"}function Bu(e){return e&&typeof e[Ut]=="function"}function ka(e,n){if(e!=null){if(Lu(e))return Au(e,n);if(Ta(e))return zu(e,n);if(Ia(e))return lo(e,n);if(Bu(e)||typeof e=="string")return Ou(e,n)}throw new TypeError((e!==null&&typeof e||e)+" is not observable")}function zt(e,n){return n?ka(e,n):e instanceof ee?e:new ee(Yn(e))}var _e=function(e){L(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),$e=function(e){L(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 ee)return e.subscribe(n);var t;try{t=Yn(e)(n)}catch(r){n.error(r)}return t}}function rn(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?function(r){return r.pipe(rn(function(i,s){return zt(e(i,s)).pipe(pt(function(a,l){return n(i,a,s,l)}))},t))}:(typeof n=="number"&&(t=n),function(r){return r.lift(new Ru(e,t))})}var Ru=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 Pu(n,this.project,this.concurrent))},e}(),Pu=function(e){L(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 _e(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}($e),Fu=rn;function ho(e){return e===void 0&&(e=Number.POSITIVE_INFINITY),rn(Gt,e)}function Na(){return ho(1)}function qn(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Na()(Kr.apply(void 0,e))}function fo(e){return new ee(function(n){var t;try{t=e()}catch(i){n.error(i);return}var r=t?zt(t):Nn();return r.subscribe(n)})}function Du(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1){var t=e[0];if(Ke(t))return pr(t,null);if(oo(t)&&Object.getPrototypeOf(t)===Object.prototype){var r=Object.keys(t);return pr(r.map(function(s){return t[s]}),r)}}if(typeof e[e.length-1]=="function"){var i=e.pop();return e=e.length===1&&Ke(e[0])?e[0]:e,pr(e,null).pipe(pt(function(s){return i.apply(void 0,s)}))}return pr(e,null)}function pr(e,n){return new ee(function(t){var r=e.length;if(r===0){t.complete();return}for(var i=new Array(r),s=0,a=0,l=function(h){var u=zt(e[h]),d=!1;t.add(u.subscribe({next:function(m){d||(d=!0,a++),i[h]=m},error:function(m){return t.error(m)},complete:function(){s++,(s===r||!d)&&(a===r&&t.next(n?n.reduce(function(m,_,S){return m[_]=i[S],m},{}):i),t.complete())}}))},c=0;c<r;c++)l(c)})}function Ma(e,n,t,r){return Sn(t)&&(r=t,t=void 0),r?Ma(e,n,t).pipe(pt(function(i){return Ke(i)?r.apply(void 0,i):r(i)})):new ee(function(i){function s(a){arguments.length>1?i.next(Array.prototype.slice.call(arguments)):i.next(a)}Ea(e,n,s,i,t)})}function Ea(e,n,t,r,i){var s;if(Wu(e)){var a=e;e.addEventListener(n,t,i),s=function(){return a.removeEventListener(n,t,i)}}else if(Vu(e)){var l=e;e.on(n,t),s=function(){return l.off(n,t)}}else if(Hu(e)){var c=e;e.addListener(n,t),s=function(){return c.removeListener(n,t)}}else if(e&&e.length)for(var h=0,u=e.length;h<u;h++)Ea(e[h],n,t,r,i);else throw new TypeError("Invalid event target");r.add(s)}function Hu(e){return e&&typeof e.addListener=="function"&&typeof e.removeListener=="function"}function Vu(e){return e&&typeof e.on=="function"&&typeof e.off=="function"}function Wu(e){return e&&typeof e.addEventListener=="function"&&typeof e.removeEventListener=="function"}function Aa(e,n,t){return t?Aa(e,n).pipe(pt(function(r){return Ke(r)?t.apply(void 0,r):t(r)})):new ee(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(Sn(n))return function(){return n(i,s)}})}function Gu(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||Gt,i=l.scheduler}else r===void 0||st(r)?(a=e,s=Gt,i=r):(a=e,s=r);return new ee(function(c){var h=a;if(i)return i.schedule(Uu,0,{subscriber:c,iterate:t,condition:n,resultSelector:s,state:h});do{if(n){var u=void 0;try{u=n(h)}catch(m){c.error(m);return}if(!u){c.complete();break}}var d=void 0;try{d=s(h)}catch(m){c.error(m);return}if(c.next(d),c.closed)break;try{h=t(h)}catch(m){c.error(m);return}}while(!0)})}function Uu(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 Ku(e,n,t){return n===void 0&&(n=jn),t===void 0&&(t=jn),fo(function(){return e()?n:t})}function In(e){return!Ke(e)&&e-parseFloat(e)+1>=0}function Yu(e,n){return e===void 0&&(e=0),n===void 0&&(n=Ye),(!In(e)||e<0)&&(e=0),(!n||typeof n.schedule!="function")&&(n=Ye),new ee(function(t){return t.add(n.schedule(qu,e,{subscriber:t,counter:0,period:e})),t})}function qu(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 za(){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 st(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 ee?e[0]:ho(t)(rr(e,r))}var Oa=new ee(wt);function Zu(){return Oa}function Di(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===0)return jn;var t=e[0],r=e.slice(1);return e.length===1&&Ke(t)?Di.apply(void 0,t):new ee(function(i){var s=function(){return i.add(Di.apply(void 0,r).subscribe(i))};return zt(t).subscribe({next:function(a){i.next(a)},error:s,complete:s})})}function Xu(e,n){return n?new ee(function(t){var r=Object.keys(e),i=new ge;return i.add(n.schedule(Ju,0,{keys:r,index:0,subscriber:t,subscription:i,obj:e})),i}):new ee(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 Ju(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 La(e,n){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=e,t.thisArg=n,t}function Kt(e,n){return function(r){return r.lift(new Qu(e,n))}}var Qu=function(){function e(n,t){this.predicate=n,this.thisArg=t}return e.prototype.call=function(n,t){return t.subscribe(new ed(n,this.predicate,this.thisArg))},e}(),ed=function(e){L(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 td(e,n,t){return[Kt(n,t)(new ee(Yn(e))),Kt(La(n,t))(new ee(Yn(e)))]}function Ba(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length===1)if(Ke(e[0]))e=e[0];else return e[0];return rr(e,void 0).lift(new nd)}var nd=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new rd(n))},e}(),rd=function(e){L(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=At(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}(an);function id(e,n,t){return e===void 0&&(e=0),new ee(function(r){n===void 0&&(n=e,e=0);var i=0,s=e;if(t)return t.schedule(od,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 od(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 Ra(e,n,t){e===void 0&&(e=0);var r=-1;return In(n)?r=Number(n)<1&&1||Number(n):st(n)&&(t=n),st(t)||(t=Ye),new ee(function(i){var s=In(e)?e:+e-t.now();return t.schedule(sd,s,{index:0,period:r,subscriber:i})})}function sd(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 ad(e,n){return new ee(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?zt(i):jn,a=s.subscribe(t);return function(){a.unsubscribe(),r&&r.unsubscribe()}})}function Pa(){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 Fa(t))}var Fa=function(){function e(n){this.resultSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new ld(n,this.resultSelector))},e}(),ld=function(e){L(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;Ke(t)?r.push(new ud(t)):typeof t[Ut]=="function"?r.push(new cd(t[Ut]())):r.push(new dd(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,c=[],s=0;s<r;s++){var a=t[s],h=a.next();if(a.hasCompleted()&&(l=!0),h.done){i.complete();return}c.push(h.value)}this.resultSelector?this._tryresultSelector(c):i.next(c),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),cd=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}(),ud=function(){function e(n){this.array=n,this.index=0,this.length=0,this.length=n.length}return e.prototype[Ut]=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}(),dd=function(e){L(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[Ut]=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 _e(this))},n}($e),pd=Object.freeze({__proto__:null,ArgumentOutOfRangeError:Cn,AsyncSubject:Mn,BehaviorSubject:ba,ConnectableObservable:fa,EMPTY:jn,EmptyError:ir,GroupedObservable:Bi,NEVER:Oa,Notification:Nt,get NotificationKind(){return Pi},ObjectUnsubscribedError:Vt,Observable:ee,ReplaySubject:uo,Scheduler:Ri,Subject:Ee,Subscriber:U,Subscription:ge,TimeoutError:Sa,UnsubscriptionError:Gn,VirtualAction:$a,VirtualTimeScheduler:bu,animationFrame:fu,animationFrameScheduler:_a,asap:yr,asapScheduler:ya,async:Ye,asyncScheduler:wa,bindCallback:ja,bindNodeCallback:Ca,combineLatest:Mu,concat:qn,config:dt,defer:fo,empty:Nn,forkJoin:Du,from:zt,fromEvent:Ma,fromEventPattern:Aa,generate:Gu,identity:Gt,iif:Ku,interval:Yu,isObservable:mu,merge:za,never:Zu,noop:wt,observable:kn,of:Kr,onErrorResumeNext:Di,pairs:Xu,partition:td,pipe:Li,queue:ga,queueScheduler:ma,race:Ba,range:id,scheduled:ka,throwError:co,timer:Ra,using:ad,zip:Pa}),bo=Yi(pd);function Da(e){return function(t){return t.lift(new hd(e))}}var hd=function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new fd(n,this.durationSelector))},e}(),fd=function(e){L(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 _e(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}($e);function bd(e,n){return n===void 0&&(n=Ye),Da(function(){return Ra(e,n)})}function md(e){return function(t){return t.lift(new gd(e))}}var gd=function(){function e(n){this.closingNotifier=n}return e.prototype.call=function(n,t){return t.subscribe(new xd(n,this.closingNotifier))},e}(),xd=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.buffer=[],i.add(Se(r,new _e(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}($e);function vd(e,n){return n===void 0&&(n=null),function(r){return r.lift(new yd(e,n))}}var yd=function(){function e(n,t){this.bufferSize=n,this.startBufferEvery=t,!t||n===t?this.subscriberClass=wd:this.subscriberClass=_d}return e.prototype.call=function(n,t){return t.subscribe(new this.subscriberClass(n,this.bufferSize,this.startBufferEvery))},e}(),wd=function(e){L(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),_d=function(e){L(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 c=a.length;c--;){var h=a[c];h.push(t),h.length===i&&(a.splice(c,1),this.destination.next(h))}},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 $d(e){var n=arguments.length,t=Ye;st(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 Sd(e,r,i,t))}}var Sd=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 Cd(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),jd=function(){function e(){this.buffer=[]}return e}(),Cd=function(e){L(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 c=l.openContext();if(l.timespanOnly=i==null||i<0,l.timespanOnly){var h={subscriber:l,context:c,bufferTimeSpan:r};l.add(c.closeAction=a.schedule(us,r,h))}else{var u={subscriber:l,context:c},d={bufferTimeSpan:r,bufferCreationInterval:i,subscriber:l,scheduler:a};l.add(c.closeAction=a.schedule(Ha,r,u)),l.add(a.schedule(Id,i,d))}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],c=l.buffer;c.push(t),c.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(us,i,s))}},n.prototype.openContext=function(){var t=new jd;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 us(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 Id(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(Ha,t,{subscriber:r,context:s})),a.schedule(e,n))}function Ha(e){var n=e.subscriber,t=e.context;n.closeContext(t)}function Td(e,n){return function(r){return r.lift(new kd(e,n))}}var kd=function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new Nd(n,this.openings,this.closingSelector))},e}(),Nd=function(e){L(n,e);function n(t,r,i){var s=e.call(this,t)||this;return s.closingSelector=i,s.contexts=[],s.add(At(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 ge,a={buffer:i,subscription:s};r.push(a);var l=At(this,t,a);!l||l.closed?this.closeBuffer(a):(l.context=a,this.add(l),s.add(l))},n}(an);function Md(e){return function(n){return n.lift(new Ed(e))}}var Ed=function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Ad(n,this.closingSelector))},e}(),Ad=function(e){L(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 ge,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Se(i,new _e(this))),this.subscribing=!1},n}($e);function zd(e){return function(t){var r=new Od(e),i=t.lift(r);return r.caught=i}}var Od=function(){function e(n){this.selector=n}return e.prototype.call=function(n,t){return t.subscribe(new Ld(n,this.selector,this.caught))},e}(),Ld=function(e){L(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 _e(this);this.add(i);var s=Se(r,i);s!==i&&this.add(s)}},n}($e);function Bd(e){return function(n){return n.lift(new po(e))}}function Rd(){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&&Ke(e[0])&&(e=e[0].slice()),function(r){return r.lift.call(zt([r].concat(e)),new po(t))}}function Pd(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(qn.apply(void 0,[t].concat(e)))}}function Va(e,n){return rn(e,n,1)}function Fd(e,n){return Va(function(){return e},n)}function Dd(e){return function(n){return n.lift(new Hd(e,n))}}var Hd=function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Vd(n,this.predicate,this.source))},e}(),Vd=function(e){L(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 Wd(e){return function(n){return n.lift(new Gd(e))}}var Gd=function(){function e(n){this.durationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new Ud(n,this.durationSelector))},e}(),Ud=function(e){L(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 _e(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}($e);function Kd(e,n){return n===void 0&&(n=Ye),function(t){return t.lift(new Yd(e,n))}}var Yd=function(){function e(n,t){this.dueTime=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new qd(n,this.dueTime,this.scheduler))},e}(),qd=function(e){L(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(Zd,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 Zd(e){e.debouncedNext()}function or(e){return e===void 0&&(e=null),function(n){return n.lift(new Xd(e))}}var Xd=function(){function e(n){this.defaultValue=n}return e.prototype.call=function(n,t){return t.subscribe(new Jd(n,this.defaultValue))},e}(),Jd=function(e){L(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 Wa(e){return e instanceof Date&&!isNaN(+e)}function Qd(e,n){n===void 0&&(n=Ye);var t=Wa(e),r=t?+e-n.now():Math.abs(e);return function(i){return i.lift(new ep(r,n))}}var ep=function(){function e(n,t){this.delay=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new tp(n,this.delay,this.scheduler))},e}(),tp=function(e){L(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 np(r.now()+this.delay,t);this.queue.push(i),this.active===!1&&this._schedule(r)}},n.prototype._next=function(t){this.scheduleNotification(Nt.createNext(t))},n.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.scheduleNotification(Nt.createComplete()),this.unsubscribe()},n}(U),np=function(){function e(n,t){this.time=n,this.notification=t}return e}();function rp(e,n){return n?function(t){return new op(t,n).lift(new ds(e))}:function(t){return t.lift(new ds(e))}}var ds=function(){function e(n){this.delayDurationSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new ip(n,this.delayDurationSelector))},e}(),ip=function(e){L(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=At(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}(an),op=function(e){L(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 sp(t,this.source))},n}(ee),sp=function(e){L(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 ap(){return function(n){return n.lift(new lp)}}var lp=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new cp(n))},e}(),cp=function(e){L(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){t.observe(this.destination)},n}(U);function up(e,n){return function(t){return t.lift(new dp(e,n))}}var dp=function(){function e(n,t){this.keySelector=n,this.flushes=t}return e.prototype.call=function(n,t){return t.subscribe(new pp(n,this.keySelector,this.flushes))},e}(),pp=function(e){L(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 _e(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}($e);function Ga(e,n){return function(t){return t.lift(new hp(e,n))}}var hp=function(){function e(n,t){this.compare=n,this.keySelector=t}return e.prototype.call=function(n,t){return t.subscribe(new fp(n,this.compare,this.keySelector))},e}(),fp=function(e){L(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 bp(e,n){return Ga(function(t,r){return n?n(t[e],r[e]):t[e]===r[e]})}function Yr(e){return e===void 0&&(e=xp),function(n){return n.lift(new mp(e))}}var mp=function(){function e(n){this.errorFactory=n}return e.prototype.call=function(n,t){return t.subscribe(new gp(n,this.errorFactory))},e}(),gp=function(e){L(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 xp(){return new ir}function mo(e){return function(n){return e===0?Nn():n.lift(new vp(e))}}var vp=function(){function e(n){if(this.total=n,this.total<0)throw new Cn}return e.prototype.call=function(n,t){return t.subscribe(new yp(n,this.total))},e}(),yp=function(e){L(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 _p(e,n){if(e<0)throw new Cn;var t=arguments.length>=2;return function(r){return r.pipe(Kt(function(i,s){return s===e}),mo(1),t?or(n):Yr(function(){return new Cn}))}}function $p(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return qn(t,Kr.apply(void 0,e))}}function Sp(e,n){return function(t){return t.lift(new jp(e,n,t))}}var jp=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 Cp(n,this.predicate,this.thisArg,this.source))},e}(),Cp=function(e){L(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 Ip(){return function(e){return e.lift(new Tp)}}var Tp=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new kp(n))},e}(),kp=function(e){L(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 _e(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}($e);function Ua(e,n){return n?function(t){return t.pipe(Ua(function(r,i){return zt(e(r,i)).pipe(pt(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new Np(e))}}var Np=function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new Mp(n,this.project))},e}(),Mp=function(e){L(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 _e(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}($e);function Ep(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 Ap(e,n,t))}}var Ap=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 zp(n,this.project,this.concurrent,this.scheduler))},e}(),zp=function(e){L(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},c=this.destination;c.add(this.scheduler.schedule(n.dispatch,0,l))}}catch(h){r.error(h)}}else this.buffer.push(t)},n.prototype.subscribeToProjection=function(t,r,i){this.active++;var s=this.destination;s.add(Se(t,new _e(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}($e);function Op(e){return function(n){return n.lift(new Lp(e))}}var Lp=function(){function e(n){this.callback=n}return e.prototype.call=function(n,t){return t.subscribe(new Bp(n,this.callback))},e}(),Bp=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;return i.add(new ge(r)),i}return n}(U);function Rp(e,n){if(typeof e!="function")throw new TypeError("predicate is not a function");return function(t){return t.lift(new Ka(e,t,!1,n))}}var Ka=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 Pp(n,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),Pp=function(e){L(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(c){this.destination.error(c)}},n.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},n}(U);function Fp(e,n){return function(t){return t.lift(new Ka(e,t,!0,n))}}function Dp(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Kt(function(i,s){return e(i,s,r)}):Gt,mo(1),t?or(n):Yr(function(){return new ir}))}}function Hp(){return function(n){return n.lift(new Vp)}}var Vp=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Wp(n))},e}(),Wp=function(e){L(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n.prototype._next=function(t){},n}(U);function Gp(){return function(e){return e.lift(new Up)}}var Up=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new Kp(n))},e}(),Kp=function(e){L(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 Nr(e){return function(t){return e===0?Nn():t.lift(new Yp(e))}}var Yp=function(){function e(n){if(this.total=n,this.total<0)throw new Cn}return e.prototype.call=function(n,t){return t.subscribe(new qp(n,this.total))},e}(),qp=function(e){L(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 Zp(e,n){var t=arguments.length>=2;return function(r){return r.pipe(e?Kt(function(i,s){return e(i,s,r)}):Gt,Nr(1),t?or(n):Yr(function(){return new ir}))}}function Xp(e){return function(n){return n.lift(new Jp(e))}}var Jp=function(){function e(n){this.value=n}return e.prototype.call=function(n,t){return t.subscribe(new Qp(n,this.value))},e}(),Qp=function(e){L(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 eh(){return function(n){return n.lift(new th)}}var th=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new nh(n))},e}(),nh=function(e){L(n,e);function n(t){return e.call(this,t)||this}return n.prototype._next=function(t){this.destination.next(Nt.createNext(t))},n.prototype._error=function(t){var r=this.destination;r.next(Nt.createError(t)),r.complete()},n.prototype._complete=function(){var t=this.destination;t.next(Nt.createComplete()),t.complete()},n}(U);function Mr(e,n){var t=!1;return arguments.length>=2&&(t=!0),function(i){return i.lift(new rh(e,n,t))}}var rh=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 ih(n,this.accumulator,this.seed,this.hasSeed))},e}(),ih=function(e){L(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 qr(e,n){return arguments.length>=2?function(r){return Li(Mr(e,n),Nr(1),or(n))(r)}:function(r){return Li(Mr(function(i,s,a){return e(i,s,a+1)}),Nr(1))(r)}}function oh(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 qr(n)}function sh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(t){return t.lift.call(za.apply(void 0,[t].concat(e)))}}function ah(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),typeof n=="function"?rn(function(){return e},n,t):(typeof n=="number"&&(t=n),rn(function(){return e},t))}function lh(e,n,t){return t===void 0&&(t=Number.POSITIVE_INFINITY),function(r){return r.lift(new ch(e,n,t))}}var ch=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 uh(n,this.accumulator,this.seed,this.concurrent))},e}(),uh=function(e){L(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 _e(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}($e);function dh(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 qr(n)}function on(e,n){return function(r){var i;if(typeof e=="function"?i=e:i=function(){return e},typeof n=="function")return r.lift(new ph(i,n));var s=Object.create(r,Uc);return s.source=r,s.subjectFactory=i,s}}var ph=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 hh(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.length===1&&Ke(e[0])&&(e=e[0]),function(t){return t.lift(new fh(e))}}var fh=function(){function e(n){this.nextSources=n}return e.prototype.call=function(n,t){return t.subscribe(new bh(n,this.nextSources))},e}(),bh=function(e){L(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 _e(this),i=this.destination;i.add(r);var s=Se(t,r);s!==r&&i.add(s)}else this.destination.complete()},n}($e);function mh(){return function(e){return e.lift(new gh)}}var gh=function(){function e(){}return e.prototype.call=function(n,t){return t.subscribe(new xh(n))},e}(),xh=function(e){L(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 vh(e,n){return function(t){return[Kt(e,n)(t),Kt(La(e,n))(t)]}}function yh(){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 pt(wh(e,t))(r)}}function wh(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 _h(e){return e?on(function(){return new Ee},e):on(new Ee)}function $h(e){return function(n){return on(new ba(e))(n)}}function Sh(){return function(e){return on(new Mn)(e)}}function jh(e,n,t,r){t&&typeof t!="function"&&(r=t);var i=typeof t=="function"?t:void 0,s=new uo(e,n,r);return function(a){return on(function(){return s},i)(a)}}function Ch(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return e.length===1&&Ke(e[0])&&(e=e[0]),r.lift.call(Ba.apply(void 0,[r].concat(e)))}}function Ih(e){return e===void 0&&(e=-1),function(n){return e===0?Nn():e<0?n.lift(new ps(-1,n)):n.lift(new ps(e-1,n))}}var ps=function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Th(n,this.count,this.source))},e}(),Th=function(e){L(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 kh(e){return function(n){return n.lift(new Nh(e))}}var Nh=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new Mh(n,this.notifier,t))},e}(),Mh=function(e){L(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 Ee;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 _e(this))},n}($e);function Eh(e){return e===void 0&&(e=-1),function(n){return n.lift(new Ah(e,n))}}var Ah=function(){function e(n,t){this.count=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new zh(n,this.count,this.source))},e}(),zh=function(e){L(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 Oh(e){return function(n){return n.lift(new Lh(e,n))}}var Lh=function(){function e(n,t){this.notifier=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new Bh(n,this.notifier,this.source))},e}(),Bh=function(e){L(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 Ee;try{var a=this.notifier;i=a(r)}catch(l){return e.prototype.error.call(this,l)}s=Se(i,new _e(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}($e);function Rh(e){return function(n){return n.lift(new Ph(e))}}var Ph=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){var r=new Fh(n),i=t.subscribe(r);return i.add(Se(this.notifier,new _e(r))),i},e}(),Fh=function(e){L(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}($e);function Dh(e,n){return n===void 0&&(n=Ye),function(t){return t.lift(new Hh(e,n))}}var Hh=function(){function e(n,t){this.period=n,this.scheduler=t}return e.prototype.call=function(n,t){return t.subscribe(new Vh(n,this.period,this.scheduler))},e}(),Vh=function(e){L(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(Wh,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 Wh(e){var n=e.subscriber,t=e.period;n.notifyNext(),this.schedule(e,t)}function Gh(e,n){return function(t){return t.lift(new Uh(e,n))}}var Uh=function(){function e(n,t){this.compareTo=n,this.comparator=t}return e.prototype.call=function(n,t){return t.subscribe(new Kh(n,this.compareTo,this.comparator))},e}(),Kh=function(e){L(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 Yh(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(),c=!1;try{c=s?s(a,l):a===l}catch(h){this.destination.error(h)}c||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),Yh=function(e){L(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 qh(){return new Ee}function Zh(){return function(e){return ao()(on(qh)(e))}}function Xh(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(Jh(r))}}function Jh(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,c=0,h,u=!1,d=!1;return function(_){c++;var S;!l||u?(u=!1,l=new uo(t,i,a),S=l.subscribe(this),h=_.subscribe({next:function(j){l.next(j)},error:function(j){u=!0,l.error(j)},complete:function(){d=!0,h=void 0,l.complete()}}),d&&(h=void 0)):S=l.subscribe(this),this.add(function(){c--,S.unsubscribe(),S=void 0,h&&!d&&s&&c===0&&(h.unsubscribe(),h=void 0,l=void 0)})}}function Qh(e){return function(n){return n.lift(new ef(e,n))}}var ef=function(){function e(n,t){this.predicate=n,this.source=t}return e.prototype.call=function(n,t){return t.subscribe(new tf(n,this.predicate,this.source))},e}(),tf=function(e){L(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 nf(e){return function(n){return n.lift(new rf(e))}}var rf=function(){function e(n){this.total=n}return e.prototype.call=function(n,t){return t.subscribe(new of(n,this.total))},e}(),of=function(e){L(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 sf(e){return function(n){return n.lift(new af(e))}}var af=function(){function e(n){if(this._skipCount=n,this._skipCount<0)throw new Cn}return e.prototype.call=function(n,t){return this._skipCount===0?t.subscribe(new U(n)):t.subscribe(new lf(n,this._skipCount))},e}(),lf=function(e){L(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 cf(e){return function(n){return n.lift(new uf(e))}}var uf=function(){function e(n){this.notifier=n}return e.prototype.call=function(n,t){return t.subscribe(new df(n,this.notifier))},e}(),df=function(e){L(n,e);function n(t,r){var i=e.call(this,t)||this;i.hasValue=!1;var s=new _e(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}($e);function pf(e){return function(n){return n.lift(new hf(e))}}var hf=function(){function e(n){this.predicate=n}return e.prototype.call=function(n,t){return t.subscribe(new ff(n,this.predicate))},e}(),ff=function(e){L(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 bf(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var t=e[e.length-1];return st(t)?(e.pop(),function(r){return qn(e,r,t)}):function(r){return qn(e,r)}}var mf=function(e){L(n,e);function n(t,r,i){r===void 0&&(r=0),i===void 0&&(i=yr);var s=e.call(this)||this;return s.source=t,s.delayTime=r,s.scheduler=i,(!In(r)||r<0)&&(s.delayTime=0),(!i||typeof i.schedule!="function")&&(s.scheduler=yr),s}return n.create=function(t,r,i){return r===void 0&&(r=0),i===void 0&&(i=yr),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}(ee);function gf(e,n){return n===void 0&&(n=0),function(r){return r.lift(new xf(e,n))}}var xf=function(){function e(n,t){this.scheduler=n,this.delay=t}return e.prototype.call=function(n,t){return new mf(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 zt(e(r,i)).pipe(pt(function(s,a){return n(r,s,i,a)}))}))}:function(t){return t.lift(new vf(e))}}var vf=function(){function e(n){this.project=n}return e.prototype.call=function(n,t){return t.subscribe(new yf(n,this.project))},e}(),yf=function(e){L(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 _e(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}($e);function wf(){return Zn(Gt)}function _f(e,n){return n?Zn(function(){return e},n):Zn(function(){return e})}function $f(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=Se(this.notifier,new _e(r));return i&&!r.seenValue?(r.add(i),t.subscribe(r)):r},e}(),jf=function(e){L(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}($e);function Cf(e,n){return n===void 0&&(n=!1),function(t){return t.lift(new If(e,n))}}var If=function(){function e(n,t){this.predicate=n,this.inclusive=t}return e.prototype.call=function(n,t){return t.subscribe(new Tf(n,this.predicate,this.inclusive))},e}(),Tf=function(e){L(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 kf(e,n,t){return function(i){return i.lift(new Nf(e,n,t))}}var Nf=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 Mf(n,this.nextOrObserver,this.error,this.complete))},e}(),Mf=function(e){L(n,e);function n(t,r,i,s){var a=e.call(this,t)||this;return a._tapNext=wt,a._tapError=wt,a._tapComplete=wt,a._tapError=i||wt,a._tapComplete=s||wt,Sn(r)?(a._context=a,a._tapNext=r):r&&(a._context=r,a._tapNext=r.next||wt,a._tapError=r.error||wt,a._tapComplete=r.complete||wt),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),Ya={leading:!0,trailing:!1};function Ef(e,n){return n===void 0&&(n=Ya),function(t){return t.lift(new Af(e,!!n.leading,!!n.trailing))}}var Af=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 zf(n,this.durationSelector,this.leading,this.trailing))},e}(),zf=function(e){L(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 _e(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}($e);function Of(e,n,t){return n===void 0&&(n=Ye),t===void 0&&(t=Ya),function(r){return r.lift(new Lf(e,n,t.leading,t.trailing))}}var Lf=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 Bf(n,this.duration,this.scheduler,this.leading,this.trailing))},e}(),Bf=function(e){L(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(Rf,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 Rf(e){var n=e.subscriber;n.clearThrottle()}function Pf(e){return e===void 0&&(e=Ye),function(n){return fo(function(){return n.pipe(Mr(function(t,r){var i=t.current;return{value:r,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),pt(function(t){var r=t.current,i=t.last,s=t.value;return new Ff(s,r-i)}))})}}var Ff=function(){function e(n,t){this.value=n,this.interval=t}return e}();function qa(e,n,t){return t===void 0&&(t=Ye),function(r){var i=Wa(e),s=i?+e-t.now():Math.abs(e);return r.lift(new Df(s,i,n,t))}}var Df=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 Hf(n,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),Hf=function(e){L(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 _e(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}($e);function Vf(e,n){return n===void 0&&(n=Ye),qa(e,co(new Sa),n)}function Wf(e){return e===void 0&&(e=Ye),pt(function(n){return new Gf(n,e.now())})}var Gf=function(){function e(n,t){this.value=n,this.timestamp=t}return e}();function Uf(e,n,t){return t===0?[n]:(e.push(n),e)}function Kf(){return qr(Uf,[])}function Yf(e){return function(t){return t.lift(new qf(e))}}var qf=function(){function e(n){this.windowBoundaries=n}return e.prototype.call=function(n,t){var r=new Zf(n),i=t.subscribe(r);return i.closed||r.add(Se(this.windowBoundaries,new _e(r))),i},e}(),Zf=function(e){L(n,e);function n(t){var r=e.call(this,t)||this;return r.window=new Ee,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 Ee;r.next(i)},n}($e);function Xf(e,n){return n===void 0&&(n=0),function(r){return r.lift(new Jf(e,n))}}var Jf=function(){function e(n,t){this.windowSize=n,this.startWindowEvery=t}return e.prototype.call=function(n,t){return t.subscribe(new Qf(n,this.windowSize,this.startWindowEvery))},e}(),Qf=function(e){L(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 Ee],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,c=0;c<l&&!this.closed;c++)a[c].next(t);var h=this.count-s+1;if(h>=0&&h%r===0&&!this.closed&&a.shift().complete(),++this.count%r===0&&!this.closed){var u=new Ee;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 e0(e){var n=Ye,t=null,r=Number.POSITIVE_INFINITY;return st(arguments[3])&&(n=arguments[3]),st(arguments[2])?n=arguments[2]:In(arguments[2])&&(r=Number(arguments[2])),st(arguments[1])?n=arguments[1]:In(arguments[1])&&(t=Number(arguments[1])),function(s){return s.lift(new t0(e,t,r,n))}}var t0=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 r0(n,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),n0=function(e){L(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}(Ee),r0=function(e){L(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 c=l.openWindow();if(i!==null&&i>=0){var h={subscriber:l,window:c,context:null},u={windowTimeSpan:r,windowCreationInterval:i,subscriber:l,scheduler:a};l.add(a.schedule(Za,r,h)),l.add(a.schedule(o0,i,u))}else{var d={subscriber:l,window:c,windowTimeSpan:r};l.add(a.schedule(i0,r,d))}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 n0;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 i0(e){var n=e.subscriber,t=e.windowTimeSpan,r=e.window;r&&n.closeWindow(r),e.window=n.openWindow(),this.schedule(e,t)}function o0(e){var n=e.windowTimeSpan,t=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,s=t.openWindow(),a=this,l={action:a,subscription:null},c={subscriber:t,window:s,context:l};l.subscription=r.schedule(Za,n,c),a.add(l.subscription),a.schedule(e,i)}function Za(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 s0(e,n){return function(t){return t.lift(new a0(e,n))}}var a0=function(){function e(n,t){this.openings=n,this.closingSelector=t}return e.prototype.call=function(n,t){return t.subscribe(new l0(n,this.openings,this.closingSelector))},e}(),l0=function(e){L(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=At(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 c=this.closingSelector;l=c(r)}catch(_){return this.error(_)}var h=new Ee,u=new ge,d={window:h,subscription:u};this.contexts.push(d);var m=At(this,l,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,u.add(m)),this.destination.next(h)}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}(an);function c0(e){return function(t){return t.lift(new u0(e))}}var u0=function(){function e(n){this.closingSelector=n}return e.prototype.call=function(n,t){return t.subscribe(new d0(n,this.closingSelector))},e}(),d0=function(e){L(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 Ee;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=At(this,s))},n}(an);function p0(){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 h0(i,r))}}var h0=function(){function e(n,t){this.observables=n,this.project=t}return e.prototype.call=function(n,t){return t.subscribe(new f0(n,this.observables,this.project))},e}(),f0=function(e){L(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 c=r[l];s.add(At(s,c,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}(an);function b0(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return function(r){return r.lift.call(Pa.apply(void 0,[r].concat(e)))}}function m0(e){return function(n){return n.lift(new Fa(e))}}var g0=Object.freeze({__proto__:null,audit:Da,auditTime:bd,buffer:md,bufferCount:vd,bufferTime:$d,bufferToggle:Td,bufferWhen:Md,catchError:zd,combineAll:Bd,combineLatest:Rd,concat:Pd,concatAll:Na,concatMap:Va,concatMapTo:Fd,count:Dd,debounce:Wd,debounceTime:Kd,defaultIfEmpty:or,delay:Qd,delayWhen:rp,dematerialize:ap,distinct:up,distinctUntilChanged:Ga,distinctUntilKeyChanged:bp,elementAt:_p,endWith:$p,every:Sp,exhaust:Ip,exhaustMap:Ua,expand:Ep,filter:Kt,finalize:Op,find:Rp,findIndex:Fp,first:Dp,flatMap:Fu,groupBy:Yc,ignoreElements:Hp,isEmpty:Gp,last:Zp,map:pt,mapTo:Xp,materialize:eh,max:oh,merge:sh,mergeAll:ho,mergeMap:rn,mergeMapTo:ah,mergeScan:lh,min:dh,multicast:on,observeOn:iu,onErrorResumeNext:hh,pairwise:mh,partition:vh,pluck:yh,publish:_h,publishBehavior:$h,publishLast:Sh,publishReplay:jh,race:Ch,reduce:qr,refCount:ao,repeat:Ih,repeatWhen:kh,retry:Eh,retryWhen:Oh,sample:Rh,sampleTime:Dh,scan:Mr,sequenceEqual:Gh,share:Zh,shareReplay:Xh,single:Qh,skip:nf,skipLast:sf,skipUntil:cf,skipWhile:pf,startWith:bf,subscribeOn:gf,switchAll:wf,switchMap:Zn,switchMapTo:_f,take:mo,takeLast:Nr,takeUntil:$f,takeWhile:Cf,tap:kf,throttle:Ef,throttleTime:Of,throwIfEmpty:Yr,timeInterval:Pf,timeout:Vf,timeoutWith:qa,timestamp:Wf,toArray:Kf,window:Yf,windowCount:Xf,windowTime:e0,windowToggle:s0,windowWhen:c0,withLatestFrom:p0,zip:b0,zipAll:m0}),go=Yi(g0),sr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(n){n.ACTIVATE="activate",n.MOVE="move",n.DEACTIVATE="deactivate"}(e.BarActionType||(e.BarActionType={}))})(sr);var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0});function x0(e){return typeof e=="number"&&e===e}Ot.isValidNumber=x0;function v0(){}Ot.noop=v0;function y0(e,n){var t=n.reduce(function(r,i){return r[i]=!0,r},{});return Object.keys(e).reduce(function(r,i){return t[i]||(r[i]=e[i]),r},{})}Ot.omit=y0;var Zr={};(function(e){var n=ue&&ue.__assign||function(){return n=Object.assign||function(l){for(var c,h=1,u=arguments.length;h<u;h++){c=arguments[h];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(l[d]=c[d])}return l},n.apply(this,arguments)},t;Object.defineProperty(e,"__esModule",{value:!0});var r=M,i=bo,s=Ot;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(c){return r.createElement(e.ResizerConsumer,null,function(h){var u=n(n({},c),{context:h});return r.createElement(l,n({},u))})}}e.withResizerContext=a})(Zr);var xo={},Xr={};(function(e){var n=ue&&ue.__assign||function(){return n=Object.assign||function(d){for(var m,_=1,S=arguments.length;_<S;_++){m=arguments[_];for(var j in m)Object.prototype.hasOwnProperty.call(m,j)&&(d[j]=m[j])}return d},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var t=Ot;e.DEFAULT_COORDINATE_OFFSET={x:0,y:0};function r(d,m){var _=m.maxSize,S=m.minSize,j=S===void 0?0:S;return d<j?{nextSize:j,remainingOffset:d-j}:t.isValidNumber(_)&&d>_?{nextSize:_,remainingOffset:d-_}:{nextSize:d,remainingOffset:0}}function i(d){var m=d.size;return t.isValidNumber(m)}e.isSolid=i;function s(d){var m=d.disableResponsive;return i(d)&&m===void 0?!0:!!m}e.isDisabledResponsive=s;function a(d,m){return m?{x:d.x-m.x,y:d.y-m.y}:e.DEFAULT_COORDINATE_OFFSET}e.calculateCoordinateOffset=a;function l(){var d=[],m=0,_=0;return{collect:function(S){d.push(S),S.disableResponsive||(m+=1,_+=S.currentSize)},getResult:function(){return{sizeInfoArray:d,flexGrowRatio:m/_}}}}e.collectSizeRelatedInfo=l;function c(d,m){if(m.isSolid)return{remainingOffset:d,sizeInfo:m};var _=r(m.currentSize+d,m),S=_.nextSize,j=_.remainingOffset;return{sizeInfo:n(n({},m),{currentSize:S}),remainingOffset:j}}function h(d,m,_,S){for(var j=[],I=m,k=d+_;p(k);k+=_)if(I){var C=c(I,S[k]),g=C.sizeInfo,f=C.remainingOffset;I=f,b(g)}else b(S[k]);function b(x){_===-1?j.unshift(x):j.push(x)}function p(x){return _===-1?x>=0:x<=S.length-1}return{sizeInfoArray:j,remainingOffset:I}}function u(d,m,_){var S=l(),j=S.collect,I=S.getResult,k=h(d,m,-1,_),C=h(d,-m,1,_),g=m-k.remainingOffset,f=-m-C.remainingOffset;function b(N,z){N.forEach(j),j(_[d]),z.forEach(j)}if(g===-f)b(k.sizeInfoArray,C.sizeInfoArray);else if(Math.abs(g)<Math.abs(f)){var p=h(d,-g,1,_);b(k.sizeInfoArray,p.sizeInfoArray)}else{var x=h(d,-f,-1,_);b(x.sizeInfoArray,C.sizeInfoArray)}return I()}e.getNextSizeRelatedInfo=u})(Xr);var Er=ue&&ue.__assign||function(){return Er=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Er.apply(this,arguments)};Object.defineProperty(xo,"__esModule",{value:!0});var w0=Xr;function hs(e){return e*2+1}function pi(e){return e*2}var _0=function(){function e(n){this.resizeResult=n,this.isDiscarded=!1}return e.prototype.resizeSection=function(n,t){if(!this.isDiscarded){var r=pi(n),i=this.getSize(r);if(i>=0&&t.toSize>=0){var s=t.toSize-i;r===this.resizeResult.sizeInfoArray.length-1||t.preferMoveLeftBar?this.moveBar(n-1,{withOffset:-s}):this.moveBar(n,{withOffset:s})}}},e.prototype.moveBar=function(n,t){this.isDiscarded||(this.resizeResult=w0.getNextSizeRelatedInfo(hs(n),t.withOffset,this.resizeResult.sizeInfoArray))},e.prototype.discard=function(){this.isDiscarded=!0},e.prototype.isSectionResized=function(n){var t=pi(n);return"defaultSizeInfoArray"in this.resizeResult?this.getSize(t)!==this.resizeResult.defaultSizeInfoArray[t].currentSize:!1},e.prototype.isBarActivated=function(n){return"barID"in this.resizeResult?this.resizeResult.barID===hs(n):!1},e.prototype.getSectionSize=function(n){return this.getSize(pi(n))},e.prototype.getResult=function(){return Er(Er({},this.resizeResult),{discard:this.isDiscarded})},e.prototype.getTotalSize=function(){return this.resizeResult.sizeInfoArray.filter(function(n,t){return n&&t%2===0}).reduce(function(n,t){var r=t.currentSize;return n+r},0)},e.prototype.getSize=function(n){var t=this.resizeResult.sizeInfoArray[n];return t?t.currentSize:-1},e}();xo.Resizer=_0;var vo={},Ht=ue&&ue.__assign||function(){return Ht=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ht.apply(this,arguments)};Object.defineProperty(vo,"__esModule",{value:!0});var $0=go,wr=sr,Xa=Xr,hi={barID:-1,offset:0,type:wr.BarActionType.DEACTIVATE,originalCoordinate:Xa.DEFAULT_COORDINATE_OFFSET,defaultSizeInfoArray:[],sizeInfoArray:[],discard:!0,flexGrowRatio:0};function S0(e){return $0.scan(function(n,t){var r={barID:t.barID,type:t.type};switch(t.type){case wr.BarActionType.ACTIVATE:var i=e.getSizeRelatedInfo(),s=i.sizeInfoArray,a=i.flexGrowRatio;return Ht(Ht(Ht({},hi),r),{originalCoordinate:t.coordinate,defaultSizeInfoArray:s,sizeInfoArray:s,flexGrowRatio:a});case wr.BarActionType.MOVE:var l=e.calculateOffset(t.coordinate,n.originalCoordinate);return Ht(Ht(Ht({},r),Xa.getNextSizeRelatedInfo(t.barID,l,n.defaultSizeInfoArray)),{offset:l,originalCoordinate:n.originalCoordinate,defaultSizeInfoArray:n.defaultSizeInfoArray,discard:!1});case wr.BarActionType.DEACTIVATE:return hi}},hi)}vo.scanBarAction=S0;var yo={},Ar=ue&&ue.__assign||function(){return Ar=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ar.apply(this,arguments)},j0=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(yo,"__esModule",{value:!0});var fs=M;yo.StyledContainer=fs.forwardRef(function(e,n){var t=e.vertical,r=e.style,i=j0(e,["vertical","style"]);return fs.createElement("div",Ar({},i,{ref:n,style:Ar({display:"flex",flexDirection:t?"column":"row"},r)}))});var C0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Hi=ue&&ue.__assign||function(){return Hi=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Hi.apply(this,arguments)};Object.defineProperty(Ur,"__esModule",{value:!0});var fi=M,hr=bo,un=go,bs=sr,I0=Ot,T0=Zr,Vi=xo;Ur.Resizer=Vi.Resizer;var k0=vo,fr=Xr,N0=yo,M0=function(e){C0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.childrenProps=[],t.childrenInstance=[],t.barActions$=new hr.Subject,t.sizeRelatedInfoAction$=new hr.Subject,t.sizeRelatedInfo$=hr.merge(t.sizeRelatedInfoAction$,t.barActions$.pipe(k0.scanBarAction({calculateOffset:function(r,i){return fr.calculateCoordinateOffset(r,i)[t.axis]},getSizeRelatedInfo:function(){return t.makeSizeInfos()}}),un.tap(function(r){return t.monitorBarStatusChanges(r)}))).pipe(un.filter(function(r){var i=r.discard;return!i}),un.map(function(r){if(typeof t.props.beforeApplyResizer=="function"){var i=new Vi.Resizer(r);return t.props.beforeApplyResizer(i),i.getResult()}else return r}),un.filter(function(r){var i=r.discard;return!i}),un.observeOn(hr.animationFrameScheduler),un.share()),t.triggerBarAction=function(r){t.barActions$.next(r)},t.createID=function(r){return t.childrenProps.push(r),t.childrenProps.length-1},t.populateChildInstance=function(r,i){i.current&&(t.childrenInstance[r]=i.current)},t}return Object.defineProperty(n.prototype,"axis",{get:function(){return this.props.vertical?"y":"x"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"dimension",{get:function(){return this.props.vertical?"height":"width"},enumerable:!0,configurable:!0}),Object.defineProperty(n.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(n.prototype,"containerProps",{get:function(){return I0.omit(this.props,["onActivate","beforeApplyResizer","afterResizing"])},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.refreshSizeInfos()},n.prototype.render=function(){return fi.createElement(T0.ResizerProvider,{value:this.contextValue},fi.createElement(N0.StyledContainer,Hi({},this.containerProps),this.props.children))},n.prototype.getResizer=function(){return new Vi.Resizer(this.makeSizeInfos())},n.prototype.applyResizer=function(t){this.sizeRelatedInfoAction$.next(t.getResult())},n.prototype.monitorBarStatusChanges=function(t){var r=t.type;switch(r){case bs.BarActionType.ACTIVATE:typeof this.props.onActivate=="function"&&this.props.onActivate();return;case bs.BarActionType.DEACTIVATE:typeof this.props.afterResizing=="function"&&this.props.afterResizing();return;default:return}},n.prototype.refreshSizeInfos=function(){this.sizeRelatedInfoAction$.next(this.makeSizeInfos())},n.prototype.makeSizeInfos=function(){var t=this,r=fr.collectSizeRelatedInfo(),i=r.collect,s=r.getResult;return this.childrenProps.forEach(function(a,l){var c=t.childrenInstance[l];i({maxSize:a.maxSize,minSize:a.minSize,disableResponsive:fr.isDisabledResponsive(a),isSolid:fr.isSolid(a),currentSize:c.getBoundingClientRect()[t.dimension]})}),s()},n}(fi.PureComponent);Ur.Container=M0;var wo={},_o={},zr=ue&&ue.__assign||function(){return zr=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zr.apply(this,arguments)},E0=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(_o,"__esModule",{value:!0});var ms=M;_o.StyledSection=ms.forwardRef(function(e,n){var t,r=e.context,i=e.maxSize,s=e.minSize,a=e.flexGrow,l=e.flexShrink,c=e.flexBasis,h=e.style,u=E0(e,["context","maxSize","minSize","flexGrow","flexShrink","flexBasis","style"]);return ms.createElement("div",zr({},u,{ref:n,style:zr((t={overflow:"hidden"},t[r.vertical?"maxHeight":"maxWidth"]=i,t[r.vertical?"minHeight":"minWidth"]=s,t.flexGrow=a,t.flexShrink=l,t.flexBasis=c,t),h)}))});var A0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Un=ue&&ue.__assign||function(){return Un=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Un.apply(this,arguments)};Object.defineProperty(wo,"__esModule",{value:!0});var bi=M,z0=bo,mi=go,O0=Zr,gi=Ot,L0=_o,B0=function(e){A0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultInnerRef=bi.createRef(),t.id=t.props.context.createID(t.props),t.subscription=new z0.Subscription,t.flexGrowRatio=0,t.resize$=t.props.context.sizeRelatedInfo$.pipe(mi.map(function(r){var i=r.sizeInfoArray,s=r.flexGrowRatio;return{sizeInfo:i[t.id],flexGrowRatio:s}}),mi.filter(function(r){var i=r.sizeInfo;return!!i}),mi.tap(function(r){var i=r.sizeInfo,s=r.flexGrowRatio;if(t.sizeInfo=i,t.flexGrowRatio=s,t.ref.current){var a=t.getStyle(i,s),l=a.flexGrow,c=a.flexShrink,h=a.flexBasis;t.ref.current.style.flexGrow=""+l,t.ref.current.style.flexShrink=""+c,t.ref.current.style.flexBasis=h+"px",t.onSizeChanged(i.currentSize)}})),t}return Object.defineProperty(n.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProps",{get:function(){return Un(Un({},gi.omit(this.props,["defaultSize","size","disableResponsive","innerRef","onSizeChanged"])),this.getStyle())},enumerable:!0,configurable:!0}),n.prototype.componentDidMount=function(){this.subscription.add(this.resize$.subscribe()),this.props.context.populateInstance(this.id,this.ref)},n.prototype.componentWillUnmount=function(){this.subscription.unsubscribe()},n.prototype.render=function(){return bi.createElement(L0.StyledSection,Un({},this.childProps,{ref:this.ref}))},n.prototype.onSizeChanged=function(t){typeof this.props.onSizeChanged=="function"&&this.props.onSizeChanged(t)},n.prototype.getFlexShrink=function(){return gi.isValidNumber(this.props.size)?0:this.props.disableResponsive?1:0},n.prototype.getStyle=function(t,r){t===void 0&&(t=this.sizeInfo),r===void 0&&(r=this.flexGrowRatio);var i=this.getFlexShrink();if(t){var s=t.disableResponsive,a=t.currentSize;return{flexShrink:i,flexGrow:s?0:r*a,flexBasis:s?a:0}}else{var l=this.props.size||this.props.defaultSize;return gi.isValidNumber(l)?{flexShrink:i,flexGrow:0,flexBasis:l}:{flexShrink:i,flexGrow:1,flexBasis:0}}},n}(bi.PureComponent);wo.Section=O0.withResizerContext(B0);var $o={},Jr={},Tn=ue&&ue.__assign||function(){return Tn=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tn.apply(this,arguments)},Ja=ue&&ue.__rest||function(e,n){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(t[r[i]]=e[r[i]]);return t};Object.defineProperty(Jr,"__esModule",{value:!0});var Or=M;Jr.StyledBar=Or.forwardRef(function(e,n){var t=e.size,r=e.style,i=Ja(e,["size","style"]);return Or.createElement("div",Tn({},i,{ref:n,style:Tn({position:"relative",flex:"0 0 "+t+"px"},r)}))});Jr.StyledInteractiveArea=Or.forwardRef(function(e,n){var t=e.top,r=t===void 0?0:t,i=e.right,s=i===void 0?0:i,a=e.bottom,l=a===void 0?0:a,c=e.left,h=c===void 0?0:c,u=e.vertical,d=e.style,m=Ja(e,["top","right","bottom","left","vertical","style"]);return Or.createElement("div",Tn({},m,{style:Tn({position:"absolute",top:-r,left:-h,right:-s,bottom:-l,cursor:u?"row-resize":"col-resize",WebkitTapHighlightColor:"transparent",userSelect:"none"},d),ref:n}))});var Qr={};Object.defineProperty(Qr,"__esModule",{value:!0});var R0=Qr.disablePassive=!0;try{window.addEventListener("test",null,{get passive(){return R0=Qr.disablePassive={passive:!1},!0}})}catch(e){}var P0=ue&&ue.__extends||function(){var e=function(n,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)i.hasOwnProperty(s)&&(r[s]=i[s])},e(n,t)};return function(n,t){e(n,t);function r(){this.constructor=n}n.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),Lr=ue&&ue.__assign||function(){return Lr=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++){n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Lr.apply(this,arguments)};Object.defineProperty($o,"__esModule",{value:!0});var Bn=M,Xe=sr,F0=Ot,D0=Zr,gs=Jr,xs=Qr,H0=function(e){P0(n,e);function n(){var t=e!==null&&e.apply(this,arguments)||this;return t.defaultInnerRef=Bn.createRef(),t.interactiveAreaRef=Bn.createRef(),t.id=t.props.context.createID(t.props),t.isValidClick=!0,t.isActivated=!1,t.onMouseDown=t.triggerMouseAction(Xe.BarActionType.ACTIVATE),t.onMouseMove=t.triggerMouseAction(Xe.BarActionType.MOVE),t.onMouseUp=t.triggerMouseAction(Xe.BarActionType.DEACTIVATE),t.onTouchStart=t.triggerTouchAction(Xe.BarActionType.ACTIVATE),t.onTouchMove=t.triggerTouchAction(Xe.BarActionType.MOVE),t.onTouchEnd=t.triggerTouchAction(Xe.BarActionType.DEACTIVATE),t.onTouchCancel=t.triggerTouchAction(Xe.BarActionType.DEACTIVATE),t}return Object.defineProperty(n.prototype,"ref",{get:function(){return this.props.innerRef||this.defaultInnerRef},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"childProps",{get:function(){return F0.omit(this.props,["context","innerRef","onClick","expandInteractiveArea","onStatusChanged"])},enumerable:!0,configurable:!0}),n.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,xs.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,xs.disablePassive))},n.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))},n.prototype.render=function(){return Bn.createElement(gs.StyledBar,Lr({},this.childProps,{ref:this.ref}),this.props.children,Bn.createElement(gs.StyledInteractiveArea,Lr({},this.props.expandInteractiveArea,{ref:this.interactiveAreaRef,vertical:this.props.context.vertical})))},n.prototype.onStatusChanged=function(t){this.isActivated!==t&&(this.isActivated=t,typeof this.props.onStatusChanged=="function"&&this.props.onStatusChanged(t))},n.prototype.updateStatusIfNeed=function(t){t===Xe.BarActionType.ACTIVATE?this.onStatusChanged(!0):t===Xe.BarActionType.DEACTIVATE&&this.onStatusChanged(!1)},n.prototype.triggerAction=function(t,r){(this.isActivated||t===Xe.BarActionType.ACTIVATE)&&this.props.context.triggerBarAction({type:t,coordinate:r,barID:this.id}),this.isActivated&&t===Xe.BarActionType.DEACTIVATE&&this.onClick(),this.updateStatusIfNeed(t),this.updateClickStatus(t)},n.prototype.triggerMouseAction=function(t){var r=this;return function(i){r.disableUserSelectIfResizing(i,t);var s=i.clientX,a=i.clientY;r.triggerAction(t,{x:s,y:a})}},n.prototype.triggerTouchAction=function(t){var r=this;return function(i){r.disableUserSelectIfResizing(i,t);var s=i.touches[0]||{clientX:0,clientY:0},a=s.clientX,l=s.clientY;r.triggerAction(t,{x:a,y:l})}},n.prototype.disableUserSelectIfResizing=function(t,r){(this.isActivated||r===Xe.BarActionType.ACTIVATE)&&t.preventDefault()},n.prototype.updateClickStatus=function(t){this.isActivated&&(t===Xe.BarActionType.ACTIVATE?this.isValidClick=!0:t===Xe.BarActionType.MOVE&&(this.isValidClick=!1))},n.prototype.onClick=function(){this.isValidClick&&typeof this.props.onClick=="function"&&(this.isValidClick=!1,this.props.onClick())},n}(Bn.PureComponent);$o.Bar=D0.withResizerContext(H0);(function(e){function n(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0}),n(Ur),n(wo),n($o),n(sr)})(Zt);function vs({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 V0({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 W0({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 Bt={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)"}};/**
* react-virtual
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Br(){return Br=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},Br.apply(this,arguments)}/**
* virtual-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/function Rr(){return Rr=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},Rr.apply(this,arguments)}/**
* virtual-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/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(),c=l.length!==i.length||l.some(function(S,j){return i[j]!==S});if(!c)return s;i=l;var h;if(t.key&&t.debug!=null&&t.debug()&&(h=Date.now()),s=n.apply(void 0,l),t.key&&t.debug!=null&&t.debug())var u=Math.round((Date.now()-a)*100)/100,d=Math.round((Date.now()-h)*100)/100,m=d/16,_=function(j,I){for(j=String(j);j.length<I;)j=" "+j;return j};return t==null||t.onChange==null||t.onChange(s),s}}function xi(e,n){if(e===void 0)throw new Error("Unexpected undefined"+(n?": "+n:""));return e}var G0=function(n,t){return Math.abs(n-t)<1};/**
* virtual-core
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var U0=function(n){return n},K0=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},Y0=function(n,t){var r=n.scrollElement;if(r){var i=function(l){var c=l.width,h=l.height;t({width:Math.round(c),height:Math.round(h)})};i(r.getBoundingClientRect());var s=new ResizeObserver(function(a){var l=a[0];if(l!=null&&l.borderBoxSize){var c=l.borderBoxSize[0];if(c){i({width:c.inlineSize,height:c.blockSize});return}}i(r.getBoundingClientRect())});return s.observe(r,{box:"border-box"}),function(){s.unobserve(r)}}},q0=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)}}},Z0=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"])},X0=function(n,t,r){var i,s,a=t.adjustments,l=a===void 0?0:a,c=t.behavior,h=n+l;(i=r.scrollElement)==null||i.scrollTo==null||i.scrollTo((s={},s[r.options.horizontal?"left":"top"]=h,s.behavior=c,s))},J0=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=Rr({debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:U0,rangeExtractor:K0,onChange:function(){},measureElement:Z0,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 c=r[l];if(!s.has(c.lane)){var h=a.get(c.lane);if(h==null||c.end>h.end?a.set(c.lane,c):c.end<h.end&&s.set(c.lane,!0),s.size===t.options.lanes)break}}return a.size===t.options.lanes?Array.from(a.values()).sort(function(u,d){return u.end-d.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,c=r.getItemKey,h=t.pendingMeasuredCacheIndexes.length>0?Math.min.apply(Math,t.pendingMeasuredCacheIndexes):0;t.pendingMeasuredCacheIndexes=[];for(var u=t.measurementsCache.slice(0,h),d=h;d<s;d++){var m=c(d),_=t.options.lanes===1?u[d-1]:t.getFurthestMeasurement(u,d),S=_?_.end:a+l,j=i.get(m),I=typeof j=="number"?j:t.options.estimateSize(d),k=S+I,C=_?_.lane:d%t.options.lanes;u[d]={index:d,start:S,size:I,end:k,key:m,lane:C}}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=Q0({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(Rr({},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 c=t.options.measureElement(r,i,t);t.resizeItem(s,c)},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,c=i-l;c!==0&&(a.start<t.scrollOffset&&t._scrollToOffset(t.scrollOffset,{adjustments:t.scrollAdjustments+=c,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 c=r[a],h=i[c];s.push(h)}return s},{key:!1,debug:function(){return t.options.debug}}),this.getVirtualItemForOffset=function(r){var i=t.getMeasurements();return xi(i[Qa(0,i.length-1,function(s){return xi(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,c=l-t.getSize();return Math.max(Math.min(c,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=xi(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,c=s.behavior;t.cancelScrollToIndex(),c==="smooth"&&t.isDynamicMode(),t._scrollToOffset(t.getOffsetForAlignment(r,l),{adjustments:void 0,behavior:c})},this.scrollToIndex=function(r,i){var s=i===void 0?{}:i,a=s.align,l=a===void 0?"auto":a,c=s.behavior;r=Math.max(0,Math.min(r,t.options.count-1)),t.cancelScrollToIndex(),c==="smooth"&&t.isDynamicMode();var h=t.getOffsetForIndex(r,l),u=h[0],d=h[1];t._scrollToOffset(u,{adjustments:void 0,behavior:c}),c!=="smooth"&&t.isDynamicMode()&&(t.scrollToIndexTimeoutId=setTimeout(function(){t.scrollToIndexTimeoutId=null;var m=t.measureElementCache.has(t.options.getItemKey(r));if(m){var _=t.getOffsetForIndex(r,d),S=_[0];G0(S,t.scrollOffset)||t.scrollToIndex(r,{align:d,behavior:c})}else t.scrollToIndex(r,{align:d,behavior:c})}))},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()},Qa=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 Q0(e){for(var n=e.measurements,t=e.outerSize,r=e.scrollOffset,i=n.length-1,s=function(h){return n[h].start},a=Qa(0,i,s,r),l=a;l<i&&n[l].end<r+t;)l++;return{startIndex:a,endIndex:l}}/**
* react-virtual
*
* Copyright (c) TanStack
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var eb=typeof document!="undefined"?M.useLayoutEffect:M.useEffect;function tb(e){var n=M.useReducer(function(){return{}},{})[1],t=Br({},e,{onChange:function(a){n(),e.onChange==null||e.onChange(a)}}),r=M.useState(function(){return new J0(t)}),i=r[0];return i.setOptions(t),M.useEffect(function(){return i._didMount()},[]),eb(function(){return i._willUpdate()}),i}function nb(e){return tb(Br({observeElementRect:Y0,observeElementOffset:q0,scrollToFn:X0},e))}function rb({virtualizerRef:e,itemCount:n,itemSizes:t,overScanCount:r=3,renderItem:i,scrollToIndex:s,scrollToAlignment:a,className:l,style:c}){e||(e=M.useRef(null));const[h,u]=M.useState(null);return e.current=nb({count:n,getScrollElement:()=>h,estimateSize:Array.isArray(t)?d=>t[d]:()=>t,overscan:r,enableSmoothScroll:!0}),o.jsx("div",{ref:u,className:l,style:B(w({},c),{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:d,size:m,start:_})=>o.jsx("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:`${m}px`,transform:`translateY(${_}px)`},children:i(d)},d))})})}function Wi(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 ib(){const{css:e}=ne(),[n,t]=M.useState(!1),[r,i]=M.useState(null),s=ie(Ue),a=ie(As),l=ie(qi),c=ie(Kn),h=ie(Ii),u=ie(lt),d=ie(he),m=ie(Jn),_=ie(Re),S=ie(zs),j=ie(Os),I=ie(Ls),k=ie(Bs),[C,g]=Y(Sl),f=ie(Dr),b=M.useRef(null),{active:p,histories:x}=C;M.useEffect(()=>(document.addEventListener("keypress",Wi),()=>document.removeEventListener("keypress",Wi)),[p,n]);const N=T=>{if(T<0||n||p===T)return;const{state:P}=x[T];t(!0),sessionStorage.setItem("btcd-lc","-"),P.colorScheme?h(P.colorScheme):O(T,h,"colorScheme"),P.breakpoint?u(P.breakpoint):O(T,u,"breakpoint"),P.fields?s(P.fields):O(T,s,"fields"),P.activeBuilderStep!==void 0?k(P.activeBuilderStep):O(T,k,"activeBuilderStep"),P.formInfo?a(P.formInfo):O(T,a,"formInfo"),P.allLayouts?l(P.allLayouts):O(T,l,"allLayouts"),P.nestedLayouts?c(P.nestedLayouts):O(T,c,"nestedLayouts"),P.styles?d(P.styles):O(T,d,"styles"),P.themeColors?m(P.themeColors):O(T,m,"themeColors"),P.themeVars?_(P.themeVars):O(T,_,"themeVars"),P.allThemeColors&&j(P.allThemeColors),P.allThemeVars&&I(P.allThemeVars),P.allStyles&&S(P.allStyles),z(T),g(H=>B(w({},H),{active:T})),f(H=>B(w({},H),{forceBuilderWidthToBrkPnt:H.forceBuilderWidthToBrkPnt+1,reRenderGridLayoutByRootLay:H.reRenderGridLayoutByRootLay+1,recalculateNestedField:{counter:H.recalculateNestedField.counter+1}})),Wt(),t(!1)},z=T=>{if(p>T){Lo.success(x[T].event,{position:"bottom-right"});return}Lo.success(x[T].event,{position:"bottom-right"})},O=(T,P,H)=>{for(let A=T-1;A>=0;A-=1)if(H in x[A].state){P(x[A].state[H]);break}},F=()=>{var T;(T=b==null?void 0:b.current)==null||T.scrollToIndex(p),i(!0)},$=()=>{i(!1)},E=x.map(T=>T.state.fldKey?40:25);return o.jsx("div",{children:o.jsxs("div",{className:e(pe.option_right),children:[o.jsx(Te,{msg:"Undo",children:o.jsx("button",{"data-testid":"undo",type:"button",id:"builder-undo-btn",disabled:!p||n,className:e([pe.icn_btn,v.icn_hover]),onClick:()=>N(p-1),children:o.jsx(W0,{size:"25"})})}),o.jsx("div",{className:e(pe.border_right)}),o.jsx(Te,{msg:"Redo",children:o.jsx("button",{"data-testid":"redo",type:"button",id:"builder-redo-btn",disabled:p===x.length-1||n,className:e([pe.icn_btn,v.icn_hover]),onClick:()=>N(p+1),children:o.jsx(V0,{size:"25"})})}),o.jsx("div",{className:e(pe.border_right)}),o.jsxs(Cr,{place:"bottom-end",onShow:F,onHide:$,children:[o.jsx("button",{"data-testid":"history-list",type:"button",className:`${e([pe.icn_btn,v.icn_hover])} ${r?"active":""}`,children:o.jsx(vs,{size:"25"})}),o.jsxs("div",{className:e(Bt.menu),children:[o.jsxs("p",{className:e(Bt.title),children:[o.jsx("span",{className:e(v.mr1),children:o.jsx(vs,{size:"20"})}),"History"]}),x.length<=1&&o.jsx("span",{className:e(Bt.secondary),children:y("History Empty")}),x.length>1&&o.jsx(rb,{virtualizerRef:b,className:e(Bt.list),itemCount:x.length,itemSizes:E,renderItem:T=>o.jsx("div",{className:e(Bt.item),children:o.jsxs("button",{type:"button",className:`${e(Bt.btn)} ${p===T&&"active"} ${p<T&&"unactive"}`,onClick:()=>N(T),title:x[T].event,children:[o.jsx("span",{className:e(Bt.subtitle),children:x[T].event}),x[T].state.fldKey&&o.jsx("span",{className:e(Bt.fldkey),children:`Field Key: ${x[T].state.fldKey}`})]})})})]})]})]})})}const ob=r=>{var i=r,{children:e,title:n}=i,t=cr(i,["children","title"]);var h,u,d;const[s,a]=M.useState(null),l=(h=s==null?void 0:s.contentDocument)==null?void 0:h.body;s&&((u=s==null?void 0:s.contentWindow)==null||u.addEventListener("keydown",jl),(d=s==null?void 0:s.contentWindow)==null||d.addEventListener("keydown",Wi));const c=m=>(m==null?void 0:m.doctype)!==null;if(s&&!c(s==null?void 0:s.contentDocument)){const m=document.implementation.createDocumentType("html","","");s.contentDocument.insertBefore(m,s.contentDocument.childNodes[0])}return M.useEffect(()=>{var m;(m=s==null?void 0:s.contentDocument)==null||m.querySelectorAll("a").forEach(_=>{_.bfClickPrevented||(_.addEventListener("click",S=>{S.preventDefault(),S.stopPropagation()}),_.bfClickPrevented=!0)})},[e]),o.jsx("iframe",B(w({title:n},t),{ref:a,referrerPolicy:"no-referrer",children:l&&c(s.contentDocument)&&Zi.createPortal(e,l)}))},So={},Pr=[],sn=So.toString,tn=So.hasOwnProperty,el=sn.call(So),Fr=sn.call(Pr),sb=sn.call("");function Gi(e,n,t,r,i,s){r=[];for(s in n)if(tn.call(n,s))for(i in e)tn.call(e,i)&&r.push(Ui(e[i],n[s],t));return r}function Ui(e,n,t){return t&&(/^[-\w$]+$/.test(n)&&`:-error-bad-sub-selector-${n}`||/&/.test(n)&&n.replace(/&/g,e))||e+n}function ab(e){return`-${e.toLowerCase()}`}function Qt(e,n,t,r,i,s,a,l,c){if(e!=null){if(/\$/.test(t)){for(c in t=t.split("$"))tn.call(t,c)&&Qt(e,n,t[c],r,i,s);return}switch(sn.call(e=e.valueOf())){case Fr:for(a=0;a<e.length;a+=1)Qt(e[a],n,t,r,i,s);break;case el:t=t&&`${t}-`;for(a in e)if(tn.call(e,a))if(l=e[a],/\$/.test(a))for(c in a=a.split("$"))tn.call(a,c)&&Qt(l,n,t+a[c],r,i,s);else Qt(l,n,t+a,r,i,s);break;default:for(a=t.replace(/_/g,"-").replace(/[A-Z]/g,ab),i&&(a==="animation-name"||a==="animation")&&(e=e.split(",").map(h=>h.replace(/()(?::global\(\s*([-\w]+)\s*\)|()([-\w]+))/,s.l)).join(",")),/^animation|^transition/.test(a)&&(r=["webkit"]),a=a.replace(/^@/,"*"),c=0;c<r.length;c+=1)n.push("-",r[c],"-",a,a?":":"",e,";");n.push(a,a?":":"",e,";")}}}const lb=/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g;function cb(e,n,t,r,i,s,a,l){let c;if(/^@(?:namespace|import|charset)$/.test(e))if(sn.call(n)===Fr)for(c=0;c<n.length;c+=1)t.push(e," ",n[c],";");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)," {"),Tt(n,t,"","",["webkit"]),t.push("}"),t.push(e," {"),Tt(n,t,"","",s,a,l),t.push("}");else if(/^@extends?$/.test(e)){for(;c=lb.exec(i);)e=c[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(sn.call(n)===Fr?n.map(h=>h.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)?Tt(n,t,e,e,Pr):/^@global$/.test(e)?Tt(n,t,r,i,s,0,l):/^@local$/.test(e)?Tt(n,t,r,i,s,1,l):/^@(?:media |supports |document )./.test(e)?(t.push(e," {"),Tt(n,t,r,i,s,a,l),t.push("}")):t.push("@-error-unsupported-at-rule ",JSON.stringify(e),";")}function Tt(e,n,t,r,i,s,a){let l,c,h,u;switch(sn.call(e)){case Fr:for(l=0;l<e.length;l+=1)Tt(e[l],n,t,r,i,s,a);break;case el:for(l in e)h=e[l],t&&/^[-\w$]+$/.test(l)?(u||(u=1,n.push(t||"*"," {")),Qt(h,n,l,i,s,a)):/^@/.test(l)?(u=u&&n.push("}")&&0,cb(l,h,n,t,r,i,s,a)):(u=u&&n.push("}")&&0,Tt(h,n,(c=/,/.test(t)||t&&/,/.test(l))?Gi(t.split(","),(s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l).split(","),t).join(","):Ui(t,s?l.replace(/()(?::global\(\s*(\.[-\w]+)\s*\)|(\.)([-\w]+))/g,a.l):l,t),c?Gi(r.split(","),l.split(","),r).join(","):Ui(r,l,r),i,s,a));u&&n.push("}");break;case sb:n.push(t||":-error-no-selector"," {"),Qt(e,n,"",i,s,a),n.push("}")}}function Mt(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&&tn.call(r,a)&&(s[a]=r[a]);Tt(i,l,"","",Pr,1,{e:function(h,u){const d=s[u];s[u]=`${d.slice(0,d.lastIndexOf(" ")+1)+h} ${d.slice(d.lastIndexOf(" ")+1)}`},l:function(h,u,d,m,_){return d?u+d:(s[_]||(s[_]=_),u+m+s[_].match(/\S+$/))}}),l=new String(t(l));for(a in s)tn.call(s,a)&&(l[a]=s[a]);return l},e.inline=function(r,i,s){return arguments.length===1&&(i=r,r={}),Qt(i,s=[],"",Pr,1,{l:function(l,c,h,u,d){return h?c+h:r[d]?c+u+r[d]:d}}),t(s)},e.prefix=function(r,i){return Gi(i.map(s=>`-${s}-`).concat([""]),[r])},e}Mt.global=function(e){return`:global(${e})`};Mt.kv=tl;function tl(e,n,t){return t={},t[e]=n,t}Mt.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 tl(`@${n} ${t}`,r)};Mt(Mt);delete Mt.use;var ei={exports:{}},nl={};function rl(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(t=rl(e[n]))&&(r&&(r+=" "),r+=t);else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ys(){for(var e,n,t=0,r="";t<arguments.length;)(e=arguments[t++])&&(n=rl(e))&&(r&&(r+=" "),r+=n);return r}var ub=Object.freeze({__proto__:null,clsx:ys,default:ys}),db=Yi(ub),je={},$t={};Object.defineProperty($t,"__esModule",{value:!0});$t.dontSetMe=mb;$t.findInArray=pb;$t.int=bb;$t.isFunction=hb;$t.isNum=fb;function pb(e,n){for(let t=0,r=e.length;t<r;t++)if(n.apply(n,[e[t],t,e]))return e[t]}function hb(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function fb(e){return typeof e=="number"&&!isNaN(e)}function bb(e){return parseInt(e,10)}function mb(e,n,t){if(e[n])return new Error("Invalid prop ".concat(n," passed to ").concat(t," - do not set this, set it on the child."))}var ln={};Object.defineProperty(ln,"__esModule",{value:!0});ln.browserPrefixToKey=ol;ln.browserPrefixToStyle=gb;ln.default=void 0;ln.getPrefix=il;const vi=["Moz","Webkit","O","ms"];function il(){var e;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";const t=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!t||n in t)return"";for(let r=0;r<vi.length;r++)if(ol(n,vi[r])in t)return vi[r];return""}function ol(e,n){return n?"".concat(n).concat(xb(e)):e}function gb(e,n){return n?"-".concat(n.toLowerCase(),"-").concat(e):e}function xb(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}ln.default=il();Object.defineProperty(je,"__esModule",{value:!0});je.addClassName=ll;je.addEvent=wb;je.addUserSelectStyles=Eb;je.createCSSTransform=Tb;je.createSVGTransform=kb;je.getTouch=Nb;je.getTouchIdentifier=Mb;je.getTranslation=jo;je.innerHeight=jb;je.innerWidth=Cb;je.matchesSelector=al;je.matchesSelectorAndParentsTo=yb;je.offsetXYFromParent=Ib;je.outerHeight=$b;je.outerWidth=Sb;je.removeClassName=cl;je.removeEvent=_b;je.removeUserSelectStyles=Ab;var at=$t,ws=vb(ln);function sl(e){if(typeof WeakMap!="function")return null;var n=new WeakMap,t=new WeakMap;return(sl=function(r){return r?t:n})(e)}function vb(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=sl(n);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r}let br="";function al(e,n){return br||(br=(0,at.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,at.isFunction)(e[t])})),(0,at.isFunction)(e[br])?e[br](n):!1}function yb(e,n,t){let r=e;do{if(al(r,n))return!0;if(r===t)return!1;r=r.parentNode}while(r);return!1}function wb(e,n,t,r){if(!e)return;const i=w({capture:!0},r);e.addEventListener?e.addEventListener(n,t,i):e.attachEvent?e.attachEvent("on"+n,t):e["on"+n]=t}function _b(e,n,t,r){if(!e)return;const i=w({capture:!0},r);e.removeEventListener?e.removeEventListener(n,t,i):e.detachEvent?e.detachEvent("on"+n,t):e["on"+n]=null}function $b(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,at.int)(t.borderTopWidth),n+=(0,at.int)(t.borderBottomWidth),n}function Sb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n+=(0,at.int)(t.borderLeftWidth),n+=(0,at.int)(t.borderRightWidth),n}function jb(e){let n=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,at.int)(t.paddingTop),n-=(0,at.int)(t.paddingBottom),n}function Cb(e){let n=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return n-=(0,at.int)(t.paddingLeft),n-=(0,at.int)(t.paddingRight),n}function Ib(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 Tb(e,n){const t=jo(e,n,"px");return{[(0,ws.browserPrefixToKey)("transform",ws.default)]:t}}function kb(e,n){return jo(e,n,"")}function jo(e,n,t){let{x:r,y:i}=e,s="translate(".concat(r).concat(t,",").concat(i).concat(t,")");if(n){const a="".concat(typeof n.x=="string"?n.x:n.x+t),l="".concat(typeof n.y=="string"?n.y:n.y+t);s="translate(".concat(a,", ").concat(l,")")+s}return s}function Nb(e,n){return e.targetTouches&&(0,at.findInArray)(e.targetTouches,t=>n===t.identifier)||e.changedTouches&&(0,at.findInArray)(e.changedTouches,t=>n===t.identifier)}function Mb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Eb(e){if(!e)return;let n=e.getElementById("react-draggable-style-el");n||(n=e.createElement("style"),n.type="text/css",n.id="react-draggable-style-el",n.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,n.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,e.getElementsByTagName("head")[0].appendChild(n)),e.body&&ll(e.body,"react-draggable-transparent-selection")}function Ab(e){if(e)try{if(e.body&&cl(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const n=(e.defaultView||window).getSelection();n&&n.type!=="Caret"&&n.removeAllRanges()}}catch(n){}}function ll(e,n){e.classList?e.classList.add(n):e.className.match(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)")))||(e.className+=" ".concat(n))}function cl(e,n){e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(n,"(?!\\S)"),"g"),"")}var St={};Object.defineProperty(St,"__esModule",{value:!0});St.canDragX=Lb;St.canDragY=Bb;St.createCoreData=Pb;St.createDraggableData=Fb;St.getBoundPosition=zb;St.getControlPosition=Rb;St.snapToGrid=Ob;var rt=$t,yn=je;function zb(e,n,t){if(!e.props.bounds)return[n,t];let{bounds:r}=e.props;r=typeof r=="string"?r:Db(r);const i=Co(e);if(typeof r=="string"){const{ownerDocument:s}=i,a=s.defaultView;let l;if(r==="parent"?l=i.parentNode:l=s.querySelector(r),!(l instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const c=l,h=a.getComputedStyle(i),u=a.getComputedStyle(c);r={left:-i.offsetLeft+(0,rt.int)(u.paddingLeft)+(0,rt.int)(h.marginLeft),top:-i.offsetTop+(0,rt.int)(u.paddingTop)+(0,rt.int)(h.marginTop),right:(0,yn.innerWidth)(c)-(0,yn.outerWidth)(i)-i.offsetLeft+(0,rt.int)(u.paddingRight)-(0,rt.int)(h.marginRight),bottom:(0,yn.innerHeight)(c)-(0,yn.outerHeight)(i)-i.offsetTop+(0,rt.int)(u.paddingBottom)-(0,rt.int)(h.marginBottom)}}return(0,rt.isNum)(r.right)&&(n=Math.min(n,r.right)),(0,rt.isNum)(r.bottom)&&(t=Math.min(t,r.bottom)),(0,rt.isNum)(r.left)&&(n=Math.max(n,r.left)),(0,rt.isNum)(r.top)&&(t=Math.max(t,r.top)),[n,t]}function Ob(e,n,t){const r=Math.round(n/e[0])*e[0],i=Math.round(t/e[1])*e[1];return[r,i]}function Lb(e){return e.props.axis==="both"||e.props.axis==="x"}function Bb(e){return e.props.axis==="both"||e.props.axis==="y"}function Rb(e,n,t){const r=typeof n=="number"?(0,yn.getTouch)(e,n):null;if(typeof n=="number"&&!r)return null;const i=Co(t),s=t.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,yn.offsetXYFromParent)(r||e,s,t.props.scale)}function Pb(e,n,t){const r=!(0,rt.isNum)(e.lastX),i=Co(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 Fb(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 Db(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Co(e){const n=e.findDOMNode();if(!n)throw new Error("<DraggableCore>: Unmounted during event!");return n}var ti={},ni={};Object.defineProperty(ni,"__esModule",{value:!0});ni.default=Hb;function Hb(){}Object.defineProperty(ti,"__esModule",{value:!0});ti.default=void 0;var yi=Wb(M),Je=Io(Rs),Vb=Io(Zi),Oe=je,Rt=St,wi=$t,Rn=Io(ni);function Io(e){return e&&e.__esModule?e:{default:e}}function ul(e){if(typeof WeakMap!="function")return null;var n=new WeakMap,t=new WeakMap;return(ul=function(r){return r?t:n})(e)}function Wb(e,n){if(!n&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var t=ul(n);if(t&&t.has(e))return t.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)){var a=i?Object.getOwnPropertyDescriptor(e,s):null;a&&(a.get||a.set)?Object.defineProperty(r,s,a):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r}function We(e,n,t){return n=Gb(n),n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Gb(e){var n=Ub(e,"string");return typeof n=="symbol"?n:String(n)}function Ub(e,n){if(typeof e!="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,n||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}const mt={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let Pt=mt.mouse,ri=class extends yi.Component{constructor(){super(...arguments),We(this,"dragging",!1),We(this,"lastX",NaN),We(this,"lastY",NaN),We(this,"touchIdentifier",null),We(this,"mounted",!1),We(this,"handleDragStart",n=>{if(this.props.onMouseDown(n),!this.props.allowAnyClick&&typeof n.button=="number"&&n.button!==0)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=t;if(this.props.disabled||!(n.target instanceof r.defaultView.Node)||this.props.handle&&!(0,Oe.matchesSelectorAndParentsTo)(n.target,this.props.handle,t)||this.props.cancel&&(0,Oe.matchesSelectorAndParentsTo)(n.target,this.props.cancel,t))return;n.type==="touchstart"&&n.preventDefault();const i=(0,Oe.getTouchIdentifier)(n);this.touchIdentifier=i;const s=(0,Rt.getControlPosition)(n,i,this);if(s==null)return;const{x:a,y:l}=s,c=(0,Rt.createCoreData)(this,a,l);(0,Rn.default)("DraggableCore: handleDragStart: %j",c),(0,Rn.default)("calling",this.props.onStart),!(this.props.onStart(n,c)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,Oe.addUserSelectStyles)(r),this.dragging=!0,this.lastX=a,this.lastY=l,(0,Oe.addEvent)(r,Pt.move,this.handleDrag),(0,Oe.addEvent)(r,Pt.stop,this.handleDragStop))}),We(this,"handleDrag",n=>{const t=(0,Rt.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let l=r-this.lastX,c=i-this.lastY;if([l,c]=(0,Rt.snapToGrid)(this.props.grid,l,c),!l&&!c)return;r=this.lastX+l,i=this.lastY+c}const s=(0,Rt.createCoreData)(this,r,i);if((0,Rn.default)("DraggableCore: handleDrag: %j",s),this.props.onDrag(n,s)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch(l){const c=document.createEvent("MouseEvents");c.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(c)}return}this.lastX=r,this.lastY=i}),We(this,"handleDragStop",n=>{if(!this.dragging)return;const t=(0,Rt.getControlPosition)(n,this.touchIdentifier,this);if(t==null)return;let{x:r,y:i}=t;if(Array.isArray(this.props.grid)){let c=r-this.lastX||0,h=i-this.lastY||0;[c,h]=(0,Rt.snapToGrid)(this.props.grid,c,h),r=this.lastX+c,i=this.lastY+h}const s=(0,Rt.createCoreData)(this,r,i);if(this.props.onStop(n,s)===!1||this.mounted===!1)return!1;const l=this.findDOMNode();l&&this.props.enableUserSelectHack&&(0,Oe.removeUserSelectStyles)(l.ownerDocument),(0,Rn.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,l&&((0,Rn.default)("DraggableCore: Removing handlers"),(0,Oe.removeEvent)(l.ownerDocument,Pt.move,this.handleDrag),(0,Oe.removeEvent)(l.ownerDocument,Pt.stop,this.handleDragStop))}),We(this,"onMouseDown",n=>(Pt=mt.mouse,this.handleDragStart(n))),We(this,"onMouseUp",n=>(Pt=mt.mouse,this.handleDragStop(n))),We(this,"onTouchStart",n=>(Pt=mt.touch,this.handleDragStart(n))),We(this,"onTouchEnd",n=>(Pt=mt.touch,this.handleDragStop(n)))}componentDidMount(){this.mounted=!0;const n=this.findDOMNode();n&&(0,Oe.addEvent)(n,mt.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const n=this.findDOMNode();if(n){const{ownerDocument:t}=n;(0,Oe.removeEvent)(t,mt.mouse.move,this.handleDrag),(0,Oe.removeEvent)(t,mt.touch.move,this.handleDrag),(0,Oe.removeEvent)(t,mt.mouse.stop,this.handleDragStop),(0,Oe.removeEvent)(t,mt.touch.stop,this.handleDragStop),(0,Oe.removeEvent)(n,mt.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,Oe.removeUserSelectStyles)(t)}}findDOMNode(){var n,t;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(t=this.props)===null||t===void 0||(t=t.nodeRef)===null||t===void 0?void 0:t.current:Vb.default.findDOMNode(this)}render(){return yi.cloneElement(yi.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};ti.default=ri;We(ri,"displayName","DraggableCore");We(ri,"propTypes",{allowAnyClick:Je.default.bool,children:Je.default.node.isRequired,disabled:Je.default.bool,enableUserSelectHack:Je.default.bool,offsetParent:function(e,n){if(e[n]&&e[n].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Je.default.arrayOf(Je.default.number),handle:Je.default.string,cancel:Je.default.string,nodeRef:Je.default.object,onStart:Je.default.func,onDrag:Je.default.func,onStop:Je.default.func,onMouseDown:Je.default.func,scale:Je.default.number,className:wi.dontSetMe,style:wi.dontSetMe,transform:wi.dontSetMe});We(ri,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return c.default}}),e.default=void 0;var n=m(M),t=u(Rs),r=u(Zi),i=u(db),s=je,a=St,l=$t,c=u(ti),h=u(ni);function u(C){return C&&C.__esModule?C:{default:C}}function d(C){if(typeof WeakMap!="function")return null;var g=new WeakMap,f=new WeakMap;return(d=function(b){return b?f:g})(C)}function m(C,g){if(!g&&C&&C.__esModule)return C;if(C===null||typeof C!="object"&&typeof C!="function")return{default:C};var f=d(g);if(f&&f.has(C))return f.get(C);var b={},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in C)if(x!=="default"&&Object.prototype.hasOwnProperty.call(C,x)){var N=p?Object.getOwnPropertyDescriptor(C,x):null;N&&(N.get||N.set)?Object.defineProperty(b,x,N):b[x]=C[x]}return b.default=C,f&&f.set(C,b),b}function _(){return _=Object.assign?Object.assign.bind():function(C){for(var g=1;g<arguments.length;g++){var f=arguments[g];for(var b in f)Object.prototype.hasOwnProperty.call(f,b)&&(C[b]=f[b])}return C},_.apply(this,arguments)}function S(C,g,f){return g=j(g),g in C?Object.defineProperty(C,g,{value:f,enumerable:!0,configurable:!0,writable:!0}):C[g]=f,C}function j(C){var g=I(C,"string");return typeof g=="symbol"?g:String(g)}function I(C,g){if(typeof C!="object"||C===null)return C;var f=C[Symbol.toPrimitive];if(f!==void 0){var b=f.call(C,g||"default");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(C)}class k extends n.Component{static getDerivedStateFromProps(g,f){let{position:b}=g,{prevPropsPosition:p}=f;return b&&(!p||b.x!==p.x||b.y!==p.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:b,prevPropsPosition:p}),{x:b.x,y:b.y,prevPropsPosition:w({},b)}):null}constructor(g){super(g),S(this,"onDragStart",(f,b)=>{if((0,h.default)("Draggable: onDragStart: %j",b),this.props.onStart(f,(0,a.createDraggableData)(this,b))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(f,b)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",b);const p=(0,a.createDraggableData)(this,b),x={x:p.x,y:p.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:O}=x;x.x+=this.state.slackX,x.y+=this.state.slackY;const[F,$]=(0,a.getBoundPosition)(this,x.x,x.y);x.x=F,x.y=$,x.slackX=this.state.slackX+(z-x.x),x.slackY=this.state.slackY+(O-x.y),p.x=x.x,p.y=x.y,p.deltaX=x.x-this.state.x,p.deltaY=x.y-this.state.y}if(this.props.onDrag(f,p)===!1)return!1;this.setState(x)}),S(this,"onDragStop",(f,b)=>{if(!this.state.dragging||this.props.onStop(f,(0,a.createDraggableData)(this,b))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",b);const x={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:z,y:O}=this.props.position;x.x=z,x.y=O}this.setState(x)}),this.state={dragging:!1,dragged:!1,x:g.position?g.position.x:g.defaultPosition.x,y:g.position?g.position.y:g.defaultPosition.y,prevPropsPosition:w({},g.position),slackX:0,slackY:0,isElementSVG:!1},g.position&&(g.onDrag||g.onStop)}componentDidMount(){typeof window.SVGElement!="undefined"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var g,f;return(g=(f=this.props)===null||f===void 0||(f=f.nodeRef)===null||f===void 0?void 0:f.current)!==null&&g!==void 0?g:r.default.findDOMNode(this)}render(){const ct=this.props,{axis:g,bounds:f,children:b,defaultPosition:p,defaultClassName:x,defaultClassNameDragging:N,defaultClassNameDragged:z,position:O,positionOffset:F,scale:$}=ct,E=cr(ct,["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"]);let T={},P=null;const A=!!!O||this.state.dragging,V=O||p,re={x:(0,a.canDragX)(this)&&A?this.state.x:V.x,y:(0,a.canDragY)(this)&&A?this.state.y:V.y};this.state.isElementSVG?P=(0,s.createSVGTransform)(re,F):T=(0,s.createCSSTransform)(re,F);const Ae=(0,i.default)(b.props.className||"",x,{[N]:this.state.dragging,[z]:this.state.dragged});return n.createElement(c.default,_({},E,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(b),{className:Ae,style:w(w({},b.props.style),T),transform:P}))}}e.default=k,S(k,"displayName","Draggable"),S(k,"propTypes",B(w({},c.default.propTypes),{axis:t.default.oneOf(["both","x","y","none"]),bounds:t.default.oneOfType([t.default.shape({left:t.default.number,right:t.default.number,top:t.default.number,bottom:t.default.number}),t.default.string,t.default.oneOf([!1])]),defaultClassName:t.default.string,defaultClassNameDragging:t.default.string,defaultClassNameDragged:t.default.string,defaultPosition:t.default.shape({x:t.default.number,y:t.default.number}),positionOffset:t.default.shape({x:t.default.oneOfType([t.default.number,t.default.string]),y:t.default.oneOfType([t.default.number,t.default.string])}),position:t.default.shape({x:t.default.number,y:t.default.number}),className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe})),S(k,"defaultProps",B(w({},c.default.defaultProps),{axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1}))})(nl);const{default:dl,DraggableCore:Kb}=nl;ei.exports=dl;ei.exports.default=dl;ei.exports.DraggableCore=Kb;var Yb=ei.exports,qb=Cl(Yb);const Ft={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 Zb({stateObjName:e,propertyPath:n,objectPaths:t,id:r,fldKey:i,canSetVariable:s=!0}){const[a,l]=M.useState({parent:"Solid",child:"Solid",color:"Custom"}),{css:c}=ne(),{element:h,fieldKey:u}=xe(),{object:d,paths:m}=t,[_,S]=M.useState(),[j,I]=M.useState(),[k,C]=M.useState({type:"auto",w:"0px",h:"0px"}),[g,f]=M.useState({type:"initial",x:"0px",y:"0px",value:"center"}),[b,p]=M.useState("initial"),[x,N]=Y(he),z=ie(Re),[O,F]=Y(Jn),[$,E]=Y(Il),T=Tl(Bo),[P,H]=Y(Bo),A=Hr(d,{styles:x}),V=[{label:"Custom",icn:"Custom color",show:["icn"],tip:"Custom color"},{label:"Var",icn:"Variables",show:["icn"],tip:"Variable color"}],{"--global-bg-color":re,"--global-fld-bdr-clr":Ae,"--global-fld-bg-color":ct,"--global-font-color":En,"--global-accent-color":cn}=O,Ne=(R,Z)=>{switch(e){case"themeColors":F(oe=>D(oe,be=>{be[`${n}`]=Z})),K(X(h,u,n,Z,{themeColors:W("themeColors")}));break;case"themeVars":z(oe=>D(oe,be=>{be[`${n}`]=Z})),K(X(h,u,n,Z,{themeVars:W("themeVars")}));break;case"styles":N(oe=>D(oe,be=>{var tt;let et=Z;const He=ae(be,R);((tt=He==null?void 0:He.match(/(!important)/gi))==null?void 0:tt[0])&&(et=`${Z} !important`),me(be,R,et)})),K(X(h,u,R,Z,{styles:W("styles")}));break}},Lt=R=>{Ne(m["background-image"],R.style),I(R.style)},Pe=R=>{if(typeof R=="object")S(R),G(R.h,R.s,R.v,R.a);else{const Z=`var(${R})`,oe=O[R];if(oe){const[be,et,He,gt]=oe.match(/[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)/gi),[tt,Ct,Ve,ft]=Nl(be,et,He,gt);S({h:tt,s:Ct,v:Ve,a:ft}),G(tt,Ct,Ve,ft,Z)}else G("","","","",Z)}},Yt=R=>{const Z={h:0,s:0,v:0,a:0};R.target.checked?Pe(Z):Pe("--global-accent-color")},J=()=>(_==null?void 0:_.h)===0&&(_==null?void 0:_.s)===0&&(_==null?void 0:_.v)===0&&(_==null?void 0:_.a)===0,G=(R,Z,oe,be,et="")=>{const[He,gt,tt,Ct,Ve]=Fs(R,Z,oe,be);switch(e){case"themeColors":F(ft=>D(ft,bt=>{bt[n]=Ve})),K(X(h,u,n,Ve,{themeColors:W("themeColors")}));break;case"themeVars":z(ft=>D(ft,bt=>{bt[n]=Ve})),K(X(h,u,n,Ve,{themeVars:W("themeVars")}));break;case"styles":N(ft=>D(ft,bt=>{var Eo;let ii=Ve;const vl=Array.isArray(m)?m[0]:n,oi=ae(bt,vl),si=(Eo=oi==null?void 0:oi.match(/(!important)/gi))==null?void 0:Eo[0];si&&(ii=`${ii} !important`);const Mo=et?`${et}${si?" !important":""}`:ii;Array.isArray(m)?m.forEach(yl=>{me(bt,yl,Mo)}):(si?me(bt,m["background-image"]," !important"):me(bt,m["background-image"],""),me(bt,m.background,Mo))})),K(X(h,u,n,et||Ve,{styles:W("styles")}));break}},Ce=R=>{R.stopPropagation(),I(""),Ne(m["background-image"],""),H("")};M.useEffect(()=>{const R=ae(A,m["background-image"]);I(R),S(Wn(ae(A,m.background)))},[]),M.useEffect(()=>(P&&(Ne(m["background-image"],`url(${P})`),I(`url(${P})`)),()=>{T()}),[P]);const ve=R=>{C(Z=>B(w({},Z),{type:R.target.value})),Ne(m["background-size"],`${R.target.value}`)},ht=({target:{value:R}})=>{f(Z=>B(w({},Z),{type:R})),R!=="size"&&R!=="positions"&&Ne(m["background-position"],R)},Ze=R=>{p(R.target.value),Ne(m["background-repeat"],R.target.value)},q=R=>{f(Z=>B(w({},Z),{value:R})),Ne(m["background-position"],R)},fe=R=>{Ne(m["background-image"],`url(${R.target.value})`),I(`url(${R.target.value})`)},Fe=(R,Z,oe)=>{oe===0?(C(be=>B(w({},be),{w:`${R}${Z}`})),Ne(m["background-size"],`${R}${Z} ${k.h}`)):(C(be=>B(w({},be),{h:`${R}${Z}`})),Ne(m["background-size"],`${k.w} ${R}${Z}`))},se=(R,Z,oe)=>{oe===0?(f(be=>B(w({},be),{x:`${R}${Z}`})),Ne(m["background-position"],`${R}${Z} ${g.y}`)):(f(be=>B(w({},be),{y:`${R}${Z}`})),Ne(m["background-position"],`${g.x} ${R}${Z}`))},De=(R,Z)=>{Z==="parent"?l({parent:R,child:"Upload",color:"Custom"}):Z==="child"?l(oe=>B(w({},oe),{child:R})):Z==="color"&&l(oe=>B(w({},oe),{color:R}))},jt=()=>{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();Ne(m["background-image"],`url(${Z.url})`),I(`url(${Z.url})`)}),R.open()}};return o.jsxs("div",{className:c(Q.container),children:[o.jsx(ot,{options:[{label:"Solid"},{label:"Gradient"},{label:"Image"}],onChange:R=>De(R,"parent"),defaultActive:a.parent,wideTab:!0}),o.jsx(Ps,{autoHide:!0,autoHeight:!0,autoHeightMin:200,autoHeightMax:365,children:o.jsxs("div",{className:c(v.mt1),children:[o.jsx(it,{open:a.parent==="Solid",children:s?o.jsxs(o.Fragment,{children:[o.jsx("div",{className:c(Le.mb),children:o.jsx(ot,{square:!0,noShadow:!0,defaultActive:"Custom",options:V,size:60,component:"button",onChange:R=>De(R,"color"),show:["icn"],variant:"lightgray",width:"100%",wideTab:!0})}),o.jsx(it,{open:a.color==="Var",children:o.jsxs("div",{className:c(Le.varClr),children:[o.jsxs("button",{className:`${c(Le.clrItem)} ${c(_==="--global-bg-color"&&Le.active)}`,type:"button",onClick:()=>Pe("--global-bg-color"),"data-testid":`${r}-g-bg-c`,children:[o.jsx(On,{bg:re,className:c(v.mr2)}),o.jsx("span",{children:"Background Color"})]}),o.jsxs("button",{className:c(Le.clrItem,_==="--global-accent-color"&&Le.active),type:"button",onClick:()=>Pe("--global-accent-color"),"data-testid":`${r}-g-a-c`,children:[o.jsx(On,{bg:cn,className:c(v.mr2)}),o.jsx("span",{children:"Background Accent Color"})]}),o.jsxs("button",{className:c(Le.clrItem,_==="--global-font-color"&&Le.active),type:"button",onClick:()=>Pe("--global-font-color"),"data-testid":`${r}-g-f-c`,children:[o.jsx(On,{bg:En,className:c(v.mr2)}),o.jsx("span",{children:"Font Color"})]}),o.jsxs("button",{className:c(Le.clrItem,_==="--global-fld-bdr-clr"&&Le.active),type:"button",onClick:()=>Pe("--global-fld-bdr-clr"),"data-testid":`${r}-g-f-b`,children:[o.jsx(On,{bg:Ae,className:c(v.mr2)}),o.jsx("span",{children:"Field Border Color"})]}),o.jsxs("button",{className:c(Le.clrItem,_==="--global-fld-bg-color"&&Le.active),type:"button",onClick:()=>Pe("--global-fld-bg-color"),"data-testid":`${r}-g-f-bg-c`,children:[o.jsx(On,{bg:ct,className:c(v.mr2)}),o.jsx("span",{children:"Field Background Color"})]})]})}),o.jsx(it,{open:a.color==="Custom",children:o.jsxs("div",{className:c(Le.container,_s.container,_s.preview_wrp),children:[o.jsx("div",{className:c(Le.subContainer),children:o.jsx(Ir,{title:y("Transparant"),action:Yt,isChecked:J(),id:"color-transparant"})}),o.jsx(zi,{showParams:!0,showPreview:!0,onChange:Pe,value:_})]})})]}):o.jsxs("div",{className:c(Le.container),children:[o.jsx("div",{className:c(Le.subContainer),children:o.jsx(Ir,{title:y("Transparant"),action:Yt,isChecked:J(),id:"color-transparant"})}),o.jsx(zi,{showParams:!0,showPreview:!0,onChange:Pe,value:_})]})}),o.jsx(it,{open:a.parent==="Gradient",children:o.jsx(oa,{gradient:kl(j),changeHandler:Lt})}),o.jsx(it,{open:a.parent==="Image",children:o.jsxs(o.Fragment,{children:[o.jsx(ot,{options:[{label:"Upload"},{label:"Link"}],onChange:R=>De(R,"child"),defaultActive:a.child,wideTab:!0}),o.jsxs("div",{className:c(v.mt2,{p:"0px 2px"}),children:[a.child==="Upload"&&o.jsx(sa,{title:"Image",imageSrc:j!=null&&j.match(/(^url\(.+\)$)/)?j==null?void 0:j.replace(/(url\(|\))/gi,""):"",value:j==null?void 0:j.slice(j.lastIndexOf("/")+1,-1),clickAction:jt,clearAction:Ce}),a.child==="Link"&&o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxClm),children:[o.jsxs("div",{className:c({flx:"between"}),children:[o.jsx("span",{className:c(Q.title),children:"URL"}),o.jsx("span",{className:c(Q.title,Q.browse),role:"button",tabIndex:0,onClick:()=>E(!0),onKeyUp:()=>E(!0),children:"Browse"})]}),o.jsx("input",{type:"url",className:c(Q.urlinput,{pr:"30px !important"}),value:j!=null&&j.match(/(^url\(.+\)$)/)?j==null?void 0:j.replace(/(url\(|\))/gi,""):"",onChange:fe,placeholder:"ex: https://www.example.com"})]})}),o.jsxs("div",{className:c(v.mt2),children:[o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Size"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:k.type,name:"",id:"",onChange:ve,className:c(wn.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(it,{open:k.type==="size",children:o.jsx(Jo,{className:c(v.ml6,v.mb2),options:[{label:"W",value:k.w},{label:"H",value:k.h}],unitOptions:["px","%"],valuChangeHandler:Fe})})]}),o.jsxs("div",{className:c(v.mt2),children:[o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Position"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:g.type,name:"",id:"",onChange:ht,className:c(wn.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(it,{open:g.type==="size",children:o.jsx(Jo,{className:c(v.ml6,v.mb2),options:[{label:"X",value:g.x},{label:"Y",value:g.y}],unitOptions:["px","%"],valuChangeHandler:se})}),o.jsx(it,{open:g.type==="positions",children:o.jsxs("div",{className:c(v.flxcb,v.ml6,v.mt2,Q.positioncontainer),children:[o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Te,{msg:"Top Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top left"),onClick:()=>q("top left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Te,{msg:"Top Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top center"),onClick:()=>q("top center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Te,{msg:"Top Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="top right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("top right"),onClick:()=>q("top right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Te,{msg:"Center Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center left"),onClick:()=>q("center left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Te,{msg:"Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center"),onClick:()=>q("center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Te,{msg:"Center Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="center right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("center right"),onClick:()=>q("center right"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem),children:o.jsx(Te,{msg:"Bottom Left",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom left"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom left"),onClick:()=>q("bottom left"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txCenter),children:o.jsx(Te,{msg:"Bottom Center",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom center"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom center"),onClick:()=>q("bottom center"),tabIndex:0,children:" "})})}),o.jsx("div",{className:c(Q.positionitem,v.txRight),children:o.jsx(Te,{msg:"Bottom Right",children:o.jsx("span",{className:c(Q.positiondot,g.value==="bottom right"&&Q.positionDotActive),role:"button",onKeyDown:()=>q("bottom right"),onClick:()=>q("bottom right"),tabIndex:0,children:" "})})})]})})]}),o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Repeat"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:b,name:"",id:"",onChange:Ze,className:c(wn.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 Xb=M.memo(Zb);const _s={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%"}}},Le={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"}},container:{dy:"flex",fd:"column"},subContainer:{m:5,"& span":{fs:12},"& input":{m:0}},color:{w:30,h:30,brs:8,mr:10},bggrid:{bi:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},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)"}},m:{mr:15},mb:{mb:5}};var Jb=""+new URL("bf-530-64.png",import.meta.url).href,Qb=""+new URL("bf-415-66.png",import.meta.url).href,e1=""+new URL("bf-897-67.png",import.meta.url).href,t1=""+new URL("bf-415-66.png",import.meta.url).href;const n1=[{name:"No Style",slug:"noStyle",img:Jb},{name:"Bit Form Default",slug:"bitformDefault",img:t1},{name:"Bit Form Legacy",slug:"bitformLegacy",img:Qb},{name:"Atlassian Theme",slug:"atlassian",img:e1}];function To({fldKey:e}){const{css:n}=ne(),[t,r]=Y(he),i=le(Qn),a=le(Ue)[e].typ,l=[{name:"Checkbox Theme",slug:"individual",img:"",allowedFlds:["check","radio"]}],c=[...n1,...l.filter(m=>m.allowedFlds.includes(a))],h=(m,_,S)=>Xi(m,_,S,{breakpoint:"lg",colorScheme:"light",direction:"ltr"}),u=m=>{const _=e||i,S=D(t,j=>{const I=j.fields[_].fieldType;j.fields[_]=h(m,_,I)});r(S),Wt(e),K(X("",_,"theme",m,{styles:S}))},d=m=>{var S;const _=e||i;return((S=t.fields[_])==null?void 0:S.theme)===m};return o.jsx("div",{className:n(vt.thm_container),children:c.map(m=>o.jsx(To.Card,{name:m.name,applyThemeAction:()=>u(m==null?void 0:m.slug),img:m.img,isActive:d(m==null?void 0:m.slug)},m.name))})}const r1=({name:e,img:n,isActive:t,applyThemeAction:r})=>{const{formType:i,formID:s}=xe(),{css:a}=ne();return o.jsxs("div",{className:a(vt.thm_wrp),children:[o.jsxs("div",{className:a(vt.thm_btn,t&&vt.activeStyle),children:[o.jsxs("div",{"data-thm-ctrl-wrp":!0,className:a(vt.thm_control_wrp),children:[o.jsx(Te,{msg:"Preview",children:o.jsx("button",{type:"button",className:a(vt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(fc,{size:"20"})})}),t?o.jsx(Te,{msg:"Customize theme",children:o.jsx(Ml,{to:`/form/builder/${i}/${s}/theme-customize`,type:"button",className:a(vt.thm_ctrl_btn),"aria-label":"Theme Customize",children:o.jsx(El,{size:"20",stroke:"2.2"})})}):o.jsx(Te,{msg:"Apply Theme",children:o.jsx("button",{type:"button",onClick:r,className:a(vt.thm_ctrl_btn),"aria-label":"Theme Preview",children:o.jsx(bc,{size:"20px"})})})]}),o.jsx("img",{className:a(vt.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(vt.thm_name),children:e})]})};To.Card=r1;const vt={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 i1({stateObjName:e,objectPaths:n,id:t,propertyPath:r}){const{css:i}=ne(),{fieldKey:s,element:a}=xe(),[l,c]=Y(Re),[h,u]=M.useState(),[d,m]=Y(Jn),[_,S]=Y(he),{paths:j}=n;M.useEffect(()=>{var g;switch(e){case"themeColors":const f=ae(d,r);u(Wn(f));break;case"themeVars":const b=ae(l,r);u(Wn(b));break;case"styles":const p=Array.isArray(r)?r[0]:r,x=ae(_,p);let N=x;if(((g=x==null?void 0:x.match(/var/gi))==null?void 0:g[0])==="var"){const O=x==null?void 0:x.replace(/\(|var|,.*|\)/gi,"");N=l[O]?l[O]:d[O]}u(Wn(N));break;case"field-accent-color":const z=ae(d,r);u(Wn(z));break}},[t]);const I=(g,f,b,p,x)=>{const[N,z,O,F,$]=Fs(f,b,p,x);switch(e){case"themeColors":m(E=>D(E,T=>{T[g]=$})),K(X(a,s,g,$,{themeColors:W("themeColors")}));break;case"themeVars":c(E=>D(E,T=>{T[g]=$})),K(X(a,s,g,$,{themeVars:W("themeVars")}));break;case"styles":S(E=>D(E,T=>{var V;let P=$;const H=ae(T,g);((V=H==null?void 0:H.match(/!important/gi))==null?void 0:V[0])&&(P=`${P} !important`),me(T,g,P)})),K(X(a,s,g,$,{styles:W("styles")}));break}},k=(g,f)=>{switch(e){case"themeColors":m(b=>D(b,p=>{p[g]=f})),K(X(a,s,g,f,{themeColors:W("themeColors")}));break;case"themeVars":c(b=>D(b,p=>{p[g]=f})),K(X(a,s,g,f,{themeVars:W("themeVars")}));break;case"styles":S(b=>D(b,p=>{var O;let x=f;const N=ae(p,g);((O=N==null?void 0:N.match(/!important/gi))==null?void 0:O[0])&&(x=`${x} !important`),me(p,g,x)})),K(X(a,s,g,f,{styles:W("styles")}));break}},C=g=>{u(g);const f=Al(g.str);I(j["icon-color"],g.h,g.s,g.v,g.a),k(j.filter,f.filter)};return o.jsx("div",{className:i(s1.preview_wrp),children:o.jsx(zi,{showParams:!0,showPreview:!0,onChange:C,value:h})})}var o1=M.memo(i1);const s1={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"}},color:{w:30,h:30,brs:8,mr:10},bggrid:{bi:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},varClr:{my:5},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)"}},m:{mr:15},mb:{mb:5}};function $s({title:e="Filters",objectPaths:n,id:t}){var F;const{css:r}=ne(),{fieldKey:i,element:s}=xe(),[a,l]=Y(he),[c,h]=Y(Jn),{object:u,paths:d}=n,m=()=>Hr(u,{styles:a,themeColors:c}),_=$=>{let E={};switch($){case"brightness":case"grayscale":case"contrast":case"invert":case"sepia":E={value:`${$}(100%)`,units:["","%"],minValue:0,maxValue:100};break;case"blur":E={value:`${$}(2px)`,units:["","px","em","rem"],minValue:.1,maxValue:10};break;case"drop-shadow":E={value:`${$}(8px 8px 10px #878787)`,units:["px"],minValue:-200,maxValue:200};break;case"hue-rotate":E={value:`${$}(90deg)`,units:["deg"],minValue:-360,maxValue:360};break;case"saturate":case"opacity":E={value:`${$}(30%)`,units:["","%"],minValue:0,maxValue:100};break;default:E={value:"none",units:[""],minValue:0,maxValue:0}}return E};let S,j=!1;if(u==="themeColors")S=c[d.filter];else{const $=ae(a,d==null?void 0:d.filter);S=Ti(c,$)}const I=$=>($!=null&&$.match(/(!important)/gi)&&($=$==null?void 0:$.replace(/(!important)/gi,""),j=!0),$);S=I(S);const k=$=>j?$!=null&&$.match(/(!important)/gi)?$:`${$}!important`:$;S=S==null?void 0:S.replace("none","");const C=S!=null&&S.trim()?(F=S==null?void 0:S.trim())==null?void 0:F.split(/\B\s+(?![^(]*\))/gi):[],g=C==null?void 0:C.map($=>{var V;const E=$==null?void 0:$.slice(0,$==null?void 0:$.indexOf("("));let T=(V=$==null?void 0:$.slice($.indexOf("(")+1,$.indexOf(")")))==null?void 0:V.trim();const P=te(T)||"";T.indexOf(" ")<0&&(T=we(T));const H=_(E);let A=E.replace("-"," ");return A=A.replace(A.slice(0,1),A.slice(0,1).toUpperCase()),{title:A,name:E,value:T,unit:P,options:H.units,min:H.minValue,max:H.maxValue}}),f=g.map($=>$.name),b=($,{value:E,unit:T},P)=>{let H=ae(m(),d.filter);H=I(S);const A=H.indexOf($),V=H.indexOf(")",A)+1;if(T||(T=""),$==="drop-shadow"){const re=H.slice(H.indexOf("(",A)+1,V-1).split(/\s(?![^(]*\))/gi);re[P]=`${E}${T}`,H=H.replace(H.slice(A,V),`${$}(${re.join(" ")})`)}else H=H.replace(H.slice(A,V),`${$}(${E}${T})`);H=k(H),Xt(u,d.filter,H==null?void 0:H.trim(),{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,H==null?void 0:H.trim(),{[u]:W(u)}))},p=($,E,T,P,H)=>{let A=ae(m(),d.filter);A=I(S);const V=A.indexOf($),re=A.indexOf(")",V)+1;if(E||(E=""),$==="drop-shadow"){const Ae=A.slice(A.indexOf("(",V)+1,re-1).split(/\s(?![^(]*\))/gi),ct=nn(E,T,H);Ae[P]=`${ct}${E}`,A=A.replace(A.slice(V,re),`${$}(${Ae.join(" ")})`)}else{const Ae=nn(E,T,H);A=A.replace(A.slice(V,re),`${$}(${Ae}${E})`)}A=k(A),Xt(u,d.filter,A.trim(),{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,A==null?void 0:A.trim(),{[u]:W(u)}))},x=$=>{let E=ae(m(),d.filter);E=I(E);const T=E.indexOf($),P=E.indexOf(")",T)+1;E=E.replace(E.slice(T,P),"").trim(),E=k(E),Xt(u,d.filter,E,{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,E,{[u]:W(u)}))},N=$=>{const E=_($).value;let T=ae(m(),d.filter);T=Ti(m(),T),T=I(T);let P;E==="none"?P=`${E}`:P=`${T==null?void 0:T.replace("none","")} ${E}`.trim(),P=k(P),Xt(u,d.filter,P,{setThemeColors:h,setStyles:l}),K(X(s,i,d.filter,P,{[u]:W(u)}))},O=Object.keys({blur:{},brightness:{},contrast:{},"drop-shadow":{},grayscale:{},"hue-rotate":{},invert:{},opacity:{},saturate:{},sepia:{},none:{}}).filter($=>!(f!=null&&f.includes($)));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(ia,{id:"fltr-prop",properties:O,setProperty:N,classNames:r({mt:"0px !important"})})]}),g.map($=>{if($.name==="drop-shadow"){const E=$.value.split(/\s(?![^(]*\))/gi);return o.jsxs("div",{children:[o.jsx(en,{className:r(pn.accordionHead,pn.containerHover),open:!0,titleCls:r({fw:500}),icnStrok:1,title:"Drop Shadow",actionComponent:o.jsx("button",{title:"Clear Value",onClick:()=>x($.name),className:`${r(v.stylePropDeleteBtn,{rt:-14})} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(_n,{})}),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(we(E[0])||0),unit:te(E[0])||"px",inputHandler:T=>b("drop-shadow",T,0),sizeHandler:({unitKey:T,unitValue:P})=>p("drop-shadow",T,P,0,te(E[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(we(E[1])||0),unit:te(E[1])||"px",inputHandler:T=>b("drop-shadow",T,1),sizeHandler:({unitKey:T,unitValue:P})=>p("drop-shadow",T,P,1,te(E[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(we(E[2])||0),unit:te(E[2])||"px",inputHandler:T=>b("drop-shadow",T,2),sizeHandler:({unitKey:T,unitValue:P})=>p("drop-shadow",T,P,2,te(E[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(pn.input,pn.colorInput),onChange:T=>b("drop-shadow",{value:T.target.value},3),value:E[3],"data-testid":`${t}-drop-shadow-color`})]})]})},$.name),o.jsx("div",{className:r(pn.divider)})]},$.name)}return o.jsxs("div",{className:r(v.flxcb,v.mb2,v.mt2,pn.containerHover),children:[o.jsx("span",{className:r(v.fs12,v.fw500,{w:85}),children:$.title}),o.jsxs("div",{className:r(v.flxcb),children:[o.jsx(ke,{className:r({mr:15}),width:"120px",value:Number($.value),unit:$.unit,inputHandler:E=>b($.name,E),sizeHandler:({unitKey:E,unitValue:T})=>p($.name,E,T,"",$.unit),options:$.options,min:$.min,max:$.max,dataTestId:`${t}-${$.name}`}),o.jsx("button",{title:"Clear Value",onClick:()=>x($.name),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button","aria-label":"Clear Filter","data-testid":`${t}-clear-filter`,children:o.jsx(_n,{})})]})]})})]})}const pn={accordionHead:{w:220,p:3,fw:500,brs:8,fs:12},divider:{bb:"1px solid var(--white-0-83)",mx:3,my:3},clearBtn:{brs:"50%",w:20,h:20,b:"none",flx:"center",bd:"transparent",cr:"var(--white-0-50)",curp:1,":hover":{cr:"var(--black-0)"}},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 a1({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 l1={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 gn({stateObjName:e,propertyPath:n,id:t}){const r=le(mc),i=le(Gr),s=le(gc),[a,l]=Y(Jn),[c,h]=Y(Re),[u,d]=Y(he),{css:m}=ne();let _=!1;switch(e){case"styles":if(Array.isArray(n))n.forEach(I=>{const k=ae(u,I),C=ae(s,I);C!==""&&k!==C&&(_=!0)});else{const I=ae(u,n),k=ae(s,n);k!==""&&I!==k&&(_=!0)}break;case"themeVars":Array.isArray(n)?n.forEach(I=>{i!=null&&i[I]&&(c==null?void 0:c[I])!==(i==null?void 0:i[I])&&(_=!0)}):i!=null&&i[n]&&(c==null?void 0:c[n])!==(i==null?void 0:i[n])&&(_=!0);break;case"themeColors":Array.isArray(n)?n.forEach(I=>{r!=null&&r[I]&&(r==null?void 0:r[I])!==(a==null?void 0:a[I])&&(_=!0)}):r!=null&&r[n]&&(r==null?void 0:r[n])!==(a==null?void 0:a[n])&&(_=!0);break}const S=I=>{switch(e){case"themeVars":if(!i[I])return;h(C=>D(C,g=>{g[I]=i[I]}));break;case"themeColors":if(!r[I])return;l(C=>D(C,g=>{g[I]=r[I]}));break;case"styles":const k=s&&Object.keys(s).length>0&&ae(s,I);k&&d(C=>D(C,g=>{me(g,I,k)}));break}},j=()=>{Array.isArray(n)?n.forEach(I=>S(I)):S(n)};return _?o.jsx(Te,{msg:"Reset style",children:o.jsx("button",{onClick:j,className:m(l1.resetBtn),type:"button","data-testid":`${t}-reset-style`,children:o.jsx(a1,{size:"20"})})}):""}function Et({value:e,unitOption:n,title:t,onChange:r=()=>{},className:i,stateObjName:s,propertyPath:a,width:l,dataTestId:c,radius:h}){const{css:u}=ne();let d=((e==null?void 0:e.replace(/!important/gi,""))||"0px 0px 0px 0px").trim().split(" ");if(d.length===4){const g=d.filter((f,b,p)=>p.indexOf(f)===b);g.length===1&&(d=g)}const[m,_]=M.useState(d.length===1?"All":"Individual"),S=g=>g&&we(g)||0,j=g=>g&&te(g)||"px",I=[{label:"All",icn:o.jsx(Qo,{stroke:"1.7",size:14}),show:["icn"],tip:"All Side"},{label:"Individual",icn:h?o.jsx($c,{size:20}):o.jsx(Ln,{stroke:"1.7",size:"15"}),show:["icn"],tip:"Individual Side"}];d.length===1&&m==="All"&&(d=[d[0]]),d.length===1&&m==="Individual"&&(d=Array(4).fill(d[0])),d.length===2&&(d=[d[0],d[1],d[0],d[1]]),d.length===3&&(d=[d[0],d[1],d[2],d[1]]);const k=({value:g,unit:f,id:b})=>{const p=f==="var"?"px":f,x=te(d[b]),N=nn(p,g,x);d[b]=N+p;let z;m==="All"?z=`${d[0]}`:z=`${d[0]} ${d[1]} ${d[2]} ${d[3]}`,r(z)},C=g=>{g==="All"?d=[d[0]]:d=Array(4).fill(d[0]),_(g)};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(gn,{stateObjName:s,propertyPath:a}),o.jsx(ot,{square:!0,defaultActive:m,options:I,values:60,component:"button",onChange:g=>C(g),show:["icn"],variant:"lightgray",noShadow:!0})]})]}),o.jsxs("div",{className:u(qt.segmentcontainer),children:[o.jsx(it,{open:m==="All",children:o.jsx("div",{className:u({p:2}),children:o.jsx(ke,{min:"0",inputHandler:k,sizeHandler:({unitKey:g,unitValue:f,id:b})=>k({value:f,unit:g,id:b}),id:"0",label:o.jsx(Qo,{size:14}),value:d[0]&&we(d[0]),unit:d[0]&&te(d[0]),options:n,width:l||"110px",dataTestId:`${c}-all`})})}),o.jsx(it,{open:m==="Individual",children:o.jsxs("div",{className:u(v.flxc,{flxp:"wrap",jc:"end",p:2}),children:[o.jsx(ke,{min:"0",inputHandler:k,sizeHandler:({unitKey:g,unitValue:f,id:b})=>k({value:f,unit:g,id:b}),id:"0",label:h?o.jsx(dr,{size:12,className:u({tm:"rotate(90deg)"})}):o.jsx(Ln,{size:"14",variant:"top",className:u(qt.blueTxt)}),width:"100px",value:S(d[0]),unit:j(d[0]),options:n,className:u(v.mr1,v.mb1),dataTestId:`${c}-top`}),o.jsx(ke,{min:"0",inputHandler:k,sizeHandler:({unitKey:g,unitValue:f,id:b})=>k({value:f,unit:g,id:b}),id:"1",label:h?o.jsx(dr,{size:12,className:u({tm:"rotate(180deg)"})}):o.jsx(Ln,{size:"14",variant:"right",className:u(qt.blueTxt)}),width:"100px",value:S(d[1]),unit:j(d[1]),options:n,className:u(v.mb1),dataTestId:`${c}-right`}),o.jsx(ke,{min:"0",inputHandler:k,sizeHandler:({unitKey:g,unitValue:f,id:b})=>k({value:f,unit:g,id:b}),id:"3",label:h?o.jsx(dr,{size:12,className:u({tm:"rotate(0deg)"})}):o.jsx(Ln,{size:"14",variant:"left",className:u(qt.blueTxt)}),width:"100px",value:S(d[3]),unit:j(d[3]),options:n,className:u(v.mr1),dataTestId:`${c}-bottom`}),o.jsx(ke,{min:"0",inputHandler:k,sizeHandler:({unitKey:g,unitValue:f,id:b})=>k({value:f,unit:g,id:b}),id:"2",label:h?o.jsx(dr,{size:12,className:u({tm:"rotate(270deg)"})}):o.jsx(Ln,{size:"14",variant:"bottom",className:u(qt.blueTxt)}),width:"100px",value:S(d[2]),unit:j(d[2]),options:n,dataTestId:`${c}-left`})]})})]})]})}const qt={container:{flx:"center-between"},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 c1(){const{element:e,fieldKey:n}=xe(),[t,r]=Y(he),{_frm:i}=t.form,s=c=>{r(h=>D(h,u=>{u.form._frm.margin=`${c}`})),K(X(e,n,"Form Wrapper Margin",c,{styles:W("styles")}))},a=c=>{r(h=>D(h,u=>{u.form._frm.padding=`${c}`})),K(X(e,n,"Form Wrapper Padding",c,{styles:W("styles")}))},l=c=>{r(h=>D(h,u=>{u.form._frm[c]="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(Et,{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:c=>s(c),unitOption:["px","em","rem"]}),o.jsx(Et,{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:c=>a(c),unitOption:["px","em","rem"]})]})}function u1({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}=ne(),{fieldKey:s,element:a}=xe(),l=le(Re),[c,h]=Y(he);let u="";const d=()=>{var b;let f=ae(c,e);if(((b=f==null?void 0:f.match(/var/gi))==null?void 0:b[0])==="var"){const p=f.replace(/\(|var|,.*|\)/gi,"");f=l[p]}return f!=null&&f.match(/(!important)/gi)&&(u="!important",f=f.replace(/(!important)/gi,"")),f},m=f=>f&&(f==null?void 0:f.split(/,(?![^(]*\))/gi))||[],_=m(d()),S=p1(_,t),j=(f,b,p)=>f==="color"?b||"hsla(0, 0%, 0%, 100)":f==="inset"?b||"":`${b||"0"}${p===void 0?"px":p}`,I=(f,{value:b,unit:p},x)=>{const N=Object.entries(S[x]).map(([O,F])=>O===f?j(f,b,p):j(O,F,"")).join(" ");_[x]=N;let z=_.toString();u&&(z=`${z} !important`),h(O=>D(O,F=>{me(F,e,z)})),K(X(a,s,e,z,{styles:W("styles")}))},k=(f,b,p,x,N)=>{if(p){const z=te(x),O=nn(b,p,z);I(f,{value:O,unit:b},N)}},C=()=>{const f=d(),b=f===void 0||f===""?r:`${f},${r}${u}`;h(p=>D(p,x=>{me(x,e,b)})),K(X(a,s,e,b,{styles:W("styles")}))},g=f=>{const b=d(),p=m(b);p.length!==1&&(p.splice(f,1),h(x=>D(x,N=>{me(N,e,p.toString())})),K(X(a,s,e,p.toString(),{styles:W("styles")})))};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:i(Pn.overFlowScroll),children:S.map((f,b)=>o.jsxs(M.Fragment,{children:[o.jsx(en,{className:i(Pn.accordionHead),title:y(`Shadow ${b+1}`),open:b===0,actionComponent:S.length>1&&o.jsx("button",{type:"button",title:"Remove",className:i(v.stylePropDeleteBtn),onClick:()=>g(b),"data-testid":`${n}-del-shadow-${b}`,children:o.jsx(_n,{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(we(f.xOffset)||0),unit:te(f.xOffset)||"px",inputHandler:p=>I("xOffset",p,b),sizeHandler:({unitKey:p,unitValue:x})=>k("xOffset",p,x,f.xOffset,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-x-ofset-${b}`})]}),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(we(f.yOffset)||0),unit:te(f.yOffset)||"px",inputHandler:p=>I("yOffset",p,b),sizeHandler:({unitKey:p,unitValue:x})=>k("yOffset",p,x,f.yOffset,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-y-ofset-${b}`})]}),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(we(f.blur)||0),unit:te(f.blur)||"px",inputHandler:p=>I("blur",p,b),sizeHandler:({unitKey:p,unitValue:x})=>k("blur",p,x,f.blur,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-blur-${b}`})]}),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(we(f.spread)||0),unit:te(f.spread)||"px",inputHandler:p=>I("spread",p,b),sizeHandler:({unitKey:p,unitValue:x})=>k("spread",p,x,f.spread,b),options:["px","em","rem"],min:"-10",max:"20",dataTestId:`${n}-shad-spread-${b}`})]}),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(aa,{action:{onChange:p=>I("color",{value:p},b)},value:f.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-${b}`,className:i(wn.select),value:f.inset||"",onChange:p=>I("inset",{value:p.target.value},b),children:[o.jsx("option",{value:"",children:"outset"}),o.jsx("option",{value:"inset",children:"inset"})]})]})]})},`shadow-accordion-${b+12*23}`),o.jsx("div",{className:i(Pn.divider)})]},`key-${b+1}`))}),o.jsx("div",{className:i(Pn.footer),children:o.jsx("button",{className:i(Pn.addBtn),type:"button",onClick:C,title:"None","data-testid":`${n}-add-shad`,children:o.jsx(Vr,{size:"12",className:i({tm:"rotate(45deg)"})})})})]})}var d1=M.memo(u1);const p1=(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 Ds(r).map((s,a)=>{i[n[a]]=s}),i}),Pn={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 h1({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 f1({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 b1({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 m1({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 g1({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 x1({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 v1(){const{css:e}=ne(),{fieldKey:n,element:t}=xe(),[r,i]=Y(Re),[s,a]=M.useState(!1),{"--fld-lbl-fs":l,"--sub-titl-fs":c,"--hlp-txt-fs":h,"--lbl-wrp-width":u,"--fld-wrp-dis":d,"--fld-wrp-fdir":m,"--lbl-wrp-sa":_,"--lbl-al":S,"--sub-titl-al":j,"--hlp-txt-al":I}=r;we(l),te(l),we(c),te(c),we(h),te(h);const k=we(u),C=te(u),g=()=>{if(d==="block")return"top";if(d==="flex"&&m==="")return"inline";if(d==="flex"&&m==="row-reverse")return"inline-rev"},f=$=>{switch($){case"top":i(E=>D(E,T=>{T["--fld-wrp-dis"]="block",T["--lbl-wrp-width"]="",T["--inp-wrp-width"]="",T["--lbl-wrp-sa"]="",T["--fld-wrp-width"]="",T["--lbl-wrp-m"]="0 0 5px 0"})),a(!1),Wt();break;case"inline":i(E=>D(E,T=>{T["--fld-wrp-dis"]="flex",T["--fld-wrp-fdir"]="",T["--lbl-wrp-width"]||(T["--lbl-wrp-width"]="40%"),T["--inp-wrp-width"]="100%",T["--fld-wrp-width"]="100%",T["--lbl-wrp-m"]=""})),a(!0),Wt();break;case"inline-rev":i(E=>D(E,T=>{T["--fld-wrp-dis"]="flex",T["--fld-wrp-fdir"]="row-reverse",T["--lbl-wrp-width"]||(T["--lbl-wrp-width"]="40%"),T["--inp-wrp-width"]="60%",T["--fld-wrp-width"]="100%",T["--lbl-wrp-m"]="0px 0px 0px 10px"})),a(!0),Wt();break}K(X(t,n,"Label Position",$,{themeVars:W("themeVars")}))},b=($,E="")=>{i(T=>D(T,P=>{P[$]=E})),K(X(t,n,$,E,{themeVars:W("themeVars")}))},p=$=>b("--lbl-wrp-sa",$==="top"?"":$),x=$=>b("--lbl-al",$==="left"?"":$),N=$=>b("--sub-titl-al",$==="left"?"":$),z=$=>b("--hlp-txt-al",$==="left"?"":$),O=({value:$,unit:E})=>{const T=`${$}${E}`;b("--lbl-wrp-width",T)},F=($,E,T)=>{const P=te(r[T]),A=`${nn($,E,P)}${$}`;b(T,A)};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:"Label Wrapper Width"}),o.jsxs("span",{className:e(v.flxc),children:[o.jsx(gn,{id:"lbl-wrp-width",propertyPath:"--lbl-wrp-width",stateObjName:"themeVars"}),o.jsx(ke,{width:"100px",value:Number(k),unit:C,inputHandler:O,sizeHandler:({unitKey:$,unitValue:E})=>F($,E,"--lbl-wrp-width"),options:["px","em","rem","%"],dataTestId:"lbl-wrp-wdth"})]})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Postion"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(b1,{size:"17"}),label:"top",tip:"Top"},{icn:o.jsx(h1,{size:"17"}),label:"inline",tip:"Inline"},{icn:o.jsx(f1,{size:"17"}),label:"inline-rev",tip:"Inline reverse"}],onChange:$=>f($),defaultActive:g,width:"100px"})]}),o.jsx(it,{open:s,overflw:"visible",children:o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Position Vertical"}),o.jsx(gn,{propertyPath:"--lbl-wrp-sa",stateObjName:"themeVars",id:"lbl-wrp-sa"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(x1,{size:"17"}),label:"top",tip:"Top"},{icn:o.jsx(m1,{size:"17"}),label:"center",tip:"Middle"},{icn:o.jsx(g1,{size:"17"}),label:"end",tip:"Bottom"}],onChange:$=>p($),defaultActive:_===""?"top":_,width:"100px"})]})}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Label Alignment"}),o.jsx(gn,{propertyPath:"--lbl-al",stateObjName:"themeVars",id:"lbl-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>x($),defaultActive:S===""?"left":S,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Subtitle Alignment"}),o.jsx(gn,{propertyPath:"--sub-titl-al",stateObjName:"themeVars",id:"sub-titl-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>N($),defaultActive:j===""?"left":j,width:"100px"})]}),o.jsxs("div",{className:e(v.mb2,xt.main),children:[o.jsx("span",{className:e(xt.label),children:"Helpertext Alignment"}),o.jsx(gn,{propertyPath:"--hlp-txt-al",stateObjName:"themeVars",id:"hlp-txt-al"}),o.jsx(ot,{show:["icn"],tipPlace:"bottom",options:[{icn:o.jsx(ci,{size:"17"}),label:"left",tip:"Left"},{icn:o.jsx(ui,{size:"17"}),label:"center",tip:"Center"},{icn:o.jsx(di,{size:"17"}),label:"right",tip:"Right"}],onChange:$=>z($),defaultActive:I===""?"left":I,width:"100px"})]})]})}const xt={main:{flx:"center-between"},label:{fs:12}};function y1({objectPaths:e}){const{css:n}=ne(),{fieldKey:t,element:r}=xe(),[i,s]=Y(Re),[a,l]=Y(he),c=le(Gr),[h,u]=M.useState(!0),{object:d,paths:m}=e,_=g=>{var f;if(d==="themeVars")return i[g];if(d==="styles"){let b=ae(a,g);if(((f=b==null?void 0:b.match(/var/gi))==null?void 0:f[0])==="var"){const x=b.replace(/\(|var|,.*|\)/gi,"");b=i[x]}return b}},S=_(m==null?void 0:m.width),j=_(m==null?void 0:m.height),I=(g,f)=>{d==="themeVars"?(s(b=>D(b,p=>{p[f]=`${g}`})),K(X(r,t,f,g,{themeVars:W("themeVars")}))):d==="styles"&&(l(b=>D(b,p=>{var z;const x=ae(p,f);((z=x==null?void 0:x.match(/!important/gi))==null?void 0:z[0])&&(g=`${g} !important`),me(p,f,`${g}`)})),K(X(r,t,f,g,{styles:W("styles")})))},k=(g,f,b)=>{if(h){const p=we(S)||1,x=te(S),N=we(j)||1,z=te(j);if(b==="width"){const O=Number(g*N/p).toFixed(2);I(`${g}${f}`,m.width),I(`${O}${z}`,m.height)}else if(b==="height"){const O=Number(g*p/N).toFixed(2);I(`${O}${x}`,m.width),I(`${g}${f}`,m.height)}}else I(`${g}${f}`,m[b])},C=g=>{d==="themeVars"&&(s(f=>D(f,b=>{b[g]=c[g]||"0px"})),K(X(r,t,g,"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:()=>C(m.width),value:we(S||0),title:"width",width:100,unit:te(S||"px"),sizeHandler:g=>k(g.unitValue,g.unitKey,"width"),inputHandler:g=>k(g.value,g.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:()=>C(m.height),value:we(j||0),title:"height",width:100,unit:te(j||"px"),sizeHandler:g=>k(g.unitValue,g.unitKey,"height"),inputHandler:g=>k(g.value,g.unit,"height")})]}),o.jsx(Ir,{title:"Follow Aspect Ratio",action:()=>u(g=>!g),isChecked:h,className:n({fs:12})})]})}function w1({objectPaths:e,id:n}){const[t,r]=Y(Re),{element:i,fieldKey:s}=xe(),[a,l]=Y(he),c=le(Gr),{object:h,paths:u}=e,d=(S,j)=>{h==="themeVars"&&(r(I=>D(I,k=>{k[j]=`${S}`})),K(X(i,s,j,S,{themeVars:W("themeVars")}))),h==="styles"&&(l(I=>D(I,k=>{var f;const C=ae(k,j);((f=C==null?void 0:C.match(/!important/gi))==null?void 0:f[0])&&(S=`${S} !important`),me(k,j,S)})),K(X(i,s,j,S,{styles:W("styles")})))},m=S=>{h==="themeVars"&&(r(j=>D(j,I=>{I[S]=c[S]||"0px"})),K(X(i,s,S,"0px",{themeVars:W("themeVars")})))},_=S=>{var j;if(h==="themeVars")return t[S];if(h==="styles"){let I=ae(a,S);const k=I==null?void 0:I.replace(/!important/gi,"");return((j=I==null?void 0:I.match(/var/gi))==null?void 0:j[0])==="var"&&(I=Ti(t,k)),I}};return o.jsxs(o.Fragment,{children:[(u==null?void 0:u.margin)&&o.jsx(Et,{stateObjName:e.object,propertyPath:e.paths.margin,undoHandler:()=>m(u.margin),value:_(u.margin),title:"Margin",onChange:S=>d(S,u.margin),unitOption:["px","em","rem"],dataTestId:`${n}-mrgn`}),(u==null?void 0:u.padding)&&o.jsx(Et,{stateObjName:e.object,propertyPath:e.paths.padding,undoHandler:()=>m(u.padding),value:_(u.padding),title:"Padding",onChange:S=>d(S,u.padding),unitOption:["px","em","rem"],dataTestId:`${n}-paddng`})]})}function _1(){const{fieldKey:e,element:n}=xe(),[t,r]=Y(Re),i=le(Gr),{"--fld-m":s,"--fld-p":a}=t,l=u=>{r(d=>D(d,m=>{m["--fld-m"]=`${u}`})),K(X(n,e,"Field Margin",u,{themeVars:W("themeVars")}))},c=u=>{r(d=>D(d,m=>{m["--fld-p"]=`${u}`})),K(X(n,e,"Field Padding",u,{themeVars:W("themeVars")}))},h=u=>{i[u]&&(r(d=>D(d,m=>{m[u]=i[u]})),K(X(n,e,"Undo Field Spacing",i[u],{themeVars:W("themeVars")})))};return o.jsxs(o.Fragment,{children:[o.jsx(Et,{isResetable:i["--fld-m"],undoHandler:()=>h("--fld-m"),value:s,title:"Field Margin",onChange:u=>l(u),unitOption:["px","em","rem"]}),o.jsx(Et,{isResetable:i["--fld-p"],undoHandler:()=>h("--fld-p"),value:a,title:"Field Padding",onChange:u=>c(u),unitOption:["px","em","rem"]})]})}function $1({propertyPath:e,id:n}){const t="Transform",{css:r}=ne(),{fieldKey:i,element:s}=xe(),a=le(Re),[l,c]=Y(he);let h="";const u=()=>{var x,N;let p=ae(l,e);if(((x=p==null?void 0:p.match(/var/gi))==null?void 0:x[0])==="var"){const z=p==null?void 0:p.replace(/\(|var|,.*|\)/gi,"");p=a[z]}return(N=p==null?void 0:p.match(/(!important)/gi))!=null&&N[0]&&(h="!important",p=p==null?void 0:p.replace(/(!important)/gi,"")),p},d=p=>p&&(p==null?void 0:p.split(/(?!\(.*)\s(?![^(]*?\))/gi))||[],m=d(u()),_=j1(m),S=_.map(p=>p.name),j=Object.keys(It).filter(p=>!S.includes(p)),I=(p,x,N)=>(x=`${p}(${x}${N})`,x),k=(p,{value:x,unit:N},z)=>{const O=I(p,x,N);m[z]=O;let F=m.join(" ");h&&(F=`${F} !important`),c($=>D($,E=>{me(E,e,F)})),K(X(s,i,e,m.join(" "),{styles:W("styles")}))},C=p=>{const x=u(),N=x===void 0||x===""?I(p,0,It[p].unit[0]):`${x} ${I(p,0,It[p].unit[0])}${h}`;c(z=>D(z,O=>{me(O,e,N)})),K(X(s,i,e,N,{styles:W("styles")}))},g=p=>{const x=u(),N=d(x);N.length!==1&&(N.splice(p,1),c(z=>D(z,O=>{me(O,e,N.join(" "))})),K(X(s,i,e,N.join(" "),{styles:W("styles")})))},f=(p,x,N,z)=>{const{unitKey:O,unitValue:F}=p,$=nn(O,F,z);k(x,{value:$,unit:O},N)},b=(p,x)=>{var N;return p!=null&&p.name?(N=It==null?void 0:It[p==null?void 0:p.name][te(p.value)])==null?void 0:N[x]:""};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}),j.length>0&&o.jsx(ia,{id:"transform-prop",properties:j,setProperty:C,classNames:r({mt:"0px !important"})})]}),o.jsx("div",{className:r(js.overFlowScroll),children:_.map((p,x)=>{var N;return o.jsx("div",{className:r(v.p1,js.containerHover,_.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:[_.length>1&&o.jsx("button",{"data-testid":`${n}-del-btn-${x}`,onClick:()=>g(x),className:`${r(v.stylePropDeleteBtn)} delete-btn`,type:"button",children:o.jsx(_n,{})}),o.jsx("span",{className:r({ml:20}),children:Hs(p.name)})]}),o.jsx(ke,{width:"100px",value:Number(we(p.value)||0),unit:te(p.value)||"",inputHandler:z=>k(p.name,z,x),sizeHandler:z=>f(z,p.name,x,te(p.value)),options:p!=null&&p.name?(N=It==null?void 0:It[p==null?void 0:p.name])==null?void 0:N.unit:"",min:b(p,"min")||"",max:b(p,"max")||"",step:b(p,"step")||"",dataTestId:`${n}-input-${x}`})]})},`transformObj-${x*5}`)})})]})}var S1=M.memo($1);const j1=e=>e.map(t=>{if(!t)return{name:"perspective",value:"10px"};const[r,i]=t.split(/\(|\)/gi);return{name:r,value:i}}),_i={unit:["px","%"],px:{min:1,max:100,step:1},"%":{min:1,max:200,step:1}},$i={unit:[""],"":{min:"",max:"",step:""}},Ss={unit:["deg","rad","turn"],deg:{min:1,max:360,step:1},turn:{min:.1,max:10,step:.1},rad:{min:"",max:"",step:.1}},It={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:w({},_i),translateY:w({},_i),translateZ:w({},_i),scaleX:w({},$i),scaleY:w({},$i),scaleZ:w({},$i),skewX:w({},Ss),skewY:w({},Ss)},js={containerHover:{pn:"relative","&:hover .delete-btn":{tm:"scale(1.1)"}},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",m:5},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}};function C1({stateObjName:e,propertyPath:n,id:t}){const{css:r}=ne(),{fieldKey:i,element:s}=xe(),a=le(Re),[l,c]=Y(he);let h="";const u=()=>{var b,p;let f=ae(l,n)||"";if(((b=f.match(/var/gi))==null?void 0:b[0])==="var"){const x=f==null?void 0:f.replace(/\(|var|,.*|\)/gi,"");f=a[x]}return(p=f.match(/(!important)/gi))!=null&&p[0]&&(h="!important",f=f.replace(/(!important)/gi,"")),f},d=f=>f&&(f==null?void 0:f.split(/,(?![^(]*\))/gi))||[],m=d(u()),_=T1(m),S=(f,b,p)=>f==="duration"||f==="delay"?`${b||"0.1"}${p===void 0?"s":p}`:`${b}`,j=(f,{value:b,unit:p},x)=>{const N=Object.entries(_[x]).map(([O,F])=>O===f?S(f,b,p):S(O,F,"")).join(" ");m[x]=N;let z=m.toString();h&&(z=`${z} !important`),c(O=>D(O,F=>{me(F,n,z)})),K(X(s,i,n,z,{styles:W("styles")}))},I=()=>{const f=u(),b=f===void 0||f===""?`all 0.1s 0.1s ease${h}`:`${f},all 0.1s 0.1s ease${h}`;c(p=>D(p,x=>{me(x,n,b)})),K(X(s,i,n,b,{styles:W("styles")}))},k=f=>{const b=u(),p=d(b);p.length!==1&&(p.splice(f,1),c(x=>D(x,N=>{me(N,n,p.toString())})),K(X(s,i,n,p.toString(),{styles:W("styles")})))},C=(f,b,p)=>{let x;return p===b?x=f:p==="ms"&&b==="s"?x=f/1e3:p==="s"&&b==="ms"&&(x=f*1e3),x},g=(f,b,p,x)=>{const{unitKey:N,unitValue:z}=f,O=C(z,N,x);j(b,{value:O,unit:N},p)};return o.jsxs(o.Fragment,{children:[o.jsx("div",{className:r(hn.overFlowScroll),children:_.map((f,b)=>o.jsxs(o.Fragment,{children:[o.jsx(en,{className:r(hn.accordionHead),title:y(`Transition ${b+1}`),open:b===0,actionComponent:_.length>1&&o.jsx("button",{type:"button",title:"Remove",className:r(v.stylePropDeleteBtn),onClick:()=>k(b),"data-testid":`${t}-del-transn-${b}`,children:o.jsx(_n,{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(wn.select),value:f.property||"",onChange:p=>j("property",{value:p.target.value},b),"data-testid":`${t}-transn-property-${b}`,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(we(f.duration)||0),unit:te(f.duration)||"s",inputHandler:p=>j("duration",p,b),sizeHandler:p=>g(p,"duration",b,te(f.duration)),options:["s","ms"],min:te(f.duration)==="s"?.1:100,max:te(f.duration)==="s"?10:1e4,step:te(f.duration)==="s"?.1:100,dataTestId:`${t}-transn-duration-${b}`})]}),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(we(f.delay)||0),unit:te(f.delay)||"s",inputHandler:p=>j("delay",p,b),sizeHandler:p=>g(p,"delay",b,te(f.delay)),options:["s","ms"],min:te(f.delay)==="s"?.1:100,max:te(f.delay)==="s"?10:1e4,step:te(f.delay)==="s"?.1:100,dataTestId:`${t}-transn-delay-${b}`})]}),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(wn.select),value:f.func||"",onChange:p=>j("func",{value:p.target.value},b),"data-testid":`${t}-transn-func-${b}`,children:[o.jsx("option",{value:"Custom",children:"Custom"}),Cs.map(p=>o.jsx("option",{value:p,children:p}))]})})]}),!Cs.includes(f.func)&&o.jsx("input",{className:r(hn.input),type:"text","aria-label":"Custom transition",onChange:p=>j("func",{value:p.target.value},b),value:f.func})]})},`transition-${(b*2*4).toString()}`),o.jsx("div",{className:r(hn.divider)})]}))}),o.jsx("div",{className:r(hn.footer),children:o.jsx("button",{className:r(hn.addBtn),type:"button","aria-label":"Add Transition",onClick:I,title:"Add Transition","data-testid":`${t}-add-transn`,children:o.jsx(Vr,{size:"12",className:r({tm:"rotate(45deg)"})})})})]})}var I1=M.memo(C1);const T1=e=>e.map(t=>{if(!t)return{property:"all",duration:"8.4s",delay:"7.6s",func:"ease"};const[r,i,s,a]=Ds(t);return{property:r,duration:i,delay:s,func:a}}),hn={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}},Cs=["ease","ease-in","ease-out","ease-in-out","linear"];function k1({stateObjName:e,objectPaths:n,id:t,fldKey:r}){const[i,s]=M.useState({parent:"Image",child:"Upload"}),[a,l]=Y(Re),{css:c}=ne(),{fieldKey:h,element:u}=xe(),{object:d,bgObjName:m,paths:_}=n,[S,j]=M.useState(""),[I,k]=M.useState("initial"),[C,g]=Y(he),f=Hr(d,{styles:C}),b=(A,V)=>{Xt(d,A,V,{setStyles:g}),K(X(u,h,A,V,{[d]:W(d)}))},p=A=>{b(_["border-image"],A.style)},x=A=>{A.stopPropagation(),j("")};M.useEffect(()=>{j(ae(f,_["border-image"]))},[]),M.useEffect(()=>{b(_["border-image"],S)},[S]),M.useEffect(()=>{b(_["border-image-repeat"],I)},[I]);const N=A=>{k(A.target.value)},z=A=>{b(_["border-image"],`url(${A.target.value})`),j(`url(${A.target.value})`)},O=(A,V)=>{V==="parent"?s({parent:A,child:"Upload"}):V==="child"&&s(re=>B(w({},re),{child:A}))},F=()=>{if(typeof wp!="undefined"&&wp.media){const A=wp.media({title:"Media",button:{text:"Select picture"},library:{type:"image"},multiple:!1});A.on("select",()=>{const V=A.state().get("selection").first().toJSON();b(_["border-image"],`url(${V.url})`),j(`url(${V.url})`)}),A.open()}},$=(A,V)=>{Xt(d,A,V,{setThemeVars:l,setStyles:g}),K(X(u,h,A,V,{[d]:W(d)}))},E=A=>{var V;if(d==="themeVars")return a[A];if(d==="styles"){let re=ae(C,A);if(((V=re==null?void 0:re.match(/var/gi))==null?void 0:V[0])==="var"){const ct=re.replace(/\(|var|,.*|\)/gi,"");re=a[ct]}return re}},T=E(_["border-image-width"]),P=E(_["border-image-slice"]),H=E(_["border-image-outset"]);return o.jsxs("div",{className:c(Q.container),children:[o.jsx(ot,{options:[{label:"Image"},{label:"Gradient"}],onChange:A=>O(A,"parent"),defaultActive:i.parent,wideTab:!0}),o.jsxs("div",{className:c(Q.innercontainer,v.mt1),children:[i.parent==="Image"&&o.jsxs(o.Fragment,{children:[o.jsx(ot,{options:[{label:"Upload"},{label:"Link"}],onChange:A=>O(A,"child"),defaultActive:i.child,wideTab:!0}),o.jsxs("div",{className:c(v.mt2),children:[i.child==="Upload"&&o.jsx(sa,{title:"Image",imageSrc:S==null?void 0:S.replace(/(url\(|\))/gi,""),value:S==null?void 0:S.slice(S.lastIndexOf("/")+1,-1),clickAction:F,clearAction:x}),i.child==="Link"&&o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxClm),children:[o.jsx("span",{className:c(Q.title),children:"URL"}),o.jsx("input",{type:"url",className:c(Q.urlinput),value:S.replace(/(url\(|\))/gi,""),onChange:z,placeholder:"ex: https://www.example.com","data-testid":`${t}-url-input`})]})}),o.jsx("div",{className:c(v.mt2),children:o.jsxs("div",{className:c(v.flxcb),children:[o.jsx("span",{className:c(Q.title),children:"Repeat"}),o.jsx("div",{className:c(v.flxc),children:o.jsxs("select",{value:I,name:"",id:"",onChange:N,className:c(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(Et,{value:H,className:c(v.mb2),onChange:A=>$(_["border-image-outset"],A),title:"Outset",unitOption:["px","%"],min:"0",max:"20",dataTestId:`${t}-outset`}),o.jsx(Et,{value:T,className:c(v.mb2),onChange:A=>$(_["border-image-width"],A),title:"Width",unitOption:["","px","%"],min:"0",max:"100",dataTestId:`${t}-width`}),o.jsx(Et,{value:P,className:c(v.mb2),onChange:A=>$(_["border-image-slice"],A),title:"Slice",unitOption:["","%"],min:"0",max:"100",dataTestId:`${t}-slice`})]})]}),i.parent==="Gradient"&&o.jsx(oa,{changeHandler:p})]})]})}function N1({objectPaths:e,id:n}){const{css:t}=ne(),{fieldKey:r,element:i}=xe(),[s,a]=Y(Re),[l,c]=Y(he),{object:h,paths:u}=e,d=Hr(h,{themeVars:s,styles:l}),m=ae(d,u["text-decoration-line"]),_=ae(d,u["text-decoration-style"]),S=ae(d,u["text-decoration-color"]),j=ae(d,u["text-decoration-thickness"]),I=we(j)||"0",k=te(j)||"px",C=({value:p,unit:x})=>{const N=nn(x,p,k);c(z=>D(z,O=>{me(O,u["text-decoration-thickness"],`${N}${x}`)}))},g=(p,x)=>{Xt(h,p,x,{setThemeVars:a,setStyles:c}),K(X(i,r,p,x,{[h]:W(h)}))},f=[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"Double",value:"double"}],b=[{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(Xo,{options:b,value:m,onChange:p=>g(u["text-decoration-line"],p),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(Xo,{options:f,value:_,onChange:p=>g(u["text-decoration-style"],p),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(aa,{action:{onChange:p=>g(u["text-decoration-color"],p)},value:S})]}),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:C,sizeHandler:({unitKey:p,unitValue:x})=>C({unit:p,value:x}),value:I||0,unit:k||"px",width:"130px",options:["px","em","rem",""],step:k!=="px"?"0.1":1,dataTestId:`${n}-txt-dec-thickness`})]})]})}const M1=M.lazy(()=>qe(()=>import("./bf-395-227.js"),["./bf-395-227.js","./main-634.js","./main-634.css","./bf-982-242.js","./bf-25-81.js","./bf-831-476.css","./bf-497-246.js","./bf-641-107.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-723-244.js","./bf-486-243.js","./bf-507-477.css","./bf-299-245.js","./bf-534-247.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-297-103.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url)),E1=M.lazy(()=>qe(()=>import("./bf-838-228.js"),["./bf-838-228.js","./main-634.js","./main-634.css","./bf-962-248.js","./bf-723-244.js","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-486-243.js","./bf-497-246.js","./bf-507-477.css","./bf-299-245.js","./bf-534-247.js","./bf-982-242.js","./bf-641-107.js"],import.meta.url)),A1=M.lazy(()=>qe(()=>import("./bf-488-229.js"),["./bf-488-229.js","./main-634.js","./main-634.css","./bf-486-243.js","./bf-497-246.js","./bf-25-81.js","./bf-831-476.css","./bf-507-477.css","./bf-723-244.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-299-245.js","./bf-534-247.js"],import.meta.url)),z1=M.lazy(()=>qe(()=>import("./bf-746-230.js"),["./bf-746-230.js","./main-634.js","./main-634.css","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-497-246.js","./bf-534-247.js","./bf-982-242.js","./bf-641-107.js","./bf-486-243.js","./bf-507-477.css","./bf-723-244.js","./bf-299-245.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-297-103.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url)),O1=M.lazy(()=>qe(()=>import("./bf-385-231.js"),["./bf-385-231.js","./main-634.js","./main-634.css","./bf-486-243.js","./bf-497-246.js","./bf-25-81.js","./bf-831-476.css","./bf-507-477.css","./bf-723-244.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-299-245.js","./bf-534-247.js"],import.meta.url)),L1=({component:e,action:n,value:t,defaultValue:r,objectPaths:i,id:s,canSetVariable:a,stateObjName:l,propertyPath:c,propertyArray:h,fldKey:u,hslaPaths:d})=>{switch(e){case"border-style":return o.jsx(M1,{objectPaths:i,hslaPaths:d,id:s});case"outline-style":return o.jsx(E1,{objectPaths:i,hslaPaths:d,id:s});case"border-image":return o.jsx(k1,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"background":return o.jsx(Xb,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"color-picker":return o.jsx(A1,{canSetVariable:a,stateObjName:l,action:n,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"filter-color":return o.jsx(o1,{stateObjName:l,action:n,objectPaths:i,propertyPath:c,id:s,hslaPaths:d,fldKey:u});case"individual-shadow-control":return o.jsx(d1,{stateObjName:l,action:n,propertyPath:c,propertyArray:h,defaultValue:r,id:s,hslaPaths:d,fldKey:u});case"font":return o.jsx(z1,{id:s});case"label-control":return o.jsx(v1,{});case"spacing-control":return o.jsx(_1,{});case"text-decoration":return o.jsx(N1,{objectPaths:i,id:s});case"theme-control":return o.jsx(To,{fldKey:u});case"form-wrapper-control":return o.jsx(c1,{});case"space-control":return o.jsx(w1,{value:t,objectPaths:i,id:s});case"size-control":return o.jsx(y1,{value:t,objectPaths:i});case"shadow-control":return o.jsx(O1,{objectPaths:i,id:s});case"transition-control":return o.jsx(I1,{stateObjName:l,propertyPath:c,id:s});case"transform-control":return o.jsx(S1,{stateObjName:l,propertyPath:c,id:s});case"filter-control":return o.jsx($s,{value:t,objectPaths:i,id:s});case"backdrop-filter-control":return o.jsx($s,{title:"Backdrop-Filter",value:t,objectPaths:i,id:s});default:return"loading"}},B1=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 R1({setBuilderPointerEventNone:e}){const{css:n}=ne(),[t,r]=Y(zl),{show:i,position:s,component:a,width:l,stateObjName:c,propertyPath:h,propertyArray:u,mainTitle:d,subtitle:m,action:_,value:S,defaultValue:j,objectPaths:I,state:k,id:C,fldKey:g,hslaPaths:f,canSetVariable:b}=t,p=Ji(),[x,N]=M.useState(""),z=M.useRef(null);return M.useEffect(()=>{N(w({},s))},[s]),M.useEffect(()=>r({show:!1}),[p]),i?o.jsx(qb,{ref:z,bounds:"parent",handle:".draggable-modal-handle",position:x!==null?s:x,onMouseDown:()=>N(null),onStart:()=>e(!0),onStop:()=>e(!1),children:o.jsxs("div",{className:n(Ft.container),style:w({width:l},x&&{transition:"transform .2s"}),children:[o.jsxs("div",{className:`${n([v.flxb,Ft.titleBar])} draggable-modal-handle`,children:[o.jsxs("div",{className:n(v.flxClm,Ft.titleContainer),children:[o.jsx("span",{className:n(Ft.title),children:d||B1(a)}),o.jsx("span",{className:n(Ft.subTitle,v.fontBody),children:m})]}),o.jsx("button",{"data-testid":"draggable-modal-close-btn",type:"button",className:n(Ft.button),onClick:()=>r({show:!1}),children:o.jsx(Vr,{size:10})})]}),o.jsx("hr",{className:n(Ft.hr)}),o.jsx("div",{className:n(Ft.content),children:o.jsx(M.Suspense,{fallback:o.jsx(F1,{}),children:o.jsx(L1,{component:a,action:_,value:S,defaultValue:j,objectPaths:I,state:k,id:C,stateObjName:c,propertyPath:h,propertyArray:u,fldKey:g,hslaPaths:f,canSetVariable:b})})})]})}):o.jsx(o.Fragment,{})}var P1=M.memo(R1);const F1=()=>{const{css:e}=ne();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`})]})]})},D1=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 pl(){return o.jsxs("div",{style:ce.wrp,children:[o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"60%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"40%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"50%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"70%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"50%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"30%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"10%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"40%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"60%"}),className:"loader"})]}),o.jsxs("div",{style:ce.fldWrp,children:[o.jsx("div",{style:B(w({},ce.fld),{width:"20%"}),className:"loader"}),o.jsx("div",{style:B(w({},ce.fld),{width:"80%"}),className:"loader"})]})]})}const ce={wrp:{paddingBlock:20},fldWrp:{display:"flex",justifyContent:"center",alignItems:"center"},fld:{height:70,borderRadius:5,margin:5}};var hl={};Object.defineProperty(hl,"__esModule",{value:!0});var mr=M,H1=function(){var e=mr.useRef(null),n=mr.useState(!0),t=n[0],r=n[1],i=mr.useState(!1),s=i[0],a=i[1];return mr.useEffect(function(){e.current&&a(e.current.scrollWidth===e.current.offsetWidth)},[e]),{scrollContainerRef:e,handleScroll:function(){var l,c,h,u;e.current&&(r(((l=e.current)===null||l===void 0?void 0:l.scrollLeft)===0),a(Math.floor(((c=e.current)===null||c===void 0?void 0:c.scrollWidth)-((h=e.current)===null||h===void 0?void 0:h.scrollLeft))<=((u=e.current)===null||u===void 0?void 0:u.offsetWidth)))},scrollTo:function(l){var c,h;(c=e.current)!==null&&c!==void 0&&c.scrollTo({left:((h=e.current)===null||h===void 0?void 0:h.scrollLeft)+l,behavior:"smooth"})},isAtStart:t,isAtEnd:s}},V1=hl.default=H1;function W1({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 G1={themeStyle:"style-0",showStepHeader:ye,showLbl:ye,showSubtitle:ye,validateOnStepChange:ye,maintainStepHistory:ye,saveProgress:ye,stepHeaderSwitchable:ye,headerIcon:{show:ye,iconType:"number"},btnSettings:{show:!0,prevBtn:{key:"prev-step-btn",typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:y("Previous")},nextBtn:{key:"next-step-btn",typ:"button",btnTyp:"next-step",btnSiz:"md",txt:y("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}},Fn=(e,n)=>{const t=de(Ue);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 U1({fk:e,type:n,fieldType:t,breakpoint:r,theme:i,colorScheme:s,direction:a=""}){let l=null;switch(n){case"small-2":return l=Fn(e,25)||"4px !important",w(w(w(w(w(w(w(w(w(w(B(w(w({[`.${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)&&w({[`.${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`]:w(w(w({"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=Fn(e,30)||"6px",w(w(w(w(w(w(w(w(w(w(B(w(w({[`.${e}-lbl`]:{"font-size":"14px"},[`.${e}-sub-titl`]:{"font-size":"10px"},[`.${e}-hlp-txt`]:{"font-size":"10px"}},["check","radio","decision-box","gdpr"].includes(t)&&w({[`.${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`]:w(w(w(B(w({"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=Fn(e,35)||"8px",w(w(w(w(w(w(w(w(w(B(w({[`.${e}-lbl`]:{"font-size":"1rem"},[`.${e}-sub-titl`]:{"font-size":"12px"},[`.${e}-hlp-txt`]:{"font-size":"12px"}},["check","radio","decision-box","gdpr"].includes(t)&&w({[`.${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`]:w(w({"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`]:w(w({},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=Fn(e,40)||"9px",w(w(w(w(w(w(w(w(B(w(w({[`.${e}-lbl`]:{"font-size":"18px"},[`.${e}-sub-titl`]:{"font-size":"14px"},[`.${e}-hlp-txt`]:{"font-size":"14px"}},["check","radio","decision-box","gdpr"].includes(t)&&w({[`.${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`]:w(w(w({"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=Fn(e,45)||"10px",w(w(w(w(w(w(w(w(B(w(w({[`.${e}-lbl`]:{"font-size":"20px"},[`.${e}-sub-titl`]:{"font-size":"16px"},[`.${e}-hlp-txt`]:{"font-size":"16px"}},["check","radio","decision-box","gdpr"].includes(t)&&w({[`.${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`]:w(w(w({"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 fl=(e,n,t,r,i,s)=>{var m,_;const l=U1({fk:n,type:i,fieldType:t,theme:r,direction:""}),c=Object.keys(l),h=Jt(e),u=h.classes;me(h,"fieldSize",i);const d=c.length;for(let S=0;S<d;S+=1){const j=c[S];if(Object.prototype.hasOwnProperty.call(u,j)){const I=u[j],k=l[j],C=Object.keys(k),g=C.length;for(let f=0;f<g;f+=1){const b=C[f];if(Object.prototype.hasOwnProperty.call(I,b)){const p=I[b],x=k[b];if(p!==x)if(((m=p==null?void 0:p.match(/(var)/gi))==null?void 0:m.length)===1&&s){const N=(_=p.replace(/\(|var|!important|,.*|\)/gi,""))==null?void 0:_.trim();s[N]!==x&&(s[N]=x)}else{const N=`classes->${j}->${b}`;me(h,N,x)}}else{const p=`classes->${j}->${b}`;me(h,p,k[b])}}}}return h},K1=["section","repeater"];var bl=[{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 Y1=e=>{var i,s,a,l;const n=de(Vs);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">${y("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">${y("Please enter a valid email address.")}</p>`,show:!0},notMatch:{dflt:((a=n.err.email)==null?void 0:a.notMatch)||`<p style="margin:0">${y("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">${y("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:ye,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:ye,detectCountryByIp:!1,detectCountryByGeo:!1,defaultValue:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found"},options:bl}]}[e.toLowerCase()]},q1=(e,n)=>{const{typ:t}=n;t==="paypal"?(An({fieldKey:e,errorKey:"paypalClientIdMissing",errorMsg:"PayPal Client ID is missing",errorUrl:`field-settings/${e}`}),An({fieldKey:e,errorKey:"paypalAmountMissing",errorMsg:y("PayPal Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})):t==="razorpay"&&(An({fieldKey:e,errorKey:"razorpayClientIdMissing",errorMsg:y("Razorpay Client ID is missing"),errorUrl:`field-settings/${e}`}),An({fieldKey:e,errorKey:"razorpayAmountMissing",errorMsg:y("Razorpay Fixed Amount is not valid"),errorUrl:`field-settings/${e}`})),t==="email-otp"&&An({fieldKey:e,errorKey:"emailOtpReciverEmailMissing",errorMsg:y("Email OTP Receiver Email is missing"),errorUrl:`field-settings/${e}`})},ko=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),Is=()=>{de(lt)!=="lg"&&Me(lt,"lg")};function Z1(e,n,t,r){const i=de(Ws),s=de(Gs),a=de(Ue),l=de(he),c=de(Re),h=de($n);let u=Us(n);if(!u)return;u=B(w({},u),{fieldName:n.fieldName||`${u.typ}-${i}-${s}`});const d=`b${i}-${s}`;q1(d,u);const m=r==null?void 0:r.previousFieldKey,_=!!(t&&r);let S=null;if(_&&m){const z=tm(e,m,t.w),{w:O,h:F,minH:$,maxH:E,minW:T}=t,P={i:d,x:0,y:0,w:O,h:F,minH:$,maxH:E,minW:T},H=Ro(n.typ);H&&(P.resizeHandles=H),S=Po(e,P,z)}else if(_){let{x:z,y:O}=r;O!==0&&(O-=1);const{w:F,h:$,minH:E,maxH:T,minW:P}=t,H={i:d,x:z,y:O,w:F,h:$,minH:E,maxH:T,minW:P},A=Ro(n.typ);A&&(H.resizeHandles=A),S=Po(e,H)}const j=B(w({},a),{[d]:u});Me(Ue,j),sessionStorage.setItem("btcd-lc","-"),Me(Qi,"out-of-sync");const I=`${ko(n)} added`,k="add_fld",C=u.typ;if(K1.includes(C)){const z=de(Kn);Me(Kn,D(z,O=>{O[d]={lg:[],md:[],sm:[]}}))}const g=Jt(c),f=D(l,z=>{const O=z.theme,F=de(ra)||{},$=u==null?void 0:u.btnTyp,E=u==null?void 0:u.align,T=u==null?void 0:u.fulW,P=u==null?void 0:u.txtAlign,H=Xi(O,d,u.typ,{breakpoint:"lg",colorScheme:"light",direction:c["--dir"],fldPrefix:!!u.prefixIcn,fldSuffix:!!u.suffixIcn,buttonOptions:{btnTyp:$,align:E,fulW:T,txtAlign:P}},F);if(z.fieldsSize!=="medium"){const A=fl(H,d,u.typ,z.fieldsSize,g);z.fields[d]=A}else z.fields[d]=H});if(Me(he,f),Me(Re,g),$r.includes(C)&&Me($n,D(h,z=>{z.staticStyles[".pos-rel"]={position:"relative"},z.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)"},z.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"},C==="razorpay"&&(z.staticStyles[".razorpay-checkout-frame"]={height:"100% !important"})})),Ol(u)){const z=Y1(u.typ),O=[];z.forEach(F=>{const re=F,{typ:$,lbl:E,fieldName:T,isDeactive:P}=re,H=cr(re,["typ","lbl","fieldName","isDeactive"]),A=Ll(w({typ:$,lbl:E,fieldName:T,isDeactive:P},H)),V=Z1({},A);V.newBlk&&O.push({fldKey:V.newBlk})}),O.length>0&&Me(Ue,D(de(Ue),F=>{const $=F[d];$.childFields=O,O.forEach(({fldKey:E})=>{F[E].parentFieldKey=d,F[E].fieldName=`${$.fieldName}[${F[E].fieldName}]`})}))}const b=de(Ue),p=de(he),N={event:I,type:k,state:{fldKey:d,fields:b,styles:p}};return setTimeout(()=>{var z;(z=Sr(`[data-key="${d}"]`))==null||z.focus()},500),setTimeout(()=>{Wt(d)},100),{newBlk:d,newLayouts:S,historyData:N}}const y2=e=>{const n=de(he);if(Object.keys(e).length===0&&typeof e=="object"&&e!==null)return n;const t=de(Re),r=Jt(t);return D(n,s=>{Object.entries(e).forEach(([a,l])=>{const c=X1({draftStyle:s,fieldData:l,fldKey:a,themeVars:t,tempThemeVars:r});s.fields[a]=c})})},X1=({draftStyle:e,fieldData:n,fldKey:t,themeVars:r,tempThemeVars:i})=>{const s=e.theme,a=de(ra)||{},l=n==null?void 0:n.btnTyp,c=n==null?void 0:n.align,h=n==null?void 0:n.fulW,u=n==null?void 0:n.txtAlign,d=Xi(s,t,n.typ,{breakpoint:"lg",colorScheme:"light",direction:r["--dir"],fldPrefix:!!n.prefixIcn,fldSuffix:!!n.suffixIcn,buttonOptions:{btnTyp:l,align:c,fulW:h,txtAlign:u}},a);return e.fieldsSize!=="medium"?fl(d,t,n.typ,e.fieldsSize,i):d},J1=(e,n,t)=>{const r=n.slice(1),i=t.slice(1),s=new RegExp(r,"g");return e.replace(s,i)},ml=e=>{const t=de(Ue)[e];if(!t)return{};const r=t.typ;if(["textarea","signature"].includes(r)){const s=Sr(`[data-key="${e}"]`),a=Sr(`[data-dev-fld="${e}"]`),l=Fo(s,0);return{fldHeight:Fo(a,0),wrpHeight:l}}return{}},w2=(e,n)=>{const t=n.i;Me(ki,w({fieldKey:t},ml(t)))},_2=(e,n)=>{M.startTransition(()=>{const t=de(ki),r=D(t,i=>{if(i.fieldKey){const l=e.find(c=>c.i===i.fieldKey);return i.w=l.w,i.x=l.x,i}const s=n.i,a=w({fieldKey:s},ml(s));return a.w=n.w,a.x=n.x,Bl(a)});Me(ki,r)})},Q1=e=>{const n=de(he),t=D(n,r=>{Array.isArray(e)?e.forEach(i=>{delete r.fields[i]}):delete r.fields[e]});Me(he,t)},Ts=(e,n)=>{const t=de(Ue),r=de(he),i=de(Gs),s=de(Ws),a=de(lt);if(!ye){Me(Ks,w({show:!0},Rl.fieldClone));return}const l=t[e],c=`b${s}-${i}`,h={},u=["sm","md","lg"],d=D(n,C=>{u.forEach(g=>{const f=n[g].findIndex(N=>N.i===e),{y:b,h:p}=n[g][f],x=B(w({},n[g][f]),{i:c,y:b+p});h[g]=x,C[g].splice(f+1,0,x)})}),m=J1(l.fieldName,e,c),_=D(t,C=>{C[c]=B(w({},l),{fieldName:m})});Me(Ue,_);const S=D(r,C=>{const g=C.fields[e],f=g.classes;C.fields[c]=w({},g),C.fields[c].classes={},Object.keys(f).forEach(b=>{const p=b.replaceAll(e,c);C.fields[c].classes[p]=f[b]})});Me(he,S),sessionStorage.setItem("btcd-lc","-"),setTimeout(()=>{var C;(C=Sr(`[data-key="${c}"]`))==null||C.focus()},500);const j=`${ko(l)} cloned`,I="clone_fld",k={fldKey:c,breakpoint:a,layout:h,fldData:l,allLayouts:W("allLayouts"),fields:_,styles:W("styles")};return K({event:j,type:I,state:k}),Me(Ys,{}),{newBlk:c,newFldName:m,newLayouts:d}},ks=(e,n)=>{const t=de(Ue),r=de(lt),i=de(Do),s=de($n),a=t[e];if((a==null?void 0:a.typ)==="button"&&(a==null?void 0:a.btnTyp)==="submit"&&!(t?Object.values(t).filter(k=>$r.includes(k.typ)):[]).length)return!1;n.lg.find(I=>I.i===e),n.md.find(I=>I.i===e),n.sm.find(I=>I.i===e);const l=[e];a!=null&&a.childFields&&a.childFields.forEach(({fldKey:I})=>{l.push(I)});const c=Pl(e,n),h=D(t,I=>{l.forEach(k=>{delete I[k]})});Me(Ue,h),Me(Qn,null),Q1(l);const u=D(i,I=>{I.includes(e)||I.push(e)});Me(Do,u),sessionStorage.setItem("btcd-lc","-");const d=a==null?void 0:a.typ;if($r.includes(d)){const I=D(s,k=>{delete k.staticStyles[".pos-rel"],delete k.staticStyles[".form-loading::before"],delete k.staticStyles[".form-loading::after"],d==="razorpay"&&delete k.staticStyles[".razorpay-checkout-frame"]});Me($n,I)}const j={event:`${ko(a)} removed`,type:"remove_fld",state:{fldKey:e,breakpoint:r,fldData:a,fields:h}};return Fl(e),{newLayouts:c,historyData:j}},em=(e,n)=>!e||!Array.isArray(e)||!n?null:e.find(t=>t.i===n)||null,tm=(e,n,t)=>{const r=Object.keys(de(eo)),i={};return r.forEach(s=>{const a=e[s],l=em(a,n);l?i[s]={x:0,y:l.y+l.h}:i[s]={x:0,y:0}}),i};function nm(){const[e,n]=Y(qi),[t,r]=Y(Bs),[i,s]=Y(As),a=ie(Dr),l=ie(Ys),c=le(Wr),h=le(lt),u=er(),{formType:d,formID:m}=xe(),_=le(qs),j=d!=="edit"?_:m,{scrollContainerRef:I,handleScroll:k,scrollTo:C,isAtStart:g,isAtEnd:f}=V1(),b=Array.isArray(e)?e:[e],p=`/form/builder/${d}/${j}`,x=b.length>1,[N,z]=Y(he),O=le(Ue),F=ie(to),[$,E]=Y(Kn),T=ie(Zs),P=ie(Qn),{styleMode:H}=c,{css:A}=ne(),[V,re]=Y($n),Ae=()=>{var J,G;(G=(J=V.staticStyles)==null?void 0:J["@media (max-width: 576px)"])!=null&&G[`._frm-b${j}-stp-hdr-lbl`]||re(Ce=>D(Ce,ve=>{ve.staticStyles=Vo(ve.staticStyles,Wl(j))}))},ct=()=>{Ae(),n(J=>D(J,G=>{const Ce=Array.isArray(G)?G.length:1,ve={layout:{lg:[],md:[],sm:[]},settings:Ho(Ce)};if(!Array.isArray(G))return r(1),G=[{layout:G,settings:Ho(0)},ve],G;G.push(ve),r(G.length-1)})),s(J=>D(J,G=>{G.multiStepSettings||(G.multiStepSettings=G1),G.isMultiStepForm=!0})),z(J=>D(J,G=>{G.form[`._frm-b${j}-stp-cntnr`]||(G.form=Vo(G.form,Hl({formID:j,themeSlug:N.theme})))})),a(J=>B(w({},J),{reRenderGridLayoutByRootLay:J.reRenderGridLayoutByRootLay+1})),T(J=>B(w({},J),{unsaved:!0})),M.startTransition(()=>{const J="New Step added",G="step_added",Ce=W("activeBuilderStep"),ht={fldKey:`step-${Ce+1}`,activeBuilderStep:Ce,allLayouts:W("allLayouts"),styles:W("styles"),formInfo:W("formInfo")};K({event:J,type:G,state:ht})})},En=J=>{const G=e.length-1,Ce=Jt(e[J].layout),ve=Ce.lg.map(q=>q.i),ht=ve.some(q=>{const fe=O[q];if((fe==null?void 0:fe.typ)==="button"&&(fe==null?void 0:fe.btnTyp)==="submit"&&!(O?Object.values(O).filter(se=>$r.includes(se.typ)):[]).length)return F({show:!0,msg:y("Submit button cannot be removed"),cancelBtn:!1}),!0});if(zn(),ht)return;ve.forEach(q=>{if($[q]){const fe=Jt($[q]);fe.lg.map(se=>se.i).forEach(se=>{ks(se,fe)}),E(se=>D(se,De=>{delete De[q]}))}ks(q,Ce)});const Ze=D(e,q=>{q.splice(J,1)});n(Ze),J===t&&J===G?r(J-1):t>J&&r(q=>q-1),Ze.length===1&&(z(q=>D(q,fe=>{const Fe=Vl({formId:j});Object.keys(Fe).forEach(se=>{delete fe.form[se]})})),s(q=>D(q,fe=>{fe.isMultiStepForm=!1}))),a(q=>B(w({},q),{reRenderGridLayoutByRootLay:q.reRenderGridLayoutByRootLay+1})),T(q=>B(w({},q),{unsaved:!0})),M.startTransition(()=>{const q="Step removed",fe="step_removed",Fe=W("activeBuilderStep"),De={fldKey:`step-${Fe}`,breakpoint:h,activeBuilderStep:Fe,allLayouts:W("allLayouts"),fields:W("fields"),styles:W("styles"),nestedLayouts:W("nestedLayouts"),formInfo:W("formInfo")};K({event:q,type:fe,state:De})})},cn=J=>{const G=e[J],ve=G.layout.lg.map(se=>se.i),ht=ve.some(se=>{const De=O[se];return!Us(De)});if(zn(),ht)return;const Ze=J+1,q=Jt(G);q.settings.title=`Step ${e.length+1}`;let fe=D(e,se=>{se.splice(Ze,0,q)}),Fe=D($,()=>{});ve.forEach(se=>{const De=fe[Ze].layout,{newBlk:jt,newLayouts:R}=Ts(se,De),Z=D(R,oe=>{Object.keys(Wo).forEach(be=>{const et=oe[be].findIndex(He=>He.i===se);oe[be].splice(et,1)})});fe=D(fe,oe=>{oe[Ze].layout=Z}),$[se]&&(Fe=D(Fe,oe=>{oe[jt]=Jt($[se]),$[se].lg.map(He=>He.i).forEach(He=>{const{newLayouts:gt}=Ts(He,oe[jt]);oe[jt]=gt,Object.keys(Wo).forEach(tt=>{const Ct=gt[tt].findIndex(Ve=>Ve.i===He);gt[tt].splice(Ct,1)})})}))}),E(Fe),n(fe),r(Ze),a(se=>B(w({},se),{reRenderGridLayoutByRootLay:se.reRenderGridLayoutByRootLay+1})),T(se=>B(w({},se),{unsaved:!0})),M.startTransition(()=>{const se="Step cloned",De="clone_step",R={fldKey:`step-${Ze}`,allLayouts:fe,nestedLayouts:Fe,fields:W("fields"),styles:W("styles")};K({event:se,type:De,state:R})})},Ne=({oldIndex:J,newIndex:G})=>{Array.isArray(e)&&(n(Ce=>Tc(Ce,J,G)),J===t&&r(G),T(Ce=>B(w({},Ce),{unsaved:!0})))},Lt=J=>()=>{r(J),l({}),a(G=>B(w({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),b.length!==1&&!H&&u(`${p}/step-settings`,{replace:!0}),H&&u(`${p}/theme-customize/multi-step/quick-tweaks`,{replace:!0}),M.startTransition(()=>{const G=`Active step shifts to Step-${J+1}`,Ce="step_changed",ht={fldKey:`step-${J+1}`,activeBuilderStep:J};K({event:G,type:Ce,state:ht})})},Pe=J=>()=>{r(J),l({}),zn(),a(G=>B(w({},G),{reRenderGridLayoutByRootLay:G.reRenderGridLayoutByRootLay+1})),u(`${p}/step-settings`,{replace:!0})},Yt=()=>{l({}),zn(),P(null),u(`${p}/multi-step-settings`,{replace:!0})};return o.jsxs("div",{className:A(Be.wrp),children:[o.jsx("div",{ref:I,onScroll:k,children:o.jsx(jc,{useDragHandle:!0,axis:"x",onSortEnd:Ne,children:o.jsx("div",{className:A(Be.tabWrpr),children:b.map((J,G)=>o.jsx(Cc,{index:G,itemId:`grid-${G*2}`,children:o.jsxs("div",{className:`btcd-s-tab-link ${A(Be.stepTab)} ${t===G&&"active"} ${x?"multi-step":""}`,children:[x&&o.jsx(Ic,{}),o.jsxs("span",{type:"button",className:A(Be.stepTitle),onClick:Lt(G),onKeyDown:Lt(G),role:"button",tabIndex:0,children:[y("Step-"),G+1]}),x&&o.jsxs(Cr,{children:[o.jsx("button",{className:`${A(Be.ellipsBtn)} step-options-btn`,"aria-label":"Step Options",type:"button",children:o.jsx(W1,{size:"20",rotateDeg:90})}),o.jsxs("ul",{className:A(Be.optionWrap),children:[o.jsx("li",{className:A(Be.option),children:o.jsxs("button",{type:"button",className:A(Be.optionBtn),onClick:Pe(G),children:[o.jsx(Ai,{size:18}),o.jsx("span",{children:y("Settings")})]})}),o.jsx("li",{className:A(Be.option),children:o.jsxs("button",{type:"button",className:A(Be.optionBtn),onClick:()=>cn(G),children:[o.jsx(Dl,{size:18}),o.jsx("span",{children:y("Clone Step")})]})}),o.jsx("li",{className:A(Be.option),children:o.jsxs(Cr,{width:250,children:[o.jsxs("button",{type:"button",className:A(Be.optionBtn),children:[o.jsx(_n,{size:18}),o.jsx("span",{children:y("Delete Step")})]}),o.jsxs("div",{className:A(Be.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:A({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:A(Be.addBtnWrp),children:[o.jsx(Te,{msg:y("Add New Step"),children:o.jsxs("button",{onClick:ct,className:A([Be.btnStyle,x?{}:{bd:"none"}]),type:"button",children:[o.jsx(Vr,{size:"12",className:A({tm:"rotate(45deg)"})}),!x&&o.jsx("span",{children:y("Add Steps")})]})}),x&&o.jsx(Te,{msg:y("Multi step settings"),children:o.jsx("button",{onClick:Yt,className:A(Be.btnStyle),type:"button",children:o.jsx(Ai,{size:20})})})]})]})}const Be={wrp:{dy:"flex",ai:"center",bb:"1px solid var(--bf-stroke-clr)"},sortableWrp:{w:"100%",mxw:"max-content",owx:"auto"},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 rm({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 im({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 om({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 sm({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";case"disabled":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:`
            @keyframes spin-sync {
              from { transform: rotate(0deg); }
              to { transform: rotate(360deg); }
            }
          `})]})}function am(){const{css:e}=ne(),[n,t]=Y(Xs),[r,i]=Y(eo),s=le(lt),[a,l]=Y(Gl),[c,h]=Y(Kn),u=ie(Qi),d=ie(to),m=ie(Zs),_=()=>{const j=!n.respectLGLayoutOrder;t(I=>B(w({},I),{respectLGLayoutOrder:j})),j?M.startTransition(()=>{try{if((!a.lg||a.lg.length===0)&&(a.md&&a.md.length>0||a.sm&&a.sm.length>0)){d({show:!0,msg:"Cannot sync: Desktop layout is empty"});return}const I=Go("lg",a.lg,a,!0,Uo);l(I),u("in-sync");const k=D(c,b=>{Object.keys(b).forEach(p=>{const x=b[p];if(x&&x.lg&&x.lg.length>0)try{const N=Go("lg",x.lg,x,!0,Uo);b[p]=N}catch(N){}})});h(k),K({event:"Enabled layout sync with Desktop order",type:"toggle_respect_order",state:{breakpoint:s,respectLGLayoutOrder:!0,allLayouts:I,nestedLayouts:k}})}catch(I){d({show:!0,msg:"Failed to enable layout sync"})}}):(sessionStorage.removeItem("btcd-hide-sync-warning"),u("disabled"))},S=({target:{name:j,value:I}})=>{const k=D(r,C=>{C[j]=Number(I)});i(k),m(C=>B(w({},C),{unsaved:!0}))};return o.jsxs("div",{className:e(nt.wraper),children:[o.jsxs("h4",{className:e(nt.title),children:["Breakpoint Sizes",!ye&&o.jsx(Ni,{proProperty:"breakPoint"})]}),o.jsx("div",{className:e(nt.divider)}),o.jsxs("div",{className:"pos-rel",children:[!ye&&o.jsx(Nc,{hideText:!0,proProperty:"breakPoint"}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(la,{size:"26"})}),o.jsx("input",{title:"Large device breakpoint size","aria-label":"Large device breakpoint size",name:"lg",onChange:S,value:r.lg,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(ca,{size:"24"})}),o.jsx("input",{title:"Medium device breakpoint size","aria-label":"Medium device breakpoint size",name:"md",onChange:S,value:r.md,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsxs("div",{className:e(v.flxc,nt.inputWrp),children:[o.jsx("span",{className:e(nt.icon_wrp),children:o.jsx(ua,{size:"25"})}),o.jsx("input",{title:"Mobile device breakpoint size","aria-label":"Mobile device breakpoint size",name:"sm",onChange:S,value:r.sm,className:e(nt.input),type:"number"}),o.jsx("span",{children:"px"})]}),o.jsx("div",{className:e(nt.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:y("Sync Field Order Across Breakpoints")}),o.jsx(ro,{icnSize:"15",children:o.jsx("span",{className:e([v.tipBody,v.mr2]),children:y("When enabled, all layouts will automatically sync with and follow the active breakpoint’s field order.")})})]}),o.jsx(Ir,{isChecked:n.respectLGLayoutOrder,action:_})]})]})]})}const nt={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"}},lm=[30,50,70,100,120,140,160,180,200,220];function cm(){const{css:e}=ne(),n=(t,r)=>Math.round(Math.random()*(r-t)+t);return o.jsxs("div",{className:e(gr.wrp),children:[o.jsx("div",{className:`${e(gr.src)} loader`}),o.jsx("div",{className:`${e(gr.t_wrp)} flx`,children:Array(40).fill(0).map((t,r)=>o.jsx("div",{className:`${e(gr.img,{w:lm[n(1,10)]})} loader`},`cdl-${r+2}`))})]})}const gr={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}},Ns={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 gl({defaultActive:e,className:n="",options:t,size:r=100,onChange:i,show:s,width:a,tipPlace:l="top",borderRadius:c="var(--bf-bdr-radius-sm)",activeShow:h,noShadow:u,defaultItmWidth:d,wideTab:m,h:_,variant:S="default"}){var F;const{css:j}=ne(),I=Number(r),k=$=>Math.floor(I/$),C=Ns[S]||Ns.default,g={wrapper:w({ta:"center"},a&&{w:a}),tabs:w({fs:13,flx:"center",py:1.5,px:3,ls:"none",brs:c,pn:"relative","& .active":C.active,"& button":{bd:"none",oe:"none",b:"none"}},C.tabs),selector:w({w:0,h:"80%",dy:"inline-block",pn:"absolute",lt:5,tp:"50%",tm:"translatey(-50%)",zx:1,brs:c-2,tdn:"0.3s",ttf:"cubic-bezier(0.42, 0.44, 0.57, 1.35)",willChange:"transform"},C.selector),tab_link:B(w({curp:1,td:"none",fw:500,pn:"relative",p:0,zx:1,mnh:24,w:m?"100%":24,h:m?30:24,brs:c,flx:"center",tdy:"0.3s",tdn:"0.6s","transition-property":"color"},C.tabLink),{":focus-visible":{oe:"2px solid var(--b-50)"},"& .icn":{mr:s!=null&&s.includes("label")?k(20):0,lh:"75%",flx:"center"}})},f=M.useRef(null),b=M.useRef({}),p=M.useRef(null),[x,N]=M.useState(e||((F=t[0])==null?void 0:F.label)||"");M.useEffect(()=>{x!==e&&e&&N(e)},[e]),M.useLayoutEffect(()=>{var E;const $=(E=p==null?void 0:p.current)==null?void 0:E.querySelector(`[data-label="${x}"]`);if($){const{width:T}=$.getBoundingClientRect()||{width:0};if(!f.current)return;f.current.style.width===""?(b.current.transition=f.current.style.transition,f.current.style.transition="all 0s"):f.current.style.transition=b.current.transition||"",f.current.style.width=`${T}px`,f.current.style.transform=`translate(${$.offsetLeft-5}px, -50%)`}else f.current&&(f.current.style.width="0px",f.current.style.transform="translate(0px, -50%)")});const z=($,E)=>{var H;if($.preventDefault(),$.type==="keydown"){const A=$;if(A.code!=="Space"&&A.code!=="Enter")return}const T=$.currentTarget;if($.type!=="keydown"&&$.type!=="click")return;const P=(H=p.current)==null?void 0:H.querySelector(".tabs button.active");T!==P&&(P==null||P.classList.remove("active"),N(t[E].label)),i&&i(t[E].label)},O=($,E)=>!!($[E]&&(h&&x===$.label&&h.includes(E)||s&&s.includes(E)||!s&&!h));return o.jsx("div",{className:`${j(g.wrapper)} ${n}`,children:o.jsxs("div",{ref:p,className:`${j(g.tabs)} tabs`,style:{height:_},children:[o.jsx("div",{ref:f,className:`selector ${j(g.selector)}`,style:{width:d}}),t==null?void 0:t.map(($,E)=>{const T=o.jsxs("button",{type:"button",className:`${j(g.tab_link)} ${x===$.label?" active":""}`,onClick:P=>z(P,E),onKeyDown:P=>z(P,E),"data-label":$.label,"data-testid":`${Mi($.label)}-tab`,children:[O($,"icn")&&o.jsx("span",{className:`icn ${j(g.icn)} ${x===$.label?j(g.segment_img):""}`,children:$.icn}),O($,"label")&&y($.label)]},`segment-option-${E*10}`);return $.tip?o.jsx(Te,{className:`${j({w:"100%",dy:"inline-block"})} segment-tip`,msg:$.tip,place:l,whiteSpaceNowrap:!0,theme:"light-border",delay:300,children:T},`segment-option-${E*100}`):T})]})})}const um=_t(()=>qe(()=>import("./bf-534-232.js"),["./bf-534-232.js","./main-634.js","./main-634.css","./bf-535-182.js","./bf-432-274.js","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-577-275.js","./bf-570-251.js","./bf-534-247.js","./bf-299-245.js"],import.meta.url),{fallback:o.jsx(cm,{})});function dm(){var O;const{css:e}=ne(),{"*":n}=xe(),t=(O=n.split("/"))==null?void 0:O[0],{darkModeConfig:r}=le(Qs),[i,s]=Y(Wr),a=le(lt),l=le(Ii),c=ie(Ii),[h,u]=M.useState(!1),[d,m]=M.useState(!1),[_,S]=M.useState("Builder Settings"),[j,I]=M.useState("fld-settings"),[k,C]=M.useState("Fields"),f=le(Xs).respectLGLayoutOrder,b=ie(lt),p=le(Qi);M.useEffect(()=>{t.match(/fields-list|field-settings/)&&((i.styleMode||i.inspectMode)&&s(F=>B(w({},F),{styleMode:!1,inspectMode:!1})),I("fld-settings"),C("Fields")),t.match(/themes|style|field-theme-customize|theme-customize/)&&(i.styleMode||s(F=>B(w({},F),{styleMode:!0})),I("theme-customize"),C("Style"))},[t]);const x=()=>{s(F=>B(w({},F),{inspectMode:!F.inspectMode}))},N=()=>{c(F=>F==="light"?"dark":"light")},z=F=>{b(F),K(X("","","Breakpoint",F,{breakpoint:F}))};return o.jsxs("div",{className:e(pe.optionToolBar),children:[o.jsxs("div",{className:e(pe.form_section),children:[o.jsx("div",{className:e(v.flxc),children:o.jsxs(Sc,{children:[o.jsx(ib,{}),o.jsx("div",{className:e(pe.border_right)}),i.styleMode&&o.jsx(Te,{msg:o.jsxs("div",{className:e(pe.inspectTooltipContainer),children:[o.jsx("div",{className:e(pe.inspectTooltipTitle),children:"Inspect Element"}),o.jsx("div",{className:e(pe.inspectTooltipText),children:"Hover + Click to select common elements"}),o.jsxs("div",{className:e(pe.inspectTooltipText),children:["Hold"," ",o.jsx("kbd",{className:e(pe.inspectTooltipKbd),children:"Ctrl"})," ","(",o.jsx("kbd",{className:e(pe.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:x,type:"button",className:`${e([pe.icn_btn,v.icn_hover,pe.inspectBtn])} ${i.inspectMode?"active":""}`,children:[o.jsx(im,{size:"20"}),"Inspect"]})},"inspect-mode-tip")]})}),o.jsxs("div",{className:e(pe.option_section),children:[o.jsx(gl,{width:130,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:a,onChange:z,className:e(v.mr1),variant:"clean-tertiary",options:[{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(ua,{size:23})}),label:"sm",tip:"Small Screen View"},{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(ca,{size:22})}),label:"md",tip:"Medium Screen View"},{icn:o.jsx("span",{className:e(pe.respIcnWrp),children:o.jsx(la,{size:29,stroke:1.6})}),label:"lg",tip:"Large Screen View"}]}),o.jsxs(Cr,{place:"bottom-end",onShow:()=>u(!0),onHide:()=>u(!1),children:[o.jsx("button",{className:`${e([pe.icn_btn,v.icn_hover])} ${h?"active":""}`,type:"button",title:f?p==="in-sync"?y("Layouts are in sync"):y("Layouts will sync on breakpoint switch or form update."):y("Layout sync settings"),children:o.jsx(sm,{size:24,stroke:1.5,syncState:f?p:"disabled"})}),o.jsx(am,{})]}),o.jsx("div",{className:e(pe.border_right)})]}),o.jsxs("div",{className:e(pe.option_section),children:[!((r==null?void 0:r.darkModeSelector)===""&&!(r!=null&&r.preferSystemColorScheme))&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:e(pe.border_right)}),o.jsx(ot,{width:90,wideTab:!0,show:["icn"],tipPlace:"bottom",defaultActive:l,onChange:N,options:[{icn:o.jsx(om,{size:"19"}),label:"light",tip:"Light Mode"},{icn:o.jsx(rm,{size:"19"}),label:"dark",tip:"Dark Mode"}]})]}),o.jsx("div",{className:e(pe.border_right)}),o.jsx(Te,{msg:"Builder Settings",children:o.jsx("button",{"data-testid":"custom-css-js",className:`${e([pe.icn_btn,v.icn_hover])}`,onClick:()=>m(!0),type:"button",children:o.jsx(Ai,{size:22})})})]})]}),o.jsxs(Js,{md:!0,autoHeight:!0,show:d,setModal:m,className:"o-v",title:o.jsx("div",{className:e(pe.modalTitleBar),children:o.jsx(ot,{width:300,wideTab:!0,tipPlace:"bottom",defaultActive:_,onChange:S,options:[{label:"Builder Settings"},{label:"Custom Code"}]})}),closeOnOutsideClick:!1,children:[o.jsx(it,{open:_==="Builder Settings",children:o.jsx(wc,{})}),o.jsx(it,{open:_==="Custom Code",children:o.jsx(um,{})})]})]})}var pm=`.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)}
`,hm=`.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}
`,fm=`.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}
`,bm=`.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 mm(){const e={div([r]){return r}};M.useEffect(()=>{var s,a;const r=jr("#bf-font-0-css"),i=jr("#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`
:root {
    --b-50: #006aff;
    --g-41: #00faa7;
    --white-base: 0;
    --white-100: hsla(var(--white-base), 0%, 100%, 100%); /* #FFFFFF  White*/ 
    --white-0-95: hsla(var(--white-base), 0%, 95%, 100%); /* #F2F2F2  White 95% */
    --white-0-90: hsla(var(--white-base), 0%, 90%, 100%); /* #E6E6E6  White 90% */
    --white-0-80: hsla(var(--white-base), 0%, 80%, 100%); /* #CCCCCC  Light Gray */
    --white-0-0-12: hsla(var(--white-base), 0%, 0%, 12%); /* #000000  Black 12% */
    --white-0-0-8: hsla(var(--white-base), 0%, 0%, 8%);  /* #000000  Black 8% */
    --white-0-93: hsla(var(--white-base), 0%, 93%, 100%); /* #EEEEEE  Light Gray */
    --black-0: hsla(var(--white-base), 0%, 0%, 100%); /* #000000  Black */
    --red-83-54: hsla(var(--white-base), 83%, 54%, 100%); /* #E02424  Red 83% */
    --red-100-49: hsla(var(--white-base), 100%, 49%, 100%); /* #FF0000  Red 100% */

    --bf-font-family-base: 'DM Sans', sans-serif;

    --bf-stroke-clr: #D9E3EB;
    --bf-primary-500: #3B82F6;
    --bf-tertiary-600: #3B486B;
    --bf-tertiary-700: #2C3656;
    --bf-tertiary-800: #1E253F;

    --bf-text-clr-darkgray: #56585d;

    --bf-clr-ghostwhite: #e6e6e6;
    --bf-clr-lightgray: #f0f0f0;
    --bf-clr-gray: #888888;

    --bf-bg-bluishwhite: #f5f8ff;

    --bf-bdr-radius-sm: 4px;
    --bf-bdr-radius-md: 6px;
}
 
 body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
 }
 body *{
    box-sizing: border-box !important;
 }
 
 .custom-conf-mdl {
  display: block !important;
  text-align: left;
}

.tippy-box[data-theme~=light-border] {
  box-shadow: 0 3px 6px -1px #00000026, 0 4px 35px -12px rgb(0 8 16 / 32%) !important;
}

.tippy-box {
  border-radius: .8em !important;
}

.tippy-backdrop {
  background: var(--dp-blue-bg) !important;
}
.isDragging {
    box-shadow: inset 0 0 4px 1px var(--b-50);
 }
.isDragging .layout{
  min-height: calc(100vh - 40px);
}

.builder_dark_mode {
  background: var(--black-0) !important;
}
 
 .layout {
    overflow: visible;
 }

.loader{
  background: rgb(255, 255, 255);
  background-image: linear-gradient(90deg, #e9e9e9 0px, #f7f7f7 30px, #ebebeb 60px);
  background-size: 200%;
  animation: skeleton .6s infinite ease-out;
}

.empty-layout-msg {
  padding: 10px;
  text-align: center;
}

.empty-layout-add-btn {
  display:inline-flex !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  margin-top: 5px;
}

@keyframes skeleton {
  0% {
    background-position: calc(100%);
  }
  60%, 100% {
    background-position: -100%;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Sync warning banner */
.sync-warning-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #FFF3CD;
  border: 1px solid #FFE69C;
  border-top: 2px solid #FFE69C;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 9999;
  font-size: 13px;
  color: #856404;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease-out;
}

.sync-warning-banner__message {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-warning-banner__icon {
  font-size: 18px;
}

.sync-warning-banner__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  color: #856404;
  line-height: 1;
  font-weight: bold;
}

.sync-warning-banner__close:hover {
  opacity: 0.8;
}

.sync-warning-banner__close:focus-visible {
  outline: 2px solid #856404;
  outline-offset: 2px;
  border-radius: 4px;
}
 
 .itm-focus {
    // outline: 3px solid var(--b-50);
    // outline: 2px solid var(--bf-tertiary-600);
    outline: 1px dashed var(--bf-stroke-clr);
    background-color: var(--bf-bg-bluishwhite);
    z-index: 9
 }

 .blk {
    border-radius: var(--bf-bdr-radius-sm);
 }
 
 .blk:focus:not(.itm-focus) {
    z-index: 9;
    // outline: 3px solid var(--g-41)
 }

 .blk:hover:not(.itm-focus) {
    z-index: 999;
 }
 
 .blk:focus > .blk-icn-wrp,.blk:hover > .blk-icn-wrp {
    visibility: visible;
 }

 .blk:focus > .blk-icn-wrp,.itm-focus > .blk-icn-wrp {
  top: -25px;
  right: 0px;
 }

 .blk:not(.itm-focus):hover:not(:focus) > .blk-icn-wrp {
  top: -24px;
  right: 0px;
 }
 
 .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 {
    transform: scale(1)
 }
 
 .tip-btn {
    display:inline-flex;
    justify-content: center;
    align-items: center;
    // font-family: "Outfit", sans-serif;
    font-family: var(--bf-font-family-base);
    border: 0;
    padding: 6px 15px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    background: var(--white-0-93);
    border: 1px solid var(--white-0-86)
 }
 
 .tip-btn:hover {
    background: var(--white-0-0-12)
 }
 
 .red-btn {
    background: var(--red-100-49);
    color: var(--white-100);
    border: 1px solid var(--crimson);
    text-shadow: 0 .5px 1px #101010b5
 }
 
 .red-btn:hover {
    background: var(--red-83-54)
 }

 .resize-txt {
   position: absolute;
   top: -25px;
   font-size: 12px;
   padding: 3px 6px;
   background-color: #a5a5afbd;
   border-radius: 10px;
   z-index: 1;
 }
 
 .blk-icn-wrp {
    background-color: var(--bf-tertiary-600);
    color: white;
    right: 0;
    top: -24px;
    visibility: hidden;
    border-top-left-radius: var(--bf-bdr-radius-sm);
    border-top-right-radius: var(--bf-bdr-radius-sm);
 }
 
 .blk-wrp-btn {
    background: none;
    color: var(--white-100);
    cursor: pointer;
    outline: 0;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0px 1px .7px #00000032);
    transition: background .2s ease-in-out;
 }
 
 .blk-wrp-btn:hover {
    background: hsl(215deg 100% 40%);
 }
 
 .blk-wrp-btn:focus-visible {
    box-shadow: 0 0 0 2px var(--b-50) inset
 }

 .blk-wrp-add-btn {
   
   bottom: -10px;
   left: 50%;
   cursor: pointer;
   background: var(--white-100);
   color: var(--bf-text-clr-darkgray);
   padding: 5px 10px;
   font-size: 13px;
   font-weight: 500;
   border-radius: var(--bf-bdr-radius-sm);
   border: 1px solid var(--bf-stroke-clr);
   display: flex;
   flex-direction: row;
   align-items: center;
   transform: translateX(-50%);
   opacity: 0;
   visibility: hidden;
   transition: all .3s ease-in-out;
   filter: drop-shadow(0px 1px .7px #00000032);
 }
.blk-wrp-add-btn:hover {
   background: var(--bf-tertiary-600);
   font-weight: 500;
   color: var(--white-100);
   border-color: var(--bf-tertiary-600);
}

.blk-wrp-add-btn:active {
  background: var(--bf-tertiary-800);
}
.blk:hover > .blk-wrp-add-btn, .blk.add-field-picker-opened > .blk-wrp-add-btn {
  visibility: visible;
  opacity: 1;
}

.blk.add-field-picker-opened > .blk-wrp-add-btn {
  background: var(--bf-tertiary-600);
  border-color: var(--bf-tertiary-600);
  color: var(--white-100);
}
   
 /* FieldPickerModal.css */

/* Container */
.field-picker-modal {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0px 10px;
  container-type: inline-size;
  padding: 15px;
}


/* Search Section */
.fpm__search-section {
  flex-shrink: 0;
}

.field-picker-modal__search-container {
  position: relative;
  width: 100%;
}

.field-picker-modal__search-input {
  width: 100%;
  padding: 12px 40px;
  font-size: 14px;
  border: 1px solid var(--bf-stroke-clr);
  border-radius: var(--bf-bdr-radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.field-picker-modal__search-input:focus {
  box-shadow: 0 0 0 2px var(--bf-tertiary-600);
}

.field-picker-modal__search-input::-webkit-input-placeholder {
  color: #9ca3af;
}

.field-picker-modal__search-input::-moz-placeholder {
  color: #9ca3af;
}

.field-picker-modal__search-input::placeholder {
  color: #9ca3af;
}

.field-picker-modal__search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  pointer-events: none;
}

.field-picker-modal__clear-button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.field-picker-modal__clear-button:hover {
  color: #374151;
}

.field-picker-modal__shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Content */
.fpm__content {
  flex-grow: 1;
  padding-top: 15px;

}


/* Field Tabs Styles */
.field-tabs {
  width: 100%;
}

.field-tabs__content {
  height: 260px;
  overflow: auto;
}

.field-tabs__grid {
  padding-top: 5px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@container (max-width: 290px) {
  .field-tabs__grid {
    grid-template-columns: 1fr;
  }
}

.field-tabs__item {
  display: flex;
  height: 42px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  max-width: 230px;
}

.field-tabs__item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border: 1px solid #cbd5e1;
  color: #060606;
  font-weight: 500;
}

.field-tabs__item:active {
  transform: translateY(0);
}

.field-tabs__icon {
  color: var(--bf-text-clr-darkgray);
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.field-tabs__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.field-tabs__name {
  font-size: 14px;
  color: var(--bf-text-clr-darkgray);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.field-tabs__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  // margin-left: 8px;
}

.field-tabs__empty-state {
  text-align: center;
  padding: 40px;
  color: #6b7280;
}

/* Search Results Styles */
.search-results {
  width: 100%;
}

.search-results__header {
  // margin-bottom: 16px;
  // padding-bottom: 12px;
  // border-bottom: 1px solid #e5e7eb;
}


.search-results__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
  margin-bottom: 5;
}

.search-results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-height: 300px;
  overflow: auto;
  padding-top: 5px;
}

@container (max-width: 290px) {
  .search-results__grid {
    grid-template-columns: 1fr;
  }
}

@container (width > 500px) {
  .search-results__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.search-results__item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-results__item:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border: 1px solid #cbd5e1;
}

.search-results__item:active {
  transform: translateY(0);
}

.search-results__icon {
  margin-right: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-results__info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.search-results__name {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results__meta {
  display: flex;
  align-items: center;
  margin-top: 4px;
  gap: 8px;
}

.search-results__category {
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: capitalize;
}

.search-results__badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}


.search-results__empty-state {
  text-align: center;
  padding: 5px 10px;
}


.search-results__empty-description {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;

  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Search highlighting */
.search-results mark {
  background-color: #fef3c7;
  padding: 1px 2px;
  border-radius: 2px;
}



/* ===================================== */
/* Positioned Modal Styles (New Component) */
/* ===================================== */

.positioned-modal-backdrop.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 1000;
  backdrop-filter: blur(1px);
}

.positioned-modal-content {
  position: absolute;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  z-index: 1001;
  transition: all 0.2s ease;
}

.positioned-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(4px);
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.positioned-modal-close:hover {
  background: rgba(229, 231, 235, 0.9);
  transform: scale(1.05);
}

.positioned-modal-header {
  padding: 16px 48px 12px 16px; /* Right padding for close button */
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.positioned-modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.positioned-modal-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0 0;
}

.positioned-modal-body {
  flex-grow: 1;
  // overflow: auto;
  // min-height: 0;
}

/* ===================================== */
/* Field Builder Specific Styles */
/* ===================================== */


/* Responsive adjustments */
@media (max-width: 768px) {
  .positioned-modal-content {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    left: 16px !important;
    right: 16px !important;
    max-height: calc(100vh - 32px);
  }
  
  .btcd-modal {
    width: calc(100vw - 32px) !important;
    max-width: none !important;
    margin: 16px;
  }
  
  .btcd-modal-content {
    width: 100% !important;
  }
  .field-tabs__item{
    max-width: none;
  }
}


.positioned-modal-close:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}

/* ===================================== */
/* TabsView Styles - Tertiary-Segment Variant */
/* ===================================== */

.tabs-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header Wrapper - Segmented Control Container */
.tabs-header-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--bf-bdr-radius-md);
  border: 1px solid var(--bf-stroke-clr);
}

/* Navigation Button */
.tabs-nav-button {
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
  background-color: #ffffff;
  color: var(--bf-clr-gray);
  border-radius: var(--bf-bdr-radius-sm);
  border: 1px solid var(--bf-stroke-clr);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tabs-nav-button:hover {
  background-color: var(--bf-clr-lightgray);
  color: var(--bf-text-clr-dark);
  border-color: var(--bf-bdr-clr-light);
}

.tabs-nav-button:focus-visible {
  outline: 2px solid var(--bf-tertiary-600);
  outline-offset: 2px;
}

.tabs-nav-button:disabled {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Prev and Next Buttons */
.tabs-prev-button {
  left: 4px;
}

.tabs-next-button {
  right: 4px;
}

/* Tab Header Container */
.tabs-header-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* Tab Header */
.tabs-header {
  display: flex;
  gap: 4px;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  background-color: transparent;
  border-bottom: none;
  padding: 0;
}

.tabs-header::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Tab Button - Segmented Control Style */
.tab-button {
  padding: 7px 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease, background-color 0.2s ease;
  z-index: 2;
  outline: none;
  white-space: nowrap;
  flex: 1;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--bf-bdr-radius-sm);
}

.tab-button:hover {
  color: #374151 !important;
  background-color: rgba(255, 255, 255, 0.5);
}

.tab-button.active {
  color: #ffffff;
  font-weight: 600;
  background-color: transparent;
}

.tab-button.active:hover {
  color: #f3f4f6 !important;
  background-color: var(--bf-tertiary-800) !important;
}

.tab-button:focus-visible {
  outline: 2px solid var(--bf-tertiary-600);
  outline-offset: -2px;
}

/* Selector - Full Height Pill Background */
.tab-selector {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
  background-color: var(--bf-tertiary-600);
  border-radius: var(--bf-bdr-radius-sm);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: all 0.3s cubic-bezier(0.42, 0.44, 0.57, 1.35);
  will-change: transform, width;
}

/* ===================================== */
/* Old Clean-Bottom-Line Variant (Commented Out) */
/* ===================================== */

/* 
// .tabs-header-wrapper {
//   position: relative;
//   display: flex;
//   align-items: center;
// }

// .tabs-header {
//   border-bottom: 1px solid #e1e5e9;
//   background-color: transparent;
//   padding: 0;
//   gap: 4px;
// }

// .tab-button {
//   padding: 12px 20px;
//   border-radius: var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm) 0 0;
//   color: #6c757d;
//   font-size: 14px;
//   font-weight: 500;
// }

// .tab-button:hover {
//   color: #495057 !important;
//   background-color: var(--bf-clr-ghostwhite) !important;
// }

// .tab-button.active {
//   background-color: var(--bf-clr-lightgray);
//   color: #56585d;
// }

// .tab-selector {
//   position: absolute;
//   bottom: 0;
//   left: 0;
//   height: 2px;
//   background-color: var(--bf-tertiary-600);
//   box-shadow: none;
// }
*/

/* Tab Content */
.tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0px;
  position: relative;
}

/* Content Wrapper (for animations) */
.tab-content-wrapper {
  position: relative;
  width: 100%;
  animation: none;
}

.tab-content-wrapper.slide-in-right {
  animation: slideInFromRight 0.3s ease-out;
}

.tab-content-wrapper.slide-in-left {
  animation: slideInFromLeft 0.3s ease-out;
}


@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInFromLeft{
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===================================== */
 .drag:not(.no-drg) {
    cursor: grab
 }

.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) {
  // outline: 2px dashed var(--b-50);
  outline: 1px dashed var(--bf-tertiary-600);
  outline-offset: -1px;
  // border-radius: var(--bf-bdr-radius-sm) 0px var(--bf-bdr-radius-sm) var(--bf-bdr-radius-sm);
 }


 
 .drag:active {
    cursor: grabbing
 }
 
 .no-drg {
    cursor: default
 }
 
 .react-grid-layout {
    position: relative;
 }
 
 .react-grid-item {
    transition: all 200ms ease;
    transition-property: left,top
 }
 
 .react-grid-item.cssTransforms {
    transition-property: transform
 }
 
 .react-grid-item.resizing {
    transition: none !important;
    z-index: 1;
    will-change: width, height, transform
 }
 
 .react-grid-item.react-draggable-dragging {
    background: #fff;
    transition: none;
    z-index: 3;
    will-change: transform
 }
 
 .react-grid-item.dropping {
    visibility: hidden
 }
 
 .react-grid-item.react-grid-placeholder {
    background: rgba(160,205,255,.2);
    transition-duration: 100ms;
    transition-property: width, height;
    border: 2px dashed #0059ff;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none
 }
 
 .react-grid-item.react-grid-placeholder.placeholder-resizing {
    transition-duration: 0ms !important;
 }
 
 .react-grid-item>.react-resizable-handle {
    position: absolute;
    transform: scale(0)
 }
 
 .react-grid-item>.react-resizable-handle::after {
    position: absolute;
    right: 3px;
    bottom: 3px;
    content: "";
    width: 5px;
    height: 5px
 }
 
 .react-resizable-hide>.react-resizable-handle {
    display: none
 }
 
 .react-resizable {
    position: relative
 }
 
 .react-resizable-handle {
    position: absolute;
    background-repeat: no-repeat;
    background-origin: content-box;
    box-sizing: border-box;
    padding: 0 1px 1px 0;
    border-radius:20px;
    background-color: var(--bf-tertiary-600);
    box-shadow: 0 1px 1.5px 0 #7b7a7a;
  }
  
  .react-resizable-handle-se {
    right: -8px;
    bottom: -8px;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    transform: rotate(90deg);
    background-position: bottom right;
    background-position: 60% 58%;
    z-index: 1;
    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>')
  }
 
  .react-resizable-handle-e {
    top: 40%;
    width: 13px;
    right: -6px;
    height: 30px;
    margin-top: -10px;
    cursor: ew-resize;
    background-position: center;
    background-repeat: no-repeat;
    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>')
 }

 .react-resizable-handle-w {
    top: 40%;
    width: 13px;
    left: -6px;
    height: 30px;
    margin-top: -10px;
    cursor: ew-resize;
    background-position: center;
    background-repeat: no-repeat;
    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>')
 }
 .context-menu {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    position: relative;
    background-color: var(--white-100);
    z-index: 9999999;
 }
 .context-list {
    margin: 0px;
    display: block;
    width: 100%;
    list-style: none;
    padding-left: 0;
  }
  .context-item {
    position: relative;
    margin-bottom: 0px;
    width: 100%;
  }
  .context-btn {
    // font-family: "Outfit", sans-serif;
    font-family: var(--bf-font-family-base);
    border: 0px;
    padding: 6px 6px;
    padding-right: 36px;
    width: 100%;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--white-100);
    cursor: pointer;
  }
  .context-btn span {
      text-align: left;
  }
  .context-btn:hover, .context-btn.active {
    background-color: var(--white-0-93);
  }
  .context-btn:hover svg, .context-btn.active svg {
    filter: drop-shadow(1px 1px 0.5px #b3b3b3);
  }
  .context-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--b-50) inset
  }
  .context-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    stroke: var(--black-0);
  }
  .context-btn svg:nth-of-type(2) {
    margin-right: 0;
    position: absolute;
    right: 8;
  }
  .context-btn-color { 
    color: var(--b-50)
  }
   .context-btn .tag-label{
      font-size: 10px;
      align-self: baseline;
      background-color: var(--white-0-0-8) !important;
      border-radius: 5px;
      margin-left: 3px;
      padding: 2px 4px;
   }
  .pro-badge{
    border: 0.5px solid var(--bf-stroke-clr);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bf-clr-gray);
    font-size: 10;
    border-radius: var(--bf-bdr-radius-sm);
    padding: 2px 4px;
    margin-left: 5;   
  }
  .pro-badge:hover {
    font-weight: 700;
    cursor: pointer;
   }
  .pro-badge svg {
    width: 12px;
    height: 12px;
    margin-right: 3px;
    stroke: var(--bf-clr-gray);
   }
  .delete:hover,.delete.active { 
    color: var(--red-100-49) !important;
  }
  .delete:hover svg,.delete.active svg {
    stroke: var(--red-100-49) !important;
  }
  .right-click-context-menu{
    border:1px solid #d0d0d0;
    padding: 5px;
    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);
   }
   .fld-hide::after {
      position: absolute;
      top: 0;
      left: 0;
      text-align: center;  vertical-align: -50%;
      content: "";
      background-repeat: no-repeat;
      background-position: center;
      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");
      width: 100%;
      height: 100%;
      background-color: hsla(0, 0%, 0%, 20%);
   }


   .spacer-field-bg {
      position: relative;
      background-image: repeating-linear-gradient(
         45deg,                                         /* angle of the stripes */
         hsla(var(--gah),var(--gas),var(--gal),20%),    /* stripe color */
         hsla(var(--gah),var(--gas),var(--gal),5%) 5px, /* end of stripe */
         transparent 5px,                               /* start of space between stripes */
         transparent 20px                               /* end of space */
      );
      overflow: hidden;
   }
  .spacer-field-bg::before {
      content: attr(data-admin-label);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: var(--fld-lbl-c, var(--fld-inp-c));;
      font-size: 16px;
      text-align: center;
      padding: var(--fld-p);
      border-radius: var(--g-bdr-rad);
      background-color: var(--global-fld-bg-color, var(--bg-0));
      pointer-events: none; /* Prevent interaction with the text */
   }
  `,t=e.div`
  .pos-rel { position: relative}
   .g-c {
      display: -ms-grid;
      display: grid;
      place-content: center;
   }
   .f-rob {font-family: "Roboto",sans-serif}
    //  .f-mon {font-family:"Outfit", sans-serif !important; } 
    .f-mon {font-family: var(--bf-font-family-base) !important; }
   .wdt-200 {width: 200px !important;}
   .curp{cursor:pointer}
   .us-n {
      -webkit--ms-user-select: none;
      -webkit-user-select: none;
      -khtml--ms-user-select: none;
      -moz--ms-user-select: none;
      -o--ms-user-select: none;
      -ms-user-select: none;
      user-select: none;
   }
   .pos-abs{position:absolute;}

   .flx {display: flex }
   .flx-c {justify-content: center}
   
   .mt-1 {margin-top: 5px}
   .mr-1 {margin-right: 5px}
   .mr-2 {margin-right: 10px}
   .mb-2 {margin-bottom: 10px}

   .f-12{font-size:12px;}
   .svg-icn {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .highlight-margin {
    background-color: rgb(255, 200, 98);
    opacity: 0.3;
    position: fixed;  /* Changed from absolute - prevents document overflow */
    overflow: hidden;
    z-index: 999999;
    pointer-events: none;  /* Added - prevents interference with mouse events */
  }
  .highlight-padding {
    overflow: hidden;
    background-color: rgb(86, 111, 255);
    outline: 1px dashed #003f53;
    outline-offset: -1px;
  }
  .highlight-element {
    overflow: hidden;
    background: rgb(255, 255, 103);
    outline: 1px dashed #635700;
    outline-offset: -1px;
  }
  .layout-wrapper{
    // background-size: 13px 13px;
    // background-image: radial-gradient(#458ff7 0.5px, #fff 0.5px);
    // background-size: 10px 10px;
    font-family: var(--g-font-family)
}
/* hide default scrollbar in custom scrollbar */
.layout-wrapper > div > div::-webkit-scrollbar {
display:none;
}


`;return o.jsxs("style",{children:[n,Ul,Kl,fm,bm,pm,hm,t]})}function gm({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}=ne();return o.jsxs("div",{className:e(Dt.wrp),children:[o.jsx("div",{className:`${e(Dt.lnk)} loader`}),o.jsx("div",{className:`${e(Dt.titl)} loader`}),o.jsx("div",{className:`${e(Dt.sub)} loader`}),Array(10).fill(0).map((n,t)=>o.jsxs(M.Fragment,{children:[o.jsxs("div",{className:`${e(Dt.t_wrp)} flx`,children:[o.jsx("div",{className:`${e(Dt.txt)} loader`}),o.jsx("div",{className:`${e(Dt.icn)} loader`})]}),o.jsx("div",{className:`${e(Dt.fld)} loader`})]},`tb-${t+3}`))]})}const Dt={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}};function xm({size:e,stroke:n=2}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 19 20",fill:"none",children:[o.jsx("path",{d:"M1 3H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M4 1V5",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"}),o.jsx("path",{d:"M1 10H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M14 8V12",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"}),o.jsx("path",{d:"M1 17H18",stroke:"currentColor",strokeLinecap:"round"}),o.jsx("path",{d:"M6 15V19",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round"})]})}const vm={check:"Check Box",title:"Title",divider:"Divider",image:"Image",date:"Date","datetime-local":"Date-Time",text:"Text",name:"Name",username:"User Name",textarea:"Multiline Text",radio:"Radio Button",number:"Number",password:"Password",email:"Email",time:"Time",month:"Month",week:"Week",select:"Drop Down","file-up":"File Upload","advanced-file-up":"Advanced File Upload",url:"URL",color:"Color Picker",recaptcha:"reCaptcha v2","decision-box":"Decision Box",gdpr:"GDPR Agreement",html:"HTML",shortcode:"Shortcode",button:"Button",paypal:"Paypal",razorpay:"Razorpay",stripe:"Stripe","html-select":"HTML Select",country:"Country",currency:"Currency","phone-number":"Phone Number",address:"Address",section:"Section",repeater:"Repeater"};function ym({size:e=24,stroke:n=2,className:t}){return o.jsxs("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[o.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),o.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),o.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}const wm=({title:e=y("No fields available"),description:n=y("You haven’t added any fields to this form or step yet."),note:t=y("Please add fields from the Form Fields panel."),iconSize:r=30})=>{const{css:i}=ne();return o.jsxs("div",{className:i(Dn.emptyStateWrapper),children:[o.jsx("div",{className:i(Dn.emptyIcon),children:o.jsx(ym,{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"}},xl=({highlightSelector:e,classNames:n,iconSize:t=16,iconStroke:r=2.5})=>{const{css:i}=ne(),s=()=>{e&&Yl(e)};return o.jsx("button",{onMouseEnter:()=>Ko(e),onFocus:()=>Ko(e),onMouseLeave:()=>Yo(),onBlur:()=>Yo(),className:`${i(_m.iconBtn)} ${n}`,onClick:s,title:y("Click to Highlight Element in Builder"),type:"button",children:o.jsx(Mc,{size:t,stroke:r})})},_m={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 _r({className:e="",route:n,title:t,children:r,childrenAccordion:i=!1,fldData:s,open:a=!1,actionComponent:l,offset:c=0,tag:h,highlightSelector:u,onClick:d,styleOverride:m,level:_=0,badge:S,hasTarget:j=!0}){const[I,k]=M.useState(a),[C,g]=M.useState(a?"auto":0),f=M.useRef(null),b=M.useRef(null),{css:p}=ne(),{"*":x}=xe(),[N,z,O]=(x==null?void 0:x.split("/"))||[],F=`${h?`${h}-`:""}${Mi(t)}-acc`;h&&`${h}`,`${Mi(t)}`,M.useEffect(()=>{k(a)},[a]);let $=!1;N==="theme-customize"&&!h&&(z===n||O&&`${z}/${O}`===n)&&($=!0),N==="field-theme-customize"&&O&&h&&h===O&&(z===n||`${z}/${O}`===n)&&($=!0),M.useEffect(()=>{$&&b.current&&setTimeout(()=>{var V;(V=b.current)==null||V.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},300)},[$]);const E=V=>{if(V.type==="keypress"){const re=V;if(re.code==="Space"||re.code==="Enter"){k(Ae=>!Ae);return}}if(V.type==="keyup"&&V.code==="Escape"){k(!1);return}V.type==="click"&&k(re=>!re)},T=V=>V.stopPropagation(),P=V=>{const re=window.getComputedStyle(V),Ae=parseFloat(re.marginTop)+parseFloat(re.marginBottom);return Math.ceil(V.offsetHeight+Ae)},H=()=>{f.current&&g(P(f.current))},A=(_||c)*16;return o.jsxs("div",{ref:b,role:"button",tabIndex:0,onKeyUp:E,onKeyDown:E,className:`${p([Qe.accordionLbl,I&&r?Qe.active:{}])} ${e} ${I&&r?"toggle":""} ${r?"has-children":""} ${$?"active":""}`,onClick:d,"data-testid":F,children:[o.jsx("div",{className:`btgl-wrapper ${p([{w:"100%"},$?Qe.navBtnActive:{}])}`,tabIndex:-1,role:"button",onClick:E,onKeyDown:E,children:o.jsxs("div",{className:`title-bar ${p(v.flxc,Qe.titlebar)} ${p($?{bd:"hsl(233deg 36% 95%)"}:{})}`,style:{paddingLeft:A},children:[r&&o.jsx("div",{className:"toggle-icn-wrapper",children:o.jsx(ql,{className:`toggle-icn ${p(Qe.icn)}`,size:"9",style:{transform:`rotate(${I?180:90}deg)`}})}),o.jsxs("div",{className:p(Qe.flxbwn),children:[o.jsxs("div",{className:p(v.flxc,v.mr2),children:[o.jsx("span",{className:`title ${p([Qe.dflx,i?{}:v.fw500])}`,children:t}),h&&o.jsx("span",{title:`Field key: ${h}`,className:p(Qe.titleTag),children:h}),S&&o.jsx("span",{className:p(Qe.badge),children:S}),m&&o.jsx("span",{className:p(Qe.overrideIndicator),title:"Theme styles override"}),s&&o.jsx(ro,{width:150,icnSize:15,className:`${p(v.mr2)} hovertip`,children:o.jsx("div",{className:p(Qe.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:p(Qe.navActionBtn),"data-action-btn-lbl":!0,children:j&&u&&o.jsx(xl,{highlightSelector:u,classNames:p(Qe.highlightBtn),iconSize:15,iconStroke:2.5})})]}),o.jsx("div",{onClick:T,onKeyDown:T,role:"button",tabIndex:-1,children:l&&l})]})]})}),r&&o.jsx("div",{style:{height:C,transition:"height 300ms",overflow:C==="auto"?"auto":"hidden"},children:o.jsx(Zl,{nodeRef:f,in:I,timeout:300,onEntering:H,onEntered:()=>g("auto"),onExit:()=>{f.current&&g(f.current.offsetHeight)},onExiting:()=>g(0),unmountOnExit:!0,style:{overflow:I?"auto":"hidden"},children:o.jsx("div",{ref:f,className:`body ${p(Qe.body)}`,onClick:T,onKeyDown:T,style:{paddingLeft:A+8},children:r})})})]})}const Qe={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:c=""}){const{formType:h,formID:u,"*":d}=xe(),[m,_,S]=(d==null?void 0:d.split("/"))||[],j=M.useRef(null),I=`${n?`${n}-`:""}${e}-nav`;let k=!1;(m==="theme-customize"&&!S&&!n&&_===e||m==="field-theme-customize"&&n&&n===S&&_===e)&&(k=!0),M.useEffect(()=>{k&&j.current&&setTimeout(()=>{var x;(x=j.current)==null||x.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},100)},[k]);const C=er(),g=()=>{C(n?`/form/builder/${h}/${u}/field-theme-customize/${e}/${n}`:`/form/builder/${h}/${u}/theme-customize/${e}`)},f=x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g())},{css:b}=ne(),p=typeof i=="number"?i*10:parseFloat(i)*10;return o.jsxs("div",{ref:j,className:`${b([Hn.navBtn,k?Hn.navBtnActive:{}])} ${c} ${k?"active":""}`,style:{paddingLeft:p},onClick:g,onKeyDown:f,role:"button",tabIndex:0,"data-testid":I,children:[o.jsxs("div",{className:b(v.flxc),children:[s&&o.jsx("span",{className:b(v.flxc,{mr:5}),children:s}),r,l&&o.jsx("span",{className:b(Hn.overrideIndicator),title:"Theme styles overridden"})]}),o.jsx("div",{className:b(Hn.navActionBtn,v.mr2),"data-action-btn":!0,children:a&&o.jsx(xl,{highlightSelector:a,classNames:b(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"},tipBody:{lh:"1.1",fs:"12.5px",fw:100,ff:'"Roboto", sans-serif'},overrideIndicator:{w:"5px",h:"5px",brs:"50%",bc:"#ffd64f",ml:"3px",px:2}},Ge={con:{h:"100%",bs:"0 0 0 1px var(--b-44-87)",ow:"hidden"},title:{fs:18,fw:600,mt:5,px:16},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)"},scrollDiv:{px:8,py:8,ow:"hidden",mb:300},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)"}},sectionGroup:{mb:24},groupHeader:{fs:12,fw:600,tt:"uppercase",cr:"var(--b-50)",ls:"0.5px",mb:8,px:8,py:4},navItem:(e,n)=>({d:"flex",ai:"center",jc:"space-between",px:8+e*16,py:8,cr:"var(--b-79-96)",bg:n?"var(--b-14-100-61)":"transparent",br:6,cur:"pointer",fs:13,":hover":{bg:"var(--b-14-100-95)"},transition:"all 0.2s ease"}),navItemLeft:{d:"flex",ai:"center",gap:8},navItemLabel:{cr:"var(--b-79-96)"},badge:{fs:10,fw:500,cr:"var(--b-50)",bg:"var(--b-14-100-93)",px:6,py:2,br:4,tt:"uppercase"},fieldElements:{}},yt=({fldKey:e,fieldObj:n,styles:t,route:r,label:i,offset:s="1",classNames:a=""})=>{var h;const l=((h=Ei[r])==null?void 0:h[0])||r,{css:c}=ne();return o.jsx(Xn,{cssSelector:`.${e}-${l}`,subRoute:e,route:r,label:i,offset:s,highlightSelector:`[data-dev-${r}="${e}"]`,styleOverride:vr(t,e,r),classNames:`${a} ${c(Ge.simpleNavBtn)}`})},xn=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l="1",preIconKey:c,sufIconKey:h,preIconRoute:u,sufIconRoute:d,accordionOffset:m="1",childOffset:_="1",additionalChild:S})=>{var g,f;const j=c&&n[c],I=h&&n[h],k=j||I,{css:C}=ne();return!k&&!S?o.jsx(yt,{fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,route:s,label:a,offset:l,classNames:C(Ge.simpleNavBtn)}):o.jsxs(_r,{childrenAccordion:!0,route:s,onClick:()=>i(s),offset:m,title:a,fldData:n,tag:e,open:e===r&&k,highlightSelector:`[data-dev-${s}="${e}"]`,styleOverride:vr(t,e,s),className:C(Ge.layerAccordion),children:[j&&u&&o.jsx(Xn,{cssSelector:`.${e}-${((g=Ei[u])==null?void 0:g[0])||u}`,subRoute:e,route:u,label:"Leading Icon",offset:_,highlightSelector:`[data-dev-${u}="${e}"]`,styleOverride:vr(t,e,u),classNames:C(Ge.simpleNavBtn)}),I&&d&&o.jsx(Xn,{cssSelector:`.${e}-${((f=Ei[d])==null?void 0:f[0])||d}`,subRoute:e,route:d,label:"Trailing Icon",offset:_,highlightSelector:`[data-dev-${d}="${e}"]`,styleOverride:vr(t,e,d),classNames:C(Ge.simpleNavBtn)}),S]},e)},ze=({fldKey:e,fieldObj:n,styles:t,selectedFieldKey:r,styleHandler:i,elements:s,additionalChild:a})=>o.jsx(o.Fragment,{children:s.map((l,c)=>l.condition&&!l.condition(n)?null:o.jsx(xn,B(w({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}-${c}`))}),$m=[{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"}],Sm=[{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"}],jm=[{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"}],Cm=[{condition:e=>!!(e.btnTxt||e.btnPreIcn||e.btnSufIcn),route:"btn",label:"Button",preIconKey:"btnPreIcn",sufIconKey:"btnSufIcn",preIconRoute:"btn-pre-i",sufIconRoute:"btn-suf-i"}],Im=[{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"}],Si={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"}},ut={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"},inputContainer:{condition:e=>!e.typ.match(/^(title|image|html|divider|button|razorpay|paypal|section|repeater)$/gi),route:"inp-fld-wrp",label:"Input Container"},fileInputContainer:{condition:e=>e.typ==="file",route:"file-up-wrpr",label:"File Input Container"}},ji={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"},Tm=[{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"}],km=[{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"}],Nm=[{route:"fld",label:"Select"},{route:"slct-optn",label:"Options"},{route:"slct-opt-grp",label:"Options Group"}],Mm=[{route:"rpt-wrp",label:"Repeatative Container"},{route:"rpt-grid-wrp",label:"Grid Container"},{route:"pair-btn-wrp",label:"Button Container"}],Em=[{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"}],Am=[{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"}],zm=[{route:"inp-fld-wrp",label:"Field Wrapper"},{route:"rating-img",label:"Rating Image"},{route:"rating-msg",label:"Rating Message"}],Om=[{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"}],Lm=[{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"}],Bm=[{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"}],Rm=[{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"}],Pm=[{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 Fm({fldKey:e}){var d,m,_,S;const n=le(he),{formType:t,formID:r}=xe(),i=er(),a=le(Ue)[e],l=le(Qn)||"",{css:c}=ne(),h=j=>{i(`/form/builder/${t}/${r}/field-theme-customize/${j}/${e}`)};if(!a)return null;const u={fldKey:e,fieldObj:a,styles:n,selectedFieldKey:l,styleHandler:h};return o.jsxs(o.Fragment,{children:[Ci.condition(a)&&o.jsx(yt,B(w({},u),{route:Ci.route,label:Ci.label})),ut.fieldContainer.condition(a)&&o.jsx(yt,B(w({},u),{route:ut.fieldContainer.route,label:ut.fieldContainer.label})),a.logo&&o.jsx(yt,B(w({},u),{route:"logo",label:"Logo"})),ut.titleContainer.condition(a)&&o.jsx(yt,B(w({},u),{route:ut.titleContainer.route,label:ut.titleContainer.label})),o.jsx(ze,B(w({},u),{elements:$m})),ut.labelContainer.condition(a)&&o.jsx(yt,B(w({},u),{route:ut.labelContainer.route,label:ut.labelContainer.label})),Ms[0].condition(a)&&o.jsx(xn,B(w(w({},u),Ms[0]),{additionalChild:(d=a.valid)!=null&&d.req&&((m=a.valid)!=null&&m.reqShow)?o.jsx(Xn,{cssSelector:`.${e}-req-smbl`,subRoute:e,route:"req-smbl",label:"Asterisk",offset:"1",highlightSelector:`[data-dev-req-smbl="${e}"]`,styleOverride:((_=n==null?void 0:n[e])==null?void 0:_["req-smbl"])!==void 0,classNames:c(Ge.simpleNavBtn)}):void 0})),o.jsx(ze,B(w({},u),{elements:Sm})),ut.fileInputContainer.condition(a)&&o.jsx(yt,B(w({},u),{route:ut.fileInputContainer.route,label:ut.fileInputContainer.label})),o.jsx(ze,B(w({},u),{elements:Im,additionalChild:o.jsx(yt,B(w({},u),{route:"fld::placeholder",label:"Placeholder"}))})),a.typ.match(/^(button)$/gi)&&o.jsx(ze,B(w({},u),{elements:Cm})),a.typ==="repeater"&&o.jsxs(o.Fragment,{children:[o.jsx(ze,B(w({},u),{elements:Mm})),o.jsx(xn,w(w({},u),Si.addButton)),o.jsx(xn,w(w({},u),Si.removeButton)),((S=a.addToEndBtn)==null?void 0:S.show)&&o.jsxs(o.Fragment,{children:[o.jsx(yt,B(w({},u),{route:"add-to-end-btn-wrp",label:"End Button Container"})),o.jsx(xn,w(w({},u),Si.addToEndButton))]})]}),o.jsx(ze,B(w({},u),{elements:Tm})),a.typ==="image-select"&&o.jsx(ze,B(w({},u),{elements:km})),a.typ==="html-select"&&o.jsx(ze,B(w({},u),{elements:Nm})),a.typ==="signature"&&o.jsx(ze,B(w({},u),{elements:Em})),a.typ==="email-otp"&&o.jsx(ze,B(w({},u),{elements:Am})),a.typ==="rating"&&o.jsx(ze,B(w({},u),{elements:zm})),a.typ==="advanced-file-up"&&o.jsx(xn,B(w({},u),{route:"filepond--drop-label",label:"File Upload Field",additionalChild:o.jsx(ze,B(w({},u),{elements:Om}))})),a.typ==="currency"&&o.jsx(ze,B(w({},u),{elements:Lm})),a.typ==="phone-number"&&o.jsx(ze,B(w({},u),{elements:Bm})),a.typ==="country"&&o.jsx(ze,B(w({},u),{elements:Rm})),a.typ==="select"&&o.jsx(ze,B(w({},u),{elements:Pm})),o.jsx(ze,B(w({},u),{elements:jm})),ji.condition(a)&&o.jsx(yt,B(w({},u),{route:ji.route,label:ji.label}))]})}const Dm=[{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}]}],Hm=[{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 Vm(){const{css:e}=ne(),n=le(he),t=le(qi),i=(Array.isArray(t)?t:[t]).length>1,s=er(),{formID:a,formType:l,"*":c}=xe(),[h,u,d]=(c==null?void 0:c.split("/"))||[],m=Xl(),_=Object.entries(m).filter(([,C])=>!C.hidden),S=C=>Hs(vm[C]||C),j=(C,g=null,f=null)=>{f&&(C=f.typ==="html"||f.typ==="divider"?"fld-wrp":C),s(g?`/form/builder/${l}/${a}/field-theme-customize/${C}/${g}`:`/form/builder/${l}/${a}/theme-customize/${C}`)},I=(C,g)=>C.route===g?!0:C.children?C.children.some(f=>I(f,g)):!1,k=(C,g=1)=>{let f="";return h==="theme-customize"&&(d?f=`${u}/${d}`:f=u||""),C.map((b,p)=>{let x=!1;return f&&b.children&&b.children.length>0&&(b.route===f?x=!0:x=I(b,f)),b.children&&b.children.length>0?o.jsx(_r,{title:b.label,level:g,route:b.route,onClick:()=>j(b.route),highlightSelector:b.highlightSelector,hasTarget:b.hasTarget!==!1,open:x,className:e(Ge.layerAccordion),children:k(b.children,g)},`${b.route}-${p}`):o.jsx(_r,{title:b.label,level:g,route:b.route,onClick:()=>j(b.route),highlightSelector:b.highlightSelector,hasTarget:b.hasTarget!==!1,open:!1,className:e(Ge.layerAccordion)},`${b.route}-${p}`)})};return o.jsxs("div",{className:e(Ge.con),children:[o.jsx(Xn,{icn:o.jsx(xm,{size:13}),route:"quick-tweaks",label:y("Theme Quick Tweaks"),classNames:e(Ge.themeQuickTweaks)}),o.jsx("div",{className:e(Ge.divider)}),o.jsxs(Ps,{style:{height:"calc(100% - 120px)"},autoHide:!0,children:[o.jsx(en,{id:"common-elements-fields",title:y("Global Elements"),className:e(Ge.sectionAccordion),open:!["field-theme-customize","themes","multi-step"].includes(h)&&u!=="quick-tweaks",children:k(Dm)},"common-elements"),i&&o.jsx(en,{id:"multi-step-elements-fields",title:y("Multi-Step Elements"),className:e(Ge.sectionAccordion),open:u==="multi-step",children:k(Hm)},"multi-step-elements"),o.jsxs(en,{id:"individual-elements-fields",title:y("Individual Elements"),className:e(Ge.sectionAccordion),open:h==="field-theme-customize",children:[_==null?void 0:_.map(([C,g],f)=>o.jsx(_r,{title:S(g.typ),level:1,route:`quick-tweaks/${C}`,tag:C,open:C===d,onClick:()=>j("quick-tweaks",C,g),highlightSelector:`[data-dev-fld-wrp="${C}"]`,fldData:g,className:e(Ge.layerAccordion),styleOverride:Jl(n,C),children:o.jsx(Wm,{fldKey:C,fldData:g,styles:n,styleHandler:j})},C)),_.length===0&&o.jsx(wm,{})]},"individual-elements")]})]})}function Wm({fldKey:e,fldData:n,styles:t,styleHandler:r}){return ne(),o.jsx(Fm,{fldKey:e})}var Gm=M.memo(Vm);function Um({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 Ki=[{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"}],Km=()=>Ki.reduce((e,{category:n})=>(e[n]=[],e),{}),Ie={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},singleColumnGrid:{dy:"flex","flex-direction":"column",gap:8,p:8},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},toolbar_wrp:{bd:"var(--white-100)",h:"100%",ow:"hidden",mxw:182,mnw:55,px:3,pt:8,tn:"width 500ms",bs:"0 0 0 1px var(--b-44-87)"},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)"}},sec_acc:{mb:15,cr:"var(--white-0-50)","& .title":{fw:"var(--bf-font-normal)"},"& .btgl":{cur:"pointer !important"}},tool_bar:{dy:"flex",flxp:"wrap",owy:"scroll",px:2,pt:5,mb:300},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}},Ym={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 qm({setNewData:e,value:n,children:t,title:r}){const i=ie(Ql);Y(lt),ie(Dr);const{css:s}=ne(),a=u=>{u.dataTransfer.setData("text/plain",""),Is(),i(n)},l=()=>{Is(),e(n)},c=u=>{(u.key==="Enter"||u.key===" ")&&(u.preventDefault(),e(n))},h=()=>{i(null)};return o.jsx("div",{tabIndex:0,title:r,role:"button","data-testid":`${n.fieldData.typ}-tool`,className:`${s(Ym)} bf-tool-item`,draggable:!0,onClick:l,onKeyDown:c,onDragStart:a,onDragEnd:h,children:t})}var Zm=M.memo(qm);function Xm({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 xr({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 Jm({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 Qm({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 eg({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 tg({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 Es({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 ng({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 rg({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 ig({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 og({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 sg({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 ag({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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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
				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 lg({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 cg({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 ug({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 dg({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 pg({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 hg({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 fg({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 bg({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 mg({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 gg({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 xg({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 vg({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 yg({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 wg({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 _g({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 $g({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 Sg({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 jg({size:e}){return o.jsxs("svg",{width:e,height:e,id:"Layer_1","data-name":"Layer 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 215 215",children:[o.jsx("rect",{className:"cls-1",fill:"none",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"16",x:"9.44",y:"53.59",width:"196.13",height:"107.75",rx:"30"}),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"})]})}function Cg({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 Ig({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 Tg({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 kg({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 Ng({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 Mg=[{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"}],Eg=[{i:"US",lbl:"United States of America (the)",img:"us.png",code:"+1",ex:"2015550123",ptrn:"5056(?:[0-35-9]$_bf_$d|4[46])$_bf_$d{4}|(?:4722|505[2-57-9])$_bf_$d{6}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|8[056])|4(?:0[124-9]|1[02-579]|2[3-5]|3[0245]|4[023578]|58|6[349]|7[0589]|8[04])|5(?:0[1-47-9]|1[0235-8]|20|3[0149]|4[01]|5[179]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|3[0-2589]|4[03578]|5[046-9]|6[02-5]|7[028])|9(?:0[1346-9]|1[02-9]|2[0589]|3[0146-8]|4[01357-9]|5[12469]|7[0-389]|8[04-69]))[2-9]$_bf_$d{6}"},{i:"CA",lbl:"Canada",img:"ca.png",code:"+1",ex:"5062345678",ptrn:"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|73)|90[25])[2-9]$_bf_$d{6}"},{i:"AG",lbl:"Antigua and Barbuda",img:"ag.png",code:"+1",ex:"2684641234",ptrn:"268(?:464|7(?:1[3-9]|[28]$_bf_$d|3[0246]|64|7[0-689]))$_bf_$d{4}"},{i:"AI",lbl:"Anguilla",img:"ai.png",code:"+1",ex:"2642351234",ptrn:"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))$_bf_$d{4}"},{i:"AS",lbl:"American Samoa",img:"as.png",code:"+1",ex:"6847331234",ptrn:"684(?:2(?:48|5[2468]|72)|7(?:3[13]|70|82))$_bf_$d{4}"},{i:"BB",lbl:"Barbados",img:"bb.png",code:"+1",ex:"2462501234",ptrn:"246(?:2(?:[3568]$_bf_$d|4[0-57-9])|45$_bf_$d|69[5-7]|8(?:[2-5]$_bf_$d|83))$_bf_$d{4}"},{i:"BM",lbl:"Bermuda",img:"bm.png",code:"+1",ex:"4413701234",ptrn:"441(?:[2378]$_bf_$d|5[0-39])$_bf_$d{5}"},{i:"BS",lbl:"Bahamas (the)",img:"bs.png",code:"+1",ex:"2423591234",ptrn:"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|[89]9))$_bf_$d{4}"},{i:"DM",lbl:"Dominica",img:"dm.png",code:"+1",ex:"7672251234",ptrn:"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])$_bf_$d{4}"},{i:"DO",lbl:"Dominican Republic (the)",img:"do.png",code:"+1",ex:"8092345678",ptrn:"8[024]9[2-9]$_bf_$d{6}"},{i:"GD",lbl:"Grenada",img:"gd.png",code:"+1",ex:"4734031234",ptrn:"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)$_bf_$d{4}"},{i:"GU",lbl:"Guam",img:"gu.png",code:"+1",ex:"6713001234",ptrn:"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))$_bf_$d{4}"},{i:"JM",lbl:"Jamaica",img:"jm.png",code:"+1",ex:"8762101234",ptrn:"(?:658295|876(?:2(?:0[6-9]|[14-9]$_bf_$d|2[013-9]|3[7-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}"},{i:"KN",lbl:"Saint Kitts and Nevis",img:"kn.png",code:"+1",ex:"8697652917",ptrn:"869(?:48[89]|55[6-8]|66$_bf_$d|76[02-7])$_bf_$d{4}"},{i:"KY",lbl:"Cayman Islands (the)",img:"ky.png",code:"+1",ex:"3453231234",ptrn:"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|9(?:1[679]|2[2-9]|3[06-9]|90))$_bf_$d{4}"},{i:"LC",lbl:"Saint Lucia",img:"lc.png",code:"+1",ex:"7582845678",ptrn:"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}"},{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}"},{i:"MS",lbl:"Montserrat",img:"ms.png",code:"+1",ex:"6644923456",ptrn:"664(?:3(?:49|9[1-6])|49[2-6])$_bf_$d{4}"},{i:"PR",lbl:"Puerto Rico",img:"pr.png",code:"+1",ex:"7872345678",ptrn:"(?:787|939)[2-9]$_bf_$d{6}"},{i:"SX",lbl:"Sint Maarten (Dutch part)",img:"sx.png",code:"+1",ex:"7215205678",ptrn:"7215(?:1[02]|2$_bf_$d|5[034679]|8[014-8])$_bf_$d{4}"},{i:"TC",lbl:"Turks and Caicos Islands (the)",img:"tc.png",code:"+1",ex:"6492311234",ptrn:"649(?:2(?:3[129]|4[1-79])|3$_bf_$d$_bf_$d|4[34][1-3])$_bf_$d{4}"},{i:"TT",lbl:"Trinidad and Tobago",img:"tt.png",code:"+1",ex:"8682911234",ptrn:"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}"},{i:"VC",lbl:"Saint Vincent and the Grenadines",img:"vc.png",code:"+1",ex:"7844301234",ptrn:"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)$_bf_$d{4}"},{i:"VG",lbl:"Virgin Islands (British)",img:"vg.png",code:"+1",ex:"2843001234",ptrn:"284496[6-9]$_bf_$d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))$_bf_$d{4}"},{i:"VI",lbl:"Virgin Islands (U.S.)",img:"vi.png",code:"+1",ex:"3406421234",ptrn:"340(?:2(?:0[0-368]|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}"},{i:"AD",lbl:"Andorra",img:"ad.png",code:"+376",ex:"312345",frmt:"+c ## ### ### ##",ptrn:"690$_bf_$d{6}|[356]$_bf_$d{5}"},{i:"AE",lbl:"United Arab Emirates (the)",img:"ae.png",code:"+971",ex:"501234567",ptrn:"5[024-68]$_bf_$d{7}"},{i:"AF",lbl:"Afghanistan",img:"af.png",code:"+93",ex:"701234567",ptrn:"7$_bf_$d{8}"},{i:"AL",lbl:"Albania",img:"al.png",code:"+355",ex:"672123456",ptrn:"6(?:[78][2-9]|9$_bf_$d)$_bf_$d{6}"},{i:"AM",lbl:"Armenia",img:"am.png",code:"+374",ex:"77123456",ptrn:"(?:33|4[1349]|55|77|88|9[13-9])$_bf_$d{6}"},{i:"AO",lbl:"Angola",img:"ao.png",code:"+244",ex:"923123456",ptrn:"9[1-49]$_bf_$d{7}"},{i:"AR",lbl:"Argentina",img:"ar.png",code:"+54",ex:"91123456789",ptrn:"93888[013-9]$_bf_$d{5}|9(?:29(?:54|66)|3(?:777|865))[2-8]$_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)|473|9(?:[07]2|2[26]|34|46))|3327)[45]$_bf_$d{5}|9(?:2(?:284|302|657|920)|3(?:4(?:8[27]|92)|541|755|878))[2-7]$_bf_$d{5}|9(?:2(?:(?:26|62)2|32[03]|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]$_bf_$d{5}|(?:675$_bf_$d|9(?:11[1-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-7]|[235][4-6]|84)|5(?:1[2-8]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:[03][45]|[17][2-6]|[58][3-6]))))$_bf_$d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4$_bf_$d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]$_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[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]$_bf_$d{5}"},{i:"AT",lbl:"Austria",img:"at.png",code:"+43",ex:"664123456",ptrn:"6(?:5[0-3579]|6[013-9]|[7-9]$_bf_$d)$_bf_$d{4,10}"},{i:"AU",lbl:"Australia",img:"au.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"CC",lbl:"Cocos (Keeling) Islands (the)",img:"cc.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"CX",lbl:"Christmas Island",img:"cx.png",code:"+61",ex:"412345678",ptrn:"4(?:83[0-38]|93[0-6])$_bf_$d{5}|4(?:[0-3]$_bf_$d|4[047-9]|5[0-25-9]|6[06-9]|7[02-9]|8[0-24-9]|9[0-27-9])$_bf_$d{6}"},{i:"AW",lbl:"Aruba",img:"aw.png",code:"+297",ex:"5601234",ptrn:"(?: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}"},{i:"AX",lbl:"Åland Islands",img:"ax.png",code:"+358",ex:"412345678",ptrn:"4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}"},{i:"FI",lbl:"Finland",img:"fi.png",code:"+358",ex:"412345678",ptrn:"4946$_bf_$d{2,6}|(?:4[0-8]|50)$_bf_$d{4,8}"},{i:"AZ",lbl:"Azerbaijan",img:"az.png",code:"+994",ex:"401234567",ptrn:"36554$_bf_$d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)$_bf_$d{7}"},{i:"BA",lbl:"Bosnia and Herzegovina",img:"ba.png",code:"+387",ex:"61123456",ptrn:"6040$_bf_$d{5}|6(?:03|[1-356]|44|7$_bf_$d)$_bf_$d{6}"},{i:"BD",lbl:"Bangladesh",img:"bd.png",code:"+880",ex:"1812345678",ptrn:"(?:1[13-9]$_bf_$d|644)$_bf_$d{7}|(?:3[78]|44|66)[02-9]$_bf_$d{7}"},{i:"BE",lbl:"Belgium",img:"be.png",code:"+32",ex:"470123456",ptrn:"4[5-9]$_bf_$d{7}"},{i:"BF",lbl:"Burkina Faso",img:"bf.png",code:"+226",ex:"70123456",ptrn:"(?:0[1267]|5[1-8]|[67]$_bf_$d)$_bf_$d{6}"},{i:"BG",lbl:"Bulgaria",img:"bg.png",code:"+359",ex:"48123456",ptrn:"43[07-9]$_bf_$d{5}|(?:48|8[7-9]$_bf_$d|9(?:8$_bf_$d|9[69]))$_bf_$d{6}"},{i:"BH",lbl:"Bahrain",img:"bh.png",code:"+973",ex:"36001234",ptrn:"(?:3(?:[1-79]$_bf_$d|8[0-47-9])$_bf_$d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]$_bf_$d|7[0-6])))$_bf_$d{4}"},{i:"BI",lbl:"Burundi",img:"bi.png",code:"+257",ex:"79561234",ptrn:"(?:29|31|6[1289]|7[125-9])$_bf_$d{6}"},{i:"BJ",lbl:"Benin",img:"bj.png",code:"+229",ex:"90011234",ptrn:"(?:5[1-35-8]|6$_bf_$d|9[013-9])$_bf_$d{6}"},{i:"BL",lbl:"Saint Barthélemy",img:"bl.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"GP",lbl:"Guadeloupe",img:"gp.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"MF",lbl:"Saint Martin (French part)",img:"mf.png",code:"+590",ex:"690001234",ptrn:"69(?:0$_bf_$d$_bf_$d|1(?:2[2-9]|3[0-5]))$_bf_$d{4}"},{i:"BN",lbl:"Brunei Darussalam",img:"bn.png",code:"+673",ex:"7123456",ptrn:"(?:22[89]|[78]$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"BO",lbl:"Bolivia (Plurinational State of)",img:"bo.png",code:"+591",ex:"71234567",ptrn:"[67]$_bf_$d{7}"},{i:"BQ",lbl:"Bonaire, Sint Eustatius and Saba",img:"bq.png",code:"+599",ex:"3181234",ptrn:"(?: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:"953[01]$_bf_$d{4}|9(?:5[12467]|6[5-9])$_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])(?:7|9$_bf_$d)$_bf_$d{7}"},{i:"BT",lbl:"Bhutan",img:"bt.png",code:"+975",ex:"17123456",ptrn:"(?:1[67]|77)$_bf_$d{6}"},{i:"BW",lbl:"Botswana",img:"bw.png",code:"+267",ex:"71123456",ptrn:"(?:321|7(?:[1-7]$_bf_$d|8[01]))$_bf_$d{5}"},{i:"BY",lbl:"Belarus",img:"by.png",code:"+375",ex:"294911911",ptrn:"(?:2(?:5[5-79]|9[1-9])|(?:33|44)$_bf_$d)$_bf_$d{6}"},{i:"BZ",lbl:"Belize",img:"bz.png",code:"+501",ex:"6221234",ptrn:"6[0-35-7]$_bf_$d{5}"},{i:"CD",lbl:"Congo (the Democratic Republic of the)",img:"cd.png",code:"+243",ex:"991234567",ptrn:"88$_bf_$d{5}|(?:8[0-59]|9[017-9])$_bf_$d{7}"},{i:"CF",lbl:"Central African Republic (the)",img:"cf.png",code:"+236",ex:"70012345",ptrn:"7[0257]$_bf_$d{6}"},{i:"CG",lbl:"Congo (the)",img:"cg.png",code:"+242",ex:"061234567",ptrn:"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}"},{i:"CH",lbl:"Switzerland",img:"ch.png",code:"+41",ex:"781234567",ptrn:"7[35-9]$_bf_$d{7}"},{i:"CI",lbl:"Côte d'Ivoire",img:"ci.png",code:"+225",ex:"0123456789",ptrn:"0704[0-7]$_bf_$d{5}|0(?:[15]$_bf_$d$_bf_$d|7(?:0[0-37-9]|[4-9][7-9]))$_bf_$d{6}"},{i:"CK",lbl:"Cook Islands (the)",img:"ck.png",code:"+682",ex:"71234",ptrn:"[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(?:2$_bf_$d$_bf_$d|3(?:[03467]$_bf_$d|1[0-35-9]|2[1-9]|5[0-24-9]|8[0-3])|600)|646[59])|80[1-9]$_bf_$d$_bf_$d|9(?: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]))|7[1-9]$_bf_$d$_bf_$d|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}"},{i:"CM",lbl:"Cameroon",img:"cm.png",code:"+237",ex:"671234567",ptrn:"(?:24[23]|6[5-9]$_bf_$d)$_bf_$d{6}"},{i:"CN",lbl:"China",img:"cn.png",code:"+86",ex:"13123456789",ptrn:"1740[0-5]$_bf_$d{6}|1(?:[38]$_bf_$d|4[57]|5[0-35-9]|6[25-7]|7[0-35-8]|9[0135-9])$_bf_$d{8}"},{i:"CO",lbl:"Colombia",img:"co.png",code:"+57",ex:"3211234567",ptrn:"3333(?:0(?:0$_bf_$d|1[0-5])|[4-9]$_bf_$d$_bf_$d)$_bf_$d{3}|(?:3(?:24[2-6]|3(?:00|3[0-24-9]))|9101)$_bf_$d{6}|3(?:0[0-5]|1$_bf_$d|2[0-3]|5[01]|70)$_bf_$d{7}"},{i:"CR",lbl:"Costa Rica",img:"cr.png",code:"+506",ex:"83123456",ptrn:"(?:3005$_bf_$d|6500[01])$_bf_$d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])$_bf_$d{6}"},{i:"CU",lbl:"Cuba",img:"cu.png",code:"+53",ex:"51234567",ptrn:"5$_bf_$d{7}"},{i:"CV",lbl:"Cabo Verde",img:"cv.png",code:"+238",ex:"9911234",ptrn:"(?:[34][36]|5[0-389])$_bf_$d{5}"},{i:"CY",lbl:"Cyprus",img:"cy.png",code:"+357",ex:"96123456",ptrn:"9[4-79]$_bf_$d{6}"},{i:"CZ",lbl:"Czechia",img:"cz.png",code:"+420",ex:"601123456",ptrn:"(?:60[1-8]|7(?:0[2-5]|[2379]$_bf_$d))$_bf_$d{6}"},{i:"DE",lbl:"Germany",img:"de.png",code:"+49",ex:"15123456789",ptrn:"15[0-25-9]$_bf_$d{8}|1(?:6[023]|7$_bf_$d)$_bf_$d{7,8}"},{i:"DJ",lbl:"Djibouti",img:"dj.png",code:"+253",ex:"77831001",ptrn:"77$_bf_$d{6}"},{i:"DK",lbl:"Denmark",img:"dk.png",code:"+45",ex:"32123456",ptrn:"(?:[2-7]$_bf_$d|8[126-9]|9[1-46-9])$_bf_$d{6}"},{i:"DZ",lbl:"Algeria",img:"dz.png",code:"+213",ex:"551234567",ptrn:"(?:5(?:4[0-29]|5$_bf_$d|6[0-2])|6(?:[569]$_bf_$d|7[0-6])|7[7-9]$_bf_$d)$_bf_$d{6}"},{i:"EC",lbl:"Ecuador",img:"ec.png",code:"+593",ex:"991234567",ptrn:"964[0-2]$_bf_$d{5}|9(?:39|[57][89]|6[0-36-9]|[89]$_bf_$d)$_bf_$d{6}"},{i:"EE",lbl:"Estonia",img:"ee.png",code:"+372",ex:"51234567",ptrn:"5(?:[0-35-9]$_bf_$d{6}|4(?:[0-57-9]$_bf_$d{5}|6(?:[0-24-9]$_bf_$d{4}|3(?:[0-35-9]$_bf_$d{3}|4000))))|8(?:1(?:0(?:000|[3-9]$_bf_$d$_bf_$d)|(?:1(?:0[236]|1$_bf_$d)|(?:23|[3-79]$_bf_$d)$_bf_$d)$_bf_$d)|2(?:0(?:000|(?:19|[24-7]$_bf_$d)$_bf_$d)|(?:(?:[124-6]$_bf_$d|3[5-9])$_bf_$d|7(?:[679]$_bf_$d|8[13-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}"},{i:"EG",lbl:"Egypt",img:"eg.png",code:"+20",ex:"1001234567",ptrn:"1[0-25]$_bf_$d{8}"},{i:"EH",lbl:"Western Sahara",img:"eh.png",code:"+212",ex:"650123456",ptrn:"(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:0$_bf_$d|1[0-5]|6[1267]|7[0-57]))$_bf_$d{6}"},{i:"MA",lbl:"Morocco",img:"ma.png",code:"+212",ex:"650123456",ptrn:"(?:6(?:[0-79]$_bf_$d|8[0-247-9])|7(?:0$_bf_$d|1[0-5]|6[1267]|7[0-57]))$_bf_$d{6}"},{i:"ER",lbl:"Eritrea",img:"er.png",code:"+291",ex:"7123456",ptrn:"(?:17[1-3]|7$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"ES",lbl:"Spain",img:"es.png",code:"+34",ex:"612345678",ptrn:"(?:590[16]00$_bf_$d|9(?:6906(?:09|10)|7390$_bf_$d$_bf_$d))$_bf_$d$_bf_$d|(?:6$_bf_$d|7[1-48])$_bf_$d{7}"},{i:"ET",lbl:"Ethiopia",img:"et.png",code:"+251",ex:"911234567",ptrn:"9$_bf_$d{8}"},{i:"FJ",lbl:"Fiji",img:"fj.png",code:"+679",ex:"7012345",ptrn:"(?:[279]$_bf_$d|45|5[01568]|8[034679])$_bf_$d{5}"},{i:"FK",lbl:"Falkland Islands (the) [Malvinas]",img:"fk.png",code:"+500",ex:"51234",ptrn:"[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-7]$_bf_$d)$_bf_$d)$_bf_$d{3}"},{i:"FO",lbl:"Faroe Islands (the)",img:"fo.png",code:"+298",ex:"211234",ptrn:"(?:[27][1-9]|5$_bf_$d|91)$_bf_$d{4}"},{i:"FR",lbl:"France",img:"fr.png",code:"+33",ex:"612345678",ptrn:"(?:6(?:[0-24-8]$_bf_$d|3[0-8]|9[589])|7(?:00|[3-9]$_bf_$d))$_bf_$d{6}"},{i:"GA",lbl:"Gabon",img:"ga.png",code:"+241",ex:"06031234",ptrn:"(?:0[2-7]|6[256]|7[47])$_bf_$d{6}|[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:"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}"},{i:"GG",lbl:"Guernsey",img:"gg.png",code:"+44",ex:"7781123456",ptrn:"7(?:(?:781|839)$_bf_$d|911[17])$_bf_$d{5}"},{i:"IM",lbl:"Isle of Man",img:"im.png",code:"+44",ex:"7924123456",ptrn:"76245[06]$_bf_$d{4}|7(?:4576|[59]24$_bf_$d|624[0-4689])$_bf_$d{5}"},{i:"JE",lbl:"Jersey",img:"je.png",code:"+44",ex:"7797712345",ptrn:"7(?:(?:(?:50|82)9|937)$_bf_$d|7(?:00[378]|97[7-9]))$_bf_$d{5}"},{i:"GE",lbl:"Georgia",img:"ge.png",code:"+995",ex:"555123456",ptrn:"5(?:(?:0555|1177)[5-9]|757(?:7[7-9]|8[01]))$_bf_$d{3}|5(?:0070|(?:11|33)33|[25]222)[0-4]$_bf_$d{3}|5(?:00(?:0$_bf_$d|50)|11(?:00|1$_bf_$d|2[0-4])|5200|75(?:00|[57]5)|8(?:0(?:[01]$_bf_$d|2[0-4])|58[89]|8(?:55|88)))$_bf_$d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)$_bf_$d{6}"},{i:"GF",lbl:"French Guiana",img:"gf.png",code:"+594",ex:"694201234",ptrn:"694(?:[0-249]$_bf_$d|3[0-48])$_bf_$d{4}"},{i:"GH",lbl:"Ghana",img:"gh.png",code:"+233",ex:"231234567",ptrn:"(?:2(?:[0346-8]$_bf_$d|5[67])|5(?:[0457]$_bf_$d|6[01]|9[1-9]))$_bf_$d{6}"},{i:"GI",lbl:"Gibraltar",img:"gi.png",code:"+350",ex:"57123456",ptrn:"(?:5[146-8]$_bf_$d|606)$_bf_$d{5}"},{i:"GL",lbl:"Greenland",img:"gl.png",code:"+299",ex:"221234",ptrn:"[245]$_bf_$d{5}"},{i:"GM",lbl:"Gambia (the)",img:"gm.png",code:"+220",ex:"3012345",ptrn:"(?:[23679]$_bf_$d|5[0-389])$_bf_$d{5}"},{i:"GN",lbl:"Guinea",img:"gn.png",code:"+224",ex:"601123456",ptrn:"6[0-356]$_bf_$d{7}"},{i:"GQ",lbl:"Equatorial Guinea",img:"gq.png",code:"+240",ex:"222123456",ptrn:"(?:222|55$_bf_$d)$_bf_$d{6}"},{i:"GR",lbl:"Greece",img:"gr.png",code:"+30",ex:"6912345678",ptrn:"68[57-9]$_bf_$d{7}|(?:69|94)$_bf_$d{8}"},{i:"GT",lbl:"Guatemala",img:"gt.png",code:"+502",ex:"51234567",ptrn:"[3-5]$_bf_$d{7}"},{i:"GW",lbl:"Guinea-Bissau",img:"gw.png",code:"+245",ex:"955012345",ptrn:"9(?:5$_bf_$d|6[569]|77)$_bf_$d{6}"},{i:"GY",lbl:"Guyana",img:"gy.png",code:"+592",ex:"6091234",ptrn:"6$_bf_$d{6}"},{i:"HK",lbl:"Hong Kong",img:"hk.png",code:"+852",ex:"51234567",ptrn:"(?:46(?:[07][0-7]|1[0-6]|4[0-57-9]|5[0-8]|6[0-4])|5730|6(?:26[013-7]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|929[03-9])$_bf_$d{4}|(?:46[238]|5(?:[1-59][0-46-9]|6[0-4689]|7[0-2469])|6(?:0[1-9]|[13-59]$_bf_$d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]$_bf_$d))$_bf_$d{5}"},{i:"HN",lbl:"Honduras",img:"hn.png",code:"+504",ex:"91234567",ptrn:"[37-9]$_bf_$d{7}"},{i:"HR",lbl:"Croatia",img:"hr.png",code:"+385",ex:"921234567",ptrn:"9(?:751$_bf_$d{5}|8$_bf_$d{6,7})|9(?:0[1-9]|[1259]$_bf_$d|7[0679])$_bf_$d{6}"},{i:"HT",lbl:"Haiti",img:"ht.png",code:"+509",ex:"34101234",ptrn:"[34]$_bf_$d{7}"},{i:"HU",lbl:"Hungary",img:"hu.png",code:"+36",ex:"201234567",ptrn:"(?:[257]0|3[01])$_bf_$d{7}"},{i:"ID",lbl:"Indonesia",img:"id.png",code:"+62",ex:"812345678",ptrn:"8[1-35-9]$_bf_$d{7,10}"},{i:"IE",lbl:"Ireland",img:"ie.png",code:"+353",ex:"850123456",ptrn:"8(?:22|[35-9]$_bf_$d)$_bf_$d{6}"},{i:"IL",lbl:"Israel",img:"il.png",code:"+972",ex:"502345678",ptrn:"5(?:(?:[02368]$_bf_$d|[19][2-9]|4[1-9])$_bf_$d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))$_bf_$d{5}"},{i:"IN",lbl:"India",img:"in.png",code:"+91",ex:"8123456789",ptrn:"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))$_bf_$d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))$_bf_$d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]$_bf_$d|7[02-8])$_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(?:0$_bf_$d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]$_bf_$d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9$_bf_$d$_bf_$d)$_bf_$d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])$_bf_$d|7(?:[235689]$_bf_$d|4[0189]))|7(?:1(?:[013-8]$_bf_$d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|4(?:1[2-4]|[29][0-7]|3[0-8]|[56]$_bf_$d|8[0-24-7])|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}"},{i:"IO",lbl:"British Indian Ocean Territory (the)",img:"io.png",code:"+246",ex:"3801234",ptrn:"38$_bf_$d{5}"},{i:"IQ",lbl:"Iraq",img:"iq.png",code:"+964",ex:"7912345678",ptrn:"7[3-9]$_bf_$d{8}"},{i:"IR",lbl:"Iran (Islamic Republic of)",img:"ir.png",code:"+98",ex:"9123456789",ptrn:"9(?:(?:0(?:[0-35]$_bf_$d|4[4-6])|(?:[13]$_bf_$d|2[0-3])$_bf_$d)$_bf_$d|9(?:(?:[0-3]$_bf_$d|4[0145])$_bf_$d|5[15]0|8(?:1$_bf_$d|88)|9(?:0[013]|[19]$_bf_$d|21|77|8[7-9])))$_bf_$d{5}"},{i:"IS",lbl:"Iceland",img:"is.png",code:"+354",ex:"6111234",ptrn:"(?:38[589]$_bf_$d$_bf_$d|6(?:1[1-8]|2[0-6]|3[027-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[28]))$_bf_$d{4}"},{i:"IT",lbl:"Italy",img:"it.png",code:"+39",ex:"3123456789",ptrn:"3[1-9]$_bf_$d{8}|3[2-9]$_bf_$d{7}"},{i:"VA",lbl:"Holy See (the)",img:"va.png",code:"+39",ex:"3123456789",ptrn:"3[1-9]$_bf_$d{8}|3[2-9]$_bf_$d{7}"},{i:"JO",lbl:"Jordan",img:"jo.png",code:"+962",ex:"790123456",ptrn:"7(?:[78][0-25-9]|9$_bf_$d)$_bf_$d{6}"},{i:"JP",lbl:"Japan",img:"jp.png",code:"+81",ex:"9012345678",ptrn:"[7-9]0[1-9]$_bf_$d{7}"},{i:"KE",lbl:"Kenya",img:"ke.png",code:"+254",ex:"712123456",ptrn:"(?:1(?:0[0-6]|1[0-5]|2[014])|7$_bf_$d$_bf_$d)$_bf_$d{6}"},{i:"KG",lbl:"Kyrgyzstan",img:"kg.png",code:"+996",ex:"700123456",ptrn:"312(?:58$_bf_$d|973)$_bf_$d{3}|(?:2(?:0[0-35]|2$_bf_$d)|5[0-24-7]$_bf_$d|7(?:[07]$_bf_$d|55)|880|99[05-9])$_bf_$d{6}"},{i:"KH",lbl:"Cambodia",img:"kh.png",code:"+855",ex:"91234567",ptrn:"(?:(?: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}"},{i:"KI",lbl:"Kiribati",img:"ki.png",code:"+686",ex:"72001234",ptrn:"(?:63$_bf_$d{3}|73(?:0[0-5]$_bf_$d|140))$_bf_$d{3}|[67]200[01]$_bf_$d{3}"},{i:"KM",lbl:"Comoros (the)",img:"km.png",code:"+269",ex:"3212345",ptrn:"[34]$_bf_$d{6}"},{i:"KP",lbl:"Korea (the Democratic People's Republic of)",img:"kp.png",code:"+850",ex:"1921234567",ptrn:"19[1-3]$_bf_$d{7}"},{i:"KR",lbl:"Korea (the Republic of)",img:"kr.png",code:"+82",ex:"1020000000",ptrn:"1(?:05(?:[0-8]$_bf_$d|9[0-6])|22[13]$_bf_$d)$_bf_$d{4,5}|1(?:0[1-46-9]|[16-9]$_bf_$d|2[013-9])$_bf_$d{6,7}"},{i:"KW",lbl:"Kuwait",img:"kw.png",code:"+965",ex:"50012345",ptrn:"(?:5(?:2(?:22|5[25])|7(?:55|77)|88[58])|6(?:222|333|444|70[013-9]|888|93[039])|9(?:11[01]|3(?:00|33)|500))$_bf_$d{4}|(?:5(?:[05]$_bf_$d|1[0-7]|6[56])|6(?:0[034679]|5[015-9]|6$_bf_$d|7[67]|9[069])|9(?:0[09]|22|[4679]$_bf_$d|55|8[057-9]))$_bf_$d{5}"},{i:"KZ",lbl:"Kazakhstan",img:"kz.png",code:"+7",ex:"7710009998",ptrn:"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)$_bf_$d{7}"},{i:"RU",lbl:"Russian Federation (the)",img:"ru.png",code:"+7",ex:"9123456789",ptrn:"9$_bf_$d{9}"},{i:"LA",lbl:"Lao People's Democratic Republic (the)",img:"la.png",code:"+856",ex:"2023123456",ptrn:"(?:20(?:[239]$_bf_$d|5[24-9]|7[6-8])|302$_bf_$d)$_bf_$d{6}"},{i:"LB",lbl:"Lebanon",img:"lb.png",code:"+961",ex:"71123456",ptrn:"793(?:[01]$_bf_$d|2[0-4])$_bf_$d{3}|(?:(?:3|81)$_bf_$d|7(?:[01]$_bf_$d|6[013-9]|8[89]|9[12]))$_bf_$d{5}"},{i:"LI",lbl:"Liechtenstein",img:"li.png",code:"+423",ex:"660234567",ptrn:"(?:6(?:4(?:69|[7-9]$_bf_$d)|5[0-4]$_bf_$d|6(?:[024]$_bf_$d|[17]0|3[7-9]))$_bf_$d|7(?:[37-9]$_bf_$d|42|56))$_bf_$d{4}"},{i:"LK",lbl:"Sri Lanka",img:"lk.png",code:"+94",ex:"712345678",ptrn:"7(?:[0-25-8]$_bf_$d|4[01])$_bf_$d{6}"},{i:"LR",lbl:"Liberia",img:"lr.png",code:"+231",ex:"770123456",ptrn:"(?:(?:330|555|(?:77|88)$_bf_$d)$_bf_$d|4[67])$_bf_$d{5}|[56]$_bf_$d{6}"},{i:"LS",lbl:"Lesotho",img:"ls.png",code:"+266",ex:"50123456",ptrn:"[56]$_bf_$d{7}"},{i:"LT",lbl:"Lithuania",img:"lt.png",code:"+370",ex:"61234567",ptrn:"6$_bf_$d{7}"},{i:"LU",lbl:"Luxembourg",img:"lu.png",code:"+352",ex:"628123456",ptrn:"6(?:[269][18]|5[1568]|7[189]|81)$_bf_$d{6}"},{i:"LV",lbl:"Latvia",img:"lv.png",code:"+371",ex:"21234567",ptrn:"2$_bf_$d{7}"},{i:"LY",lbl:"Libya",img:"ly.png",code:"+218",ex:"912345678",ptrn:"9[1-6]$_bf_$d{7}"},{i:"MC",lbl:"Monaco",img:"mc.png",code:"+377",ex:"612345678",ptrn:"4(?:[46]$_bf_$d|5[1-9])$_bf_$d{5}|(?:3|6$_bf_$d)$_bf_$d{7}"},{i:"MD",lbl:"Moldova (the Republic of)",img:"md.png",code:"+373",ex:"62112345",ptrn:"562$_bf_$d{5}|(?:6$_bf_$d|7[16-9])$_bf_$d{6}"},{i:"ME",lbl:"Montenegro",img:"me.png",code:"+382",ex:"67622901",ptrn:"6(?:[07-9]$_bf_$d|3[024]|6[0-25])$_bf_$d{5}"},{i:"MG",lbl:"Madagascar",img:"mg.png",code:"+261",ex:"321234567",ptrn:"3[2-489]$_bf_$d{7}"},{i:"MH",lbl:"Marshall Islands (the)",img:"mh.png",code:"+692",ex:"2351234",ptrn:"(?:(?:23|54)5|329|45[56])$_bf_$d{4}"},{i:"MK",lbl:"Republic of North Macedonia",img:"mk.png",code:"+389",ex:"72345678",ptrn:"7(?:3555|4(?:60$_bf_$d|747)|94(?:[01]$_bf_$d|2[0-4]))$_bf_$d{3}|7(?:[0-25-8]$_bf_$d|3[2-4]|42|9[23])$_bf_$d{5}"},{i:"ML",lbl:"Mali",img:"ml.png",code:"+223",ex:"65012345",ptrn:"2(?:0(?:01|79)|17$_bf_$d)$_bf_$d{4}|(?:5[01]|[679]$_bf_$d|8[239])$_bf_$d{6}"},{i:"MM",lbl:"Myanmar",img:"mm.png",code:"+95",ex:"92123456",ptrn:"(?: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}"},{i:"MN",lbl:"Mongolia",img:"mn.png",code:"+976",ex:"88123456",ptrn:"(?:83[01]|920)$_bf_$d{5}|(?:5[05]|8[05689]|9[013-9])$_bf_$d{6}"},{i:"MO",lbl:"Macao",img:"mo.png",code:"+853",ex:"66123456",ptrn:"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}"},{i:"MQ",lbl:"Martinique",img:"mq.png",code:"+596",ex:"696201234",ptrn:"69(?:6(?:[0-46-9]$_bf_$d|5[0-6])|727)$_bf_$d{4}"},{i:"MR",lbl:"Mauritania",img:"mr.png",code:"+222",ex:"22123456",ptrn:"[2-4][0-46-9]$_bf_$d{6}"},{i:"MT",lbl:"Malta",img:"mt.png",code:"+356",ex:"96961234",ptrn:"(?:7(?:210|[79]$_bf_$d$_bf_$d)|9(?:[29]$_bf_$d$_bf_$d|69[67]|8(?:1[1-3]|89|97)))$_bf_$d{4}"},{i:"MU",lbl:"Mauritius",img:"mu.png",code:"+230",ex:"52512345",ptrn:"5(?:4(?:2[1-389]|7[1-9])|87[15-8])$_bf_$d{4}|5(?:2[5-9]|4[3-589]|[57]$_bf_$d|8[0-689]|9[0-8])$_bf_$d{5}"},{i:"MV",lbl:"Maldives",img:"mv.png",code:"+960",ex:"7712345",ptrn:"46[46]$_bf_$d{4}|(?:7$_bf_$d|9[13-9])$_bf_$d{5}"},{i:"MW",lbl:"Malawi",img:"mw.png",code:"+265",ex:"991234567",ptrn:"111$_bf_$d{6}|(?:31|77|88|9[89])$_bf_$d{7}"},{i:"MX",lbl:"Mexico",img:"mx.png",code:"+52",ex:"12221234567",ptrn:"6571$_bf_$d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]$_bf_$d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3$_bf_$d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4$_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-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1$_bf_$d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9$_bf_$d))$_bf_$d{7}"},{i:"MY",lbl:"Malaysia",img:"my.png",code:"+60",ex:"123456789",ptrn:"1(?:1888[69]|4400|8(?:47|8[27])[0-4])$_bf_$d{4}|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(?:[0134]$_bf_$d|2[1-9]|5[0-6]))|(?:(?:[269]|59)$_bf_$d|[37][1-9]|4[235-9])$_bf_$d|8(?:1[23]|[236]$_bf_$d|4[06]|5[7-9]|7[016-9]|8[01]|9[0-8]))$_bf_$d{5}"},{i:"MZ",lbl:"Mozambique",img:"mz.png",code:"+258",ex:"821234567",ptrn:"8[2-79]$_bf_$d{7}"},{i:"NA",lbl:"Namibia",img:"na.png",code:"+264",ex:"811234567",ptrn:"(?:60|8[1245])$_bf_$d{7}"},{i:"NC",lbl:"New Caledonia",img:"nc.png",code:"+687",ex:"751234",ptrn:"(?:5[0-4]|[79]$_bf_$d|8[0-79])$_bf_$d{4}"},{i:"NE",lbl:"Niger (the)",img:"ne.png",code:"+227",ex:"93123456",ptrn:"(?:23|7[04]|[89]$_bf_$d)$_bf_$d{6}"},{i:"NF",lbl:"Norfolk Island",img:"nf.png",code:"+672",ex:"381234",ptrn:"(?:14|3[58])$_bf_$d{4}"},{i:"NG",lbl:"Nigeria",img:"ng.png",code:"+234",ex:"8021234567",ptrn:"(?:702[0-24-9]|8(?:01|19)[01])$_bf_$d{6}|(?:70[13-689]|8(?:0[2-9]|1[0-8])|9(?:0[1-9]|1[2356]))$_bf_$d{7}"},{i:"NI",lbl:"Nicaragua",img:"ni.png",code:"+505",ex:"81234567",ptrn:"(?: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}"},{i:"NL",lbl:"Netherlands (the)",img:"nl.png",code:"+31",ex:"612345678",ptrn:"6[1-58]$_bf_$d{7}"},{i:"NO",lbl:"Norway",img:"no.png",code:"+47",ex:"40612345",ptrn:"(?:4[015-8]|59|9$_bf_$d)$_bf_$d{6}"},{i:"SJ",lbl:"Svalbard and Jan Mayen",img:"sj.png",code:"+47",ex:"41234567",ptrn:"(?:4[015-8]|59|9$_bf_$d)$_bf_$d{6}"},{i:"NP",lbl:"Nepal",img:"np.png",code:"+977",ex:"9841234567",ptrn:"9(?:6[0-3]|7[245]|8[0-24-68])$_bf_$d{7}"},{i:"NR",lbl:"Nauru",img:"nr.png",code:"+674",ex:"5551234",ptrn:"(?:55[3-9]|666|8$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"NU",lbl:"Niue",img:"nu.png",code:"+683",ex:"8884012",ptrn:"888[4-9]$_bf_$d{3}"},{i:"NZ",lbl:"New Zealand",img:"nz.png",code:"+64",ex:"211234567",ptrn:"2[0-27-9]$_bf_$d{7,8}|21$_bf_$d{6}"},{i:"OM",lbl:"Oman",img:"om.png",code:"+968",ex:"92123456",ptrn:"1505$_bf_$d{4}|(?:7(?:[1289]$_bf_$d|70)|9(?:0[1-9]|[1-9]$_bf_$d))$_bf_$d{5}"},{i:"PA",lbl:"Panama",img:"pa.png",code:"+507",ex:"61234567",ptrn:"(?:1[16]1|21[89]|6(?:[02-9]$_bf_$d|1[0-8])$_bf_$d|8(?:1[01]|7[23]))$_bf_$d{4}"},{i:"PE",lbl:"Peru",img:"pe.png",code:"+51",ex:"912345678",ptrn:"9$_bf_$d{8}"},{i:"PF",lbl:"French Polynesia",img:"pf.png",code:"+689",ex:"87123456",ptrn:"8[7-9]$_bf_$d{6}"},{i:"PG",lbl:"Papua New Guinea",img:"pg.png",code:"+675",ex:"70123456",ptrn:"(?:7$_bf_$d|8[18])$_bf_$d{6}"},{i:"PH",lbl:"Philippines (the)",img:"ph.png",code:"+63",ex:"9051234567",ptrn:"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[2357]$_bf_$d|4[2-9]|6[0-35-9]|8[135-9]|9[1-9]))$_bf_$d{7}"},{i:"PK",lbl:"Pakistan",img:"pk.png",code:"+92",ex:"3012345678",ptrn:"3(?:[014]$_bf_$d|2[0-5]|3[0-7]|55|64)$_bf_$d{7}"},{i:"PL",lbl:"Poland",img:"pl.png",code:"+48",ex:"512345678",ptrn:"211(?:1$_bf_$d|3[1-5])$_bf_$d{4}|(?:45|5[0137]|6[069]|7[2389]|88)$_bf_$d{7}"},{i:"PM",lbl:"Saint Pierre and Miquelon",img:"pm.png",code:"+508",ex:"551234",ptrn:"(?:4[02-4]|5[05])$_bf_$d{4}"},{i:"PS",lbl:"Palestine, State of",img:"ps.png",code:"+970",ex:"599123456",ptrn:"5[69]$_bf_$d{7}"},{i:"PT",lbl:"Portugal",img:"pt.png",code:"+351",ex:"912345678",ptrn:"6[0356]92(?:30|9$_bf_$d)$_bf_$d{3}|(?:(?:16|6[0356])93|9(?:[1-36]$_bf_$d$_bf_$d|480))$_bf_$d{5}"},{i:"PW",lbl:"Palau",img:"pw.png",code:"+680",ex:"6201234",ptrn:"(?:46[0-5]|6[2-4689]0)$_bf_$d{4}|(?:45|77|88)$_bf_$d{5}"},{i:"PY",lbl:"Paraguay",img:"py.png",code:"+595",ex:"961456789",ptrn:"9(?:51|6[129]|[78][1-6]|9[1-5])$_bf_$d{6}"},{i:"QA",lbl:"Qatar",img:"qa.png",code:"+974",ex:"33123456",ptrn:"(?:28|[35-7]$_bf_$d)$_bf_$d{6}"},{i:"RE",lbl:"Réunion",img:"re.png",code:"+262",ex:"692123456",ptrn:"(?:69(?:2$_bf_$d$_bf_$d|3(?:[06][0-46]|1[013]|2[0-2]|3[0-39]|4$_bf_$d|5[0-5]|7[0-27]|8[0-8]|9[0-479]))|9769$_bf_$d)$_bf_$d{4}"},{i:"YT",lbl:"Mayotte",img:"yt.png",code:"+262",ex:"639012345",ptrn:"639(?:0[0-79]|1[019]|[267]$_bf_$d|3[09]|40|5[05-9]|9[04-79])$_bf_$d{4}"},{i:"RO",lbl:"Romania",img:"ro.png",code:"+40",ex:"712034567",ptrn:"7020$_bf_$d{5}|7(?:0[013-9]|1[0-2]|[2-7]$_bf_$d|8[03-8]|9[019])$_bf_$d{6}"},{i:"RS",lbl:"Serbia",img:"rs.png",code:"+381",ex:"601234567",ptrn:"6(?:[0-689]|7$_bf_$d)$_bf_$d{6,7}"},{i:"RW",lbl:"Rwanda",img:"rw.png",code:"+250",ex:"720123456",ptrn:"7[2389]$_bf_$d{7}"},{i:"SA",lbl:"Saudi Arabia",img:"sa.png",code:"+966",ex:"512345678",ptrn:"579[01]$_bf_$d{5}|5(?:[013-689]$_bf_$d|7[0-36-8])$_bf_$d{6}"},{i:"SB",lbl:"Solomon Islands",img:"sb.png",code:"+677",ex:"7421234",ptrn:"48$_bf_$d{3}|(?:(?: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}"},{i:"SC",lbl:"Seychelles",img:"sc.png",code:"+248",ex:"2510123",ptrn:"2[5-8]$_bf_$d{5}"},{i:"SD",lbl:"Sudan (the)",img:"sd.png",code:"+249",ex:"911231234",ptrn:"(?:1[0-2]|9[0-3569])$_bf_$d{7}"},{i:"SE",lbl:"Sweden",img:"se.png",code:"+46",ex:"701234567",ptrn:"7[02369]$_bf_$d{7}"},{i:"SG",lbl:"Singapore",img:"sg.png",code:"+65",ex:"81234567",ptrn:"(?:8(?:0(?:[13]$_bf_$d|2[013-9]|4[0-35-7])|[1-8]$_bf_$d$_bf_$d|9(?:[0-4]$_bf_$d|5[0-2]))|9[0-8]$_bf_$d$_bf_$d)$_bf_$d{4}"},{i:"SH",lbl:"Saint Helena, Ascension and Tristan da Cunha",img:"sh.png",code:"+290",ex:"51234",ptrn:"[56]$_bf_$d{4}"},{i:"SI",lbl:"Slovenia",img:"si.png",code:"+386",ex:"31234567",ptrn:"65(?:1$_bf_$d|55|[67]0)$_bf_$d{4}|(?:[37][01]|4[0139]|51|6[489])$_bf_$d{6}"},{i:"SK",lbl:"Slovakia",img:"sk.png",code:"+421",ex:"912123456",ptrn:"909[1-9]$_bf_$d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5$_bf_$d)$_bf_$d{6}"},{i:"SL",lbl:"Sierra Leone",img:"sl.png",code:"+232",ex:"25123456",ptrn:"(?:25|3[0-5]|66|7[3-9]|8[08]|9[09])$_bf_$d{6}"},{i:"SM",lbl:"San Marino",img:"sm.png",code:"+378",ex:"66661212",ptrn:"6[16]$_bf_$d{6}"},{i:"SN",lbl:"Senegal",img:"sn.png",code:"+221",ex:"701234567",ptrn:"75(?:01|[38]3)$_bf_$d{5}|7(?:[06-8]$_bf_$d|21|5[4-7]|90)$_bf_$d{6}"},{i:"SO",lbl:"Somalia",img:"so.png",code:"+252",ex:"71123456",ptrn:"(?:(?:15|(?:3[59]|4[89]|79|8[08])$_bf_$d|6(?:0[5-7]|[1-9]$_bf_$d)|9(?:0$_bf_$d|[2-9]))$_bf_$d|2(?:4$_bf_$d|8))$_bf_$d{5}|(?:6$_bf_$d|7[1-9])$_bf_$d{6}"},{i:"SR",lbl:"Suriname",img:"sr.png",code:"+597",ex:"7412345",ptrn:"(?:7[124-7]|8[124-9])$_bf_$d{5}"},{i:"SS",lbl:"South Sudan",img:"ss.png",code:"+211",ex:"977123456",ptrn:"(?:12|9[1257-9])$_bf_$d{7}"},{i:"ST",lbl:"Sao Tome and Principe",img:"st.png",code:"+239",ex:"9812345",ptrn:"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:"66(?:[02-9]$_bf_$d$_bf_$d|1(?:[02-9]$_bf_$d|16))$_bf_$d{3}|(?:6[0-57-9]|7$_bf_$d)$_bf_$d{6}"},{i:"SY",lbl:"Syrian Arab Republic",img:"sy.png",code:"+963",ex:"944567890",ptrn:"9(?:22|[3-689]$_bf_$d)$_bf_$d{6}"},{i:"SZ",lbl:"Eswatini",img:"sz.png",code:"+268",ex:"76123456",ptrn:"7[6-9]$_bf_$d{6}"},{i:"TD",lbl:"Chad",img:"td.png",code:"+235",ex:"63012345",ptrn:"(?:6[023568]|77|9$_bf_$d)$_bf_$d{6}"},{i:"TG",lbl:"Togo",img:"tg.png",code:"+228",ex:"90112345",ptrn:"(?:7[09]|9[0-36-9])$_bf_$d{6}"},{i:"TH",lbl:"Thailand",img:"th.png",code:"+66",ex:"812345678",ptrn:"671[0-3]$_bf_$d{5}|(?:14|6[1-6]|[89]$_bf_$d)$_bf_$d{7}"},{i:"TJ",lbl:"Tajikistan",img:"tj.png",code:"+992",ex:"917123456",ptrn:"41[18]$_bf_$d{6}|(?:[034]0|11|2[02]|5[05]|7[07]|8[08]|9$_bf_$d)$_bf_$d{7}"},{i:"TK",lbl:"Tokelau",img:"tk.png",code:"+690",ex:"7290",ptrn:"7[2-4]$_bf_$d{2,5}"},{i:"TL",lbl:"Timor-Leste",img:"tl.png",code:"+670",ex:"77212345",ptrn:"7[2-8]$_bf_$d{6}"},{i:"TM",lbl:"Turkmenistan",img:"tm.png",code:"+993",ex:"66123456",ptrn:"6$_bf_$d{7}"},{i:"TN",lbl:"Tunisia",img:"tn.png",code:"+216",ex:"20123456",ptrn:"3(?:001|[12]40)$_bf_$d{4}|(?:(?:[259]$_bf_$d|4[0-7])$_bf_$d|3(?:1[1-35]|6[0-4]|91))$_bf_$d{5}"},{i:"TO",lbl:"Tonga",img:"to.png",code:"+676",ex:"7715123",ptrn:"(?:55[4-6]|6(?:[09]$_bf_$d|3[02]|8[15-9])|(?:7$_bf_$d|8[46-9])$_bf_$d|999)$_bf_$d{4}"},{i:"TR",lbl:"Turkey",img:"tr.png",code:"+90",ex:"5012345678",ptrn:"56161$_bf_$d{5}|5(?:0[15-7]|1[06]|24|[34]$_bf_$d|5[1-59]|9[46])$_bf_$d{7}"},{i:"TV",lbl:"Tuvalu",img:"tv.png",code:"+688",ex:"901234",ptrn:"(?:7[01]$_bf_$d|90)$_bf_$d{4}"},{i:"TW",lbl:"Taiwan (Province of China)",img:"tw.png",code:"+886",ex:"912345678",ptrn:"(?:40001[0-2]|9[0-8]$_bf_$d{4})$_bf_$d{3}"},{i:"TZ",lbl:"Tanzania, United Republic of",img:"tz.png",code:"+255",ex:"621234567",ptrn:"77[2-9]$_bf_$d{6}|(?:6[1-9]|7[1-689])$_bf_$d{7}"},{i:"UA",lbl:"Ukraine",img:"ua.png",code:"+380",ex:"501234567",ptrn:"(?:50|6[36-8]|7[1-3]|9[1-9])$_bf_$d{7}"},{i:"UG",lbl:"Uganda",img:"ug.png",code:"+256",ex:"712345678",ptrn:"726[01]$_bf_$d{5}|7(?:[0157-9]$_bf_$d|20|36|[46][0-4])$_bf_$d{6}"},{i:"UY",lbl:"Uruguay",img:"uy.png",code:"+598",ex:"94231234",ptrn:"9[1-9]$_bf_$d{6}"},{i:"UZ",lbl:"Uzbekistan",img:"uz.png",code:"+998",ex:"912345678",ptrn:"(?:(?:33|88|9[0-57-9])$_bf_$d{3}|55(?:50[013]|90$_bf_$d)|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]))|9(?:2(?:1[1267]|3[01]|5$_bf_$d|7[0-4])|(?:5[67]|7$_bf_$d)$_bf_$d|6(?:2[0-26]|8$_bf_$d)))|7(?:[07]$_bf_$d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98$_bf_$d)|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]))|6(?:2(?:2[1245]|4[2-4])|39$_bf_$d|41[179]|5(?:[349]$_bf_$d|5[0-2])|7(?:0[017]|[13]$_bf_$d|22|44|55|67|88))|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:"4(?:1[24-8]|2[46])$_bf_$d{7}"},{i:"VN",lbl:"Viet Nam",img:"vn.png",code:"+84",ex:"912345678",ptrn:"(?:5(?:2[238]|59)|89[689]|99[013-9])$_bf_$d{6}|(?:3$_bf_$d|5[689]|7[06-9]|8[1-8]|9[0-8])$_bf_$d{7}"},{i:"VU",lbl:"Vanuatu",img:"vu.png",code:"+678",ex:"5912345",ptrn:"(?:[58]$_bf_$d|7[013-7])$_bf_$d{5}"},{i:"WF",lbl:"Wallis and Futuna",img:"wf.png",code:"+681",ex:"821234",ptrn:"(?:72|8[23])$_bf_$d{4}"},{i:"WS",lbl:"Samoa",img:"ws.png",code:"+685",ex:"7212345",ptrn:"(?:7[1-35-7]|8(?:[3-7]|9$_bf_$d{3}))$_bf_$d{5}"},{i:"YE",lbl:"Yemen",img:"ye.png",code:"+967",ex:"712345678",ptrn:"7[0137]$_bf_$d{7}"},{i:"ZA",lbl:"South Africa",img:"za.png",code:"+27",ex:"711234567",ptrn:"(?: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)|(?:6$_bf_$d|7[0-46-9])$_bf_$d{3}|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}"},{i:"ZM",lbl:"Zambia",img:"zm.png",code:"+260",ex:"955123456",ptrn:"(?:7[679]|9[5-8])$_bf_$d{7}"},{i:"ZW",lbl:"Zimbabwe",img:"zw.png",code:"+263",ex:"712345678",ptrn:"7(?:[178]$_bf_$d|3[1-9])$_bf_$d{6}"}];const Ag=e=>{var t,r,i,s,a,l;const n=(e==null?void 0:e.err)||{};return[{name:y("Text"),keywords:"Text, name, input, field",icn:o.jsx(jg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"text",lbl:y("Text"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Multiline Text"),keywords:"Multiline Text, Textarea, Text Area, Messages, message, comment, feedback",icn:o.jsx(Cg,{size:"20"}),pos:{h:145,w:60,minW:9,i:"shadow_block"},category:"basic",elm:{typ:"textarea",lbl:y("Multi-Line Text"),valid:{},err:{},customClasses:{},customAttributes:{fld:[{key:"rows",value:"4"}]}}},{name:y("Name"),keywords:"name, full name, text, first name, last name, middle name, prefix, suffix, given name, family name",icn:o.jsx(es,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"name",lbl:y("Name"),ph:y("Placeholder..."),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Email"),keywords:"Email, Email Address",icn:o.jsx(ec,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"email",lbl:y("Email"),ph:y("example@mail.com"),phHide:!0,pattern:"^[^$_bf_$s@]+@[^$_bf_$s@]+$_bf_$.[^$_bf_$s@]+$",valid:{},err:{invalid:{dflt:((t=n.email)==null?void 0:t.invalid)||'<p style="margin:0">Please, Enter a valid email address.</p>',show:!0},req:{dflt:n.req||`<p style="margin:0">${y("This field is required")}</p>`,show:!0,custom:!0}},customClasses:{},customAttributes:{}}},{name:y("Number"),keywords:"Number, Numeric, Numeric Field, Calculator",icn:o.jsx(hg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"number",lbl:y("Number"),ph:y("e.g. 123"),phHide:!0,valid:{},err:{invalid:{dflt:((r=n.number)==null?void 0:r.invalid)||"<p style='margin:0'>Number is invalid</p>",show:!0}},customClasses:{},customAttributes:{}}},{name:y("Username"),keywords:"User Name, text",icn:o.jsx(es,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"username",lbl:y("Username"),ph:y("e.g. John Doe"),phHide:!0,valid:{},err:{entryUnique:{dflt:n.entryUnique||"That User Name is taken. Try another.",show:!0}},customAttributes:{}}},{name:y("Password"),keywords:"Password, encrypted, secure",icn:o.jsx(fg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"password",lbl:y("Password"),ph:y("Placeholder..."),phHide:!0,valid:{},err:{},config:{},customClasses:{},customAttributes:{}}},{name:y("Slider"),keywords:"Slider, range, number-range, range-slider",icn:o.jsx(_g,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"range",lbl:y("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:y("URL"),keywords:"URL, Link, Website, Web Address, Web URL, Web Link, Web Site",icn:o.jsx(kg,{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:y("URL"),ph:y("https://www.example.com"),phHide:!0,valid:{},err:{invalid:{dflt:((i=n.url)==null?void 0:i.invalid)||'<p style="margin:0">URL is invalid</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:y("Color Picker"),keywords:"Color Picker, Color Select, Color Picker Field, Color Select Field",icn:o.jsx(eg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"color",lbl:y("Color Picker"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("reCAPTCHA v2"),keywords:"ReCaptcha v2, Google ReCaptcha v2, spam protection, bot protection, security",icn:o.jsx(Pc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"recaptcha",valid:{},config:{theme:"light",size:"normal"}}},{name:y("Turnstile"),keywords:"ReCaptcha, hCaptcha, Captcha, Turnstile, cloudflare, spam protection, bot protection",icn:o.jsx(Qm,{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:y("hCaptcha"),keywords:"ReCaptcha, hCaptcha, Captcha, spam protection, bot protection",icn:o.jsx(lg,{size:20}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"captcha",elm:{typ:"hcaptcha",valid:{},layout:{autoHeight:1},config:{mode:"visible",theme:"light",size:"normal"}}},{name:y("Email OTP"),keywords:"Email OTP, OTP, One Time Password, Verification, Email Verification, Security",icn:o.jsx(og,{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:y("Email OTP"),subtitle:y("A verification code will be sent to the specified email address."),subtitleHide:!0,valid:{},err:{notVerified:{show:!0,custom:!1,msg:"",dflt:y("Please verify your email OTP before submitting.")}},config:{receiverEmailType:"dynamic",receiverEmail:"",receiverEmailFld:"",otpLength:6,resendDelay:60,expiryDelay:15,emailTemplate:`<p>Hello,</p>
                          <p>We received a request to verify your action.</p>
                          <p>Your One-Time Password (OTP) is: <strong>\${bf_otp_code}</strong></p>
                          <p>This code is valid for <strong>\${bf_expiry_minutes}</strong> minutes and can only be used once.</p>
                          <p>If you did not initiate this request, please ignore this email.</p>
                          <p>Thank you</p>`,sendBtnTxt:y("Send OTP"),resendBtnTxt:y("Resend OTP"),verifyBtnTxt:y("Verify OTP"),waitTxt:y("Resend available in ${bf_resend_countdown}s."),maxAttempts:5,sendOnValidate:!0,autoVerifyOnInput:!0}}},{name:y("Repeater"),keywords:"Repeater, Field Group, Group, Repeater Field",icn:o.jsx(vg,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"repeater",lbl:y("Repeater"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{},addBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:y(""),icn:{pos:"",url:""}},addBtnPreIcn:`${bits.assetsURL}/../static/repeater/plusicon.svg`,removeBtn:{show:!0,btnTyp:"button",btnSiz:"md",txt:y(""),icn:{pos:"",url:""}},removeBtnPreIcn:`${bits.assetsURL}/../static/repeater/minusicon.svg`,addToEndBtn:{btnAlignment:"start",show:!1,btnTyp:"button",btnSiz:"md",txt:y("Add New"),icn:{pos:"",url:""}},addToEndBtnPreIcn:`${bits.assetsURL}/../static/repeater/plusicon.svg`,btnPosition:"row",btnAlignment:"center",btnView:"row",repeatDirecton:"column"}},{name:y("Signature"),keywords:"Signature Editor, Signature Field, Signature, Signature Block, Canvas, Digital Signature",icn:o.jsx(wg,{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:y("Signature"),lbl:y("Signature"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},btnAlign:"start",config:{maxWidth:2.5,penColor:"#000000",backgroundColor:"#ffffff",imgTyp:"image/png"},clrBtnHide:!1,clrBtn:y("Clear"),clrPreIcn:"",clrSufIcn:"",btnDir:!1,undoBtnHide:!1,undoBtn:y("Undo"),undoPreIcn:"",undoSufIcn:"",redoBtnHide:!1,redoBtn:y("Redo"),redoPreIcn:"",redoSufIcn:""}},{name:y("Rating"),keywords:"Check Box, Mark, Rating, Star, Review, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(tc,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"rating",lbl:y("Rating"),opt:[{lbl:y("Terrible"),val:"1",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:y("Bad"),val:"2",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:y("Satisfied"),val:"3",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:y("Good"),val:"4",img:`${bits.assetsURL}/../static/rating/star.svg`},{lbl:y("Excellent"),val:"5",img:`${bits.assetsURL}/../static/rating/star.svg`}],ratingPos:"start",valid:{},err:{},customClasses:{},customAttributes:{},showReviewLblOnHover:!1,showReviewLblOnSelect:!1,selectedRating:!1}},{name:y("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(cg,{size:20}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"image-select",lbl:y("Image Select"),opt:[{lbl:y("Option 1"),val:"1",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:y("Option 2"),val:"2",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:y("Option 3"),val:"3",img:`${bits.assetsURL}/../static/placeholder-image.svg`},{lbl:y("Option 4"),val:"4",img:`${bits.assetsURL}/../static/placeholder-image.svg`}],valid:{},err:{},tickImgSrc:`${bits.assetsURL}/../static/image-select/tick.svg`,itemSize:200,layout:{autoHeight:1},tickPosition:"top-left",optLblHide:!1,inpType:"radio",customClasses:{},customAttributes:{}}},{name:y("Select"),keywords:"Select, Dropdown, Drop Down, option",icn:o.jsx(io,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"option",elm:{typ:"html-select",lbl:y("Select"),opt:[{lbl:"Option 1"},{lbl:"Option 2"},{lbl:"Option 3"}],ph:"Select an option...",phHide:!1,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Button"),keywords:"Button, Submit, Submit Button, Submit Form, click, click button",icn:o.jsx(xr,{size:"20"}),pos:{h:60,w:60,i:"shadow_block"},category:"basic",elm:{typ:"button",btnTyp:"button",btnSiz:"md",txt:y("Button"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:y("Section"),keywords:"Section, Field Group, Group, Section Field, Fieldset, Fieldset Group",icn:o.jsx(yg,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"section",lbl:y("Section"),layout:{autoHeight:1},valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Title"),keywords:"title, heading, heading 1, heading 2, heading 3, heading 4, heading 5, heading 6",icn:o.jsx(Tg,{w:"20"}),pos:{h:48,w:60,i:"shadow_block"},category:"element",elm:{typ:"title",adminLbl:y("Title"),adminLblHide:!0,titleImg:"",logoHide:!0,title:"Your Title Here",titleHide:!1,subtitleHide:!0,titleTag:"h1",subTitleTag:"h5",valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Image"),keywords:"image, picture, photo, logo, icon, avatar, profile picture, profile photo",icn:o.jsx(ug,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"image",adminLbl:y("Image"),adminLblHide:!0,alt:"",valid:{},height:"",width:"",img:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Divider"),keywords:"divider, line, horizontal line, horizontal divider",icn:o.jsx(rg,{w:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"element",elm:{typ:"divider",adminLbl:y("Divider"),adminLblHide:!0,valid:{},divider:{},err:{},customClasses:{},customAttributes:{}}},{name:y("HTML"),keywords:"HTML, HTML Code, HTML Block, HTML Element, HTML Field, HTML Editor",icn:o.jsx(nc,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"html",adminLbl:y("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:y("Radio Button"),keywords:"Radio button, Choice, Single Choice, Radio Group",icn:o.jsx(gg,{size:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"radio",lbl:y("Radio"),round:!0,opt:[{lbl:y("Option 1")},{lbl:y("Option 2")},{lbl:y("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:y("Checkbox"),keywords:"Check Box, Mark, Tick, Option, Select, Choice, Multiple, Multiple Choice, Multiple Select, Multiple Option",icn:o.jsx(Jm,{w:"20"}),pos:{h:140,w:60,i:"shadow_block"},category:"option",elm:{typ:"check",lbl:y("Check Boxs"),opt:[{lbl:y("Option 1")},{lbl:y("Option 2")},{lbl:y("Option 3")}],valid:{},err:{},optionCol:1,customClasses:{},customAttributes:{}}},{name:y("Dropdown"),keywords:"Dropdown, Select, Drop Down, Multiple Select, Multiple Choice, Multiple Option",icn:o.jsx(ig,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"select",lbl:y("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,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:((s=n.select)==null?void 0:s.mn)||'<p style="margin:0">You must select the minimum required options.</p>',show:!0},mx:{dflt:((a=n.select)==null?void 0:a.mx)||'<p style="margin:0">You can select up to the maximum allowed options.</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:y("File Upload"),keywords:"File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(rc,{w:"20"}),pos:{h:80,w:60,i:"shadow_block",minW:20},category:"basic",elm:{typ:"file-up",lbl:y("File Upload"),btnTxt:"Attach File",valid:{},prefixIcn:`${bits.assetsURL}/../static/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:ye,maxSize:2,sizeUnit:"MB",isItTotalMax:!1,showSelectStatus:!0,fileSelectStatus:"No File Selected",allowedFileType:"",showFileList:!0,fileExistMsg:"A file allready exist",showFilePreview:!0,showFileSize:!0,duplicateAllow:!1,accept:"",minFile:0,maxFile:0}}},{name:y("Date"),keywords:"Date, Date Field, month",icn:o.jsx(Rc,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"date",lbl:y("Pick A Date"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Time"),keywords:"Time, Time Picker, Time Select, minutes, hours",icn:o.jsx(Ig,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"time",lbl:y("Select Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Date-Time"),keywords:"Date-Time, Date, Time, day, month, year",icn:o.jsx(Es,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"datetime-local",lbl:y("Select Date-Time"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Week"),keywords:"Week, Date, day",icn:o.jsx(Ng,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"week",lbl:y("Select Week"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Month"),keywords:"Month, Date",icn:o.jsx(pg,{w:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"basic",elm:{typ:"month",lbl:y("Month Input"),valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Date Time (Advanced)"),keywords:"advanced date time, date-time, date time field",icn:o.jsx(Es,{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:y("Advanced Date Time"),ph:y("Please Select a Date"),phHide:!0,valid:{},err:{},customClasses:{},customAttributes:{},config:{mode:"single",dateFormat:"Y-m-d",disableMobile:!0}}},{name:y("Spacer"),keywords:"Gap, Spacer, Space, Empty Space, Blank Space, Vertical Space, Horizontal Space",icn:o.jsx($g,{size:"22"}),pos:{h:80,w:60,i:"shadow_block"},category:"element",elm:{typ:"spacer",adminLbl:y("Spacer"),adminLblHide:!0,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Advance File Upload"),keywords:"Advanced File Upload, Attachment, photo, image, video, audio, file, document, doc, pdf, excel, ppt",icn:o.jsx(Xm,{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:y("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:y("Address"),keywords:"Address, Street, City, State, ZIP, Country, Postal",icn:o.jsx(Ec,{size:"20"}),pos:{h:240,w:60,i:"shadow_block"},new:!0,category:"advanced",elm:{typ:"address",lbl:y("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:y("Country"),keywords:"Country, Country List, Country Dropdown, Country Select, flag",icn:o.jsx(sg,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"country",lbl:y("Country"),mul:!1,phHide:!0,ph:"Select a Country",config:{selectedFlagImage:ye,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:ye,detectCountryByIp:!1,detectCountryByGeo:!1,defaultValue:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found"},options:bl,valid:{},err:{},customClasses:{},customAttributes:{}}},{name:y("Currency"),keywords:"Currency, Currency Field, Amount, Price",icn:o.jsx(tg,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"currency",lbl:y("Currency"),ph:y("Enter Amount.."),phHide:!0,inputFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},valueFormatOptions:{formatter:"browser",showCurrencySymbol:!0,decimalSeparator:"."},config:{selectedFlagImage:ye,selectedCurrencyClearable:!0,searchClearable:!0,optionFlagImage:ye,defaultCurrencyKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCurrencyFoundText:"No Currency Found"},options:Mg,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:y("Phone Number"),keywords:"Phone number, Number",icn:o.jsx(mg,{size:20}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"phone-number",lbl:y("Phone Number"),ph:y("Enter Phone Number"),phHide:!0,config:{selectedFlagImage:ye,selectedCountryClearable:!0,searchClearable:!0,optionFlagImage:ye,defaultCountryKey:"",showSearchPh:!0,searchPlaceholder:"Search for countries",noCountryFoundText:"No Country Found",inputFormat:"+c #### ### ###",valueFormat:"+c #### ### ###"},options:Eg,valid:{},err:{invalid:{dflt:((l=n["phone-number"])==null?void 0:l.invalid)||'<p style="margin:0">Please enter a valid phone number</p>',show:!0}},customClasses:{},customAttributes:{}}},{name:y("Hidden Field"),keywords:"hidden,Text, number, hide, hidden field, hidden text, hidden number",icn:o.jsx(ic,{size:"20"}),pos:{h:80,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"hidden",lbl:y("Hidden Field"),ph:y("Set Default Value"),phHide:!0,valid:{hide:!0},err:{},customClasses:{},customAttributes:{}}},{name:y("GDPR Agreement"),keywords:"Consent, GDPR, Yes/No, Agree/Disagree,GDPR agreement, decision, accept",icn:o.jsx(ag,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"advanced",elm:{typ:"gdpr",adminLbl:y("GDPR Agreement"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${y("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">${y("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:y("Decision Box"),keywords:"Decision box, GDPR, Yes/No, Agree/Disagree, concent",icn:o.jsx(ng,{size:"20"}),pos:{h:40,w:60,i:"shadow_block"},category:"basic",elm:{typ:"decision-box",adminLbl:y("Decision Box"),adminLblHide:!0,lbl:`<p style="margin:0"><span style="font-size: 12pt">${y("Decision Box")}</span></p>`,msg:{checked:"Accepted",unchecked:"Rejected"},valid:{req:!0},err:{req:{dflt:n.req||`<p style="margin:0">${y("This field is required")}</p>`,show:!0}},customClasses:{},customAttributes:{}}},{name:y("Paypal"),keywords:"Paypal, payment, credit card, credit card payment",icn:o.jsx(bg,{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:y("Paypal"),currency:"USD",style:{layout:"vertical",color:"gold",shape:"rect",label:"paypal",height:"55"},valid:{}}},{name:y("Razorpay"),keywords:"Razorpay, payment, credit card, credit card payment",icn:o.jsx(xg,{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:y("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:y("Stripe"),keywords:"Stripe, payment, credit card, credit card payment",icn:o.jsx(Sg,{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:y("Stripe"),err:{},txt:y("Pay with Stripe"),layout:{autoHeight:1},config:{payBtnTxt:y("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:y("Mollie"),keywords:"Mollie, payment, credit card, credit card payment",icn:o.jsx(dg,{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:y("Mollie"),err:{},txt:y("Pay with Mollie"),btnFulW:!0,btnAlign:"center",txtAlign:"center",config:{currency:"EUR",amount:"10.00",description:"Order #12345",payment_method:["creditcard"],redirect_url:""}}},{name:y("Shortcode"),keywords:"Shortcode, Shortcode Block, Shortcode Element, Shortcode Field, Shortcode Editor, embed, Embed Code",icn:o.jsx(xc,{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:y("Shortcode"),adminLblHide:!0,content:"[type_your_shortcode_here]",layout:{autoHeight:1},valid:{},customClasses:{},customAttributes:{}}},{name:y("Draft Button"),keywords:"Button, Submit, Save, Save Draft, Submit Button, Submit Form, Click, Click button",icn:o.jsx(xr,{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:y("Save Draft"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:y("Next Step"),keywords:"Button, Next, Next Step, Next Button",icn:o.jsx(xr,{size:"23"}),pos:{h:60,w:30,x:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"next-step",btnSiz:"md",txt:y("Next"),align:"end",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}},{name:y("Previous Step"),keywords:"Button, Previous, Previous Step, Previous Button",icn:o.jsx(xr,{size:"23"}),pos:{h:60,w:30,i:"shadow_block"},category:"advanced",elm:{typ:"button",btnTyp:"previous-step",btnSiz:"md",txt:y("Previous"),align:"start",icn:{pos:"",url:""},valid:{},customClasses:{},customAttributes:{}}}]};function zg({setNewData:e}){const{css:n}=ne(),t=le(Vs),[r,i]=M.useState(""),[s,a]=M.useState(!1),[l,c]=M.useState(!1),[h,u]=M.useState(!1),d=M.useRef(null),m=M.useMemo(()=>Ag(t),[t]),_=Km(),S=M.useMemo(()=>{let p=m;return r&&(p=m.filter(x=>x.keywords.toLowerCase().includes(r.toLowerCase())||x.name.toLowerCase().includes(r.toLowerCase()))),l&&(p=[...p].sort((x,N)=>x.name.localeCompare(N.name))),p.reduce((x,N)=>(x[N.category].push(N),x),_)},[m,r,l]),j=M.useCallback(p=>{const x=p.target.value.trim();i(x)},[]),I=M.useCallback(()=>{d.current&&(d.current.value=""),i(""),a(!1)},[]),k=M.useCallback(()=>{c(p=>!p)},[]);M.useCallback(p=>{const{scrollTop:x}=p.target;u(x>50)},[]);const C=M.useCallback(()=>a(!0),[]),g=M.useCallback(()=>{setTimeout(()=>a(!1),200)},[]);M.useEffect(()=>{const p=x=>{var N;(x.ctrlKey||x.metaKey)&&x.key==="/"&&(x.preventDefault(),(N=d.current)==null||N.focus())};return window.addEventListener("keydown",p),()=>window.removeEventListener("keydown",p)},[]);const f=M.useCallback(p=>o.jsx(Zm,{setNewData:e,value:{fieldData:p.elm,fieldSize:p.pos},title:p.name,children:o.jsxs("div",{className:n(Ie.toolWrapper),title:p.name,children:[o.jsx("span",{className:`${n(Ie.tool_icn,v.mr1)} tool-icn`,children:p.icn}),o.jsx("span",{className:`${n(Ie.tool_label)} tool-label`,children:p.name}),p.tip&&o.jsx(ro,{className:"hover-tip",icnSize:15,children:o.jsx("div",{className:"txt-body",children:p.tip})}),!ye&&p.pro&&o.jsx(Ni,{width:"18",children:o.jsx("div",{className:"txt-body",children:o.jsx(oc,{html:p.pro})})}),(ye||!p.pro)&&p.new&&o.jsx(Ni,{width:"18",text:"New",isNewBadge:!0}),o.jsx(kc,{size:13,classNames:`${n(Ie.dragIcon)} drag-icon`})]})},p.name),[e,n]),b=M.useCallback((p,x,N)=>{if(!N.length)return null;const z=N.length,O=r?`${x} (${z} ${y("found")})`:`${x} (${z})`;return o.jsx(en,{id:`${p}-fields`,title:O,className:n(Ie.categorySection),open:!0,children:o.jsx("div",{className:`${n(Ie.twoColumnGrid)} bf-tool-grid`,children:N.map(f)})},p)},[n,f,r]);return o.jsxs("div",{className:n(Ie.toolbarWrapper),"data-testid":"toolbar-wrapper",children:[o.jsxs("div",{className:n(v.flxc,Ie.searchSection,h?Ie.searchBar:{}),children:[o.jsxs("div",{className:n(Ie.fields_search),style:{width:s?"100%":"calc(100% - 35px)"},children:[o.jsx("input",{ref:d,title:"Search Field","aria-label":"Search Field",autoComplete:"off","data-testid":"tlbr-srch-inp",placeholder:y("Search fields.."),type:"search",name:"searchField",onChange:j,onFocus:C,onBlur:g,className:n(Ie.search_field)}),r&&o.jsx("span",{title:"clear","aria-label":"Clear",className:n(Ie.clear_icn),role:"button",tabIndex:0,onClick:I,onKeyDown:p=>p.key==="Enter"&&I()}),o.jsx("span",{title:"search",className:n(Ie.search_icn),children:o.jsx(sc,{size:"20"})}),!r&&o.jsx("div",{className:`${n(Ie.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(Ie.sort_btn)} ${l?"active":""}`,type:"button",onClick:k,"aria-label":"Sort Fields",children:o.jsx(Um,{size:20})})]}),o.jsxs("div",{className:n(Ie.categoriesWrapper),children:[r&&o.jsxs("div",{className:n({mb:10,fs:14,fw:500,cr:"#666",px:5}),children:[y("Search results for:")," ",r]}),Ki.map(p=>b(p.category,y(p.title),S[p.category])),r&&Ki.every(p=>S[p.category].length===0)&&o.jsxs("div",{className:n(Ie.emptyStateWrapper),children:[o.jsx("div",{className:n(Ie.emptyIcon),children:"🔍"}),o.jsx("h3",{className:n(Ie.emptyStateTitle),children:y("No fields found")}),o.jsxs("div",{className:n(Ie.emptyStateDescription),children:[y("We couldn't find any fields matching")," ",o.jsx("strong",{children:` "${r}"`}),o.jsx("div",{className:n({fs:12,mt:5,cr:"#999"}),children:y("Try searching with different keywords")})]})]})]})]})}var Og=M.memo(zg);const fn={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%"}}},Lg=_t(()=>qe(()=>import("./bf-178-233.js").then(e=>e.F),["./bf-178-233.js","./main-634.js","./main-634.css","./bf-710-385.js","./bf-767-388.js","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-676-386.js","./bf-638-271.js","./bf-247-269.js","./bf-423-273.js","./bf-457-387.js","./bf-534-247.js","./bf-299-245.js","./bf-982-242.js","./bf-497-246.js","./bf-641-107.js","./bf-343-249.js","./bf-297-103.js","./bf-577-275.js","./bf-288-389.js","./bf-939-390.js","./bf-697-479.css"],import.meta.url),{fallback:o.jsx(ar,{})}),Bg=_t(()=>qe(()=>import("./bf-514-234.js"),["./bf-514-234.js","./main-634.js","./main-634.css","./bf-676-386.js","./bf-638-271.js","./bf-247-269.js","./bf-25-81.js","./bf-831-476.css","./bf-710-385.js","./bf-767-388.js","./bf-486-243.js","./bf-497-246.js","./bf-507-477.css","./bf-810-391.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-457-387.js","./bf-534-247.js","./bf-299-245.js","./bf-982-242.js","./bf-641-107.js","./bf-723-244.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-297-103.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(ar,{})}),Rg=_t(()=>qe(()=>import("./bf-480-235.js"),["./bf-480-235.js","./main-634.js","./main-634.css","./bf-676-386.js","./bf-638-271.js","./bf-247-269.js","./bf-25-81.js","./bf-831-476.css","./bf-710-385.js","./bf-767-388.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-497-246.js","./bf-457-387.js","./bf-534-247.js","./bf-299-245.js","./bf-982-242.js","./bf-641-107.js","./bf-486-243.js","./bf-507-477.css","./bf-723-244.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-297-103.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(ar,{})}),Pg=_t(()=>qe(()=>import("./bf-825-236.js"),["./bf-825-236.js","./main-634.js","./main-634.css","./bf-838-80.js","./bf-25-81.js","./bf-831-476.css","./bf-641-107.js","./bf-297-103.js","./bf-284-252.js","./bf-17-106.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-671-253.js","./bf-982-242.js","./bf-497-246.js","./bf-486-243.js","./bf-507-477.css","./bf-723-244.js","./bf-299-245.js","./bf-534-247.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(ar,{})});function Fg({style:e,styleDispatch:n,addNewData:t,onToggle:r,isCollapsed:i}){const{pathname:s}=Ji(),{formID:a,formType:l,"*":c}=xe(),h=(c==null?void 0:c.split("/")[0])||"",{css:u}=ne(),[d,m]=Y(Wr),_=le(Qn),S=ie(ea);Y(lt);const[j,I]=M.useState("Add Fields"),k=er(),C=`/form/builder/${l}/${a}`,{styleMode:g}=d;M.useEffect(()=>{var z,O;const N=(O=(z=jr(".settings"))==null?void 0:z.firstChild)==null?void 0:O.firstChild;N&&N.scrollTop>0&&(N.scrollTop=0),h.match(/add-fields/)?I("Add Fields"):h.match(/fields-list|field-settings|step-settings|multi-step-settings/)?((d.styleMode||d.inspectMode)&&m(F=>B(w({},F),{styleMode:!1,inspectMode:!1})),I("Field Options")):h.match(/themes|style|field-theme-customize|theme-customize/)&&(d.styleMode||m(F=>B(w({},F),{styleMode:!0})),I("Style"))},[h]);const f=({target:{scrollTop:N}})=>{N>20?S(!0):S(!1)},b=()=>{m(N=>B(w({},N),{styleMode:!1,inspectMode:!1})),_?k(`${C}/field-settings/${_}`,{replace:!0}):k(`${C}/fields-list`,{replace:!0}),qo(),Wt()},p=()=>{m(N=>B(w({},N),{styleMode:!1,inspectMode:!1})),k(`${C}/add-fields`,{replace:!0}),qo(),Wt()},x=N=>{N==="Add Fields"?p():N==="Field Options"&&b(),I(N)};return o.jsxs("div",{className:`${u(fn.elmSettings,i?fn.elmSettingsCollapsed:{})} ${g?"style-mode":""} left-bar-panel`,children:[o.jsx("button",{className:u(fn.toggleButton),onClick:r,"aria-label":i?"Show left panel":"Hide left panel",title:i?"Show left panel":"Hide left panel",children:o.jsx(io,{size:18,className:u(fn.toggleIcon,i&&fn.toggleIconRotated)})}),!i&&o.jsxs(o.Fragment,{children:[o.jsx(gl,{className:u(fn.segmentMenuWrapper),show:["icn","label"],tipPlace:"bottom",defaultActive:j,options:[{icn:o.jsx(gm,{size:22}),label:"Add Fields",tip:"Form Fields"},...d.styleMode?[]:[{icn:o.jsx(ac,{size:22,classNames:u({tm:"rotate(90deg)"})}),label:"Field Options",tip:"Individual Field Settings"}]],onChange:x,wideTab:!0,variant:"clean-tertiary-bottom-outline"}),g?o.jsx(Gm,{}):o.jsx("div",{className:"settings",children:o.jsx(ta.Scrollbars,{onScroll:f,autoHide:!0,children:o.jsx(no,{resetKey:s,children:o.jsxs(na,{children:[o.jsx(kt,{path:"add-fields",element:o.jsx(Og,{setNewData:t})}),o.jsx(kt,{path:"fields-list",element:o.jsx(Pg,{})}),o.jsx(kt,{path:"field-settings/:fieldKey",element:o.jsx(Lg,{})}),o.jsx(kt,{path:"multi-step-settings",element:o.jsx(Bg,{})}),o.jsx(kt,{path:"step-settings",element:o.jsx(Rg,{})})]})})})})]})]})}function No(){const{css:e}=ne();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"}},Dg=_t(()=>qe(()=>import("./bf-87-237.js"),["./bf-87-237.js","./main-634.js","./main-634.css","./bf-767-388.js","./bf-710-385.js","./bf-641-107.js","./bf-292-392.js","./bf-25-81.js","./bf-831-476.css","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-982-242.js","./bf-497-246.js","./bf-297-103.js","./bf-967-393.js","./bf-486-243.js","./bf-507-477.css","./bf-113-396.js","./bf-423-273.js","./bf-321-394.js","./bf-534-247.js","./bf-941-397.js","./bf-162-395.js","./bf-810-391.js","./bf-723-244.js","./bf-299-245.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(No,{})}),Hg=_t(()=>qe(()=>import("./bf-893-238.js"),["./bf-893-238.js","./main-634.js","./main-634.css","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-52-398.js","./bf-292-392.js","./bf-982-242.js","./bf-497-246.js","./bf-641-107.js","./bf-297-103.js","./bf-967-393.js","./bf-486-243.js","./bf-507-477.css","./bf-113-396.js","./bf-534-247.js","./bf-321-394.js","./bf-941-397.js","./bf-423-273.js","./bf-162-399.js","./bf-810-391.js","./bf-723-244.js","./bf-299-245.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(No,{})}),Vg=_t(()=>qe(()=>import("./bf-730-239.js"),["./bf-730-239.js","./main-634.js","./main-634.css","./bf-292-392.js","./bf-25-81.js","./bf-831-476.css","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-982-242.js","./bf-497-246.js","./bf-641-107.js","./bf-297-103.js","./bf-967-393.js","./bf-486-243.js","./bf-507-477.css","./bf-113-396.js","./bf-423-273.js","./bf-162-399.js","./bf-723-244.js","./bf-299-245.js","./bf-534-247.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(No,{})}),Wg=_t(()=>qe(()=>import("./bf-341-240.js"),["./bf-341-240.js","./main-634.js","./main-634.css","./bf-400-72.js","./bf-25-81.js","./bf-831-476.css","./bf-438-114.js","./bf-542-475.css","./bf-52-398.js","./bf-267-400.js","./bf-292-392.js","./bf-982-242.js","./bf-497-246.js","./bf-641-107.js","./bf-297-103.js","./bf-423-273.js","./bf-486-243.js","./bf-507-477.css","./bf-723-244.js","./bf-299-245.js","./bf-534-247.js","./bf-962-248.js","./bf-343-249.js","./bf-791-250.js","./bf-570-251.js","./bf-838-80.js","./bf-284-252.js","./bf-17-106.js","./bf-671-253.js","./bf-334-254.js"],import.meta.url),{fallback:o.jsx(ar,{})});function Gg({style:e,styleDispatch:n,isCollapsed:t,onToggle:r}){const{pathname:i}=Ji(),{formID:s,"*":a}=xe(),l=(a==null?void 0:a.split("/")[0])||"themes",{css:c}=ne(),h=ie(ea);Y(lt),M.useEffect(()=>{var m,_;const d=(_=(m=jr(".right-bar-panel"))==null?void 0:m.firstChild)==null?void 0:_.firstChild;d&&d.scrollTop>0&&(d.scrollTop=0)},[l]);const u=({target:{scrollTop:d}})=>d>20?h(!0):h(!1);return o.jsxs("div",{id:"theme-style-menu",className:c(Vn.elmSettings,t?Vn.elmSettingsCollapsed:{}),children:[o.jsx("button",{className:c(Vn.toggleButton),onClick:r,"aria-label":t?"Show right panel":"Hide right panel",title:t?"Show right panel":"Hide right panel",children:o.jsx(io,{size:18,className:c(Vn.toggleIcon,t?Vn.toggleIconRotated:{})})}),o.jsx("div",{className:"right-bar-panel",children:o.jsxs(ta.Scrollbars,{onScroll:u,autoHide:!0,children:[o.jsx(no,{resetKey:i,children:o.jsxs(na,{children:[o.jsx(kt,{path:"themes",element:o.jsx(Wg,{})}),o.jsx(kt,{path:"theme-customize/:element",element:o.jsx(Hg,{})}),o.jsx(kt,{path:"theme-customize/multi-step/:element",element:o.jsx(Vg,{})}),o.jsx(kt,{path:"field-theme-customize/:element/:fieldKey",element:o.jsx(Dg,{})})]})}),o.jsx("div",{className:"mb-50"})]})})]})}const Ug={stripe:"Stripe",paypal:"PayPal",razorpay:"Razorpay",mollie:"Mollie"},Kg={recaptcha:{title:y("Set Google reCAPTCHA v2 Keys"),subTitle:y("reCAPTCHA needs a Site Key and Secret Key before this field can be used.")},turnstile:{title:y("Set Cloudflare Turnstile Keys"),subTitle:y("Turnstile needs a Site Key and Secret Key before this field can be used.")},hcaptcha:{title:y("Set hCaptcha Keys"),subTitle:y("hCaptcha needs a Site Key and Secret Key before this field can be used.")},stripe:{title:y("Configure Stripe"),subTitle:y("Stripe must be configured before this field can be used.")},paypal:{title:y("Configure PayPal"),subTitle:y("PayPal must be configured before this field can be used.")},razorpay:{title:y("Configure Razorpay"),subTitle:y("Razorpay must be configured before this field can be used.")},mollie:{title:y("Configure Mollie"),subTitle:y("Mollie must be configured before this field can be used.")},address:{title:y("Set Address Autocomplete API Key"),subTitle:y("Your Address field uses Google/Mapbox autocomplete, which needs an API key before the form can be saved.")}};function Yg(){const[e,n]=Y(lc),{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(Bc,{ver:"v2",inModal:!0,onSaved:i});case"turnstile":return o.jsx(Lc,{inModal:!0,onSaved:i});case"hcaptcha":return o.jsx(Oc,{inModal:!0,onSaved:i});case"stripe":case"paypal":case"razorpay":case"mollie":return o.jsx(zc,{type:Ug[t],inModal:!0,onSaved:i});case"address":return o.jsx(Ac,{onSaved:i});default:return null}},a=Kg[t]||{};return o.jsx(Js,{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 qg(){const e=le(cc);return e!=null&&e.CSS?o.jsx("style",{"data-bf-custom-css":!0,children:e.CSS}):null}const mn={formBuilderContainer:{h:"calc(100vh - var(--bf-nav-height))",bd:"var(--bf-bg-offwhite)",dy:"flex",fd:"row"},containerWrapper:{mx:"var(--bf-space-7)"},leftPanelSection:{ow:"visible !important"},centerColumn:{tn:"width 0.3s ease, min-width 0.3s ease"},rightPanelSection:{ow:"visible !important"},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"}},Zg=_t(()=>qe(()=>import("./bf-29-241.js").then(e=>e.G),["./bf-29-241.js","./main-634.js","./main-634.css","./bf-25-81.js","./bf-831-476.css","./bf-638-271.js","./bf-400-72.js","./bf-438-114.js","./bf-542-475.css","./bf-842-272.js","./bf-423-273.js","./bf-300-478.css"],import.meta.url),{fallback:o.jsx(pl,{})}),Xg=(e,n)=>{if(n.brkPoint==="lg")return ai(e,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),w({},e);if(n.brkPoint==="md"){const t=e["@media only screen and (max-width:600px)"]||e["@media only screen and (max-width: 600px)"];return ai(t,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),w({},e)}if(n.brkPoint==="sm"){const t=e["@media only screen and (max-width:400px)"]||e["@media only screen and (max-width: 400px)"];return ai(t,n.apply),sessionStorage.setItem("btcd-fs",li(Mt.sheet(e))),w({},e)}return n.type==="init"?n.v1Style:e},Jg=({isLoading:e})=>{Y(Ks);const n=le(qs),{element:t,fieldKey:r,formType:i,formID:s}=xe(),{styleMode:a}=le(Wr),l=i!=="edit",c=l?n:s,[h,u]=M.useState(null),[d,m]=Y(lt),[_,S]=Y(pc);le(Dr);const[j,I]=M.useReducer(Xg,D1(c)),[k,C]=M.useState(!l),[g,f]=M.useState(!1),[b,p]=Y(eo),[x,N]=Y(to),z=ie($n),O=ie(Os),F=ie(Ls),$=ie(zs),E=ie(yc),T=ie(Qs),P=le(he),H=M.useRef(null),A=M.useRef(!1),[V,re]=M.useState(window.innerWidth),{GRID_PADDING:Ae,toggleLeftPanel:ct,toggleRightPanel:En,getCenterWidth:cn,getCalculatedGridWidth:Ne,isLeftCollapsed:Lt,isRightCollapsed:Pe}=vc(),[Yt,J]=M.useState(()=>Ne(V,a)),[G,Ce]=M.useState(()=>cn(V,a)),{css:ve}=ne();_c(["bitforms_form_helpers_state",c],{formID:c},{fetchCondition:!l,onSuccess:R=>{C(!1),hc(P)&&ht(R)}}),M.useEffect(()=>{A.current=!0,J(Ne(V,a)),Ce(cn(V,a)),setTimeout(()=>{A.current=!1},100)},[Lt,Pe,a,V]),M.useEffect(()=>{let R;const Z=()=>{clearTimeout(R),R=setTimeout(()=>{re(window.innerWidth)},150)};return window.addEventListener("resize",Z),()=>{clearTimeout(R),window.removeEventListener("resize",Z)}},[]);const ht=R=>{var ft;const oe=((ft=R==null?void 0:R[0])==null?void 0:ft.builder_helper_state)||{},{themeVars:be,themeColors:et,style:He,staticStyles:gt}=oe,tt=ur.parse(be),Ct=ur.parse(et),Ve=ur.parse(He);if(gt){const bt=ur.parse(gt);z(bt)}F(tt),O(Ct),$(Ve),E({allThemeVars:tt,allThemeColors:Ct,allStyles:Ve}),p(oe.breakpointSize),T(oe.builderSettings),K({state:{allThemeVars:tt,allThemeColors:Ct,allStyles:Ve}},!1,0),S(!0)};M.useEffect(()=>{const R=H.current.getResizer(),Z=b[d]||1024;if(d==="lg")R.resizeSection(0,{toSize:0}),R.resizeSection(2,{toSize:0});else if(d==="md"||d==="sm"){const oe=Math.max((G-Z)/2,0);R.resizeSection(0,{toSize:oe}),R.resizeSection(2,{toSize:oe})}H.current.applyResizer(R)},[d,t,r,m,Lt,Pe]);const Ze=M.useCallback(()=>{if(!_){if(d==="md"){const R=j["@media only screen and (max-width:600px)"]||j["@media only screen and (max-width: 600px)"];return Zo(j,R)}if(d==="sm"){const R=j["@media only screen and (max-width:400px)"]||j["@media only screen and (max-width: 400px)"];return Zo(j,R)}}return j},[d,_,j]),q=M.useCallback(R=>u(R),[]),fe=M.useCallback(R=>{},[]),Fe=()=>{f(!0)},se=()=>{f(!1),A.current=!1},De=R=>{A.current||J(R-Ae*2)},jt=()=>{const R=w({},x);R.show=!1,N(R)};return o.jsxs(o.Fragment,{children:[o.jsx(P1,{setBuilderPointerEventNone:f}),o.jsxs("div",{className:ve(mn.formBuilderContainer),children:[o.jsx(M.StrictMode,{children:o.jsx(Fg,{style:Ze(),styleDispatch:I,formID:c,addNewData:q,onToggle:ct,isCollapsed:Lt})}),o.jsxs("div",{className:ve(mn.centerColumn),style:{width:G},children:[o.jsx(dm,{}),o.jsx("div",{className:ve(mn.containerWrapper),children:o.jsxs(Zt.Container,{ref:H,beforeApplyResizer:fe,afterResizing:se,onActivate:Fe,children:[o.jsx(Zt.Section,{defaultSize:0}),o.jsx(Zt.Bar,{className:"bar bar-l"}),o.jsx(Zt.Section,{onSizeChanged:De,minSize:320,defaultSize:Ne(V,a),children:o.jsx(M.StrictMode,{children:o.jsx("div",{className:ve(mn.builderGridWrapper),children:o.jsxs("div",{className:ve(mn.gridContainer),children:[o.jsx(nm,{}),!e&&!k?o.jsxs(ob,{id:"bit-grid-layout",className:ve(mn.gridRenderPortal),style:{width:Yt,pointerEvents:g?"none":"all",height:"calc(100% - 40px)"},children:[o.jsx(Fc,{}),o.jsx(mm,{}),o.jsx(no,{children:o.jsx(Zg,{style:Ze(),gridWidth:Yt,newData:h,setNewData:u,formType:i,formID:c,setAlertMdl:N})}),o.jsx(qg,{})]}):o.jsx(pl,{})]})})})}),o.jsx(Zt.Bar,{className:"bar bar-r"}),o.jsx(Zt.Section,{defaultSize:0})]})})]}),a&&o.jsx(M.StrictMode,{children:o.jsx(Gg,{style:Ze(),styleDispatch:I,formID:c,isCollapsed:Pe,onToggle:En})})]}),o.jsx(uc,{className:"custom-conf-mdl",mainMdlCls:"o-v",btnClass:"red",btnTxt:"Close",show:x.show,cancelBtn:x.cancelBtn,close:jt,action:jt,children:o.jsx("div",{className:"txt-center",children:x.msg})}),o.jsx(dc,{}),o.jsx(Yg,{})]})};var $2=Object.freeze({__proto__:null,default:Jg});export{lg as $,Um as A,xr as B,Jm as C,rg as D,wm as E,ar as F,ag as G,xl as H,dg as I,xg as J,tg as K,mg as L,pg as M,hg as N,sg as O,fg as P,yg as Q,gg as R,Et as S,Tg as T,kg as U,rb as V,Ng as W,vg as X,wg as Y,cg as Z,Qm as _,Ag as a,_g as a0,og as a1,fl as a2,gm as a3,gn as a4,n1 as a5,w2 as a6,Ts as a7,ks as a8,bl as a9,$2 as aa,Km as b,Yb as c,Z1 as d,J1 as e,Ki as f,ko as g,_2 as h,ml as i,gl as j,Y1 as k,y2 as l,vm as m,l1 as n,a1 as o,$g as p,jg as q,Cg as r,Is as s,ig as t,Ig as u,Es as v,eg as w,ng as x,bg as y,Sg as z};
