function ri(n,t){const e=Object.create(null),i=n.split(",");for(let r=0;r!!e[r.toLowerCase()]:r=>!!e[r]}const GA="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",YA=ri(GA),JA="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ZA=ri(JA);function Cw(n){return!!n||n===""}function ke(n){if(De(n)){const t={};for(let e=0;e{if(e){const i=e.split(QA);i.length>1&&(t[i[0].trim()]=i[1].trim())}}),t}function X(n){let t="";if(rt(n))t=n;else if(De(n))for(let e=0;eFs(e,t))}const _=n=>rt(n)?n:n==null?"":De(n)||Ut(n)&&(n.toString===Ew||!Ze(n.toString))?JSON.stringify(n,Tw,2):String(n),Tw=(n,t)=>t&&t.__v_isRef?Tw(n,t.value):za(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((e,[i,r])=>(e[`${i} =>`]=r,e),{})}:Qo(t)?{[`Set(${t.size})`]:[...t.values()]}:Ut(t)&&!De(t)&&!Ow(t)?String(t):t,St={},Ha=[],Vn=()=>{},uu=()=>!1,aD=/^on[^a-z]/,Xo=n=>aD.test(n),wg=n=>n.startsWith("onUpdate:"),Tt=Object.assign,kg=(n,t)=>{const e=n.indexOf(t);e>-1&&n.splice(e,1)},lD=Object.prototype.hasOwnProperty,yt=(n,t)=>lD.call(n,t),De=Array.isArray,za=n=>qc(n)==="[object Map]",Qo=n=>qc(n)==="[object Set]",Pb=n=>qc(n)==="[object Date]",Ze=n=>typeof n=="function",rt=n=>typeof n=="string",qs=n=>typeof n=="symbol",Ut=n=>n!==null&&typeof n=="object",Cg=n=>Ut(n)&&Ze(n.then)&&Ze(n.catch),Ew=Object.prototype.toString,qc=n=>Ew.call(n),cD=n=>qc(n).slice(8,-1),Ow=n=>qc(n)==="[object Object]",Sg=n=>rt(n)&&n!=="NaN"&&n[0]!=="-"&&""+parseInt(n,10)===n,Ao=ri(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dD=ri("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Tf=n=>{const t=Object.create(null);return e=>t[e]||(t[e]=n(e))},uD=/-(\w)/g,Nn=Tf(n=>n.replace(uD,(t,e)=>e?e.toUpperCase():"")),fD=/\B([A-Z])/g,ir=Tf(n=>n.replace(fD,"-$1").toLowerCase()),$o=Tf(n=>n.charAt(0).toUpperCase()+n.slice(1)),Ua=Tf(n=>n?`on${$o(n)}`:""),Za=(n,t)=>!Object.is(n,t),Va=(n,t)=>{for(let e=0;e{Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value:e})},Hs=n=>{const t=parseFloat(n);return isNaN(t)?n:t};let Nb;const hD=()=>Nb||(Nb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let hi;class Tg{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&hi&&(this.parent=hi,this.index=(hi.scopes||(hi.scopes=[])).push(this)-1)}run(t){if(this.active){const e=hi;try{return hi=this,t()}finally{hi=e}}}on(){hi=this}off(){hi=this.parent}stop(t){if(this.active){let e,i;for(e=0,i=this.effects.length;e{const t=new Set(n);return t.w=0,t.n=0,t},Dw=n=>(n.w&zs)>0,Mw=n=>(n.n&zs)>0,_D=({deps:n})=>{if(n.length)for(let t=0;t{const{deps:t}=n;if(t.length){let e=0;for(let i=0;i{(d==="length"||d>=i)&&a.push(c)});else switch(e!==void 0&&a.push(o.get(e)),t){case"add":De(n)?Sg(e)&&a.push(o.get("length")):(a.push(o.get(Do)),za(n)&&a.push(o.get(y0)));break;case"delete":De(n)||(a.push(o.get(Do)),za(n)&&a.push(o.get(y0)));break;case"set":za(n)&&a.push(o.get(Do));break}if(a.length===1)a[0]&&b0(a[0]);else{const c=[];for(const d of a)d&&c.push(...d);b0(Eg(c))}}function b0(n,t){const e=De(n)?n:[...n];for(const i of e)i.computed&&Rb(i);for(const i of e)i.computed||Rb(i)}function Rb(n,t){(n!==er||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const xD=ri("__proto__,__v_isRef,__isVue"),Iw=new Set(Object.getOwnPropertyNames(Symbol).filter(n=>n!=="arguments"&&n!=="caller").map(n=>Symbol[n]).filter(qs)),wD=Ef(),kD=Ef(!1,!0),CD=Ef(!0),SD=Ef(!0,!0),Bb=TD();function TD(){const n={};return["includes","indexOf","lastIndexOf"].forEach(t=>{n[t]=function(...e){const i=gt(this);for(let s=0,o=this.length;s{n[t]=function(...e){ea();const i=gt(this)[t].apply(this,e);return ta(),i}}),n}function Ef(n=!1,t=!1){return function(i,r,s){if(r==="__v_isReactive")return!n;if(r==="__v_isReadonly")return n;if(r==="__v_isShallow")return t;if(r==="__v_raw"&&s===(n?t?zw:Hw:t?qw:Fw).get(i))return i;const o=De(i);if(!n&&o&&yt(Bb,r))return Reflect.get(Bb,r,s);const a=Reflect.get(i,r,s);return(qs(r)?Iw.has(r):xD(r))||(n||xi(i,"get",r),t)?a:Xt(a)?o&&Sg(r)?a:a.value:Ut(a)?n?Ag(a):zc(a):a}}const ED=Rw(),OD=Rw(!0);function Rw(n=!1){return function(e,i,r,s){let o=e[i];if(Xa(o)&&Xt(o)&&!Xt(r))return!1;if(!n&&!Xa(r)&&(Su(r)||(r=gt(r),o=gt(o)),!De(e)&&Xt(o)&&!Xt(r)))return o.value=r,!0;const a=De(e)&&Sg(i)?Number(i)n,Of=n=>Reflect.getPrototypeOf(n);function jd(n,t,e=!1,i=!1){n=n.__v_raw;const r=gt(n),s=gt(t);e||(t!==s&&xi(r,"get",t),xi(r,"get",s));const{has:o}=Of(r),a=i?Og:e?Mg:gc;if(o.call(r,t))return a(n.get(t));if(o.call(r,s))return a(n.get(s));n!==r&&n.get(t)}function Wd(n,t=!1){const e=this.__v_raw,i=gt(e),r=gt(n);return t||(n!==r&&xi(i,"has",n),xi(i,"has",r)),n===r?e.has(n):e.has(n)||e.has(r)}function Kd(n,t=!1){return n=n.__v_raw,!t&&xi(gt(n),"iterate",Do),Reflect.get(n,"size",n)}function Lb(n){n=gt(n);const t=gt(this);return Of(t).has.call(t,n)||(t.add(n),$r(t,"add",n,n)),this}function Fb(n,t){t=gt(t);const e=gt(this),{has:i,get:r}=Of(e);let s=i.call(e,n);s||(n=gt(n),s=i.call(e,n));const o=r.call(e,n);return e.set(n,t),s?Za(t,o)&&$r(e,"set",n,t):$r(e,"add",n,t),this}function qb(n){const t=gt(this),{has:e,get:i}=Of(t);let r=e.call(t,n);r||(n=gt(n),r=e.call(t,n)),i&&i.call(t,n);const s=t.delete(n);return r&&$r(t,"delete",n,void 0),s}function Hb(){const n=gt(this),t=n.size!==0,e=n.clear();return t&&$r(n,"clear",void 0,void 0),e}function Gd(n,t){return function(i,r){const s=this,o=s.__v_raw,a=gt(o),c=t?Og:n?Mg:gc;return!n&&xi(a,"iterate",Do),o.forEach((d,f)=>i.call(r,c(d),c(f),s))}}function Yd(n,t,e){return function(...i){const r=this.__v_raw,s=gt(r),o=za(s),a=n==="entries"||n===Symbol.iterator&&o,c=n==="keys"&&o,d=r[n](...i),f=e?Og:t?Mg:gc;return!t&&xi(s,"iterate",c?y0:Do),{next(){const{value:h,done:g}=d.next();return g?{value:h,done:g}:{value:a?[f(h[0]),f(h[1])]:f(h),done:g}},[Symbol.iterator](){return this}}}}function gs(n){return function(...t){return n==="delete"?!1:this}}function ID(){const n={get(s){return jd(this,s)},get size(){return Kd(this)},has:Wd,add:Lb,set:Fb,delete:qb,clear:Hb,forEach:Gd(!1,!1)},t={get(s){return jd(this,s,!1,!0)},get size(){return Kd(this)},has:Wd,add:Lb,set:Fb,delete:qb,clear:Hb,forEach:Gd(!1,!0)},e={get(s){return jd(this,s,!0)},get size(){return Kd(this,!0)},has(s){return Wd.call(this,s,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:Gd(!0,!1)},i={get(s){return jd(this,s,!0,!0)},get size(){return Kd(this,!0)},has(s){return Wd.call(this,s,!0)},add:gs("add"),set:gs("set"),delete:gs("delete"),clear:gs("clear"),forEach:Gd(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=Yd(s,!1,!1),e[s]=Yd(s,!0,!1),t[s]=Yd(s,!1,!0),i[s]=Yd(s,!0,!0)}),[n,e,t,i]}const[RD,BD,LD,FD]=ID();function Af(n,t){const e=t?n?FD:LD:n?BD:RD;return(i,r,s)=>r==="__v_isReactive"?!n:r==="__v_isReadonly"?n:r==="__v_raw"?i:Reflect.get(yt(e,r)&&r in i?e:i,r,s)}const qD={get:Af(!1,!1)},HD={get:Af(!1,!0)},zD={get:Af(!0,!1)},UD={get:Af(!0,!0)},Fw=new WeakMap,qw=new WeakMap,Hw=new WeakMap,zw=new WeakMap;function VD(n){switch(n){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function jD(n){return n.__v_skip||!Object.isExtensible(n)?0:VD(cD(n))}function zc(n){return Xa(n)?n:Df(n,!1,Bw,qD,Fw)}function Uw(n){return Df(n,!1,PD,HD,qw)}function Ag(n){return Df(n,!0,Lw,zD,Hw)}function WD(n){return Df(n,!0,ND,UD,zw)}function Df(n,t,e,i,r){if(!Ut(n)||n.__v_raw&&!(t&&n.__v_isReactive))return n;const s=r.get(n);if(s)return s;const o=jD(n);if(o===0)return n;const a=new Proxy(n,o===2?i:e);return r.set(n,a),a}function Mo(n){return Xa(n)?Mo(n.__v_raw):!!(n&&n.__v_isReactive)}function Xa(n){return!!(n&&n.__v_isReadonly)}function Su(n){return!!(n&&n.__v_isShallow)}function Dg(n){return Mo(n)||Xa(n)}function gt(n){const t=n&&n.__v_raw;return t?gt(t):n}function Mf(n){return Cu(n,"__v_skip",!0),n}const gc=n=>Ut(n)?zc(n):n,Mg=n=>Ut(n)?Ag(n):n;function Pg(n){Ps&&er&&(n=gt(n),Nw(n.dep||(n.dep=Eg())))}function Pf(n,t){n=gt(n),n.dep&&b0(n.dep)}function Xt(n){return!!(n&&n.__v_isRef===!0)}function Po(n){return jw(n,!1)}function Vw(n){return jw(n,!0)}function jw(n,t){return Xt(n)?n:new KD(n,t)}class KD{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:gt(t),this._value=e?t:gc(t)}get value(){return Pg(this),this._value}set value(t){t=this.__v_isShallow?t:gt(t),Za(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:gc(t),Pf(this))}}function GD(n){Pf(n)}function _c(n){return Xt(n)?n.value:n}const YD={get:(n,t,e)=>_c(Reflect.get(n,t,e)),set:(n,t,e,i)=>{const r=n[t];return Xt(r)&&!Xt(e)?(r.value=e,!0):Reflect.set(n,t,e,i)}};function Ng(n){return Mo(n)?n:new Proxy(n,YD)}class JD{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:e,set:i}=t(()=>Pg(this),()=>Pf(this));this._get=e,this._set=i}get value(){return this._get()}set value(t){this._set(t)}}function Ww(n){return new JD(n)}function ZD(n){const t=De(n)?new Array(n.length):{};for(const e in n)t[e]=Kw(n,e);return t}class XD{constructor(t,e,i){this._object=t,this._key=e,this._defaultValue=i,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function Kw(n,t,e){const i=n[t];return Xt(i)?i:new XD(n,t,e)}class QD{constructor(t,e,i,r){this._setter=e,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Hc(t,()=>{this._dirty||(this._dirty=!0,Pf(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=i}get value(){const t=gt(this);return Pg(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function $D(n,t,e=!1){let i,r;const s=Ze(n);return s?(i=n,r=Vn):(i=n.get,r=n.set),new QD(i,r,s||!r,e)}const Kl=[];function Gw(n,...t){ea();const e=Kl.length?Kl[Kl.length-1].component:null,i=e&&e.appContext.config.warnHandler,r=eM();if(i)Sr(i,e,11,[n+t.join(""),e&&e.proxy,r.map(({vnode:s})=>`at <${jk(e,s.type)}>`).join(` `),r]);else{const s=[`[Vue warn]: ${n}`,...t];r.length&&s.push(` `,...tM(r)),console.warn(...s)}ta()}function eM(){let n=Kl[Kl.length-1];if(!n)return[];const t=[];for(;n;){const e=t[0];e&&e.vnode===n?e.recurseCount++:t.push({vnode:n,recurseCount:0});const i=n.component&&n.component.parent;n=i&&i.vnode}return t}function tM(n){const t=[];return n.forEach((e,i)=>{t.push(...i===0?[]:[` `],...nM(e))}),t}function nM({vnode:n,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",i=n.component?n.component.parent==null:!1,r=` at <${jk(n.component,n.type,i)}`,s=">"+e;return n.props?[r,...iM(n.props),s]:[r+s]}function iM(n){const t=[],e=Object.keys(n);return e.slice(0,3).forEach(i=>{t.push(...Yw(i,n[i]))}),e.length>3&&t.push(" ..."),t}function Yw(n,t,e){return rt(t)?(t=JSON.stringify(t),e?t:[`${n}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${n}=${t}`]:Xt(t)?(t=Yw(n,gt(t.value),!0),e?t:[`${n}=Ref<`,t,">"]):Ze(t)?[`${n}=fn${t.name?`<${t.name}>`:""}`]:(t=gt(t),e?t:[`${n}=`,t])}function Sr(n,t,e,i){let r;try{r=i?n(...i):n()}catch(s){na(s,t,e)}return r}function yi(n,t,e,i){if(Ze(n)){const s=Sr(n,t,e,i);return s&&Cg(s)&&s.catch(o=>{na(o,t,e)}),s}const r=[];for(let s=0;s>>1;yc(mi[i])Kr&&mi.splice(t,1)}function Xw(n,t,e,i){De(n)?e.push(...n):(!t||!t.includes(n,n.allowRecurse?i+1:i))&&e.push(n),Zw()}function aM(n){Xw(n,zl,Gl,Ea)}function Bg(n){Xw(n,vs,Yl,Oa)}function If(n,t=null){if(Gl.length){for(x0=t,zl=[...new Set(Gl)],Gl.length=0,Ea=0;Eayc(e)-yc(i)),Oa=0;Oan.id==null?1/0:n.id;function Qw(n){v0=!1,Tu=!0,If(n),mi.sort((e,i)=>yc(e)-yc(i));const t=Vn;try{for(Kr=0;KrAa.emit(r,...s)),Jd=[]):typeof window<"u"&&window.HTMLElement&&!(!((i=(e=window.navigator)===null||e===void 0?void 0:e.userAgent)===null||i===void 0)&&i.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(s=>{$w(s,t)}),setTimeout(()=>{Aa||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Jd=[])},3e3)):Jd=[]}function lM(n,t,...e){if(n.isUnmounted)return;const i=n.vnode.props||St;let r=e;const s=t.startsWith("update:"),o=s&&t.slice(7);if(o&&o in i){const f=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:g}=i[f]||St;g&&(r=e.map(m=>m.trim())),h&&(r=e.map(Hs))}let a,c=i[a=Ua(t)]||i[a=Ua(Nn(t))];!c&&s&&(c=i[a=Ua(ir(t))]),c&&yi(c,n,6,r);const d=i[a+"Once"];if(d){if(!n.emitted)n.emitted={};else if(n.emitted[a])return;n.emitted[a]=!0,yi(d,n,6,r)}}function ek(n,t,e=!1){const i=t.emitsCache,r=i.get(n);if(r!==void 0)return r;const s=n.emits;let o={},a=!1;if(!Ze(n)){const c=d=>{const f=ek(d,t,!0);f&&(a=!0,Tt(o,f))};!e&&t.mixins.length&&t.mixins.forEach(c),n.extends&&c(n.extends),n.mixins&&n.mixins.forEach(c)}return!s&&!a?(i.set(n,null),null):(De(s)?s.forEach(c=>o[c]=null):Tt(o,s),i.set(n,o),o)}function Rf(n,t){return!n||!Xo(t)?!1:(t=t.slice(2).replace(/Once$/,""),yt(n,t[0].toLowerCase()+t.slice(1))||yt(n,ir(t))||yt(n,t))}let An=null,Bf=null;function bc(n){const t=An;return An=n,Bf=n&&n.type.__scopeId||null,t}function lr(n){Bf=n}function cr(){Bf=null}const cM=n=>ln;function ln(n,t=An,e){if(!t||n._n)return n;const i=(...r)=>{i._d&&O0(-1);const s=bc(t),o=n(...r);return bc(s),i._d&&O0(1),o};return i._n=!0,i._c=!0,i._d=!0,i}function fu(n){const{type:t,vnode:e,proxy:i,withProxy:r,props:s,propsOptions:[o],slots:a,attrs:c,emit:d,render:f,renderCache:h,data:g,setupState:m,ctx:y,inheritAttrs:k}=n;let C,T;const w=bc(n);try{if(e.shapeFlag&4){const x=r||i;C=pi(f.call(x,x,h,s,m,g,y)),T=c}else{const x=t;C=pi(x.length>1?x(s,{attrs:c,slots:a,emit:d}):x(s,null)),T=t.props?c:uM(c)}}catch(x){Ql.length=0,na(x,n,1),C=ct(Mn)}let O=C;if(T&&k!==!1){const x=Object.keys(T),{shapeFlag:L}=O;x.length&&L&7&&(o&&x.some(wg)&&(T=fM(T,o)),O=Er(O,T))}return e.dirs&&(O=Er(O),O.dirs=O.dirs?O.dirs.concat(e.dirs):e.dirs),e.transition&&(O.transition=e.transition),C=O,bc(w),C}function dM(n){let t;for(let e=0;e{let t;for(const e in n)(e==="class"||e==="style"||Xo(e))&&((t||(t={}))[e]=n[e]);return t},fM=(n,t)=>{const e={};for(const i in n)(!wg(i)||!(i.slice(9)in t))&&(e[i]=n[i]);return e};function hM(n,t,e){const{props:i,children:r,component:s}=n,{props:o,children:a,patchFlag:c}=t,d=s.emitsOptions;if(t.dirs||t.transition)return!0;if(e&&c>=0){if(c&1024)return!0;if(c&16)return i?zb(i,o,d):!!o;if(c&8){const f=t.dynamicProps;for(let h=0;hn.__isSuspense,pM={name:"Suspense",__isSuspense:!0,process(n,t,e,i,r,s,o,a,c,d){n==null?gM(t,e,i,r,s,o,a,c,d):_M(n,t,e,i,r,o,a,c,d)},hydrate:yM,create:Fg,normalize:bM},mM=pM;function vc(n,t){const e=n.props&&n.props[t];Ze(e)&&e()}function gM(n,t,e,i,r,s,o,a,c){const{p:d,o:{createElement:f}}=c,h=f("div"),g=n.suspense=Fg(n,r,i,t,h,e,s,o,a,c);d(null,g.pendingBranch=n.ssContent,h,null,i,g,s,o),g.deps>0?(vc(n,"onPending"),vc(n,"onFallback"),d(null,n.ssFallback,t,e,i,null,s,o),ja(g,n.ssFallback)):g.resolve()}function _M(n,t,e,i,r,s,o,a,{p:c,um:d,o:{createElement:f}}){const h=t.suspense=n.suspense;h.vnode=t,t.el=n.el;const g=t.ssContent,m=t.ssFallback,{activeBranch:y,pendingBranch:k,isInFallback:C,isHydrating:T}=h;if(k)h.pendingBranch=g,xr(g,k)?(c(k,g,h.hiddenContainer,null,r,h,s,o,a),h.deps<=0?h.resolve():C&&(c(y,m,e,i,r,null,s,o,a),ja(h,m))):(h.pendingId++,T?(h.isHydrating=!1,h.activeBranch=k):d(k,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=f("div"),C?(c(null,g,h.hiddenContainer,null,r,h,s,o,a),h.deps<=0?h.resolve():(c(y,m,e,i,r,null,s,o,a),ja(h,m))):y&&xr(g,y)?(c(y,g,e,i,r,h,s,o,a),h.resolve(!0)):(c(null,g,h.hiddenContainer,null,r,h,s,o,a),h.deps<=0&&h.resolve()));else if(y&&xr(g,y))c(y,g,e,i,r,h,s,o,a),ja(h,g);else if(vc(t,"onPending"),h.pendingBranch=g,h.pendingId++,c(null,g,h.hiddenContainer,null,r,h,s,o,a),h.deps<=0)h.resolve();else{const{timeout:w,pendingId:O}=h;w>0?setTimeout(()=>{h.pendingId===O&&h.fallback(m)},w):w===0&&h.fallback(m)}}function Fg(n,t,e,i,r,s,o,a,c,d,f=!1){const{p:h,m:g,um:m,n:y,o:{parentNode:k,remove:C}}=d,T=Hs(n.props&&n.props.timeout),w={vnode:n,parent:t,parentComponent:e,isSVG:o,container:i,hiddenContainer:r,anchor:s,deps:0,pendingId:0,timeout:typeof T=="number"?T:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:f,isUnmounted:!1,effects:[],resolve(O=!1){const{vnode:x,activeBranch:L,pendingBranch:M,pendingId:B,effects:D,parentComponent:F,container:I}=w;if(w.isHydrating)w.isHydrating=!1;else if(!O){const W=L&&M.transition&&M.transition.mode==="out-in";W&&(L.transition.afterLeave=()=>{B===w.pendingId&&g(M,I,Y,0)});let{anchor:Y}=w;L&&(Y=y(L),m(L,F,w,!0)),W||g(M,I,Y,0)}ja(w,M),w.pendingBranch=null,w.isInFallback=!1;let q=w.parent,H=!1;for(;q;){if(q.pendingBranch){q.effects.push(...D),H=!0;break}q=q.parent}H||Bg(D),w.effects=[],vc(x,"onResolve")},fallback(O){if(!w.pendingBranch)return;const{vnode:x,activeBranch:L,parentComponent:M,container:B,isSVG:D}=w;vc(x,"onFallback");const F=y(L),I=()=>{w.isInFallback&&(h(null,O,B,F,M,null,D,a,c),ja(w,O))},q=O.transition&&O.transition.mode==="out-in";q&&(L.transition.afterLeave=I),w.isInFallback=!0,m(L,M,null,!0),q||I()},move(O,x,L){w.activeBranch&&g(w.activeBranch,O,x,L),w.container=O},next(){return w.activeBranch&&y(w.activeBranch)},registerDep(O,x){const L=!!w.pendingBranch;L&&w.deps++;const M=O.vnode.el;O.asyncDep.catch(B=>{na(B,O,0)}).then(B=>{if(O.isUnmounted||w.isUnmounted||w.pendingId!==O.suspenseId)return;O.asyncResolved=!0;const{vnode:D}=O;A0(O,B,!1),M&&(D.el=M);const F=!M&&O.subTree.el;x(O,D,k(M||O.subTree.el),M?null:y(O.subTree),w,o,c),F&&C(F),Lg(O,D.el),L&&--w.deps===0&&w.resolve()})},unmount(O,x){w.isUnmounted=!0,w.activeBranch&&m(w.activeBranch,e,O,x),w.pendingBranch&&m(w.pendingBranch,e,O,x)}};return w}function yM(n,t,e,i,r,s,o,a,c){const d=t.suspense=Fg(t,i,e,n.parentNode,document.createElement("div"),null,r,s,o,a,!0),f=c(n,d.pendingBranch=t.ssContent,e,d,s,o);return d.deps===0&&d.resolve(),f}function bM(n){const{shapeFlag:t,children:e}=n,i=t&32;n.ssContent=Ub(i?e.default:e),n.ssFallback=i?Ub(e.fallback):ct(Mn)}function Ub(n){let t;if(Ze(n)){const e=Vo&&n._c;e&&(n._d=!1,S()),n=n(),e&&(n._d=!0,t=$n,Pk())}return De(n)&&(n=dM(n)),n=pi(n),t&&!n.dynamicChildren&&(n.dynamicChildren=t.filter(e=>e!==n)),n}function nk(n,t){t&&t.pendingBranch?De(n)?t.effects.push(...n):t.effects.push(n):Bg(n)}function ja(n,t){n.activeBranch=t;const{vnode:e,parentComponent:i}=n,r=e.el=t.el;i&&i.subTree===e&&(i.vnode.el=r,Lg(i,r))}function ik(n,t){if(on){let e=on.provides;const i=on.parent&&on.parent.provides;i===e&&(e=on.provides=Object.create(i)),e[n]=t}}function Jl(n,t,e=!1){const i=on||An;if(i){const r=i.parent==null?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides;if(r&&n in r)return r[n];if(arguments.length>1)return e&&Ze(t)?t.call(i.proxy):t}}function rk(n,t){return Uc(n,null,t)}function sk(n,t){return Uc(n,null,{flush:"post"})}function vM(n,t){return Uc(n,null,{flush:"sync"})}const Vb={};function Zl(n,t,e){return Uc(n,t,e)}function Uc(n,t,{immediate:e,deep:i,flush:r,onTrack:s,onTrigger:o}=St){const a=on;let c,d=!1,f=!1;if(Xt(n)?(c=()=>n.value,d=Su(n)):Mo(n)?(c=()=>n,i=!0):De(n)?(f=!0,d=n.some(T=>Mo(T)||Su(T)),c=()=>n.map(T=>{if(Xt(T))return T.value;if(Mo(T))return Co(T);if(Ze(T))return Sr(T,a,2)})):Ze(n)?t?c=()=>Sr(n,a,2):c=()=>{if(!(a&&a.isUnmounted))return h&&h(),yi(n,a,3,[g])}:c=Vn,t&&i){const T=c;c=()=>Co(T())}let h,g=T=>{h=C.onStop=()=>{Sr(T,a,4)}};if(el)return g=Vn,t?e&&yi(t,a,3,[c(),f?[]:void 0,g]):c(),Vn;let m=f?[]:Vb;const y=()=>{if(C.active)if(t){const T=C.run();(i||d||(f?T.some((w,O)=>Za(w,m[O])):Za(T,m)))&&(h&&h(),yi(t,a,3,[T,m===Vb?void 0:m,g]),m=T)}else C.run()};y.allowRecurse=!!t;let k;r==="sync"?k=y:r==="post"?k=()=>bn(y,a&&a.suspense):k=()=>aM(y);const C=new Hc(c,k);return t?e?y():m=C.run():r==="post"?bn(C.run.bind(C),a&&a.suspense):C.run(),()=>{C.stop(),a&&a.scope&&kg(a.scope.effects,C)}}function xM(n,t,e){const i=this.proxy,r=rt(n)?n.includes(".")?ok(i,n):()=>i[n]:n.bind(i,i);let s;Ze(t)?s=t:(s=t.handler,e=t);const o=on;Vs(this);const a=Uc(r,s.bind(i),e);return o?Vs(o):Ns(),a}function ok(n,t){const e=t.split(".");return()=>{let i=n;for(let r=0;r{Co(e,t)});else if(Ow(n))for(const e in n)Co(n[e],t);return n}function qg(){const n={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Js(()=>{n.isMounted=!0}),Zs(()=>{n.isUnmounting=!0}),n}const Ii=[Function,Array],wM={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ii,onEnter:Ii,onAfterEnter:Ii,onEnterCancelled:Ii,onBeforeLeave:Ii,onLeave:Ii,onAfterLeave:Ii,onLeaveCancelled:Ii,onBeforeAppear:Ii,onAppear:Ii,onAfterAppear:Ii,onAppearCancelled:Ii},setup(n,{slots:t}){const e=ns(),i=qg();let r;return()=>{const s=t.default&&Lf(t.default(),!0);if(!s||!s.length)return;let o=s[0];if(s.length>1){for(const k of s)if(k.type!==Mn){o=k;break}}const a=gt(n),{mode:c}=a;if(i.isLeaving)return Ap(o);const d=jb(o);if(!d)return Ap(o);const f=Qa(d,a,i,e);Uo(d,f);const h=e.subTree,g=h&&jb(h);let m=!1;const{getTransitionKey:y}=d.type;if(y){const k=y();r===void 0?r=k:k!==r&&(r=k,m=!0)}if(g&&g.type!==Mn&&(!xr(d,g)||m)){const k=Qa(g,a,i,e);if(Uo(g,k),c==="out-in")return i.isLeaving=!0,k.afterLeave=()=>{i.isLeaving=!1,e.update()},Ap(o);c==="in-out"&&d.type!==Mn&&(k.delayLeave=(C,T,w)=>{const O=ak(i,g);O[String(g.key)]=g,C._leaveCb=()=>{T(),C._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=w})}return o}}},Hg=wM;function ak(n,t){const{leavingVNodes:e}=n;let i=e.get(t.type);return i||(i=Object.create(null),e.set(t.type,i)),i}function Qa(n,t,e,i){const{appear:r,mode:s,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:m,onLeaveCancelled:y,onBeforeAppear:k,onAppear:C,onAfterAppear:T,onAppearCancelled:w}=t,O=String(n.key),x=ak(e,n),L=(D,F)=>{D&&yi(D,i,9,F)},M=(D,F)=>{const I=F[1];L(D,F),De(D)?D.every(q=>q.length<=1)&&I():D.length<=1&&I()},B={mode:s,persisted:o,beforeEnter(D){let F=a;if(!e.isMounted)if(r)F=k||a;else return;D._leaveCb&&D._leaveCb(!0);const I=x[O];I&&xr(n,I)&&I.el._leaveCb&&I.el._leaveCb(),L(F,[D])},enter(D){let F=c,I=d,q=f;if(!e.isMounted)if(r)F=C||c,I=T||d,q=w||f;else return;let H=!1;const W=D._enterCb=Y=>{H||(H=!0,Y?L(q,[D]):L(I,[D]),B.delayedLeave&&B.delayedLeave(),D._enterCb=void 0)};F?M(F,[D,W]):W()},leave(D,F){const I=String(n.key);if(D._enterCb&&D._enterCb(!0),e.isUnmounting)return F();L(h,[D]);let q=!1;const H=D._leaveCb=W=>{q||(q=!0,F(),W?L(y,[D]):L(m,[D]),D._leaveCb=void 0,x[I]===n&&delete x[I])};x[I]=n,g?M(g,[D,H]):H()},clone(D){return Qa(D,t,e,i)}};return B}function Ap(n){if(Vc(n))return n=Er(n),n.children=null,n}function jb(n){return Vc(n)?n.children?n.children[0]:void 0:n}function Uo(n,t){n.shapeFlag&6&&n.component?Uo(n.component.subTree,t):n.shapeFlag&128?(n.ssContent.transition=t.clone(n.ssContent),n.ssFallback.transition=t.clone(n.ssFallback)):n.transition=t}function Lf(n,t=!1,e){let i=[],r=0;for(let s=0;s1)for(let s=0;s!!n.type.__asyncLoader;function kM(n){Ze(n)&&(n={loader:n});const{loader:t,loadingComponent:e,errorComponent:i,delay:r=200,timeout:s,suspensible:o=!0,onError:a}=n;let c=null,d,f=0;const h=()=>(f++,c=null,g()),g=()=>{let m;return c||(m=c=t().catch(y=>{if(y=y instanceof Error?y:new Error(String(y)),a)return new Promise((k,C)=>{a(y,()=>k(h()),()=>C(y),f+1)});throw y}).then(y=>m!==c&&c?c:(y&&(y.__esModule||y[Symbol.toStringTag]==="Module")&&(y=y.default),d=y,y)))};return Ys({name:"AsyncComponentWrapper",__asyncLoader:g,get __asyncResolved(){return d},setup(){const m=on;if(d)return()=>Dp(d,m);const y=w=>{c=null,na(w,m,13,!i)};if(o&&m.suspense||el)return g().then(w=>()=>Dp(w,m)).catch(w=>(y(w),()=>i?ct(i,{error:w}):null));const k=Po(!1),C=Po(),T=Po(!!r);return r&&setTimeout(()=>{T.value=!1},r),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const w=new Error(`Async component timed out after ${s}ms.`);y(w),C.value=w}},s),g().then(()=>{k.value=!0,m.parent&&Vc(m.parent.vnode)&&Rg(m.parent.update)}).catch(w=>{y(w),C.value=w}),()=>{if(k.value&&d)return Dp(d,m);if(C.value&&i)return ct(i,{error:C.value});if(e&&!T.value)return ct(e)}}})}function Dp(n,{vnode:{ref:t,props:e,children:i,shapeFlag:r},parent:s}){const o=ct(n,e,i);return o.ref=t,o}const Vc=n=>n.type.__isKeepAlive,CM={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(n,{slots:t}){const e=ns(),i=e.ctx;if(!i.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const r=new Map,s=new Set;let o=null;const a=e.suspense,{renderer:{p:c,m:d,um:f,o:{createElement:h}}}=i,g=h("div");i.activate=(w,O,x,L,M)=>{const B=w.component;d(w,O,x,0,a),c(B.vnode,w,O,x,B,a,L,w.slotScopeIds,M),bn(()=>{B.isDeactivated=!1,B.a&&Va(B.a);const D=w.props&&w.props.onVnodeMounted;D&&Xn(D,B.parent,w)},a)},i.deactivate=w=>{const O=w.component;d(w,g,null,1,a),bn(()=>{O.da&&Va(O.da);const x=w.props&&w.props.onVnodeUnmounted;x&&Xn(x,O.parent,w),O.isDeactivated=!0},a)};function m(w){Mp(w),f(w,e,a,!0)}function y(w){r.forEach((O,x)=>{const L=Pu(O.type);L&&(!w||!w(L))&&k(x)})}function k(w){const O=r.get(w);!o||O.type!==o.type?m(O):o&&Mp(o),r.delete(w),s.delete(w)}Zl(()=>[n.include,n.exclude],([w,O])=>{w&&y(x=>Ul(w,x)),O&&y(x=>!Ul(O,x))},{flush:"post",deep:!0});let C=null;const T=()=>{C!=null&&r.set(C,Pp(e.subTree))};return Js(T),qf(T),Zs(()=>{r.forEach(w=>{const{subTree:O,suspense:x}=e,L=Pp(O);if(w.type===L.type){Mp(L);const M=L.component.da;M&&bn(M,x);return}m(w)})}),()=>{if(C=null,!t.default)return null;const w=t.default(),O=w[0];if(w.length>1)return o=null,w;if(!Us(O)||!(O.shapeFlag&4)&&!(O.shapeFlag&128))return o=null,O;let x=Pp(O);const L=x.type,M=Pu(No(x)?x.type.__asyncResolved||{}:L),{include:B,exclude:D,max:F}=n;if(B&&(!M||!Ul(B,M))||D&&M&&Ul(D,M))return o=x,O;const I=x.key==null?L:x.key,q=r.get(I);return x.el&&(x=Er(x),O.shapeFlag&128&&(O.ssContent=x)),C=I,q?(x.el=q.el,x.component=q.component,x.transition&&Uo(x,x.transition),x.shapeFlag|=512,s.delete(I),s.add(I)):(s.add(I),F&&s.size>parseInt(F,10)&&k(s.values().next().value)),x.shapeFlag|=256,o=x,tk(O.type)?O:x}}},SM=CM;function Ul(n,t){return De(n)?n.some(e=>Ul(e,t)):rt(n)?n.split(",").includes(t):n.test?n.test(t):!1}function lk(n,t){dk(n,"a",t)}function ck(n,t){dk(n,"da",t)}function dk(n,t,e=on){const i=n.__wdc||(n.__wdc=()=>{let r=e;for(;r;){if(r.isDeactivated)return;r=r.parent}return n()});if(Ff(t,i,e),e){let r=e.parent;for(;r&&r.parent;)Vc(r.parent.vnode)&&TM(i,t,e,r),r=r.parent}}function TM(n,t,e,i){const r=Ff(t,n,i,!0);Hf(()=>{kg(i[t],r)},e)}function Mp(n){let t=n.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),n.shapeFlag=t}function Pp(n){return n.shapeFlag&128?n.ssContent:n}function Ff(n,t,e=on,i=!1){if(e){const r=e[n]||(e[n]=[]),s=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;ea(),Vs(e);const a=yi(t,e,n,o);return Ns(),ta(),a});return i?r.unshift(s):r.push(s),s}}const ts=n=>(t,e=on)=>(!el||n==="sp")&&Ff(n,t,e),uk=ts("bm"),Js=ts("m"),fk=ts("bu"),qf=ts("u"),Zs=ts("bum"),Hf=ts("um"),hk=ts("sp"),pk=ts("rtg"),mk=ts("rtc");function gk(n,t=on){Ff("ec",n,t)}function Re(n,t){const e=An;if(e===null)return n;const i=Uf(e)||e.proxy,r=n.dirs||(n.dirs=[]);for(let s=0;st(o,a,void 0,s&&s[a]));else{const o=Object.keys(n);r=new Array(o.length);for(let a=0,c=o.length;aUs(t)?!(t.type===Mn||t.type===He&&!bk(t.children)):!0)?n:null}function DM(n){const t={};for(const e in n)t[Ua(e)]=n[e];return t}const w0=n=>n?qk(n)?Uf(n)||n.proxy:w0(n.parent):null,Ou=Tt(Object.create(null),{$:n=>n,$el:n=>n.vnode.el,$data:n=>n.data,$props:n=>n.props,$attrs:n=>n.attrs,$slots:n=>n.slots,$refs:n=>n.refs,$parent:n=>w0(n.parent),$root:n=>w0(n.root),$emit:n=>n.emit,$options:n=>xk(n),$forceUpdate:n=>n.f||(n.f=()=>Rg(n.update)),$nextTick:n=>n.n||(n.n=Nf.bind(n.proxy)),$watch:n=>xM.bind(n)}),k0={get({_:n},t){const{ctx:e,setupState:i,data:r,props:s,accessCache:o,type:a,appContext:c}=n;let d;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return i[t];case 2:return r[t];case 4:return e[t];case 3:return s[t]}else{if(i!==St&&yt(i,t))return o[t]=1,i[t];if(r!==St&&yt(r,t))return o[t]=2,r[t];if((d=n.propsOptions[0])&&yt(d,t))return o[t]=3,s[t];if(e!==St&&yt(e,t))return o[t]=4,e[t];C0&&(o[t]=0)}}const f=Ou[t];let h,g;if(f)return t==="$attrs"&&xi(n,"get",t),f(n);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==St&&yt(e,t))return o[t]=4,e[t];if(g=c.config.globalProperties,yt(g,t))return g[t]},set({_:n},t,e){const{data:i,setupState:r,ctx:s}=n;return r!==St&&yt(r,t)?(r[t]=e,!0):i!==St&&yt(i,t)?(i[t]=e,!0):yt(n.props,t)||t[0]==="$"&&t.slice(1)in n?!1:(s[t]=e,!0)},has({_:{data:n,setupState:t,accessCache:e,ctx:i,appContext:r,propsOptions:s}},o){let a;return!!e[o]||n!==St&&yt(n,o)||t!==St&&yt(t,o)||(a=s[0])&&yt(a,o)||yt(i,o)||yt(Ou,o)||yt(r.config.globalProperties,o)},defineProperty(n,t,e){return e.get!=null?n._.accessCache[t]=0:yt(e,"value")&&this.set(n,t,e.value,null),Reflect.defineProperty(n,t,e)}},MM=Tt({},k0,{get(n,t){if(t!==Symbol.unscopables)return k0.get(n,t,n)},has(n,t){return t[0]!=="_"&&!YA(t)}});let C0=!0;function PM(n){const t=xk(n),e=n.proxy,i=n.ctx;C0=!1,t.beforeCreate&&Kb(t.beforeCreate,n,"bc");const{data:r,computed:s,methods:o,watch:a,provide:c,inject:d,created:f,beforeMount:h,mounted:g,beforeUpdate:m,updated:y,activated:k,deactivated:C,beforeDestroy:T,beforeUnmount:w,destroyed:O,unmounted:x,render:L,renderTracked:M,renderTriggered:B,errorCaptured:D,serverPrefetch:F,expose:I,inheritAttrs:q,components:H,directives:W,filters:Y}=t;if(d&&NM(d,i,null,n.appContext.config.unwrapInjectedRef),o)for(const ye in o){const pe=o[ye];Ze(pe)&&(i[ye]=pe.bind(e))}if(r){const ye=r.call(e,e);Ut(ye)&&(n.data=zc(ye))}if(C0=!0,s)for(const ye in s){const pe=s[ye],Ne=Ze(pe)?pe.bind(e,e):Ze(pe.get)?pe.get.bind(e,e):Vn,Be=!Ze(pe)&&Ze(pe.set)?pe.set.bind(e):Vn,Z=Wk({get:Ne,set:Be});Object.defineProperty(i,ye,{enumerable:!0,configurable:!0,get:()=>Z.value,set:te=>Z.value=te})}if(a)for(const ye in a)vk(a[ye],i,e,ye);if(c){const ye=Ze(c)?c.call(e):c;Reflect.ownKeys(ye).forEach(pe=>{ik(pe,ye[pe])})}f&&Kb(f,n,"c");function he(ye,pe){De(pe)?pe.forEach(Ne=>ye(Ne.bind(e))):pe&&ye(pe.bind(e))}if(he(uk,h),he(Js,g),he(fk,m),he(qf,y),he(lk,k),he(ck,C),he(gk,D),he(mk,M),he(pk,B),he(Zs,w),he(Hf,x),he(hk,F),De(I))if(I.length){const ye=n.exposed||(n.exposed={});I.forEach(pe=>{Object.defineProperty(ye,pe,{get:()=>e[pe],set:Ne=>e[pe]=Ne})})}else n.exposed||(n.exposed={});L&&n.render===Vn&&(n.render=L),q!=null&&(n.inheritAttrs=q),H&&(n.components=H),W&&(n.directives=W)}function NM(n,t,e=Vn,i=!1){De(n)&&(n=S0(n));for(const r in n){const s=n[r];let o;Ut(s)?"default"in s?o=Jl(s.from||r,s.default,!0):o=Jl(s.from||r):o=Jl(s),Xt(o)&&i?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:a=>o.value=a}):t[r]=o}}function Kb(n,t,e){yi(De(n)?n.map(i=>i.bind(t.proxy)):n.bind(t.proxy),t,e)}function vk(n,t,e,i){const r=i.includes(".")?ok(e,i):()=>e[i];if(rt(n)){const s=t[n];Ze(s)&&Zl(r,s)}else if(Ze(n))Zl(r,n.bind(e));else if(Ut(n))if(De(n))n.forEach(s=>vk(s,t,e,i));else{const s=Ze(n.handler)?n.handler.bind(e):t[n.handler];Ze(s)&&Zl(r,s,n)}}function xk(n){const t=n.type,{mixins:e,extends:i}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:o}}=n.appContext,a=s.get(t);let c;return a?c=a:!r.length&&!e&&!i?c=t:(c={},r.length&&r.forEach(d=>Au(c,d,o,!0)),Au(c,t,o)),s.set(t,c),c}function Au(n,t,e,i=!1){const{mixins:r,extends:s}=t;s&&Au(n,s,e,!0),r&&r.forEach(o=>Au(n,o,e,!0));for(const o in t)if(!(i&&o==="expose")){const a=IM[o]||e&&e[o];n[o]=a?a(n[o],t[o]):t[o]}return n}const IM={data:Gb,props:yo,emits:yo,methods:yo,computed:yo,beforeCreate:zn,created:zn,beforeMount:zn,mounted:zn,beforeUpdate:zn,updated:zn,beforeDestroy:zn,beforeUnmount:zn,destroyed:zn,unmounted:zn,activated:zn,deactivated:zn,errorCaptured:zn,serverPrefetch:zn,components:yo,directives:yo,watch:BM,provide:Gb,inject:RM};function Gb(n,t){return t?n?function(){return Tt(Ze(n)?n.call(this,this):n,Ze(t)?t.call(this,this):t)}:t:n}function RM(n,t){return yo(S0(n),S0(t))}function S0(n){if(De(n)){const t={};for(let e=0;e0)&&!(o&16)){if(o&8){const f=n.vnode.dynamicProps;for(let h=0;h{c=!0;const[g,m]=kk(h,t,!0);Tt(o,g),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(f),n.extends&&f(n.extends),n.mixins&&n.mixins.forEach(f)}if(!s&&!c)return i.set(n,Ha),Ha;if(De(s))for(let f=0;f-1,m[1]=k<0||y-1||yt(m,"default"))&&a.push(h)}}}const d=[o,a];return i.set(n,d),d}function Yb(n){return n[0]!=="$"}function Jb(n){const t=n&&n.toString().match(/^\s*function (\w+)/);return t?t[1]:n===null?"null":""}function Zb(n,t){return Jb(n)===Jb(t)}function Xb(n,t){return De(t)?t.findIndex(e=>Zb(e,n)):Ze(t)&&Zb(t,n)?0:-1}const Ck=n=>n[0]==="_"||n==="$stable",Vg=n=>De(n)?n.map(pi):[pi(n)],qM=(n,t,e)=>{if(t._n)return t;const i=ln((...r)=>Vg(t(...r)),e);return i._c=!1,i},Sk=(n,t,e)=>{const i=n._ctx;for(const r in n){if(Ck(r))continue;const s=n[r];if(Ze(s))t[r]=qM(r,s,i);else if(s!=null){const o=Vg(s);t[r]=()=>o}}},Tk=(n,t)=>{const e=Vg(t);n.slots.default=()=>e},HM=(n,t)=>{if(n.vnode.shapeFlag&32){const e=t._;e?(n.slots=gt(t),Cu(t,"_",e)):Sk(t,n.slots={})}else n.slots={},t&&Tk(n,t);Cu(n.slots,zf,1)},zM=(n,t,e)=>{const{vnode:i,slots:r}=n;let s=!0,o=St;if(i.shapeFlag&32){const a=t._;a?e&&a===1?s=!1:(Tt(r,t),!e&&a===1&&delete r._):(s=!t.$stable,Sk(t,r)),o=t}else t&&(Tk(n,t),o={default:1});if(s)for(const a in r)!Ck(a)&&!(a in o)&&delete r[a]};function Ek(){return{app:null,config:{isNativeTag:uu,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let UM=0;function VM(n,t){return function(i,r=null){Ze(i)||(i=Object.assign({},i)),r!=null&&!Ut(r)&&(r=null);const s=Ek(),o=new Set;let a=!1;const c=s.app={_uid:UM++,_component:i,_props:r,_container:null,_context:s,_instance:null,version:Jk,get config(){return s.config},set config(d){},use(d,...f){return o.has(d)||(d&&Ze(d.install)?(o.add(d),d.install(c,...f)):Ze(d)&&(o.add(d),d(c,...f))),c},mixin(d){return s.mixins.includes(d)||s.mixins.push(d),c},component(d,f){return f?(s.components[d]=f,c):s.components[d]},directive(d,f){return f?(s.directives[d]=f,c):s.directives[d]},mount(d,f,h){if(!a){const g=ct(i,r);return g.appContext=s,f&&t?t(g,d):n(g,d,h),a=!0,c._container=d,d.__vue_app__=c,Uf(g.component)||g.component.proxy}},unmount(){a&&(n(null,c._container),delete c._container.__vue_app__)},provide(d,f){return s.provides[d]=f,c}};return c}}function Du(n,t,e,i,r=!1){if(De(n)){n.forEach((g,m)=>Du(g,t&&(De(t)?t[m]:t),e,i,r));return}if(No(i)&&!r)return;const s=i.shapeFlag&4?Uf(i.component)||i.component.proxy:i.el,o=r?null:s,{i:a,r:c}=n,d=t&&t.r,f=a.refs===St?a.refs={}:a.refs,h=a.setupState;if(d!=null&&d!==c&&(rt(d)?(f[d]=null,yt(h,d)&&(h[d]=null)):Xt(d)&&(d.value=null)),Ze(c))Sr(c,a,12,[o,f]);else{const g=rt(c),m=Xt(c);if(g||m){const y=()=>{if(n.f){const k=g?f[c]:c.value;r?De(k)&&kg(k,s):De(k)?k.includes(s)||k.push(s):g?(f[c]=[s],yt(h,c)&&(h[c]=f[c])):(c.value=[s],n.k&&(f[n.k]=c.value))}else g?(f[c]=o,yt(h,c)&&(h[c]=o)):Xt(c)&&(c.value=o,n.k&&(f[n.k]=o))};o?(y.id=-1,bn(y,e)):y()}}}let _s=!1;const Zd=n=>/svg/.test(n.namespaceURI)&&n.tagName!=="foreignObject",Xd=n=>n.nodeType===8;function jM(n){const{mt:t,p:e,o:{patchProp:i,createText:r,nextSibling:s,parentNode:o,remove:a,insert:c,createComment:d}}=n,f=(T,w)=>{if(!w.hasChildNodes()){e(null,T,w),Eu();return}_s=!1,h(w.firstChild,T,null,null,null),Eu(),_s&&console.error("Hydration completed but contains mismatches.")},h=(T,w,O,x,L,M=!1)=>{const B=Xd(T)&&T.data==="[",D=()=>k(T,w,O,x,L,B),{type:F,ref:I,shapeFlag:q,patchFlag:H}=w,W=T.nodeType;w.el=T,H===-2&&(M=!1,w.dynamicChildren=null);let Y=null;switch(F){case $a:W!==3?w.children===""?(c(w.el=r(""),o(T),T),Y=T):Y=D():(T.data!==w.children&&(_s=!0,T.data=w.children),Y=s(T));break;case Mn:W!==8||B?Y=D():Y=s(T);break;case Io:if(W!==1)Y=D();else{Y=T;const _e=!w.children.length;for(let he=0;he{M=M||!!w.dynamicChildren;const{type:B,props:D,patchFlag:F,shapeFlag:I,dirs:q}=w,H=B==="input"&&q||B==="option";if(H||F!==-1){if(q&&br(w,null,O,"created"),D)if(H||!M||F&48)for(const Y in D)(H&&Y.endsWith("value")||Xo(Y)&&!Ao(Y))&&i(T,Y,null,D[Y],!1,void 0,O);else D.onClick&&i(T,"onClick",null,D.onClick,!1,void 0,O);let W;if((W=D&&D.onVnodeBeforeMount)&&Xn(W,O,w),q&&br(w,null,O,"beforeMount"),((W=D&&D.onVnodeMounted)||q)&&nk(()=>{W&&Xn(W,O,w),q&&br(w,null,O,"mounted")},x),I&16&&!(D&&(D.innerHTML||D.textContent))){let Y=m(T.firstChild,w,T,O,x,L,M);for(;Y;){_s=!0;const _e=Y;Y=Y.nextSibling,a(_e)}}else I&8&&T.textContent!==w.children&&(_s=!0,T.textContent=w.children)}return T.nextSibling},m=(T,w,O,x,L,M,B)=>{B=B||!!w.dynamicChildren;const D=w.children,F=D.length;for(let I=0;I{const{slotScopeIds:B}=w;B&&(L=L?L.concat(B):B);const D=o(T),F=m(s(T),w,D,O,x,L,M);return F&&Xd(F)&&F.data==="]"?s(w.anchor=F):(_s=!0,c(w.anchor=d("]"),D,F),F)},k=(T,w,O,x,L,M)=>{if(_s=!0,w.el=null,M){const F=C(T);for(;;){const I=s(T);if(I&&I!==F)a(I);else break}}const B=s(T),D=o(T);return a(T),e(null,w,D,B,O,x,Zd(D),L),B},C=T=>{let w=0;for(;T;)if(T=s(T),T&&Xd(T)&&(T.data==="["&&w++,T.data==="]")){if(w===0)return s(T);w--}return T};return[f,h]}const bn=nk;function Ok(n){return Dk(n)}function Ak(n){return Dk(n,jM)}function Dk(n,t){const e=hD();e.__VUE__=!0;const{insert:i,remove:r,patchProp:s,createElement:o,createText:a,createComment:c,setText:d,setElementText:f,parentNode:h,nextSibling:g,setScopeId:m=Vn,cloneNode:y,insertStaticContent:k}=n,C=(U,V,$,le=null,ie=null,me=null,ve=!1,ue=null,de=!!V.dynamicChildren)=>{if(U===V)return;U&&!xr(U,V)&&(le=Ie(U),re(U,ie,me,!0),U=null),V.patchFlag===-2&&(de=!1,V.dynamicChildren=null);const{type:oe,ref:xe,shapeFlag:Ce}=V;switch(oe){case $a:T(U,V,$,le);break;case Mn:w(U,V,$,le);break;case Io:U==null&&O(V,$,le,ve);break;case He:W(U,V,$,le,ie,me,ve,ue,de);break;default:Ce&1?M(U,V,$,le,ie,me,ve,ue,de):Ce&6?Y(U,V,$,le,ie,me,ve,ue,de):(Ce&64||Ce&128)&&oe.process(U,V,$,le,ie,me,ve,ue,de,Bt)}xe!=null&&ie&&Du(xe,U&&U.ref,me,V||U,!V)},T=(U,V,$,le)=>{if(U==null)i(V.el=a(V.children),$,le);else{const ie=V.el=U.el;V.children!==U.children&&d(ie,V.children)}},w=(U,V,$,le)=>{U==null?i(V.el=c(V.children||""),$,le):V.el=U.el},O=(U,V,$,le)=>{[U.el,U.anchor]=k(U.children,V,$,le,U.el,U.anchor)},x=({el:U,anchor:V},$,le)=>{let ie;for(;U&&U!==V;)ie=g(U),i(U,$,le),U=ie;i(V,$,le)},L=({el:U,anchor:V})=>{let $;for(;U&&U!==V;)$=g(U),r(U),U=$;r(V)},M=(U,V,$,le,ie,me,ve,ue,de)=>{ve=ve||V.type==="svg",U==null?B(V,$,le,ie,me,ve,ue,de):I(U,V,ie,me,ve,ue,de)},B=(U,V,$,le,ie,me,ve,ue)=>{let de,oe;const{type:xe,props:Ce,shapeFlag:Ee,transition:Le,patchFlag:Ve,dirs:tt}=U;if(U.el&&y!==void 0&&Ve===-1)de=U.el=y(U.el);else{if(de=U.el=o(U.type,me,Ce&&Ce.is,Ce),Ee&8?f(de,U.children):Ee&16&&F(U.children,de,null,le,ie,me&&xe!=="foreignObject",ve,ue),tt&&br(U,null,le,"created"),Ce){for(const _t in Ce)_t!=="value"&&!Ao(_t)&&s(de,_t,null,Ce[_t],me,U.children,le,ie,xt);"value"in Ce&&s(de,"value",null,Ce.value),(oe=Ce.onVnodeBeforeMount)&&Xn(oe,le,U)}D(de,U,U.scopeId,ve,le)}tt&&br(U,null,le,"beforeMount");const ht=(!ie||ie&&!ie.pendingBranch)&&Le&&!Le.persisted;ht&&Le.beforeEnter(de),i(de,V,$),((oe=Ce&&Ce.onVnodeMounted)||ht||tt)&&bn(()=>{oe&&Xn(oe,le,U),ht&&Le.enter(de),tt&&br(U,null,le,"mounted")},ie)},D=(U,V,$,le,ie)=>{if($&&m(U,$),le)for(let me=0;me{for(let oe=de;oe{const ue=V.el=U.el;let{patchFlag:de,dynamicChildren:oe,dirs:xe}=V;de|=U.patchFlag&16;const Ce=U.props||St,Ee=V.props||St;let Le;$&&po($,!1),(Le=Ee.onVnodeBeforeUpdate)&&Xn(Le,$,V,U),xe&&br(V,U,$,"beforeUpdate"),$&&po($,!0);const Ve=ie&&V.type!=="foreignObject";if(oe?q(U.dynamicChildren,oe,ue,$,le,Ve,me):ve||Ne(U,V,ue,null,$,le,Ve,me,!1),de>0){if(de&16)H(ue,V,Ce,Ee,$,le,ie);else if(de&2&&Ce.class!==Ee.class&&s(ue,"class",null,Ee.class,ie),de&4&&s(ue,"style",Ce.style,Ee.style,ie),de&8){const tt=V.dynamicProps;for(let ht=0;ht{Le&&Xn(Le,$,V,U),xe&&br(V,U,$,"updated")},le)},q=(U,V,$,le,ie,me,ve)=>{for(let ue=0;ue{if($!==le){for(const ue in le){if(Ao(ue))continue;const de=le[ue],oe=$[ue];de!==oe&&ue!=="value"&&s(U,ue,oe,de,ve,V.children,ie,me,xt)}if($!==St)for(const ue in $)!Ao(ue)&&!(ue in le)&&s(U,ue,$[ue],null,ve,V.children,ie,me,xt);"value"in le&&s(U,"value",$.value,le.value)}},W=(U,V,$,le,ie,me,ve,ue,de)=>{const oe=V.el=U?U.el:a(""),xe=V.anchor=U?U.anchor:a("");let{patchFlag:Ce,dynamicChildren:Ee,slotScopeIds:Le}=V;Le&&(ue=ue?ue.concat(Le):Le),U==null?(i(oe,$,le),i(xe,$,le),F(V.children,$,xe,ie,me,ve,ue,de)):Ce>0&&Ce&64&&Ee&&U.dynamicChildren?(q(U.dynamicChildren,Ee,$,ie,me,ve,ue),(V.key!=null||ie&&V===ie.subTree)&&jg(U,V,!0)):Ne(U,V,$,xe,ie,me,ve,ue,de)},Y=(U,V,$,le,ie,me,ve,ue,de)=>{V.slotScopeIds=ue,U==null?V.shapeFlag&512?ie.ctx.activate(V,$,le,ve,de):_e(V,$,le,ie,me,ve,de):he(U,V,de)},_e=(U,V,$,le,ie,me,ve)=>{const ue=U.component=Fk(U,le,ie);if(Vc(U)&&(ue.ctx.renderer=Bt),Hk(ue),ue.asyncDep){if(ie&&ie.registerDep(ue,ye),!U.el){const de=ue.subTree=ct(Mn);w(null,de,V,$)}return}ye(ue,U,V,$,ie,me,ve)},he=(U,V,$)=>{const le=V.component=U.component;if(hM(U,V,$))if(le.asyncDep&&!le.asyncResolved){pe(le,V,$);return}else le.next=V,oM(le.update),le.update();else V.el=U.el,le.vnode=V},ye=(U,V,$,le,ie,me,ve)=>{const ue=()=>{if(U.isMounted){let{next:xe,bu:Ce,u:Ee,parent:Le,vnode:Ve}=U,tt=xe,ht;po(U,!1),xe?(xe.el=Ve.el,pe(U,xe,ve)):xe=Ve,Ce&&Va(Ce),(ht=xe.props&&xe.props.onVnodeBeforeUpdate)&&Xn(ht,Le,xe,Ve),po(U,!0);const _t=fu(U),Lt=U.subTree;U.subTree=_t,C(Lt,_t,h(Lt.el),Ie(Lt),U,ie,me),xe.el=_t.el,tt===null&&Lg(U,_t.el),Ee&&bn(Ee,ie),(ht=xe.props&&xe.props.onVnodeUpdated)&&bn(()=>Xn(ht,Le,xe,Ve),ie)}else{let xe;const{el:Ce,props:Ee}=V,{bm:Le,m:Ve,parent:tt}=U,ht=No(V);if(po(U,!1),Le&&Va(Le),!ht&&(xe=Ee&&Ee.onVnodeBeforeMount)&&Xn(xe,tt,V),po(U,!0),Ce&&en){const _t=()=>{U.subTree=fu(U),en(Ce,U.subTree,U,ie,null)};ht?V.type.__asyncLoader().then(()=>!U.isUnmounted&&_t()):_t()}else{const _t=U.subTree=fu(U);C(null,_t,$,le,U,ie,me),V.el=_t.el}if(Ve&&bn(Ve,ie),!ht&&(xe=Ee&&Ee.onVnodeMounted)){const _t=V;bn(()=>Xn(xe,tt,_t),ie)}(V.shapeFlag&256||tt&&No(tt.vnode)&&tt.vnode.shapeFlag&256)&&U.a&&bn(U.a,ie),U.isMounted=!0,V=$=le=null}},de=U.effect=new Hc(ue,()=>Rg(oe),U.scope),oe=U.update=()=>de.run();oe.id=U.uid,po(U,!0),oe()},pe=(U,V,$)=>{V.component=U;const le=U.vnode.props;U.vnode=V,U.next=null,FM(U,V.props,le,$),zM(U,V.children,$),ea(),If(void 0,U.update),ta()},Ne=(U,V,$,le,ie,me,ve,ue,de=!1)=>{const oe=U&&U.children,xe=U?U.shapeFlag:0,Ce=V.children,{patchFlag:Ee,shapeFlag:Le}=V;if(Ee>0){if(Ee&128){Z(oe,Ce,$,le,ie,me,ve,ue,de);return}else if(Ee&256){Be(oe,Ce,$,le,ie,me,ve,ue,de);return}}Le&8?(xe&16&&xt(oe,ie,me),Ce!==oe&&f($,Ce)):xe&16?Le&16?Z(oe,Ce,$,le,ie,me,ve,ue,de):xt(oe,ie,me,!0):(xe&8&&f($,""),Le&16&&F(Ce,$,le,ie,me,ve,ue,de))},Be=(U,V,$,le,ie,me,ve,ue,de)=>{U=U||Ha,V=V||Ha;const oe=U.length,xe=V.length,Ce=Math.min(oe,xe);let Ee;for(Ee=0;Eexe?xt(U,ie,me,!0,!1,Ce):F(V,$,le,ie,me,ve,ue,de,Ce)},Z=(U,V,$,le,ie,me,ve,ue,de)=>{let oe=0;const xe=V.length;let Ce=U.length-1,Ee=xe-1;for(;oe<=Ce&&oe<=Ee;){const Le=U[oe],Ve=V[oe]=de?ks(V[oe]):pi(V[oe]);if(xr(Le,Ve))C(Le,Ve,$,null,ie,me,ve,ue,de);else break;oe++}for(;oe<=Ce&&oe<=Ee;){const Le=U[Ce],Ve=V[Ee]=de?ks(V[Ee]):pi(V[Ee]);if(xr(Le,Ve))C(Le,Ve,$,null,ie,me,ve,ue,de);else break;Ce--,Ee--}if(oe>Ce){if(oe<=Ee){const Le=Ee+1,Ve=LeEe)for(;oe<=Ce;)re(U[oe],ie,me,!0),oe++;else{const Le=oe,Ve=oe,tt=new Map;for(oe=Ve;oe<=Ee;oe++){const Ae=V[oe]=de?ks(V[oe]):pi(V[oe]);Ae.key!=null&&tt.set(Ae.key,oe)}let ht,_t=0;const Lt=Ee-Ve+1;let cn=!1,ur=0;const ee=new Array(Lt);for(oe=0;oe=Lt){re(Ae,ie,me,!0);continue}let Je;if(Ae.key!=null)Je=tt.get(Ae.key);else for(ht=Ve;ht<=Ee;ht++)if(ee[ht-Ve]===0&&xr(Ae,V[ht])){Je=ht;break}Je===void 0?re(Ae,ie,me,!0):(ee[Je-Ve]=oe+1,Je>=ur?ur=Je:cn=!0,C(Ae,V[Je],$,null,ie,me,ve,ue,de),_t++)}const Se=cn?WM(ee):Ha;for(ht=Se.length-1,oe=Lt-1;oe>=0;oe--){const Ae=Ve+oe,Je=V[Ae],nt=Ae+1{const{el:me,type:ve,transition:ue,children:de,shapeFlag:oe}=U;if(oe&6){te(U.component.subTree,V,$,le);return}if(oe&128){U.suspense.move(V,$,le);return}if(oe&64){ve.move(U,V,$,Bt);return}if(ve===He){i(me,V,$);for(let Ce=0;Ceue.enter(me),ie);else{const{leave:Ce,delayLeave:Ee,afterLeave:Le}=ue,Ve=()=>i(me,V,$),tt=()=>{Ce(me,()=>{Ve(),Le&&Le()})};Ee?Ee(me,Ve,tt):tt()}else i(me,V,$)},re=(U,V,$,le=!1,ie=!1)=>{const{type:me,props:ve,ref:ue,children:de,dynamicChildren:oe,shapeFlag:xe,patchFlag:Ce,dirs:Ee}=U;if(ue!=null&&Du(ue,null,$,U,!0),xe&256){V.ctx.deactivate(U);return}const Le=xe&1&&Ee,Ve=!No(U);let tt;if(Ve&&(tt=ve&&ve.onVnodeBeforeUnmount)&&Xn(tt,V,U),xe&6)Ye(U.component,$,le);else{if(xe&128){U.suspense.unmount($,le);return}Le&&br(U,null,V,"beforeUnmount"),xe&64?U.type.remove(U,V,$,ie,Bt,le):oe&&(me!==He||Ce>0&&Ce&64)?xt(oe,V,$,!1,!0):(me===He&&Ce&384||!ie&&xe&16)&&xt(de,V,$),le&&se(U)}(Ve&&(tt=ve&&ve.onVnodeUnmounted)||Le)&&bn(()=>{tt&&Xn(tt,V,U),Le&&br(U,null,V,"unmounted")},$)},se=U=>{const{type:V,el:$,anchor:le,transition:ie}=U;if(V===He){Ge($,le);return}if(V===Io){L(U);return}const me=()=>{r($),ie&&!ie.persisted&&ie.afterLeave&&ie.afterLeave()};if(U.shapeFlag&1&&ie&&!ie.persisted){const{leave:ve,delayLeave:ue}=ie,de=()=>ve($,me);ue?ue(U.el,me,de):de()}else me()},Ge=(U,V)=>{let $;for(;U!==V;)$=g(U),r(U),U=$;r(V)},Ye=(U,V,$)=>{const{bum:le,scope:ie,update:me,subTree:ve,um:ue}=U;le&&Va(le),ie.stop(),me&&(me.active=!1,re(ve,U,V,$)),ue&&bn(ue,V),bn(()=>{U.isUnmounted=!0},V),V&&V.pendingBranch&&!V.isUnmounted&&U.asyncDep&&!U.asyncResolved&&U.suspenseId===V.pendingId&&(V.deps--,V.deps===0&&V.resolve())},xt=(U,V,$,le=!1,ie=!1,me=0)=>{for(let ve=me;veU.shapeFlag&6?Ie(U.component.subTree):U.shapeFlag&128?U.suspense.next():g(U.anchor||U.el),Kt=(U,V,$)=>{U==null?V._vnode&&re(V._vnode,null,null,!0):C(V._vnode||null,U,V,null,null,null,$),Eu(),V._vnode=U},Bt={p:C,um:re,m:te,r:se,mt:_e,mc:F,pc:Ne,pbc:q,n:Ie,o:n};let $t,en;return t&&([$t,en]=t(Bt)),{render:Kt,hydrate:$t,createApp:VM(Kt,$t)}}function po({effect:n,update:t},e){n.allowRecurse=t.allowRecurse=e}function jg(n,t,e=!1){const i=n.children,r=t.children;if(De(i)&&De(r))for(let s=0;s>1,n[e[a]]0&&(t[i]=e[s-1]),e[s]=i)}}for(s=e.length,o=e[s-1];s-- >0;)e[s]=o,o=t[o];return e}const KM=n=>n.__isTeleport,Xl=n=>n&&(n.disabled||n.disabled===""),Qb=n=>typeof SVGElement<"u"&&n instanceof SVGElement,E0=(n,t)=>{const e=n&&n.to;return rt(e)?t?t(e):null:e},GM={__isTeleport:!0,process(n,t,e,i,r,s,o,a,c,d){const{mc:f,pc:h,pbc:g,o:{insert:m,querySelector:y,createText:k,createComment:C}}=d,T=Xl(t.props);let{shapeFlag:w,children:O,dynamicChildren:x}=t;if(n==null){const L=t.el=k(""),M=t.anchor=k("");m(L,e,i),m(M,e,i);const B=t.target=E0(t.props,y),D=t.targetAnchor=k("");B&&(m(D,B),o=o||Qb(B));const F=(I,q)=>{w&16&&f(O,I,q,r,s,o,a,c)};T?F(e,M):B&&F(B,D)}else{t.el=n.el;const L=t.anchor=n.anchor,M=t.target=n.target,B=t.targetAnchor=n.targetAnchor,D=Xl(n.props),F=D?e:M,I=D?L:B;if(o=o||Qb(M),x?(g(n.dynamicChildren,x,F,r,s,o,a),jg(n,t,!0)):c||h(n,t,F,I,r,s,o,a,!1),T)D||Qd(t,e,L,d,1);else if((t.props&&t.props.to)!==(n.props&&n.props.to)){const q=t.target=E0(t.props,y);q&&Qd(t,q,null,d,0)}else D&&Qd(t,M,B,d,1)}},remove(n,t,e,i,{um:r,o:{remove:s}},o){const{shapeFlag:a,children:c,anchor:d,targetAnchor:f,target:h,props:g}=n;if(h&&s(f),(o||!Xl(g))&&(s(d),a&16))for(let m=0;m0?$n||Ha:null,Pk(),Vo>0&&$n&&$n.push(n),n}function A(n,t,e,i,r,s){return Nk(b(n,t,e,i,r,s,!0))}function qe(n,t,e,i,r){return Nk(ct(n,t,e,i,r,!0))}function Us(n){return n?n.__v_isVNode===!0:!1}function xr(n,t){return n.type===t.type&&n.key===t.key}function JM(n){}const zf="__vInternal",Ik=({key:n})=>n??null,hu=({ref:n,ref_key:t,ref_for:e})=>n!=null?rt(n)||Xt(n)||Ze(n)?{i:An,r:n,k:t,f:!!e}:n:null;function b(n,t=null,e=null,i=0,r=null,s=n===He?0:1,o=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:n,props:t,key:t&&Ik(t),ref:t&&hu(t),scopeId:Bf,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:r,dynamicChildren:null,appContext:null};return a?(Wg(c,e),s&128&&n.normalize(c)):e&&(c.shapeFlag|=rt(e)?8:16),Vo>0&&!o&&$n&&(c.patchFlag>0||s&6)&&c.patchFlag!==32&&$n.push(c),c}const ct=ZM;function ZM(n,t=null,e=null,i=0,r=null,s=!1){if((!n||n===_k)&&(n=Mn),Us(n)){const a=Er(n,t,!0);return e&&Wg(a,e),Vo>0&&!s&&$n&&(a.shapeFlag&6?$n[$n.indexOf(n)]=a:$n.push(a)),a.patchFlag|=-2,a}if(rP(n)&&(n=n.__vccOpts),t){t=Rk(t);let{class:a,style:c}=t;a&&!rt(a)&&(t.class=X(a)),Ut(c)&&(Dg(c)&&!De(c)&&(c=Tt({},c)),t.style=ke(c))}const o=rt(n)?1:tk(n)?128:KM(n)?64:Ut(n)?4:Ze(n)?2:0;return b(n,t,e,i,r,o,s,!0)}function Rk(n){return n?Dg(n)||zf in n?Tt({},n):n:null}function Er(n,t,e=!1){const{props:i,ref:r,patchFlag:s,children:o}=n,a=t?Lk(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:n.type,props:a,key:a&&Ik(a),ref:t&&t.ref?e&&r?De(r)?r.concat(hu(t)):[r,hu(t)]:hu(t):r,scopeId:n.scopeId,slotScopeIds:n.slotScopeIds,children:o,target:n.target,targetAnchor:n.targetAnchor,staticCount:n.staticCount,shapeFlag:n.shapeFlag,patchFlag:t&&n.type!==He?s===-1?16:s|16:s,dynamicProps:n.dynamicProps,dynamicChildren:n.dynamicChildren,appContext:n.appContext,dirs:n.dirs,transition:n.transition,component:n.component,suspense:n.suspense,ssContent:n.ssContent&&Er(n.ssContent),ssFallback:n.ssFallback&&Er(n.ssFallback),el:n.el,anchor:n.anchor}}function J(n=" ",t=0){return ct($a,null,n,t)}function Bk(n,t){const e=ct(Io,null,n);return e.staticCount=t,e}function R(n="",t=!1){return t?(S(),qe(Mn,null,n)):ct(Mn,null,n)}function pi(n){return n==null||typeof n=="boolean"?ct(Mn):De(n)?ct(He,null,n.slice()):typeof n=="object"?ks(n):ct($a,null,String(n))}function ks(n){return n.el===null||n.memo?n:Er(n)}function Wg(n,t){let e=0;const{shapeFlag:i}=n;if(t==null)t=null;else if(De(t))e=16;else if(typeof t=="object")if(i&65){const r=t.default;r&&(r._c&&(r._d=!1),Wg(n,r()),r._c&&(r._d=!0));return}else{e=32;const r=t._;!r&&!(zf in t)?t._ctx=An:r===3&&An&&(An.slots._===1?t._=1:(t._=2,n.patchFlag|=1024))}else Ze(t)?(t={default:t,_ctx:An},e=32):(t=String(t),i&64?(e=16,t=[J(t)]):e=8);n.children=t,n.shapeFlag|=e}function Lk(...n){const t={};for(let e=0;eon||An,Vs=n=>{on=n,n.scope.on()},Ns=()=>{on&&on.scope.off(),on=null};function qk(n){return n.vnode.shapeFlag&4}let el=!1;function Hk(n,t=!1){el=t;const{props:e,children:i}=n.vnode,r=qk(n);LM(n,e,r,t),HM(n,i);const s=r?$M(n,t):void 0;return el=!1,s}function $M(n,t){const e=n.type;n.accessCache=Object.create(null),n.proxy=Mf(new Proxy(n.ctx,k0));const{setup:i}=e;if(i){const r=n.setupContext=i.length>1?Vk(n):null;Vs(n),ea();const s=Sr(i,n,0,[n.props,r]);if(ta(),Ns(),Cg(s)){if(s.then(Ns,Ns),t)return s.then(o=>{A0(n,o,t)}).catch(o=>{na(o,n,0)});n.asyncDep=s}else A0(n,s,t)}else Uk(n,t)}function A0(n,t,e){Ze(t)?n.type.__ssrInlineRender?n.ssrRender=t:n.render=t:Ut(t)&&(n.setupState=Ng(t)),Uk(n,e)}let Mu,D0;function zk(n){Mu=n,D0=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,MM))}}const eP=()=>!Mu;function Uk(n,t,e){const i=n.type;if(!n.render){if(!t&&Mu&&!i.render){const r=i.template;if(r){const{isCustomElement:s,compilerOptions:o}=n.appContext.config,{delimiters:a,compilerOptions:c}=i,d=Tt(Tt({isCustomElement:s,delimiters:a},o),c);i.render=Mu(r,d)}}n.render=i.render||Vn,D0&&D0(n)}Vs(n),ea(),PM(n),ta(),Ns()}function tP(n){return new Proxy(n.attrs,{get(t,e){return xi(n,"get","$attrs"),t[e]}})}function Vk(n){const t=i=>{n.exposed=i||{}};let e;return{get attrs(){return e||(e=tP(n))},slots:n.slots,emit:n.emit,expose:t}}function Uf(n){if(n.exposed)return n.exposeProxy||(n.exposeProxy=new Proxy(Ng(Mf(n.exposed)),{get(t,e){if(e in t)return t[e];if(e in Ou)return Ou[e](n)}}))}const nP=/(?:^|[-_])(\w)/g,iP=n=>n.replace(nP,t=>t.toUpperCase()).replace(/[-_]/g,"");function Pu(n){return Ze(n)&&n.displayName||n.name}function jk(n,t,e=!1){let i=Pu(t);if(!i&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(i=r[1])}if(!i&&n&&n.parent){const r=s=>{for(const o in s)if(s[o]===t)return o};i=r(n.components||n.parent.type.components)||r(n.appContext.components)}return i?iP(i):e?"App":"Anonymous"}function rP(n){return Ze(n)&&"__vccOpts"in n}const Wk=(n,t)=>$D(n,t,el);function sP(){return null}function oP(){return null}function aP(n){}function lP(n,t){return null}function cP(){return Kk().slots}function dP(){return Kk().attrs}function Kk(){const n=ns();return n.setupContext||(n.setupContext=Vk(n))}function uP(n,t){const e=De(n)?n.reduce((i,r)=>(i[r]={},i),{}):n;for(const i in t){const r=e[i];r?De(r)||Ze(r)?e[i]={type:r,default:t[i]}:r.default=t[i]:r===null&&(e[i]={default:t[i]})}return e}function fP(n,t){const e={};for(const i in n)t.includes(i)||Object.defineProperty(e,i,{enumerable:!0,get:()=>n[i]});return e}function hP(n){const t=ns();let e=n();return Ns(),Cg(e)&&(e=e.catch(i=>{throw Vs(t),i})),[e,()=>Vs(t)]}function Jr(n,t,e){const i=arguments.length;return i===2?Ut(t)&&!De(t)?Us(t)?ct(n,null,[t]):ct(n,t):ct(n,null,t):(i>3?e=Array.prototype.slice.call(arguments,2):i===3&&Us(e)&&(e=[e]),ct(n,t,e))}const Gk=Symbol(""),pP=()=>{{const n=Jl(Gk);return n||Gw("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),n}};function mP(){}function gP(n,t,e,i){const r=e[i];if(r&&Yk(r,n))return r;const s=t();return s.memo=n.slice(),e[i]=s}function Yk(n,t){const e=n.memo;if(e.length!=t.length)return!1;for(let i=0;i0&&$n&&$n.push(n),!0}const Jk="3.2.36",_P={createComponentInstance:Fk,setupComponent:Hk,renderComponentRoot:fu,setCurrentRenderingInstance:bc,isVNode:Us,normalizeVNode:pi},yP=_P,bP=null,vP=null,xP="http://www.w3.org/2000/svg",vo=typeof document<"u"?document:null,$b=vo&&vo.createElement("template"),wP={insert:(n,t,e)=>{t.insertBefore(n,e||null)},remove:n=>{const t=n.parentNode;t&&t.removeChild(n)},createElement:(n,t,e,i)=>{const r=t?vo.createElementNS(xP,n):vo.createElement(n,e?{is:e}:void 0);return n==="select"&&i&&i.multiple!=null&&r.setAttribute("multiple",i.multiple),r},createText:n=>vo.createTextNode(n),createComment:n=>vo.createComment(n),setText:(n,t)=>{n.nodeValue=t},setElementText:(n,t)=>{n.textContent=t},parentNode:n=>n.parentNode,nextSibling:n=>n.nextSibling,querySelector:n=>vo.querySelector(n),setScopeId(n,t){n.setAttribute(t,"")},cloneNode(n){const t=n.cloneNode(!0);return"_value"in n&&(t._value=n._value),t},insertStaticContent(n,t,e,i,r,s){const o=e?e.previousSibling:t.lastChild;if(r&&(r===s||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),e),!(r===s||!(r=r.nextSibling)););else{$b.innerHTML=i?`${n}`:n;const a=$b.content;if(i){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,e)}return[o?o.nextSibling:t.firstChild,e?e.previousSibling:t.lastChild]}};function kP(n,t,e){const i=n._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),t==null?n.removeAttribute("class"):e?n.setAttribute("class",t):n.className=t}function CP(n,t,e){const i=n.style,r=rt(e);if(e&&!r){for(const s in e)M0(i,s,e[s]);if(t&&!rt(t))for(const s in t)e[s]==null&&M0(i,s,"")}else{const s=i.display;r?t!==e&&(i.cssText=e):t&&n.removeAttribute("style"),"_vod"in n&&(i.display=s)}}const ev=/\s*!important$/;function M0(n,t,e){if(De(e))e.forEach(i=>M0(n,t,i));else if(e==null&&(e=""),t.startsWith("--"))n.setProperty(t,e);else{const i=SP(n,t);ev.test(e)?n.setProperty(ir(i),e.replace(ev,""),"important"):n[i]=e}}const tv=["Webkit","Moz","ms"],Np={};function SP(n,t){const e=Np[t];if(e)return e;let i=Nn(t);if(i!=="filter"&&i in n)return Np[t]=i;i=$o(i);for(let r=0;r{let n=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(n=performance.now.bind(performance));const e=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(e&&Number(e[1])<=53)}return[n,t]})();let P0=0;const AP=Promise.resolve(),DP=()=>{P0=0},MP=()=>P0||(AP.then(DP),P0=Zk());function Gr(n,t,e,i){n.addEventListener(t,e,i)}function PP(n,t,e,i){n.removeEventListener(t,e,i)}function NP(n,t,e,i,r=null){const s=n._vei||(n._vei={}),o=s[t];if(i&&o)o.value=i;else{const[a,c]=IP(t);if(i){const d=s[t]=RP(i,r);Gr(n,a,d,c)}else o&&(PP(n,a,o,c),s[t]=void 0)}}const iv=/(?:Once|Passive|Capture)$/;function IP(n){let t;if(iv.test(n)){t={};let e;for(;e=n.match(iv);)n=n.slice(0,n.length-e[0].length),t[e[0].toLowerCase()]=!0}return[ir(n.slice(2)),t]}function RP(n,t){const e=i=>{const r=i.timeStamp||Zk();(OP||r>=e.attached-1)&&yi(BP(i,e.value),t,5,[i])};return e.value=n,e.attached=MP(),e}function BP(n,t){if(De(t)){const e=n.stopImmediatePropagation;return n.stopImmediatePropagation=()=>{e.call(n),n._stopped=!0},t.map(i=>r=>!r._stopped&&i&&i(r))}else return t}const rv=/^on[a-z]/,LP=(n,t,e,i,r=!1,s,o,a,c)=>{t==="class"?kP(n,i,r):t==="style"?CP(n,e,i):Xo(t)?wg(t)||NP(n,t,e,i,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):FP(n,t,i,r))?EP(n,t,i,s,o,a,c):(t==="true-value"?n._trueValue=i:t==="false-value"&&(n._falseValue=i),TP(n,t,i,r))};function FP(n,t,e,i){return i?!!(t==="innerHTML"||t==="textContent"||t in n&&rv.test(t)&&Ze(e)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&n.tagName==="INPUT"||t==="type"&&n.tagName==="TEXTAREA"||rv.test(t)&&rt(e)?!1:t in n}function Xk(n,t){const e=Ys(n);class i extends Vf{constructor(s){super(e,s,t)}}return i.def=e,i}const qP=n=>Xk(n,dC),HP=typeof HTMLElement<"u"?HTMLElement:class{};class Vf extends HP{constructor(t,e={},i){super(),this._def=t,this._props=e,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&i?i(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Nf(()=>{this._connected||(I0(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let i=0;i{for(const r of i)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=i=>{const{props:r,styles:s}=i,o=!De(r),a=r?o?Object.keys(r):r:[];let c;if(o)for(const d in this._props){const f=r[d];(f===Number||f&&f.type===Number)&&(this._props[d]=Hs(this._props[d]),(c||(c=Object.create(null)))[d]=!0)}this._numberProps=c;for(const d of Object.keys(this))d[0]!=="_"&&this._setProp(d,this[d],!0,!1);for(const d of a.map(Nn))Object.defineProperty(this,d,{get(){return this._getProp(d)},set(f){this._setProp(d,f)}});this._applyStyles(s),this._update()},e=this._def.__asyncLoader;e?e().then(t):t(this._def)}_setAttr(t){let e=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(e=Hs(e)),this._setProp(Nn(t),e,!1)}_getProp(t){return this._props[t]}_setProp(t,e,i=!0,r=!0){e!==this._props[t]&&(this._props[t]=e,r&&this._instance&&this._update(),i&&(e===!0?this.setAttribute(ir(t),""):typeof e=="string"||typeof e=="number"?this.setAttribute(ir(t),e+""):e||this.removeAttribute(ir(t))))}_update(){I0(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ct(this._def,Tt({},this._props));return this._instance||(t.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(r,...s)=>{this.dispatchEvent(new CustomEvent(r,{detail:s}))};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Vf){e.parent=i._instance;break}}),t}_applyStyles(t){t&&t.forEach(e=>{const i=document.createElement("style");i.textContent=e,this.shadowRoot.appendChild(i)})}}function zP(n="$style"){{const t=ns();if(!t)return St;const e=t.type.__cssModules;if(!e)return St;const i=e[n];return i||St}}function UP(n){const t=ns();if(!t)return;const e=()=>N0(t.subTree,n(t.proxy));sk(e),Js(()=>{const i=new MutationObserver(e);i.observe(t.subTree.el.parentNode,{childList:!0}),Hf(()=>i.disconnect())})}function N0(n,t){if(n.shapeFlag&128){const e=n.suspense;n=e.activeBranch,e.pendingBranch&&!e.isHydrating&&e.effects.push(()=>{N0(e.activeBranch,t)})}for(;n.component;)n=n.component.subTree;if(n.shapeFlag&1&&n.el)sv(n.el,t);else if(n.type===He)n.children.forEach(e=>N0(e,t));else if(n.type===Io){let{el:e,anchor:i}=n;for(;e&&(sv(e,t),e!==i);)e=e.nextSibling}}function sv(n,t){if(n.nodeType===1){const e=n.style;for(const i in t)e.setProperty(`--${i}`,t[i])}}const ys="transition",Rl="animation",jc=(n,{slots:t})=>Jr(Hg,$k(n),t);jc.displayName="Transition";const Qk={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},VP=jc.props=Tt({},Hg.props,Qk),mo=(n,t=[])=>{De(n)?n.forEach(e=>e(...t)):n&&n(...t)},ov=n=>n?De(n)?n.some(t=>t.length>1):n.length>1:!1;function $k(n){const t={};for(const H in n)H in Qk||(t[H]=n[H]);if(n.css===!1)return t;const{name:e="v",type:i,duration:r,enterFromClass:s=`${e}-enter-from`,enterActiveClass:o=`${e}-enter-active`,enterToClass:a=`${e}-enter-to`,appearFromClass:c=s,appearActiveClass:d=o,appearToClass:f=a,leaveFromClass:h=`${e}-leave-from`,leaveActiveClass:g=`${e}-leave-active`,leaveToClass:m=`${e}-leave-to`}=n,y=jP(r),k=y&&y[0],C=y&&y[1],{onBeforeEnter:T,onEnter:w,onEnterCancelled:O,onLeave:x,onLeaveCancelled:L,onBeforeAppear:M=T,onAppear:B=w,onAppearCancelled:D=O}=t,F=(H,W,Y)=>{xs(H,W?f:a),xs(H,W?d:o),Y&&Y()},I=(H,W)=>{H._isLeaving=!1,xs(H,h),xs(H,m),xs(H,g),W&&W()},q=H=>(W,Y)=>{const _e=H?B:w,he=()=>F(W,H,Y);mo(_e,[W,he]),av(()=>{xs(W,H?c:s),Vr(W,H?f:a),ov(_e)||lv(W,i,k,he)})};return Tt(t,{onBeforeEnter(H){mo(T,[H]),Vr(H,s),Vr(H,o)},onBeforeAppear(H){mo(M,[H]),Vr(H,c),Vr(H,d)},onEnter:q(!1),onAppear:q(!0),onLeave(H,W){H._isLeaving=!0;const Y=()=>I(H,W);Vr(H,h),tC(),Vr(H,g),av(()=>{H._isLeaving&&(xs(H,h),Vr(H,m),ov(x)||lv(H,i,C,Y))}),mo(x,[H,Y])},onEnterCancelled(H){F(H,!1),mo(O,[H])},onAppearCancelled(H){F(H,!0),mo(D,[H])},onLeaveCancelled(H){I(H),mo(L,[H])}})}function jP(n){if(n==null)return null;if(Ut(n))return[Ip(n.enter),Ip(n.leave)];{const t=Ip(n);return[t,t]}}function Ip(n){return Hs(n)}function Vr(n,t){t.split(/\s+/).forEach(e=>e&&n.classList.add(e)),(n._vtc||(n._vtc=new Set)).add(t)}function xs(n,t){t.split(/\s+/).forEach(i=>i&&n.classList.remove(i));const{_vtc:e}=n;e&&(e.delete(t),e.size||(n._vtc=void 0))}function av(n){requestAnimationFrame(()=>{requestAnimationFrame(n)})}let WP=0;function lv(n,t,e,i){const r=n._endId=++WP,s=()=>{r===n._endId&&i()};if(e)return setTimeout(s,e);const{type:o,timeout:a,propCount:c}=eC(n,t);if(!o)return i();const d=o+"end";let f=0;const h=()=>{n.removeEventListener(d,g),s()},g=m=>{m.target===n&&++f>=c&&h()};setTimeout(()=>{f(e[y]||"").split(", "),r=i(ys+"Delay"),s=i(ys+"Duration"),o=cv(r,s),a=i(Rl+"Delay"),c=i(Rl+"Duration"),d=cv(a,c);let f=null,h=0,g=0;t===ys?o>0&&(f=ys,h=o,g=s.length):t===Rl?d>0&&(f=Rl,h=d,g=c.length):(h=Math.max(o,d),f=h>0?o>d?ys:Rl:null,g=f?f===ys?s.length:c.length:0);const m=f===ys&&/\b(transform|all)(,|$)/.test(e[ys+"Property"]);return{type:f,timeout:h,propCount:g,hasTransform:m}}function cv(n,t){for(;n.lengthdv(e)+dv(n[i])))}function dv(n){return Number(n.slice(0,-1).replace(",","."))*1e3}function tC(){return document.body.offsetHeight}const nC=new WeakMap,iC=new WeakMap,KP={name:"TransitionGroup",props:Tt({},VP,{tag:String,moveClass:String}),setup(n,{slots:t}){const e=ns(),i=qg();let r,s;return qf(()=>{if(!r.length)return;const o=n.moveClass||`${n.name||"v"}-move`;if(!XP(r[0].el,e.vnode.el,o))return;r.forEach(YP),r.forEach(JP);const a=r.filter(ZP);tC(),a.forEach(c=>{const d=c.el,f=d.style;Vr(d,o),f.transform=f.webkitTransform=f.transitionDuration="";const h=d._moveCb=g=>{g&&g.target!==d||(!g||/transform$/.test(g.propertyName))&&(d.removeEventListener("transitionend",h),d._moveCb=null,xs(d,o))};d.addEventListener("transitionend",h)})}),()=>{const o=gt(n),a=$k(o);let c=o.tag||He;r=s,s=t.default?Lf(t.default()):[];for(let d=0;d{o.split(/\s+/).forEach(a=>a&&i.classList.remove(a))}),e.split(/\s+/).forEach(o=>o&&i.classList.add(o)),i.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(i);const{hasTransform:s}=eC(i);return r.removeChild(i),s}const js=n=>{const t=n.props["onUpdate:modelValue"]||!1;return De(t)?e=>Va(t,e):t};function QP(n){n.target.composing=!0}function uv(n){const t=n.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const wt={created(n,{modifiers:{lazy:t,trim:e,number:i}},r){n._assign=js(r);const s=i||r.props&&r.props.type==="number";Gr(n,t?"change":"input",o=>{if(o.target.composing)return;let a=n.value;e&&(a=a.trim()),s&&(a=Hs(a)),n._assign(a)}),e&&Gr(n,"change",()=>{n.value=n.value.trim()}),t||(Gr(n,"compositionstart",QP),Gr(n,"compositionend",uv),Gr(n,"change",uv))},mounted(n,{value:t}){n.value=t??""},beforeUpdate(n,{value:t,modifiers:{lazy:e,trim:i,number:r}},s){if(n._assign=js(s),n.composing||document.activeElement===n&&n.type!=="range"&&(e||i&&n.value.trim()===t||(r||n.type==="number")&&Hs(n.value)===t))return;const o=t??"";n.value!==o&&(n.value=o)}},rr={deep:!0,created(n,t,e){n._assign=js(e),Gr(n,"change",()=>{const i=n._modelValue,r=tl(n),s=n.checked,o=n._assign;if(De(i)){const a=Sf(i,r),c=a!==-1;if(s&&!c)o(i.concat(r));else if(!s&&c){const d=[...i];d.splice(a,1),o(d)}}else if(Qo(i)){const a=new Set(i);s?a.add(r):a.delete(r),o(a)}else o(rC(n,s))})},mounted:fv,beforeUpdate(n,t,e){n._assign=js(e),fv(n,t,e)}};function fv(n,{value:t,oldValue:e},i){n._modelValue=t,De(t)?n.checked=Sf(t,i.props.value)>-1:Qo(t)?n.checked=t.has(i.props.value):t!==e&&(n.checked=Fs(t,rC(n,!0)))}const Zr={created(n,{value:t},e){n.checked=Fs(t,e.props.value),n._assign=js(e),Gr(n,"change",()=>{n._assign(tl(n))})},beforeUpdate(n,{value:t,oldValue:e},i){n._assign=js(i),t!==e&&(n.checked=Fs(t,i.props.value))}},Ui={deep:!0,created(n,{value:t,modifiers:{number:e}},i){const r=Qo(t);Gr(n,"change",()=>{const s=Array.prototype.filter.call(n.options,o=>o.selected).map(o=>e?Hs(tl(o)):tl(o));n._assign(n.multiple?r?new Set(s):s:s[0])}),n._assign=js(i)},mounted(n,{value:t}){hv(n,t)},beforeUpdate(n,t,e){n._assign=js(e)},updated(n,{value:t}){hv(n,t)}};function hv(n,t){const e=n.multiple;if(!(e&&!De(t)&&!Qo(t))){for(let i=0,r=n.options.length;i-1:s.selected=t.has(o);else if(Fs(tl(s),t)){n.selectedIndex!==i&&(n.selectedIndex=i);return}}!e&&n.selectedIndex!==-1&&(n.selectedIndex=-1)}}function tl(n){return"_value"in n?n._value:n.value}function rC(n,t){const e=t?"_trueValue":"_falseValue";return e in n?n[e]:t}const sC={created(n,t,e){$d(n,t,e,null,"created")},mounted(n,t,e){$d(n,t,e,null,"mounted")},beforeUpdate(n,t,e,i){$d(n,t,e,i,"beforeUpdate")},updated(n,t,e,i){$d(n,t,e,i,"updated")}};function oC(n,t){switch(n){case"SELECT":return Ui;case"TEXTAREA":return wt;default:switch(t){case"checkbox":return rr;case"radio":return Zr;default:return wt}}}function $d(n,t,e,i,r){const o=oC(n.tagName,e.props&&e.props.type)[r];o&&o(n,t,e,i)}function $P(){wt.getSSRProps=({value:n})=>({value:n}),Zr.getSSRProps=({value:n},t)=>{if(t.props&&Fs(t.props.value,n))return{checked:!0}},rr.getSSRProps=({value:n},t)=>{if(De(n)){if(t.props&&Sf(n,t.props.value)>-1)return{checked:!0}}else if(Qo(n)){if(t.props&&n.has(t.props.value))return{checked:!0}}else if(n)return{checked:!0}},sC.getSSRProps=(n,t)=>{if(typeof t.type!="string")return;const e=oC(t.type.toUpperCase(),t.props&&t.props.type);if(e.getSSRProps)return e.getSSRProps(n,t)}}const e7=["ctrl","shift","alt","meta"],t7={stop:n=>n.stopPropagation(),prevent:n=>n.preventDefault(),self:n=>n.target!==n.currentTarget,ctrl:n=>!n.ctrlKey,shift:n=>!n.shiftKey,alt:n=>!n.altKey,meta:n=>!n.metaKey,left:n=>"button"in n&&n.button!==0,middle:n=>"button"in n&&n.button!==1,right:n=>"button"in n&&n.button!==2,exact:(n,t)=>e7.some(e=>n[`${e}Key`]&&!t.includes(e))},Wa=(n,t)=>(e,...i)=>{for(let r=0;re=>{if(!("key"in e))return;const i=ir(e.key);if(t.some(r=>r===i||n7[r]===i))return n(e)},jo={beforeMount(n,{value:t},{transition:e}){n._vod=n.style.display==="none"?"":n.style.display,e&&t?e.beforeEnter(n):Bl(n,t)},mounted(n,{value:t},{transition:e}){e&&t&&e.enter(n)},updated(n,{value:t,oldValue:e},{transition:i}){!t!=!e&&(i?t?(i.beforeEnter(n),Bl(n,!0),i.enter(n)):i.leave(n,()=>{Bl(n,!1)}):Bl(n,t))},beforeUnmount(n,{value:t}){Bl(n,t)}};function Bl(n,t){n.style.display=t?n._vod:"none"}function i7(){jo.getSSRProps=({value:n})=>{if(!n)return{style:{display:"none"}}}}const aC=Tt({patchProp:LP},wP);let $l,pv=!1;function lC(){return $l||($l=Ok(aC))}function cC(){return $l=pv?$l:Ak(aC),pv=!0,$l}const I0=(...n)=>{lC().render(...n)},dC=(...n)=>{cC().hydrate(...n)},uC=(...n)=>{const t=lC().createApp(...n),{mount:e}=t;return t.mount=i=>{const r=fC(i);if(!r)return;const s=t._component;!Ze(s)&&!s.render&&!s.template&&(s.template=r.innerHTML),r.innerHTML="";const o=e(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t},r7=(...n)=>{const t=cC().createApp(...n),{mount:e}=t;return t.mount=i=>{const r=fC(i);if(r)return e(r,!0,r instanceof SVGElement)},t};function fC(n){return rt(n)?document.querySelector(n):n}let mv=!1;const s7=()=>{mv||(mv=!0,$P(),i7())},o7=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Hg,Comment:Mn,EffectScope:Tg,Fragment:He,KeepAlive:SM,ReactiveEffect:Hc,Static:Io,Suspense:mM,Teleport:Mk,Text:$a,Transition:jc,TransitionGroup:GP,VueElement:Vf,callWithAsyncErrorHandling:yi,callWithErrorHandling:Sr,camelize:Nn,capitalize:$o,cloneVNode:Er,compatUtils:vP,computed:Wk,createApp:uC,createBlock:qe,createCommentVNode:R,createElementBlock:A,createElementVNode:b,createHydrationRenderer:Ak,createPropsRestProxy:fP,createRenderer:Ok,createSSRApp:r7,createSlots:OM,createStaticVNode:Bk,createTextVNode:J,createVNode:ct,customRef:Ww,defineAsyncComponent:kM,defineComponent:Ys,defineCustomElement:Xk,defineEmits:oP,defineExpose:aP,defineProps:sP,defineSSRCustomElement:qP,get devtools(){return Aa},effect:bD,effectScope:pD,getCurrentInstance:ns,getCurrentScope:mD,getTransitionRawChildren:Lf,guardReactiveProps:Rk,h:Jr,handleError:na,hydrate:dC,initCustomFormatter:mP,initDirectivesForSSR:s7,inject:Jl,isMemoSame:Yk,isProxy:Dg,isReactive:Mo,isReadonly:Xa,isRef:Xt,isRuntimeOnly:eP,isShallow:Su,isVNode:Us,markRaw:Mf,mergeDefaults:uP,mergeProps:Lk,nextTick:Nf,normalizeClass:X,normalizeProps:$A,normalizeStyle:ke,onActivated:lk,onBeforeMount:uk,onBeforeUnmount:Zs,onBeforeUpdate:fk,onDeactivated:ck,onErrorCaptured:gk,onMounted:Js,onRenderTracked:mk,onRenderTriggered:pk,onScopeDispose:gD,onServerPrefetch:hk,onUnmounted:Hf,onUpdated:qf,openBlock:S,popScopeId:cr,provide:ik,proxyRefs:Ng,pushScopeId:lr,queuePostFlushCb:Bg,reactive:zc,readonly:Ag,ref:Po,registerRuntimeCompiler:zk,render:I0,renderList:bt,renderSlot:AM,resolveComponent:at,resolveDirective:yk,resolveDynamicComponent:In,resolveFilter:bP,resolveTransitionHooks:Qa,setBlockTracking:O0,setDevtoolsHook:$w,setTransitionHooks:Uo,shallowReactive:Uw,shallowReadonly:WD,shallowRef:Vw,ssrContextKey:Gk,ssrUtils:yP,stop:vD,toDisplayString:_,toHandlerKey:Ua,toHandlers:DM,toRaw:gt,toRef:Kw,toRefs:ZD,transformVNodeArgs:JM,triggerRef:GD,unref:_c,useAttrs:dP,useCssModule:zP,useCssVars:UP,useSSRContext:pP,useSlots:cP,useTransitionState:qg,vModelCheckbox:rr,vModelDynamic:sC,vModelRadio:Zr,vModelSelect:Ui,vModelText:wt,vShow:jo,version:Jk,warn:Gw,watch:Zl,watchEffect:rk,watchPostEffect:sk,watchSyncEffect:vM,withAsyncContext:hP,withCtx:ln,withDefaults:lP,withDirectives:Re,withKeys:Kg,withMemo:gP,withModifiers:Wa,withScopeId:cM},Symbol.toStringTag,{value:"Module"}));function Gg(n){throw n}function hC(n){}function zt(n,t,e,i){const r=n,s=new SyntaxError(String(r));return s.code=n,s.loc=t,s}const xc=Symbol(""),ec=Symbol(""),Yg=Symbol(""),Nu=Symbol(""),pC=Symbol(""),Wo=Symbol(""),mC=Symbol(""),gC=Symbol(""),Jg=Symbol(""),Zg=Symbol(""),Wc=Symbol(""),Xg=Symbol(""),_C=Symbol(""),Qg=Symbol(""),Iu=Symbol(""),$g=Symbol(""),e_=Symbol(""),t_=Symbol(""),n_=Symbol(""),yC=Symbol(""),bC=Symbol(""),jf=Symbol(""),Ru=Symbol(""),i_=Symbol(""),r_=Symbol(""),wc=Symbol(""),Kc=Symbol(""),s_=Symbol(""),R0=Symbol(""),a7=Symbol(""),B0=Symbol(""),Bu=Symbol(""),l7=Symbol(""),c7=Symbol(""),o_=Symbol(""),d7=Symbol(""),u7=Symbol(""),a_=Symbol(""),vC=Symbol(""),nl={[xc]:"Fragment",[ec]:"Teleport",[Yg]:"Suspense",[Nu]:"KeepAlive",[pC]:"BaseTransition",[Wo]:"openBlock",[mC]:"createBlock",[gC]:"createElementBlock",[Jg]:"createVNode",[Zg]:"createElementVNode",[Wc]:"createCommentVNode",[Xg]:"createTextVNode",[_C]:"createStaticVNode",[Qg]:"resolveComponent",[Iu]:"resolveDynamicComponent",[$g]:"resolveDirective",[e_]:"resolveFilter",[t_]:"withDirectives",[n_]:"renderList",[yC]:"renderSlot",[bC]:"createSlots",[jf]:"toDisplayString",[Ru]:"mergeProps",[i_]:"normalizeClass",[r_]:"normalizeStyle",[wc]:"normalizeProps",[Kc]:"guardReactiveProps",[s_]:"toHandlers",[R0]:"camelize",[a7]:"capitalize",[B0]:"toHandlerKey",[Bu]:"setBlockTracking",[l7]:"pushScopeId",[c7]:"popScopeId",[o_]:"withCtx",[d7]:"unref",[u7]:"isRef",[a_]:"withMemo",[vC]:"isMemoSame"};function f7(n){Object.getOwnPropertySymbols(n).forEach(t=>{nl[t]=n[t]})}const ki={source:"",start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function h7(n,t=ki){return{type:0,children:n,helpers:[],components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:t}}function kc(n,t,e,i,r,s,o,a=!1,c=!1,d=!1,f=ki){return n&&(a?(n.helper(Wo),n.helper(sl(n.inSSR,d))):n.helper(rl(n.inSSR,d)),o&&n.helper(t_)),{type:13,tag:t,props:e,children:i,patchFlag:r,dynamicProps:s,directives:o,isBlock:a,disableTracking:c,isComponent:d,loc:f}}function Gc(n,t=ki){return{type:17,loc:t,elements:n}}function Fi(n,t=ki){return{type:15,loc:t,properties:n}}function Jt(n,t){return{type:16,loc:ki,key:rt(n)?ut(n,!0):n,value:t}}function ut(n,t=!1,e=ki,i=0){return{type:4,loc:e,content:n,isStatic:t,constType:t?3:i}}function sr(n,t=ki){return{type:8,loc:t,children:n}}function Zt(n,t=[],e=ki){return{type:14,loc:e,callee:n,arguments:t}}function il(n,t=void 0,e=!1,i=!1,r=ki){return{type:18,params:n,returns:t,newline:e,isSlot:i,loc:r}}function L0(n,t,e,i=!0){return{type:19,test:n,consequent:t,alternate:e,newline:i,loc:ki}}function p7(n,t,e=!1){return{type:20,index:n,value:t,isVNode:e,loc:ki}}function m7(n){return{type:21,body:n,loc:ki}}const bi=n=>n.type===4&&n.isStatic,Ia=(n,t)=>n===t||n===ir(t);function xC(n){if(Ia(n,"Teleport"))return ec;if(Ia(n,"Suspense"))return Yg;if(Ia(n,"KeepAlive"))return Nu;if(Ia(n,"BaseTransition"))return pC}const g7=/^\d|[^\$\w]/,l_=n=>!g7.test(n),_7=/[A-Za-z_$\xA0-\uFFFF]/,y7=/[\.\?\w$\xA0-\uFFFF]/,b7=/\s+[.[]\s*|\s*[.[]\s+/g,v7=n=>{n=n.trim().replace(b7,o=>o.trim());let t=0,e=[],i=0,r=0,s=null;for(let o=0;ot.type===7&&t.name==="bind"&&(!t.arg||t.arg.type!==4||!t.arg.isStatic))}function Rp(n){return n.type===5||n.type===2}function w7(n){return n.type===7&&n.name==="slot"}function qu(n){return n.type===1&&n.tagType===3}function Hu(n){return n.type===1&&n.tagType===2}function rl(n,t){return n||t?Jg:Zg}function sl(n,t){return n||t?mC:gC}const k7=new Set([wc,Kc]);function CC(n,t=[]){if(n&&!rt(n)&&n.type===14){const e=n.callee;if(!rt(e)&&k7.has(e))return CC(n.arguments[0],t.concat(n))}return[n,t]}function zu(n,t,e){let i,r=n.type===13?n.props:n.arguments[2],s=[],o;if(r&&!rt(r)&&r.type===14){const a=CC(r);r=a[0],s=a[1],o=s[s.length-1]}if(r==null||rt(r))i=Fi([t]);else if(r.type===14){const a=r.arguments[0];!rt(a)&&a.type===15?a.properties.unshift(t):r.callee===s_?i=Zt(e.helper(Ru),[Fi([t]),r]):r.arguments.unshift(Fi([t])),!i&&(i=r)}else if(r.type===15){let a=!1;if(t.key.type===4){const c=t.key.content;a=r.properties.some(d=>d.key.type===4&&d.key.content===c)}a||r.properties.unshift(t),i=r}else i=Zt(e.helper(Ru),[Fi([t]),r]),o&&o.callee===Kc&&(o=s[s.length-2]);n.type===13?o?o.arguments[0]=i:n.props=i:o?o.arguments[0]=i:n.arguments[2]=i}function Cc(n,t){return`_${t}_${n.replace(/[^\w]/g,(e,i)=>e==="-"?"_":n.charCodeAt(i).toString())}`}function C7(n){return n.type===14&&n.callee===a_?n.arguments[1].returns:n}function c_(n,{helper:t,removeHelper:e,inSSR:i}){n.isBlock||(n.isBlock=!0,e(rl(i,n.isComponent)),t(Wo),t(sl(i,n.isComponent)))}function gv(n,t){const e=t.options?t.options.compatConfig:t.compatConfig,i=e&&e[n];return n==="MODE"?i||3:i}function Ro(n,t){const e=gv("MODE",t),i=gv(n,t);return e===3?i===!0:i!==!1}function Sc(n,t,e,...i){return Ro(n,t)}const S7=/&(gt|lt|amp|apos|quot);/g,T7={gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},_v={delimiters:["{{","}}"],getNamespace:()=>0,getTextMode:()=>0,isVoidTag:uu,isPreTag:uu,isCustomElement:uu,decodeEntities:n=>n.replace(S7,(t,e)=>T7[e]),onError:Gg,onWarn:hC,comments:!1};function E7(n,t={}){const e=O7(n,t),i=vi(e);return h7(d_(e,0,[]),Vi(e,i))}function O7(n,t){const e=Tt({},_v);let i;for(i in t)e[i]=t[i]===void 0?_v[i]:t[i];return{options:e,column:1,line:1,offset:0,originalSource:n,source:n,inPre:!1,inVPre:!1,onWarn:e.onWarn}}function d_(n,t,e){const i=Kf(e),r=i?i.ns:0,s=[];for(;!L7(n,t,e);){const a=n.source;let c;if(t===0||t===1){if(!n.inVPre&&Dn(a,n.options.delimiters[0]))c=R7(n,t);else if(t===0&&a[0]==="<")if(a.length===1)Dt(n,5,1);else if(a[1]==="!")Dn(a,"=0;){const d=o[a];d&&d.type===9&&(c+=d.branches.length)}return()=>{if(s)i.codegenNode=wv(r,c,e);else{const d=lN(i.codegenNode);d.alternate=wv(r,c+i.branches.length-1,e)}}}));function aN(n,t,e,i){if(t.name!=="else"&&(!t.exp||!t.exp.content.trim())){const r=t.exp?t.exp.loc:n.loc;e.onError(zt(28,t.loc)),t.exp=ut("true",!1,r)}if(t.name==="if"){const r=xv(n,t),s={type:9,loc:n.loc,branches:[r]};if(e.replaceNode(s),i)return i(s,r,!0)}else{const r=e.parent.children;let s=r.indexOf(n);for(;s-->=-1;){const o=r[s];if(o&&o.type===2&&!o.content.trim().length){e.removeNode(o);continue}if(o&&o.type===9){t.name==="else-if"&&o.branches[o.branches.length-1].condition===void 0&&e.onError(zt(30,n.loc)),e.removeNode();const a=xv(n,t);o.branches.push(a);const c=i&&i(o,a,!1);Gf(a,e),c&&c(),e.currentNode=null}else e.onError(zt(30,n.loc));break}}}function xv(n,t){const e=n.tagType===3;return{type:10,loc:n.loc,condition:t.name==="else"?void 0:t.exp,children:e&&!Li(n,"for")?n.children:[n],userKey:Wf(n,"key"),isTemplateIf:e}}function wv(n,t,e){return n.condition?L0(n.condition,kv(n,t,e),Zt(e.helper(Wc),['""',"true"])):kv(n,t,e)}function kv(n,t,e){const{helper:i}=e,r=Jt("key",ut(`${t}`,!1,ki,2)),{children:s}=n,o=s[0];if(s.length!==1||o.type!==1)if(s.length===1&&o.type===11){const c=o.codegenNode;return zu(c,r,e),c}else{let c=64;return kc(e,i(xc),Fi([r]),s,c+"",void 0,void 0,!0,!1,!1,n.loc)}else{const c=o.codegenNode,d=C7(c);return d.type===13&&c_(d,e),zu(d,r,e),c}}function lN(n){for(;;)if(n.type===19)if(n.alternate.type===19)n=n.alternate;else return n;else n.type===20&&(n=n.value)}const cN=MC("for",(n,t,e)=>{const{helper:i,removeHelper:r}=e;return dN(n,t,e,s=>{const o=Zt(i(n_),[s.source]),a=qu(n),c=Li(n,"memo"),d=Wf(n,"key"),f=d&&(d.type===6?ut(d.value.content,!0):d.exp),h=d?Jt("key",f):null,g=s.source.type===4&&s.source.constType>0,m=g?64:d?128:256;return s.codegenNode=kc(e,i(xc),void 0,o,m+"",void 0,void 0,!0,!g,!1,n.loc),()=>{let y;const{children:k}=s,C=k.length!==1||k[0].type!==1,T=Hu(n)?n:a&&n.children.length===1&&Hu(n.children[0])?n.children[0]:null;if(T?(y=T.codegenNode,a&&h&&zu(y,h,e)):C?y=kc(e,i(xc),h?Fi([h]):void 0,n.children,"64",void 0,void 0,!0,void 0,!1):(y=k[0].codegenNode,a&&h&&zu(y,h,e),y.isBlock!==!g&&(y.isBlock?(r(Wo),r(sl(e.inSSR,y.isComponent))):r(rl(e.inSSR,y.isComponent))),y.isBlock=!g,y.isBlock?(i(Wo),i(sl(e.inSSR,y.isComponent))):i(rl(e.inSSR,y.isComponent))),c){const w=il(H0(s.parseResult,[ut("_cached")]));w.body=m7([sr(["const _memo = (",c.exp,")"]),sr(["if (_cached",...f?[" && _cached.key === ",f]:[],` && ${e.helperString(vC)}(_cached, _memo)) return _cached`]),sr(["const _item = ",y]),ut("_item.memo = _memo"),ut("return _item")]),o.arguments.push(w,ut("_cache"),ut(String(e.cached++)))}else o.arguments.push(il(H0(s.parseResult),y,!0))}})});function dN(n,t,e,i){if(!t.exp){e.onError(zt(31,t.loc));return}const r=RC(t.exp);if(!r){e.onError(zt(32,t.loc));return}const{addIdentifiers:s,removeIdentifiers:o,scopes:a}=e,{source:c,value:d,key:f,index:h}=r,g={type:11,loc:t.loc,source:c,valueAlias:d,keyAlias:f,objectIndexAlias:h,parseResult:r,children:qu(n)?n.children:[n]};e.replaceNode(g),a.vFor++;const m=i&&i(g);return()=>{a.vFor--,m&&m()}}const uN=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Cv=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,fN=/^\(|\)$/g;function RC(n,t){const e=n.loc,i=n.content,r=i.match(uN);if(!r)return;const[,s,o]=r,a={source:eu(e,o.trim(),i.indexOf(o,s.length)),value:void 0,key:void 0,index:void 0};let c=s.trim().replace(fN,"").trim();const d=s.indexOf(c),f=c.match(Cv);if(f){c=c.replace(Cv,"").trim();const h=f[1].trim();let g;if(h&&(g=i.indexOf(h,d+c.length),a.key=eu(e,h,g)),f[2]){const m=f[2].trim();m&&(a.index=eu(e,m,i.indexOf(m,a.key?g+h.length:d+c.length)))}}return c&&(a.value=eu(e,c,d)),a}function eu(n,t,e){return ut(t,!1,kC(n,e,t.length))}function H0({value:n,key:t,index:e},i=[]){return hN([n,t,e,...i])}function hN(n){let t=n.length;for(;t--&&!n[t];);return n.slice(0,t+1).map((e,i)=>e||ut("_".repeat(i+1),!1))}const Sv=ut("undefined",!1),pN=(n,t)=>{if(n.type===1&&(n.tagType===1||n.tagType===3)){const e=Li(n,"slot");if(e)return e.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},mN=(n,t,e)=>il(n,t,!1,!0,t.length?t[0].loc:e);function gN(n,t,e=mN){t.helper(o_);const{children:i,loc:r}=n,s=[],o=[];let a=t.scopes.vSlot>0||t.scopes.vFor>0;const c=Li(n,"slot",!0);if(c){const{arg:k,exp:C}=c;k&&!bi(k)&&(a=!0),s.push(Jt(k||ut("default",!0),e(C,i,r)))}let d=!1,f=!1;const h=[],g=new Set;for(let k=0;k{const w=e(C,T,r);return t.compatConfig&&(w.isNonScopedSlot=!0),Jt("default",w)};d?h.length&&h.some(C=>BC(C))&&(f?t.onError(zt(39,h[0].loc)):s.push(k(void 0,h))):s.push(k(void 0,i))}const m=a?2:mu(n.children)?3:1;let y=Fi(s.concat(Jt("_",ut(m+"",!1))),r);return o.length&&(y=Zt(t.helper(bC),[y,Gc(o)])),{slots:y,hasDynamicSlots:a}}function tu(n,t){return Fi([Jt("name",n),Jt("fn",t)])}function mu(n){for(let t=0;tfunction(){if(n=t.currentNode,!(n.type===1&&(n.tagType===0||n.tagType===1)))return;const{tag:i,props:r}=n,s=n.tagType===1;let o=s?yN(n,t):`"${i}"`;const a=Ut(o)&&o.callee===Iu;let c,d,f,h=0,g,m,y,k=a||o===ec||o===Yg||!s&&(i==="svg"||i==="foreignObject");if(r.length>0){const C=FC(n,t,void 0,s,a);c=C.props,h=C.patchFlag,m=C.dynamicPropNames;const T=C.directives;y=T&&T.length?Gc(T.map(w=>vN(w,t))):void 0,C.shouldUseBlock&&(k=!0)}if(n.children.length>0)if(o===Nu&&(k=!0,h|=1024),s&&o!==ec&&o!==Nu){const{slots:T,hasDynamicSlots:w}=gN(n,t);d=T,w&&(h|=1024)}else if(n.children.length===1&&o!==ec){const T=n.children[0],w=T.type,O=w===5||w===8;O&&_i(T,t)===0&&(h|=1),O||w===2?d=T:d=n.children}else d=n.children;h!==0&&(f=String(h),m&&m.length&&(g=xN(m))),n.codegenNode=kc(t,o,c,d,f,g,y,!!k,!1,s,n.loc)};function yN(n,t,e=!1){let{tag:i}=n;const r=z0(i),s=Wf(n,"is");if(s)if(r||Ro("COMPILER_IS_ON_ELEMENT",t)){const c=s.type===6?s.value&&ut(s.value.content,!0):s.exp;if(c)return Zt(t.helper(Iu),[c])}else s.type===6&&s.value.content.startsWith("vue:")&&(i=s.value.content.slice(4));const o=!r&&Li(n,"is");if(o&&o.exp)return Zt(t.helper(Iu),[o.exp]);const a=xC(i)||t.isBuiltInComponent(i);return a?(e||t.helper(a),a):(t.helper(Qg),t.components.add(i),Cc(i,"component"))}function FC(n,t,e=n.props,i,r,s=!1){const{tag:o,loc:a,children:c}=n;let d=[];const f=[],h=[],g=c.length>0;let m=!1,y=0,k=!1,C=!1,T=!1,w=!1,O=!1,x=!1;const L=[],M=({key:D,value:F})=>{if(bi(D)){const I=D.content,q=Xo(I);if(q&&(!i||r)&&I.toLowerCase()!=="onclick"&&I!=="onUpdate:modelValue"&&!Ao(I)&&(w=!0),q&&Ao(I)&&(x=!0),F.type===20||(F.type===4||F.type===8)&&_i(F,t)>0)return;I==="ref"?k=!0:I==="class"?C=!0:I==="style"?T=!0:I!=="key"&&!L.includes(I)&&L.push(I),i&&(I==="class"||I==="style")&&!L.includes(I)&&L.push(I)}else O=!0};for(let D=0;D0&&d.push(Jt(ut("ref_for",!0),ut("true")))),q==="is"&&(z0(o)||H&&H.content.startsWith("vue:")||Ro("COMPILER_IS_ON_ELEMENT",t)))continue;d.push(Jt(ut(q,!0,kC(I,0,q.length)),ut(H?H.content:"",W,H?H.loc:I)))}else{const{name:I,arg:q,exp:H,loc:W}=F,Y=I==="bind",_e=I==="on";if(I==="slot"){i||t.onError(zt(40,W));continue}if(I==="once"||I==="memo"||I==="is"||Y&&So(q,"is")&&(z0(o)||Ro("COMPILER_IS_ON_ELEMENT",t))||_e&&s)continue;if((Y&&So(q,"key")||_e&&g&&So(q,"vue:before-update"))&&(m=!0),Y&&So(q,"ref")&&t.scopes.vFor>0&&d.push(Jt(ut("ref_for",!0),ut("true"))),!q&&(Y||_e)){if(O=!0,H)if(d.length&&(f.push(Fi(Lp(d),a)),d=[]),Y){if(Ro("COMPILER_V_BIND_OBJECT_ORDER",t)){f.unshift(H);continue}f.push(H)}else f.push({type:14,loc:W,callee:t.helper(s_),arguments:[H]});else t.onError(zt(Y?34:35,W));continue}const he=t.directiveTransforms[I];if(he){const{props:ye,needRuntime:pe}=he(F,n,t);!s&&ye.forEach(M),d.push(...ye),pe&&(h.push(F),qs(pe)&&LC.set(F,pe))}else dD(I)||(h.push(F),g&&(m=!0))}}let B;if(f.length?(d.length&&f.push(Fi(Lp(d),a)),f.length>1?B=Zt(t.helper(Ru),f,a):B=f[0]):d.length&&(B=Fi(Lp(d),a)),O?y|=16:(C&&!i&&(y|=2),T&&!i&&(y|=4),L.length&&(y|=8),w&&(y|=32)),!m&&(y===0||y===32)&&(k||x||h.length>0)&&(y|=512),!t.inSSR&&B)switch(B.type){case 15:let D=-1,F=-1,I=!1;for(let W=0;WJt(o,s)),r))}return Gc(e,n.loc)}function xN(n){let t="[";for(let e=0,i=n.length;e{const t=Object.create(null);return e=>t[e]||(t[e]=n(e))},kN=/-(\w)/g,Tv=wN(n=>n.replace(kN,(t,e)=>e?e.toUpperCase():"")),CN=(n,t)=>{if(Hu(n)){const{children:e,loc:i}=n,{slotName:r,slotProps:s}=SN(n,t),o=[t.prefixIdentifiers?"_ctx.$slots":"$slots",r,"{}","undefined","true"];let a=2;s&&(o[2]=s,a=3),e.length&&(o[3]=il([],e,!1,!1,i),a=4),t.scopeId&&!t.slotted&&(a=5),o.splice(a),n.codegenNode=Zt(t.helper(yC),o,i)}};function SN(n,t){let e='"default"',i;const r=[];for(let s=0;s0){const{props:s,directives:o}=FC(n,t,r,!1,!1);i=s,o.length&&t.onError(zt(36,o[0].loc))}return{slotName:e,slotProps:i}}const TN=/^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/,qC=(n,t,e,i)=>{const{loc:r,modifiers:s,arg:o}=n;!n.exp&&!s.length&&e.onError(zt(35,r));let a;if(o.type===4)if(o.isStatic){let h=o.content;h.startsWith("vue:")&&(h=`vnode-${h.slice(4)}`),a=ut(Ua(Nn(h)),!0,o.loc)}else a=sr([`${e.helperString(B0)}(`,o,")"]);else a=o,a.children.unshift(`${e.helperString(B0)}(`),a.children.push(")");let c=n.exp;c&&!c.content.trim()&&(c=void 0);let d=e.cacheHandlers&&!c&&!e.inVOnce;if(c){const h=wC(c.content),g=!(h||TN.test(c.content)),m=c.content.includes(";");(g||d&&h)&&(c=sr([`${g?"$event":"(...args)"} => ${m?"{":"("}`,c,m?"}":")"]))}let f={props:[Jt(a,c||ut("() => {}",!1,r))]};return i&&(f=i(f)),d&&(f.props[0].value=e.cache(f.props[0].value)),f.props.forEach(h=>h.key.isHandlerKey=!0),f},EN=(n,t,e)=>{const{exp:i,modifiers:r,loc:s}=n,o=n.arg;return o.type!==4?(o.children.unshift("("),o.children.push(') || ""')):o.isStatic||(o.content=`${o.content} || ""`),r.includes("camel")&&(o.type===4?o.isStatic?o.content=Nn(o.content):o.content=`${e.helperString(R0)}(${o.content})`:(o.children.unshift(`${e.helperString(R0)}(`),o.children.push(")"))),e.inSSR||(r.includes("prop")&&Ev(o,"."),r.includes("attr")&&Ev(o,"^")),!i||i.type===4&&!i.content.trim()?(e.onError(zt(34,s)),{props:[Jt(o,ut("",!0,s))]}):{props:[Jt(o,i)]}},Ev=(n,t)=>{n.type===4?n.isStatic?n.content=t+n.content:n.content=`\`${t}\${${n.content}}\``:(n.children.unshift(`'${t}' + (`),n.children.push(")"))},ON=(n,t)=>{if(n.type===0||n.type===1||n.type===11||n.type===10)return()=>{const e=n.children;let i,r=!1;for(let s=0;ss.type===7&&!t.directiveTransforms[s.name])&&n.tag!=="template")))for(let s=0;s{if(n.type===1&&Li(n,"once",!0))return Ov.has(n)||t.inVOnce?void 0:(Ov.add(n),t.inVOnce=!0,t.helper(Bu),()=>{t.inVOnce=!1;const e=t.currentNode;e.codegenNode&&(e.codegenNode=t.cache(e.codegenNode,!0))})},HC=(n,t,e)=>{const{exp:i,arg:r}=n;if(!i)return e.onError(zt(41,n.loc)),Fp();const s=i.loc.source,o=i.type===4?i.content:s;e.bindingMetadata[s];const a=!1;if(!o.trim()||!wC(o)&&!a)return e.onError(zt(42,i.loc)),Fp();const c=r||ut("modelValue",!0),d=r?bi(r)?`onUpdate:${r.content}`:sr(['"onUpdate:" + ',r]):"onUpdate:modelValue";let f;const h=e.isTS?"($event: any)":"$event";f=sr([`${h} => ((`,i,") = $event)"]);const g=[Jt(c,n.exp),Jt(d,f)];if(n.modifiers.length&&t.tagType===1){const m=n.modifiers.map(k=>(l_(k)?k:JSON.stringify(k))+": true").join(", "),y=r?bi(r)?`${r.content}Modifiers`:sr([r,' + "Modifiers"']):"modelModifiers";g.push(Jt(y,ut(`{ ${m} }`,!1,n.loc,2)))}return Fp(g)};function Fp(n=[]){return{props:n}}const DN=/[\w).+\-_$\]]/,MN=(n,t)=>{Ro("COMPILER_FILTER",t)&&(n.type===5&&Uu(n.content,t),n.type===1&&n.props.forEach(e=>{e.type===7&&e.name!=="for"&&e.exp&&Uu(e.exp,t)}))};function Uu(n,t){if(n.type===4)Av(n,t);else for(let e=0;e=0&&(w=e.charAt(T),w===" ");T--);(!w||!DN.test(w))&&(o=!0)}}y===void 0?y=e.slice(0,m).trim():f!==0&&C();function C(){k.push(e.slice(f,m).trim()),f=m+1}if(k.length){for(m=0;m{if(n.type===1){const e=Li(n,"memo");return!e||Dv.has(n)?void 0:(Dv.add(n),()=>{const i=n.codegenNode||t.currentNode.codegenNode;i&&i.type===13&&(n.tagType!==1&&c_(i,t),n.codegenNode=Zt(t.helper(a_),[e.exp,il(void 0,i),"_cache",String(t.cached++)]))})}};function IN(n){return[[AN,oN,NN,cN,MN,CN,_N,pN,ON],{on:qC,bind:EN,model:HC}]}function RN(n,t={}){const e=t.onError||Gg,i=t.mode==="module";t.prefixIdentifiers===!0?e(zt(46)):i&&e(zt(47));const r=!1;t.cacheHandlers&&e(zt(48)),t.scopeId&&!i&&e(zt(49));const s=rt(n)?E7(n,t):n,[o,a]=IN();return z7(s,Tt({},t,{prefixIdentifiers:r,nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:Tt({},a,t.directiveTransforms||{})})),W7(s,Tt({},t,{prefixIdentifiers:r}))}const BN=()=>({props:[]}),zC=Symbol(""),UC=Symbol(""),VC=Symbol(""),jC=Symbol(""),U0=Symbol(""),WC=Symbol(""),KC=Symbol(""),GC=Symbol(""),YC=Symbol(""),JC=Symbol("");f7({[zC]:"vModelRadio",[UC]:"vModelCheckbox",[VC]:"vModelText",[jC]:"vModelSelect",[U0]:"vModelDynamic",[WC]:"withModifiers",[KC]:"withKeys",[GC]:"vShow",[YC]:"Transition",[JC]:"TransitionGroup"});let xa;function LN(n,t=!1){return xa||(xa=document.createElement("div")),t?(xa.innerHTML=`
`,xa.children[0].getAttribute("foo")):(xa.innerHTML=n,xa.textContent)}const FN=ri("style,iframe,script,noscript",!0),qN={isVoidTag:sD,isNativeTag:n=>iD(n)||rD(n),isPreTag:n=>n==="pre",decodeEntities:LN,isBuiltInComponent:n=>{if(Ia(n,"Transition"))return YC;if(Ia(n,"TransitionGroup"))return JC},getNamespace(n,t){let e=t?t.ns:0;if(t&&e===2)if(t.tag==="annotation-xml"){if(n==="svg")return 1;t.props.some(i=>i.type===6&&i.name==="encoding"&&i.value!=null&&(i.value.content==="text/html"||i.value.content==="application/xhtml+xml"))&&(e=0)}else/^m(?:[ions]|text)$/.test(t.tag)&&n!=="mglyph"&&n!=="malignmark"&&(e=0);else t&&e===1&&(t.tag==="foreignObject"||t.tag==="desc"||t.tag==="title")&&(e=0);if(e===0){if(n==="svg")return 1;if(n==="math")return 2}return e},getTextMode({tag:n,ns:t}){if(t===0){if(n==="textarea"||n==="title")return 1;if(FN(n))return 2}return 0}},HN=n=>{n.type===1&&n.props.forEach((t,e)=>{t.type===6&&t.name==="style"&&t.value&&(n.props[e]={type:7,name:"bind",arg:ut("style",!0,t.loc),exp:zN(t.value.content,t.loc),modifiers:[],loc:t.loc})})},zN=(n,t)=>{const e=Sw(n);return ut(JSON.stringify(e),!1,t,3)};function Xr(n,t){return zt(n,t)}const UN=(n,t,e)=>{const{exp:i,loc:r}=n;return i||e.onError(Xr(50,r)),t.children.length&&(e.onError(Xr(51,r)),t.children.length=0),{props:[Jt(ut("innerHTML",!0,r),i||ut("",!0))]}},VN=(n,t,e)=>{const{exp:i,loc:r}=n;return i||e.onError(Xr(52,r)),t.children.length&&(e.onError(Xr(53,r)),t.children.length=0),{props:[Jt(ut("textContent",!0),i?_i(i,e)>0?i:Zt(e.helperString(jf),[i],r):ut("",!0))]}},jN=(n,t,e)=>{const i=HC(n,t,e);if(!i.props.length||t.tagType===1)return i;n.arg&&e.onError(Xr(55,n.arg.loc));const{tag:r}=t,s=e.isCustomElement(r);if(r==="input"||r==="textarea"||r==="select"||s){let o=VC,a=!1;if(r==="input"||s){const c=Wf(t,"type");if(c){if(c.type===7)o=U0;else if(c.value)switch(c.value.content){case"radio":o=zC;break;case"checkbox":o=UC;break;case"file":a=!0,e.onError(Xr(56,n.loc));break}}else x7(t)&&(o=U0)}else r==="select"&&(o=jC);a||(i.needRuntime=e.helper(o))}else e.onError(Xr(54,n.loc));return i.props=i.props.filter(o=>!(o.key.type===4&&o.key.content==="modelValue")),i},WN=ri("passive,once,capture"),KN=ri("stop,prevent,self,ctrl,shift,alt,meta,exact,middle"),GN=ri("left,right"),ZC=ri("onkeyup,onkeydown,onkeypress",!0),YN=(n,t,e,i)=>{const r=[],s=[],o=[];for(let a=0;abi(n)&&n.content.toLowerCase()==="onclick"?ut(t,!0):n.type!==4?sr(["(",n,`) === "onClick" ? "${t}" : (`,n,")"]):n,JN=(n,t,e)=>qC(n,t,e,i=>{const{modifiers:r}=n;if(!r.length)return i;let{key:s,value:o}=i.props[0];const{keyModifiers:a,nonKeyModifiers:c,eventOptionModifiers:d}=YN(s,r,e,n.loc);if(c.includes("right")&&(s=Mv(s,"onContextmenu")),c.includes("middle")&&(s=Mv(s,"onMouseup")),c.length&&(o=Zt(e.helper(WC),[o,JSON.stringify(c)])),a.length&&(!bi(s)||ZC(s.content))&&(o=Zt(e.helper(KC),[o,JSON.stringify(a)])),d.length){const f=d.map($o).join("");s=bi(s)?ut(`${s.content}${f}`,!0):sr(["(",s,`) + "${f}"`])}return{props:[Jt(s,o)]}}),ZN=(n,t,e)=>{const{exp:i,loc:r}=n;return i||e.onError(Xr(58,r)),{props:[],needRuntime:e.helper(GC)}},XN=(n,t)=>{n.type===1&&n.tagType===0&&(n.tag==="script"||n.tag==="style")&&(t.onError(Xr(60,n.loc)),t.removeNode())},QN=[HN],$N={cloak:BN,html:UN,text:VN,model:jN,on:JN,show:ZN};function eI(n,t={}){return RN(n,Tt({},qN,t,{nodeTransforms:[XN,...QN,...t.nodeTransforms||[]],directiveTransforms:Tt({},$N,t.directiveTransforms||{}),transformHoist:null}))}const Pv=Object.create(null);function tI(n,t){if(!rt(n))if(n.nodeType)n=n.innerHTML;else return Vn;const e=n,i=Pv[e];if(i)return i;if(n[0]==="#"){const o=document.querySelector(n);n=o?o.innerHTML:""}const{code:r}=eI(n,Tt({hoistStatic:!0,onError:void 0,onWarn:Vn},t)),s=new Function("Vue",r)(o7);return s._rc=!0,Pv[e]=s}zk(tI);const Vu=[{name:"address-book",code:"f2b9",type:"regular"},{name:"address-card",code:"f2bb",type:"regular"},{name:"angry",code:"f556",type:"regular"},{name:"arrow-alt-circle-down",code:"f358",type:"regular"},{name:"arrow-alt-circle-left",code:"f359",type:"regular"},{name:"arrow-alt-circle-right",code:"f35a",type:"regular"},{name:"arrow-alt-circle-up",code:"f35b",type:"regular"},{name:"bell",code:"f0f3",type:"regular"},{name:"bell-slash",code:"f1f6",type:"regular"},{name:"bookmark",code:"f02e",type:"regular"},{name:"building",code:"f1ad",type:"regular"},{name:"calendar",code:"f133",type:"regular"},{name:"calendar-alt",code:"f073",type:"regular"},{name:"calendar-check",code:"f274",type:"regular"},{name:"calendar-minus",code:"f272",type:"regular"},{name:"calendar-plus",code:"f271",type:"regular"},{name:"calendar-times",code:"f273",type:"regular"},{name:"caret-square-down",code:"f150",type:"regular"},{name:"caret-square-left",code:"f191",type:"regular"},{name:"caret-square-right",code:"f152",type:"regular"},{name:"caret-square-up",code:"f151",type:"regular"},{name:"chart-bar",code:"f080",type:"regular"},{name:"check-circle",code:"f058",type:"regular"},{name:"check-square",code:"f14a",type:"regular"},{name:"circle",code:"f111",type:"regular"},{name:"clipboard",code:"f328",type:"regular"},{name:"clock",code:"f017",type:"regular"},{name:"clone",code:"f24d",type:"regular"},{name:"closed-captioning",code:"f20a",type:"regular"},{name:"comment",code:"f075",type:"regular"},{name:"comment-alt",code:"f27a",type:"regular"},{name:"comment-dots",code:"f4ad",type:"regular"},{name:"comments",code:"f086",type:"regular"},{name:"compass",code:"f14e",type:"regular"},{name:"copy",code:"f0c5",type:"regular"},{name:"copyright",code:"f1f9",type:"regular"},{name:"credit-card",code:"f09d",type:"regular"},{name:"dizzy",code:"f567",type:"regular"},{name:"dot-circle",code:"f192",type:"regular"},{name:"edit",code:"f044",type:"regular"},{name:"envelope",code:"f0e0",type:"regular"},{name:"envelope-open",code:"f2b6",type:"regular"},{name:"eye",code:"f06e",type:"regular"},{name:"eye-slash",code:"f070",type:"regular"},{name:"file",code:"f15b",type:"regular"},{name:"file-alt",code:"f15c",type:"regular"},{name:"file-archive",code:"f1c6",type:"regular"},{name:"file-audio",code:"f1c7",type:"regular"},{name:"file-code",code:"f1c9",type:"regular"},{name:"file-excel",code:"f1c3",type:"regular"},{name:"file-image",code:"f1c5",type:"regular"},{name:"file-pdf",code:"f1c1",type:"regular"},{name:"file-powerpoint",code:"f1c4",type:"regular"},{name:"file-video",code:"f1c8",type:"regular"},{name:"file-word",code:"f1c2",type:"regular"},{name:"flag",code:"f024",type:"regular"},{name:"flushed",code:"f579",type:"regular"},{name:"folder",code:"f07b",type:"regular"},{name:"folder-open",code:"f07c",type:"regular"},{name:"frown",code:"f119",type:"regular"},{name:"frown-open",code:"f57a",type:"regular"},{name:"futbol",code:"f1e3",type:"regular"},{name:"gem",code:"f3a5",type:"regular"},{name:"grimace",code:"f57f",type:"regular"},{name:"grin",code:"f580",type:"regular"},{name:"grin-alt",code:"f581",type:"regular"},{name:"grin-beam",code:"f582",type:"regular"},{name:"grin-beam-sweat",code:"f583",type:"regular"},{name:"grin-hearts",code:"f584",type:"regular"},{name:"grin-squint",code:"f585",type:"regular"},{name:"grin-squint-tears",code:"f586",type:"regular"},{name:"grin-stars",code:"f587",type:"regular"},{name:"grin-tears",code:"f588",type:"regular"},{name:"grin-tongue",code:"f589",type:"regular"},{name:"grin-tongue-squint",code:"f58a",type:"regular"},{name:"grin-tongue-wink",code:"f58b",type:"regular"},{name:"grin-wink",code:"f58c",type:"regular"},{name:"hand-lizard",code:"f258",type:"regular"},{name:"hand-paper",code:"f256",type:"regular"},{name:"hand-peace",code:"f25b",type:"regular"},{name:"hand-point-down",code:"f0a7",type:"regular"},{name:"hand-point-left",code:"f0a5",type:"regular"},{name:"hand-point-right",code:"f0a4",type:"regular"},{name:"hand-point-up",code:"f0a6",type:"regular"},{name:"hand-pointer",code:"f25a",type:"regular"},{name:"hand-rock",code:"f255",type:"regular"},{name:"hand-scissors",code:"f257",type:"regular"},{name:"hand-spock",code:"f259",type:"regular"},{name:"handshake",code:"f2b5",type:"regular"},{name:"hdd",code:"f0a0",type:"regular"},{name:"heart",code:"f004",type:"regular"},{name:"hospital",code:"f0f8",type:"regular"},{name:"hourglass",code:"f254",type:"regular"},{name:"id-badge",code:"f2c1",type:"regular"},{name:"id-card",code:"f2c2",type:"regular"},{name:"image",code:"f03e",type:"regular"},{name:"images",code:"f302",type:"regular"},{name:"keyboard",code:"f11c",type:"regular"},{name:"kiss",code:"f596",type:"regular"},{name:"kiss-beam",code:"f597",type:"regular"},{name:"kiss-wink-heart",code:"f598",type:"regular"},{name:"laugh",code:"f599",type:"regular"},{name:"laugh-beam",code:"f59a",type:"regular"},{name:"laugh-squint",code:"f59b",type:"regular"},{name:"laugh-wink",code:"f59c",type:"regular"},{name:"lemon",code:"f094",type:"regular"},{name:"life-ring",code:"f1cd",type:"regular"},{name:"lightbulb",code:"f0eb",type:"regular"},{name:"list-alt",code:"f022",type:"regular"},{name:"map",code:"f279",type:"regular"},{name:"meh",code:"f11a",type:"regular"},{name:"meh-blank",code:"f5a4",type:"regular"},{name:"meh-rolling-eyes",code:"f5a5",type:"regular"},{name:"minus-square",code:"f146",type:"regular"},{name:"money-bill-alt",code:"f3d1",type:"regular"},{name:"moon",code:"f186",type:"regular"},{name:"newspaper",code:"f1ea",type:"regular"},{name:"object-group",code:"f247",type:"regular"},{name:"object-ungroup",code:"f248",type:"regular"},{name:"paper-plane",code:"f1d8",type:"regular"},{name:"pause-circle",code:"f28b",type:"regular"},{name:"play-circle",code:"f144",type:"regular"},{name:"plus-square",code:"f0fe",type:"regular"},{name:"question-circle",code:"f059",type:"regular"},{name:"registered",code:"f25d",type:"regular"},{name:"sad-cry",code:"f5b3",type:"regular"},{name:"sad-tear",code:"f5b4",type:"regular"},{name:"save",code:"f0c7",type:"regular"},{name:"share-square",code:"f14d",type:"regular"},{name:"smile",code:"f118",type:"regular"},{name:"smile-beam",code:"f5b8",type:"regular"},{name:"smile-wink",code:"f4da",type:"regular"},{name:"snowflake",code:"f2dc",type:"regular"},{name:"square",code:"f0c8",type:"regular"},{name:"star",code:"f005",type:"regular"},{name:"star-half",code:"f089",type:"regular"},{name:"sticky-note",code:"f249",type:"regular"},{name:"stop-circle",code:"f28d",type:"regular"},{name:"sun",code:"f185",type:"regular"},{name:"surprise",code:"f5c2",type:"regular"},{name:"thumbs-down",code:"f165",type:"regular"},{name:"thumbs-up",code:"f164",type:"regular"},{name:"times-circle",code:"f057",type:"regular"},{name:"tired",code:"f5c8",type:"regular"},{name:"trash-alt",code:"f2ed",type:"regular"},{name:"user",code:"f007",type:"regular"},{name:"user-circle",code:"f2bd",type:"regular"},{name:"window-close",code:"f410",type:"regular"},{name:"window-maximize",code:"f2d0",type:"regular"},{name:"window-minimize",code:"f2d1",type:"regular"},{name:"window-restore",code:"f2d2",type:"regular"},{name:"500px",code:"f26e",type:"brand"},{name:"accessible-icon",code:"f368",type:"brand"},{name:"accusoft",code:"f369",type:"brand"},{name:"acquisitions-incorporated",code:"f6af",type:"brand"},{name:"adn",code:"f170",type:"brand"},{name:"adversal",code:"f36a",type:"brand"},{name:"affiliatetheme",code:"f36b",type:"brand"},{name:"airbnb",code:"f834",type:"brand"},{name:"algolia",code:"f36c",type:"brand"},{name:"alipay",code:"f642",type:"brand"},{name:"amazon",code:"f270",type:"brand"},{name:"amazon-pay",code:"f42c",type:"brand"},{name:"amilia",code:"f36d",type:"brand"},{name:"android",code:"f17b",type:"brand"},{name:"angellist",code:"f209",type:"brand"},{name:"angrycreative",code:"f36e",type:"brand"},{name:"angular",code:"f420",type:"brand"},{name:"app-store",code:"f36f",type:"brand"},{name:"app-store-ios",code:"f370",type:"brand"},{name:"apper",code:"f371",type:"brand"},{name:"apple",code:"f179",type:"brand"},{name:"apple-pay",code:"f415",type:"brand"},{name:"artstation",code:"f77a",type:"brand"},{name:"asymmetrik",code:"f372",type:"brand"},{name:"atlassian",code:"f77b",type:"brand"},{name:"audible",code:"f373",type:"brand"},{name:"autoprefixer",code:"f41c",type:"brand"},{name:"avianex",code:"f374",type:"brand"},{name:"aviato",code:"f421",type:"brand"},{name:"aws",code:"f375",type:"brand"},{name:"bandcamp",code:"f2d5",type:"brand"},{name:"battle-net",code:"f835",type:"brand"},{name:"behance",code:"f1b4",type:"brand"},{name:"behance-square",code:"f1b5",type:"brand"},{name:"bimobject",code:"f378",type:"brand"},{name:"bitbucket",code:"f171",type:"brand"},{name:"bitcoin",code:"f379",type:"brand"},{name:"bity",code:"f37a",type:"brand"},{name:"black-tie",code:"f27e",type:"brand"},{name:"blackberry",code:"f37b",type:"brand"},{name:"blogger",code:"f37c",type:"brand"},{name:"blogger-b",code:"f37d",type:"brand"},{name:"bluetooth",code:"f293",type:"brand"},{name:"bluetooth-b",code:"f294",type:"brand"},{name:"bootstrap",code:"f836",type:"brand"},{name:"btc",code:"f15a",type:"brand"},{name:"buffer",code:"f837",type:"brand"},{name:"buromobelexperte",code:"f37f",type:"brand"},{name:"buy-n-large",code:"f8a6",type:"brand"},{name:"buysellads",code:"f20d",type:"brand"},{name:"canadian-maple-leaf",code:"f785",type:"brand"},{name:"cc-amazon-pay",code:"f42d",type:"brand"},{name:"cc-amex",code:"f1f3",type:"brand"},{name:"cc-apple-pay",code:"f416",type:"brand"},{name:"cc-diners-club",code:"f24c",type:"brand"},{name:"cc-discover",code:"f1f2",type:"brand"},{name:"cc-jcb",code:"f24b",type:"brand"},{name:"cc-mastercard",code:"f1f1",type:"brand"},{name:"cc-paypal",code:"f1f4",type:"brand"},{name:"cc-stripe",code:"f1f5",type:"brand"},{name:"cc-visa",code:"f1f0",type:"brand"},{name:"centercode",code:"f380",type:"brand"},{name:"centos",code:"f789",type:"brand"},{name:"chrome",code:"f268",type:"brand"},{name:"chromecast",code:"f838",type:"brand"},{name:"cloudflare",code:"e07d",type:"brand"},{name:"cloudscale",code:"f383",type:"brand"},{name:"cloudsmith",code:"f384",type:"brand"},{name:"cloudversify",code:"f385",type:"brand"},{name:"codepen",code:"f1cb",type:"brand"},{name:"codiepie",code:"f284",type:"brand"},{name:"confluence",code:"f78d",type:"brand"},{name:"connectdevelop",code:"f20e",type:"brand"},{name:"contao",code:"f26d",type:"brand"},{name:"cotton-bureau",code:"f89e",type:"brand"},{name:"cpanel",code:"f388",type:"brand"},{name:"creative-commons",code:"f25e",type:"brand"},{name:"creative-commons-by",code:"f4e7",type:"brand"},{name:"creative-commons-nc",code:"f4e8",type:"brand"},{name:"creative-commons-nc-eu",code:"f4e9",type:"brand"},{name:"creative-commons-nc-jp",code:"f4ea",type:"brand"},{name:"creative-commons-nd",code:"f4eb",type:"brand"},{name:"creative-commons-pd",code:"f4ec",type:"brand"},{name:"creative-commons-pd-alt",code:"f4ed",type:"brand"},{name:"creative-commons-remix",code:"f4ee",type:"brand"},{name:"creative-commons-sa",code:"f4ef",type:"brand"},{name:"creative-commons-sampling",code:"f4f0",type:"brand"},{name:"creative-commons-sampling-plus",code:"f4f1",type:"brand"},{name:"creative-commons-share",code:"f4f2",type:"brand"},{name:"creative-commons-zero",code:"f4f3",type:"brand"},{name:"critical-role",code:"f6c9",type:"brand"},{name:"css3",code:"f13c",type:"brand"},{name:"css3-alt",code:"f38b",type:"brand"},{name:"cuttlefish",code:"f38c",type:"brand"},{name:"d-and-d",code:"f38d",type:"brand"},{name:"d-and-d-beyond",code:"f6ca",type:"brand"},{name:"dailymotion",code:"e052",type:"brand"},{name:"dashcube",code:"f210",type:"brand"},{name:"deezer",code:"e077",type:"brand"},{name:"delicious",code:"f1a5",type:"brand"},{name:"deploydog",code:"f38e",type:"brand"},{name:"deskpro",code:"f38f",type:"brand"},{name:"dev",code:"f6cc",type:"brand"},{name:"deviantart",code:"f1bd",type:"brand"},{name:"dhl",code:"f790",type:"brand"},{name:"diaspora",code:"f791",type:"brand"},{name:"digg",code:"f1a6",type:"brand"},{name:"digital-ocean",code:"f391",type:"brand"},{name:"discord",code:"f392",type:"brand"},{name:"discourse",code:"f393",type:"brand"},{name:"dochub",code:"f394",type:"brand"},{name:"docker",code:"f395",type:"brand"},{name:"draft2digital",code:"f396",type:"brand"},{name:"dribbble",code:"f17d",type:"brand"},{name:"dribbble-square",code:"f397",type:"brand"},{name:"dropbox",code:"f16b",type:"brand"},{name:"drupal",code:"f1a9",type:"brand"},{name:"dyalog",code:"f399",type:"brand"},{name:"earlybirds",code:"f39a",type:"brand"},{name:"ebay",code:"f4f4",type:"brand"},{name:"edge",code:"f282",type:"brand"},{name:"edge-legacy",code:"e078",type:"brand"},{name:"elementor",code:"f430",type:"brand"},{name:"ello",code:"f5f1",type:"brand"},{name:"ember",code:"f423",type:"brand"},{name:"empire",code:"f1d1",type:"brand"},{name:"envira",code:"f299",type:"brand"},{name:"erlang",code:"f39d",type:"brand"},{name:"ethereum",code:"f42e",type:"brand"},{name:"etsy",code:"f2d7",type:"brand"},{name:"evernote",code:"f839",type:"brand"},{name:"expeditedssl",code:"f23e",type:"brand"},{name:"facebook",code:"f09a",type:"brand"},{name:"facebook-f",code:"f39e",type:"brand"},{name:"facebook-messenger",code:"f39f",type:"brand"},{name:"facebook-square",code:"f082",type:"brand"},{name:"fantasy-flight-games",code:"f6dc",type:"brand"},{name:"fedex",code:"f797",type:"brand"},{name:"fedora",code:"f798",type:"brand"},{name:"figma",code:"f799",type:"brand"},{name:"firefox",code:"f269",type:"brand"},{name:"firefox-browser",code:"e007",type:"brand"},{name:"first-order",code:"f2b0",type:"brand"},{name:"first-order-alt",code:"f50a",type:"brand"},{name:"firstdraft",code:"f3a1",type:"brand"},{name:"flickr",code:"f16e",type:"brand"},{name:"flipboard",code:"f44d",type:"brand"},{name:"fly",code:"f417",type:"brand"},{name:"font-awesome",code:"f2b4",type:"brand"},{name:"font-awesome-alt",code:"f35c",type:"brand"},{name:"font-awesome-flag",code:"f425",type:"brand"},{name:"fonticons",code:"f280",type:"brand"},{name:"fonticons-fi",code:"f3a2",type:"brand"},{name:"fort-awesome",code:"f286",type:"brand"},{name:"fort-awesome-alt",code:"f3a3",type:"brand"},{name:"forumbee",code:"f211",type:"brand"},{name:"foursquare",code:"f180",type:"brand"},{name:"free-code-camp",code:"f2c5",type:"brand"},{name:"freebsd",code:"f3a4",type:"brand"},{name:"fulcrum",code:"f50b",type:"brand"},{name:"galactic-republic",code:"f50c",type:"brand"},{name:"galactic-senate",code:"f50d",type:"brand"},{name:"get-pocket",code:"f265",type:"brand"},{name:"gg",code:"f260",type:"brand"},{name:"gg-circle",code:"f261",type:"brand"},{name:"git",code:"f1d3",type:"brand"},{name:"git-alt",code:"f841",type:"brand"},{name:"git-square",code:"f1d2",type:"brand"},{name:"github",code:"f09b",type:"brand"},{name:"github-alt",code:"f113",type:"brand"},{name:"github-square",code:"f092",type:"brand"},{name:"gitkraken",code:"f3a6",type:"brand"},{name:"gitlab",code:"f296",type:"brand"},{name:"gitter",code:"f426",type:"brand"},{name:"glide",code:"f2a5",type:"brand"},{name:"glide-g",code:"f2a6",type:"brand"},{name:"gofore",code:"f3a7",type:"brand"},{name:"goodreads",code:"f3a8",type:"brand"},{name:"goodreads-g",code:"f3a9",type:"brand"},{name:"google",code:"f1a0",type:"brand"},{name:"google-drive",code:"f3aa",type:"brand"},{name:"google-pay",code:"e079",type:"brand"},{name:"google-play",code:"f3ab",type:"brand"},{name:"google-plus",code:"f2b3",type:"brand"},{name:"google-plus-g",code:"f0d5",type:"brand"},{name:"google-plus-square",code:"f0d4",type:"brand"},{name:"google-wallet",code:"f1ee",type:"brand"},{name:"gratipay",code:"f184",type:"brand"},{name:"grav",code:"f2d6",type:"brand"},{name:"gripfire",code:"f3ac",type:"brand"},{name:"grunt",code:"f3ad",type:"brand"},{name:"guilded",code:"e07e",type:"brand"},{name:"gulp",code:"f3ae",type:"brand"},{name:"hacker-news",code:"f1d4",type:"brand"},{name:"hacker-news-square",code:"f3af",type:"brand"},{name:"hackerrank",code:"f5f7",type:"brand"},{name:"hips",code:"f452",type:"brand"},{name:"hire-a-helper",code:"f3b0",type:"brand"},{name:"hive",code:"e07f",type:"brand"},{name:"hooli",code:"f427",type:"brand"},{name:"hornbill",code:"f592",type:"brand"},{name:"hotjar",code:"f3b1",type:"brand"},{name:"houzz",code:"f27c",type:"brand"},{name:"html5",code:"f13b",type:"brand"},{name:"hubspot",code:"f3b2",type:"brand"},{name:"ideal",code:"e013",type:"brand"},{name:"imdb",code:"f2d8",type:"brand"},{name:"innosoft",code:"e080",type:"brand"},{name:"instagram",code:"f16d",type:"brand"},{name:"instagram-square",code:"e055",type:"brand"},{name:"instalod",code:"e081",type:"brand"},{name:"intercom",code:"f7af",type:"brand"},{name:"internet-explorer",code:"f26b",type:"brand"},{name:"invision",code:"f7b0",type:"brand"},{name:"ioxhost",code:"f208",type:"brand"},{name:"itch-io",code:"f83a",type:"brand"},{name:"itunes",code:"f3b4",type:"brand"},{name:"itunes-note",code:"f3b5",type:"brand"},{name:"java",code:"f4e4",type:"brand"},{name:"jedi-order",code:"f50e",type:"brand"},{name:"jenkins",code:"f3b6",type:"brand"},{name:"jira",code:"f7b1",type:"brand"},{name:"joget",code:"f3b7",type:"brand"},{name:"joomla",code:"f1aa",type:"brand"},{name:"js",code:"f3b8",type:"brand"},{name:"js-square",code:"f3b9",type:"brand"},{name:"jsfiddle",code:"f1cc",type:"brand"},{name:"kaggle",code:"f5fa",type:"brand"},{name:"keybase",code:"f4f5",type:"brand"},{name:"keycdn",code:"f3ba",type:"brand"},{name:"kickstarter",code:"f3bb",type:"brand"},{name:"kickstarter-k",code:"f3bc",type:"brand"},{name:"korvue",code:"f42f",type:"brand"},{name:"laravel",code:"f3bd",type:"brand"},{name:"lastfm",code:"f202",type:"brand"},{name:"lastfm-square",code:"f203",type:"brand"},{name:"leanpub",code:"f212",type:"brand"},{name:"less",code:"f41d",type:"brand"},{name:"line",code:"f3c0",type:"brand"},{name:"linkedin",code:"f08c",type:"brand"},{name:"linkedin-in",code:"f0e1",type:"brand"},{name:"linode",code:"f2b8",type:"brand"},{name:"linux",code:"f17c",type:"brand"},{name:"lyft",code:"f3c3",type:"brand"},{name:"magento",code:"f3c4",type:"brand"},{name:"mailchimp",code:"f59e",type:"brand"},{name:"mandalorian",code:"f50f",type:"brand"},{name:"markdown",code:"f60f",type:"brand"},{name:"mastodon",code:"f4f6",type:"brand"},{name:"maxcdn",code:"f136",type:"brand"},{name:"mdb",code:"f8ca",type:"brand"},{name:"medapps",code:"f3c6",type:"brand"},{name:"medium",code:"f23a",type:"brand"},{name:"medium-m",code:"f3c7",type:"brand"},{name:"medrt",code:"f3c8",type:"brand"},{name:"meetup",code:"f2e0",type:"brand"},{name:"megaport",code:"f5a3",type:"brand"},{name:"mendeley",code:"f7b3",type:"brand"},{name:"microblog",code:"e01a",type:"brand"},{name:"microsoft",code:"f3ca",type:"brand"},{name:"mix",code:"f3cb",type:"brand"},{name:"mixcloud",code:"f289",type:"brand"},{name:"mixer",code:"e056",type:"brand"},{name:"mizuni",code:"f3cc",type:"brand"},{name:"modx",code:"f285",type:"brand"},{name:"monero",code:"f3d0",type:"brand"},{name:"napster",code:"f3d2",type:"brand"},{name:"neos",code:"f612",type:"brand"},{name:"nimblr",code:"f5a8",type:"brand"},{name:"node",code:"f419",type:"brand"},{name:"node-js",code:"f3d3",type:"brand"},{name:"npm",code:"f3d4",type:"brand"},{name:"ns8",code:"f3d5",type:"brand"},{name:"nutritionix",code:"f3d6",type:"brand"},{name:"octopus-deploy",code:"e082",type:"brand"},{name:"odnoklassniki",code:"f263",type:"brand"},{name:"odnoklassniki-square",code:"f264",type:"brand"},{name:"old-republic",code:"f510",type:"brand"},{name:"opencart",code:"f23d",type:"brand"},{name:"openid",code:"f19b",type:"brand"},{name:"opera",code:"f26a",type:"brand"},{name:"optin-monster",code:"f23c",type:"brand"},{name:"orcid",code:"f8d2",type:"brand"},{name:"osi",code:"f41a",type:"brand"},{name:"page4",code:"f3d7",type:"brand"},{name:"pagelines",code:"f18c",type:"brand"},{name:"palfed",code:"f3d8",type:"brand"},{name:"patreon",code:"f3d9",type:"brand"},{name:"paypal",code:"f1ed",type:"brand"},{name:"penny-arcade",code:"f704",type:"brand"},{name:"perbyte",code:"e083",type:"brand"},{name:"periscope",code:"f3da",type:"brand"},{name:"phabricator",code:"f3db",type:"brand"},{name:"phoenix-framework",code:"f3dc",type:"brand"},{name:"phoenix-squadron",code:"f511",type:"brand"},{name:"php",code:"f457",type:"brand"},{name:"pied-piper",code:"f2ae",type:"brand"},{name:"pied-piper-alt",code:"f1a8",type:"brand"},{name:"pied-piper-hat",code:"f4e5",type:"brand"},{name:"pied-piper-pp",code:"f1a7",type:"brand"},{name:"pied-piper-square",code:"e01e",type:"brand"},{name:"pinterest",code:"f0d2",type:"brand"},{name:"pinterest-p",code:"f231",type:"brand"},{name:"pinterest-square",code:"f0d3",type:"brand"},{name:"playstation",code:"f3df",type:"brand"},{name:"product-hunt",code:"f288",type:"brand"},{name:"pushed",code:"f3e1",type:"brand"},{name:"python",code:"f3e2",type:"brand"},{name:"qq",code:"f1d6",type:"brand"},{name:"quinscape",code:"f459",type:"brand"},{name:"quora",code:"f2c4",type:"brand"},{name:"r-project",code:"f4f7",type:"brand"},{name:"raspberry-pi",code:"f7bb",type:"brand"},{name:"ravelry",code:"f2d9",type:"brand"},{name:"react",code:"f41b",type:"brand"},{name:"reacteurope",code:"f75d",type:"brand"},{name:"readme",code:"f4d5",type:"brand"},{name:"rebel",code:"f1d0",type:"brand"},{name:"red-river",code:"f3e3",type:"brand"},{name:"reddit",code:"f1a1",type:"brand"},{name:"reddit-alien",code:"f281",type:"brand"},{name:"reddit-square",code:"f1a2",type:"brand"},{name:"redhat",code:"f7bc",type:"brand"},{name:"renren",code:"f18b",type:"brand"},{name:"replyd",code:"f3e6",type:"brand"},{name:"researchgate",code:"f4f8",type:"brand"},{name:"resolving",code:"f3e7",type:"brand"},{name:"rev",code:"f5b2",type:"brand"},{name:"rocketchat",code:"f3e8",type:"brand"},{name:"rockrms",code:"f3e9",type:"brand"},{name:"rust",code:"e07a",type:"brand"},{name:"safari",code:"f267",type:"brand"},{name:"salesforce",code:"f83b",type:"brand"},{name:"sass",code:"f41e",type:"brand"},{name:"schlix",code:"f3ea",type:"brand"},{name:"scribd",code:"f28a",type:"brand"},{name:"searchengin",code:"f3eb",type:"brand"},{name:"sellcast",code:"f2da",type:"brand"},{name:"sellsy",code:"f213",type:"brand"},{name:"servicestack",code:"f3ec",type:"brand"},{name:"shirtsinbulk",code:"f214",type:"brand"},{name:"shopify",code:"e057",type:"brand"},{name:"shopware",code:"f5b5",type:"brand"},{name:"simplybuilt",code:"f215",type:"brand"},{name:"sistrix",code:"f3ee",type:"brand"},{name:"sith",code:"f512",type:"brand"},{name:"sketch",code:"f7c6",type:"brand"},{name:"skyatlas",code:"f216",type:"brand"},{name:"skype",code:"f17e",type:"brand"},{name:"slack",code:"f198",type:"brand"},{name:"slack-hash",code:"f3ef",type:"brand"},{name:"slideshare",code:"f1e7",type:"brand"},{name:"snapchat",code:"f2ab",type:"brand"},{name:"snapchat-ghost",code:"f2ac",type:"brand"},{name:"snapchat-square",code:"f2ad",type:"brand"},{name:"soundcloud",code:"f1be",type:"brand"},{name:"sourcetree",code:"f7d3",type:"brand"},{name:"speakap",code:"f3f3",type:"brand"},{name:"speaker-deck",code:"f83c",type:"brand"},{name:"spotify",code:"f1bc",type:"brand"},{name:"squarespace",code:"f5be",type:"brand"},{name:"stack-exchange",code:"f18d",type:"brand"},{name:"stack-overflow",code:"f16c",type:"brand"},{name:"stackpath",code:"f842",type:"brand"},{name:"staylinked",code:"f3f5",type:"brand"},{name:"steam",code:"f1b6",type:"brand"},{name:"steam-square",code:"f1b7",type:"brand"},{name:"steam-symbol",code:"f3f6",type:"brand"},{name:"sticker-mule",code:"f3f7",type:"brand"},{name:"strava",code:"f428",type:"brand"},{name:"stripe",code:"f429",type:"brand"},{name:"stripe-s",code:"f42a",type:"brand"},{name:"studiovinari",code:"f3f8",type:"brand"},{name:"stumbleupon",code:"f1a4",type:"brand"},{name:"stumbleupon-circle",code:"f1a3",type:"brand"},{name:"superpowers",code:"f2dd",type:"brand"},{name:"supple",code:"f3f9",type:"brand"},{name:"suse",code:"f7d6",type:"brand"},{name:"swift",code:"f8e1",type:"brand"},{name:"symfony",code:"f83d",type:"brand"},{name:"teamspeak",code:"f4f9",type:"brand"},{name:"telegram",code:"f2c6",type:"brand"},{name:"telegram-plane",code:"f3fe",type:"brand"},{name:"tencent-weibo",code:"f1d5",type:"brand"},{name:"the-red-yeti",code:"f69d",type:"brand"},{name:"themeco",code:"f5c6",type:"brand"},{name:"themeisle",code:"f2b2",type:"brand"},{name:"think-peaks",code:"f731",type:"brand"},{name:"tiktok",code:"e07b",type:"brand"},{name:"trade-federation",code:"f513",type:"brand"},{name:"trello",code:"f181",type:"brand"},{name:"tumblr",code:"f173",type:"brand"},{name:"tumblr-square",code:"f174",type:"brand"},{name:"twitch",code:"f1e8",type:"brand"},{name:"twitter",code:"f099",type:"brand"},{name:"twitter-square",code:"f081",type:"brand"},{name:"typo3",code:"f42b",type:"brand"},{name:"uber",code:"f402",type:"brand"},{name:"ubuntu",code:"f7df",type:"brand"},{name:"uikit",code:"f403",type:"brand"},{name:"umbraco",code:"f8e8",type:"brand"},{name:"uncharted",code:"e084",type:"brand"},{name:"uniregistry",code:"f404",type:"brand"},{name:"unity",code:"e049",type:"brand"},{name:"unsplash",code:"e07c",type:"brand"},{name:"untappd",code:"f405",type:"brand"},{name:"ups",code:"f7e0",type:"brand"},{name:"usb",code:"f287",type:"brand"},{name:"usps",code:"f7e1",type:"brand"},{name:"ussunnah",code:"f407",type:"brand"},{name:"vaadin",code:"f408",type:"brand"},{name:"viacoin",code:"f237",type:"brand"},{name:"viadeo",code:"f2a9",type:"brand"},{name:"viadeo-square",code:"f2aa",type:"brand"},{name:"viber",code:"f409",type:"brand"},{name:"vimeo",code:"f40a",type:"brand"},{name:"vimeo-square",code:"f194",type:"brand"},{name:"vimeo-v",code:"f27d",type:"brand"},{name:"vine",code:"f1ca",type:"brand"},{name:"vk",code:"f189",type:"brand"},{name:"vnv",code:"f40b",type:"brand"},{name:"vuejs",code:"f41f",type:"brand"},{name:"watchman-monitoring",code:"e087",type:"brand"},{name:"waze",code:"f83f",type:"brand"},{name:"weebly",code:"f5cc",type:"brand"},{name:"weibo",code:"f18a",type:"brand"},{name:"weixin",code:"f1d7",type:"brand"},{name:"whatsapp",code:"f232",type:"brand"},{name:"whatsapp-square",code:"f40c",type:"brand"},{name:"whmcs",code:"f40d",type:"brand"},{name:"wikipedia-w",code:"f266",type:"brand"},{name:"windows",code:"f17a",type:"brand"},{name:"wix",code:"f5cf",type:"brand"},{name:"wizards-of-the-coast",code:"f730",type:"brand"},{name:"wodu",code:"e088",type:"brand"},{name:"wolf-pack-battalion",code:"f514",type:"brand"},{name:"wordpress",code:"f19a",type:"brand"},{name:"wordpress-simple",code:"f411",type:"brand"},{name:"wpbeginner",code:"f297",type:"brand"},{name:"wpexplorer",code:"f2de",type:"brand"},{name:"wpforms",code:"f298",type:"brand"},{name:"wpressr",code:"f3e4",type:"brand"},{name:"xbox",code:"f412",type:"brand"},{name:"xing",code:"f168",type:"brand"},{name:"xing-square",code:"f169",type:"brand"},{name:"y-combinator",code:"f23b",type:"brand"},{name:"yahoo",code:"f19e",type:"brand"},{name:"yammer",code:"f840",type:"brand"},{name:"yandex",code:"f413",type:"brand"},{name:"yandex-international",code:"f414",type:"brand"},{name:"yarn",code:"f7e3",type:"brand"},{name:"yelp",code:"f1e9",type:"brand"},{name:"yoast",code:"f2b1",type:"brand"},{name:"youtube",code:"f167",type:"brand"},{name:"youtube-square",code:"f431",type:"brand"},{name:"zhihu",code:"f63f",type:"brand"},{name:"ad",code:"f641",type:"solid"},{name:"address-book",code:"f2b9",type:"solid"},{name:"address-card",code:"f2bb",type:"solid"},{name:"adjust",code:"f042",type:"solid"},{name:"air-freshener",code:"f5d0",type:"solid"},{name:"align-center",code:"f037",type:"solid"},{name:"align-justify",code:"f039",type:"solid"},{name:"align-left",code:"f036",type:"solid"},{name:"align-right",code:"f038",type:"solid"},{name:"allergies",code:"f461",type:"solid"},{name:"ambulance",code:"f0f9",type:"solid"},{name:"american-sign-language-interpreting",code:"f2a3",type:"solid"},{name:"anchor",code:"f13d",type:"solid"},{name:"angle-double-down",code:"f103",type:"solid"},{name:"angle-double-left",code:"f100",type:"solid"},{name:"angle-double-right",code:"f101",type:"solid"},{name:"angle-double-up",code:"f102",type:"solid"},{name:"angle-down",code:"f107",type:"solid"},{name:"angle-left",code:"f104",type:"solid"},{name:"angle-right",code:"f105",type:"solid"},{name:"angle-up",code:"f106",type:"solid"},{name:"angry",code:"f556",type:"solid"},{name:"ankh",code:"f644",type:"solid"},{name:"apple-alt",code:"f5d1",type:"solid"},{name:"archive",code:"f187",type:"solid"},{name:"archway",code:"f557",type:"solid"},{name:"arrow-alt-circle-down",code:"f358",type:"solid"},{name:"arrow-alt-circle-left",code:"f359",type:"solid"},{name:"arrow-alt-circle-right",code:"f35a",type:"solid"},{name:"arrow-alt-circle-up",code:"f35b",type:"solid"},{name:"arrow-circle-down",code:"f0ab",type:"solid"},{name:"arrow-circle-left",code:"f0a8",type:"solid"},{name:"arrow-circle-right",code:"f0a9",type:"solid"},{name:"arrow-circle-up",code:"f0aa",type:"solid"},{name:"arrow-down",code:"f063",type:"solid"},{name:"arrow-left",code:"f060",type:"solid"},{name:"arrow-right",code:"f061",type:"solid"},{name:"arrow-up",code:"f062",type:"solid"},{name:"arrows-alt",code:"f0b2",type:"solid"},{name:"arrows-alt-h",code:"f337",type:"solid"},{name:"arrows-alt-v",code:"f338",type:"solid"},{name:"assistive-listening-systems",code:"f2a2",type:"solid"},{name:"asterisk",code:"f069",type:"solid"},{name:"at",code:"f1fa",type:"solid"},{name:"atlas",code:"f558",type:"solid"},{name:"atom",code:"f5d2",type:"solid"},{name:"audio-description",code:"f29e",type:"solid"},{name:"award",code:"f559",type:"solid"},{name:"baby",code:"f77c",type:"solid"},{name:"baby-carriage",code:"f77d",type:"solid"},{name:"backspace",code:"f55a",type:"solid"},{name:"backward",code:"f04a",type:"solid"},{name:"bacon",code:"f7e5",type:"solid"},{name:"bacteria",code:"e059",type:"solid"},{name:"bacterium",code:"e05a",type:"solid"},{name:"bahai",code:"f666",type:"solid"},{name:"balance-scale",code:"f24e",type:"solid"},{name:"balance-scale-left",code:"f515",type:"solid"},{name:"balance-scale-right",code:"f516",type:"solid"},{name:"ban",code:"f05e",type:"solid"},{name:"band-aid",code:"f462",type:"solid"},{name:"barcode",code:"f02a",type:"solid"},{name:"bars",code:"f0c9",type:"solid"},{name:"baseball-ball",code:"f433",type:"solid"},{name:"basketball-ball",code:"f434",type:"solid"},{name:"bath",code:"f2cd",type:"solid"},{name:"battery-empty",code:"f244",type:"solid"},{name:"battery-full",code:"f240",type:"solid"},{name:"battery-half",code:"f242",type:"solid"},{name:"battery-quarter",code:"f243",type:"solid"},{name:"battery-three-quarters",code:"f241",type:"solid"},{name:"bed",code:"f236",type:"solid"},{name:"beer",code:"f0fc",type:"solid"},{name:"bell",code:"f0f3",type:"solid"},{name:"bell-slash",code:"f1f6",type:"solid"},{name:"bezier-curve",code:"f55b",type:"solid"},{name:"bible",code:"f647",type:"solid"},{name:"bicycle",code:"f206",type:"solid"},{name:"biking",code:"f84a",type:"solid"},{name:"binoculars",code:"f1e5",type:"solid"},{name:"biohazard",code:"f780",type:"solid"},{name:"birthday-cake",code:"f1fd",type:"solid"},{name:"blender",code:"f517",type:"solid"},{name:"blender-phone",code:"f6b6",type:"solid"},{name:"blind",code:"f29d",type:"solid"},{name:"blog",code:"f781",type:"solid"},{name:"bold",code:"f032",type:"solid"},{name:"bolt",code:"f0e7",type:"solid"},{name:"bomb",code:"f1e2",type:"solid"},{name:"bone",code:"f5d7",type:"solid"},{name:"bong",code:"f55c",type:"solid"},{name:"book",code:"f02d",type:"solid"},{name:"book-dead",code:"f6b7",type:"solid"},{name:"book-medical",code:"f7e6",type:"solid"},{name:"book-open",code:"f518",type:"solid"},{name:"book-reader",code:"f5da",type:"solid"},{name:"bookmark",code:"f02e",type:"solid"},{name:"border-all",code:"f84c",type:"solid"},{name:"border-none",code:"f850",type:"solid"},{name:"border-style",code:"f853",type:"solid"},{name:"bowling-ball",code:"f436",type:"solid"},{name:"box",code:"f466",type:"solid"},{name:"box-open",code:"f49e",type:"solid"},{name:"box-tissue",code:"e05b",type:"solid"},{name:"boxes",code:"f468",type:"solid"},{name:"braille",code:"f2a1",type:"solid"},{name:"brain",code:"f5dc",type:"solid"},{name:"bread-slice",code:"f7ec",type:"solid"},{name:"briefcase",code:"f0b1",type:"solid"},{name:"briefcase-medical",code:"f469",type:"solid"},{name:"broadcast-tower",code:"f519",type:"solid"},{name:"broom",code:"f51a",type:"solid"},{name:"brush",code:"f55d",type:"solid"},{name:"bug",code:"f188",type:"solid"},{name:"building",code:"f1ad",type:"solid"},{name:"bullhorn",code:"f0a1",type:"solid"},{name:"bullseye",code:"f140",type:"solid"},{name:"burn",code:"f46a",type:"solid"},{name:"bus",code:"f207",type:"solid"},{name:"bus-alt",code:"f55e",type:"solid"},{name:"business-time",code:"f64a",type:"solid"},{name:"calculator",code:"f1ec",type:"solid"},{name:"calendar",code:"f133",type:"solid"},{name:"calendar-alt",code:"f073",type:"solid"},{name:"calendar-check",code:"f274",type:"solid"},{name:"calendar-day",code:"f783",type:"solid"},{name:"calendar-minus",code:"f272",type:"solid"},{name:"calendar-plus",code:"f271",type:"solid"},{name:"calendar-times",code:"f273",type:"solid"},{name:"calendar-week",code:"f784",type:"solid"},{name:"camera",code:"f030",type:"solid"},{name:"camera-retro",code:"f083",type:"solid"},{name:"campground",code:"f6bb",type:"solid"},{name:"candy-cane",code:"f786",type:"solid"},{name:"cannabis",code:"f55f",type:"solid"},{name:"capsules",code:"f46b",type:"solid"},{name:"car",code:"f1b9",type:"solid"},{name:"car-alt",code:"f5de",type:"solid"},{name:"car-battery",code:"f5df",type:"solid"},{name:"car-crash",code:"f5e1",type:"solid"},{name:"car-side",code:"f5e4",type:"solid"},{name:"caravan",code:"f8ff",type:"solid"},{name:"caret-down",code:"f0d7",type:"solid"},{name:"caret-left",code:"f0d9",type:"solid"},{name:"caret-right",code:"f0da",type:"solid"},{name:"caret-square-down",code:"f150",type:"solid"},{name:"caret-square-left",code:"f191",type:"solid"},{name:"caret-square-right",code:"f152",type:"solid"},{name:"caret-square-up",code:"f151",type:"solid"},{name:"caret-up",code:"f0d8",type:"solid"},{name:"carrot",code:"f787",type:"solid"},{name:"cart-arrow-down",code:"f218",type:"solid"},{name:"cart-plus",code:"f217",type:"solid"},{name:"cash-register",code:"f788",type:"solid"},{name:"cat",code:"f6be",type:"solid"},{name:"certificate",code:"f0a3",type:"solid"},{name:"chair",code:"f6c0",type:"solid"},{name:"chalkboard",code:"f51b",type:"solid"},{name:"chalkboard-teacher",code:"f51c",type:"solid"},{name:"charging-station",code:"f5e7",type:"solid"},{name:"chart-area",code:"f1fe",type:"solid"},{name:"chart-bar",code:"f080",type:"solid"},{name:"chart-line",code:"f201",type:"solid"},{name:"chart-pie",code:"f200",type:"solid"},{name:"check",code:"f00c",type:"solid"},{name:"check-circle",code:"f058",type:"solid"},{name:"check-double",code:"f560",type:"solid"},{name:"check-square",code:"f14a",type:"solid"},{name:"cheese",code:"f7ef",type:"solid"},{name:"chess",code:"f439",type:"solid"},{name:"chess-bishop",code:"f43a",type:"solid"},{name:"chess-board",code:"f43c",type:"solid"},{name:"chess-king",code:"f43f",type:"solid"},{name:"chess-knight",code:"f441",type:"solid"},{name:"chess-pawn",code:"f443",type:"solid"},{name:"chess-queen",code:"f445",type:"solid"},{name:"chess-rook",code:"f447",type:"solid"},{name:"chevron-circle-down",code:"f13a",type:"solid"},{name:"chevron-circle-left",code:"f137",type:"solid"},{name:"chevron-circle-right",code:"f138",type:"solid"},{name:"chevron-circle-up",code:"f139",type:"solid"},{name:"chevron-down",code:"f078",type:"solid"},{name:"chevron-left",code:"f053",type:"solid"},{name:"chevron-right",code:"f054",type:"solid"},{name:"chevron-up",code:"f077",type:"solid"},{name:"child",code:"f1ae",type:"solid"},{name:"church",code:"f51d",type:"solid"},{name:"circle",code:"f111",type:"solid"},{name:"circle-notch",code:"f1ce",type:"solid"},{name:"city",code:"f64f",type:"solid"},{name:"clinic-medical",code:"f7f2",type:"solid"},{name:"clipboard",code:"f328",type:"solid"},{name:"clipboard-check",code:"f46c",type:"solid"},{name:"clipboard-list",code:"f46d",type:"solid"},{name:"clock",code:"f017",type:"solid"},{name:"clone",code:"f24d",type:"solid"},{name:"closed-captioning",code:"f20a",type:"solid"},{name:"cloud",code:"f0c2",type:"solid"},{name:"cloud-download-alt",code:"f381",type:"solid"},{name:"cloud-meatball",code:"f73b",type:"solid"},{name:"cloud-moon",code:"f6c3",type:"solid"},{name:"cloud-moon-rain",code:"f73c",type:"solid"},{name:"cloud-rain",code:"f73d",type:"solid"},{name:"cloud-showers-heavy",code:"f740",type:"solid"},{name:"cloud-sun",code:"f6c4",type:"solid"},{name:"cloud-sun-rain",code:"f743",type:"solid"},{name:"cloud-upload-alt",code:"f382",type:"solid"},{name:"cocktail",code:"f561",type:"solid"},{name:"code",code:"f121",type:"solid"},{name:"code-branch",code:"f126",type:"solid"},{name:"coffee",code:"f0f4",type:"solid"},{name:"cog",code:"f013",type:"solid"},{name:"cogs",code:"f085",type:"solid"},{name:"coins",code:"f51e",type:"solid"},{name:"columns",code:"f0db",type:"solid"},{name:"comment",code:"f075",type:"solid"},{name:"comment-alt",code:"f27a",type:"solid"},{name:"comment-dollar",code:"f651",type:"solid"},{name:"comment-dots",code:"f4ad",type:"solid"},{name:"comment-medical",code:"f7f5",type:"solid"},{name:"comment-slash",code:"f4b3",type:"solid"},{name:"comments",code:"f086",type:"solid"},{name:"comments-dollar",code:"f653",type:"solid"},{name:"compact-disc",code:"f51f",type:"solid"},{name:"compass",code:"f14e",type:"solid"},{name:"compress",code:"f066",type:"solid"},{name:"compress-alt",code:"f422",type:"solid"},{name:"compress-arrows-alt",code:"f78c",type:"solid"},{name:"concierge-bell",code:"f562",type:"solid"},{name:"cookie",code:"f563",type:"solid"},{name:"cookie-bite",code:"f564",type:"solid"},{name:"copy",code:"f0c5",type:"solid"},{name:"copyright",code:"f1f9",type:"solid"},{name:"couch",code:"f4b8",type:"solid"},{name:"credit-card",code:"f09d",type:"solid"},{name:"crop",code:"f125",type:"solid"},{name:"crop-alt",code:"f565",type:"solid"},{name:"cross",code:"f654",type:"solid"},{name:"crosshairs",code:"f05b",type:"solid"},{name:"crow",code:"f520",type:"solid"},{name:"crown",code:"f521",type:"solid"},{name:"crutch",code:"f7f7",type:"solid"},{name:"cube",code:"f1b2",type:"solid"},{name:"cubes",code:"f1b3",type:"solid"},{name:"cut",code:"f0c4",type:"solid"},{name:"database",code:"f1c0",type:"solid"},{name:"deaf",code:"f2a4",type:"solid"},{name:"democrat",code:"f747",type:"solid"},{name:"desktop",code:"f108",type:"solid"},{name:"dharmachakra",code:"f655",type:"solid"},{name:"diagnoses",code:"f470",type:"solid"},{name:"dice",code:"f522",type:"solid"},{name:"dice-d20",code:"f6cf",type:"solid"},{name:"dice-d6",code:"f6d1",type:"solid"},{name:"dice-five",code:"f523",type:"solid"},{name:"dice-four",code:"f524",type:"solid"},{name:"dice-one",code:"f525",type:"solid"},{name:"dice-six",code:"f526",type:"solid"},{name:"dice-three",code:"f527",type:"solid"},{name:"dice-two",code:"f528",type:"solid"},{name:"digital-tachograph",code:"f566",type:"solid"},{name:"directions",code:"f5eb",type:"solid"},{name:"disease",code:"f7fa",type:"solid"},{name:"divide",code:"f529",type:"solid"},{name:"dizzy",code:"f567",type:"solid"},{name:"dna",code:"f471",type:"solid"},{name:"dog",code:"f6d3",type:"solid"},{name:"dollar-sign",code:"f155",type:"solid"},{name:"dolly",code:"f472",type:"solid"},{name:"dolly-flatbed",code:"f474",type:"solid"},{name:"donate",code:"f4b9",type:"solid"},{name:"door-closed",code:"f52a",type:"solid"},{name:"door-open",code:"f52b",type:"solid"},{name:"dot-circle",code:"f192",type:"solid"},{name:"dove",code:"f4ba",type:"solid"},{name:"download",code:"f019",type:"solid"},{name:"drafting-compass",code:"f568",type:"solid"},{name:"dragon",code:"f6d5",type:"solid"},{name:"draw-polygon",code:"f5ee",type:"solid"},{name:"drum",code:"f569",type:"solid"},{name:"drum-steelpan",code:"f56a",type:"solid"},{name:"drumstick-bite",code:"f6d7",type:"solid"},{name:"dumbbell",code:"f44b",type:"solid"},{name:"dumpster",code:"f793",type:"solid"},{name:"dumpster-fire",code:"f794",type:"solid"},{name:"dungeon",code:"f6d9",type:"solid"},{name:"edit",code:"f044",type:"solid"},{name:"egg",code:"f7fb",type:"solid"},{name:"eject",code:"f052",type:"solid"},{name:"ellipsis-h",code:"f141",type:"solid"},{name:"ellipsis-v",code:"f142",type:"solid"},{name:"envelope",code:"f0e0",type:"solid"},{name:"envelope-open",code:"f2b6",type:"solid"},{name:"envelope-open-text",code:"f658",type:"solid"},{name:"envelope-square",code:"f199",type:"solid"},{name:"equals",code:"f52c",type:"solid"},{name:"eraser",code:"f12d",type:"solid"},{name:"ethernet",code:"f796",type:"solid"},{name:"euro-sign",code:"f153",type:"solid"},{name:"exchange-alt",code:"f362",type:"solid"},{name:"exclamation",code:"f12a",type:"solid"},{name:"exclamation-circle",code:"f06a",type:"solid"},{name:"exclamation-triangle",code:"f071",type:"solid"},{name:"expand",code:"f065",type:"solid"},{name:"expand-alt",code:"f424",type:"solid"},{name:"expand-arrows-alt",code:"f31e",type:"solid"},{name:"external-link-alt",code:"f35d",type:"solid"},{name:"external-link-square-alt",code:"f360",type:"solid"},{name:"eye",code:"f06e",type:"solid"},{name:"eye-dropper",code:"f1fb",type:"solid"},{name:"eye-slash",code:"f070",type:"solid"},{name:"fan",code:"f863",type:"solid"},{name:"fast-backward",code:"f049",type:"solid"},{name:"fast-forward",code:"f050",type:"solid"},{name:"faucet",code:"e005",type:"solid"},{name:"fax",code:"f1ac",type:"solid"},{name:"feather",code:"f52d",type:"solid"},{name:"feather-alt",code:"f56b",type:"solid"},{name:"female",code:"f182",type:"solid"},{name:"fighter-jet",code:"f0fb",type:"solid"},{name:"file",code:"f15b",type:"solid"},{name:"file-alt",code:"f15c",type:"solid"},{name:"file-archive",code:"f1c6",type:"solid"},{name:"file-audio",code:"f1c7",type:"solid"},{name:"file-code",code:"f1c9",type:"solid"},{name:"file-contract",code:"f56c",type:"solid"},{name:"file-csv",code:"f6dd",type:"solid"},{name:"file-download",code:"f56d",type:"solid"},{name:"file-excel",code:"f1c3",type:"solid"},{name:"file-export",code:"f56e",type:"solid"},{name:"file-image",code:"f1c5",type:"solid"},{name:"file-import",code:"f56f",type:"solid"},{name:"file-invoice",code:"f570",type:"solid"},{name:"file-invoice-dollar",code:"f571",type:"solid"},{name:"file-medical",code:"f477",type:"solid"},{name:"file-medical-alt",code:"f478",type:"solid"},{name:"file-pdf",code:"f1c1",type:"solid"},{name:"file-powerpoint",code:"f1c4",type:"solid"},{name:"file-prescription",code:"f572",type:"solid"},{name:"file-signature",code:"f573",type:"solid"},{name:"file-upload",code:"f574",type:"solid"},{name:"file-video",code:"f1c8",type:"solid"},{name:"file-word",code:"f1c2",type:"solid"},{name:"fill",code:"f575",type:"solid"},{name:"fill-drip",code:"f576",type:"solid"},{name:"film",code:"f008",type:"solid"},{name:"filter",code:"f0b0",type:"solid"},{name:"fingerprint",code:"f577",type:"solid"},{name:"fire",code:"f06d",type:"solid"},{name:"fire-alt",code:"f7e4",type:"solid"},{name:"fire-extinguisher",code:"f134",type:"solid"},{name:"first-aid",code:"f479",type:"solid"},{name:"fish",code:"f578",type:"solid"},{name:"fist-raised",code:"f6de",type:"solid"},{name:"flag",code:"f024",type:"solid"},{name:"flag-checkered",code:"f11e",type:"solid"},{name:"flag-usa",code:"f74d",type:"solid"},{name:"flask",code:"f0c3",type:"solid"},{name:"flushed",code:"f579",type:"solid"},{name:"folder",code:"f07b",type:"solid"},{name:"folder-minus",code:"f65d",type:"solid"},{name:"folder-open",code:"f07c",type:"solid"},{name:"folder-plus",code:"f65e",type:"solid"},{name:"font",code:"f031",type:"solid"},{name:"football-ball",code:"f44e",type:"solid"},{name:"forward",code:"f04e",type:"solid"},{name:"frog",code:"f52e",type:"solid"},{name:"frown",code:"f119",type:"solid"},{name:"frown-open",code:"f57a",type:"solid"},{name:"funnel-dollar",code:"f662",type:"solid"},{name:"futbol",code:"f1e3",type:"solid"},{name:"gamepad",code:"f11b",type:"solid"},{name:"gas-pump",code:"f52f",type:"solid"},{name:"gavel",code:"f0e3",type:"solid"},{name:"gem",code:"f3a5",type:"solid"},{name:"genderless",code:"f22d",type:"solid"},{name:"ghost",code:"f6e2",type:"solid"},{name:"gift",code:"f06b",type:"solid"},{name:"gifts",code:"f79c",type:"solid"},{name:"glass-cheers",code:"f79f",type:"solid"},{name:"glass-martini",code:"f000",type:"solid"},{name:"glass-martini-alt",code:"f57b",type:"solid"},{name:"glass-whiskey",code:"f7a0",type:"solid"},{name:"glasses",code:"f530",type:"solid"},{name:"globe",code:"f0ac",type:"solid"},{name:"globe-africa",code:"f57c",type:"solid"},{name:"globe-americas",code:"f57d",type:"solid"},{name:"globe-asia",code:"f57e",type:"solid"},{name:"globe-europe",code:"f7a2",type:"solid"},{name:"golf-ball",code:"f450",type:"solid"},{name:"gopuram",code:"f664",type:"solid"},{name:"graduation-cap",code:"f19d",type:"solid"},{name:"greater-than",code:"f531",type:"solid"},{name:"greater-than-equal",code:"f532",type:"solid"},{name:"grimace",code:"f57f",type:"solid"},{name:"grin",code:"f580",type:"solid"},{name:"grin-alt",code:"f581",type:"solid"},{name:"grin-beam",code:"f582",type:"solid"},{name:"grin-beam-sweat",code:"f583",type:"solid"},{name:"grin-hearts",code:"f584",type:"solid"},{name:"grin-squint",code:"f585",type:"solid"},{name:"grin-squint-tears",code:"f586",type:"solid"},{name:"grin-stars",code:"f587",type:"solid"},{name:"grin-tears",code:"f588",type:"solid"},{name:"grin-tongue",code:"f589",type:"solid"},{name:"grin-tongue-squint",code:"f58a",type:"solid"},{name:"grin-tongue-wink",code:"f58b",type:"solid"},{name:"grin-wink",code:"f58c",type:"solid"},{name:"grip-horizontal",code:"f58d",type:"solid"},{name:"grip-lines",code:"f7a4",type:"solid"},{name:"grip-lines-vertical",code:"f7a5",type:"solid"},{name:"grip-vertical",code:"f58e",type:"solid"},{name:"guitar",code:"f7a6",type:"solid"},{name:"h-square",code:"f0fd",type:"solid"},{name:"hamburger",code:"f805",type:"solid"},{name:"hammer",code:"f6e3",type:"solid"},{name:"hamsa",code:"f665",type:"solid"},{name:"hand-holding",code:"f4bd",type:"solid"},{name:"hand-holding-heart",code:"f4be",type:"solid"},{name:"hand-holding-medical",code:"e05c",type:"solid"},{name:"hand-holding-usd",code:"f4c0",type:"solid"},{name:"hand-holding-water",code:"f4c1",type:"solid"},{name:"hand-lizard",code:"f258",type:"solid"},{name:"hand-middle-finger",code:"f806",type:"solid"},{name:"hand-paper",code:"f256",type:"solid"},{name:"hand-peace",code:"f25b",type:"solid"},{name:"hand-point-down",code:"f0a7",type:"solid"},{name:"hand-point-left",code:"f0a5",type:"solid"},{name:"hand-point-right",code:"f0a4",type:"solid"},{name:"hand-point-up",code:"f0a6",type:"solid"},{name:"hand-pointer",code:"f25a",type:"solid"},{name:"hand-rock",code:"f255",type:"solid"},{name:"hand-scissors",code:"f257",type:"solid"},{name:"hand-sparkles",code:"e05d",type:"solid"},{name:"hand-spock",code:"f259",type:"solid"},{name:"hands",code:"f4c2",type:"solid"},{name:"hands-helping",code:"f4c4",type:"solid"},{name:"hands-wash",code:"e05e",type:"solid"},{name:"handshake",code:"f2b5",type:"solid"},{name:"handshake-alt-slash",code:"e05f",type:"solid"},{name:"handshake-slash",code:"e060",type:"solid"},{name:"hanukiah",code:"f6e6",type:"solid"},{name:"hard-hat",code:"f807",type:"solid"},{name:"hashtag",code:"f292",type:"solid"},{name:"hat-cowboy",code:"f8c0",type:"solid"},{name:"hat-cowboy-side",code:"f8c1",type:"solid"},{name:"hat-wizard",code:"f6e8",type:"solid"},{name:"hdd",code:"f0a0",type:"solid"},{name:"head-side-cough",code:"e061",type:"solid"},{name:"head-side-cough-slash",code:"e062",type:"solid"},{name:"head-side-mask",code:"e063",type:"solid"},{name:"head-side-virus",code:"e064",type:"solid"},{name:"heading",code:"f1dc",type:"solid"},{name:"headphones",code:"f025",type:"solid"},{name:"headphones-alt",code:"f58f",type:"solid"},{name:"headset",code:"f590",type:"solid"},{name:"heart",code:"f004",type:"solid"},{name:"heart-broken",code:"f7a9",type:"solid"},{name:"heartbeat",code:"f21e",type:"solid"},{name:"helicopter",code:"f533",type:"solid"},{name:"highlighter",code:"f591",type:"solid"},{name:"hiking",code:"f6ec",type:"solid"},{name:"hippo",code:"f6ed",type:"solid"},{name:"history",code:"f1da",type:"solid"},{name:"hockey-puck",code:"f453",type:"solid"},{name:"holly-berry",code:"f7aa",type:"solid"},{name:"home",code:"f015",type:"solid"},{name:"horse",code:"f6f0",type:"solid"},{name:"horse-head",code:"f7ab",type:"solid"},{name:"hospital",code:"f0f8",type:"solid"},{name:"hospital-alt",code:"f47d",type:"solid"},{name:"hospital-symbol",code:"f47e",type:"solid"},{name:"hospital-user",code:"f80d",type:"solid"},{name:"hot-tub",code:"f593",type:"solid"},{name:"hotdog",code:"f80f",type:"solid"},{name:"hotel",code:"f594",type:"solid"},{name:"hourglass",code:"f254",type:"solid"},{name:"hourglass-end",code:"f253",type:"solid"},{name:"hourglass-half",code:"f252",type:"solid"},{name:"hourglass-start",code:"f251",type:"solid"},{name:"house-damage",code:"f6f1",type:"solid"},{name:"house-user",code:"e065",type:"solid"},{name:"hryvnia",code:"f6f2",type:"solid"},{name:"i-cursor",code:"f246",type:"solid"},{name:"ice-cream",code:"f810",type:"solid"},{name:"icicles",code:"f7ad",type:"solid"},{name:"icons",code:"f86d",type:"solid"},{name:"id-badge",code:"f2c1",type:"solid"},{name:"id-card",code:"f2c2",type:"solid"},{name:"id-card-alt",code:"f47f",type:"solid"},{name:"igloo",code:"f7ae",type:"solid"},{name:"image",code:"f03e",type:"solid"},{name:"images",code:"f302",type:"solid"},{name:"inbox",code:"f01c",type:"solid"},{name:"indent",code:"f03c",type:"solid"},{name:"industry",code:"f275",type:"solid"},{name:"infinity",code:"f534",type:"solid"},{name:"info",code:"f129",type:"solid"},{name:"info-circle",code:"f05a",type:"solid"},{name:"italic",code:"f033",type:"solid"},{name:"jedi",code:"f669",type:"solid"},{name:"joint",code:"f595",type:"solid"},{name:"journal-whills",code:"f66a",type:"solid"},{name:"kaaba",code:"f66b",type:"solid"},{name:"key",code:"f084",type:"solid"},{name:"keyboard",code:"f11c",type:"solid"},{name:"khanda",code:"f66d",type:"solid"},{name:"kiss",code:"f596",type:"solid"},{name:"kiss-beam",code:"f597",type:"solid"},{name:"kiss-wink-heart",code:"f598",type:"solid"},{name:"kiwi-bird",code:"f535",type:"solid"},{name:"landmark",code:"f66f",type:"solid"},{name:"language",code:"f1ab",type:"solid"},{name:"laptop",code:"f109",type:"solid"},{name:"laptop-code",code:"f5fc",type:"solid"},{name:"laptop-house",code:"e066",type:"solid"},{name:"laptop-medical",code:"f812",type:"solid"},{name:"laugh",code:"f599",type:"solid"},{name:"laugh-beam",code:"f59a",type:"solid"},{name:"laugh-squint",code:"f59b",type:"solid"},{name:"laugh-wink",code:"f59c",type:"solid"},{name:"layer-group",code:"f5fd",type:"solid"},{name:"leaf",code:"f06c",type:"solid"},{name:"lemon",code:"f094",type:"solid"},{name:"less-than",code:"f536",type:"solid"},{name:"less-than-equal",code:"f537",type:"solid"},{name:"level-down-alt",code:"f3be",type:"solid"},{name:"level-up-alt",code:"f3bf",type:"solid"},{name:"life-ring",code:"f1cd",type:"solid"},{name:"lightbulb",code:"f0eb",type:"solid"},{name:"link",code:"f0c1",type:"solid"},{name:"lira-sign",code:"f195",type:"solid"},{name:"list",code:"f03a",type:"solid"},{name:"list-alt",code:"f022",type:"solid"},{name:"list-ol",code:"f0cb",type:"solid"},{name:"list-ul",code:"f0ca",type:"solid"},{name:"location-arrow",code:"f124",type:"solid"},{name:"lock",code:"f023",type:"solid"},{name:"lock-open",code:"f3c1",type:"solid"},{name:"long-arrow-alt-down",code:"f309",type:"solid"},{name:"long-arrow-alt-left",code:"f30a",type:"solid"},{name:"long-arrow-alt-right",code:"f30b",type:"solid"},{name:"long-arrow-alt-up",code:"f30c",type:"solid"},{name:"low-vision",code:"f2a8",type:"solid"},{name:"luggage-cart",code:"f59d",type:"solid"},{name:"lungs",code:"f604",type:"solid"},{name:"lungs-virus",code:"e067",type:"solid"},{name:"magic",code:"f0d0",type:"solid"},{name:"magnet",code:"f076",type:"solid"},{name:"mail-bulk",code:"f674",type:"solid"},{name:"male",code:"f183",type:"solid"},{name:"map",code:"f279",type:"solid"},{name:"map-marked",code:"f59f",type:"solid"},{name:"map-marked-alt",code:"f5a0",type:"solid"},{name:"map-marker",code:"f041",type:"solid"},{name:"map-marker-alt",code:"f3c5",type:"solid"},{name:"map-pin",code:"f276",type:"solid"},{name:"map-signs",code:"f277",type:"solid"},{name:"marker",code:"f5a1",type:"solid"},{name:"mars",code:"f222",type:"solid"},{name:"mars-double",code:"f227",type:"solid"},{name:"mars-stroke",code:"f229",type:"solid"},{name:"mars-stroke-h",code:"f22b",type:"solid"},{name:"mars-stroke-v",code:"f22a",type:"solid"},{name:"mask",code:"f6fa",type:"solid"},{name:"medal",code:"f5a2",type:"solid"},{name:"medkit",code:"f0fa",type:"solid"},{name:"meh",code:"f11a",type:"solid"},{name:"meh-blank",code:"f5a4",type:"solid"},{name:"meh-rolling-eyes",code:"f5a5",type:"solid"},{name:"memory",code:"f538",type:"solid"},{name:"menorah",code:"f676",type:"solid"},{name:"mercury",code:"f223",type:"solid"},{name:"meteor",code:"f753",type:"solid"},{name:"microchip",code:"f2db",type:"solid"},{name:"microphone",code:"f130",type:"solid"},{name:"microphone-alt",code:"f3c9",type:"solid"},{name:"microphone-alt-slash",code:"f539",type:"solid"},{name:"microphone-slash",code:"f131",type:"solid"},{name:"microscope",code:"f610",type:"solid"},{name:"minus",code:"f068",type:"solid"},{name:"minus-circle",code:"f056",type:"solid"},{name:"minus-square",code:"f146",type:"solid"},{name:"mitten",code:"f7b5",type:"solid"},{name:"mobile",code:"f10b",type:"solid"},{name:"mobile-alt",code:"f3cd",type:"solid"},{name:"money-bill",code:"f0d6",type:"solid"},{name:"money-bill-alt",code:"f3d1",type:"solid"},{name:"money-bill-wave",code:"f53a",type:"solid"},{name:"money-bill-wave-alt",code:"f53b",type:"solid"},{name:"money-check",code:"f53c",type:"solid"},{name:"money-check-alt",code:"f53d",type:"solid"},{name:"monument",code:"f5a6",type:"solid"},{name:"moon",code:"f186",type:"solid"},{name:"mortar-pestle",code:"f5a7",type:"solid"},{name:"mosque",code:"f678",type:"solid"},{name:"motorcycle",code:"f21c",type:"solid"},{name:"mountain",code:"f6fc",type:"solid"},{name:"mouse",code:"f8cc",type:"solid"},{name:"mouse-pointer",code:"f245",type:"solid"},{name:"mug-hot",code:"f7b6",type:"solid"},{name:"music",code:"f001",type:"solid"},{name:"network-wired",code:"f6ff",type:"solid"},{name:"neuter",code:"f22c",type:"solid"},{name:"newspaper",code:"f1ea",type:"solid"},{name:"not-equal",code:"f53e",type:"solid"},{name:"notes-medical",code:"f481",type:"solid"},{name:"object-group",code:"f247",type:"solid"},{name:"object-ungroup",code:"f248",type:"solid"},{name:"oil-can",code:"f613",type:"solid"},{name:"om",code:"f679",type:"solid"},{name:"otter",code:"f700",type:"solid"},{name:"outdent",code:"f03b",type:"solid"},{name:"pager",code:"f815",type:"solid"},{name:"paint-brush",code:"f1fc",type:"solid"},{name:"paint-roller",code:"f5aa",type:"solid"},{name:"palette",code:"f53f",type:"solid"},{name:"pallet",code:"f482",type:"solid"},{name:"paper-plane",code:"f1d8",type:"solid"},{name:"paperclip",code:"f0c6",type:"solid"},{name:"parachute-box",code:"f4cd",type:"solid"},{name:"paragraph",code:"f1dd",type:"solid"},{name:"parking",code:"f540",type:"solid"},{name:"passport",code:"f5ab",type:"solid"},{name:"pastafarianism",code:"f67b",type:"solid"},{name:"paste",code:"f0ea",type:"solid"},{name:"pause",code:"f04c",type:"solid"},{name:"pause-circle",code:"f28b",type:"solid"},{name:"paw",code:"f1b0",type:"solid"},{name:"peace",code:"f67c",type:"solid"},{name:"pen",code:"f304",type:"solid"},{name:"pen-alt",code:"f305",type:"solid"},{name:"pen-fancy",code:"f5ac",type:"solid"},{name:"pen-nib",code:"f5ad",type:"solid"},{name:"pen-square",code:"f14b",type:"solid"},{name:"pencil-alt",code:"f303",type:"solid"},{name:"pencil-ruler",code:"f5ae",type:"solid"},{name:"people-arrows",code:"e068",type:"solid"},{name:"people-carry",code:"f4ce",type:"solid"},{name:"pepper-hot",code:"f816",type:"solid"},{name:"percent",code:"f295",type:"solid"},{name:"percentage",code:"f541",type:"solid"},{name:"person-booth",code:"f756",type:"solid"},{name:"phone",code:"f095",type:"solid"},{name:"phone-alt",code:"f879",type:"solid"},{name:"phone-slash",code:"f3dd",type:"solid"},{name:"phone-square",code:"f098",type:"solid"},{name:"phone-square-alt",code:"f87b",type:"solid"},{name:"phone-volume",code:"f2a0",type:"solid"},{name:"photo-video",code:"f87c",type:"solid"},{name:"piggy-bank",code:"f4d3",type:"solid"},{name:"pills",code:"f484",type:"solid"},{name:"pizza-slice",code:"f818",type:"solid"},{name:"place-of-worship",code:"f67f",type:"solid"},{name:"plane",code:"f072",type:"solid"},{name:"plane-arrival",code:"f5af",type:"solid"},{name:"plane-departure",code:"f5b0",type:"solid"},{name:"plane-slash",code:"e069",type:"solid"},{name:"play",code:"f04b",type:"solid"},{name:"play-circle",code:"f144",type:"solid"},{name:"plug",code:"f1e6",type:"solid"},{name:"plus",code:"f067",type:"solid"},{name:"plus-circle",code:"f055",type:"solid"},{name:"plus-square",code:"f0fe",type:"solid"},{name:"podcast",code:"f2ce",type:"solid"},{name:"poll",code:"f681",type:"solid"},{name:"poll-h",code:"f682",type:"solid"},{name:"poo",code:"f2fe",type:"solid"},{name:"poo-storm",code:"f75a",type:"solid"},{name:"poop",code:"f619",type:"solid"},{name:"portrait",code:"f3e0",type:"solid"},{name:"pound-sign",code:"f154",type:"solid"},{name:"power-off",code:"f011",type:"solid"},{name:"pray",code:"f683",type:"solid"},{name:"praying-hands",code:"f684",type:"solid"},{name:"prescription",code:"f5b1",type:"solid"},{name:"prescription-bottle",code:"f485",type:"solid"},{name:"prescription-bottle-alt",code:"f486",type:"solid"},{name:"print",code:"f02f",type:"solid"},{name:"procedures",code:"f487",type:"solid"},{name:"project-diagram",code:"f542",type:"solid"},{name:"pump-medical",code:"e06a",type:"solid"},{name:"pump-soap",code:"e06b",type:"solid"},{name:"puzzle-piece",code:"f12e",type:"solid"},{name:"qrcode",code:"f029",type:"solid"},{name:"question",code:"f128",type:"solid"},{name:"question-circle",code:"f059",type:"solid"},{name:"quidditch",code:"f458",type:"solid"},{name:"quote-left",code:"f10d",type:"solid"},{name:"quote-right",code:"f10e",type:"solid"},{name:"quran",code:"f687",type:"solid"},{name:"radiation",code:"f7b9",type:"solid"},{name:"radiation-alt",code:"f7ba",type:"solid"},{name:"rainbow",code:"f75b",type:"solid"},{name:"random",code:"f074",type:"solid"},{name:"receipt",code:"f543",type:"solid"},{name:"record-vinyl",code:"f8d9",type:"solid"},{name:"recycle",code:"f1b8",type:"solid"},{name:"redo",code:"f01e",type:"solid"},{name:"redo-alt",code:"f2f9",type:"solid"},{name:"registered",code:"f25d",type:"solid"},{name:"remove-format",code:"f87d",type:"solid"},{name:"reply",code:"f3e5",type:"solid"},{name:"reply-all",code:"f122",type:"solid"},{name:"republican",code:"f75e",type:"solid"},{name:"restroom",code:"f7bd",type:"solid"},{name:"retweet",code:"f079",type:"solid"},{name:"ribbon",code:"f4d6",type:"solid"},{name:"ring",code:"f70b",type:"solid"},{name:"road",code:"f018",type:"solid"},{name:"robot",code:"f544",type:"solid"},{name:"rocket",code:"f135",type:"solid"},{name:"route",code:"f4d7",type:"solid"},{name:"rss",code:"f09e",type:"solid"},{name:"rss-square",code:"f143",type:"solid"},{name:"ruble-sign",code:"f158",type:"solid"},{name:"ruler",code:"f545",type:"solid"},{name:"ruler-combined",code:"f546",type:"solid"},{name:"ruler-horizontal",code:"f547",type:"solid"},{name:"ruler-vertical",code:"f548",type:"solid"},{name:"running",code:"f70c",type:"solid"},{name:"rupee-sign",code:"f156",type:"solid"},{name:"sad-cry",code:"f5b3",type:"solid"},{name:"sad-tear",code:"f5b4",type:"solid"},{name:"satellite",code:"f7bf",type:"solid"},{name:"satellite-dish",code:"f7c0",type:"solid"},{name:"save",code:"f0c7",type:"solid"},{name:"school",code:"f549",type:"solid"},{name:"screwdriver",code:"f54a",type:"solid"},{name:"scroll",code:"f70e",type:"solid"},{name:"sd-card",code:"f7c2",type:"solid"},{name:"search",code:"f002",type:"solid"},{name:"search-dollar",code:"f688",type:"solid"},{name:"search-location",code:"f689",type:"solid"},{name:"search-minus",code:"f010",type:"solid"},{name:"search-plus",code:"f00e",type:"solid"},{name:"seedling",code:"f4d8",type:"solid"},{name:"server",code:"f233",type:"solid"},{name:"shapes",code:"f61f",type:"solid"},{name:"share",code:"f064",type:"solid"},{name:"share-alt",code:"f1e0",type:"solid"},{name:"share-alt-square",code:"f1e1",type:"solid"},{name:"share-square",code:"f14d",type:"solid"},{name:"shekel-sign",code:"f20b",type:"solid"},{name:"shield-alt",code:"f3ed",type:"solid"},{name:"shield-virus",code:"e06c",type:"solid"},{name:"ship",code:"f21a",type:"solid"},{name:"shipping-fast",code:"f48b",type:"solid"},{name:"shoe-prints",code:"f54b",type:"solid"},{name:"shopping-bag",code:"f290",type:"solid"},{name:"shopping-basket",code:"f291",type:"solid"},{name:"shopping-cart",code:"f07a",type:"solid"},{name:"shower",code:"f2cc",type:"solid"},{name:"shuttle-van",code:"f5b6",type:"solid"},{name:"sign",code:"f4d9",type:"solid"},{name:"sign-in-alt",code:"f2f6",type:"solid"},{name:"sign-language",code:"f2a7",type:"solid"},{name:"sign-out-alt",code:"f2f5",type:"solid"},{name:"signal",code:"f012",type:"solid"},{name:"signature",code:"f5b7",type:"solid"},{name:"sim-card",code:"f7c4",type:"solid"},{name:"sink",code:"e06d",type:"solid"},{name:"sitemap",code:"f0e8",type:"solid"},{name:"skating",code:"f7c5",type:"solid"},{name:"skiing",code:"f7c9",type:"solid"},{name:"skiing-nordic",code:"f7ca",type:"solid"},{name:"skull",code:"f54c",type:"solid"},{name:"skull-crossbones",code:"f714",type:"solid"},{name:"slash",code:"f715",type:"solid"},{name:"sleigh",code:"f7cc",type:"solid"},{name:"sliders-h",code:"f1de",type:"solid"},{name:"smile",code:"f118",type:"solid"},{name:"smile-beam",code:"f5b8",type:"solid"},{name:"smile-wink",code:"f4da",type:"solid"},{name:"smog",code:"f75f",type:"solid"},{name:"smoking",code:"f48d",type:"solid"},{name:"smoking-ban",code:"f54d",type:"solid"},{name:"sms",code:"f7cd",type:"solid"},{name:"snowboarding",code:"f7ce",type:"solid"},{name:"snowflake",code:"f2dc",type:"solid"},{name:"snowman",code:"f7d0",type:"solid"},{name:"snowplow",code:"f7d2",type:"solid"},{name:"soap",code:"e06e",type:"solid"},{name:"socks",code:"f696",type:"solid"},{name:"solar-panel",code:"f5ba",type:"solid"},{name:"sort",code:"f0dc",type:"solid"},{name:"sort-alpha-down",code:"f15d",type:"solid"},{name:"sort-alpha-down-alt",code:"f881",type:"solid"},{name:"sort-alpha-up",code:"f15e",type:"solid"},{name:"sort-alpha-up-alt",code:"f882",type:"solid"},{name:"sort-amount-down",code:"f160",type:"solid"},{name:"sort-amount-down-alt",code:"f884",type:"solid"},{name:"sort-amount-up",code:"f161",type:"solid"},{name:"sort-amount-up-alt",code:"f885",type:"solid"},{name:"sort-down",code:"f0dd",type:"solid"},{name:"sort-numeric-down",code:"f162",type:"solid"},{name:"sort-numeric-down-alt",code:"f886",type:"solid"},{name:"sort-numeric-up",code:"f163",type:"solid"},{name:"sort-numeric-up-alt",code:"f887",type:"solid"},{name:"sort-up",code:"f0de",type:"solid"},{name:"spa",code:"f5bb",type:"solid"},{name:"space-shuttle",code:"f197",type:"solid"},{name:"spell-check",code:"f891",type:"solid"},{name:"spider",code:"f717",type:"solid"},{name:"spinner",code:"f110",type:"solid"},{name:"splotch",code:"f5bc",type:"solid"},{name:"spray-can",code:"f5bd",type:"solid"},{name:"square",code:"f0c8",type:"solid"},{name:"square-full",code:"f45c",type:"solid"},{name:"square-root-alt",code:"f698",type:"solid"},{name:"stamp",code:"f5bf",type:"solid"},{name:"star",code:"f005",type:"solid"},{name:"star-and-crescent",code:"f699",type:"solid"},{name:"star-half",code:"f089",type:"solid"},{name:"star-half-alt",code:"f5c0",type:"solid"},{name:"star-of-david",code:"f69a",type:"solid"},{name:"star-of-life",code:"f621",type:"solid"},{name:"step-backward",code:"f048",type:"solid"},{name:"step-forward",code:"f051",type:"solid"},{name:"stethoscope",code:"f0f1",type:"solid"},{name:"sticky-note",code:"f249",type:"solid"},{name:"stop",code:"f04d",type:"solid"},{name:"stop-circle",code:"f28d",type:"solid"},{name:"stopwatch",code:"f2f2",type:"solid"},{name:"stopwatch-20",code:"e06f",type:"solid"},{name:"store",code:"f54e",type:"solid"},{name:"store-alt",code:"f54f",type:"solid"},{name:"store-alt-slash",code:"e070",type:"solid"},{name:"store-slash",code:"e071",type:"solid"},{name:"stream",code:"f550",type:"solid"},{name:"street-view",code:"f21d",type:"solid"},{name:"strikethrough",code:"f0cc",type:"solid"},{name:"stroopwafel",code:"f551",type:"solid"},{name:"subscript",code:"f12c",type:"solid"},{name:"subway",code:"f239",type:"solid"},{name:"suitcase",code:"f0f2",type:"solid"},{name:"suitcase-rolling",code:"f5c1",type:"solid"},{name:"sun",code:"f185",type:"solid"},{name:"superscript",code:"f12b",type:"solid"},{name:"surprise",code:"f5c2",type:"solid"},{name:"swatchbook",code:"f5c3",type:"solid"},{name:"swimmer",code:"f5c4",type:"solid"},{name:"swimming-pool",code:"f5c5",type:"solid"},{name:"synagogue",code:"f69b",type:"solid"},{name:"sync",code:"f021",type:"solid"},{name:"sync-alt",code:"f2f1",type:"solid"},{name:"syringe",code:"f48e",type:"solid"},{name:"table",code:"f0ce",type:"solid"},{name:"table-tennis",code:"f45d",type:"solid"},{name:"tablet",code:"f10a",type:"solid"},{name:"tablet-alt",code:"f3fa",type:"solid"},{name:"tablets",code:"f490",type:"solid"},{name:"tachometer-alt",code:"f3fd",type:"solid"},{name:"tag",code:"f02b",type:"solid"},{name:"tags",code:"f02c",type:"solid"},{name:"tape",code:"f4db",type:"solid"},{name:"tasks",code:"f0ae",type:"solid"},{name:"taxi",code:"f1ba",type:"solid"},{name:"teeth",code:"f62e",type:"solid"},{name:"teeth-open",code:"f62f",type:"solid"},{name:"temperature-high",code:"f769",type:"solid"},{name:"temperature-low",code:"f76b",type:"solid"},{name:"tenge",code:"f7d7",type:"solid"},{name:"terminal",code:"f120",type:"solid"},{name:"text-height",code:"f034",type:"solid"},{name:"text-width",code:"f035",type:"solid"},{name:"th",code:"f00a",type:"solid"},{name:"th-large",code:"f009",type:"solid"},{name:"th-list",code:"f00b",type:"solid"},{name:"theater-masks",code:"f630",type:"solid"},{name:"thermometer",code:"f491",type:"solid"},{name:"thermometer-empty",code:"f2cb",type:"solid"},{name:"thermometer-full",code:"f2c7",type:"solid"},{name:"thermometer-half",code:"f2c9",type:"solid"},{name:"thermometer-quarter",code:"f2ca",type:"solid"},{name:"thermometer-three-quarters",code:"f2c8",type:"solid"},{name:"thumbs-down",code:"f165",type:"solid"},{name:"thumbs-up",code:"f164",type:"solid"},{name:"thumbtack",code:"f08d",type:"solid"},{name:"ticket-alt",code:"f3ff",type:"solid"},{name:"times",code:"f00d",type:"solid"},{name:"times-circle",code:"f057",type:"solid"},{name:"tint",code:"f043",type:"solid"},{name:"tint-slash",code:"f5c7",type:"solid"},{name:"tired",code:"f5c8",type:"solid"},{name:"toggle-off",code:"f204",type:"solid"},{name:"toggle-on",code:"f205",type:"solid"},{name:"toilet",code:"f7d8",type:"solid"},{name:"toilet-paper",code:"f71e",type:"solid"},{name:"toilet-paper-slash",code:"e072",type:"solid"},{name:"toolbox",code:"f552",type:"solid"},{name:"tools",code:"f7d9",type:"solid"},{name:"tooth",code:"f5c9",type:"solid"},{name:"torah",code:"f6a0",type:"solid"},{name:"torii-gate",code:"f6a1",type:"solid"},{name:"tractor",code:"f722",type:"solid"},{name:"trademark",code:"f25c",type:"solid"},{name:"traffic-light",code:"f637",type:"solid"},{name:"trailer",code:"e041",type:"solid"},{name:"train",code:"f238",type:"solid"},{name:"tram",code:"f7da",type:"solid"},{name:"transgender",code:"f224",type:"solid"},{name:"transgender-alt",code:"f225",type:"solid"},{name:"trash",code:"f1f8",type:"solid"},{name:"trash-alt",code:"f2ed",type:"solid"},{name:"trash-restore",code:"f829",type:"solid"},{name:"trash-restore-alt",code:"f82a",type:"solid"},{name:"tree",code:"f1bb",type:"solid"},{name:"trophy",code:"f091",type:"solid"},{name:"truck",code:"f0d1",type:"solid"},{name:"truck-loading",code:"f4de",type:"solid"},{name:"truck-monster",code:"f63b",type:"solid"},{name:"truck-moving",code:"f4df",type:"solid"},{name:"truck-pickup",code:"f63c",type:"solid"},{name:"tshirt",code:"f553",type:"solid"},{name:"tty",code:"f1e4",type:"solid"},{name:"tv",code:"f26c",type:"solid"},{name:"umbrella",code:"f0e9",type:"solid"},{name:"umbrella-beach",code:"f5ca",type:"solid"},{name:"underline",code:"f0cd",type:"solid"},{name:"undo",code:"f0e2",type:"solid"},{name:"undo-alt",code:"f2ea",type:"solid"},{name:"universal-access",code:"f29a",type:"solid"},{name:"university",code:"f19c",type:"solid"},{name:"unlink",code:"f127",type:"solid"},{name:"unlock",code:"f09c",type:"solid"},{name:"unlock-alt",code:"f13e",type:"solid"},{name:"upload",code:"f093",type:"solid"},{name:"user",code:"f007",type:"solid"},{name:"user-alt",code:"f406",type:"solid"},{name:"user-alt-slash",code:"f4fa",type:"solid"},{name:"user-astronaut",code:"f4fb",type:"solid"},{name:"user-check",code:"f4fc",type:"solid"},{name:"user-circle",code:"f2bd",type:"solid"},{name:"user-clock",code:"f4fd",type:"solid"},{name:"user-cog",code:"f4fe",type:"solid"},{name:"user-edit",code:"f4ff",type:"solid"},{name:"user-friends",code:"f500",type:"solid"},{name:"user-graduate",code:"f501",type:"solid"},{name:"user-injured",code:"f728",type:"solid"},{name:"user-lock",code:"f502",type:"solid"},{name:"user-md",code:"f0f0",type:"solid"},{name:"user-minus",code:"f503",type:"solid"},{name:"user-ninja",code:"f504",type:"solid"},{name:"user-nurse",code:"f82f",type:"solid"},{name:"user-plus",code:"f234",type:"solid"},{name:"user-secret",code:"f21b",type:"solid"},{name:"user-shield",code:"f505",type:"solid"},{name:"user-slash",code:"f506",type:"solid"},{name:"user-tag",code:"f507",type:"solid"},{name:"user-tie",code:"f508",type:"solid"},{name:"user-times",code:"f235",type:"solid"},{name:"users",code:"f0c0",type:"solid"},{name:"users-cog",code:"f509",type:"solid"},{name:"users-slash",code:"e073",type:"solid"},{name:"utensil-spoon",code:"f2e5",type:"solid"},{name:"utensils",code:"f2e7",type:"solid"},{name:"vector-square",code:"f5cb",type:"solid"},{name:"venus",code:"f221",type:"solid"},{name:"venus-double",code:"f226",type:"solid"},{name:"venus-mars",code:"f228",type:"solid"},{name:"vest",code:"e085",type:"solid"},{name:"vest-patches",code:"e086",type:"solid"},{name:"vial",code:"f492",type:"solid"},{name:"vials",code:"f493",type:"solid"},{name:"video",code:"f03d",type:"solid"},{name:"video-slash",code:"f4e2",type:"solid"},{name:"vihara",code:"f6a7",type:"solid"},{name:"virus",code:"e074",type:"solid"},{name:"virus-slash",code:"e075",type:"solid"},{name:"viruses",code:"e076",type:"solid"},{name:"voicemail",code:"f897",type:"solid"},{name:"volleyball-ball",code:"f45f",type:"solid"},{name:"volume-down",code:"f027",type:"solid"},{name:"volume-mute",code:"f6a9",type:"solid"},{name:"volume-off",code:"f026",type:"solid"},{name:"volume-up",code:"f028",type:"solid"},{name:"vote-yea",code:"f772",type:"solid"},{name:"vr-cardboard",code:"f729",type:"solid"},{name:"walking",code:"f554",type:"solid"},{name:"wallet",code:"f555",type:"solid"},{name:"warehouse",code:"f494",type:"solid"},{name:"water",code:"f773",type:"solid"},{name:"wave-square",code:"f83e",type:"solid"},{name:"weight",code:"f496",type:"solid"},{name:"weight-hanging",code:"f5cd",type:"solid"},{name:"wheelchair",code:"f193",type:"solid"},{name:"wifi",code:"f1eb",type:"solid"},{name:"wind",code:"f72e",type:"solid"},{name:"window-close",code:"f410",type:"solid"},{name:"window-maximize",code:"f2d0",type:"solid"},{name:"window-minimize",code:"f2d1",type:"solid"},{name:"window-restore",code:"f2d2",type:"solid"},{name:"wine-bottle",code:"f72f",type:"solid"},{name:"wine-glass",code:"f4e3",type:"solid"},{name:"wine-glass-alt",code:"f5ce",type:"solid"},{name:"won-sign",code:"f159",type:"solid"},{name:"wrench",code:"f0ad",type:"solid"},{name:"x-ray",code:"f497",type:"solid"},{name:"yen-sign",code:"f157",type:"solid"},{name:"yin-yang",code:"f6ad",type:"solid"}];function yn(n){this.content=n}yn.prototype={constructor:yn,find:function(n){for(var t=0;t>1}};yn.from=function(n){if(n instanceof yn)return n;var t=[];if(n)for(var e in n)t.push(e,n[e]);return new yn(t)};function XC(n,t,e){for(let i=0;;i++){if(i==n.childCount||i==t.childCount)return n.childCount==t.childCount?null:e;let r=n.child(i),s=t.child(i);if(r==s){e+=r.nodeSize;continue}if(!r.sameMarkup(s))return e;if(r.isText&&r.text!=s.text){for(let o=0;r.text[o]==s.text[o];o++)e++;return e}if(r.content.size||s.content.size){let o=XC(r.content,s.content,e+1);if(o!=null)return o}e+=r.nodeSize}}function QC(n,t,e,i){for(let r=n.childCount,s=t.childCount;;){if(r==0||s==0)return r==s?null:{a:e,b:i};let o=n.child(--r),a=t.child(--s),c=o.nodeSize;if(o==a){e-=c,i-=c;continue}if(!o.sameMarkup(a))return{a:e,b:i};if(o.isText&&o.text!=a.text){let d=0,f=Math.min(o.text.length,a.text.length);for(;dt&&i(c,r+a,s||null,o)!==!1&&c.content.size){let f=a+1;c.nodesBetween(Math.max(0,t-f),Math.min(c.content.size,e-f),i,r+f)}a=d}}descendants(t){this.nodesBetween(0,this.size,t)}textBetween(t,e,i,r){let s="",o=!0;return this.nodesBetween(t,e,(a,c)=>{a.isText?(s+=a.text.slice(Math.max(t,c)-c,e-c),o=!i):a.isLeaf?(r?s+=typeof r=="function"?r(a):r:a.type.spec.leafText&&(s+=a.type.spec.leafText(a)),o=!i):!o&&a.isBlock&&(s+=i,o=!0)},0),s}append(t){if(!t.size)return this;if(!this.size)return t;let e=this.lastChild,i=t.firstChild,r=this.content.slice(),s=0;for(e.isText&&e.sameMarkup(i)&&(r[r.length-1]=e.withText(e.text+i.text),s=1);st)for(let s=0,o=0;ot&&((oe)&&(a.isText?a=a.cut(Math.max(0,t-o),Math.min(a.text.length,e-o)):a=a.cut(Math.max(0,t-o-1),Math.min(a.content.size,e-o-1))),i.push(a),r+=a.nodeSize),o=c}return new ge(i,r)}cutByIndex(t,e){return t==e?ge.empty:t==0&&e==this.content.length?this:new ge(this.content.slice(t,e))}replaceChild(t,e){let i=this.content[t];if(i==e)return this;let r=this.content.slice(),s=this.size+e.nodeSize-i.nodeSize;return r[t]=e,new ge(r,s)}addToStart(t){return new ge([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new ge(this.content.concat(t),this.size+t.nodeSize)}eq(t){if(this.content.length!=t.content.length)return!1;for(let e=0;ethis.size||t<0)throw new RangeError(`Position ${t} outside of fragment (${this})`);for(let i=0,r=0;;i++){let s=this.child(i),o=r+s.nodeSize;if(o>=t)return o==t||e>0?nu(i+1,o):nu(i,r);r=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(t=>t.toJSON()):null}static fromJSON(t,e){if(!e)return ge.empty;if(!Array.isArray(e))throw new RangeError("Invalid input for Fragment.fromJSON");return new ge(e.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return ge.empty;let e,i=0;for(let r=0;rthis.type.rank&&(e||(e=t.slice(0,r)),e.push(this),i=!0),e&&e.push(s)}}return e||(e=t.slice()),i||e.push(this),e}removeFromSet(t){for(let e=0;ei.type.rank-r.type.rank),e}};Mt.none=[];class Wu extends Error{}class Te{constructor(t,e,i){this.content=t,this.openStart=e,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,e){let i=eS(this.content,t+this.openStart,e);return i&&new Te(i,this.openStart,this.openEnd)}removeBetween(t,e){return new Te($C(this.content,t+this.openStart,e+this.openStart),this.openStart,this.openEnd)}eq(t){return this.content.eq(t.content)&&this.openStart==t.openStart&&this.openEnd==t.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let t={content:this.content.toJSON()};return this.openStart>0&&(t.openStart=this.openStart),this.openEnd>0&&(t.openEnd=this.openEnd),t}static fromJSON(t,e){if(!e)return Te.empty;let i=e.openStart||0,r=e.openEnd||0;if(typeof i!="number"||typeof r!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new Te(ge.fromJSON(t,e.content),i,r)}static maxOpen(t,e=!0){let i=0,r=0;for(let s=t.firstChild;s&&!s.isLeaf&&(e||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=t.lastChild;s&&!s.isLeaf&&(e||!s.type.spec.isolating);s=s.lastChild)r++;return new Te(t,i,r)}}Te.empty=new Te(ge.empty,0,0);function $C(n,t,e){let{index:i,offset:r}=n.findIndex(t),s=n.maybeChild(i),{index:o,offset:a}=n.findIndex(e);if(r==t||s.isText){if(a!=e&&!n.child(o).isText)throw new RangeError("Removing non-flat range");return n.cut(0,t).append(n.cut(e))}if(i!=o)throw new RangeError("Removing non-flat range");return n.replaceChild(i,s.copy($C(s.content,t-r-1,e-r-1)))}function eS(n,t,e,i){let{index:r,offset:s}=n.findIndex(t),o=n.maybeChild(r);if(s==t||o.isText)return i&&!i.canReplace(r,r,e)?null:n.cut(0,t).append(e).append(n.cut(t));let a=eS(o.content,t-s-1,e);return a&&n.replaceChild(r,o.copy(a))}function nI(n,t,e){if(e.openStart>n.depth)throw new Wu("Inserted content deeper than insertion position");if(n.depth-e.openStart!=t.depth-e.openEnd)throw new Wu("Inconsistent open depths");return tS(n,t,e,0)}function tS(n,t,e,i){let r=n.index(i),s=n.node(i);if(r==t.index(i)&&i=0&&n.isText&&n.sameMarkup(t[e])?t[e]=n.withText(t[e].text+n.text):t.push(n)}function nc(n,t,e,i){let r=(t||n).node(e),s=0,o=t?t.index(e):r.childCount;n&&(s=n.index(e),n.depth>e?s++:n.textOffset&&(Bo(n.nodeAfter,i),s++));for(let a=s;ar&&j0(n,t,r+1),o=i.depth>r&&j0(e,i,r+1),a=[];return nc(null,n,r,a),s&&o&&t.index(r)==e.index(r)?(nS(s,o),Bo(Lo(s,iS(n,t,e,i,r+1)),a)):(s&&Bo(Lo(s,Ku(n,t,r+1)),a),nc(t,e,r,a),o&&Bo(Lo(o,Ku(e,i,r+1)),a)),nc(i,null,r,a),new ge(a)}function Ku(n,t,e){let i=[];if(nc(null,n,e,i),n.depth>e){let r=j0(n,t,e+1);Bo(Lo(r,Ku(n,t,e+1)),i)}return nc(t,null,e,i),new ge(i)}function iI(n,t){let e=t.depth-n.openStart,r=t.node(e).copy(n.content);for(let s=e-1;s>=0;s--)r=t.node(s).copy(ge.from(r));return{start:r.resolveNoCache(n.openStart+e),end:r.resolveNoCache(r.content.size-n.openEnd-e)}}class Ec{constructor(t,e,i){this.pos=t,this.path=e,this.parentOffset=i,this.depth=e.length/3-1}resolveDepth(t){return t==null?this.depth:t<0?this.depth+t:t}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(t){return this.path[this.resolveDepth(t)*3]}index(t){return this.path[this.resolveDepth(t)*3+1]}indexAfter(t){return t=this.resolveDepth(t),this.index(t)+(t==this.depth&&!this.textOffset?0:1)}start(t){return t=this.resolveDepth(t),t==0?0:this.path[t*3-1]+1}end(t){return t=this.resolveDepth(t),this.start(t)+this.node(t).content.size}before(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position before the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]}after(t){if(t=this.resolveDepth(t),!t)throw new RangeError("There is no position after the top-level node");return t==this.depth+1?this.pos:this.path[t*3-1]+this.path[t*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let t=this.parent,e=this.index(this.depth);if(e==t.childCount)return null;let i=this.pos-this.path[this.path.length-1],r=t.child(e);return i?t.child(e).cut(i):r}get nodeBefore(){let t=this.index(this.depth),e=this.pos-this.path[this.path.length-1];return e?this.parent.child(t).cut(0,e):t==0?null:this.parent.child(t-1)}posAtIndex(t,e){e=this.resolveDepth(e);let i=this.path[e*3],r=e==0?0:this.path[e*3-1]+1;for(let s=0;s0;e--)if(this.start(e)<=t&&this.end(e)>=t)return e;return 0}blockRange(t=this,e){if(t.pos=0;i--)if(t.pos<=this.end(i)&&(!e||e(this.node(i))))return new Gu(this,t,i);return null}sameParent(t){return this.pos-this.parentOffset==t.pos-t.parentOffset}max(t){return t.pos>this.pos?t:this}min(t){return t.pos=0&&e<=t.content.size))throw new RangeError("Position "+e+" out of range");let i=[],r=0,s=e;for(let o=t;;){let{index:a,offset:c}=o.content.findIndex(s),d=s-c;if(i.push(o,a,r+c),!d||(o=o.child(a),o.isText))break;s=d-1,r+=c+1}return new Ec(e,i,s)}static resolveCached(t,e){for(let r=0;rt&&this.nodesBetween(t,e,s=>(i.isInSet(s.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let t=this.type.name;return this.content.size&&(t+="("+this.content.toStringInner()+")"),rS(this.marks,t)}contentMatchAt(t){let e=this.type.contentMatch.matchFragment(this.content,0,t);if(!e)throw new Error("Called contentMatchAt on a node with invalid content");return e}canReplace(t,e,i=ge.empty,r=0,s=i.childCount){let o=this.contentMatchAt(t).matchFragment(i,r,s),a=o&&o.matchFragment(this.content,e);if(!a||!a.validEnd)return!1;for(let c=r;ce.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let t={type:this.type.name};for(let e in this.attrs){t.attrs=this.attrs;break}return this.content.size&&(t.content=this.content.toJSON()),this.marks.length&&(t.marks=this.marks.map(e=>e.toJSON())),t}static fromJSON(t,e){if(!e)throw new RangeError("Invalid input for Node.fromJSON");let i=null;if(e.marks){if(!Array.isArray(e.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=e.marks.map(t.markFromJSON)}if(e.type=="text"){if(typeof e.text!="string")throw new RangeError("Invalid text node in JSON");return t.text(e.text,i)}let r=ge.fromJSON(t,e.content);return t.nodeType(e.type).create(e.attrs,r,i)}};Fo.prototype.text=void 0;class Yu extends Fo{constructor(t,e,i,r){if(super(t,e,null,r),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):rS(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(t,e){return this.text.slice(t,e)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new Yu(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new Yu(this.type,this.attrs,t,this.marks)}cut(t=0,e=this.text.length){return t==0&&e==this.text.length?this:this.withText(this.text.slice(t,e))}eq(t){return this.sameMarkup(t)&&this.text==t.text}toJSON(){let t=super.toJSON();return t.text=this.text,t}}function rS(n,t){for(let e=n.length-1;e>=0;e--)t=n[e].type.name+"("+t+")";return t}class Ko{constructor(t){this.validEnd=t,this.next=[],this.wrapCache=[]}static parse(t,e){let i=new oI(t,e);if(i.next==null)return Ko.empty;let r=sS(i);i.next&&i.err("Unexpected trailing text");let s=hI(fI(r));return pI(s,i),s}matchType(t){for(let e=0;ed.createAndFill()));for(let d=0;d=this.next.length)throw new RangeError(`There's no ${t}th edge in this content match`);return this.next[t]}toString(){let t=[];function e(i){t.push(i);for(let r=0;r{let s=r+(i.validEnd?"*":" ")+" ";for(let o=0;o"+t.indexOf(i.next[o].next);return s}).join(` `)}}Ko.empty=new Ko(!0);class oI{constructor(t,e){this.string=t,this.nodeTypes=e,this.inline=null,this.pos=0,this.tokens=t.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(t){return this.next==t&&(this.pos++||!0)}err(t){throw new SyntaxError(t+" (in content expression '"+this.string+"')")}}function sS(n){let t=[];do t.push(aI(n));while(n.eat("|"));return t.length==1?t[0]:{type:"choice",exprs:t}}function aI(n){let t=[];do t.push(lI(n));while(n.next&&n.next!=")"&&n.next!="|");return t.length==1?t[0]:{type:"seq",exprs:t}}function lI(n){let t=uI(n);for(;;)if(n.eat("+"))t={type:"plus",expr:t};else if(n.eat("*"))t={type:"star",expr:t};else if(n.eat("?"))t={type:"opt",expr:t};else if(n.eat("{"))t=cI(n,t);else break;return t}function Nv(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let t=Number(n.next);return n.pos++,t}function cI(n,t){let e=Nv(n),i=e;return n.eat(",")&&(n.next!="}"?i=Nv(n):i=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:e,max:i,expr:t}}function dI(n,t){let e=n.nodeTypes,i=e[t];if(i)return[i];let r=[];for(let s in e){let o=e[s];o.groups.indexOf(t)>-1&&r.push(o)}return r.length==0&&n.err("No node type or group '"+t+"' found"),r}function uI(n){if(n.eat("(")){let t=sS(n);return n.eat(")")||n.err("Missing closing paren"),t}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let t=dI(n,n.next).map(e=>(n.inline==null?n.inline=e.isInline:n.inline!=e.isInline&&n.err("Mixing inline and block content"),{type:"name",value:e}));return n.pos++,t.length==1?t[0]:{type:"choice",exprs:t}}}function fI(n){let t=[[]];return r(s(n,0),e()),t;function e(){return t.push([])-1}function i(o,a,c){let d={term:c,to:a};return t[o].push(d),d}function r(o,a){o.forEach(c=>c.to=a)}function s(o,a){if(o.type=="choice")return o.exprs.reduce((c,d)=>c.concat(s(d,a)),[]);if(o.type=="seq")for(let c=0;;c++){let d=s(o.exprs[c],a);if(c==o.exprs.length-1)return d;r(d,a=e())}else if(o.type=="star"){let c=e();return i(a,c),r(s(o.expr,c),c),[i(c)]}else if(o.type=="plus"){let c=e();return r(s(o.expr,a),c),r(s(o.expr,c),c),[i(c)]}else{if(o.type=="opt")return[i(a)].concat(s(o.expr,a));if(o.type=="range"){let c=a;for(let d=0;d{n[o].forEach(({term:a,to:c})=>{if(!a)return;let d;for(let f=0;f{d||r.push([a,d=[]]),d.indexOf(f)==-1&&d.push(f)})})});let s=t[i.join(",")]=new Ko(i.indexOf(n.length-1)>-1);for(let o=0;o-1}allowsMarks(t){if(this.markSet==null)return!0;for(let e=0;ei[s]=new dS(s,e,o));let r=e.spec.topNode||"doc";if(!i[r])throw new RangeError("Schema is missing its top node type ('"+r+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};class mI{constructor(t){this.hasDefault=Object.prototype.hasOwnProperty.call(t,"default"),this.default=t.default}get isRequired(){return!this.hasDefault}}class Jf{constructor(t,e,i,r){this.name=t,this.rank=e,this.schema=i,this.spec=r,this.attrs=cS(r.attrs),this.excluded=null;let s=aS(this.attrs);this.instance=s?new Mt(this,s):null}create(t=null){return!t&&this.instance?this.instance:new Mt(this,lS(this.attrs,t))}static compile(t,e){let i=Object.create(null),r=0;return t.forEach((s,o)=>i[s]=new Jf(s,r++,e,o)),i}removeFromSet(t){for(var e=0;e-1}}class gI{constructor(t){this.cached=Object.create(null);let e=this.spec={};for(let r in t)e[r]=t[r];e.nodes=yn.from(t.nodes),e.marks=yn.from(t.marks||{}),this.nodes=Rv.compile(this.spec.nodes,this),this.marks=Jf.compile(this.spec.marks,this);let i=Object.create(null);for(let r in this.nodes){if(r in this.marks)throw new RangeError(r+" can not be both a node and a mark");let s=this.nodes[r],o=s.spec.content||"",a=s.spec.marks;s.contentMatch=i[o]||(i[o]=Ko.parse(o,this.nodes)),s.inlineContent=s.contentMatch.inlineContent,s.markSet=a=="_"?null:a?Bv(this,a.split(" ")):a==""||!s.inlineContent?[]:null}for(let r in this.marks){let s=this.marks[r],o=s.spec.excludes;s.excluded=o==null?[s]:o==""?[]:Bv(this,o.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(t,e=null,i,r){if(typeof t=="string")t=this.nodeType(t);else if(t instanceof Rv){if(t.schema!=this)throw new RangeError("Node type from different schema used ("+t.name+")")}else throw new RangeError("Invalid node type: "+t);return t.createChecked(e,i,r)}text(t,e){let i=this.nodes.text;return new Yu(i,i.defaultAttrs,t,Mt.setFrom(e))}mark(t,e){return typeof t=="string"&&(t=this.marks[t]),t.create(e)}nodeFromJSON(t){return Fo.fromJSON(this,t)}markFromJSON(t){return Mt.fromJSON(this,t)}nodeType(t){let e=this.nodes[t];if(!e)throw new RangeError("Unknown node type: "+t);return e}}function Bv(n,t){let e=[];for(let i=0;i-1)&&e.push(o=c)}if(!o)throw new SyntaxError("Unknown mark type: '"+t[i]+"'")}return e}class ol{constructor(t,e){this.schema=t,this.rules=e,this.tags=[],this.styles=[],e.forEach(i=>{i.tag?this.tags.push(i):i.style&&this.styles.push(i)}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let r=t.nodes[i.node];return r.contentMatch.matchType(r)})}parse(t,e={}){let i=new Fv(this,e,!1);return i.addAll(t,e.from,e.to),i.finish()}parseSlice(t,e={}){let i=new Fv(this,e,!0);return i.addAll(t,e.from,e.to),Te.maxOpen(i.finish())}matchTag(t,e,i){for(let r=i?this.tags.indexOf(i)+1:0;rt.length&&(a.charCodeAt(t.length)!=61||a.slice(t.length+1)!=e))){if(o.getAttrs){let c=o.getAttrs(e);if(c===!1)continue;o.attrs=c||void 0}return o}}}static schemaRules(t){let e=[];function i(r){let s=r.priority==null?50:r.priority,o=0;for(;o{i(o=qv(o)),o.mark||o.ignore||o.clearMark||(o.mark=r)})}for(let r in t.nodes){let s=t.nodes[r].spec.parseDOM;s&&s.forEach(o=>{i(o=qv(o)),o.node||o.ignore||o.mark||(o.node=r)})}return e}static fromSchema(t){return t.cached.domParser||(t.cached.domParser=new ol(t,ol.schemaRules(t)))}}const uS={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},_I={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},fS={ol:!0,ul:!0},Ju=1,Zu=2,ic=4;function Lv(n,t,e){return t!=null?(t?Ju:0)|(t==="full"?Zu:0):n&&n.whitespace=="pre"?Ju|Zu:e&~ic}class iu{constructor(t,e,i,r,s,o,a){this.type=t,this.attrs=e,this.marks=i,this.pendingMarks=r,this.solid=s,this.options=a,this.content=[],this.activeMarks=Mt.none,this.stashMarks=[],this.match=o||(a&ic?null:t.contentMatch)}findWrapping(t){if(!this.match){if(!this.type)return[];let e=this.type.contentMatch.fillBefore(ge.from(t));if(e)this.match=this.type.contentMatch.matchFragment(e);else{let i=this.type.contentMatch,r;return(r=i.findWrapping(t.type))?(this.match=i,r):null}}return this.match.findWrapping(t.type)}finish(t){if(!(this.options&Ju)){let i=this.content[this.content.length-1],r;if(i&&i.isText&&(r=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==r[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-r[0].length))}}let e=ge.from(this.content);return!t&&this.match&&(e=e.append(this.match.fillBefore(ge.empty,!0))),this.type?this.type.create(this.attrs,e,this.marks):e}popFromStashMark(t){for(let e=this.stashMarks.length-1;e>=0;e--)if(t.eq(this.stashMarks[e]))return this.stashMarks.splice(e,1)[0]}applyPending(t){for(let e=0,i=this.pendingMarks;ethis.addAll(t)),o&&this.sync(a),this.needsBlock=c}else this.withStyleRules(t,()=>{this.addElementByRule(t,s,s.consuming===!1?r:void 0)})}leafFallback(t){t.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(t.ownerDocument.createTextNode(` `))}ignoreFallback(t){t.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"))}readStyles(t){let e=Mt.none,i=Mt.none;for(let r=0;r{o.clearMark(a)&&(i=a.addToSet(i))}):e=this.parser.schema.marks[o.mark].create(o.attrs).addToSet(e),o.consuming===!1)s=o;else break}return[e,i]}addElementByRule(t,e,i){let r,s,o;e.node?(s=this.parser.schema.nodes[e.node],s.isLeaf?this.insertNode(s.create(e.attrs))||this.leafFallback(t):r=this.enter(s,e.attrs||null,e.preserveWhitespace)):(o=this.parser.schema.marks[e.mark].create(e.attrs),this.addPendingMark(o));let a=this.top;if(s&&s.isLeaf)this.findInside(t);else if(i)this.addElement(t,i);else if(e.getContent)this.findInside(t),e.getContent(t,this.parser.schema).forEach(c=>this.insertNode(c));else{let c=t;typeof e.contentElement=="string"?c=t.querySelector(e.contentElement):typeof e.contentElement=="function"?c=e.contentElement(t):e.contentElement&&(c=e.contentElement),this.findAround(t,c,!0),this.addAll(c)}r&&this.sync(a)&&this.open--,o&&this.removePendingMark(o,a)}addAll(t,e,i){let r=e||0;for(let s=e?t.childNodes[e]:t.firstChild,o=i==null?null:t.childNodes[i];s!=o;s=s.nextSibling,++r)this.findAtPoint(t,r),this.addDOM(s);this.findAtPoint(t,r)}findPlace(t){let e,i;for(let r=this.open;r>=0;r--){let s=this.nodes[r],o=s.findWrapping(t);if(o&&(!e||e.length>o.length)&&(e=o,i=s,!o.length)||s.solid)break}if(!e)return!1;this.sync(i);for(let r=0;rthis.open){for(;e>this.open;e--)this.nodes[e-1].content.push(this.nodes[e].finish(t));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(t){for(let e=this.open;e>=0;e--)if(this.nodes[e]==t)return this.open=e,!0;return!1}get currentPos(){this.closeExtra();let t=0;for(let e=this.open;e>=0;e--){let i=this.nodes[e].content;for(let r=i.length-1;r>=0;r--)t+=i[r].nodeSize;e&&t++}return t}findAtPoint(t,e){if(this.find)for(let i=0;i-1)return t.split(/\s*\|\s*/).some(this.matchesContext,this);let e=t.split("/"),i=this.options.context,r=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(r?0:1),o=(a,c)=>{for(;a>=0;a--){let d=e[a];if(d==""){if(a==e.length-1||a==0)continue;for(;c>=s;c--)if(o(a-1,c))return!0;return!1}else{let f=c>0||c==0&&r?this.nodes[c].type:i&&c>=s?i.node(c-s).type:null;if(!f||f.name!=d&&f.groups.indexOf(d)==-1)return!1;c--}}return!0};return o(e.length-1,this.open)}textblockFromContext(){let t=this.options.context;if(t)for(let e=t.depth;e>=0;e--){let i=t.node(e).contentMatchAt(t.indexAfter(e)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let e in this.parser.schema.nodes){let i=this.parser.schema.nodes[e];if(i.isTextblock&&i.defaultAttrs)return i}}addPendingMark(t){let e=wI(t,this.top.pendingMarks);e&&this.top.stashMarks.push(e),this.top.pendingMarks=t.addToSet(this.top.pendingMarks)}removePendingMark(t,e){for(let i=this.open;i>=0;i--){let r=this.nodes[i];if(r.pendingMarks.lastIndexOf(t)>-1)r.pendingMarks=t.removeFromSet(r.pendingMarks);else{r.activeMarks=t.removeFromSet(r.activeMarks);let o=r.popFromStashMark(t);o&&r.type&&r.type.allowsMarkType(o.type)&&(r.activeMarks=o.addToSet(r.activeMarks))}if(r==e)break}}}function yI(n){for(let t=n.firstChild,e=null;t;t=t.nextSibling){let i=t.nodeType==1?t.nodeName.toLowerCase():null;i&&fS.hasOwnProperty(i)&&e?(e.appendChild(t),t=e):i=="li"?e=t:i&&(e=null)}}function bI(n,t){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,t)}function vI(n){let t=/\s*([\w-]+)\s*:\s*([^;]+)/g,e,i=[];for(;e=t.exec(n);)i.push(e[1],e[2].trim());return i}function qv(n){let t={};for(let e in n)t[e]=n[e];return t}function xI(n,t){let e=t.schema.nodes;for(let i in e){let r=e[i];if(!r.allowsMarkType(n))continue;let s=[],o=a=>{s.push(a);for(let c=0;c{if(s.length||o.marks.length){let a=0,c=0;for(;a=0;r--){let s=this.serializeMark(t.marks[r],t.isInline,e);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(t,e,i={}){let r=this.marks[t.type.name];return r&&kr.renderSpec(Up(i),r(t,e))}static renderSpec(t,e,i=null){if(typeof e=="string")return{dom:t.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let r=e[0],s=r.indexOf(" ");s>0&&(i=r.slice(0,s),r=r.slice(s+1));let o,a=i?t.createElementNS(i,r):t.createElement(r),c=e[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let f in c)if(c[f]!=null){let h=f.indexOf(" ");h>0?a.setAttributeNS(f.slice(0,h),f.slice(h+1),c[f]):a.setAttribute(f,c[f])}}for(let f=d;fd)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}else{let{dom:g,contentDOM:m}=kr.renderSpec(t,h,i);if(a.appendChild(g),m){if(o)throw new RangeError("Multiple content holes");o=m}}}return{dom:a,contentDOM:o}}static fromSchema(t){return t.cached.domSerializer||(t.cached.domSerializer=new kr(this.nodesFromSchema(t),this.marksFromSchema(t)))}static nodesFromSchema(t){let e=Hv(t.nodes);return e.text||(e.text=i=>i.text),e}static marksFromSchema(t){return Hv(t.marks)}}function Hv(n){let t={};for(let e in n){let i=n[e].spec.toDOM;i&&(t[e]=i)}return t}function Up(n){return n.document||window.document}const hS=65535,pS=Math.pow(2,16);function kI(n,t){return n+t*pS}function zv(n){return n&hS}function CI(n){return(n-(n&hS))/pS}const mS=1,gS=2,gu=4,_S=8;class K0{constructor(t,e,i){this.pos=t,this.delInfo=e,this.recover=i}get deleted(){return(this.delInfo&_S)>0}get deletedBefore(){return(this.delInfo&(mS|gu))>0}get deletedAfter(){return(this.delInfo&(gS|gu))>0}get deletedAcross(){return(this.delInfo&gu)>0}}class gi{constructor(t,e=!1){if(this.ranges=t,this.inverted=e,!t.length&&gi.empty)return gi.empty}recover(t){let e=0,i=zv(t);if(!this.inverted)for(let r=0;rt)break;let d=this.ranges[a+s],f=this.ranges[a+o],h=c+d;if(t<=h){let g=d?t==c?-1:t==h?1:e:e,m=c+r+(g<0?0:f);if(i)return m;let y=t==(e<0?c:h)?null:kI(a/3,t-c),k=t==c?gS:t==h?mS:gu;return(e<0?t!=c:t!=h)&&(k|=_S),new K0(m,k,y)}r+=f-d}return i?t+r:new K0(t+r,0,null)}touches(t,e){let i=0,r=zv(e),s=this.inverted?2:1,o=this.inverted?1:2;for(let a=0;at)break;let d=this.ranges[a+s],f=c+d;if(t<=f&&a==r*3)return!0;i+=this.ranges[a+o]-d}return!1}forEach(t){let e=this.inverted?2:1,i=this.inverted?1:2;for(let r=0,s=0;r=0;e--){let r=t.getMirror(e);this.appendMap(t.maps[e].invert(),r!=null&&r>e?i-r-1:void 0)}}invert(){let t=new Ka;return t.appendMappingInverted(this),t}map(t,e=1){if(this.mirror)return this._map(t,e,!0);for(let i=this.from;is&&c!o.isAtom||!a.type.allowsMarkType(this.mark.type)?o:o.mark(this.mark.addToSet(o.marks)),r),e.openStart,e.openEnd);return Qt.fromReplace(t,this.from,this.to,s)}invert(){return new Cr(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new As(e.pos,i.pos,this.mark)}merge(t){return t instanceof As&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new As(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new As(e.from,e.to,t.markFromJSON(e.mark))}}Bn.jsonID("addMark",As);class Cr extends Bn{constructor(t,e,i){super(),this.from=t,this.to=e,this.mark=i}apply(t){let e=t.slice(this.from,this.to),i=new Te(f_(e.content,r=>r.mark(this.mark.removeFromSet(r.marks)),t),e.openStart,e.openEnd);return Qt.fromReplace(t,this.from,this.to,i)}invert(){return new As(this.from,this.to,this.mark)}map(t){let e=t.mapResult(this.from,1),i=t.mapResult(this.to,-1);return e.deleted&&i.deleted||e.pos>=i.pos?null:new Cr(e.pos,i.pos,this.mark)}merge(t){return t instanceof Cr&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new Cr(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Cr(e.from,e.to,t.markFromJSON(e.mark))}}Bn.jsonID("removeMark",Cr);class Ds extends Bn{constructor(t,e){super(),this.pos=t,this.mark=e}apply(t){let e=t.nodeAt(this.pos);if(!e)return Qt.fail("No node at mark step's position");let i=e.type.create(e.attrs,null,this.mark.addToSet(e.marks));return Qt.fromReplace(t,this.pos,this.pos+1,new Te(ge.from(i),0,e.isLeaf?0:1))}invert(t){let e=t.nodeAt(this.pos);if(e){let i=this.mark.addToSet(e.marks);if(i.length==e.marks.length){for(let r=0;ri.pos?null:new fn(e.pos,i.pos,r,s,this.slice,this.insert,this.structure)}toJSON(){let t={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if(typeof e.from!="number"||typeof e.to!="number"||typeof e.gapFrom!="number"||typeof e.gapTo!="number"||typeof e.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new fn(e.from,e.to,e.gapFrom,e.gapTo,Te.fromJSON(t,e.slice),e.insert,!!e.structure)}}Bn.jsonID("replaceAround",fn);function G0(n,t,e){let i=n.resolve(t),r=e-t,s=i.depth;for(;r>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,r--;if(r>0){let o=i.node(s).maybeChild(i.indexAfter(s));for(;r>0;){if(!o||o.isLeaf)return!0;o=o.firstChild,r--}}return!1}function SI(n,t,e,i){let r=[],s=[],o,a;n.doc.nodesBetween(t,e,(c,d,f)=>{if(!c.isInline)return;let h=c.marks;if(!i.isInSet(h)&&f.type.allowsMarkType(i.type)){let g=Math.max(d,t),m=Math.min(d+c.nodeSize,e),y=i.addToSet(h);for(let k=0;kn.step(c)),s.forEach(c=>n.step(c))}function TI(n,t,e,i){let r=[],s=0;n.doc.nodesBetween(t,e,(o,a)=>{if(!o.isInline)return;s++;let c=null;if(i instanceof Jf){let d=o.marks,f;for(;f=i.isInSet(d);)(c||(c=[])).push(f),d=f.removeFromSet(d)}else i?i.isInSet(o.marks)&&(c=[i]):c=o.marks;if(c&&c.length){let d=Math.min(a+o.nodeSize,e);for(let f=0;fn.step(new Cr(o.from,o.to,o.style)))}function EI(n,t,e,i=e.contentMatch){let r=n.doc.nodeAt(t),s=[],o=t+1;for(let a=0;a=0;a--)n.step(s[a])}function OI(n,t,e){return(t==0||n.canReplace(t,n.childCount))&&(e==n.childCount||n.canReplace(0,e))}function gl(n){let e=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let i=n.depth;;--i){let r=n.$from.node(i),s=n.$from.index(i),o=n.$to.indexAfter(i);if(ie;y--)k||i.index(y)>0?(k=!0,f=ge.from(i.node(y).copy(f)),h++):c--;let g=ge.empty,m=0;for(let y=s,k=!1;y>e;y--)k||r.after(y+1)=0;o--){if(i.size){let a=e[o].type.contentMatch.matchFragment(i);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=ge.from(e[o].type.create(e[o].attrs,i))}let r=t.start,s=t.end;n.step(new fn(r,s,r,s,new Te(i,0,0),e.length,!0))}function NI(n,t,e,i,r){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=n.steps.length;n.doc.nodesBetween(t,e,(o,a)=>{if(o.isTextblock&&!o.hasMarkup(i,r)&&II(n.doc,n.mapping.slice(s).map(a),i)){n.clearIncompatible(n.mapping.slice(s).map(a,1),i);let c=n.mapping.slice(s),d=c.map(a,1),f=c.map(a+o.nodeSize,1);return n.step(new fn(d,f,d+1,f-1,new Te(ge.from(i.create(r,null,o.marks)),0,0),1,!0)),!1}})}function II(n,t,e){let i=n.resolve(t),r=i.index();return i.parent.canReplaceWith(r,r+1,e)}function RI(n,t,e,i,r){let s=n.doc.nodeAt(t);if(!s)throw new RangeError("No node at given position");e||(e=s.type);let o=e.create(i,null,r||s.marks);if(s.isLeaf)return n.replaceWith(t,t+s.nodeSize,o);if(!e.validContent(s.content))throw new RangeError("Invalid content for node type "+e.name);n.step(new fn(t,t+s.nodeSize,t+1,t+s.nodeSize-1,new Te(ge.from(o),0,0),1,!0))}function Ga(n,t,e=1,i){let r=n.resolve(t),s=r.depth-e,o=i&&i[i.length-1]||r.parent;if(s<0||r.parent.type.spec.isolating||!r.parent.canReplace(r.index(),r.parent.childCount)||!o.type.validContent(r.parent.content.cutByIndex(r.index(),r.parent.childCount)))return!1;for(let d=r.depth-1,f=e-2;d>s;d--,f--){let h=r.node(d),g=r.index(d);if(h.type.spec.isolating)return!1;let m=h.content.cutByIndex(g,h.childCount),y=i&&i[f+1];y&&(m=m.replaceChild(0,y.type.create(y.attrs)));let k=i&&i[f]||h;if(!h.canReplace(g+1,h.childCount)||!k.type.validContent(m))return!1}let a=r.indexAfter(s),c=i&&i[0];return r.node(s).canReplaceWith(a,a,c?c.type:r.node(s+1).type)}function BI(n,t,e=1,i){let r=n.doc.resolve(t),s=ge.empty,o=ge.empty;for(let a=r.depth,c=r.depth-e,d=e-1;a>c;a--,d--){s=ge.from(r.node(a).copy(s));let f=i&&i[d];o=ge.from(f?f.type.create(f.attrs,o):r.node(a).copy(o))}n.step(new vn(t,t,new Te(s.append(o),e,e),!0))}function Xs(n,t){let e=n.resolve(t),i=e.index();return yS(e.nodeBefore,e.nodeAfter)&&e.parent.canReplace(i,i+1)}function yS(n,t){return!!(n&&t&&!n.isLeaf&&n.canAppend(t))}function Zf(n,t,e=-1){let i=n.resolve(t);for(let r=i.depth;;r--){let s,o,a=i.index(r);if(r==i.depth?(s=i.nodeBefore,o=i.nodeAfter):e>0?(s=i.node(r+1),a++,o=i.node(r).maybeChild(a)):(s=i.node(r).maybeChild(a-1),o=i.node(r+1)),s&&!s.isTextblock&&yS(s,o)&&i.node(r).canReplace(a,a+1))return t;if(r==0)break;t=e<0?i.before(r):i.after(r)}}function LI(n,t,e){let i=new vn(t-e,t+e,Te.empty,!0);n.step(i)}function FI(n,t,e){let i=n.resolve(t);if(i.parent.canReplaceWith(i.index(),i.index(),e))return t;if(i.parentOffset==0)for(let r=i.depth-1;r>=0;r--){let s=i.index(r);if(i.node(r).canReplaceWith(s,s,e))return i.before(r+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let r=i.depth-1;r>=0;r--){let s=i.indexAfter(r);if(i.node(r).canReplaceWith(s,s,e))return i.after(r+1);if(s=0;o--){let a=o==i.depth?0:i.pos<=(i.start(o+1)+i.end(o+1))/2?-1:1,c=i.index(o)+(a>0?1:0),d=i.node(o),f=!1;if(s==1)f=d.canReplace(c,c,r);else{let h=d.contentMatchAt(c).findWrapping(r.firstChild.type);f=h&&d.canReplaceWith(c,c,h[0])}if(f)return a==0?i.pos:a<0?i.before(o+1):i.after(o+1)}return null}function p_(n,t,e=t,i=Te.empty){if(t==e&&!i.size)return null;let r=n.resolve(t),s=n.resolve(e);return vS(r,s,i)?new vn(t,e,i):new qI(r,s,i).fit()}function vS(n,t,e){return!e.openStart&&!e.openEnd&&n.start()==t.start()&&n.parent.canReplace(n.index(),t.index(),e.content)}class qI{constructor(t,e,i){this.$from=t,this.$to=e,this.unplaced=i,this.frontier=[],this.placed=ge.empty;for(let r=0;r<=t.depth;r++){let s=t.node(r);this.frontier.push({type:s.type,match:s.contentMatchAt(t.indexAfter(r))})}for(let r=t.depth;r>0;r--)this.placed=ge.from(t.node(r).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let d=this.findFittable();d?this.placeNodes(d):this.openMore()||this.dropNode()}let t=this.mustMoveInline(),e=this.placed.size-this.depth-this.$from.depth,i=this.$from,r=this.close(t<0?this.$to:i.doc.resolve(t));if(!r)return null;let s=this.placed,o=i.depth,a=r.depth;for(;o&&a&&s.childCount==1;)s=s.firstChild.content,o--,a--;let c=new Te(s,o,a);return t>-1?new fn(i.pos,t,this.$to.pos,this.$to.end(),c,e):c.size||i.pos!=this.$to.pos?new vn(i.pos,r.pos,c):null}findFittable(){let t=this.unplaced.openStart;for(let e=this.unplaced.content,i=0,r=this.unplaced.openEnd;i1&&(r=0),s.type.spec.isolating&&r<=i){t=i;break}e=s.content}for(let e=1;e<=2;e++)for(let i=e==1?t:this.unplaced.openStart;i>=0;i--){let r,s=null;i?(s=jp(this.unplaced.content,i-1).firstChild,r=s.content):r=this.unplaced.content;let o=r.firstChild;for(let a=this.depth;a>=0;a--){let{type:c,match:d}=this.frontier[a],f,h=null;if(e==1&&(o?d.matchType(o.type)||(h=d.fillBefore(ge.from(o),!1)):s&&c.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:a,parent:s,inject:h};if(e==2&&o&&(f=d.findWrapping(o.type)))return{sliceDepth:i,frontierDepth:a,parent:s,wrap:f};if(s&&d.matchType(s.type))break}}}openMore(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=jp(t,e);return!r.childCount||r.firstChild.isLeaf?!1:(this.unplaced=new Te(t,e+1,Math.max(i,r.size+e>=t.size-i?e+1:0)),!0)}dropNode(){let{content:t,openStart:e,openEnd:i}=this.unplaced,r=jp(t,e);if(r.childCount<=1&&e>0){let s=t.size-e<=e+r.size;this.unplaced=new Te(Vl(t,e-1,1),e-1,s?e-1:i)}else this.unplaced=new Te(Vl(t,e,1),e,i)}placeNodes({sliceDepth:t,frontierDepth:e,parent:i,inject:r,wrap:s}){for(;this.depth>e;)this.closeFrontierNode();if(s)for(let k=0;k1||c==0||k.content.size)&&(h=C,f.push(xS(k.mark(g.allowedMarks(k.marks)),d==1?c:0,d==a.childCount?m:-1)))}let y=d==a.childCount;y||(m=-1),this.placed=jl(this.placed,e,ge.from(f)),this.frontier[e].match=h,y&&m<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let k=0,C=a;k1&&r==this.$to.end(--i);)++r;return r}findCloseLevel(t){e:for(let e=Math.min(this.depth,t.depth);e>=0;e--){let{match:i,type:r}=this.frontier[e],s=e=0;a--){let{match:c,type:d}=this.frontier[a],f=Wp(t,a,d,c,!0);if(!f||f.childCount)continue e}return{depth:e,fit:o,move:s?t.doc.resolve(t.after(e+1)):t}}}}close(t){let e=this.findCloseLevel(t);if(!e)return null;for(;this.depth>e.depth;)this.closeFrontierNode();e.fit.childCount&&(this.placed=jl(this.placed,e.depth,e.fit)),t=e.move;for(let i=e.depth+1;i<=t.depth;i++){let r=t.node(i),s=r.type.contentMatch.fillBefore(r.content,!0,t.index(i));this.openFrontierNode(r.type,r.attrs,s)}return t}openFrontierNode(t,e=null,i){let r=this.frontier[this.depth];r.match=r.match.matchType(t),this.placed=jl(this.placed,this.depth,ge.from(t.create(e,i))),this.frontier.push({type:t,match:t.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(ge.empty,!0);e.childCount&&(this.placed=jl(this.placed,this.frontier.length,e))}}function Vl(n,t,e){return t==0?n.cutByIndex(e,n.childCount):n.replaceChild(0,n.firstChild.copy(Vl(n.firstChild.content,t-1,e)))}function jl(n,t,e){return t==0?n.append(e):n.replaceChild(n.childCount-1,n.lastChild.copy(jl(n.lastChild.content,t-1,e)))}function jp(n,t){for(let e=0;e1&&(i=i.replaceChild(0,xS(i.firstChild,t-1,i.childCount==1?e-1:0))),t>0&&(i=n.type.contentMatch.fillBefore(i).append(i),e<=0&&(i=i.append(n.type.contentMatch.matchFragment(i).fillBefore(ge.empty,!0)))),n.copy(i)}function Wp(n,t,e,i,r){let s=n.node(t),o=r?n.indexAfter(t):n.index(t);if(o==s.childCount&&!e.compatibleContent(s.type))return null;let a=i.fillBefore(s.content,!0,o);return a&&!HI(e,s.content,o)?a:null}function HI(n,t,e){for(let i=e;i0;g--,m--){let y=r.node(g).type.spec;if(y.defining||y.definingAsContext||y.isolating)break;o.indexOf(g)>-1?a=g:r.before(g)==m&&o.splice(1,0,-g)}let c=o.indexOf(a),d=[],f=i.openStart;for(let g=i.content,m=0;;m++){let y=g.firstChild;if(d.push(y),m==i.openStart)break;g=y.content}for(let g=f-1;g>=0;g--){let m=d[g],y=zI(m.type);if(y&&!m.sameMarkup(r.node(Math.abs(a)-1)))f=g;else if(y||!m.type.isTextblock)break}for(let g=i.openStart;g>=0;g--){let m=(g+f+1)%(i.openStart+1),y=d[m];if(y)for(let k=0;k=0&&(n.replace(t,e,i),!(n.steps.length>h));g--){let m=o[g];m<0||(t=r.before(m),e=s.after(m))}}function wS(n,t,e,i,r){if(ti){let s=r.contentMatchAt(0),o=s.fillBefore(n).append(n);n=o.append(s.matchFragment(o).fillBefore(ge.empty,!0))}return n}function VI(n,t,e,i){if(!i.isInline&&t==e&&n.doc.resolve(t).parent.content.size){let r=FI(n.doc,t,i.type);r!=null&&(t=e=r)}n.replaceRange(t,e,new Te(ge.from(i),0,0))}function jI(n,t,e){let i=n.doc.resolve(t),r=n.doc.resolve(e),s=kS(i,r);for(let o=0;o0&&(c||i.node(a-1).canReplace(i.index(a-1),r.indexAfter(a-1))))return n.delete(i.before(a),r.after(a))}for(let o=1;o<=i.depth&&o<=r.depth;o++)if(t-i.start(o)==i.depth-o&&e>i.end(o)&&r.end(o)-e!=r.depth-o)return n.delete(i.before(o),e);n.delete(t,e)}function kS(n,t){let e=[],i=Math.min(n.depth,t.depth);for(let r=i;r>=0;r--){let s=n.start(r);if(st.pos+(t.depth-r)||n.node(r).type.spec.isolating||t.node(r).type.spec.isolating)break;(s==t.start(r)||r==n.depth&&r==t.depth&&n.parent.inlineContent&&t.parent.inlineContent&&r&&t.start(r-1)==s-1)&&e.push(r)}return e}class Ya extends Bn{constructor(t,e,i){super(),this.pos=t,this.attr=e,this.value=i}apply(t){let e=t.nodeAt(this.pos);if(!e)return Qt.fail("No node at attribute step's position");let i=Object.create(null);for(let s in e.attrs)i[s]=e.attrs[s];i[this.attr]=this.value;let r=e.type.create(i,null,e.marks);return Qt.fromReplace(t,this.pos,this.pos+1,new Te(ge.from(r),0,e.isLeaf?0:1))}getMap(){return gi.empty}invert(t){return new Ya(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let e=t.mapResult(this.pos,1);return e.deletedAfter?null:new Ya(e.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.pos!="number"||typeof e.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Ya(e.pos,e.attr,e.value)}}Bn.jsonID("attr",Ya);class Oc extends Bn{constructor(t,e){super(),this.attr=t,this.value=e}apply(t){let e=Object.create(null);for(let r in t.attrs)e[r]=t.attrs[r];e[this.attr]=this.value;let i=t.type.create(e,t.content,t.marks);return Qt.ok(i)}getMap(){return gi.empty}invert(t){return new Oc(this.attr,t.attrs[this.attr])}map(t){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(t,e){if(typeof e.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Oc(e.attr,e.value)}}Bn.jsonID("docAttr",Oc);let ll=class extends Error{};ll=function n(t){let e=Error.call(this,t);return e.__proto__=n.prototype,e};ll.prototype=Object.create(Error.prototype);ll.prototype.constructor=ll;ll.prototype.name="TransformError";class CS{constructor(t){this.doc=t,this.steps=[],this.docs=[],this.mapping=new Ka}get before(){return this.docs.length?this.docs[0]:this.doc}step(t){let e=this.maybeStep(t);if(e.failed)throw new ll(e.failed);return this}maybeStep(t){let e=t.apply(this.doc);return e.failed||this.addStep(t,e.doc),e}get docChanged(){return this.steps.length>0}addStep(t,e){this.docs.push(this.doc),this.steps.push(t),this.mapping.appendMap(t.getMap()),this.doc=e}replace(t,e=t,i=Te.empty){let r=p_(this.doc,t,e,i);return r&&this.step(r),this}replaceWith(t,e,i){return this.replace(t,e,new Te(ge.from(i),0,0))}delete(t,e){return this.replace(t,e,Te.empty)}insert(t,e){return this.replaceWith(t,t,e)}replaceRange(t,e,i){return UI(this,t,e,i),this}replaceRangeWith(t,e,i){return VI(this,t,e,i),this}deleteRange(t,e){return jI(this,t,e),this}lift(t,e){return AI(this,t,e),this}join(t,e=1){return LI(this,t,e),this}wrap(t,e){return PI(this,t,e),this}setBlockType(t,e=t,i,r=null){return NI(this,t,e,i,r),this}setNodeMarkup(t,e,i=null,r){return RI(this,t,e,i,r),this}setNodeAttribute(t,e,i){return this.step(new Ya(t,e,i)),this}setDocAttribute(t,e){return this.step(new Oc(t,e)),this}addNodeMark(t,e){return this.step(new Ds(t,e)),this}removeNodeMark(t,e){if(!(e instanceof Mt)){let i=this.doc.nodeAt(t);if(!i)throw new RangeError("No node at position "+t);if(e=e.isInSet(i.marks),!e)return this}return this.step(new al(t,e)),this}split(t,e=1,i){return BI(this,t,e,i),this}addMark(t,e,i){return SI(this,t,e,i),this}removeMark(t,e,i){return TI(this,t,e,i),this}clearIncompatible(t,e,i){return EI(this,t,e,i),this}}const Kp=Object.create(null);class lt{constructor(t,e,i){this.$anchor=t,this.$head=e,this.ranges=i||[new WI(t.min(e),t.max(e))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let t=this.ranges;for(let e=0;e=0;s--){let o=e<0?Da(t.node(0),t.node(s),t.before(s+1),t.index(s),e,i):Da(t.node(0),t.node(s),t.after(s+1),t.index(s)+1,e,i);if(o)return o}return null}static near(t,e=1){return this.findFrom(t,e)||this.findFrom(t,-e)||new or(t.node(0))}static atStart(t){return Da(t,t,0,0,1)||new or(t)}static atEnd(t){return Da(t,t,t.content.size,t.childCount,-1)||new or(t)}static fromJSON(t,e){if(!e||!e.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=Kp[e.type];if(!i)throw new RangeError(`No selection type ${e.type} defined`);return i.fromJSON(t,e)}static jsonID(t,e){if(t in Kp)throw new RangeError("Duplicate use of selection JSON ID "+t);return Kp[t]=e,e.prototype.jsonID=t,e}getBookmark(){return et.between(this.$anchor,this.$head).getBookmark()}}lt.prototype.visible=!0;class WI{constructor(t,e){this.$from=t,this.$to=e}}let Vv=!1;function jv(n){!Vv&&!n.parent.inlineContent&&(Vv=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class et extends lt{constructor(t,e=t){jv(t),jv(e),super(t,e)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,e){let i=t.resolve(e.map(this.head));if(!i.parent.inlineContent)return lt.near(i);let r=t.resolve(e.map(this.anchor));return new et(r.parent.inlineContent?r:i,i)}replace(t,e=Te.empty){if(super.replace(t,e),e==Te.empty){let i=this.$from.marksAcross(this.$to);i&&t.ensureMarks(i)}}eq(t){return t instanceof et&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Xf(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(t,e){if(typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new et(t.resolve(e.anchor),t.resolve(e.head))}static create(t,e,i=e){let r=t.resolve(e);return new this(r,i==e?r:t.resolve(i))}static between(t,e,i){let r=t.pos-e.pos;if((!i||r)&&(i=r>=0?1:-1),!e.parent.inlineContent){let s=lt.findFrom(e,i,!0)||lt.findFrom(e,-i,!0);if(s)e=s.$head;else return lt.near(e,i)}return t.parent.inlineContent||(r==0?t=e:(t=(lt.findFrom(t,-i,!0)||lt.findFrom(t,i,!0)).$anchor,t.pos0?0:1);r>0?o=0;o+=r){let a=t.child(o);if(a.isAtom){if(!s&&Ue.isSelectable(a))return Ue.create(n,e-(r<0?a.nodeSize:0))}else{let c=Da(n,a,e+r,r<0?a.childCount:0,r,s);if(c)return c}e+=a.nodeSize*r}return null}function Wv(n,t,e){let i=n.steps.length-1;if(i{o==null&&(o=f)}),n.setSelection(lt.near(n.doc.resolve(o),e))}const Kv=1,ru=2,Gv=4;class GI extends CS{constructor(t){super(t.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=t.selection,this.storedMarks=t.storedMarks}get selection(){return this.curSelectionFor0}setStoredMarks(t){return this.storedMarks=t,this.updated|=ru,this}ensureMarks(t){return Mt.sameSet(this.storedMarks||this.selection.$from.marks(),t)||this.setStoredMarks(t),this}addStoredMark(t){return this.ensureMarks(t.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(t){return this.ensureMarks(t.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&ru)>0}addStep(t,e){super.addStep(t,e),this.updated=this.updated&~ru,this.storedMarks=null}setTime(t){return this.time=t,this}replaceSelection(t){return this.selection.replace(this,t),this}replaceSelectionWith(t,e=!0){let i=this.selection;return e&&(t=t.mark(this.storedMarks||(i.empty?i.$from.marks():i.$from.marksAcross(i.$to)||Mt.none))),i.replaceWith(this,t),this}deleteSelection(){return this.selection.replace(this),this}insertText(t,e,i){let r=this.doc.type.schema;if(e==null)return t?this.replaceSelectionWith(r.text(t),!0):this.deleteSelection();{if(i==null&&(i=e),i=i??e,!t)return this.deleteRange(e,i);let s=this.storedMarks;if(!s){let o=this.doc.resolve(e);s=i==e?o.marks():o.marksAcross(this.doc.resolve(i))}return this.replaceRangeWith(e,i,r.text(t,s)),this.selection.empty||this.setSelection(lt.near(this.selection.$to)),this}}setMeta(t,e){return this.meta[typeof t=="string"?t:t.key]=e,this}getMeta(t){return this.meta[typeof t=="string"?t:t.key]}get isGeneric(){for(let t in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=Gv,this}get scrolledIntoView(){return(this.updated&Gv)>0}}function Yv(n,t){return!t||!n?n:n.bind(t)}class Wl{constructor(t,e,i){this.name=t,this.init=Yv(e.init,i),this.apply=Yv(e.apply,i)}}const YI=[new Wl("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new Wl("selection",{init(n,t){return n.selection||lt.atStart(t.doc)},apply(n){return n.selection}}),new Wl("storedMarks",{init(n){return n.storedMarks||null},apply(n,t,e,i){return i.selection.$cursor?n.storedMarks:null}}),new Wl("scrollToSelection",{init(){return 0},apply(n,t){return n.scrolledIntoView?t+1:t}})];class Gp{constructor(t,e){this.schema=t,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=YI.slice(),e&&e.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new Wl(i.key,i.spec.state,i))})}}class Ra{constructor(t){this.config=t}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(t){return this.applyTransaction(t).state}filterTransaction(t,e=-1){for(let i=0;ii.toJSON())),t&&typeof t=="object")for(let i in t){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let r=t[i],s=r.spec.state;s&&s.toJSON&&(e[i]=s.toJSON.call(r,this[r.key]))}return e}static fromJSON(t,e,i){if(!e)throw new RangeError("Invalid input for EditorState.fromJSON");if(!t.schema)throw new RangeError("Required config field 'schema' missing");let r=new Gp(t.schema,t.plugins),s=new Ra(r);return r.fields.forEach(o=>{if(o.name=="doc")s.doc=Fo.fromJSON(t.schema,e.doc);else if(o.name=="selection")s.selection=lt.fromJSON(s.doc,e.selection);else if(o.name=="storedMarks")e.storedMarks&&(s.storedMarks=e.storedMarks.map(t.schema.markFromJSON));else{if(i)for(let a in i){let c=i[a],d=c.spec.state;if(c.key==o.name&&d&&d.fromJSON&&Object.prototype.hasOwnProperty.call(e,a)){s[o.name]=d.fromJSON.call(c,t,e[a],s);return}}s[o.name]=o.init(t,s)}}),s}}function SS(n,t,e){for(let i in n){let r=n[i];r instanceof Function?r=r.bind(t):i=="handleDOMEvents"&&(r=SS(r,t,{})),e[i]=r}return e}class kn{constructor(t){this.spec=t,this.props={},t.props&&SS(t.props,this,this.props),this.key=t.key?t.key.key:TS("plugin")}getState(t){return t[this.key]}}const Yp=Object.create(null);function TS(n){return n in Yp?n+"$"+ ++Yp[n]:(Yp[n]=0,n+"$")}class Ci{constructor(t="key"){this.key=TS(t)}get(t){return t.config.pluginsByKey[this.key]}getState(t){return t[this.key]}}const Un=function(n){for(var t=0;;t++)if(n=n.previousSibling,!n)return t},Ac=function(n){let t=n.assignedSlot||n.parentNode;return t&&t.nodeType==11?t.host:t};let Jv=null;const Wr=function(n,t,e){let i=Jv||(Jv=document.createRange());return i.setEnd(n,e??n.nodeValue.length),i.setStart(n,t||0),i},Go=function(n,t,e,i){return e&&(Zv(n,t,e,i,-1)||Zv(n,t,e,i,1))},JI=/^(img|br|input|textarea|hr)$/i;function Zv(n,t,e,i,r){for(;;){if(n==e&&t==i)return!0;if(t==(r<0?0:wr(n))){let s=n.parentNode;if(!s||s.nodeType!=1||g_(n)||JI.test(n.nodeName)||n.contentEditable=="false")return!1;t=Un(n)+(r<0?0:1),n=s}else if(n.nodeType==1){if(n=n.childNodes[t+(r<0?-1:0)],n.contentEditable=="false")return!1;t=r<0?wr(n):0}else return!1}}function wr(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function ZI(n,t,e){for(let i=t==0,r=t==wr(n);i||r;){if(n==e)return!0;let s=Un(n);if(n=n.parentNode,!n)return!1;i=i&&s==0,r=r&&s==wr(n)}}function g_(n){let t;for(let e=n;e&&!(t=e.pmViewDesc);e=e.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==n||t.contentDOM==n)}const Qf=function(n){return n.focusNode&&Go(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function xo(n,t){let e=document.createEvent("Event");return e.initEvent("keydown",!0,!0),e.keyCode=n,e.key=e.code=t,e}function XI(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function QI(n,t,e){if(n.caretPositionFromPoint)try{let i=n.caretPositionFromPoint(t,e);if(i)return{node:i.offsetNode,offset:i.offset}}catch{}if(n.caretRangeFromPoint){let i=n.caretRangeFromPoint(t,e);if(i)return{node:i.startContainer,offset:i.startOffset}}}const Or=typeof navigator<"u"?navigator:null,Xv=typeof document<"u"?document:null,Qs=Or&&Or.userAgent||"",Y0=/Edge\/(\d+)/.exec(Qs),ES=/MSIE \d/.exec(Qs),J0=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Qs),ei=!!(ES||J0||Y0),Is=ES?document.documentMode:J0?+J0[1]:Y0?+Y0[1]:0,ar=!ei&&/gecko\/(\d+)/i.test(Qs);ar&&+(/Firefox\/(\d+)/.exec(Qs)||[0,0])[1];const Z0=!ei&&/Chrome\/(\d+)/.exec(Qs),On=!!Z0,$I=Z0?+Z0[1]:0,jn=!ei&&!!Or&&/Apple Computer/.test(Or.vendor),cl=jn&&(/Mobile\/\w+/.test(Qs)||!!Or&&Or.maxTouchPoints>2),Bi=cl||(Or?/Mac/.test(Or.platform):!1),eR=Or?/Win/.test(Or.platform):!1,$i=/Android \d/.test(Qs),Jc=!!Xv&&"webkitFontSmoothing"in Xv.documentElement.style,tR=Jc?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function nR(n){return{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Ur(n,t){return typeof n=="number"?n:n[t]}function iR(n){let t=n.getBoundingClientRect(),e=t.width/n.offsetWidth||1,i=t.height/n.offsetHeight||1;return{left:t.left,right:t.left+n.clientWidth*e,top:t.top,bottom:t.top+n.clientHeight*i}}function Qv(n,t,e){let i=n.someProp("scrollThreshold")||0,r=n.someProp("scrollMargin")||5,s=n.dom.ownerDocument;for(let o=e||n.dom;o;o=Ac(o)){if(o.nodeType!=1)continue;let a=o,c=a==s.body,d=c?nR(s):iR(a),f=0,h=0;if(t.topd.bottom-Ur(i,"bottom")&&(h=t.bottom-t.top>d.bottom-d.top?t.top+Ur(r,"top")-d.top:t.bottom-d.bottom+Ur(r,"bottom")),t.leftd.right-Ur(i,"right")&&(f=t.right-d.right+Ur(r,"right")),f||h)if(c)s.defaultView.scrollBy(f,h);else{let g=a.scrollLeft,m=a.scrollTop;h&&(a.scrollTop+=h),f&&(a.scrollLeft+=f);let y=a.scrollLeft-g,k=a.scrollTop-m;t={left:t.left-y,top:t.top-k,right:t.right-y,bottom:t.bottom-k}}if(c||/^(fixed|sticky)$/.test(getComputedStyle(o).position))break}}function rR(n){let t=n.dom.getBoundingClientRect(),e=Math.max(0,t.top),i,r;for(let s=(t.left+t.right)/2,o=e+1;o=e-20){i=a,r=c.top;break}}return{refDOM:i,refTop:r,stack:OS(n.dom)}}function OS(n){let t=[],e=n.ownerDocument;for(let i=n;i&&(t.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),n!=e);i=Ac(i));return t}function sR({refDOM:n,refTop:t,stack:e}){let i=n?n.getBoundingClientRect().top:0;AS(e,i==0?0:i-t)}function AS(n,t){for(let e=0;e=a){o=Math.max(y.bottom,o),a=Math.min(y.top,a);let k=y.left>t.left?y.left-t.left:y.right=(y.left+y.right)/2?1:0));continue}}else y.top>t.top&&!c&&y.left<=t.left&&y.right>=t.left&&(c=f,d={left:Math.max(y.left,Math.min(y.right,t.left)),top:y.top});!e&&(t.left>=y.right&&t.top>=y.top||t.left>=y.left&&t.top>=y.bottom)&&(s=h+1)}}return!e&&c&&(e=c,r=d,i=0),e&&e.nodeType==3?aR(e,r):!e||i&&e.nodeType==1?{node:n,offset:s}:DS(e,r)}function aR(n,t){let e=n.nodeValue.length,i=document.createRange();for(let r=0;r=(s.left+s.right)/2?1:0)}}return{node:n,offset:0}}function __(n,t){return n.left>=t.left-1&&n.left<=t.right+1&&n.top>=t.top-1&&n.top<=t.bottom+1}function lR(n,t){let e=n.parentNode;return e&&/^li$/i.test(e.nodeName)&&t.left(o.left+o.right)/2?1:-1}return n.docView.posFromDOM(i,r,s)}function dR(n,t,e,i){let r=-1;for(let s=t,o=!1;s!=n.dom;){let a=n.docView.nearestDesc(s,!0);if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent&&!o||!a.contentDOM)){let c=a.dom.getBoundingClientRect();if(a.node.isBlock&&a.parent&&!o&&(o=!0,c.left>i.left||c.top>i.top?r=a.posBefore:(c.right-1?r:n.docView.posFromDOM(t,e,-1)}function MS(n,t,e){let i=n.childNodes.length;if(i&&e.topt.top&&r++}let d;Jc&&r&&i.nodeType==1&&(d=i.childNodes[r-1]).nodeType==1&&d.contentEditable=="false"&&d.getBoundingClientRect().top>=t.top&&r--,i==n.dom&&r==i.childNodes.length-1&&i.lastChild.nodeType==1&&t.top>i.lastChild.getBoundingClientRect().bottom?a=n.state.doc.content.size:(r==0||i.nodeType!=1||i.childNodes[r-1].nodeName!="BR")&&(a=dR(n,i,r,t))}a==null&&(a=cR(n,o,t));let c=n.docView.nearestDesc(o,!0);return{pos:a,inside:c?c.posAtStart-c.border:-1}}function $v(n){return n.top=0&&r==i.nodeValue.length?(c--,f=1):e<0?c--:d++,Fl(ws(Wr(i,c,d),f),f<0)}if(!n.state.doc.resolve(t-(s||0)).parent.inlineContent){if(s==null&&r&&(e<0||r==wr(i))){let c=i.childNodes[r-1];if(c.nodeType==1)return Jp(c.getBoundingClientRect(),!1)}if(s==null&&r=0)}if(s==null&&r&&(e<0||r==wr(i))){let c=i.childNodes[r-1],d=c.nodeType==3?Wr(c,wr(c)-(o?0:1)):c.nodeType==1&&(c.nodeName!="BR"||!c.nextSibling)?c:null;if(d)return Fl(ws(d,1),!1)}if(s==null&&r=0)}function Fl(n,t){if(n.width==0)return n;let e=t?n.left:n.right;return{top:n.top,bottom:n.bottom,left:e,right:e}}function Jp(n,t){if(n.height==0)return n;let e=t?n.top:n.bottom;return{top:e,bottom:e,left:n.left,right:n.right}}function NS(n,t,e){let i=n.state,r=n.root.activeElement;i!=t&&n.updateState(t),r!=n.dom&&n.focus();try{return e()}finally{i!=t&&n.updateState(i),r!=n.dom&&r&&r.focus()}}function hR(n,t,e){let i=t.selection,r=e=="up"?i.$from:i.$to;return NS(n,t,()=>{let{node:s}=n.docView.domFromPos(r.pos,e=="up"?-1:1);for(;;){let a=n.docView.nearestDesc(s,!0);if(!a)break;if(a.node.isBlock){s=a.contentDOM||a.dom;break}s=a.dom.parentNode}let o=PS(n,r.pos,1);for(let a=s.firstChild;a;a=a.nextSibling){let c;if(a.nodeType==1)c=a.getClientRects();else if(a.nodeType==3)c=Wr(a,0,a.nodeValue.length).getClientRects();else continue;for(let d=0;df.top+1&&(e=="up"?o.top-f.top>(f.bottom-o.top)*2:f.bottom-o.bottom>(o.bottom-f.top)*2))return!1}}return!0})}const pR=/[\u0590-\u08ac]/;function mR(n,t,e){let{$head:i}=t.selection;if(!i.parent.isTextblock)return!1;let r=i.parentOffset,s=!r,o=r==i.parent.content.size,a=n.domSelection();return!pR.test(i.parent.textContent)||!a.modify?e=="left"||e=="backward"?s:o:NS(n,t,()=>{let{focusNode:c,focusOffset:d,anchorNode:f,anchorOffset:h}=n.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",e,"character");let m=i.depth?n.docView.domAfterPos(i.before()):n.dom,{focusNode:y,focusOffset:k}=n.domSelectionRange(),C=y&&!m.contains(y.nodeType==1?y:y.parentNode)||c==y&&d==k;try{a.collapse(f,h),c&&(c!=f||d!=h)&&a.extend&&a.extend(c,d)}catch{}return g!=null&&(a.caretBidiLevel=g),C})}let ex=null,tx=null,nx=!1;function gR(n,t,e){return ex==t&&tx==e?nx:(ex=t,tx=e,nx=e=="up"||e=="down"?hR(n,t,e):mR(n,t,e))}const Hi=0,ix=1,To=2,Ar=3;class Zc{constructor(t,e,i,r){this.parent=t,this.children=e,this.dom=i,this.contentDOM=r,this.dirty=Hi,i.pmViewDesc=this}matchesWidget(t){return!1}matchesMark(t){return!1}matchesNode(t,e,i){return!1}matchesHack(t){return!1}parseRule(){return null}stopEvent(t){return!1}get size(){let t=0;for(let e=0;eUn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))r=t.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(e==0)for(let s=t;;s=s.parentNode){if(s==this.dom){r=!1;break}if(s.previousSibling)break}if(r==null&&e==t.childNodes.length)for(let s=t;;s=s.parentNode){if(s==this.dom){r=!0;break}if(s.nextSibling)break}}return r??i>0?this.posAtEnd:this.posAtStart}nearestDesc(t,e=!1){for(let i=!0,r=t;r;r=r.parentNode){let s=this.getDesc(r),o;if(s&&(!e||s.node))if(i&&(o=s.nodeDOM)&&!(o.nodeType==1?o.contains(t.nodeType==1?t:t.parentNode):o==t))i=!1;else return s}}getDesc(t){let e=t.pmViewDesc;for(let i=e;i;i=i.parent)if(i==this)return e}posFromDOM(t,e,i){for(let r=t;r;r=r.parentNode){let s=this.getDesc(r);if(s)return s.localPosFromDOM(t,e,i)}return-1}descAt(t){for(let e=0,i=0;et||o instanceof RS){r=t-s;break}s=a}if(r)return this.children[i].domFromPos(r-this.children[i].border,e);for(let s;i&&!(s=this.children[i-1]).size&&s instanceof IS&&s.side>=0;i--);if(e<=0){let s,o=!0;for(;s=i?this.children[i-1]:null,!(!s||s.dom.parentNode==this.contentDOM);i--,o=!1);return s&&e&&o&&!s.border&&!s.domAtom?s.domFromPos(s.size,e):{node:this.contentDOM,offset:s?Un(s.dom)+1:0}}else{let s,o=!0;for(;s=i=f&&e<=d-c.border&&c.node&&c.contentDOM&&this.contentDOM.contains(c.contentDOM))return c.parseRange(t,e,f);t=o;for(let h=a;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){r=Un(g.dom)+1;break}t-=g.size}r==-1&&(r=0)}if(r>-1&&(d>e||a==this.children.length-1)){e=d;for(let f=a+1;fm&&oe){let m=a;a=c,c=m}let g=document.createRange();g.setEnd(c.node,c.offset),g.setStart(a.node,a.offset),d.removeAllRanges(),d.addRange(g)}}ignoreMutation(t){return!this.contentDOM&&t.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(t,e){for(let i=0,r=0;r=i:ti){let a=i+s.border,c=o-s.border;if(t>=a&&e<=c){this.dirty=t==i||e==o?To:ix,t==a&&e==c&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=Ar:s.markDirty(t-a,e-a);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?To:Ar}i=o}this.dirty=To}markParentsDirty(){let t=1;for(let e=this.parent;e;e=e.parent,t++){let i=t==1?To:ix;e.dirty{if(!s)return r;if(s.parent)return s.parent.posBeforeChild(s)})),!e.type.spec.raw){if(o.nodeType!=1){let a=document.createElement("span");a.appendChild(o),o=a}o.contentEditable="false",o.classList.add("ProseMirror-widget")}super(t,[],o,null),this.widget=e,this.widget=e,s=this}matchesWidget(t){return this.dirty==Hi&&t.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(t){let e=this.widget.spec.stopEvent;return e?e(t):!1}ignoreMutation(t){return t.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get side(){return this.widget.type.side}}class _R extends Zc{constructor(t,e,i,r){super(t,[],e,null),this.textDOM=i,this.text=r}get size(){return this.text.length}localPosFromDOM(t,e){return t!=this.textDOM?this.posAtStart+(e?this.size:0):this.posAtStart+e}domFromPos(t){return{node:this.textDOM,offset:t}}ignoreMutation(t){return t.type==="characterData"&&t.target.nodeValue==t.oldValue}}class Yo extends Zc{constructor(t,e,i,r){super(t,[],i,r),this.mark=e}static create(t,e,i,r){let s=r.nodeViews[e.type.name],o=s&&s(e,r,i);return(!o||!o.dom)&&(o=kr.renderSpec(document,e.type.spec.toDOM(e,i))),new Yo(t,e,o.dom,o.contentDOM||o.dom)}parseRule(){return this.dirty&Ar||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(t){return this.dirty!=Ar&&this.mark.eq(t)}markDirty(t,e){if(super.markDirty(t,e),this.dirty!=Hi){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(s=$0(s,0,t,i));for(let a=0;a{if(!c)return o;if(c.parent)return c.parent.posBeforeChild(c)},i,r),f=d&&d.dom,h=d&&d.contentDOM;if(e.isText){if(!f)f=document.createTextNode(e.text);else if(f.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else f||({dom:f,contentDOM:h}=kr.renderSpec(document,e.type.spec.toDOM(e)));!h&&!e.isText&&f.nodeName!="BR"&&(f.hasAttribute("contenteditable")||(f.contentEditable="false"),e.type.spec.draggable&&(f.draggable=!0));let g=f;return f=FS(f,i,e),d?c=new yR(t,e,i,r,f,h||null,g,d,s,o+1):e.isText?new $f(t,e,i,r,f,g,s):new Rs(t,e,i,r,f,h||null,g,s,o+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let t={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(t.preserveWhitespace="full"),!this.contentDOM)t.getContent=()=>this.node.content;else if(!this.contentLost)t.contentElement=this.contentDOM;else{for(let e=this.children.length-1;e>=0;e--){let i=this.children[e];if(this.dom.contains(i.dom.parentNode)){t.contentElement=i.dom.parentNode;break}}t.contentElement||(t.getContent=()=>ge.empty)}return t}matchesNode(t,e,i){return this.dirty==Hi&&t.eq(this.node)&&Q0(e,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(t,e){let i=this.node.inlineContent,r=e,s=t.composing?this.localCompositionInfo(t,e):null,o=s&&s.pos>-1?s:null,a=s&&s.pos<0,c=new vR(this,o&&o.node,t);kR(this.node,this.innerDeco,(d,f,h)=>{d.spec.marks?c.syncToMarks(d.spec.marks,i,t):d.type.side>=0&&!h&&c.syncToMarks(f==this.node.childCount?Mt.none:this.node.child(f).marks,i,t),c.placeWidget(d,t,r)},(d,f,h,g)=>{c.syncToMarks(d.marks,i,t);let m;c.findNodeMatch(d,f,h,g)||a&&t.state.selection.from>r&&t.state.selection.to-1&&c.updateNodeAt(d,f,h,m,t)||c.updateNextNode(d,f,h,t,g,r)||c.addNode(d,f,h,t,r),r+=d.nodeSize}),c.syncToMarks([],i,t),this.node.isTextblock&&c.addTextblockHacks(),c.destroyRest(),(c.changed||this.dirty==To)&&(o&&this.protectLocalComposition(t,o),BS(this.contentDOM,this.children,t),cl&&CR(this.dom))}localCompositionInfo(t,e){let{from:i,to:r}=t.state.selection;if(!(t.state.selection instanceof et)||ie+this.node.content.size)return null;let s=t.domSelectionRange(),o=SR(s.focusNode,s.focusOffset);if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let a=o.nodeValue,c=TR(this.node.content,a,i-e,r-e);return c<0?null:{node:o,pos:c,text:a}}else return{node:o,pos:-1,text:""}}protectLocalComposition(t,{node:e,pos:i,text:r}){if(this.getDesc(e))return;let s=e;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let o=new _R(this,s,e,r);t.input.compositionNodes.push(o),this.children=$0(this.children,i,i+r.length,t,o)}update(t,e,i,r){return this.dirty==Ar||!t.sameMarkup(this.node)?!1:(this.updateInner(t,e,i,r),!0)}updateInner(t,e,i,r){this.updateOuterDeco(e),this.node=t,this.innerDeco=i,this.contentDOM&&this.updateChildren(r,this.posAtStart),this.dirty=Hi}updateOuterDeco(t){if(Q0(t,this.outerDeco))return;let e=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=LS(this.dom,this.nodeDOM,X0(this.outerDeco,this.node,e),X0(t,this.node,e)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=t}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable")}get domAtom(){return this.node.isAtom}}function rx(n,t,e,i,r){FS(i,t,n);let s=new Rs(void 0,n,t,e,i,i,i,r,0);return s.contentDOM&&s.updateChildren(r,0),s}class $f extends Rs{constructor(t,e,i,r,s,o,a){super(t,e,i,r,s,null,o,a,0)}parseRule(){let t=this.nodeDOM.parentNode;for(;t&&t!=this.dom&&!t.pmIsDeco;)t=t.parentNode;return{skip:t||!0}}update(t,e,i,r){return this.dirty==Ar||this.dirty!=Hi&&!this.inParent()||!t.sameMarkup(this.node)?!1:(this.updateOuterDeco(e),(this.dirty!=Hi||t.text!=this.node.text)&&t.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=t.text,r.trackWrites==this.nodeDOM&&(r.trackWrites=null)),this.node=t,this.dirty=Hi,!0)}inParent(){let t=this.parent.contentDOM;for(let e=this.nodeDOM;e;e=e.parentNode)if(e==t)return!0;return!1}domFromPos(t){return{node:this.nodeDOM,offset:t}}localPosFromDOM(t,e,i){return t==this.nodeDOM?this.posAtStart+Math.min(e,this.node.text.length):super.localPosFromDOM(t,e,i)}ignoreMutation(t){return t.type!="characterData"&&t.type!="selection"}slice(t,e,i){let r=this.node.cut(t,e),s=document.createTextNode(r.text);return new $f(this.parent,r,this.outerDeco,this.innerDeco,s,s,i)}markDirty(t,e){super.markDirty(t,e),this.dom!=this.nodeDOM&&(t==0||e==this.nodeDOM.nodeValue.length)&&(this.dirty=Ar)}get domAtom(){return!1}}class RS extends Zc{parseRule(){return{ignore:!0}}matchesHack(t){return this.dirty==Hi&&this.dom.nodeName==t}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class yR extends Rs{constructor(t,e,i,r,s,o,a,c,d,f){super(t,e,i,r,s,o,a,d,f),this.spec=c}update(t,e,i,r){if(this.dirty==Ar)return!1;if(this.spec.update){let s=this.spec.update(t,e,i);return s&&this.updateInner(t,e,i,r),s}else return!this.contentDOM&&!t.isLeaf?!1:super.update(t,e,i,r)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(t,e,i,r){this.spec.setSelection?this.spec.setSelection(t,e,i):super.setSelection(t,e,i,r)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(t){return this.spec.stopEvent?this.spec.stopEvent(t):!1}ignoreMutation(t){return this.spec.ignoreMutation?this.spec.ignoreMutation(t):super.ignoreMutation(t)}}function BS(n,t,e){let i=n.firstChild,r=!1;for(let s=0;s>1,o=Math.min(s,t.length);for(;r-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let c=Yo.create(this.top,t[s],e,i);this.top.children.splice(this.index,0,c),this.top=c,this.changed=!0}this.index=0,s++}}findNodeMatch(t,e,i,r){let s=-1,o;if(r>=this.preMatch.index&&(o=this.preMatch.matches[r-this.preMatch.index]).parent==this.top&&o.matchesNode(t,e,i))s=this.top.children.indexOf(o,this.index);else for(let a=this.index,c=Math.min(this.top.children.length,a+5);a0;){let a;for(;;)if(i){let d=e.children[i-1];if(d instanceof Yo)e=d,i=d.children.length;else{a=d,i--;break}}else{if(e==t)break e;i=e.parent.children.indexOf(e),e=e.parent}let c=a.node;if(c){if(c!=n.child(r-1))break;--r,s.set(a,r),o.push(a)}}return{index:r,matched:s,matches:o.reverse()}}function wR(n,t){return n.type.side-t.type.side}function kR(n,t,e,i){let r=t.locals(n),s=0;if(r.length==0){for(let d=0;ds;)a.push(r[o++]);let y=s+g.nodeSize;if(g.isText){let C=y;o!C.inline):a.slice();i(g,k,t.forChild(s,g),m),s=y}}function CR(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let t=n.style.cssText;n.style.cssText=t+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=t}}function SR(n,t){for(;;){if(n.nodeType==3)return n;if(n.nodeType==1&&t>0){if(n.childNodes.length>t&&n.childNodes[t].nodeType==3)return n.childNodes[t];n=n.childNodes[t-1],t=wr(n)}else if(n.nodeType==1&&t=e){if(s>=i&&c.slice(i-t.length-a,i-a)==t)return i-t.length;let d=a=0&&d+t.length+a>=e)return a+d;if(e==i&&c.length>=i+t.length-a&&c.slice(i-a,i-a+t.length)==t)return i}}return-1}function $0(n,t,e,i,r){let s=[];for(let o=0,a=0;o=e||f<=t?s.push(c):(de&&s.push(c.slice(e-d,c.size,i)))}return s}function y_(n,t=null){let e=n.domSelectionRange(),i=n.state.doc;if(!e.focusNode)return null;let r=n.docView.nearestDesc(e.focusNode),s=r&&r.size==0,o=n.docView.posFromDOM(e.focusNode,e.focusOffset,1);if(o<0)return null;let a=i.resolve(o),c,d;if(Qf(e)){for(c=a;r&&!r.node;)r=r.parent;let f=r.node;if(r&&f.isAtom&&Ue.isSelectable(f)&&r.parent&&!(f.isInline&&ZI(e.focusNode,e.focusOffset,r.dom))){let h=r.posBefore;d=new Ue(o==h?a:i.resolve(h))}}else{let f=n.docView.posFromDOM(e.anchorNode,e.anchorOffset,1);if(f<0)return null;c=i.resolve(f)}if(!d){let f=t=="pointer"||n.state.selection.head{(e.anchorNode!=i||e.anchorOffset!=r)&&(t.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!qS(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function OR(n){let t=n.domSelection(),e=document.createRange(),i=n.cursorWrapper.dom,r=i.nodeName=="IMG";r?e.setEnd(i.parentNode,Un(i)+1):e.setEnd(i,0),e.collapse(!1),t.removeAllRanges(),t.addRange(e),!r&&!n.state.selection.visible&&ei&&Is<=11&&(i.disabled=!0,i.disabled=!1)}function HS(n,t){if(t instanceof Ue){let e=n.docView.descAt(t.from);e!=n.lastSelectedViewDesc&&(cx(n),e&&e.selectNode(),n.lastSelectedViewDesc=e)}else cx(n)}function cx(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function b_(n,t,e,i){return n.someProp("createSelectionBetween",r=>r(n,t,e))||et.between(t,e,i)}function dx(n){return n.editable&&!n.hasFocus()?!1:zS(n)}function zS(n){let t=n.domSelectionRange();if(!t.anchorNode)return!1;try{return n.dom.contains(t.anchorNode.nodeType==3?t.anchorNode.parentNode:t.anchorNode)&&(n.editable||n.dom.contains(t.focusNode.nodeType==3?t.focusNode.parentNode:t.focusNode))}catch{return!1}}function AR(n){let t=n.docView.domFromPos(n.state.selection.anchor,0),e=n.domSelectionRange();return Go(t.node,t.offset,e.anchorNode,e.anchorOffset)}function eg(n,t){let{$anchor:e,$head:i}=n.selection,r=t>0?e.max(i):e.min(i),s=r.parent.inlineContent?r.depth?n.doc.resolve(t>0?r.after():r.before()):null:r;return s&<.findFrom(s,t)}function Cs(n,t){return n.dispatch(n.state.tr.setSelection(t).scrollIntoView()),!0}function ux(n,t,e){let i=n.state.selection;if(i instanceof et)if(e.indexOf("s")>-1){let{$head:r}=i,s=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let o=n.state.doc.resolve(r.pos+s.nodeSize*(t<0?-1:1));return Cs(n,new et(i.$anchor,o))}else if(i.empty){if(n.endOfTextblock(t>0?"forward":"backward")){let r=eg(n.state,t);return r&&r instanceof Ue?Cs(n,r):!1}else if(!(Bi&&e.indexOf("m")>-1)){let r=i.$head,s=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter,o;if(!s||s.isText)return!1;let a=t<0?r.pos-s.nodeSize:r.pos;return s.isAtom||(o=n.docView.descAt(a))&&!o.contentDOM?Ue.isSelectable(s)?Cs(n,new Ue(t<0?n.state.doc.resolve(r.pos-s.nodeSize):r)):Jc?Cs(n,new et(n.state.doc.resolve(t<0?a:a+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof Ue&&i.node.isInline)return Cs(n,new et(t>0?i.$to:i.$from));{let r=eg(n.state,t);return r?Cs(n,r):!1}}}function Xu(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function sc(n,t){let e=n.pmViewDesc;return e&&e.size==0&&(t<0||n.nextSibling||n.nodeName!="BR")}function ka(n,t){return t<0?DR(n):MR(n)}function DR(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r,s,o=!1;for(ar&&e.nodeType==1&&i0){if(e.nodeType!=1)break;{let a=e.childNodes[i-1];if(sc(a,-1))r=e,s=--i;else if(a.nodeType==3)e=a,i=e.nodeValue.length;else break}}else{if(US(e))break;{let a=e.previousSibling;for(;a&&sc(a,-1);)r=e.parentNode,s=Un(a),a=a.previousSibling;if(a)e=a,i=Xu(e);else{if(e=e.parentNode,e==n.dom)break;i=0}}}o?tg(n,e,i):r&&tg(n,r,s)}function MR(n){let t=n.domSelectionRange(),e=t.focusNode,i=t.focusOffset;if(!e)return;let r=Xu(e),s,o;for(;;)if(i{n.state==r&&Qr(n)},50)}function fx(n,t){let e=n.state.doc.resolve(t);if(!(On||eR)&&e.parent.inlineContent){let r=n.coordsAtPos(t);if(t>e.start()){let s=n.coordsAtPos(t-1),o=(s.top+s.bottom)/2;if(o>r.top&&o1)return s.leftr.top&&o1)return s.left>r.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function hx(n,t,e){let i=n.state.selection;if(i instanceof et&&!i.empty||e.indexOf("s")>-1||Bi&&e.indexOf("m")>-1)return!1;let{$from:r,$to:s}=i;if(!r.parent.inlineContent||n.endOfTextblock(t<0?"up":"down")){let o=eg(n.state,t);if(o&&o instanceof Ue)return Cs(n,o)}if(!r.parent.inlineContent){let o=t<0?r:s,a=i instanceof or?lt.near(o,t):lt.findFrom(o,t);return a?Cs(n,a):!1}return!1}function px(n,t){if(!(n.state.selection instanceof et))return!0;let{$head:e,$anchor:i,empty:r}=n.state.selection;if(!e.sameParent(i))return!0;if(!r)return!1;if(n.endOfTextblock(t>0?"forward":"backward"))return!0;let s=!e.textOffset&&(t<0?e.nodeBefore:e.nodeAfter);if(s&&!s.isText){let o=n.state.tr;return t<0?o.delete(e.pos-s.nodeSize,e.pos):o.delete(e.pos,e.pos+s.nodeSize),n.dispatch(o),!0}return!1}function mx(n,t,e){n.domObserver.stop(),t.contentEditable=e,n.domObserver.start()}function IR(n){if(!jn||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:e}=n.domSelectionRange();if(t&&t.nodeType==1&&e==0&&t.firstChild&&t.firstChild.contentEditable=="false"){let i=t.firstChild;mx(n,i,"true"),setTimeout(()=>mx(n,i,"false"),20)}return!1}function RR(n){let t="";return n.ctrlKey&&(t+="c"),n.metaKey&&(t+="m"),n.altKey&&(t+="a"),n.shiftKey&&(t+="s"),t}function BR(n,t){let e=t.keyCode,i=RR(t);if(e==8||Bi&&e==72&&i=="c")return px(n,-1)||ka(n,-1);if(e==46&&!t.shiftKey||Bi&&e==68&&i=="c")return px(n,1)||ka(n,1);if(e==13||e==27)return!0;if(e==37||Bi&&e==66&&i=="c"){let r=e==37?fx(n,n.state.selection.from)=="ltr"?-1:1:-1;return ux(n,r,i)||ka(n,r)}else if(e==39||Bi&&e==70&&i=="c"){let r=e==39?fx(n,n.state.selection.from)=="ltr"?1:-1:1;return ux(n,r,i)||ka(n,r)}else{if(e==38||Bi&&e==80&&i=="c")return hx(n,-1,i)||ka(n,-1);if(e==40||Bi&&e==78&&i=="c")return IR(n)||hx(n,1,i)||ka(n,1);if(i==(Bi?"m":"c")&&(e==66||e==73||e==89||e==90))return!0}return!1}function VS(n,t){n.someProp("transformCopied",m=>{t=m(t,n)});let e=[],{content:i,openStart:r,openEnd:s}=t;for(;r>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){r--,s--;let m=i.firstChild;e.push(m.type.name,m.attrs!=m.type.defaultAttrs?m.attrs:null),i=m.content}let o=n.someProp("clipboardSerializer")||kr.fromSchema(n.state.schema),a=JS(),c=a.createElement("div");c.appendChild(o.serializeFragment(i,{document:a}));let d=c.firstChild,f,h=0;for(;d&&d.nodeType==1&&(f=YS[d.nodeName.toLowerCase()]);){for(let m=f.length-1;m>=0;m--){let y=a.createElement(f[m]);for(;c.firstChild;)y.appendChild(c.firstChild);c.appendChild(y),h++}d=c.firstChild}d&&d.nodeType==1&&d.setAttribute("data-pm-slice",`${r} ${s}${h?` -${h}`:""} ${JSON.stringify(e)}`);let g=n.someProp("clipboardTextSerializer",m=>m(t,n))||t.content.textBetween(0,t.content.size,` `);return{dom:c,text:g}}function jS(n,t,e,i,r){let s=r.parent.type.spec.code,o,a;if(!e&&!t)return null;let c=t&&(i||s||!e);if(c){if(n.someProp("transformPastedText",g=>{t=g(t,s||i,n)}),s)return t?new Te(ge.from(n.state.schema.text(t.replace(/\r\n?/g,` `))),0,0):Te.empty;let h=n.someProp("clipboardTextParser",g=>g(t,r,i,n));if(h)a=h;else{let g=r.marks(),{schema:m}=n.state,y=kr.fromSchema(m);o=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach(k=>{let C=o.appendChild(document.createElement("p"));k&&C.appendChild(y.serializeNode(m.text(k,g)))})}}else n.someProp("transformPastedHTML",h=>{e=h(e,n)}),o=qR(e),Jc&&HR(o);let d=o&&o.querySelector("[data-pm-slice]"),f=d&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(d.getAttribute("data-pm-slice")||"");if(f&&f[3])for(let h=+f[3];h>0;h--){let g=o.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;o=g}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||ol.fromSchema(n.state.schema)).parseSlice(o,{preserveWhitespace:!!(c||f),context:r,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!LR.test(g.parentNode.nodeName)?{ignore:!0}:null}})),f)a=zR(gx(a,+f[1],+f[2]),f[4]);else if(a=Te.maxOpen(FR(a.content,r),!0),a.openStart||a.openEnd){let h=0,g=0;for(let m=a.content.firstChild;h{a=h(a,n)}),a}const LR=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function FR(n,t){if(n.childCount<2)return n;for(let e=t.depth;e>=0;e--){let r=t.node(e).contentMatchAt(t.index(e)),s,o=[];if(n.forEach(a=>{if(!o)return;let c=r.findWrapping(a.type),d;if(!c)return o=null;if(d=o.length&&s.length&&KS(c,s,a,o[o.length-1],0))o[o.length-1]=d;else{o.length&&(o[o.length-1]=GS(o[o.length-1],s.length));let f=WS(a,c);o.push(f),r=r.matchType(f.type),s=c}}),o)return ge.from(o)}return n}function WS(n,t,e=0){for(let i=t.length-1;i>=e;i--)n=t[i].create(null,ge.from(n));return n}function KS(n,t,e,i,r){if(r1&&(s=0),r=e&&(a=t<0?o.contentMatchAt(0).fillBefore(a,s<=r).append(a):a.append(o.contentMatchAt(o.childCount).fillBefore(ge.empty,!0))),n.replaceChild(t<0?0:n.childCount-1,o.copy(a))}function gx(n,t,e){return t]*>)*/.exec(n);t&&(n=n.slice(t[0].length));let e=JS().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(n),r;if((r=i&&YS[i[1].toLowerCase()])&&(n=r.map(s=>"<"+s+">").join("")+n+r.map(s=>"").reverse().join("")),e.innerHTML=n,r)for(let s=0;s=0;a-=2){let c=e.nodes[i[a]];if(!c||c.hasRequiredAttrs())break;r=ge.from(c.create(i[a+1],r)),s++,o++}return new Te(r,s,o)}const Wn={},Kn={},UR={touchstart:!0,touchmove:!0};class VR{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:""},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastAndroidDelete=0,this.composing=!1,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function jR(n){for(let t in Wn){let e=Wn[t];n.dom.addEventListener(t,n.input.eventHandlers[t]=i=>{KR(n,i)&&!v_(n,i)&&(n.editable||!(i.type in Kn))&&e(n,i)},UR[t]?{passive:!0}:void 0)}jn&&n.dom.addEventListener("input",()=>null),ig(n)}function Ms(n,t){n.input.lastSelectionOrigin=t,n.input.lastSelectionTime=Date.now()}function WR(n){n.domObserver.stop();for(let t in n.input.eventHandlers)n.dom.removeEventListener(t,n.input.eventHandlers[t]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function ig(n){n.someProp("handleDOMEvents",t=>{for(let e in t)n.input.eventHandlers[e]||n.dom.addEventListener(e,n.input.eventHandlers[e]=i=>v_(n,i))})}function v_(n,t){return n.someProp("handleDOMEvents",e=>{let i=e[t.type];return i?i(n,t)||t.defaultPrevented:!1})}function KR(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target;e!=n.dom;e=e.parentNode)if(!e||e.nodeType==11||e.pmViewDesc&&e.pmViewDesc.stopEvent(t))return!1;return!0}function GR(n,t){!v_(n,t)&&Wn[t.type]&&(n.editable||!(t.type in Kn))&&Wn[t.type](n,t)}Kn.keydown=(n,t)=>{let e=t;if(n.input.shiftKey=e.keyCode==16||e.shiftKey,!XS(n,e)&&(n.input.lastKeyCode=e.keyCode,n.input.lastKeyCodeTime=Date.now(),!($i&&On&&e.keyCode==13)))if(e.keyCode!=229&&n.domObserver.forceFlush(),cl&&e.keyCode==13&&!e.ctrlKey&&!e.altKey&&!e.metaKey){let i=Date.now();n.input.lastIOSEnter=i,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==i&&(n.someProp("handleKeyDown",r=>r(n,xo(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",i=>i(n,e))||BR(n,e)?e.preventDefault():Ms(n,"key")};Kn.keyup=(n,t)=>{t.keyCode==16&&(n.input.shiftKey=!1)};Kn.keypress=(n,t)=>{let e=t;if(XS(n,e)||!e.charCode||e.ctrlKey&&!e.altKey||Bi&&e.metaKey)return;if(n.someProp("handleKeyPress",r=>r(n,e))){e.preventDefault();return}let i=n.state.selection;if(!(i instanceof et)||!i.$from.sameParent(i.$to)){let r=String.fromCharCode(e.charCode);!/[\r\n]/.test(r)&&!n.someProp("handleTextInput",s=>s(n,i.$from.pos,i.$to.pos,r))&&n.dispatch(n.state.tr.insertText(r).scrollIntoView()),e.preventDefault()}};function eh(n){return{left:n.clientX,top:n.clientY}}function YR(n,t){let e=t.x-n.clientX,i=t.y-n.clientY;return e*e+i*i<100}function x_(n,t,e,i,r){if(i==-1)return!1;let s=n.state.doc.resolve(i);for(let o=s.depth+1;o>0;o--)if(n.someProp(t,a=>o>s.depth?a(n,e,s.nodeAfter,s.before(o),r,!0):a(n,e,s.node(o),s.before(o),r,!1)))return!0;return!1}function Ja(n,t,e){n.focused||n.focus();let i=n.state.tr.setSelection(t);e=="pointer"&&i.setMeta("pointer",!0),n.dispatch(i)}function JR(n,t){if(t==-1)return!1;let e=n.state.doc.resolve(t),i=e.nodeAfter;return i&&i.isAtom&&Ue.isSelectable(i)?(Ja(n,new Ue(e),"pointer"),!0):!1}function ZR(n,t){if(t==-1)return!1;let e=n.state.selection,i,r;e instanceof Ue&&(i=e.node);let s=n.state.doc.resolve(t);for(let o=s.depth+1;o>0;o--){let a=o>s.depth?s.nodeAfter:s.node(o);if(Ue.isSelectable(a)){i&&e.$from.depth>0&&o>=e.$from.depth&&s.before(e.$from.depth+1)==e.$from.pos?r=s.before(e.$from.depth):r=s.before(o);break}}return r!=null?(Ja(n,Ue.create(n.state.doc,r),"pointer"),!0):!1}function XR(n,t,e,i,r){return x_(n,"handleClickOn",t,e,i)||n.someProp("handleClick",s=>s(n,t,i))||(r?ZR(n,e):JR(n,e))}function QR(n,t,e,i){return x_(n,"handleDoubleClickOn",t,e,i)||n.someProp("handleDoubleClick",r=>r(n,t,i))}function $R(n,t,e,i){return x_(n,"handleTripleClickOn",t,e,i)||n.someProp("handleTripleClick",r=>r(n,t,i))||eB(n,e,i)}function eB(n,t,e){if(e.button!=0)return!1;let i=n.state.doc;if(t==-1)return i.inlineContent?(Ja(n,et.create(i,0,i.content.size),"pointer"),!0):!1;let r=i.resolve(t);for(let s=r.depth+1;s>0;s--){let o=s>r.depth?r.nodeAfter:r.node(s),a=r.before(s);if(o.inlineContent)Ja(n,et.create(i,a+1,a+1+o.content.size),"pointer");else if(Ue.isSelectable(o))Ja(n,Ue.create(i,a),"pointer");else continue;return!0}}function w_(n){return Qu(n)}const ZS=Bi?"metaKey":"ctrlKey";Wn.mousedown=(n,t)=>{let e=t;n.input.shiftKey=e.shiftKey;let i=w_(n),r=Date.now(),s="singleClick";r-n.input.lastClick.time<500&&YR(e,n.input.lastClick)&&!e[ZS]&&(n.input.lastClick.type=="singleClick"?s="doubleClick":n.input.lastClick.type=="doubleClick"&&(s="tripleClick")),n.input.lastClick={time:r,x:e.clientX,y:e.clientY,type:s};let o=n.posAtCoords(eh(e));o&&(s=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new tB(n,o,e,!!i)):(s=="doubleClick"?QR:$R)(n,o.pos,o.inside,e)?e.preventDefault():Ms(n,"pointer"))};class tB{constructor(t,e,i,r){this.view=t,this.pos=e,this.event=i,this.flushed=r,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=t.state.doc,this.selectNode=!!i[ZS],this.allowDefault=i.shiftKey;let s,o;if(e.inside>-1)s=t.state.doc.nodeAt(e.inside),o=e.inside;else{let f=t.state.doc.resolve(e.pos);s=f.parent,o=f.depth?f.before():0}const a=r?null:i.target,c=a?t.docView.nearestDesc(a,!0):null;this.target=c?c.dom:null;let{selection:d}=t.state;(i.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||d instanceof Ue&&d.from<=o&&d.to>o)&&(this.mightDrag={node:s,pos:o,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&ar&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),t.root.addEventListener("mouseup",this.up=this.up.bind(this)),t.root.addEventListener("mousemove",this.move=this.move.bind(this)),Ms(t,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Qr(this.view)),this.view.input.mouseDown=null}up(t){if(this.done(),!this.view.dom.contains(t.target))return;let e=this.pos;this.view.state.doc!=this.startDoc&&(e=this.view.posAtCoords(eh(t))),this.updateAllowDefault(t),this.allowDefault||!e?Ms(this.view,"pointer"):XR(this.view,e.pos,e.inside,t,this.selectNode)?t.preventDefault():t.button==0&&(this.flushed||jn&&this.mightDrag&&!this.mightDrag.node.isAtom||On&&!this.view.state.selection.visible&&Math.min(Math.abs(e.pos-this.view.state.selection.from),Math.abs(e.pos-this.view.state.selection.to))<=2)?(Ja(this.view,lt.near(this.view.state.doc.resolve(e.pos)),"pointer"),t.preventDefault()):Ms(this.view,"pointer")}move(t){this.updateAllowDefault(t),Ms(this.view,"pointer"),t.buttons==0&&this.done()}updateAllowDefault(t){!this.allowDefault&&(Math.abs(this.event.x-t.clientX)>4||Math.abs(this.event.y-t.clientY)>4)&&(this.allowDefault=!0)}}Wn.touchstart=n=>{n.input.lastTouch=Date.now(),w_(n),Ms(n,"pointer")};Wn.touchmove=n=>{n.input.lastTouch=Date.now(),Ms(n,"pointer")};Wn.contextmenu=n=>w_(n);function XS(n,t){return n.composing?!0:jn&&Math.abs(t.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const nB=$i?5e3:-1;Kn.compositionstart=Kn.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:t}=n,e=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!e.textOffset&&e.parentOffset&&e.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||e.marks(),Qu(n,!0),n.markCursor=null;else if(Qu(n),ar&&t.selection.empty&&e.parentOffset&&!e.textOffset&&e.nodeBefore.marks.length){let i=n.domSelectionRange();for(let r=i.focusNode,s=i.focusOffset;r&&r.nodeType==1&&s!=0;){let o=s<0?r.lastChild:r.childNodes[s-1];if(!o)break;if(o.nodeType==3){n.domSelection().collapse(o,o.nodeValue.length);break}else r=o,s=-1}}n.input.composing=!0}QS(n,nB)};Kn.compositionend=(n,t)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=t.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,QS(n,20))};function QS(n,t){clearTimeout(n.input.composingTimeout),t>-1&&(n.input.composingTimeout=setTimeout(()=>Qu(n),t))}function $S(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=iB());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function iB(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function Qu(n,t=!1){if(!($i&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),$S(n),t||n.docView&&n.docView.dirty){let e=y_(n);return e&&!e.eq(n.state.selection)?n.dispatch(n.state.tr.setSelection(e)):n.updateState(n.state),!0}return!1}}function rB(n,t){if(!n.dom.parentNode)return;let e=n.dom.parentNode.appendChild(document.createElement("div"));e.appendChild(t),e.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),r=document.createRange();r.selectNodeContents(t),n.dom.blur(),i.removeAllRanges(),i.addRange(r),setTimeout(()=>{e.parentNode&&e.parentNode.removeChild(e),n.focus()},50)}const Dc=ei&&Is<15||cl&&tR<604;Wn.copy=Kn.cut=(n,t)=>{let e=t,i=n.state.selection,r=e.type=="cut";if(i.empty)return;let s=Dc?null:e.clipboardData,o=i.content(),{dom:a,text:c}=VS(n,o);s?(e.preventDefault(),s.clearData(),s.setData("text/html",a.innerHTML),s.setData("text/plain",c)):rB(n,a),r&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function sB(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function oB(n,t){if(!n.dom.parentNode)return;let e=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,i=n.dom.parentNode.appendChild(document.createElement(e?"textarea":"div"));e||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let r=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),i.parentNode&&i.parentNode.removeChild(i),e?Mc(n,i.value,null,r,t):Mc(n,i.textContent,i.innerHTML,r,t)},50)}function Mc(n,t,e,i,r){let s=jS(n,t,e,i,n.state.selection.$from);if(n.someProp("handlePaste",c=>c(n,r,s||Te.empty)))return!0;if(!s)return!1;let o=sB(s),a=o?n.state.tr.replaceSelectionWith(o,i):n.state.tr.replaceSelection(s);return n.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function e4(n){let t=n.getData("text/plain")||n.getData("Text");if(t)return t;let e=n.getData("text/uri-list");return e?e.replace(/\r?\n/g," "):""}Kn.paste=(n,t)=>{let e=t;if(n.composing&&!$i)return;let i=Dc?null:e.clipboardData,r=n.input.shiftKey&&n.input.lastKeyCode!=45;i&&Mc(n,e4(i),i.getData("text/html"),r,e)?e.preventDefault():oB(n,e)};class aB{constructor(t,e){this.slice=t,this.move=e}}const t4=Bi?"altKey":"ctrlKey";Wn.dragstart=(n,t)=>{let e=t,i=n.input.mouseDown;if(i&&i.done(),!e.dataTransfer)return;let r=n.state.selection,s=r.empty?null:n.posAtCoords(eh(e));if(!(s&&s.pos>=r.from&&s.pos<=(r instanceof Ue?r.to-1:r.to))){if(i&&i.mightDrag)n.dispatch(n.state.tr.setSelection(Ue.create(n.state.doc,i.mightDrag.pos)));else if(e.target&&e.target.nodeType==1){let d=n.docView.nearestDesc(e.target,!0);d&&d.node.type.spec.draggable&&d!=n.docView&&n.dispatch(n.state.tr.setSelection(Ue.create(n.state.doc,d.posBefore)))}}let o=n.state.selection.content(),{dom:a,text:c}=VS(n,o);e.dataTransfer.clearData(),e.dataTransfer.setData(Dc?"Text":"text/html",a.innerHTML),e.dataTransfer.effectAllowed="copyMove",Dc||e.dataTransfer.setData("text/plain",c),n.dragging=new aB(o,!e[t4])};Wn.dragend=n=>{let t=n.dragging;window.setTimeout(()=>{n.dragging==t&&(n.dragging=null)},50)};Kn.dragover=Kn.dragenter=(n,t)=>t.preventDefault();Kn.drop=(n,t)=>{let e=t,i=n.dragging;if(n.dragging=null,!e.dataTransfer)return;let r=n.posAtCoords(eh(e));if(!r)return;let s=n.state.doc.resolve(r.pos),o=i&&i.slice;o?n.someProp("transformPasted",y=>{o=y(o,n)}):o=jS(n,e4(e.dataTransfer),Dc?null:e.dataTransfer.getData("text/html"),!1,s);let a=!!(i&&!e[t4]);if(n.someProp("handleDrop",y=>y(n,e,o||Te.empty,a))){e.preventDefault();return}if(!o)return;e.preventDefault();let c=o?bS(n.state.doc,s.pos,o):s.pos;c==null&&(c=s.pos);let d=n.state.tr;a&&d.deleteSelection();let f=d.mapping.map(c),h=o.openStart==0&&o.openEnd==0&&o.content.childCount==1,g=d.doc;if(h?d.replaceRangeWith(f,f,o.content.firstChild):d.replaceRange(f,f,o),d.doc.eq(g))return;let m=d.doc.resolve(f);if(h&&Ue.isSelectable(o.content.firstChild)&&m.nodeAfter&&m.nodeAfter.sameMarkup(o.content.firstChild))d.setSelection(new Ue(m));else{let y=d.mapping.map(c);d.mapping.maps[d.mapping.maps.length-1].forEach((k,C,T,w)=>y=w),d.setSelection(b_(n,m,d.doc.resolve(y)))}n.focus(),n.dispatch(d.setMeta("uiEvent","drop"))};Wn.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&Qr(n)},20))};Wn.blur=(n,t)=>{let e=t;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),e.relatedTarget&&n.dom.contains(e.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)};Wn.beforeinput=(n,t)=>{if(On&&$i&&t.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:i}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=i||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",s=>s(n,xo(8,"Backspace")))))return;let{$cursor:r}=n.state.selection;r&&r.pos>0&&n.dispatch(n.state.tr.delete(r.pos-1,r.pos).scrollIntoView())},50)}};for(let n in Kn)Wn[n]=Kn[n];function Pc(n,t){if(n==t)return!0;for(let e in n)if(n[e]!==t[e])return!1;for(let e in t)if(!(e in n))return!1;return!0}class $u{constructor(t,e){this.toDOM=t,this.spec=e||qo,this.side=this.spec.side||0}map(t,e,i,r){let{pos:s,deleted:o}=t.mapResult(e.from+r,this.side<0?-1:1);return o?null:new qi(s-i,s-i,this)}valid(){return!0}eq(t){return this==t||t instanceof $u&&(this.spec.key&&this.spec.key==t.spec.key||this.toDOM==t.toDOM&&Pc(this.spec,t.spec))}destroy(t){this.spec.destroy&&this.spec.destroy(t)}}class Bs{constructor(t,e){this.attrs=t,this.spec=e||qo}map(t,e,i,r){let s=t.map(e.from+r,this.spec.inclusiveStart?-1:1)-i,o=t.map(e.to+r,this.spec.inclusiveEnd?1:-1)-i;return s>=o?null:new qi(s,o,this)}valid(t,e){return e.from=t&&(!s||s(a.spec))&&i.push(a.copy(a.from+r,a.to+r))}for(let o=0;ot){let a=this.children[o]+1;this.children[o+2].findInner(t-a,e-a,i,r+a,s)}}map(t,e,i){return this==En||t.maps.length==0?this:this.mapInner(t,e,0,0,i||qo)}mapInner(t,e,i,r,s){let o;for(let a=0;a{let d=c+i,f;if(f=i4(e,a,d)){for(r||(r=this.children.slice());sa&&h.to=t){this.children[a]==t&&(i=this.children[a+2]);break}let s=t+1,o=s+e.content.size;for(let a=0;as&&c.type instanceof Bs){let d=Math.max(s,c.from)-s,f=Math.min(o,c.to)-s;dr.map(t,e,qo));return Es.from(i)}forChild(t,e){if(e.isLeaf)return sn.empty;let i=[];for(let r=0;re instanceof sn)?t:t.reduce((e,i)=>e.concat(i instanceof sn?i:i.members),[]))}}}function lB(n,t,e,i,r,s,o){let a=n.slice();for(let d=0,f=s;d{let C=k-y-(m-g);for(let T=0;Tw+f-h)continue;let O=a[T]+f-h;m>=O?a[T+1]=g<=O?-2:-1:y>=r&&C&&(a[T]+=C,a[T+1]+=C)}h+=C}),f=e.maps[d].map(f,-1)}let c=!1;for(let d=0;d=i.content.size){c=!0;continue}let g=e.map(n[d+1]+s,-1),m=g-r,{index:y,offset:k}=i.content.findIndex(h),C=i.maybeChild(y);if(C&&k==h&&k+C.nodeSize==m){let T=a[d+2].mapInner(e,C,f+1,n[d]+s+1,o);T!=En?(a[d]=h,a[d+1]=m,a[d+2]=T):(a[d+1]=-2,c=!0)}else c=!0}if(c){let d=cB(a,n,t,e,r,s,o),f=ef(d,i,0,o);t=f.local;for(let h=0;he&&o.to{let d=i4(n,a,c+e);if(d){s=!0;let f=ef(d,a,e+c+1,i);f!=En&&r.push(c,c+a.nodeSize,f)}});let o=n4(s?r4(n):n,-e).sort(Ho);for(let a=0;a0;)t++;n.splice(t,0,e)}function Xp(n){let t=[];return n.someProp("decorations",e=>{let i=e(n.state);i&&i!=En&&t.push(i)}),n.cursorWrapper&&t.push(sn.create(n.state.doc,[n.cursorWrapper.deco])),Es.from(t)}const dB={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},uB=ei&&Is<=11;class fB{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(t){this.anchorNode=t.anchorNode,this.anchorOffset=t.anchorOffset,this.focusNode=t.focusNode,this.focusOffset=t.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(t){return t.anchorNode==this.anchorNode&&t.anchorOffset==this.anchorOffset&&t.focusNode==this.focusNode&&t.focusOffset==this.focusOffset}}class hB{constructor(t,e){this.view=t,this.handleDOMChange=e,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new fB,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let r=0;rr.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),uB&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,dB)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let t=this.observer.takeRecords();if(t.length){for(let e=0;ethis.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(dx(this.view)){if(this.suppressingSelectionUpdates)return Qr(this.view);if(ei&&Is<=11&&!this.view.state.selection.empty){let t=this.view.domSelectionRange();if(t.focusNode&&Go(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(t){if(!t.focusNode)return!0;let e=new Set,i;for(let s=t.focusNode;s;s=Ac(s))e.add(s);for(let s=t.anchorNode;s;s=Ac(s))if(e.has(s)){i=s;break}let r=i&&this.view.docView.nearestDesc(i);if(r&&r.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}flush(){let{view:t}=this;if(!t.docView||this.flushingSoon>-1)return;let e=this.pendingRecords();e.length&&(this.queue=[]);let i=t.domSelectionRange(),r=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&dx(t)&&!this.ignoreSelectionChange(i),s=-1,o=-1,a=!1,c=[];if(t.editable)for(let f=0;f1){let f=c.filter(h=>h.nodeName=="BR");if(f.length==2){let h=f[0],g=f[1];h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.remove()}}let d=null;s<0&&r&&t.input.lastFocus>Date.now()-200&&Math.max(t.input.lastTouch,t.input.lastClick.time)-1||r)&&(s>-1&&(t.docView.markDirty(s,o),pB(t)),this.handleDOMChange(s,o,a,c),t.docView&&t.docView.dirty?t.updateState(t.state):this.currentSelection.eq(i)||Qr(t),this.currentSelection.set(i))}registerMutation(t,e){if(e.indexOf(t.target)>-1)return null;let i=this.view.docView.nearestDesc(t.target);if(t.type=="attributes"&&(i==this.view.docView||t.attributeName=="contenteditable"||t.attributeName=="style"&&!t.oldValue&&!t.target.getAttribute("style"))||!i||i.ignoreMutation(t))return null;if(t.type=="childList"){for(let f=0;fr;C--){let T=i.childNodes[C-1],w=T.pmViewDesc;if(T.nodeName=="BR"&&!w){s=C;break}if(!w||w.size)break}let h=n.state.doc,g=n.someProp("domParser")||ol.fromSchema(n.state.schema),m=h.resolve(o),y=null,k=g.parse(i,{topNode:m.parent,topMatch:m.parent.contentMatchAt(m.index()),topOpen:!0,from:r,to:s,preserveWhitespace:m.parent.type.whitespace=="pre"?"full":!0,findPositions:d,ruleFromNode:_B,context:m});if(d&&d[0].pos!=null){let C=d[0].pos,T=d[1]&&d[1].pos;T==null&&(T=C),y={anchor:C+o,head:T+o}}return{doc:k,sel:y,from:o,to:a}}function _B(n){let t=n.pmViewDesc;if(t)return t.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(jn&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let e=document.createElement("div");return e.appendChild(document.createElement("li")),{skip:e}}else if(n.parentNode.lastChild==n||jn&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const yB=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bB(n,t,e,i,r){let s=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,t<0){let F=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,I=y_(n,F);if(I&&!n.state.selection.eq(I)){if(On&&$i&&n.input.lastKeyCode===13&&Date.now()-100H(n,xo(13,"Enter"))))return;let q=n.state.tr.setSelection(I);F=="pointer"?q.setMeta("pointer",!0):F=="key"&&q.scrollIntoView(),s&&q.setMeta("composition",s),n.dispatch(q)}return}let o=n.state.doc.resolve(t),a=o.sharedDepth(e);t=o.before(a+1),e=n.state.doc.resolve(e).after(a+1);let c=n.state.selection,d=gB(n,t,e),f=n.state.doc,h=f.slice(d.from,d.to),g,m;n.input.lastKeyCode===8&&Date.now()-100Date.now()-225||$i)&&r.some(F=>F.nodeType==1&&!yB.test(F.nodeName))&&(!y||y.endA>=y.endB)&&n.someProp("handleKeyDown",F=>F(n,xo(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!y)if(i&&c instanceof et&&!c.empty&&c.$head.sameParent(c.$anchor)&&!n.composing&&!(d.sel&&d.sel.anchor!=d.sel.head))y={start:c.from,endA:c.to,endB:c.to};else{if(d.sel){let F=xx(n,n.state.doc,d.sel);if(F&&!F.eq(n.state.selection)){let I=n.state.tr.setSelection(F);s&&I.setMeta("composition",s),n.dispatch(I)}}return}if(On&&n.cursorWrapper&&d.sel&&d.sel.anchor==n.cursorWrapper.deco.from&&d.sel.head==d.sel.anchor){let F=y.endB-y.start;d.sel={anchor:d.sel.anchor+F,head:d.sel.anchor+F}}n.input.domChangeCount++,n.state.selection.fromn.state.selection.from&&y.start<=n.state.selection.from+2&&n.state.selection.from>=d.from?y.start=n.state.selection.from:y.endA=n.state.selection.to-2&&n.state.selection.to<=d.to&&(y.endB+=n.state.selection.to-y.endA,y.endA=n.state.selection.to)),ei&&Is<=11&&y.endB==y.start+1&&y.endA==y.start&&y.start>d.from&&d.doc.textBetween(y.start-d.from-1,y.start-d.from+1)=="  "&&(y.start--,y.endA--,y.endB--);let k=d.doc.resolveNoCache(y.start-d.from),C=d.doc.resolveNoCache(y.endB-d.from),T=f.resolve(y.start),w=k.sameParent(C)&&k.parent.inlineContent&&T.end()>=y.endA,O;if((cl&&n.input.lastIOSEnter>Date.now()-225&&(!w||r.some(F=>F.nodeName=="DIV"||F.nodeName=="P"))||!w&&k.posF(n,xo(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>y.start&&xB(f,y.start,y.endA,k,C)&&n.someProp("handleKeyDown",F=>F(n,xo(8,"Backspace")))){$i&&On&&n.domObserver.suppressSelectionUpdates();return}On&&$i&&y.endB==y.start&&(n.input.lastAndroidDelete=Date.now()),$i&&!w&&k.start()!=C.start()&&C.parentOffset==0&&k.depth==C.depth&&d.sel&&d.sel.anchor==d.sel.head&&d.sel.head==y.endA&&(y.endB-=2,C=d.doc.resolveNoCache(y.endB-d.from),setTimeout(()=>{n.someProp("handleKeyDown",function(F){return F(n,xo(13,"Enter"))})},20));let x=y.start,L=y.endA,M,B,D;if(w){if(k.pos==C.pos)ei&&Is<=11&&k.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Qr(n),20)),M=n.state.tr.delete(x,L),B=f.resolve(y.start).marksAcross(f.resolve(y.endA));else if(y.endA==y.endB&&(D=vB(k.parent.content.cut(k.parentOffset,C.parentOffset),T.parent.content.cut(T.parentOffset,y.endA-T.start()))))M=n.state.tr,D.type=="add"?M.addMark(x,L,D.mark):M.removeMark(x,L,D.mark);else if(k.parent.child(k.index()).isText&&k.index()==C.index()-(C.textOffset?0:1)){let F=k.parent.textBetween(k.parentOffset,C.parentOffset);if(n.someProp("handleTextInput",I=>I(n,x,L,F)))return;M=n.state.tr.insertText(F,x,L)}}if(M||(M=n.state.tr.replace(x,L,d.doc.slice(y.start-d.from,y.endB-d.from))),d.sel){let F=xx(n,M.doc,d.sel);F&&!(On&&$i&&n.composing&&F.empty&&(y.start!=y.endB||n.input.lastAndroidDeletet.content.size?null:b_(n,t.resolve(e.anchor),t.resolve(e.head))}function vB(n,t){let e=n.firstChild.marks,i=t.firstChild.marks,r=e,s=i,o,a,c;for(let f=0;ff.mark(a.addToSet(f.marks));else if(r.length==0&&s.length==1)a=s[0],o="remove",c=f=>f.mark(a.removeFromSet(f.marks));else return null;let d=[];for(let f=0;fe||Qp(o,!0,!1)0&&(t||n.indexAfter(i)==n.node(i).childCount);)i--,r++,t=!1;if(e){let s=n.node(i).maybeChild(n.indexAfter(i));for(;s&&!s.isLeaf;)s=s.firstChild,r++}return r}function wB(n,t,e,i,r){let s=n.findDiffStart(t,e);if(s==null)return null;let{a:o,b:a}=n.findDiffEnd(t,e+n.size,e+t.size);if(r=="end"){let c=Math.max(0,s-Math.min(o,a));i-=o+c-s}if(o=o?s-i:0;s-=c,a=s+(a-o),o=s}else if(a=a?s-i:0;s-=c,o=s+(o-a),a=s}return{start:s,endA:o,endB:a}}class kB{constructor(t,e){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new VR,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=e,this.state=e.state,this.directPlugins=e.plugins||[],this.directPlugins.forEach(Tx),this.dispatch=this.dispatch.bind(this),this.dom=t&&t.mount||document.createElement("div"),t&&(t.appendChild?t.appendChild(this.dom):typeof t=="function"?t(this.dom):t.mount&&(this.mounted=!0)),this.editable=Cx(this),kx(this),this.nodeViews=Sx(this),this.docView=rx(this.state.doc,wx(this),Xp(this),this.dom,this),this.domObserver=new hB(this,(i,r,s,o)=>bB(this,i,r,s,o)),this.domObserver.start(),jR(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let t=this._props;this._props={};for(let e in t)this._props[e]=t[e];this._props.state=this.state}return this._props}update(t){t.handleDOMEvents!=this._props.handleDOMEvents&&ig(this);let e=this._props;this._props=t,t.plugins&&(t.plugins.forEach(Tx),this.directPlugins=t.plugins),this.updateStateInner(t.state,e)}setProps(t){let e={};for(let i in this._props)e[i]=this._props[i];e.state=this.state;for(let i in t)e[i]=t[i];this.update(e)}updateState(t){this.updateStateInner(t,this._props)}updateStateInner(t,e){let i=this.state,r=!1,s=!1;t.storedMarks&&this.composing&&($S(this),s=!0),this.state=t;let o=i.plugins!=t.plugins||this._props.plugins!=e.plugins;if(o||this._props.plugins!=e.plugins||this._props.nodeViews!=e.nodeViews){let g=Sx(this);SB(g,this.nodeViews)&&(this.nodeViews=g,r=!0)}(o||e.handleDOMEvents!=this._props.handleDOMEvents)&&ig(this),this.editable=Cx(this),kx(this);let a=Xp(this),c=wx(this),d=i.plugins!=t.plugins&&!i.doc.eq(t.doc)?"reset":t.scrollToSelection>i.scrollToSelection?"to selection":"preserve",f=r||!this.docView.matchesNode(t.doc,c,a);(f||!t.selection.eq(i.selection))&&(s=!0);let h=d=="preserve"&&s&&this.dom.style.overflowAnchor==null&&rR(this);if(s){this.domObserver.stop();let g=f&&(ei||On)&&!this.composing&&!i.selection.empty&&!t.selection.empty&&CB(i.selection,t.selection);if(f){let m=On?this.trackWrites=this.domSelectionRange().focusNode:null;(r||!this.docView.update(t.doc,c,a,this))&&(this.docView.updateOuterDeco([]),this.docView.destroy(),this.docView=rx(t.doc,c,a,this.dom,this)),m&&!this.trackWrites&&(g=!0)}g||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&AR(this))?Qr(this,g):(HS(this,t.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():h&&sR(h)}scrollToSelection(){let t=this.domSelectionRange().focusNode;if(!this.someProp("handleScrollToSelection",e=>e(this)))if(this.state.selection instanceof Ue){let e=this.docView.domAfterPos(this.state.selection.from);e.nodeType==1&&Qv(this,e.getBoundingClientRect(),t)}else Qv(this,this.coordsAtPos(this.state.selection.head,1),t)}destroyPluginViews(){let t;for(;t=this.pluginViews.pop();)t.destroy&&t.destroy()}updatePluginViews(t){if(!t||t.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let e=0;ee.ownerDocument.getSelection()),this._root=e}return t||document}updateRoot(){this._root=null}posAtCoords(t){return uR(this,t)}coordsAtPos(t,e=1){return PS(this,t,e)}domAtPos(t,e=0){return this.docView.domFromPos(t,e)}nodeDOM(t){let e=this.docView.descAt(t);return e?e.nodeDOM:null}posAtDOM(t,e,i=-1){let r=this.docView.posFromDOM(t,e,i);if(r==null)throw new RangeError("DOM position not inside the editor");return r}endOfTextblock(t,e){return gR(this,e||this.state,t)}pasteHTML(t,e){return Mc(this,"",t,!1,e||new ClipboardEvent("paste"))}pasteText(t,e){return Mc(this,t,null,!0,e||new ClipboardEvent("paste"))}destroy(){this.docView&&(WR(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Xp(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null)}get isDestroyed(){return this.docView==null}dispatchEvent(t){return GR(this,t)}dispatch(t){let e=this._props.dispatchTransaction;e?e.call(this,t):this.updateState(this.state.apply(t))}domSelectionRange(){return jn&&this.root.nodeType===11&&XI(this.dom.ownerDocument)==this.dom?mB(this):this.domSelection()}domSelection(){return this.root.getSelection()}}function wx(n){let t=Object.create(null);return t.class="ProseMirror",t.contenteditable=String(n.editable),n.someProp("attributes",e=>{if(typeof e=="function"&&(e=e(n.state)),e)for(let i in e)i=="class"?t.class+=" "+e[i]:i=="style"?t.style=(t.style?t.style+";":"")+e[i]:!t[i]&&i!="contenteditable"&&i!="nodeName"&&(t[i]=String(e[i]))}),t.translate||(t.translate="no"),[qi.node(0,n.state.doc.content.size,t)]}function kx(n){if(n.markCursor){let t=document.createElement("img");t.className="ProseMirror-separator",t.setAttribute("mark-placeholder","true"),t.setAttribute("alt",""),n.cursorWrapper={dom:t,deco:qi.widget(n.state.selection.head,t,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function Cx(n){return!n.someProp("editable",t=>t(n.state)===!1)}function CB(n,t){let e=Math.min(n.$anchor.sharedDepth(n.head),t.$anchor.sharedDepth(t.head));return n.$anchor.start(e)!=t.$anchor.start(e)}function Sx(n){let t=Object.create(null);function e(i){for(let r in i)Object.prototype.hasOwnProperty.call(t,r)||(t[r]=i[r])}return n.someProp("nodeViews",e),n.someProp("markViews",e),t}function SB(n,t){let e=0,i=0;for(let r in n){if(n[r]!=t[r])return!0;e++}for(let r in t)i++;return e!=i}function Tx(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}var Ws={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},tf={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},TB=typeof navigator<"u"&&/Mac/.test(navigator.platform),EB=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var xn=0;xn<10;xn++)Ws[48+xn]=Ws[96+xn]=String(xn);for(var xn=1;xn<=24;xn++)Ws[xn+111]="F"+xn;for(var xn=65;xn<=90;xn++)Ws[xn]=String.fromCharCode(xn+32),tf[xn]=String.fromCharCode(xn);for(var $p in Ws)tf.hasOwnProperty($p)||(tf[$p]=Ws[$p]);function OB(n){var t=TB&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||EB&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",e=!t&&n.key||(n.shiftKey?tf:Ws)[n.keyCode]||n.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}const AB=typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!1;function DB(n){let t=n.split(/-(?!$)/),e=t[t.length-1];e=="Space"&&(e=" ");let i,r,s,o;for(let a=0;a127)&&(s=Ws[i.keyCode])&&s!=r){let a=t[em(s,i)];if(a&&a(e.state,e.dispatch,e))return!0}}return!1}}const NB=(n,t)=>n.selection.empty?!1:(t&&t(n.tr.deleteSelection().scrollIntoView()),!0);function IB(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("backward",n):e.parentOffset>0)?null:e}const RB=(n,t,e)=>{let i=IB(n,e);if(!i)return!1;let r=o4(i);if(!r){let o=i.blockRange(),a=o&&gl(o);return a==null?!1:(t&&t(n.tr.lift(o,a).scrollIntoView()),!0)}let s=r.nodeBefore;if(!s.type.spec.isolating&&c4(n,r,t))return!0;if(i.parent.content.size==0&&(dl(s,"end")||Ue.isSelectable(s))){let o=p_(n.doc,i.before(),i.after(),Te.empty);if(o&&o.slice.size{let{$head:i,empty:r}=n.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("backward",n):i.parentOffset>0)return!1;s=o4(i)}let o=s&&s.nodeBefore;return!o||!Ue.isSelectable(o)?!1:(t&&t(n.tr.setSelection(Ue.create(n.doc,s.pos-o.nodeSize)).scrollIntoView()),!0)};function o4(n){if(!n.parent.type.spec.isolating)for(let t=n.depth-1;t>=0;t--){if(n.index(t)>0)return n.doc.resolve(n.before(t+1));if(n.node(t).type.spec.isolating)break}return null}function LB(n,t){let{$cursor:e}=n.selection;return!e||(t?!t.endOfTextblock("forward",n):e.parentOffset{let i=LB(n,e);if(!i)return!1;let r=a4(i);if(!r)return!1;let s=r.nodeAfter;if(c4(n,r,t))return!0;if(i.parent.content.size==0&&(dl(s,"start")||Ue.isSelectable(s))){let o=p_(n.doc,i.before(),i.after(),Te.empty);if(o&&o.slice.size{let{$head:i,empty:r}=n.selection,s=i;if(!r)return!1;if(i.parent.isTextblock){if(e?!e.endOfTextblock("forward",n):i.parentOffset=0;t--){let e=n.node(t);if(n.index(t)+1{let e=n.selection,i=e instanceof Ue,r;if(i){if(e.node.isTextblock||!Xs(n.doc,e.from))return!1;r=e.from}else if(r=Zf(n.doc,e.from,-1),r==null)return!1;if(t){let s=n.tr.join(r);i&&s.setSelection(Ue.create(s.doc,r-n.doc.resolve(r).nodeBefore.nodeSize)),t(s.scrollIntoView())}return!0},zB=(n,t)=>{let e=n.selection,i;if(e instanceof Ue){if(e.node.isTextblock||!Xs(n.doc,e.to))return!1;i=e.to}else if(i=Zf(n.doc,e.to,1),i==null)return!1;return t&&t(n.tr.join(i).scrollIntoView()),!0},UB=(n,t)=>{let{$from:e,$to:i}=n.selection,r=e.blockRange(i),s=r&&gl(r);return s==null?!1:(t&&t(n.tr.lift(r,s).scrollIntoView()),!0)},VB=(n,t)=>{let{$head:e,$anchor:i}=n.selection;return!e.parent.type.spec.code||!e.sameParent(i)?!1:(t&&t(n.tr.insertText(` `).scrollIntoView()),!0)};function l4(n){for(let t=0;t{let{$head:e,$anchor:i}=n.selection;if(!e.parent.type.spec.code||!e.sameParent(i))return!1;let r=e.node(-1),s=e.indexAfter(-1),o=l4(r.contentMatchAt(s));if(!o||!r.canReplaceWith(s,s,o))return!1;if(t){let a=e.after(),c=n.tr.replaceWith(a,a,o.createAndFill());c.setSelection(lt.near(c.doc.resolve(a),1)),t(c.scrollIntoView())}return!0},WB=(n,t)=>{let e=n.selection,{$from:i,$to:r}=e;if(e instanceof or||i.parent.inlineContent||r.parent.inlineContent)return!1;let s=l4(r.parent.contentMatchAt(r.indexAfter()));if(!s||!s.isTextblock)return!1;if(t){let o=(!i.parentOffset&&r.index(){let{$cursor:e}=n.selection;if(!e||e.parent.content.size)return!1;if(e.depth>1&&e.after()!=e.end(-1)){let s=e.before();if(Ga(n.doc,s))return t&&t(n.tr.split(s).scrollIntoView()),!0}let i=e.blockRange(),r=i&&gl(i);return r==null?!1:(t&&t(n.tr.lift(i,r).scrollIntoView()),!0)},GB=(n,t)=>{let{$from:e,to:i}=n.selection,r,s=e.sharedDepth(i);return s==0?!1:(r=e.before(s),t&&t(n.tr.setSelection(Ue.create(n.doc,r))),!0)};function YB(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,s=t.index();return!i||!r||!i.type.compatibleContent(r.type)?!1:!i.content.size&&t.parent.canReplace(s-1,s)?(e&&e(n.tr.delete(t.pos-i.nodeSize,t.pos).scrollIntoView()),!0):!t.parent.canReplace(s,s+1)||!(r.isTextblock||Xs(n.doc,t.pos))?!1:(e&&e(n.tr.clearIncompatible(t.pos,i.type,i.contentMatchAt(i.childCount)).join(t.pos).scrollIntoView()),!0)}function c4(n,t,e){let i=t.nodeBefore,r=t.nodeAfter,s,o;if(i.type.spec.isolating||r.type.spec.isolating)return!1;if(YB(n,t,e))return!0;let a=t.parent.canReplace(t.index(),t.index()+1);if(a&&(s=(o=i.contentMatchAt(i.childCount)).findWrapping(r.type))&&o.matchType(s[0]||r.type).validEnd){if(e){let h=t.pos+r.nodeSize,g=ge.empty;for(let k=s.length-1;k>=0;k--)g=ge.from(s[k].create(null,g));g=ge.from(i.copy(g));let m=n.tr.step(new fn(t.pos-1,h,t.pos,h,new Te(g,1,0),s.length,!0)),y=h+2*s.length;Xs(m.doc,y)&&m.join(y),e(m.scrollIntoView())}return!0}let c=lt.findFrom(t,1),d=c&&c.$from.blockRange(c.$to),f=d&&gl(d);if(f!=null&&f>=t.depth)return e&&e(n.tr.lift(d,f).scrollIntoView()),!0;if(a&&dl(r,"start",!0)&&dl(i,"end")){let h=i,g=[];for(;g.push(h),!h.isTextblock;)h=h.lastChild;let m=r,y=1;for(;!m.isTextblock;m=m.firstChild)y++;if(h.canReplace(h.childCount,h.childCount,m.content)){if(e){let k=ge.empty;for(let T=g.length-1;T>=0;T--)k=ge.from(g[T].copy(k));let C=n.tr.step(new fn(t.pos-g.length,t.pos+r.nodeSize,t.pos+y,t.pos+r.nodeSize-y,new Te(k,g.length,0),0,!0));e(C.scrollIntoView())}return!0}}return!1}function d4(n){return function(t,e){let i=t.selection,r=n<0?i.$from:i.$to,s=r.depth;for(;r.node(s).isInline;){if(!s)return!1;s--}return r.node(s).isTextblock?(e&&e(t.tr.setSelection(et.create(t.doc,n<0?r.start(s):r.end(s)))),!0):!1}}const JB=d4(-1),ZB=d4(1);function XB(n,t=null){return function(e,i){let{$from:r,$to:s}=e.selection,o=r.blockRange(s),a=o&&h_(o,n,t);return a?(i&&i(e.tr.wrap(o,a).scrollIntoView()),!0):!1}}function Ex(n,t=null){return function(e,i){let r=!1;for(let s=0;s{if(r)return!1;if(!(!c.isTextblock||c.hasMarkup(n,t)))if(c.type==n)r=!0;else{let f=e.doc.resolve(d),h=f.index();r=f.parent.canReplaceWith(h,h+1,n)}})}if(!r)return!1;if(i){let s=e.tr;for(let o=0;o=2&&r.node(o.depth-1).type.compatibleContent(n)&&o.startIndex==0){if(r.index(o.depth-1)==0)return!1;let f=e.doc.resolve(o.start-2);c=new Gu(f,f,o.depth),o.endIndex=0;f--)s=ge.from(e[f].type.create(e[f].attrs,s));n.step(new fn(t.start-(i?2:0),t.end,t.start,t.end,new Te(s,0,0),e.length,!0));let o=0;for(let f=0;fo.childCount>0&&o.firstChild.type==n);return s?e?i.node(s.depth-1).type==n?t9(t,e,n,s):n9(t,e,s):!0:!1}}function t9(n,t,e,i){let r=n.tr,s=i.end,o=i.$to.end(i.depth);sk;y--)m-=r.child(y).nodeSize,i.delete(m-1,m+1);let s=i.doc.resolve(e.start),o=s.nodeAfter;if(i.mapping.map(e.end)!=e.start+s.nodeAfter.nodeSize)return!1;let a=e.startIndex==0,c=e.endIndex==r.childCount,d=s.node(-1),f=s.index(-1);if(!d.canReplace(f+(a?0:1),f+1,o.content.append(c?ge.empty:ge.from(r))))return!1;let h=s.pos,g=h+o.nodeSize;return i.step(new fn(h-(a?1:0),g+(c?1:0),h+1,g-1,new Te((a?ge.empty:ge.from(r.copy(ge.empty))).append(c?ge.empty:ge.from(r.copy(ge.empty))),a?0:1,c?0:1),a?0:1)),t(i.scrollIntoView()),!0}function i9(n){return function(t,e){let{$from:i,$to:r}=t.selection,s=i.blockRange(r,d=>d.childCount>0&&d.firstChild.type==n);if(!s)return!1;let o=s.startIndex;if(o==0)return!1;let a=s.parent,c=a.child(o-1);if(c.type!=n)return!1;if(e){let d=c.lastChild&&c.lastChild.type==a.type,f=ge.from(d?n.create():null),h=new Te(ge.from(n.create(null,ge.from(a.type.create(null,f)))),d?3:1,0),g=s.start,m=s.end;e(t.tr.step(new fn(g-(d?3:1),m,g,m,h,1,!0)).scrollIntoView())}return!0}}function th(n){const{state:t,transaction:e}=n;let{selection:i}=e,{doc:r}=e,{storedMarks:s}=e;return{...t,apply:t.apply.bind(t),applyTransaction:t.applyTransaction.bind(t),filterTransaction:t.filterTransaction,plugins:t.plugins,schema:t.schema,reconfigure:t.reconfigure.bind(t),toJSON:t.toJSON.bind(t),get storedMarks(){return s},get selection(){return i},get doc(){return r},get tr(){return i=e.selection,r=e.doc,s=e.storedMarks,e}}}class nh{constructor(t){this.editor=t.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=t.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:t,editor:e,state:i}=this,{view:r}=e,{tr:s}=i,o=this.buildProps(s);return Object.fromEntries(Object.entries(t).map(([a,c])=>[a,(...f)=>{const h=c(...f)(o);return!s.getMeta("preventDispatch")&&!this.hasCustomState&&r.dispatch(s),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(t,e=!0){const{rawCommands:i,editor:r,state:s}=this,{view:o}=r,a=[],c=!!t,d=t||s.tr,f=()=>(!c&&e&&!d.getMeta("preventDispatch")&&!this.hasCustomState&&o.dispatch(d),a.every(g=>g===!0)),h={...Object.fromEntries(Object.entries(i).map(([g,m])=>[g,(...k)=>{const C=this.buildProps(d,e),T=m(...k)(C);return a.push(T),h}])),run:f};return h}createCan(t){const{rawCommands:e,state:i}=this,r=!1,s=t||i.tr,o=this.buildProps(s,r);return{...Object.fromEntries(Object.entries(e).map(([c,d])=>[c,(...f)=>d(...f)({...o,dispatch:void 0})])),chain:()=>this.createChain(s,r)}}buildProps(t,e=!0){const{rawCommands:i,editor:r,state:s}=this,{view:o}=r,a={tr:t,editor:r,view:o,state:th({state:s,transaction:t}),dispatch:e?()=>{}:void 0,chain:()=>this.createChain(t,e),can:()=>this.createCan(t),get commands(){return Object.fromEntries(Object.entries(i).map(([c,d])=>[c,(...f)=>d(...f)(a)]))}};return a}}class r9{constructor(){this.callbacks={}}on(t,e){return this.callbacks[t]||(this.callbacks[t]=[]),this.callbacks[t].push(e),this}emit(t,...e){const i=this.callbacks[t];return i&&i.forEach(r=>r.apply(this,e)),this}off(t,e){const i=this.callbacks[t];return i&&(e?this.callbacks[t]=i.filter(r=>r!==e):delete this.callbacks[t]),this}removeAllListeners(){this.callbacks={}}}function Me(n,t,e){return n.config[t]===void 0&&n.parent?Me(n.parent,t,e):typeof n.config[t]=="function"?n.config[t].bind({...e,parent:n.parent?Me(n.parent,t,e):null}):n.config[t]}function ih(n){const t=n.filter(r=>r.type==="extension"),e=n.filter(r=>r.type==="node"),i=n.filter(r=>r.type==="mark");return{baseExtensions:t,nodeExtensions:e,markExtensions:i}}function u4(n){const t=[],{nodeExtensions:e,markExtensions:i}=ih(n),r=[...e,...i],s={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage},c=Me(o,"addGlobalAttributes",a);if(!c)return;c().forEach(f=>{f.types.forEach(h=>{Object.entries(f.attributes).forEach(([g,m])=>{t.push({type:h,name:g,attribute:{...s,...m}})})})})}),r.forEach(o=>{const a={name:o.name,options:o.options,storage:o.storage},c=Me(o,"addAttributes",a);if(!c)return;const d=c();Object.entries(d).forEach(([f,h])=>{const g={...s,...h};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,t.push({type:o.name,name:f,attribute:g})})}),t}function pn(n,t){if(typeof n=="string"){if(!t.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return t.nodes[n]}return n}function Vt(...n){return n.filter(t=>!!t).reduce((t,e)=>{const i={...t};return Object.entries(e).forEach(([r,s])=>{if(!i[r]){i[r]=s;return}if(r==="class"){const a=s?s.split(" "):[],c=i[r]?i[r].split(" "):[],d=a.filter(f=>!c.includes(f));i[r]=[...c,...d].join(" ")}else r==="style"?i[r]=[i[r],s].join("; "):i[r]=s}),i},{})}function rg(n,t){return t.filter(e=>e.attribute.rendered).map(e=>e.attribute.renderHTML?e.attribute.renderHTML(n.attrs)||{}:{[e.name]:n.attrs[e.name]}).reduce((e,i)=>Vt(e,i),{})}function f4(n){return typeof n=="function"}function ot(n,t=void 0,...e){return f4(n)?t?n.bind(t)(...e):n(...e):n}function s9(n={}){return Object.keys(n).length===0&&n.constructor===Object}function o9(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function Ox(n,t){return n.style?n:{...n,getAttrs:e=>{const i=n.getAttrs?n.getAttrs(e):n.attrs;if(i===!1)return!1;const r=t.reduce((s,o)=>{const a=o.attribute.parseHTML?o.attribute.parseHTML(e):o9(e.getAttribute(o.name));return a==null?s:{...s,[o.name]:a}},{});return{...i,...r}}}}function Ax(n){return Object.fromEntries(Object.entries(n).filter(([t,e])=>t==="attrs"&&s9(e)?!1:e!=null))}function a9(n,t){var e;const i=u4(n),{nodeExtensions:r,markExtensions:s}=ih(n),o=(e=r.find(d=>Me(d,"topNode")))===null||e===void 0?void 0:e.name,a=Object.fromEntries(r.map(d=>{const f=i.filter(T=>T.type===d.name),h={name:d.name,options:d.options,storage:d.storage,editor:t},g=n.reduce((T,w)=>{const O=Me(w,"extendNodeSchema",h);return{...T,...O?O(d):{}}},{}),m=Ax({...g,content:ot(Me(d,"content",h)),marks:ot(Me(d,"marks",h)),group:ot(Me(d,"group",h)),inline:ot(Me(d,"inline",h)),atom:ot(Me(d,"atom",h)),selectable:ot(Me(d,"selectable",h)),draggable:ot(Me(d,"draggable",h)),code:ot(Me(d,"code",h)),defining:ot(Me(d,"defining",h)),isolating:ot(Me(d,"isolating",h)),attrs:Object.fromEntries(f.map(T=>{var w;return[T.name,{default:(w=T==null?void 0:T.attribute)===null||w===void 0?void 0:w.default}]}))}),y=ot(Me(d,"parseHTML",h));y&&(m.parseDOM=y.map(T=>Ox(T,f)));const k=Me(d,"renderHTML",h);k&&(m.toDOM=T=>k({node:T,HTMLAttributes:rg(T,f)}));const C=Me(d,"renderText",h);return C&&(m.toText=C),[d.name,m]})),c=Object.fromEntries(s.map(d=>{const f=i.filter(C=>C.type===d.name),h={name:d.name,options:d.options,storage:d.storage,editor:t},g=n.reduce((C,T)=>{const w=Me(T,"extendMarkSchema",h);return{...C,...w?w(d):{}}},{}),m=Ax({...g,inclusive:ot(Me(d,"inclusive",h)),excludes:ot(Me(d,"excludes",h)),group:ot(Me(d,"group",h)),spanning:ot(Me(d,"spanning",h)),code:ot(Me(d,"code",h)),attrs:Object.fromEntries(f.map(C=>{var T;return[C.name,{default:(T=C==null?void 0:C.attribute)===null||T===void 0?void 0:T.default}]}))}),y=ot(Me(d,"parseHTML",h));y&&(m.parseDOM=y.map(C=>Ox(C,f)));const k=Me(d,"renderHTML",h);return k&&(m.toDOM=C=>k({mark:C,HTMLAttributes:rg(C,f)})),[d.name,m]}));return new gI({topNode:o,nodes:a,marks:c})}function tm(n,t){return t.nodes[n]||t.marks[n]||null}function Dx(n,t){return Array.isArray(t)?t.some(e=>(typeof e=="string"?e:e.name)===n.name):t}const l9=(n,t=500)=>{let e="";const i=n.parentOffset;return n.parent.nodesBetween(Math.max(0,i-t),i,(r,s,o,a)=>{var c,d;const f=((d=(c=r.type.spec).toText)===null||d===void 0?void 0:d.call(c,{node:r,pos:s,parent:o,index:a}))||r.textContent||"%leaf%";e+=f.slice(0,Math.max(0,i-s))}),e};function S_(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class rh{constructor(t){this.find=t.find,this.handler=t.handler}}const c9=(n,t)=>{if(S_(t))return t.exec(n);const e=t(n);if(!e)return null;const i=[e.text];return i.index=e.index,i.input=n,i.data=e.data,e.replaceWith&&(e.text.includes(e.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(e.replaceWith)),i};function nm(n){var t;const{editor:e,from:i,to:r,text:s,rules:o,plugin:a}=n,{view:c}=e;if(c.composing)return!1;const d=c.state.doc.resolve(i);if(d.parent.type.spec.code||!((t=d.nodeBefore||d.nodeAfter)===null||t===void 0)&&t.marks.find(g=>g.type.spec.code))return!1;let f=!1;const h=l9(d)+s;return o.forEach(g=>{if(f)return;const m=c9(h,g.find);if(!m)return;const y=c.state.tr,k=th({state:c.state,transaction:y}),C={from:i-(m[0].length-s.length),to:r},{commands:T,chain:w,can:O}=new nh({editor:e,state:k});g.handler({state:k,range:C,match:m,commands:T,chain:w,can:O})===null||!y.steps.length||(y.setMeta(a,{transform:y,from:i,to:r,text:s}),c.dispatch(y),f=!0)}),f}function d9(n){const{editor:t,rules:e}=n,i=new kn({state:{init(){return null},apply(r,s){const o=r.getMeta(i);return o||(r.selectionSet||r.docChanged?null:s)}},props:{handleTextInput(r,s,o,a){return nm({editor:t,from:s,to:o,text:a,rules:e,plugin:i})},handleDOMEvents:{compositionend:r=>(setTimeout(()=>{const{$cursor:s}=r.state.selection;s&&nm({editor:t,from:s.pos,to:s.pos,text:"",rules:e,plugin:i})}),!1)},handleKeyDown(r,s){if(s.key!=="Enter")return!1;const{$cursor:o}=r.state.selection;return o?nm({editor:t,from:o.pos,to:o.pos,text:` `,rules:e,plugin:i}):!1}},isInputRules:!0});return i}function u9(n){return typeof n=="number"}class f9{constructor(t){this.find=t.find,this.handler=t.handler}}const h9=(n,t)=>{if(S_(t))return[...n.matchAll(t)];const e=t(n);return e?e.map(i=>{const r=[i.text];return r.index=i.index,r.input=n,r.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),r.push(i.replaceWith)),r}):[]};function p9(n){const{editor:t,state:e,from:i,to:r,rule:s,pasteEvent:o,dropEvent:a}=n,{commands:c,chain:d,can:f}=new nh({editor:t,state:e}),h=[];return e.doc.nodesBetween(i,r,(m,y)=>{if(!m.isTextblock||m.type.spec.code)return;const k=Math.max(i,y),C=Math.min(r,y+m.content.size),T=m.textBetween(k-y,C-y,void 0,"");h9(T,s.find).forEach(O=>{if(O.index===void 0)return;const x=k+O.index+1,L=x+O[0].length,M={from:e.tr.mapping.map(x),to:e.tr.mapping.map(L)},B=s.handler({state:e,range:M,match:O,commands:c,chain:d,can:f,pasteEvent:o,dropEvent:a});h.push(B)})}),h.every(m=>m!==null)}function m9(n){const{editor:t,rules:e}=n;let i=null,r=!1,s=!1,o=new ClipboardEvent("paste"),a=new DragEvent("drop");return e.map(d=>new kn({view(f){const h=g=>{var m;i=!((m=f.dom.parentElement)===null||m===void 0)&&m.contains(g.target)?f.dom.parentElement:null};return window.addEventListener("dragstart",h),{destroy(){window.removeEventListener("dragstart",h)}}},props:{handleDOMEvents:{drop:(f,h)=>(s=i===f.dom.parentElement,a=h,!1),paste:(f,h)=>{var g;const m=(g=h.clipboardData)===null||g===void 0?void 0:g.getData("text/html");return o=h,r=!!(m!=null&&m.includes("data-pm-slice")),!1}}},appendTransaction:(f,h,g)=>{const m=f[0],y=m.getMeta("uiEvent")==="paste"&&!r,k=m.getMeta("uiEvent")==="drop"&&!s;if(!y&&!k)return;const C=h.doc.content.findDiffStart(g.doc.content),T=h.doc.content.findDiffEnd(g.doc.content);if(!u9(C)||!T||C===T.b)return;const w=g.tr,O=th({state:g,transaction:w});if(!(!p9({editor:t,state:O,from:Math.max(C-1,0),to:T.b-1,rule:d,pasteEvent:o,dropEvent:a})||!w.steps.length))return a=new DragEvent("drop"),o=new ClipboardEvent("paste"),w}}))}function g9(n){const t=n.filter((e,i)=>n.indexOf(e)!==i);return[...new Set(t)]}class Ba{constructor(t,e){this.splittableMarks=[],this.editor=e,this.extensions=Ba.resolve(t),this.schema=a9(this.extensions,e),this.extensions.forEach(i=>{var r;this.editor.extensionStorage[i.name]=i.storage;const s={name:i.name,options:i.options,storage:i.storage,editor:this.editor,type:tm(i.name,this.schema)};i.type==="mark"&&(!((r=ot(Me(i,"keepOnSplit",s)))!==null&&r!==void 0)||r)&&this.splittableMarks.push(i.name);const o=Me(i,"onBeforeCreate",s);o&&this.editor.on("beforeCreate",o);const a=Me(i,"onCreate",s);a&&this.editor.on("create",a);const c=Me(i,"onUpdate",s);c&&this.editor.on("update",c);const d=Me(i,"onSelectionUpdate",s);d&&this.editor.on("selectionUpdate",d);const f=Me(i,"onTransaction",s);f&&this.editor.on("transaction",f);const h=Me(i,"onFocus",s);h&&this.editor.on("focus",h);const g=Me(i,"onBlur",s);g&&this.editor.on("blur",g);const m=Me(i,"onDestroy",s);m&&this.editor.on("destroy",m)})}static resolve(t){const e=Ba.sort(Ba.flatten(t)),i=g9(e.map(r=>r.name));return i.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${i.map(r=>`'${r}'`).join(", ")}]. This can lead to issues.`),e}static flatten(t){return t.map(e=>{const i={name:e.name,options:e.options,storage:e.storage},r=Me(e,"addExtensions",i);return r?[e,...this.flatten(r())]:e}).flat(10)}static sort(t){return t.sort((i,r)=>{const s=Me(i,"priority")||100,o=Me(r,"priority")||100;return s>o?-1:s{const i={name:e.name,options:e.options,storage:e.storage,editor:this.editor,type:tm(e.name,this.schema)},r=Me(e,"addCommands",i);return r?{...t,...r()}:t},{})}get plugins(){const{editor:t}=this,e=Ba.sort([...this.extensions].reverse()),i=[],r=[],s=e.map(o=>{const a={name:o.name,options:o.options,storage:o.storage,editor:t,type:tm(o.name,this.schema)},c=[],d=Me(o,"addKeyboardShortcuts",a);let f={};if(o.type==="mark"&&o.config.exitable&&(f.ArrowRight=()=>ii.handleExit({editor:t,mark:o})),d){const k=Object.fromEntries(Object.entries(d()).map(([C,T])=>[C,()=>T({editor:t})]));f={...f,...k}}const h=PB(f);c.push(h);const g=Me(o,"addInputRules",a);Dx(o,t.options.enableInputRules)&&g&&i.push(...g());const m=Me(o,"addPasteRules",a);Dx(o,t.options.enablePasteRules)&&m&&r.push(...m());const y=Me(o,"addProseMirrorPlugins",a);if(y){const k=y();c.push(...k)}return c}).flat();return[d9({editor:t,rules:i}),...m9({editor:t,rules:r}),...s]}get attributes(){return u4(this.extensions)}get nodeViews(){const{editor:t}=this,{nodeExtensions:e}=ih(this.extensions);return Object.fromEntries(e.filter(i=>!!Me(i,"addNodeView")).map(i=>{const r=this.attributes.filter(c=>c.type===i.name),s={name:i.name,options:i.options,storage:i.storage,editor:t,type:pn(i.name,this.schema)},o=Me(i,"addNodeView",s);if(!o)return[];const a=(c,d,f,h)=>{const g=rg(c,r);return o()({editor:t,node:c,getPos:f,decorations:h,HTMLAttributes:g,extension:i})};return[i.name,a]}))}}function _9(n){return Object.prototype.toString.call(n).slice(8,-1)}function im(n){return _9(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function sh(n,t){const e={...n};return im(n)&&im(t)&&Object.keys(t).forEach(i=>{im(t[i])?i in n?e[i]=sh(n[i],t[i]):Object.assign(e,{[i]:t[i]}):Object.assign(e,{[i]:t[i]})}),e}class wn{constructor(t={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ot(Me(this,"addOptions",{name:this.name}))),this.storage=ot(Me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new wn(t)}configure(t={}){const e=this.extend();return e.options=sh(this.options,t),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new wn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=ot(Me(e,"addOptions",{name:e.name})),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}}function h4(n,t,e){const{from:i,to:r}=t,{blockSeparator:s=` `,textSerializers:o={}}=e||{};let a="",c=!0;return n.nodesBetween(i,r,(d,f,h,g)=>{var m;const y=o==null?void 0:o[d.type.name];y?(d.isBlock&&!c&&(a+=s,c=!0),h&&(a+=y({node:d,pos:f,parent:h,index:g,range:t}))):d.isText?(a+=(m=d==null?void 0:d.text)===null||m===void 0?void 0:m.slice(Math.max(i,f)-f,r-f),c=!1):d.isBlock&&!c&&(a+=s,c=!0)}),a}function p4(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,t])=>t.spec.toText).map(([t,e])=>[t,e.spec.toText]))}const y9=wn.create({name:"clipboardTextSerializer",addProseMirrorPlugins(){return[new kn({key:new Ci("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:t,schema:e}=n,{doc:i,selection:r}=t,{ranges:s}=r,o=Math.min(...s.map(f=>f.$from.pos)),a=Math.max(...s.map(f=>f.$to.pos)),c=p4(e);return h4(i,{from:o,to:a},{textSerializers:c})}}})]}}),b9=()=>({editor:n,view:t})=>(requestAnimationFrame(()=>{var e;n.isDestroyed||(t.dom.blur(),(e=window==null?void 0:window.getSelection())===null||e===void 0||e.removeAllRanges())}),!0),v9=(n=!1)=>({commands:t})=>t.setContent("",n),x9=()=>({state:n,tr:t,dispatch:e})=>{const{selection:i}=t,{ranges:r}=i;return e&&r.forEach(({$from:s,$to:o})=>{n.doc.nodesBetween(s.pos,o.pos,(a,c)=>{if(a.type.isText)return;const{doc:d,mapping:f}=t,h=d.resolve(f.map(c)),g=d.resolve(f.map(c+a.nodeSize)),m=h.blockRange(g);if(!m)return;const y=gl(m);if(a.type.isTextblock){const{defaultType:k}=h.parent.contentMatchAt(h.index());t.setNodeMarkup(m.start,k)}(y||y===0)&&t.lift(m,y)})}),!0},w9=n=>t=>n(t),k9=()=>({state:n,dispatch:t})=>WB(n,t),C9=(n,t)=>({editor:e,tr:i})=>{const{state:r}=e,s=r.doc.slice(n.from,n.to);i.deleteRange(n.from,n.to);const o=i.mapping.map(t);return i.insert(o,s.content),i.setSelection(new et(i.doc.resolve(o-1))),!0},S9=()=>({tr:n,dispatch:t})=>{const{selection:e}=n,i=e.$anchor.node();if(i.content.size>0)return!1;const r=n.selection.$anchor;for(let s=r.depth;s>0;s-=1)if(r.node(s).type===i.type){if(t){const a=r.before(s),c=r.after(s);n.delete(a,c).scrollIntoView()}return!0}return!1},T9=n=>({tr:t,state:e,dispatch:i})=>{const r=pn(n,e.schema),s=t.selection.$anchor;for(let o=s.depth;o>0;o-=1)if(s.node(o).type===r){if(i){const c=s.before(o),d=s.after(o);t.delete(c,d).scrollIntoView()}return!0}return!1},E9=n=>({tr:t,dispatch:e})=>{const{from:i,to:r}=n;return e&&t.delete(i,r),!0},O9=()=>({state:n,dispatch:t})=>NB(n,t),A9=()=>({commands:n})=>n.keyboardShortcut("Enter"),D9=()=>({state:n,dispatch:t})=>jB(n,t);function nf(n,t,e={strict:!0}){const i=Object.keys(t);return i.length?i.every(r=>e.strict?t[r]===n[r]:S_(t[r])?t[r].test(n[r]):t[r]===n[r]):!0}function sg(n,t,e={}){return n.find(i=>i.type===t&&nf(i.attrs,e))}function M9(n,t,e={}){return!!sg(n,t,e)}function T_(n,t,e={}){if(!n||!t)return;let i=n.parent.childAfter(n.parentOffset);if(n.parentOffset===i.offset&&i.offset!==0&&(i=n.parent.childBefore(n.parentOffset)),!i.node)return;const r=sg([...i.node.marks],t,e);if(!r)return;let s=i.index,o=n.start()+i.offset,a=s+1,c=o+i.node.nodeSize;for(sg([...i.node.marks],t,e);s>0&&r.isInSet(n.parent.child(s-1).marks);)s-=1,o-=n.parent.child(s).nodeSize;for(;a({tr:e,state:i,dispatch:r})=>{const s=$s(n,i.schema),{doc:o,selection:a}=e,{$from:c,from:d,to:f}=a;if(r){const h=T_(c,s,t);if(h&&h.from<=d&&h.to>=f){const g=et.create(o,h.from,h.to);e.setSelection(g)}}return!0},N9=n=>t=>{const e=typeof n=="function"?n(t):n;for(let i=0;i({editor:e,view:i,tr:r,dispatch:s})=>{t={scrollIntoView:!0,...t};const o=()=>{O_()&&i.dom.focus(),requestAnimationFrame(()=>{e.isDestroyed||(i.focus(),t!=null&&t.scrollIntoView&&e.commands.scrollIntoView())})};if(i.hasFocus()&&n===null||n===!1)return!0;if(s&&n===null&&!E_(e.state.selection))return o(),!0;const a=m4(r.doc,n)||e.state.selection,c=e.state.selection.eq(a);return s&&(c||r.setSelection(a),c&&r.storedMarks&&r.setStoredMarks(r.storedMarks),o()),!0},R9=(n,t)=>e=>n.every((i,r)=>t(i,{...e,index:r})),B9=(n,t)=>({tr:e,commands:i})=>i.insertContentAt({from:e.selection.from,to:e.selection.to},n,t);function Mx(n){const t=`${n}`;return new window.DOMParser().parseFromString(t,"text/html").body}function rf(n,t,e){if(e={slice:!0,parseOptions:{},...e},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?ge.fromArray(n.map(i=>t.nodeFromJSON(i))):t.nodeFromJSON(n)}catch(i){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",i),rf("",t,e)}if(typeof n=="string"){const i=ol.fromSchema(t);return e.slice?i.parseSlice(Mx(n),e.parseOptions).content:i.parse(Mx(n),e.parseOptions)}return rf("",t,e)}function L9(n,t,e){const i=n.steps.length-1;if(i{o===0&&(o=f)}),n.setSelection(lt.near(n.doc.resolve(o),e))}const F9=n=>n.toString().startsWith("<"),q9=(n,t,e)=>({tr:i,dispatch:r,editor:s})=>{if(r){e={parseOptions:{},updateSelection:!0,...e};const o=rf(t,s.schema,{parseOptions:{preserveWhitespace:"full",...e.parseOptions}});if(o.toString()==="<>")return!0;let{from:a,to:c}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},d=!0,f=!0;if((F9(o)?o:[o]).forEach(g=>{g.check(),d=d?g.isText&&g.marks.length===0:!1,f=f?g.isBlock:!1}),a===c&&f){const{parent:g}=i.doc.resolve(a);g.isTextblock&&!g.type.spec.code&&!g.childCount&&(a-=1,c+=1)}d?Array.isArray(t)?i.insertText(t.map(g=>g.text||"").join(""),a,c):typeof t=="object"&&t&&t.text?i.insertText(t.text,a,c):i.insertText(t,a,c):i.replaceWith(a,c,o),e.updateSelection&&L9(i,i.steps.length-1,-1)}return!0},H9=()=>({state:n,dispatch:t})=>HB(n,t),z9=()=>({state:n,dispatch:t})=>zB(n,t),U9=()=>({state:n,dispatch:t})=>RB(n,t),V9=()=>({state:n,dispatch:t})=>FB(n,t),j9=()=>({tr:n,state:t,dispatch:e})=>{try{const i=Zf(t.doc,t.selection.$from.pos,-1);return i==null?!1:(n.join(i,2),e&&e(n),!0)}catch{return!1}},W9=()=>({state:n,dispatch:t,tr:e})=>{try{const i=Zf(n.doc,n.selection.$from.pos,1);return i==null?!1:(e.join(i,2),t&&t(e),!0)}catch{return!1}};function A_(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function K9(n){const t=n.split(/-(?!$)/);let e=t[t.length-1];e==="Space"&&(e=" ");let i,r,s,o;for(let a=0;a({editor:t,view:e,tr:i,dispatch:r})=>{const s=K9(n).split(/-(?!$)/),o=s.find(d=>!["Alt","Ctrl","Meta","Shift"].includes(d)),a=new KeyboardEvent("keydown",{key:o==="Space"?" ":o,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0}),c=t.captureTransaction(()=>{e.someProp("handleKeyDown",d=>d(e,a))});return c==null||c.steps.forEach(d=>{const f=d.map(i.mapping);f&&r&&i.maybeStep(f)}),!0};function Nc(n,t,e={}){const{from:i,to:r,empty:s}=n.selection,o=t?pn(t,n.schema):null,a=[];n.doc.nodesBetween(i,r,(h,g)=>{if(h.isText)return;const m=Math.max(i,g),y=Math.min(r,g+h.nodeSize);a.push({node:h,from:m,to:y})});const c=r-i,d=a.filter(h=>o?o.name===h.node.type.name:!0).filter(h=>nf(h.node.attrs,e,{strict:!1}));return s?!!d.length:d.reduce((h,g)=>h+g.to-g.from,0)>=c}const Y9=(n,t={})=>({state:e,dispatch:i})=>{const r=pn(n,e.schema);return Nc(e,r,t)?UB(e,i):!1},J9=()=>({state:n,dispatch:t})=>KB(n,t),Z9=n=>({state:t,dispatch:e})=>{const i=pn(n,t.schema);return e9(i)(t,e)},X9=()=>({state:n,dispatch:t})=>VB(n,t);function oh(n,t){return t.nodes[n]?"node":t.marks[n]?"mark":null}function Px(n,t){const e=typeof t=="string"?[t]:t;return Object.keys(n).reduce((i,r)=>(e.includes(r)||(i[r]=n[r]),i),{})}const Q9=(n,t)=>({tr:e,state:i,dispatch:r})=>{let s=null,o=null;const a=oh(typeof n=="string"?n:n.name,i.schema);return a?(a==="node"&&(s=pn(n,i.schema)),a==="mark"&&(o=$s(n,i.schema)),r&&e.selection.ranges.forEach(c=>{i.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,f)=>{s&&s===d.type&&e.setNodeMarkup(f,void 0,Px(d.attrs,t)),o&&d.marks.length&&d.marks.forEach(h=>{o===h.type&&e.addMark(f,f+d.nodeSize,o.create(Px(h.attrs,t)))})})}),!0):!1},$9=()=>({tr:n,dispatch:t})=>(t&&n.scrollIntoView(),!0),eL=()=>({tr:n,commands:t})=>t.setTextSelection({from:0,to:n.doc.content.size}),tL=()=>({state:n,dispatch:t})=>BB(n,t),nL=()=>({state:n,dispatch:t})=>qB(n,t),iL=()=>({state:n,dispatch:t})=>GB(n,t),rL=()=>({state:n,dispatch:t})=>ZB(n,t),sL=()=>({state:n,dispatch:t})=>JB(n,t);function g4(n,t,e={}){return rf(n,t,{slice:!1,parseOptions:e})}const oL=(n,t=!1,e={})=>({tr:i,editor:r,dispatch:s})=>{const{doc:o}=i,a=g4(n,r.schema,e);return s&&i.replaceWith(0,o.content.size,a).setMeta("preventUpdate",!t),!0};function Xc(n,t){const e=$s(t,n.schema),{from:i,to:r,empty:s}=n.selection,o=[];s?(n.storedMarks&&o.push(...n.storedMarks),o.push(...n.selection.$head.marks())):n.doc.nodesBetween(i,r,c=>{o.push(...c.marks)});const a=o.find(c=>c.type.name===e.name);return a?{...a.attrs}:{}}function aL(n,t){const e=new CS(n);return t.forEach(i=>{i.steps.forEach(r=>{e.step(r)})}),e}function lL(n){for(let t=0;t{e(r)&&i.push({node:r,pos:s})}),i}function dL(n,t){for(let e=n.depth;e>0;e-=1){const i=n.node(e);if(t(i))return{pos:e>0?n.before(e):0,start:n.start(e),depth:e,node:i}}}function D_(n){return t=>dL(t.$from,n)}function uL(n,t){const e=kr.fromSchema(t).serializeFragment(n),r=document.implementation.createHTMLDocument().createElement("div");return r.appendChild(e),r.innerHTML}function fL(n,t){const e={from:0,to:n.content.size};return h4(n,e,t)}function hL(n,t){const e=pn(t,n.schema),{from:i,to:r}=n.selection,s=[];n.doc.nodesBetween(i,r,a=>{s.push(a)});const o=s.reverse().find(a=>a.type.name===e.name);return o?{...o.attrs}:{}}function _4(n,t){const e=oh(typeof t=="string"?t:t.name,n.schema);return e==="node"?hL(n,t):e==="mark"?Xc(n,t):{}}function pL(n,t=JSON.stringify){const e={};return n.filter(i=>{const r=t(i);return Object.prototype.hasOwnProperty.call(e,r)?!1:e[r]=!0})}function mL(n){const t=pL(n);return t.length===1?t:t.filter((e,i)=>!t.filter((s,o)=>o!==i).some(s=>e.oldRange.from>=s.oldRange.from&&e.oldRange.to<=s.oldRange.to&&e.newRange.from>=s.newRange.from&&e.newRange.to<=s.newRange.to))}function gL(n){const{mapping:t,steps:e}=n,i=[];return t.maps.forEach((r,s)=>{const o=[];if(r.ranges.length)r.forEach((a,c)=>{o.push({from:a,to:c})});else{const{from:a,to:c}=e[s];if(a===void 0||c===void 0)return;o.push({from:a,to:c})}o.forEach(({from:a,to:c})=>{const d=t.slice(s).map(a,-1),f=t.slice(s).map(c),h=t.invert().map(d,-1),g=t.invert().map(f);i.push({oldRange:{from:h,to:g},newRange:{from:d,to:f}})})}),mL(i)}function M_(n,t,e){const i=[];return n===t?e.resolve(n).marks().forEach(r=>{const s=e.resolve(n-1),o=T_(s,r.type);o&&i.push({mark:r,...o})}):e.nodesBetween(n,t,(r,s)=>{i.push(...r.marks.map(o=>({from:s,to:s+r.nodeSize,mark:o})))}),i}function _u(n,t,e){return Object.fromEntries(Object.entries(e).filter(([i])=>{const r=n.find(s=>s.type===t&&s.name===i);return r?r.attribute.keepOnSplit:!1}))}function og(n,t,e={}){const{empty:i,ranges:r}=n.selection,s=t?$s(t,n.schema):null;if(i)return!!(n.storedMarks||n.selection.$from.marks()).filter(h=>s?s.name===h.type.name:!0).find(h=>nf(h.attrs,e,{strict:!1}));let o=0;const a=[];if(r.forEach(({$from:h,$to:g})=>{const m=h.pos,y=g.pos;n.doc.nodesBetween(m,y,(k,C)=>{if(!k.isText&&!k.marks.length)return;const T=Math.max(m,C),w=Math.min(y,C+k.nodeSize),O=w-T;o+=O,a.push(...k.marks.map(x=>({mark:x,from:T,to:w})))})}),o===0)return!1;const c=a.filter(h=>s?s.name===h.mark.type.name:!0).filter(h=>nf(h.mark.attrs,e,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),d=a.filter(h=>s?h.mark.type!==s&&h.mark.type.excludes(s):!0).reduce((h,g)=>h+g.to-g.from,0);return(c>0?c+d:c)>=o}function _L(n,t,e={}){if(!t)return Nc(n,null,e)||og(n,null,e);const i=oh(t,n.schema);return i==="node"?Nc(n,t,e):i==="mark"?og(n,t,e):!1}function Nx(n,t){const{nodeExtensions:e}=ih(t),i=e.find(o=>o.name===n);if(!i)return!1;const r={name:i.name,options:i.options,storage:i.storage},s=ot(Me(i,"group",r));return typeof s!="string"?!1:s.split(" ").includes("list")}function yL(n){var t;const e=(t=n.type.createAndFill())===null||t===void 0?void 0:t.toJSON(),i=n.toJSON();return JSON.stringify(e)===JSON.stringify(i)}function bL(n){return n instanceof Ue}function y4(n,t,e){const r=n.state.doc.content.size,s=Yr(t,0,r),o=Yr(e,0,r),a=n.coordsAtPos(s),c=n.coordsAtPos(o,-1),d=Math.min(a.top,c.top),f=Math.max(a.bottom,c.bottom),h=Math.min(a.left,c.left),g=Math.max(a.right,c.right),m=g-h,y=f-d,T={top:d,bottom:f,left:h,right:g,width:m,height:y,x:h,y:d};return{...T,toJSON:()=>T}}function vL(n,t,e){var i;const{selection:r}=t;let s=null;if(E_(r)&&(s=r.$cursor),s){const a=(i=n.storedMarks)!==null&&i!==void 0?i:s.marks();return!!e.isInSet(a)||!a.some(c=>c.type.excludes(e))}const{ranges:o}=r;return o.some(({$from:a,$to:c})=>{let d=a.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(e):!1;return n.doc.nodesBetween(a.pos,c.pos,(f,h,g)=>{if(d)return!1;if(f.isInline){const m=!g||g.type.allowsMarkType(e),y=!!e.isInSet(f.marks)||!f.marks.some(k=>k.type.excludes(e));d=m&&y}return!d}),d})}const xL=(n,t={})=>({tr:e,state:i,dispatch:r})=>{const{selection:s}=e,{empty:o,ranges:a}=s,c=$s(n,i.schema);if(r)if(o){const d=Xc(i,c);e.addStoredMark(c.create({...d,...t}))}else a.forEach(d=>{const f=d.$from.pos,h=d.$to.pos;i.doc.nodesBetween(f,h,(g,m)=>{const y=Math.max(m,f),k=Math.min(m+g.nodeSize,h);g.marks.find(T=>T.type===c)?g.marks.forEach(T=>{c===T.type&&e.addMark(y,k,c.create({...T.attrs,...t}))}):e.addMark(y,k,c.create(t))})});return vL(i,e,c)},wL=(n,t)=>({tr:e})=>(e.setMeta(n,t),!0),kL=(n,t={})=>({state:e,dispatch:i,chain:r})=>{const s=pn(n,e.schema);return s.isTextblock?r().command(({commands:o})=>Ex(s,t)(e)?!0:o.clearNodes()).command(({state:o})=>Ex(s,t)(o,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},CL=n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,r=Yr(n,0,i.content.size),s=Ue.create(i,r);t.setSelection(s)}return!0},SL=n=>({tr:t,dispatch:e})=>{if(e){const{doc:i}=t,{from:r,to:s}=typeof n=="number"?{from:n,to:n}:n,o=et.atStart(i).from,a=et.atEnd(i).to,c=Yr(r,o,a),d=Yr(s,o,a),f=et.create(i,c,d);t.setSelection(f)}return!0},TL=n=>({state:t,dispatch:e})=>{const i=pn(n,t.schema);return i9(i)(t,e)};function Ix(n,t){const e=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(e){const i=e.filter(r=>t==null?void 0:t.includes(r.type.name));n.tr.ensureMarks(i)}}const EL=({keepMarks:n=!0}={})=>({tr:t,state:e,dispatch:i,editor:r})=>{const{selection:s,doc:o}=t,{$from:a,$to:c}=s,d=r.extensionManager.attributes,f=_u(d,a.node().type.name,a.node().attrs);if(s instanceof Ue&&s.node.isBlock)return!a.parentOffset||!Ga(o,a.pos)?!1:(i&&(n&&Ix(e,r.extensionManager.splittableMarks),t.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(i){const h=c.parentOffset===c.parent.content.size;s instanceof et&&t.deleteSelection();const g=a.depth===0?void 0:lL(a.node(-1).contentMatchAt(a.indexAfter(-1)));let m=h&&g?[{type:g,attrs:f}]:void 0,y=Ga(t.doc,t.mapping.map(a.pos),1,m);if(!m&&!y&&Ga(t.doc,t.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(y=!0,m=g?[{type:g,attrs:f}]:void 0),y&&(t.split(t.mapping.map(a.pos),1,m),g&&!h&&!a.parentOffset&&a.parent.type!==g)){const k=t.mapping.map(a.before()),C=t.doc.resolve(k);a.node(-1).canReplaceWith(C.index(),C.index()+1,g)&&t.setNodeMarkup(t.mapping.map(a.before()),g)}n&&Ix(e,r.extensionManager.splittableMarks),t.scrollIntoView()}return!0},OL=n=>({tr:t,state:e,dispatch:i,editor:r})=>{var s;const o=pn(n,e.schema),{$from:a,$to:c}=e.selection,d=e.selection.node;if(d&&d.isBlock||a.depth<2||!a.sameParent(c))return!1;const f=a.node(-1);if(f.type!==o)return!1;const h=r.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==o||a.index(-2)!==a.node(-2).childCount-1)return!1;if(i){let C=ge.empty;const T=a.index(-1)?1:a.index(-2)?2:3;for(let B=a.depth-T;B>=a.depth-3;B-=1)C=ge.from(a.node(B).copy(C));const w=a.indexAfter(-1){if(M>-1)return!1;B.isTextblock&&B.content.size===0&&(M=D+1)}),M>-1&&t.setSelection(et.near(t.doc.resolve(M))),t.scrollIntoView()}return!0}const g=c.pos===a.end()?f.contentMatchAt(0).defaultType:null,m=_u(h,f.type.name,f.attrs),y=_u(h,a.node().type.name,a.node().attrs);t.delete(a.pos,c.pos);const k=g?[{type:o,attrs:m},{type:g,attrs:y}]:[{type:o,attrs:m}];if(!Ga(t.doc,a.pos,2))return!1;if(i){const{selection:C,storedMarks:T}=e,{splittableMarks:w}=r.extensionManager,O=T||C.$to.parentOffset&&C.$from.marks();if(t.split(a.pos,2,k).scrollIntoView(),!O||!i)return!0;const x=O.filter(L=>w.includes(L.type.name));t.ensureMarks(x)}return!0},rm=(n,t)=>{const e=D_(o=>o.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(Math.max(0,e.pos-1)).before(e.depth);if(i===void 0)return!0;const r=n.doc.nodeAt(i);return e.node.type===(r==null?void 0:r.type)&&Xs(n.doc,e.pos)&&n.join(e.pos),!0},sm=(n,t)=>{const e=D_(o=>o.type===t)(n.selection);if(!e)return!0;const i=n.doc.resolve(e.start).after(e.depth);if(i===void 0)return!0;const r=n.doc.nodeAt(i);return e.node.type===(r==null?void 0:r.type)&&Xs(n.doc,i)&&n.join(i),!0},AL=(n,t,e,i={})=>({editor:r,tr:s,state:o,dispatch:a,chain:c,commands:d,can:f})=>{const{extensions:h,splittableMarks:g}=r.extensionManager,m=pn(n,o.schema),y=pn(t,o.schema),{selection:k,storedMarks:C}=o,{$from:T,$to:w}=k,O=T.blockRange(w),x=C||k.$to.parentOffset&&k.$from.marks();if(!O)return!1;const L=D_(M=>Nx(M.type.name,h))(k);if(O.depth>=1&&L&&O.depth-L.depth<=1){if(L.node.type===m)return d.liftListItem(y);if(Nx(L.node.type.name,h)&&m.validContent(L.node.content)&&a)return c().command(()=>(s.setNodeMarkup(L.pos,m),!0)).command(()=>rm(s,m)).command(()=>sm(s,m)).run()}return!e||!x||!a?c().command(()=>f().wrapInList(m,i)?!0:d.clearNodes()).wrapInList(m,i).command(()=>rm(s,m)).command(()=>sm(s,m)).run():c().command(()=>{const M=f().wrapInList(m,i),B=x.filter(D=>g.includes(D.type.name));return s.ensureMarks(B),M?!0:d.clearNodes()}).wrapInList(m,i).command(()=>rm(s,m)).command(()=>sm(s,m)).run()},DL=(n,t={},e={})=>({state:i,commands:r})=>{const{extendEmptyMarkRange:s=!1}=e,o=$s(n,i.schema);return og(i,o,t)?r.unsetMark(o,{extendEmptyMarkRange:s}):r.setMark(o,t)},ML=(n,t,e={})=>({state:i,commands:r})=>{const s=pn(n,i.schema),o=pn(t,i.schema);return Nc(i,s,e)?r.setNode(o):r.setNode(s,e)},PL=(n,t={})=>({state:e,commands:i})=>{const r=pn(n,e.schema);return Nc(e,r,t)?i.lift(r):i.wrapIn(r,t)},NL=()=>({state:n,dispatch:t})=>{const e=n.plugins;for(let i=0;i=0;c-=1)o.step(a.steps[c].invert(a.docs[c]));if(s.text){const c=o.doc.resolve(s.from).marks();o.replaceWith(s.from,s.to,n.schema.text(s.text,c))}else o.delete(s.from,s.to)}return!0}}return!1},IL=()=>({tr:n,dispatch:t})=>{const{selection:e}=n,{empty:i,ranges:r}=e;return i||t&&r.forEach(s=>{n.removeMark(s.$from.pos,s.$to.pos)}),!0},RL=(n,t={})=>({tr:e,state:i,dispatch:r})=>{var s;const{extendEmptyMarkRange:o=!1}=t,{selection:a}=e,c=$s(n,i.schema),{$from:d,empty:f,ranges:h}=a;if(!r)return!0;if(f&&o){let{from:g,to:m}=a;const y=(s=d.marks().find(C=>C.type===c))===null||s===void 0?void 0:s.attrs,k=T_(d,c,y);k&&(g=k.from,m=k.to),e.removeMark(g,m,c)}else h.forEach(g=>{e.removeMark(g.$from.pos,g.$to.pos,c)});return e.removeStoredMark(c),!0},BL=(n,t={})=>({tr:e,state:i,dispatch:r})=>{let s=null,o=null;const a=oh(typeof n=="string"?n:n.name,i.schema);return a?(a==="node"&&(s=pn(n,i.schema)),a==="mark"&&(o=$s(n,i.schema)),r&&e.selection.ranges.forEach(c=>{const d=c.$from.pos,f=c.$to.pos;i.doc.nodesBetween(d,f,(h,g)=>{s&&s===h.type&&e.setNodeMarkup(g,void 0,{...h.attrs,...t}),o&&h.marks.length&&h.marks.forEach(m=>{if(o===m.type){const y=Math.max(g,d),k=Math.min(g+h.nodeSize,f);e.addMark(y,k,o.create({...m.attrs,...t}))}})})}),!0):!1},LL=(n,t={})=>({state:e,dispatch:i})=>{const r=pn(n,e.schema);return XB(r,t)(e,i)},FL=(n,t={})=>({state:e,dispatch:i})=>{const r=pn(n,e.schema);return QB(r,t)(e,i)};var qL=Object.freeze({__proto__:null,blur:b9,clearContent:v9,clearNodes:x9,command:w9,createParagraphNear:k9,cut:C9,deleteCurrentNode:S9,deleteNode:T9,deleteRange:E9,deleteSelection:O9,enter:A9,exitCode:D9,extendMarkRange:P9,first:N9,focus:I9,forEach:R9,insertContent:B9,insertContentAt:q9,joinUp:H9,joinDown:z9,joinBackward:U9,joinForward:V9,joinItemBackward:j9,joinItemForward:W9,keyboardShortcut:G9,lift:Y9,liftEmptyBlock:J9,liftListItem:Z9,newlineInCode:X9,resetAttributes:Q9,scrollIntoView:$9,selectAll:eL,selectNodeBackward:tL,selectNodeForward:nL,selectParentNode:iL,selectTextblockEnd:rL,selectTextblockStart:sL,setContent:oL,setMark:xL,setMeta:wL,setNode:kL,setNodeSelection:CL,setTextSelection:SL,sinkListItem:TL,splitBlock:EL,splitListItem:OL,toggleList:AL,toggleMark:DL,toggleNode:ML,toggleWrap:PL,undoInputRule:NL,unsetAllMarks:IL,unsetMark:RL,updateAttributes:BL,wrapIn:LL,wrapInList:FL});const HL=wn.create({name:"commands",addCommands(){return{...qL}}}),zL=wn.create({name:"editable",addProseMirrorPlugins(){return[new kn({key:new Ci("editable"),props:{editable:()=>this.editor.options.editable}})]}}),UL=wn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new kn({key:new Ci("focusEvents"),props:{handleDOMEvents:{focus:(t,e)=>{n.isFocused=!0;const i=n.state.tr.setMeta("focus",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1},blur:(t,e)=>{n.isFocused=!1;const i=n.state.tr.setMeta("blur",{event:e}).setMeta("addToHistory",!1);return t.dispatch(i),!1}}}})]}}),VL=wn.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:o})=>[()=>o.undoInputRule(),()=>o.command(({tr:a})=>{const{selection:c,doc:d}=a,{empty:f,$anchor:h}=c,{pos:g,parent:m}=h,y=h.parent.isTextblock?a.doc.resolve(g-1):h,k=y.parent.type.spec.isolating,C=h.pos-h.parentOffset,T=k&&y.parent.childCount===1?C===h.pos:lt.atStart(d).from===g;return!f||!T||!m.type.isTextblock||m.textContent.length?!1:o.clearNodes()}),()=>o.deleteSelection(),()=>o.joinBackward(),()=>o.selectNodeBackward()]),t=()=>this.editor.commands.first(({commands:o})=>[()=>o.deleteSelection(),()=>o.deleteCurrentNode(),()=>o.joinForward(),()=>o.selectNodeForward()]),i={Enter:()=>this.editor.commands.first(({commands:o})=>[()=>o.newlineInCode(),()=>o.createParagraphNear(),()=>o.liftEmptyBlock(),()=>o.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:t,"Mod-Delete":t,"Mod-a":()=>this.editor.commands.selectAll()},r={...i},s={...i,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":t,"Ctrl-Alt-Backspace":t,"Alt-Delete":t,"Alt-d":t,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return O_()||A_()?s:r},addProseMirrorPlugins(){return[new kn({key:new Ci("clearDocument"),appendTransaction:(n,t,e)=>{if(!(n.some(y=>y.docChanged)&&!t.doc.eq(e.doc)))return;const{empty:r,from:s,to:o}=t.selection,a=lt.atStart(t.doc).from,c=lt.atEnd(t.doc).to;if(r||!(s===a&&o===c)||!(e.doc.textBetween(0,e.doc.content.size," "," ").length===0))return;const h=e.tr,g=th({state:e,transaction:h}),{commands:m}=new nh({editor:this.editor,state:g});if(m.clearNodes(),!!h.steps.length)return h}})]}}),jL=wn.create({name:"tabindex",addProseMirrorPlugins(){return[new kn({key:new Ci("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});var WL=Object.freeze({__proto__:null,ClipboardTextSerializer:y9,Commands:HL,Editable:zL,FocusEvents:UL,Keymap:VL,Tabindex:jL});const KL=`.ProseMirror { position: relative; } .ProseMirror { word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ } .ProseMirror [contenteditable="false"] { white-space: normal; } .ProseMirror [contenteditable="false"] [contenteditable="true"] { white-space: pre-wrap; } .ProseMirror pre { white-space: pre-wrap; } img.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; width: 1px !important; height: 1px !important; } .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; margin: 0; } .ProseMirror-gapcursor:after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid black; animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; } @keyframes ProseMirror-cursor-blink { to { visibility: hidden; } } .ProseMirror-hideselection *::selection { background: transparent; } .ProseMirror-hideselection *::-moz-selection { background: transparent; } .ProseMirror-hideselection * { caret-color: transparent; } .ProseMirror-focused .ProseMirror-gapcursor { display: block; } .tippy-box[data-animation=fade][data-state=hidden] { opacity: 0 }`;function GL(n,t,e){const i=document.querySelector(`style[data-tiptap-style${e?`-${e}`:""}]`);if(i!==null)return i;const r=document.createElement("style");return t&&r.setAttribute("nonce",t),r.setAttribute(`data-tiptap-style${e?`-${e}`:""}`,""),r.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(r),r}let YL=class extends r9{constructor(t={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(t),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=GL(KL,this.options.injectNonce))}setOptions(t={}){this.options={...this.options,...t},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(t,e=!0){this.setOptions({editable:t}),e&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(t,e){const i=f4(e)?e(t,[...this.state.plugins]):[...this.state.plugins,t],r=this.state.reconfigure({plugins:i});this.view.updateState(r)}unregisterPlugin(t){if(this.isDestroyed)return;const e=typeof t=="string"?`${t}$`:t.key,i=this.state.reconfigure({plugins:this.state.plugins.filter(r=>!r.key.startsWith(e))});this.view.updateState(i)}createExtensionManager(){const e=[...this.options.enableCoreExtensions?Object.values(WL):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i==null?void 0:i.type));this.extensionManager=new Ba(e,this)}createCommandManager(){this.commandManager=new nh({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const t=g4(this.options.content,this.schema,this.options.parseOptions),e=m4(t,this.options.autofocus);this.view=new kB(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Ra.create({doc:t,selection:e||void 0})});const i=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(i),this.createNodeViews(),this.prependClass();const r=this.view.dom;r.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(t){this.isCapturingTransaction=!0,t(),this.isCapturingTransaction=!1;const e=this.capturedTransaction;return this.capturedTransaction=null,e}dispatchTransaction(t){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=t;return}t.steps.forEach(o=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(o)});return}const e=this.state.apply(t),i=!this.state.selection.eq(e.selection);this.view.updateState(e),this.emit("transaction",{editor:this,transaction:t}),i&&this.emit("selectionUpdate",{editor:this,transaction:t});const r=t.getMeta("focus"),s=t.getMeta("blur");r&&this.emit("focus",{editor:this,event:r.event,transaction:t}),s&&this.emit("blur",{editor:this,event:s.event,transaction:t}),!(!t.docChanged||t.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:t})}getAttributes(t){return _4(this.state,t)}isActive(t,e){const i=typeof t=="string"?t:null,r=typeof t=="string"?e:t;return _L(this.state,i,r)}getJSON(){return this.state.doc.toJSON()}getHTML(){return uL(this.state.doc.content,this.schema)}getText(t){const{blockSeparator:e=` `,textSerializers:i={}}=t||{};return fL(this.state.doc,{blockSeparator:e,textSerializers:{...p4(this.schema),...i}})}get isEmpty(){return yL(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var t;return!(!((t=this.view)===null||t===void 0)&&t.docView)}};function Jo(n){return new rh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=ot(n.getAttributes,void 0,i);if(r===!1||r===null)return null;const{tr:s}=t,o=i[i.length-1],a=i[0];if(o){const c=a.search(/\S/),d=e.from+a.indexOf(o),f=d+o.length;if(M_(e.from,e.to,t.doc).filter(m=>m.mark.type.excluded.find(k=>k===n.type&&k!==m.mark.type)).filter(m=>m.to>d).length)return null;fe.from&&s.delete(e.from+c,d);const g=e.from+c+o.length;s.addMark(e.from+c,g,n.type.create(r||{})),s.removeStoredMark(n.type)}}})}function JL(n){return new rh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=ot(n.getAttributes,void 0,i)||{},{tr:s}=t,o=e.from;let a=e.to;const c=n.type.create(r);if(i[1]){const d=i[0].lastIndexOf(i[1]);let f=o+d;f>a?f=a:a=f+i[1].length;const h=i[0][i[0].length-1];s.insertText(h,o+i[0].length-1),s.replaceWith(f,a,c)}else i[0]&&s.insert(o-1,n.type.create(r)).delete(s.mapping.map(o),s.mapping.map(a));s.scrollIntoView()}})}function ag(n){return new rh({find:n.find,handler:({state:t,range:e,match:i})=>{const r=t.doc.resolve(e.from),s=ot(n.getAttributes,void 0,i)||{};if(!r.node(-1).canReplaceWith(r.index(-1),r.indexAfter(-1),n.type))return null;t.tr.delete(e.from,e.to).setBlockType(e.from,e.from,n.type,s)}})}function Ic(n){return new rh({find:n.find,handler:({state:t,range:e,match:i,chain:r})=>{const s=ot(n.getAttributes,void 0,i)||{},o=t.tr.delete(e.from,e.to),c=o.doc.resolve(e.from).blockRange(),d=c&&h_(c,n.type,s);if(!d)return null;if(o.wrap(c,d),n.keepMarks&&n.editor){const{selection:h,storedMarks:g}=t,{splittableMarks:m}=n.editor.extensionManager,y=g||h.$to.parentOffset&&h.$from.marks();if(y){const k=y.filter(C=>m.includes(C.type.name));o.ensureMarks(k)}}if(n.keepAttributes){const h=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";r().updateAttributes(h,s).run()}const f=o.doc.resolve(e.from-1).nodeBefore;f&&f.type===n.type&&Xs(o.doc,e.from-1)&&(!n.joinPredicate||n.joinPredicate(i,f))&&o.join(e.from-1)}})}class ii{constructor(t={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ot(Me(this,"addOptions",{name:this.name}))),this.storage=ot(Me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new ii(t)}configure(t={}){const e=this.extend();return e.options=sh(this.options,t),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new ii(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=ot(Me(e,"addOptions",{name:e.name})),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}static handleExit({editor:t,mark:e}){const{tr:i}=t.state,r=t.state.selection.$from;if(r.pos===r.end()){const o=r.marks();if(!!!o.find(d=>(d==null?void 0:d.type.name)===e.name))return!1;const c=o.find(d=>(d==null?void 0:d.type.name)===e.name);return c&&i.removeStoredMark(c),i.insertText(" ",r.pos),t.view.dispatch(i),!0}return!1}}class Rn{constructor(t={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...t},this.name=this.config.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=ot(Me(this,"addOptions",{name:this.name}))),this.storage=ot(Me(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(t={}){return new Rn(t)}configure(t={}){const e=this.extend();return e.options=sh(this.options,t),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}extend(t={}){const e=new Rn(t);return e.parent=this,this.child=e,e.name=t.name?t.name:e.parent.name,t.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${e.name}".`),e.options=ot(Me(e,"addOptions",{name:e.name})),e.storage=ot(Me(e,"addStorage",{name:e.name,options:e.options})),e}}function Ks(n){return new f9({find:n.find,handler:({state:t,range:e,match:i,pasteEvent:r})=>{const s=ot(n.getAttributes,void 0,i,r);if(s===!1||s===null)return null;const{tr:o}=t,a=i[i.length-1],c=i[0];let d=e.to;if(a){const f=c.search(/\S/),h=e.from+c.indexOf(a),g=h+a.length;if(M_(e.from,e.to,t.doc).filter(y=>y.mark.type.excluded.find(C=>C===n.type&&C!==y.mark.type)).filter(y=>y.to>h).length)return null;ge.from&&o.delete(e.from+f,h),d=e.from+f+a.length,o.addMark(e.from+f,d,n.type.create(s||{})),o.removeStoredMark(n.type)}}})}var ti="top",ji="bottom",Wi="right",ni="left",P_="auto",Qc=[ti,ji,Wi,ni],ul="start",Rc="end",ZL="clippingParents",b4="viewport",ql="popper",XL="reference",Rx=Qc.reduce(function(n,t){return n.concat([t+"-"+ul,t+"-"+Rc])},[]),v4=[].concat(Qc,[P_]).reduce(function(n,t){return n.concat([t,t+"-"+ul,t+"-"+Rc])},[]),QL="beforeRead",$L="read",eF="afterRead",tF="beforeMain",nF="main",iF="afterMain",rF="beforeWrite",sF="write",oF="afterWrite",aF=[QL,$L,eF,tF,nF,iF,rF,sF,oF];function Dr(n){return n?(n.nodeName||"").toLowerCase():null}function wi(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function Zo(n){var t=wi(n).Element;return n instanceof t||n instanceof Element}function zi(n){var t=wi(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function N_(n){if(typeof ShadowRoot>"u")return!1;var t=wi(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function lF(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},r=t.attributes[e]||{},s=t.elements[e];!zi(s)||!Dr(s)||(Object.assign(s.style,i),Object.keys(r).forEach(function(o){var a=r[o];a===!1?s.removeAttribute(o):s.setAttribute(o,a===!0?"":a)}))})}function cF(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(i){var r=t.elements[i],s=t.attributes[i]||{},o=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:e[i]),a=o.reduce(function(c,d){return c[d]="",c},{});!zi(r)||!Dr(r)||(Object.assign(r.style,a),Object.keys(s).forEach(function(c){r.removeAttribute(c)}))})}}const x4={name:"applyStyles",enabled:!0,phase:"write",fn:lF,effect:cF,requires:["computeStyles"]};function Tr(n){return n.split("-")[0]}var zo=Math.max,sf=Math.min,fl=Math.round;function lg(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function w4(){return!/^((?!chrome|android).)*safari/i.test(lg())}function hl(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var i=n.getBoundingClientRect(),r=1,s=1;t&&zi(n)&&(r=n.offsetWidth>0&&fl(i.width)/n.offsetWidth||1,s=n.offsetHeight>0&&fl(i.height)/n.offsetHeight||1);var o=Zo(n)?wi(n):window,a=o.visualViewport,c=!w4()&&e,d=(i.left+(c&&a?a.offsetLeft:0))/r,f=(i.top+(c&&a?a.offsetTop:0))/s,h=i.width/r,g=i.height/s;return{width:h,height:g,top:f,right:d+h,bottom:f+g,left:d,x:d,y:f}}function I_(n){var t=hl(n),e=n.offsetWidth,i=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:i}}function k4(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&N_(e)){var i=t;do{if(i&&n.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function es(n){return wi(n).getComputedStyle(n)}function dF(n){return["table","td","th"].indexOf(Dr(n))>=0}function eo(n){return((Zo(n)?n.ownerDocument:n.document)||window.document).documentElement}function ah(n){return Dr(n)==="html"?n:n.assignedSlot||n.parentNode||(N_(n)?n.host:null)||eo(n)}function Bx(n){return!zi(n)||es(n).position==="fixed"?null:n.offsetParent}function uF(n){var t=/firefox/i.test(lg()),e=/Trident/i.test(lg());if(e&&zi(n)){var i=es(n);if(i.position==="fixed")return null}var r=ah(n);for(N_(r)&&(r=r.host);zi(r)&&["html","body"].indexOf(Dr(r))<0;){var s=es(r);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return r;r=r.parentNode}return null}function $c(n){for(var t=wi(n),e=Bx(n);e&&dF(e)&&es(e).position==="static";)e=Bx(e);return e&&(Dr(e)==="html"||Dr(e)==="body"&&es(e).position==="static")?t:e||uF(n)||t}function R_(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function oc(n,t,e){return zo(n,sf(t,e))}function fF(n,t,e){var i=oc(n,t,e);return i>e?e:i}function C4(){return{top:0,right:0,bottom:0,left:0}}function S4(n){return Object.assign({},C4(),n)}function T4(n,t){return t.reduce(function(e,i){return e[i]=n,e},{})}var hF=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,S4(typeof t!="number"?t:T4(t,Qc))};function pF(n){var t,e=n.state,i=n.name,r=n.options,s=e.elements.arrow,o=e.modifiersData.popperOffsets,a=Tr(e.placement),c=R_(a),d=[ni,Wi].indexOf(a)>=0,f=d?"height":"width";if(!(!s||!o)){var h=hF(r.padding,e),g=I_(s),m=c==="y"?ti:ni,y=c==="y"?ji:Wi,k=e.rects.reference[f]+e.rects.reference[c]-o[c]-e.rects.popper[f],C=o[c]-e.rects.reference[c],T=$c(s),w=T?c==="y"?T.clientHeight||0:T.clientWidth||0:0,O=k/2-C/2,x=h[m],L=w-g[f]-h[y],M=w/2-g[f]/2+O,B=oc(x,M,L),D=c;e.modifiersData[i]=(t={},t[D]=B,t.centerOffset=B-M,t)}}function mF(n){var t=n.state,e=n.options,i=e.element,r=i===void 0?"[data-popper-arrow]":i;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||k4(t.elements.popper,r)&&(t.elements.arrow=r))}const gF={name:"arrow",enabled:!0,phase:"main",fn:pF,effect:mF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pl(n){return n.split("-")[1]}var _F={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yF(n,t){var e=n.x,i=n.y,r=t.devicePixelRatio||1;return{x:fl(e*r)/r||0,y:fl(i*r)/r||0}}function Lx(n){var t,e=n.popper,i=n.popperRect,r=n.placement,s=n.variation,o=n.offsets,a=n.position,c=n.gpuAcceleration,d=n.adaptive,f=n.roundOffsets,h=n.isFixed,g=o.x,m=g===void 0?0:g,y=o.y,k=y===void 0?0:y,C=typeof f=="function"?f({x:m,y:k}):{x:m,y:k};m=C.x,k=C.y;var T=o.hasOwnProperty("x"),w=o.hasOwnProperty("y"),O=ni,x=ti,L=window;if(d){var M=$c(e),B="clientHeight",D="clientWidth";if(M===wi(e)&&(M=eo(e),es(M).position!=="static"&&a==="absolute"&&(B="scrollHeight",D="scrollWidth")),M=M,r===ti||(r===ni||r===Wi)&&s===Rc){x=ji;var F=h&&M===L&&L.visualViewport?L.visualViewport.height:M[B];k-=F-i.height,k*=c?1:-1}if(r===ni||(r===ti||r===ji)&&s===Rc){O=Wi;var I=h&&M===L&&L.visualViewport?L.visualViewport.width:M[D];m-=I-i.width,m*=c?1:-1}}var q=Object.assign({position:a},d&&_F),H=f===!0?yF({x:m,y:k},wi(e)):{x:m,y:k};if(m=H.x,k=H.y,c){var W;return Object.assign({},q,(W={},W[x]=w?"0":"",W[O]=T?"0":"",W.transform=(L.devicePixelRatio||1)<=1?"translate("+m+"px, "+k+"px)":"translate3d("+m+"px, "+k+"px, 0)",W))}return Object.assign({},q,(t={},t[x]=w?k+"px":"",t[O]=T?m+"px":"",t.transform="",t))}function bF(n){var t=n.state,e=n.options,i=e.gpuAcceleration,r=i===void 0?!0:i,s=e.adaptive,o=s===void 0?!0:s,a=e.roundOffsets,c=a===void 0?!0:a,d={placement:Tr(t.placement),variation:pl(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Lx(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Lx(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:bF,data:{}};var su={passive:!0};function xF(n){var t=n.state,e=n.instance,i=n.options,r=i.scroll,s=r===void 0?!0:r,o=i.resize,a=o===void 0?!0:o,c=wi(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(f){f.addEventListener("scroll",e.update,su)}),a&&c.addEventListener("resize",e.update,su),function(){s&&d.forEach(function(f){f.removeEventListener("scroll",e.update,su)}),a&&c.removeEventListener("resize",e.update,su)}}const wF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:xF,data:{}};var kF={left:"right",right:"left",bottom:"top",top:"bottom"};function yu(n){return n.replace(/left|right|bottom|top/g,function(t){return kF[t]})}var CF={start:"end",end:"start"};function Fx(n){return n.replace(/start|end/g,function(t){return CF[t]})}function B_(n){var t=wi(n),e=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:e,scrollTop:i}}function L_(n){return hl(eo(n)).left+B_(n).scrollLeft}function SF(n,t){var e=wi(n),i=eo(n),r=e.visualViewport,s=i.clientWidth,o=i.clientHeight,a=0,c=0;if(r){s=r.width,o=r.height;var d=w4();(d||!d&&t==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:s,height:o,x:a+L_(n),y:c}}function TF(n){var t,e=eo(n),i=B_(n),r=(t=n.ownerDocument)==null?void 0:t.body,s=zo(e.scrollWidth,e.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=zo(e.scrollHeight,e.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),a=-i.scrollLeft+L_(n),c=-i.scrollTop;return es(r||e).direction==="rtl"&&(a+=zo(e.clientWidth,r?r.clientWidth:0)-s),{width:s,height:o,x:a,y:c}}function F_(n){var t=es(n),e=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+r+i)}function E4(n){return["html","body","#document"].indexOf(Dr(n))>=0?n.ownerDocument.body:zi(n)&&F_(n)?n:E4(ah(n))}function ac(n,t){var e;t===void 0&&(t=[]);var i=E4(n),r=i===((e=n.ownerDocument)==null?void 0:e.body),s=wi(i),o=r?[s].concat(s.visualViewport||[],F_(i)?i:[]):i,a=t.concat(o);return r?a:a.concat(ac(ah(o)))}function cg(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function EF(n,t){var e=hl(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function qx(n,t,e){return t===b4?cg(SF(n,e)):Zo(t)?EF(t,e):cg(TF(eo(n)))}function OF(n){var t=ac(ah(n)),e=["absolute","fixed"].indexOf(es(n).position)>=0,i=e&&zi(n)?$c(n):n;return Zo(i)?t.filter(function(r){return Zo(r)&&k4(r,i)&&Dr(r)!=="body"}):[]}function AF(n,t,e,i){var r=t==="clippingParents"?OF(n):[].concat(t),s=[].concat(r,[e]),o=s[0],a=s.reduce(function(c,d){var f=qx(n,d,i);return c.top=zo(f.top,c.top),c.right=sf(f.right,c.right),c.bottom=sf(f.bottom,c.bottom),c.left=zo(f.left,c.left),c},qx(n,o,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function O4(n){var t=n.reference,e=n.element,i=n.placement,r=i?Tr(i):null,s=i?pl(i):null,o=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,c;switch(r){case ti:c={x:o,y:t.y-e.height};break;case ji:c={x:o,y:t.y+t.height};break;case Wi:c={x:t.x+t.width,y:a};break;case ni:c={x:t.x-e.width,y:a};break;default:c={x:t.x,y:t.y}}var d=r?R_(r):null;if(d!=null){var f=d==="y"?"height":"width";switch(s){case ul:c[d]=c[d]-(t[f]/2-e[f]/2);break;case Rc:c[d]=c[d]+(t[f]/2-e[f]/2);break}}return c}function Bc(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=i===void 0?n.placement:i,s=e.strategy,o=s===void 0?n.strategy:s,a=e.boundary,c=a===void 0?ZL:a,d=e.rootBoundary,f=d===void 0?b4:d,h=e.elementContext,g=h===void 0?ql:h,m=e.altBoundary,y=m===void 0?!1:m,k=e.padding,C=k===void 0?0:k,T=S4(typeof C!="number"?C:T4(C,Qc)),w=g===ql?XL:ql,O=n.rects.popper,x=n.elements[y?w:g],L=AF(Zo(x)?x:x.contextElement||eo(n.elements.popper),c,f,o),M=hl(n.elements.reference),B=O4({reference:M,element:O,strategy:"absolute",placement:r}),D=cg(Object.assign({},O,B)),F=g===ql?D:M,I={top:L.top-F.top+T.top,bottom:F.bottom-L.bottom+T.bottom,left:L.left-F.left+T.left,right:F.right-L.right+T.right},q=n.modifiersData.offset;if(g===ql&&q){var H=q[r];Object.keys(I).forEach(function(W){var Y=[Wi,ji].indexOf(W)>=0?1:-1,_e=[ti,ji].indexOf(W)>=0?"y":"x";I[W]+=H[_e]*Y})}return I}function DF(n,t){t===void 0&&(t={});var e=t,i=e.placement,r=e.boundary,s=e.rootBoundary,o=e.padding,a=e.flipVariations,c=e.allowedAutoPlacements,d=c===void 0?v4:c,f=pl(i),h=f?a?Rx:Rx.filter(function(y){return pl(y)===f}):Qc,g=h.filter(function(y){return d.indexOf(y)>=0});g.length===0&&(g=h);var m=g.reduce(function(y,k){return y[k]=Bc(n,{placement:k,boundary:r,rootBoundary:s,padding:o})[Tr(k)],y},{});return Object.keys(m).sort(function(y,k){return m[y]-m[k]})}function MF(n){if(Tr(n)===P_)return[];var t=yu(n);return[Fx(n),t,Fx(t)]}function PF(n){var t=n.state,e=n.options,i=n.name;if(!t.modifiersData[i]._skip){for(var r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!0:o,c=e.fallbackPlacements,d=e.padding,f=e.boundary,h=e.rootBoundary,g=e.altBoundary,m=e.flipVariations,y=m===void 0?!0:m,k=e.allowedAutoPlacements,C=t.options.placement,T=Tr(C),w=T===C,O=c||(w||!y?[yu(C)]:MF(C)),x=[C].concat(O).reduce(function(se,Ge){return se.concat(Tr(Ge)===P_?DF(t,{placement:Ge,boundary:f,rootBoundary:h,padding:d,flipVariations:y,allowedAutoPlacements:k}):Ge)},[]),L=t.rects.reference,M=t.rects.popper,B=new Map,D=!0,F=x[0],I=0;I=0,_e=Y?"width":"height",he=Bc(t,{placement:q,boundary:f,rootBoundary:h,altBoundary:g,padding:d}),ye=Y?W?Wi:ni:W?ji:ti;L[_e]>M[_e]&&(ye=yu(ye));var pe=yu(ye),Ne=[];if(s&&Ne.push(he[H]<=0),a&&Ne.push(he[ye]<=0,he[pe]<=0),Ne.every(function(se){return se})){F=q,D=!1;break}B.set(q,Ne)}if(D)for(var Be=y?3:1,Z=function(Ge){var Ye=x.find(function(xt){var Ie=B.get(xt);if(Ie)return Ie.slice(0,Ge).every(function(Kt){return Kt})});if(Ye)return F=Ye,"break"},te=Be;te>0;te--){var re=Z(te);if(re==="break")break}t.placement!==F&&(t.modifiersData[i]._skip=!0,t.placement=F,t.reset=!0)}}const NF={name:"flip",enabled:!0,phase:"main",fn:PF,requiresIfExists:["offset"],data:{_skip:!1}};function Hx(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function zx(n){return[ti,Wi,ji,ni].some(function(t){return n[t]>=0})}function IF(n){var t=n.state,e=n.name,i=t.rects.reference,r=t.rects.popper,s=t.modifiersData.preventOverflow,o=Bc(t,{elementContext:"reference"}),a=Bc(t,{altBoundary:!0}),c=Hx(o,i),d=Hx(a,r,s),f=zx(c),h=zx(d);t.modifiersData[e]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const RF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:IF};function BF(n,t,e){var i=Tr(n),r=[ni,ti].indexOf(i)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,o=s[0],a=s[1];return o=o||0,a=(a||0)*r,[ni,Wi].indexOf(i)>=0?{x:a,y:o}:{x:o,y:a}}function LF(n){var t=n.state,e=n.options,i=n.name,r=e.offset,s=r===void 0?[0,0]:r,o=v4.reduce(function(f,h){return f[h]=BF(h,t.rects,s),f},{}),a=o[t.placement],c=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=o}const FF={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LF};function qF(n){var t=n.state,e=n.name;t.modifiersData[e]=O4({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const HF={name:"popperOffsets",enabled:!0,phase:"read",fn:qF,data:{}};function zF(n){return n==="x"?"y":"x"}function UF(n){var t=n.state,e=n.options,i=n.name,r=e.mainAxis,s=r===void 0?!0:r,o=e.altAxis,a=o===void 0?!1:o,c=e.boundary,d=e.rootBoundary,f=e.altBoundary,h=e.padding,g=e.tether,m=g===void 0?!0:g,y=e.tetherOffset,k=y===void 0?0:y,C=Bc(t,{boundary:c,rootBoundary:d,padding:h,altBoundary:f}),T=Tr(t.placement),w=pl(t.placement),O=!w,x=R_(T),L=zF(x),M=t.modifiersData.popperOffsets,B=t.rects.reference,D=t.rects.popper,F=typeof k=="function"?k(Object.assign({},t.rects,{placement:t.placement})):k,I=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),q=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,H={x:0,y:0};if(M){if(s){var W,Y=x==="y"?ti:ni,_e=x==="y"?ji:Wi,he=x==="y"?"height":"width",ye=M[x],pe=ye+C[Y],Ne=ye-C[_e],Be=m?-D[he]/2:0,Z=w===ul?B[he]:D[he],te=w===ul?-D[he]:-B[he],re=t.elements.arrow,se=m&&re?I_(re):{width:0,height:0},Ge=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:C4(),Ye=Ge[Y],xt=Ge[_e],Ie=oc(0,B[he],se[he]),Kt=O?B[he]/2-Be-Ie-Ye-I.mainAxis:Z-Ie-Ye-I.mainAxis,Bt=O?-B[he]/2+Be+Ie+xt+I.mainAxis:te+Ie+xt+I.mainAxis,$t=t.elements.arrow&&$c(t.elements.arrow),en=$t?x==="y"?$t.clientTop||0:$t.clientLeft||0:0,U=(W=q==null?void 0:q[x])!=null?W:0,V=ye+Kt-U-en,$=ye+Bt-U,le=oc(m?sf(pe,V):pe,ye,m?zo(Ne,$):Ne);M[x]=le,H[x]=le-ye}if(a){var ie,me=x==="x"?ti:ni,ve=x==="x"?ji:Wi,ue=M[L],de=L==="y"?"height":"width",oe=ue+C[me],xe=ue-C[ve],Ce=[ti,ni].indexOf(T)!==-1,Ee=(ie=q==null?void 0:q[L])!=null?ie:0,Le=Ce?oe:ue-B[de]-D[de]-Ee+I.altAxis,Ve=Ce?ue+B[de]+D[de]-Ee-I.altAxis:xe,tt=m&&Ce?fF(Le,ue,Ve):oc(m?Le:oe,ue,m?Ve:xe);M[L]=tt,H[L]=tt-ue}t.modifiersData[i]=H}}const VF={name:"preventOverflow",enabled:!0,phase:"main",fn:UF,requiresIfExists:["offset"]};function jF(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function WF(n){return n===wi(n)||!zi(n)?B_(n):jF(n)}function KF(n){var t=n.getBoundingClientRect(),e=fl(t.width)/n.offsetWidth||1,i=fl(t.height)/n.offsetHeight||1;return e!==1||i!==1}function GF(n,t,e){e===void 0&&(e=!1);var i=zi(t),r=zi(t)&&KF(t),s=eo(t),o=hl(n,r,e),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!e)&&((Dr(t)!=="body"||F_(s))&&(a=WF(t)),zi(t)?(c=hl(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):s&&(c.x=L_(s))),{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function YF(n){var t=new Map,e=new Set,i=[];n.forEach(function(s){t.set(s.name,s)});function r(s){e.add(s.name);var o=[].concat(s.requires||[],s.requiresIfExists||[]);o.forEach(function(a){if(!e.has(a)){var c=t.get(a);c&&r(c)}}),i.push(s)}return n.forEach(function(s){e.has(s.name)||r(s)}),i}function JF(n){var t=YF(n);return aF.reduce(function(e,i){return e.concat(t.filter(function(r){return r.phase===i}))},[])}function ZF(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function XF(n){var t=n.reduce(function(e,i){var r=e[i.name];return e[i.name]=r?Object.assign({},r,i,{options:Object.assign({},r.options,i.options),data:Object.assign({},r.data,i.data)}):i,e},{});return Object.keys(t).map(function(e){return t[e]})}var Ux={placement:"bottom",modifiers:[],strategy:"absolute"};function Vx(){for(var n=arguments.length,t=new Array(n),e=0;e-1}function N4(n,t){return typeof n=="function"?n.apply(void 0,t):n}function jx(n,t){if(t===0)return n;var e;return function(i){clearTimeout(e),e=setTimeout(function(){n(i)},t)}}function iq(n){return n.split(/\s+/).filter(Boolean)}function Pa(n){return[].concat(n)}function Wx(n,t){n.indexOf(t)===-1&&n.push(t)}function rq(n){return n.filter(function(t,e){return n.indexOf(t)===e})}function sq(n){return n.split("-")[0]}function of(n){return[].slice.call(n)}function Kx(n){return Object.keys(n).reduce(function(t,e){return n[e]!==void 0&&(t[e]=n[e]),t},{})}function lc(){return document.createElement("div")}function lh(n){return["Element","Fragment"].some(function(t){return q_(n,t)})}function oq(n){return q_(n,"NodeList")}function aq(n){return q_(n,"MouseEvent")}function lq(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function cq(n){return lh(n)?[n]:oq(n)?of(n):Array.isArray(n)?n:of(document.querySelectorAll(n))}function am(n,t){n.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function Gx(n,t){n.forEach(function(e){e&&e.setAttribute("data-state",t)})}function dq(n){var t,e=Pa(n),i=e[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function uq(n,t){var e=t.clientX,i=t.clientY;return n.every(function(r){var s=r.popperRect,o=r.popperState,a=r.props,c=a.interactiveBorder,d=sq(o.placement),f=o.modifiersData.offset;if(!f)return!0;var h=d==="bottom"?f.top.y:0,g=d==="top"?f.bottom.y:0,m=d==="right"?f.left.x:0,y=d==="left"?f.right.x:0,k=s.top-i+h>c,C=i-s.bottom-g>c,T=s.left-e+m>c,w=e-s.right-y>c;return k||C||T||w})}function lm(n,t,e){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(r){n[i](r,e)})}function Yx(n,t){for(var e=t;e;){var i;if(n.contains(e))return!0;e=e.getRootNode==null||(i=e.getRootNode())==null?void 0:i.host}return!1}var vr={isTouch:!1},Jx=0;function fq(){vr.isTouch||(vr.isTouch=!0,window.performance&&document.addEventListener("mousemove",I4))}function I4(){var n=performance.now();n-Jx<20&&(vr.isTouch=!1,document.removeEventListener("mousemove",I4)),Jx=n}function hq(){var n=document.activeElement;if(lq(n)){var t=n._tippy;n.blur&&!t.state.isVisible&&n.blur()}}function pq(){document.addEventListener("touchstart",fq,bo),window.addEventListener("blur",hq)}var mq=typeof window<"u"&&typeof document<"u",gq=mq?!!window.msCrypto:!1,_q={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},yq={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},nr=Object.assign({appendTo:P4,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},_q,yq),bq=Object.keys(nr),vq=function(t){var e=Object.keys(t);e.forEach(function(i){nr[i]=t[i]})};function R4(n){var t=n.plugins||[],e=t.reduce(function(i,r){var s=r.name,o=r.defaultValue;if(s){var a;i[s]=n[s]!==void 0?n[s]:(a=nr[s])!=null?a:o}return i},{});return Object.assign({},n,e)}function xq(n,t){var e=t?Object.keys(R4(Object.assign({},nr,{plugins:t}))):bq,i=e.reduce(function(r,s){var o=(n.getAttribute("data-tippy-"+s)||"").trim();if(!o)return r;if(s==="content")r[s]=o;else try{r[s]=JSON.parse(o)}catch{r[s]=o}return r},{});return i}function Zx(n,t){var e=Object.assign({},t,{content:N4(t.content,[n])},t.ignoreAttributes?{}:xq(n,t.plugins));return e.aria=Object.assign({},nr.aria,e.aria),e.aria={expanded:e.aria.expanded==="auto"?t.interactive:e.aria.expanded,content:e.aria.content==="auto"?t.interactive?null:"describedby":e.aria.content},e}var wq=function(){return"innerHTML"};function dg(n,t){n[wq()]=t}function Xx(n){var t=lc();return n===!0?t.className=D4:(t.className=M4,lh(n)?t.appendChild(n):dg(t,n)),t}function Qx(n,t){lh(t.content)?(dg(n,""),n.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?dg(n,t.content):n.textContent=t.content)}function ug(n){var t=n.firstElementChild,e=of(t.children);return{box:t,content:e.find(function(i){return i.classList.contains(A4)}),arrow:e.find(function(i){return i.classList.contains(D4)||i.classList.contains(M4)}),backdrop:e.find(function(i){return i.classList.contains(nq)})}}function B4(n){var t=lc(),e=lc();e.className=tq,e.setAttribute("data-state","hidden"),e.setAttribute("tabindex","-1");var i=lc();i.className=A4,i.setAttribute("data-state","hidden"),Qx(i,n.props),t.appendChild(e),e.appendChild(i),r(n.props,n.props);function r(s,o){var a=ug(t),c=a.box,d=a.content,f=a.arrow;o.theme?c.setAttribute("data-theme",o.theme):c.removeAttribute("data-theme"),typeof o.animation=="string"?c.setAttribute("data-animation",o.animation):c.removeAttribute("data-animation"),o.inertia?c.setAttribute("data-inertia",""):c.removeAttribute("data-inertia"),c.style.maxWidth=typeof o.maxWidth=="number"?o.maxWidth+"px":o.maxWidth,o.role?c.setAttribute("role",o.role):c.removeAttribute("role"),(s.content!==o.content||s.allowHTML!==o.allowHTML)&&Qx(d,n.props),o.arrow?f?s.arrow!==o.arrow&&(c.removeChild(f),c.appendChild(Xx(o.arrow))):c.appendChild(Xx(o.arrow)):f&&c.removeChild(f)}return{popper:t,onUpdate:r}}B4.$$tippy=!0;var kq=1,ou=[],cm=[];function Cq(n,t){var e=Zx(n,Object.assign({},nr,R4(Kx(t)))),i,r,s,o=!1,a=!1,c=!1,d=!1,f,h,g,m=[],y=jx(V,e.interactiveDebounce),k,C=kq++,T=null,w=rq(e.plugins),O={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},x={id:C,reference:n,popper:lc(),popperInstance:T,props:e,state:O,plugins:w,clearDelayTimeouts:Le,setProps:Ve,setContent:tt,show:ht,hide:_t,hideWithInteractivity:Lt,enable:Ce,disable:Ee,unmount:cn,destroy:ur};if(!e.render)return x;var L=e.render(x),M=L.popper,B=L.onUpdate;M.setAttribute("data-tippy-root",""),M.id="tippy-"+x.id,x.popper=M,n._tippy=x,M._tippy=x;var D=w.map(function(ee){return ee.fn(x)}),F=n.hasAttribute("aria-expanded");return $t(),Be(),ye(),pe("onCreate",[x]),e.showOnCreate&&oe(),M.addEventListener("mouseenter",function(){x.props.interactive&&x.state.isVisible&&x.clearDelayTimeouts()}),M.addEventListener("mouseleave",function(){x.props.interactive&&x.props.trigger.indexOf("mouseenter")>=0&&Y().addEventListener("mousemove",y)}),x;function I(){var ee=x.props.touch;return Array.isArray(ee)?ee:[ee,0]}function q(){return I()[0]==="hold"}function H(){var ee;return!!((ee=x.props.render)!=null&&ee.$$tippy)}function W(){return k||n}function Y(){var ee=W().parentNode;return ee?dq(ee):document}function _e(){return ug(M)}function he(ee){return x.state.isMounted&&!x.state.isVisible||vr.isTouch||f&&f.type==="focus"?0:om(x.props.delay,ee?0:1,nr.delay)}function ye(ee){ee===void 0&&(ee=!1),M.style.pointerEvents=x.props.interactive&&!ee?"":"none",M.style.zIndex=""+x.props.zIndex}function pe(ee,Se,Ae){if(Ae===void 0&&(Ae=!0),D.forEach(function(nt){nt[ee]&&nt[ee].apply(nt,Se)}),Ae){var Je;(Je=x.props)[ee].apply(Je,Se)}}function Ne(){var ee=x.props.aria;if(ee.content){var Se="aria-"+ee.content,Ae=M.id,Je=Pa(x.props.triggerTarget||n);Je.forEach(function(nt){var tn=nt.getAttribute(Se);if(x.state.isVisible)nt.setAttribute(Se,tn?tn+" "+Ae:Ae);else{var mn=tn&&tn.replace(Ae,"").trim();mn?nt.setAttribute(Se,mn):nt.removeAttribute(Se)}})}}function Be(){if(!(F||!x.props.aria.expanded)){var ee=Pa(x.props.triggerTarget||n);ee.forEach(function(Se){x.props.interactive?Se.setAttribute("aria-expanded",x.state.isVisible&&Se===W()?"true":"false"):Se.removeAttribute("aria-expanded")})}}function Z(){Y().removeEventListener("mousemove",y),ou=ou.filter(function(ee){return ee!==y})}function te(ee){if(!(vr.isTouch&&(c||ee.type==="mousedown"))){var Se=ee.composedPath&&ee.composedPath()[0]||ee.target;if(!(x.props.interactive&&Yx(M,Se))){if(Pa(x.props.triggerTarget||n).some(function(Ae){return Yx(Ae,Se)})){if(vr.isTouch||x.state.isVisible&&x.props.trigger.indexOf("click")>=0)return}else pe("onClickOutside",[x,ee]);x.props.hideOnClick===!0&&(x.clearDelayTimeouts(),x.hide(),a=!0,setTimeout(function(){a=!1}),x.state.isMounted||Ye())}}}function re(){c=!0}function se(){c=!1}function Ge(){var ee=Y();ee.addEventListener("mousedown",te,!0),ee.addEventListener("touchend",te,bo),ee.addEventListener("touchstart",se,bo),ee.addEventListener("touchmove",re,bo)}function Ye(){var ee=Y();ee.removeEventListener("mousedown",te,!0),ee.removeEventListener("touchend",te,bo),ee.removeEventListener("touchstart",se,bo),ee.removeEventListener("touchmove",re,bo)}function xt(ee,Se){Kt(ee,function(){!x.state.isVisible&&M.parentNode&&M.parentNode.contains(M)&&Se()})}function Ie(ee,Se){Kt(ee,Se)}function Kt(ee,Se){var Ae=_e().box;function Je(nt){nt.target===Ae&&(lm(Ae,"remove",Je),Se())}if(ee===0)return Se();lm(Ae,"remove",h),lm(Ae,"add",Je),h=Je}function Bt(ee,Se,Ae){Ae===void 0&&(Ae=!1);var Je=Pa(x.props.triggerTarget||n);Je.forEach(function(nt){nt.addEventListener(ee,Se,Ae),m.push({node:nt,eventType:ee,handler:Se,options:Ae})})}function $t(){q()&&(Bt("touchstart",U,{passive:!0}),Bt("touchend",$,{passive:!0})),iq(x.props.trigger).forEach(function(ee){if(ee!=="manual")switch(Bt(ee,U),ee){case"mouseenter":Bt("mouseleave",$);break;case"focus":Bt(gq?"focusout":"blur",le);break;case"focusin":Bt("focusout",le);break}})}function en(){m.forEach(function(ee){var Se=ee.node,Ae=ee.eventType,Je=ee.handler,nt=ee.options;Se.removeEventListener(Ae,Je,nt)}),m=[]}function U(ee){var Se,Ae=!1;if(!(!x.state.isEnabled||ie(ee)||a)){var Je=((Se=f)==null?void 0:Se.type)==="focus";f=ee,k=ee.currentTarget,Be(),!x.state.isVisible&&aq(ee)&&ou.forEach(function(nt){return nt(ee)}),ee.type==="click"&&(x.props.trigger.indexOf("mouseenter")<0||o)&&x.props.hideOnClick!==!1&&x.state.isVisible?Ae=!0:oe(ee),ee.type==="click"&&(o=!Ae),Ae&&!Je&&xe(ee)}}function V(ee){var Se=ee.target,Ae=W().contains(Se)||M.contains(Se);if(!(ee.type==="mousemove"&&Ae)){var Je=de().concat(M).map(function(nt){var tn,mn=nt._tippy,Ki=(tn=mn.popperInstance)==null?void 0:tn.state;return Ki?{popperRect:nt.getBoundingClientRect(),popperState:Ki,props:e}:null}).filter(Boolean);uq(Je,ee)&&(Z(),xe(ee))}}function $(ee){var Se=ie(ee)||x.props.trigger.indexOf("click")>=0&&o;if(!Se){if(x.props.interactive){x.hideWithInteractivity(ee);return}xe(ee)}}function le(ee){x.props.trigger.indexOf("focusin")<0&&ee.target!==W()||x.props.interactive&&ee.relatedTarget&&M.contains(ee.relatedTarget)||xe(ee)}function ie(ee){return vr.isTouch?q()!==ee.type.indexOf("touch")>=0:!1}function me(){ve();var ee=x.props,Se=ee.popperOptions,Ae=ee.placement,Je=ee.offset,nt=ee.getReferenceClientRect,tn=ee.moveTransition,mn=H()?ug(M).arrow:null,Ki=nt?{getBoundingClientRect:nt,contextElement:nt.contextElement||W()}:n,rs={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(ss){var Yi=ss.state;if(H()){var sa=_e(),io=sa.box;["placement","reference-hidden","escaped"].forEach(function(Pr){Pr==="placement"?io.setAttribute("data-placement",Yi.placement):Yi.attributes.popper["data-popper-"+Pr]?io.setAttribute("data-"+Pr,""):io.removeAttribute("data-"+Pr)}),Yi.attributes.popper={}}}},Gi=[{name:"offset",options:{offset:Je}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!tn}},rs];H()&&mn&&Gi.push({name:"arrow",options:{element:mn,padding:3}}),Gi.push.apply(Gi,(Se==null?void 0:Se.modifiers)||[]),x.popperInstance=eq(Ki,M,Object.assign({},Se,{placement:Ae,onFirstUpdate:g,modifiers:Gi}))}function ve(){x.popperInstance&&(x.popperInstance.destroy(),x.popperInstance=null)}function ue(){var ee=x.props.appendTo,Se,Ae=W();x.props.interactive&&ee===P4||ee==="parent"?Se=Ae.parentNode:Se=N4(ee,[Ae]),Se.contains(M)||Se.appendChild(M),x.state.isMounted=!0,me()}function de(){return of(M.querySelectorAll("[data-tippy-root]"))}function oe(ee){x.clearDelayTimeouts(),ee&&pe("onTrigger",[x,ee]),Ge();var Se=he(!0),Ae=I(),Je=Ae[0],nt=Ae[1];vr.isTouch&&Je==="hold"&&nt&&(Se=nt),Se?i=setTimeout(function(){x.show()},Se):x.show()}function xe(ee){if(x.clearDelayTimeouts(),pe("onUntrigger",[x,ee]),!x.state.isVisible){Ye();return}if(!(x.props.trigger.indexOf("mouseenter")>=0&&x.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(ee.type)>=0&&o)){var Se=he(!1);Se?r=setTimeout(function(){x.state.isVisible&&x.hide()},Se):s=requestAnimationFrame(function(){x.hide()})}}function Ce(){x.state.isEnabled=!0}function Ee(){x.hide(),x.state.isEnabled=!1}function Le(){clearTimeout(i),clearTimeout(r),cancelAnimationFrame(s)}function Ve(ee){if(!x.state.isDestroyed){pe("onBeforeUpdate",[x,ee]),en();var Se=x.props,Ae=Zx(n,Object.assign({},Se,Kx(ee),{ignoreAttributes:!0}));x.props=Ae,$t(),Se.interactiveDebounce!==Ae.interactiveDebounce&&(Z(),y=jx(V,Ae.interactiveDebounce)),Se.triggerTarget&&!Ae.triggerTarget?Pa(Se.triggerTarget).forEach(function(Je){Je.removeAttribute("aria-expanded")}):Ae.triggerTarget&&n.removeAttribute("aria-expanded"),Be(),ye(),B&&B(Se,Ae),x.popperInstance&&(me(),de().forEach(function(Je){requestAnimationFrame(Je._tippy.popperInstance.forceUpdate)})),pe("onAfterUpdate",[x,ee])}}function tt(ee){x.setProps({content:ee})}function ht(){var ee=x.state.isVisible,Se=x.state.isDestroyed,Ae=!x.state.isEnabled,Je=vr.isTouch&&!x.props.touch,nt=om(x.props.duration,0,nr.duration);if(!(ee||Se||Ae||Je)&&!W().hasAttribute("disabled")&&(pe("onShow",[x],!1),x.props.onShow(x)!==!1)){if(x.state.isVisible=!0,H()&&(M.style.visibility="visible"),ye(),Ge(),x.state.isMounted||(M.style.transition="none"),H()){var tn=_e(),mn=tn.box,Ki=tn.content;am([mn,Ki],0)}g=function(){var Gi;if(!(!x.state.isVisible||d)){if(d=!0,M.offsetHeight,M.style.transition=x.props.moveTransition,H()&&x.props.animation){var no=_e(),ss=no.box,Yi=no.content;am([ss,Yi],nt),Gx([ss,Yi],"visible")}Ne(),Be(),Wx(cm,x),(Gi=x.popperInstance)==null||Gi.forceUpdate(),pe("onMount",[x]),x.props.animation&&H()&&Ie(nt,function(){x.state.isShown=!0,pe("onShown",[x])})}},ue()}}function _t(){var ee=!x.state.isVisible,Se=x.state.isDestroyed,Ae=!x.state.isEnabled,Je=om(x.props.duration,1,nr.duration);if(!(ee||Se||Ae)&&(pe("onHide",[x],!1),x.props.onHide(x)!==!1)){if(x.state.isVisible=!1,x.state.isShown=!1,d=!1,o=!1,H()&&(M.style.visibility="hidden"),Z(),Ye(),ye(!0),H()){var nt=_e(),tn=nt.box,mn=nt.content;x.props.animation&&(am([tn,mn],Je),Gx([tn,mn],"hidden"))}Ne(),Be(),x.props.animation?H()&&xt(Je,x.unmount):x.unmount()}}function Lt(ee){Y().addEventListener("mousemove",y),Wx(ou,y),y(ee)}function cn(){x.state.isVisible&&x.hide(),x.state.isMounted&&(ve(),de().forEach(function(ee){ee._tippy.unmount()}),M.parentNode&&M.parentNode.removeChild(M),cm=cm.filter(function(ee){return ee!==x}),x.state.isMounted=!1,pe("onHidden",[x]))}function ur(){x.state.isDestroyed||(x.clearDelayTimeouts(),x.unmount(),en(),delete n._tippy,x.state.isDestroyed=!0,pe("onDestroy",[x]))}}function _l(n,t){t===void 0&&(t={});var e=nr.plugins.concat(t.plugins||[]);pq();var i=Object.assign({},t,{plugins:e}),r=cq(n),s=r.reduce(function(o,a){var c=a&&Cq(a,i);return c&&o.push(c),o},[]);return lh(n)?s[0]:s}_l.defaultProps=nr;_l.setDefaultProps=vq;_l.currentInput=vr;Object.assign({},x4,{effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow)}});_l.setDefaultProps({render:B4});class Sq{constructor({editor:t,element:e,view:i,tippyOptions:r={},updateDelay:s=250,shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:a,state:c,from:d,to:f})=>{const{doc:h,selection:g}=c,{empty:m}=g,y=!h.textBetween(d,f).length&&E_(c.selection),k=this.element.contains(document.activeElement);return!(!(a.hasFocus()||k)||m||y||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var c;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((c=this.element.parentNode)===null||c===void 0)&&c.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,c)=>{const d=!(c!=null&&c.selection.eq(a.state.selection)),f=!(c!=null&&c.doc.eq(a.state.doc));!d&&!f||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,d,f,c)},this.updateDelay))},this.updateHandler=(a,c,d,f)=>{var h,g,m;const{state:y,composing:k}=a,{selection:C}=y;if(k||!c&&!d)return;this.createTooltip();const{ranges:w}=C,O=Math.min(...w.map(M=>M.$from.pos)),x=Math.max(...w.map(M=>M.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:a,state:y,oldState:f,from:O,to:x}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((m=this.tippyOptions)===null||m===void 0?void 0:m.getReferenceClientRect)||(()=>{if(bL(y.selection)){let M=a.nodeDOM(O);const B=M.dataset.nodeViewWrapper?M:M.querySelector("[data-node-view-wrapper]");if(B&&(M=B.firstChild),M)return M.getBoundingClientRect()}return y4(a,O,x)})}),this.show()},this.editor=t,this.element=e,this.view=i,this.updateDelay=s,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,e=!!t.parentElement;this.tippy||!e||(this.tippy=_l(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){const{state:i}=t,r=i.selection.$from.pos!==i.selection.$to.pos;if(this.updateDelay>0&&r){this.handleDebouncedUpdate(t,e);return}const s=!(e!=null&&e.selection.eq(t.state.selection)),o=!(e!=null&&e.doc.eq(t.state.doc));this.updateHandler(t,s,o,e)}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,e;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const L4=n=>new kn({key:typeof n.pluginKey=="string"?new Ci(n.pluginKey):n.pluginKey,view:t=>new Sq({view:t,...n})});wn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[L4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class Tq{constructor({editor:t,element:e,view:i,tippyOptions:r={},shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:o,state:a})=>{const{selection:c}=a,{$anchor:d,empty:f}=c,h=d.depth===1,g=d.parent.isTextblock&&!d.parent.type.spec.code&&!d.parent.textContent;return!(!o.hasFocus()||!f||!h||!g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:o})=>{var a;if(this.preventHide){this.preventHide=!1;return}o!=null&&o.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(o.relatedTarget))||this.hide()},this.tippyBlurHandler=o=>{this.blurHandler({event:o})},this.editor=t,this.element=e,this.view=i,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=r,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:t}=this.editor.options,e=!!t.parentElement;this.tippy||!e||(this.tippy=_l(t,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(t,e){var i,r,s;const{state:o}=t,{doc:a,selection:c}=o,{from:d,to:f}=c;if(e&&e.doc.eq(a)&&e.selection.eq(c))return;if(this.createTooltip(),!((i=this.shouldShow)===null||i===void 0?void 0:i.call(this,{editor:this.editor,view:t,state:o,oldState:e}))){this.hide();return}(r=this.tippy)===null||r===void 0||r.setProps({getReferenceClientRect:((s=this.tippyOptions)===null||s===void 0?void 0:s.getReferenceClientRect)||(()=>y4(t,d,f))}),this.show()}show(){var t;(t=this.tippy)===null||t===void 0||t.show()}hide(){var t;(t=this.tippy)===null||t===void 0||t.hide()}destroy(){var t,e;!((t=this.tippy)===null||t===void 0)&&t.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(e=this.tippy)===null||e===void 0||e.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const F4=n=>new kn({key:typeof n.pluginKey=="string"?new Ci(n.pluginKey):n.pluginKey,view:t=>new Tq({view:t,...n})});wn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[F4({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}});Ys({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:t}){const e=Po(null);return Js(()=>{const{updateDelay:i,editor:r,pluginKey:s,shouldShow:o,tippyOptions:a}=n;r.registerPlugin(L4({updateDelay:i,editor:r,element:e.value,pluginKey:s,shouldShow:o,tippyOptions:a}))}),Zs(()=>{const{pluginKey:i,editor:r}=n;r.unregisterPlugin(i)}),()=>{var i;return Jr("div",{ref:e},(i=t.default)===null||i===void 0?void 0:i.call(t))}}});function $x(n){return Ww((t,e)=>({get(){return t(),n},set(i){n=i,requestAnimationFrame(()=>{requestAnimationFrame(()=>{e()})})}}))}class Eq extends YL{constructor(t={}){return super(t),this.vueRenderers=zc(new Map),this.contentComponent=null,this.reactiveState=$x(this.view.state),this.reactiveExtensionStorage=$x(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),Mf(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(t,e){super.registerPlugin(t,e),this.reactiveState.value=this.view.state}unregisterPlugin(t){super.unregisterPlugin(t),this.reactiveState.value=this.view.state}}const Oq=Ys({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const t=Po(),e=ns();return rk(()=>{const i=n.editor;i&&i.options.element&&t.value&&Nf(()=>{if(!t.value||!i.options.element.firstChild)return;const r=_c(t.value);t.value.append(...i.options.element.childNodes),i.contentComponent=e.ctx._,i.setOptions({element:r}),i.createNodeViews()})}),Zs(()=>{const i=n.editor;if(!i||(i.isDestroyed||i.view.setProps({nodeViews:{}}),i.contentComponent=null,!i.options.element.firstChild))return;const r=document.createElement("div");r.append(...i.options.element.childNodes),i.setOptions({element:r})}),{rootEl:t}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(t=>{const e=Jr(Mk,{to:t.teleportElement,key:t.id},Jr(t.component,{ref:t.id,...t.props}));n.push(e)}),Jr("div",{ref:t=>{this.rootEl=t}},...n)}});Ys({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:t}){const e=Po(null);return Js(()=>{const{pluginKey:i,editor:r,tippyOptions:s,shouldShow:o}=n;r.registerPlugin(F4({pluginKey:i,editor:r,element:e.value,tippyOptions:s,shouldShow:o}))}),Zs(()=>{const{pluginKey:i,editor:r}=n;r.unregisterPlugin(i)}),()=>{var i;return Jr("div",{ref:e},(i=t.default)===null||i===void 0?void 0:i.call(t))}}});Ys({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return Jr(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}});Ys({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,t;return Jr(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(t=(n=this.$slots).default)===null||t===void 0?void 0:t.call(n))}});const Aq=(n={})=>{const t=Vw();return Js(()=>{t.value=new Eq(n)}),Zs(()=>{var e;(e=t.value)===null||e===void 0||e.destroy()}),t},Dq=/^\s*>\s$/,Mq=Rn.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ic({find:Dq,type:this.type})]}}),Pq=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))$/,Nq=/(?:^|\s)((?:\*\*)((?:[^*]+))(?:\*\*))/g,Iq=/(?:^|\s)((?:__)((?:[^__]+))(?:__))$/,Rq=/(?:^|\s)((?:__)((?:[^__]+))(?:__))/g,Bq=ii.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Jo({find:Pq,type:this.type}),Jo({find:Iq,type:this.type})]},addPasteRules(){return[Ks({find:Nq,type:this.type}),Ks({find:Rq,type:this.type})]}}),Lq=Rn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",Vt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),e2=ii.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:t})=>{const e=Xc(n,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:t.unsetMark(this.name)}}}}),t2=/^\s*([-+*])\s$/,q4=Rn.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(Lq.name,this.editor.getAttributes(e2.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ic({find:t2,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ic({find:t2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(e2.name),editor:this.editor})),[n]}}),Fq=/(?:^|\s)((?:`)((?:[^`]+))(?:`))$/,qq=/(?:^|\s)((?:`)((?:[^`]+))(?:`))/g,Hq=ii.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Jo({find:Fq,type:this.type})]},addPasteRules(){return[Ks({find:qq,type:this.type})]}}),zq=/^```([a-z]+)?[\s\n]$/,Uq=/^~~~([a-z]+)?[\s\n]$/,Vq=Rn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var t;const{languageClassPrefix:e}=this.options,s=[...((t=n.firstElementChild)===null||t===void 0?void 0:t.classList)||[]].filter(o=>o.startsWith(e)).map(o=>o.replace(e,""))[0];return s||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:t}){return["pre",Vt(this.options.HTMLAttributes,t),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:t})=>t.setNode(this.name,n),toggleCodeBlock:n=>({commands:t})=>t.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:t}=this.editor.state.selection,e=t.pos===1;return!n||t.parent.type.name!==this.name?!1:e||!t.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:t}=n,{selection:e}=t,{$from:i,empty:r}=e;if(!r||i.parent.type!==this.type)return!1;const s=i.parentOffset===i.parent.nodeSize-2,o=i.parent.textContent.endsWith(` `);return!s||!o?!1:n.chain().command(({tr:a})=>(a.delete(i.pos-2,i.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:t}=n,{selection:e,doc:i}=t,{$from:r,empty:s}=e;if(!s||r.parent.type!==this.type||!(r.parentOffset===r.parent.nodeSize-2))return!1;const a=r.after();return a===void 0||i.nodeAt(a)?!1:n.commands.exitCode()}}},addInputRules(){return[ag({find:zq,type:this.type,getAttributes:n=>({language:n[1]})}),ag({find:Uq,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new kn({key:new Ci("codeBlockVSCodeHandler"),props:{handlePaste:(n,t)=>{if(!t.clipboardData||this.editor.isActive(this.type.name))return!1;const e=t.clipboardData.getData("text/plain"),i=t.clipboardData.getData("vscode-editor-data"),r=i?JSON.parse(i):void 0,s=r==null?void 0:r.mode;if(!e||!s)return!1;const{tr:o}=n.state;return o.replaceSelectionWith(this.type.create({language:s})),o.setSelection(et.near(o.doc.resolve(Math.max(0,o.selection.from-2)))),o.insertText(e.replace(/\r\n?/g,` `)),o.setMeta("paste",!0),n.dispatch(o),!0}}})]}}),jq=Rn.create({name:"doc",topNode:!0,content:"block+"});function Wq(n={}){return new kn({view(t){return new Kq(t,n)}})}class Kq{constructor(t,e){var i;this.editorView=t,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(i=e.width)!==null&&i!==void 0?i:1,this.color=e.color===!1?void 0:e.color||"black",this.class=e.class,this.handlers=["dragover","dragend","drop","dragleave"].map(r=>{let s=o=>{this[r](o)};return t.dom.addEventListener(r,s),{name:r,handler:s}})}destroy(){this.handlers.forEach(({name:t,handler:e})=>this.editorView.dom.removeEventListener(t,e))}update(t,e){this.cursorPos!=null&&e.doc!=t.state.doc&&(this.cursorPos>t.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(t){t!=this.cursorPos&&(this.cursorPos=t,t==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let t=this.editorView.state.doc.resolve(this.cursorPos),e=!t.parent.inlineContent,i;if(e){let a=t.nodeBefore,c=t.nodeAfter;if(a||c){let d=this.editorView.nodeDOM(this.cursorPos-(a?a.nodeSize:0));if(d){let f=d.getBoundingClientRect(),h=a?f.bottom:f.top;a&&c&&(h=(h+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),i={left:f.left,right:f.right,top:h-this.width/2,bottom:h+this.width/2}}}}if(!i){let a=this.editorView.coordsAtPos(this.cursorPos);i={left:a.left-this.width/2,right:a.left+this.width/2,top:a.top,bottom:a.bottom}}let r=this.editorView.dom.offsetParent;this.element||(this.element=r.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",e),this.element.classList.toggle("prosemirror-dropcursor-inline",!e);let s,o;if(!r||r==document.body&&getComputedStyle(r).position=="static")s=-pageXOffset,o=-pageYOffset;else{let a=r.getBoundingClientRect();s=a.left-r.scrollLeft,o=a.top-r.scrollTop}this.element.style.left=i.left-s+"px",this.element.style.top=i.top-o+"px",this.element.style.width=i.right-i.left+"px",this.element.style.height=i.bottom-i.top+"px"}scheduleRemoval(t){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),t)}dragover(t){if(!this.editorView.editable)return;let e=this.editorView.posAtCoords({left:t.clientX,top:t.clientY}),i=e&&e.inside>=0&&this.editorView.state.doc.nodeAt(e.inside),r=i&&i.type.spec.disableDropCursor,s=typeof r=="function"?r(this.editorView,e,t):r;if(e&&!s){let o=e.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=bS(this.editorView.state.doc,o,this.editorView.dragging.slice);a!=null&&(o=a)}this.setCursor(o),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(t){(t.target==this.editorView.dom||!this.editorView.dom.contains(t.relatedTarget))&&this.setCursor(null)}}const Gq=wn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[Wq(this.options)]}});class Wt extends lt{constructor(t){super(t,t)}map(t,e){let i=t.resolve(e.map(this.head));return Wt.valid(i)?new Wt(i):lt.near(i)}content(){return Te.empty}eq(t){return t instanceof Wt&&t.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(t,e){if(typeof e.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Wt(t.resolve(e.pos))}getBookmark(){return new H_(this.anchor)}static valid(t){let e=t.parent;if(e.isTextblock||!Yq(t)||!Jq(t))return!1;let i=e.type.spec.allowGapCursor;if(i!=null)return i;let r=e.contentMatchAt(t.index()).defaultType;return r&&r.isTextblock}static findGapCursorFrom(t,e,i=!1){e:for(;;){if(!i&&Wt.valid(t))return t;let r=t.pos,s=null;for(let o=t.depth;;o--){let a=t.node(o);if(e>0?t.indexAfter(o)0){s=a.child(e>0?t.indexAfter(o):t.index(o)-1);break}else if(o==0)return null;r+=e;let c=t.doc.resolve(r);if(Wt.valid(c))return c}for(;;){let o=e>0?s.firstChild:s.lastChild;if(!o){if(s.isAtom&&!s.isText&&!Ue.isSelectable(s)){t=t.doc.resolve(r+s.nodeSize*e),i=!1;continue e}break}s=o,r+=e;let a=t.doc.resolve(r);if(Wt.valid(a))return a}return null}}}Wt.prototype.visible=!1;Wt.findFrom=Wt.findGapCursorFrom;lt.jsonID("gapcursor",Wt);class H_{constructor(t){this.pos=t}map(t){return new H_(t.map(this.pos))}resolve(t){let e=t.resolve(this.pos);return Wt.valid(e)?new Wt(e):lt.near(e)}}function Yq(n){for(let t=n.depth;t>=0;t--){let e=n.index(t),i=n.node(t);if(e==0){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(e-1);;r=r.lastChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function Jq(n){for(let t=n.depth;t>=0;t--){let e=n.indexAfter(t),i=n.node(t);if(e==i.childCount){if(i.type.spec.isolating)return!0;continue}for(let r=i.child(e);;r=r.firstChild){if(r.childCount==0&&!r.inlineContent||r.isAtom||r.type.spec.isolating)return!0;if(r.inlineContent)return!1}}return!0}function Zq(){return new kn({props:{decorations:eH,createSelectionBetween(n,t,e){return t.pos==e.pos&&Wt.valid(e)?new Wt(e):null},handleClick:Qq,handleKeyDown:Xq,handleDOMEvents:{beforeinput:$q}}})}const Xq=s4({ArrowLeft:au("horiz",-1),ArrowRight:au("horiz",1),ArrowUp:au("vert",-1),ArrowDown:au("vert",1)});function au(n,t){const e=n=="vert"?t>0?"down":"up":t>0?"right":"left";return function(i,r,s){let o=i.selection,a=t>0?o.$to:o.$from,c=o.empty;if(o instanceof et){if(!s.endOfTextblock(e)||a.depth==0)return!1;c=!1,a=i.doc.resolve(t>0?a.after():a.before())}let d=Wt.findGapCursorFrom(a,t,c);return d?(r&&r(i.tr.setSelection(new Wt(d))),!0):!1}}function Qq(n,t,e){if(!n||!n.editable)return!1;let i=n.state.doc.resolve(t);if(!Wt.valid(i))return!1;let r=n.posAtCoords({left:e.clientX,top:e.clientY});return r&&r.inside>-1&&Ue.isSelectable(n.state.doc.nodeAt(r.inside))?!1:(n.dispatch(n.state.tr.setSelection(new Wt(i))),!0)}function $q(n,t){if(t.inputType!="insertCompositionText"||!(n.state.selection instanceof Wt))return!1;let{$from:e}=n.state.selection,i=e.parent.contentMatchAt(e.index()).findWrapping(n.state.schema.nodes.text);if(!i)return!1;let r=ge.empty;for(let o=i.length-1;o>=0;o--)r=ge.from(i[o].createAndFill(null,r));let s=n.state.tr.replace(e.pos,e.pos,new Te(r,0,0));return s.setSelection(et.near(s.doc.resolve(e.pos+1))),n.dispatch(s),!1}function eH(n){if(!(n.selection instanceof Wt))return null;let t=document.createElement("div");return t.className="ProseMirror-gapcursor",sn.create(n.doc,[qi.widget(n.selection.head,t,{key:"gapcursor"})])}const tH=wn.create({name:"gapCursor",addProseMirrorPlugins(){return[Zq()]},extendNodeSchema(n){var t;const e={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(t=ot(Me(n,"allowGapCursor",e)))!==null&&t!==void 0?t:null}}}),nH=Rn.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",Vt(this.options.HTMLAttributes,n)]},renderText(){return` `},addCommands(){return{setHardBreak:()=>({commands:n,chain:t,state:e,editor:i})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:r,storedMarks:s}=e;if(r.$from.parent.type.spec.isolating)return!1;const{keepMarks:o}=this.options,{splittableMarks:a}=i.extensionManager,c=s||r.$to.parentOffset&&r.$from.marks();return t().insertContent({type:this.name}).command(({tr:d,dispatch:f})=>{if(f&&c&&o){const h=c.filter(g=>a.includes(g.type.name));d.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),iH=Rn.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:t}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Vt(this.options.HTMLAttributes,t),0]},addCommands(){return{setHeading:n=>({commands:t})=>this.options.levels.includes(n.level)?t.setNode(this.name,n):!1,toggleHeading:n=>({commands:t})=>this.options.levels.includes(n.level)?t.toggleNode(this.name,"paragraph",n):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((n,t)=>({...n,[`Mod-Alt-${t}`]:()=>this.editor.commands.toggleHeading({level:t})}),{})},addInputRules(){return this.options.levels.map(n=>ag({find:new RegExp(`^(#{1,${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var af=200,hn=function(){};hn.prototype.append=function(t){return t.length?(t=hn.from(t),!this.length&&t||t.length=e?hn.empty:this.sliceInner(Math.max(0,t),Math.min(this.length,e))};hn.prototype.get=function(t){if(!(t<0||t>=this.length))return this.getInner(t)};hn.prototype.forEach=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=this.length),e<=i?this.forEachInner(t,e,i,0):this.forEachInvertedInner(t,e,i,0)};hn.prototype.map=function(t,e,i){e===void 0&&(e=0),i===void 0&&(i=this.length);var r=[];return this.forEach(function(s,o){return r.push(t(s,o))},e,i),r};hn.from=function(t){return t instanceof hn?t:t&&t.length?new H4(t):hn.empty};var H4=function(n){function t(i){n.call(this),this.values=i}n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t;var e={length:{configurable:!0},depth:{configurable:!0}};return t.prototype.flatten=function(){return this.values},t.prototype.sliceInner=function(r,s){return r==0&&s==this.length?this:new t(this.values.slice(r,s))},t.prototype.getInner=function(r){return this.values[r]},t.prototype.forEachInner=function(r,s,o,a){for(var c=s;c=o;c--)if(r(this.values[c],a+c)===!1)return!1},t.prototype.leafAppend=function(r){if(this.length+r.length<=af)return new t(this.values.concat(r.flatten()))},t.prototype.leafPrepend=function(r){if(this.length+r.length<=af)return new t(r.flatten().concat(this.values))},e.length.get=function(){return this.values.length},e.depth.get=function(){return 0},Object.defineProperties(t.prototype,e),t}(hn);hn.empty=new H4([]);var rH=function(n){function t(e,i){n.call(this),this.left=e,this.right=i,this.length=e.length+i.length,this.depth=Math.max(e.depth,i.depth)+1}return n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t,t.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},t.prototype.getInner=function(i){return ia&&this.right.forEachInner(i,Math.max(r-a,0),Math.min(this.length,s)-a,o+a)===!1)return!1},t.prototype.forEachInvertedInner=function(i,r,s,o){var a=this.left.length;if(r>a&&this.right.forEachInvertedInner(i,r-a,Math.max(s,a)-a,o+a)===!1||s=s?this.right.slice(i-s,r-s):this.left.slice(i,s).append(this.right.slice(0,r-s))},t.prototype.leafAppend=function(i){var r=this.right.leafAppend(i);if(r)return new t(this.left,r)},t.prototype.leafPrepend=function(i){var r=this.left.leafPrepend(i);if(r)return new t(r,this.right)},t.prototype.appendInner=function(i){return this.left.depth>=Math.max(this.right.depth,i.depth)+1?new t(this.left,new t(this.right,i)):new t(this,i)},t}(hn);const sH=500;class tr{constructor(t,e){this.items=t,this.eventCount=e}popEvent(t,e){if(this.eventCount==0)return null;let i=this.items.length;for(;;i--)if(this.items.get(i-1).selection){--i;break}let r,s;e&&(r=this.remapping(i,this.items.length),s=r.maps.length);let o=t.tr,a,c,d=[],f=[];return this.items.forEach((h,g)=>{if(!h.step){r||(r=this.remapping(i,g+1),s=r.maps.length),s--,f.push(h);return}if(r){f.push(new mr(h.map));let m=h.step.map(r.slice(s)),y;m&&o.maybeStep(m).doc&&(y=o.mapping.maps[o.mapping.maps.length-1],d.push(new mr(y,void 0,void 0,d.length+f.length))),s--,y&&r.appendMap(y,s)}else o.maybeStep(h.step);if(h.selection)return a=r?h.selection.map(r.slice(s)):h.selection,c=new tr(this.items.slice(0,i).append(f.reverse().concat(d)),this.eventCount-1),!1},this.items.length,0),{remaining:c,transform:o,selection:a}}addTransform(t,e,i,r){let s=[],o=this.eventCount,a=this.items,c=!r&&a.length?a.get(a.length-1):null;for(let f=0;faH&&(a=oH(a,d),o-=d),new tr(a.append(s),o)}remapping(t,e){let i=new Ka;return this.items.forEach((r,s)=>{let o=r.mirrorOffset!=null&&s-r.mirrorOffset>=t?i.maps.length-r.mirrorOffset:void 0;i.appendMap(r.map,o)},t,e),i}addMaps(t){return this.eventCount==0?this:new tr(this.items.append(t.map(e=>new mr(e))),this.eventCount)}rebased(t,e){if(!this.eventCount)return this;let i=[],r=Math.max(0,this.items.length-e),s=t.mapping,o=t.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},r);let c=e;this.items.forEach(g=>{let m=s.getMirror(--c);if(m==null)return;o=Math.min(o,m);let y=s.maps[m];if(g.step){let k=t.steps[m].invert(t.docs[m]),C=g.selection&&g.selection.map(s.slice(c+1,m));C&&a++,i.push(new mr(y,k,C))}else i.push(new mr(y))},r);let d=[];for(let g=e;gsH&&(h=h.compress(this.items.length-i.length)),h}emptyItemCount(){let t=0;return this.items.forEach(e=>{e.step||t++}),t}compress(t=this.items.length){let e=this.remapping(0,t),i=e.maps.length,r=[],s=0;return this.items.forEach((o,a)=>{if(a>=t)r.push(o),o.selection&&s++;else if(o.step){let c=o.step.map(e.slice(i)),d=c&&c.getMap();if(i--,d&&e.appendMap(d,i),c){let f=o.selection&&o.selection.map(e.slice(i));f&&s++;let h=new mr(d.invert(),c,f),g,m=r.length-1;(g=r.length&&r[m].merge(h))?r[m]=g:r.push(h)}}else o.map&&i--},this.items.length,0),new tr(hn.from(r.reverse()),s)}}tr.empty=new tr(hn.empty,0);function oH(n,t){let e;return n.forEach((i,r)=>{if(i.selection&&t--==0)return e=r,!1}),n.slice(e)}class mr{constructor(t,e,i,r){this.map=t,this.step=e,this.selection=i,this.mirrorOffset=r}merge(t){if(this.step&&t.step&&!t.selection){let e=t.step.merge(this.step);if(e)return new mr(e.getMap().invert(),e,this.selection)}}}class Ss{constructor(t,e,i,r,s){this.done=t,this.undone=e,this.prevRanges=i,this.prevTime=r,this.prevComposition=s}}const aH=20;function lH(n,t,e,i){let r=e.getMeta(Ls),s;if(r)return r.historyState;e.getMeta(dH)&&(n=new Ss(n.done,n.undone,null,0,-1));let o=e.getMeta("appendedTransaction");if(e.steps.length==0)return n;if(o&&o.getMeta(Ls))return o.getMeta(Ls).redo?new Ss(n.done.addTransform(e,void 0,i,bu(t)),n.undone,n2(e.mapping.maps[e.steps.length-1]),n.prevTime,n.prevComposition):new Ss(n.done,n.undone.addTransform(e,void 0,i,bu(t)),null,n.prevTime,n.prevComposition);if(e.getMeta("addToHistory")!==!1&&!(o&&o.getMeta("addToHistory")===!1)){let a=e.getMeta("composition"),c=n.prevTime==0||!o&&n.prevComposition!=a&&(n.prevTime<(e.time||0)-i.newGroupDelay||!cH(e,n.prevRanges)),d=o?dm(n.prevRanges,e.mapping):n2(e.mapping.maps[e.steps.length-1]);return new Ss(n.done.addTransform(e,c?t.selection.getBookmark():void 0,i,bu(t)),tr.empty,d,e.time,a??n.prevComposition)}else return(s=e.getMeta("rebased"))?new Ss(n.done.rebased(e,s),n.undone.rebased(e,s),dm(n.prevRanges,e.mapping),n.prevTime,n.prevComposition):new Ss(n.done.addMaps(e.mapping.maps),n.undone.addMaps(e.mapping.maps),dm(n.prevRanges,e.mapping),n.prevTime,n.prevComposition)}function cH(n,t){if(!t)return!1;if(!n.docChanged)return!0;let e=!1;return n.mapping.maps[0].forEach((i,r)=>{for(let s=0;s=t[s]&&(e=!0)}),e}function n2(n){let t=[];return n.forEach((e,i,r,s)=>t.push(r,s)),t}function dm(n,t){if(!n)return null;let e=[];for(let i=0;i{let e=Ls.getState(n);return!e||e.done.eventCount==0?!1:(t&&z4(e,n,t,!1),!0)},V4=(n,t)=>{let e=Ls.getState(n);return!e||e.undone.eventCount==0?!1:(t&&z4(e,n,t,!0),!0)},fH=wn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:t})=>U4(n,t),redo:()=>({state:n,dispatch:t})=>V4(n,t)}},addProseMirrorPlugins(){return[uH(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-Z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-Y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Shift-Mod-Z":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),hH=Rn.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",Vt(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:t})=>{const{$to:e}=t.selection,i=n();return e.parentOffset===0?i.insertContentAt(Math.max(e.pos-2,0),{type:this.name}):i.insertContent({type:this.name}),i.command(({tr:r,dispatch:s})=>{var o;if(s){const{$to:a}=r.selection,c=a.end();if(a.nodeAfter)a.nodeAfter.isTextblock?r.setSelection(et.create(r.doc,a.pos+1)):a.nodeAfter.isBlock?r.setSelection(Ue.create(r.doc,a.pos)):r.setSelection(et.create(r.doc,a.pos));else{const d=(o=a.parent.type.contentMatch.defaultType)===null||o===void 0?void 0:o.create();d&&(r.insert(c,d),r.setSelection(et.create(r.doc,c+1)))}r.scrollIntoView()}return!0}).run()}}},addInputRules(){return[JL({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),pH=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))$/,mH=/(?:^|\s)((?:\*)((?:[^*]+))(?:\*))/g,gH=/(?:^|\s)((?:_)((?:[^_]+))(?:_))$/,_H=/(?:^|\s)((?:_)((?:[^_]+))(?:_))/g,yH=ii.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Jo({find:pH,type:this.type}),Jo({find:gH,type:this.type})]},addPasteRules(){return[Ks({find:mH,type:this.type}),Ks({find:_H,type:this.type})]}}),j4=Rn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",Vt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),bH=Rn.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",Vt(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),r2=ii.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:t})=>{const e=Xc(n,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:t.unsetMark(this.name)}}}}),s2=/^(\d+)\.\s$/,W4=Rn.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:t,...e}=n;return t===1?["ol",Vt(this.options.HTMLAttributes,e),0]:["ol",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:t})=>this.options.keepAttributes?t().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(bH.name,this.editor.getAttributes(r2.name)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ic({find:s2,type:this.type,getAttributes:t=>({start:+t[1]}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ic({find:s2,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:t=>({start:+t[1],...this.editor.getAttributes(r2.name)}),joinPredicate:(t,e)=>e.childCount+e.attrs.start===+t[1],editor:this.editor})),[n]}}),vH=Rn.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),xH=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))$/,wH=/(?:^|\s)((?:~~)((?:[^~]+))(?:~~))/g,kH=ii.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){const n={};return A_()?n["Mod-Shift-s"]=()=>this.editor.commands.toggleStrike():n["Ctrl-Shift-s"]=()=>this.editor.commands.toggleStrike(),n},addInputRules(){return[Jo({find:xH,type:this.type})]},addPasteRules(){return[Ks({find:wH,type:this.type})]}}),CH=Rn.create({name:"text",group:"inline"}),SH=wn.create({name:"starterKit",addExtensions(){var n,t,e,i,r,s,o,a,c,d,f,h,g,m,y,k,C,T;const w=[];return this.options.blockquote!==!1&&w.push(Mq.configure((n=this.options)===null||n===void 0?void 0:n.blockquote)),this.options.bold!==!1&&w.push(Bq.configure((t=this.options)===null||t===void 0?void 0:t.bold)),this.options.bulletList!==!1&&w.push(q4.configure((e=this.options)===null||e===void 0?void 0:e.bulletList)),this.options.code!==!1&&w.push(Hq.configure((i=this.options)===null||i===void 0?void 0:i.code)),this.options.codeBlock!==!1&&w.push(Vq.configure((r=this.options)===null||r===void 0?void 0:r.codeBlock)),this.options.document!==!1&&w.push(jq.configure((s=this.options)===null||s===void 0?void 0:s.document)),this.options.dropcursor!==!1&&w.push(Gq.configure((o=this.options)===null||o===void 0?void 0:o.dropcursor)),this.options.gapcursor!==!1&&w.push(tH.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&w.push(nH.configure((c=this.options)===null||c===void 0?void 0:c.hardBreak)),this.options.heading!==!1&&w.push(iH.configure((d=this.options)===null||d===void 0?void 0:d.heading)),this.options.history!==!1&&w.push(fH.configure((f=this.options)===null||f===void 0?void 0:f.history)),this.options.horizontalRule!==!1&&w.push(hH.configure((h=this.options)===null||h===void 0?void 0:h.horizontalRule)),this.options.italic!==!1&&w.push(yH.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&w.push(j4.configure((m=this.options)===null||m===void 0?void 0:m.listItem)),this.options.orderedList!==!1&&w.push(W4.configure((y=this.options)===null||y===void 0?void 0:y.orderedList)),this.options.paragraph!==!1&&w.push(vH.configure((k=this.options)===null||k===void 0?void 0:k.paragraph)),this.options.strike!==!1&&w.push(kH.configure((C=this.options)===null||C===void 0?void 0:C.strike)),this.options.text!==!1&&w.push(CH.configure((T=this.options)===null||T===void 0?void 0:T.text)),w}}),TH=wn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:t})=>this.options.alignments.includes(n)?this.options.types.every(e=>t.updateAttributes(e,{textAlign:n})):!1,unsetTextAlign:()=>({commands:n})=>this.options.types.every(t=>n.resetAttributes(t,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),EH=ii.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),OH=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))$/,AH=/(?:^|\s)((?:==)((?:[^~=]+))(?:==))/g,DH=ii.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:n}){return["mark",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:t})=>t.setMark(this.name,n),toggleHighlight:n=>({commands:t})=>t.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[Jo({find:OH,type:this.type})]},addPasteRules(){return[Ks({find:AH,type:this.type})]}}),MH=ii.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:t})=>{const e=Xc(n,this.type);return Object.entries(e).some(([,r])=>!!r)?!0:t.unsetMark(this.name)}}}}),PH=wn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:n=>{var t;return(t=n.style.color)===null||t===void 0?void 0:t.replace(/['"]+/g,"")},renderHTML:n=>n.color?{style:`color: ${n.color}`}:{}}}}]},addCommands(){return{setColor:n=>({chain:t})=>t().setMark("textStyle",{color:n}).run(),unsetColor:()=>({chain:n})=>n().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),NH="aaa1rp3barth4b0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0faromeo7ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4vianca6w0s2x0a2z0ure5ba0by2idu3namex3narepublic11d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re2s2c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y0eats7k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0cast4mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking0channel11l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dabur3d1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t0isalat7u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0at2delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d0network8tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntdoor4ier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0ardian6cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5gtv3iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0eles2s3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1nder2le4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster5ia3d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4de2k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0cys3drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7serati6ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic3tual5v1w1x1y1z2na0b1goya4me2tura4vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rthwesternmutual14on4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9dnavy5lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3ssagens7y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cher3ks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0a1b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp2w2ell3ia1ksha5oes2p0ping5uji3w0time7i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ffany5ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0channel7ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lkswagen7vo3te1ing3o2yage5u0elos6wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4finity6ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",IH="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5تصالات6رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ml=(n,t)=>{for(const e in t)n[e]=t[e];return n},fg="numeric",hg="ascii",pg="alpha",vu="asciinumeric",lu="alphanumeric",mg="domain",K4="emoji",RH="scheme",BH="slashscheme",o2="whitespace";function LH(n,t){return n in t||(t[n]=[]),t[n]}function Oo(n,t,e){t[fg]&&(t[vu]=!0,t[lu]=!0),t[hg]&&(t[vu]=!0,t[pg]=!0),t[vu]&&(t[lu]=!0),t[pg]&&(t[lu]=!0),t[lu]&&(t[mg]=!0),t[K4]&&(t[mg]=!0);for(const i in t){const r=LH(i,e);r.indexOf(n)<0&&r.push(n)}}function FH(n,t){const e={};for(const i in t)t[i].indexOf(n)>=0&&(e[i]=!0);return e}function Qn(n){n===void 0&&(n=null),this.j={},this.jr=[],this.jd=null,this.t=n}Qn.groups={};Qn.prototype={accepts(){return!!this.t},go(n){const t=this,e=t.j[n];if(e)return e;for(let i=0;in.ta(t,e,i,r),Ri=(n,t,e,i,r)=>n.tr(t,e,i,r),a2=(n,t,e,i,r)=>n.ts(t,e,i,r),be=(n,t,e,i,r)=>n.tt(t,e,i,r),jr="WORD",gg="UWORD",Lc="LOCALHOST",_g="TLD",yg="UTLD",xu="SCHEME",Na="SLASH_SCHEME",z_="NUM",G4="WS",U_="NL",La="OPENBRACE",cc="OPENBRACKET",dc="OPENANGLEBRACKET",uc="OPENPAREN",wo="CLOSEBRACE",Fa="CLOSEBRACKET",qa="CLOSEANGLEBRACKET",ko="CLOSEPAREN",lf="AMPERSAND",cf="APOSTROPHE",df="ASTERISK",Ts="AT",uf="BACKSLASH",ff="BACKTICK",hf="CARET",Os="COLON",V_="COMMA",pf="DOLLAR",gr="DOT",mf="EQUALS",j_="EXCLAMATION",_r="HYPHEN",gf="PERCENT",_f="PIPE",yf="PLUS",bf="POUND",vf="QUERY",W_="QUOTE",K_="SEMI",yr="SLASH",fc="TILDE",xf="UNDERSCORE",Y4="EMOJI",wf="SYM";var J4=Object.freeze({__proto__:null,WORD:jr,UWORD:gg,LOCALHOST:Lc,TLD:_g,UTLD:yg,SCHEME:xu,SLASH_SCHEME:Na,NUM:z_,WS:G4,NL:U_,OPENBRACE:La,OPENBRACKET:cc,OPENANGLEBRACKET:dc,OPENPAREN:uc,CLOSEBRACE:wo,CLOSEBRACKET:Fa,CLOSEANGLEBRACKET:qa,CLOSEPAREN:ko,AMPERSAND:lf,APOSTROPHE:cf,ASTERISK:df,AT:Ts,BACKSLASH:uf,BACKTICK:ff,CARET:hf,COLON:Os,COMMA:V_,DOLLAR:pf,DOT:gr,EQUALS:mf,EXCLAMATION:j_,HYPHEN:_r,PERCENT:gf,PIPE:_f,PLUS:yf,POUND:bf,QUERY:vf,QUOTE:W_,SEMI:K_,SLASH:yr,TILDE:fc,UNDERSCORE:xf,EMOJI:Y4,SYM:wf});const Ca=/[a-z]/,fm=/\p{L}/u,hm=/\p{Emoji}/u,pm=/\d/,l2=/\s/,c2=` `,qH="️",HH="‍";let cu=null,du=null;function zH(n){n===void 0&&(n=[]);const t={};Qn.groups=t;const e=new Qn;cu==null&&(cu=d2(NH)),du==null&&(du=d2(IH)),be(e,"'",cf),be(e,"{",La),be(e,"[",cc),be(e,"<",dc),be(e,"(",uc),be(e,"}",wo),be(e,"]",Fa),be(e,">",qa),be(e,")",ko),be(e,"&",lf),be(e,"*",df),be(e,"@",Ts),be(e,"`",ff),be(e,"^",hf),be(e,":",Os),be(e,",",V_),be(e,"$",pf),be(e,".",gr),be(e,"=",mf),be(e,"!",j_),be(e,"-",_r),be(e,"%",gf),be(e,"|",_f),be(e,"+",yf),be(e,"#",bf),be(e,"?",vf),be(e,'"',W_),be(e,"/",yr),be(e,";",K_),be(e,"~",fc),be(e,"_",xf),be(e,"\\",uf);const i=Ri(e,pm,z_,{[fg]:!0});Ri(i,pm,i);const r=Ri(e,Ca,jr,{[hg]:!0});Ri(r,Ca,r);const s=Ri(e,fm,gg,{[pg]:!0});Ri(s,Ca),Ri(s,fm,s);const o=Ri(e,l2,G4,{[o2]:!0});be(e,c2,U_,{[o2]:!0}),be(o,c2),Ri(o,l2,o);const a=Ri(e,hm,Y4,{[K4]:!0});Ri(a,hm,a),be(a,qH,a);const c=be(a,HH);Ri(c,hm,a);const d=[[Ca,r]],f=[[Ca,null],[fm,s]];for(let h=0;hh[0]>g[0]?1:-1);for(let h=0;h=0?y[mg]=!0:Ca.test(g)?pm.test(g)?y[vu]=!0:y[hg]=!0:y[fg]=!0,a2(e,g,g,y)}return a2(e,"localhost",Lc,{ascii:!0}),e.jd=new Qn(wf),{start:e,tokens:ml({groups:t},J4)}}function UH(n,t){const e=VH(t.replace(/[A-Z]/g,a=>a.toLowerCase())),i=e.length,r=[];let s=0,o=0;for(;o=0&&(h+=e[o].length,g++),d+=e[o].length,s+=e[o].length,o++;s-=h,o-=g,d-=h,r.push({t:f.t,v:t.slice(s-d,s),s:s-d,e:s})}return r}function VH(n){const t=[],e=n.length;let i=0;for(;i56319||i+1===e||(s=n.charCodeAt(i+1))<56320||s>57343?n[i]:n.slice(i,i+2);t.push(o),i+=o.length}return t}function bs(n,t,e,i,r){let s;const o=t.length;for(let a=0;a=0;)s++;if(s>0){t.push(e.join(""));for(let o=parseInt(n.substring(i,i+s),10);o>0;o--)e.pop();i+=s}else e.push(n[i]),i++}return t}const Fc={defaultProtocol:"http",events:null,format:u2,formatHref:u2,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function G_(n,t){t===void 0&&(t=null);let e=ml({},Fc);n&&(e=ml(e,n instanceof G_?n.o:n));const i=e.ignoreTags,r=[];for(let s=0;se?i.substring(0,e)+"…":i},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n){return n===void 0&&(n=Fc.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const t=this,e=this.toHref(n.get("defaultProtocol")),i=n.get("formatHref",e,this),r=n.get("tagName",e,t),s=this.toFormattedString(n),o={},a=n.get("className",e,t),c=n.get("target",e,t),d=n.get("rel",e,t),f=n.getObj("attributes",e,t),h=n.getObj("events",e,t);return o.href=i,a&&(o.class=a),c&&(o.target=c),d&&(o.rel=d),f&&ml(o,f),{tagName:r,attributes:o,content:s,eventListeners:h}}};function ch(n,t){class e extends Z4{constructor(r,s){super(r,s),this.t=n}}for(const i in t)e.prototype[i]=t[i];return e.t=n,e}const f2=ch("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),h2=ch("text"),jH=ch("nl"),go=ch("url",{isLink:!0,toHref(n){return n===void 0&&(n=Fc.defaultProtocol),this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Lc&&n[1].t===Os}}),un=n=>new Qn(n);function WH(n){let{groups:t}=n;const e=t.domain.concat([lf,df,Ts,uf,ff,hf,pf,mf,_r,z_,gf,_f,yf,bf,yr,wf,fc,xf]),i=[cf,qa,wo,Fa,ko,Os,V_,gr,j_,dc,La,cc,uc,vf,W_,K_],r=[lf,cf,df,uf,ff,hf,wo,pf,mf,_r,La,gf,_f,yf,bf,vf,yr,wf,fc,xf],s=un(),o=be(s,fc);Fe(o,r,o),Fe(o,t.domain,o);const a=un(),c=un(),d=un();Fe(s,t.domain,a),Fe(s,t.scheme,c),Fe(s,t.slashscheme,d),Fe(a,r,o),Fe(a,t.domain,a);const f=be(a,Ts);be(o,Ts,f),be(c,Ts,f),be(d,Ts,f);const h=be(o,gr);Fe(h,r,o),Fe(h,t.domain,o);const g=un();Fe(f,t.domain,g),Fe(g,t.domain,g);const m=be(g,gr);Fe(m,t.domain,g);const y=un(f2);Fe(m,t.tld,y),Fe(m,t.utld,y),be(f,Lc,y);const k=be(g,_r);Fe(k,t.domain,g),Fe(y,t.domain,g),be(y,gr,m),be(y,_r,k);const C=be(y,Os);Fe(C,t.numeric,f2);const T=be(a,_r),w=be(a,gr);Fe(T,t.domain,a),Fe(w,r,o),Fe(w,t.domain,a);const O=un(go);Fe(w,t.tld,O),Fe(w,t.utld,O),Fe(O,t.domain,a),Fe(O,r,o),be(O,gr,w),be(O,_r,T),be(O,Ts,f);const x=be(O,Os),L=un(go);Fe(x,t.numeric,L);const M=un(go),B=un();Fe(M,e,M),Fe(M,i,B),Fe(B,e,M),Fe(B,i,B),be(O,yr,M),be(L,yr,M);const D=be(c,Os),F=be(d,Os),I=be(F,yr),q=be(I,yr);Fe(c,t.domain,a),be(c,gr,w),be(c,_r,T),Fe(d,t.domain,a),be(d,gr,w),be(d,_r,T),Fe(D,t.domain,M),be(D,yr,M),Fe(q,t.domain,M),Fe(q,e,M),be(q,yr,M);const H=be(M,La),W=be(M,cc),Y=be(M,dc),_e=be(M,uc);be(B,La,H),be(B,cc,W),be(B,dc,Y),be(B,uc,_e),be(H,wo,M),be(W,Fa,M),be(Y,qa,M),be(_e,ko,M),be(H,wo,M);const he=un(go),ye=un(go),pe=un(go),Ne=un(go);Fe(H,e,he),Fe(W,e,ye),Fe(Y,e,pe),Fe(_e,e,Ne);const Be=un(),Z=un(),te=un(),re=un();return Fe(H,i),Fe(W,i),Fe(Y,i),Fe(_e,i),Fe(he,e,he),Fe(ye,e,ye),Fe(pe,e,pe),Fe(Ne,e,Ne),Fe(he,i,he),Fe(ye,i,ye),Fe(pe,i,pe),Fe(Ne,i,Ne),Fe(Be,e,Be),Fe(Z,e,ye),Fe(te,e,pe),Fe(re,e,Ne),Fe(Be,i,Be),Fe(Z,i,Z),Fe(te,i,te),Fe(re,i,re),be(ye,Fa,M),be(pe,qa,M),be(Ne,ko,M),be(he,wo,M),be(Z,Fa,M),be(te,qa,M),be(re,ko,M),be(Be,ko,M),be(s,Lc,O),be(s,U_,jH),{start:s,tokens:J4}}function KH(n,t,e){let i=e.length,r=0,s=[],o=[];for(;r=0&&g++,r++,f++;if(g<0)r-=f,r0&&(s.push(mm(h2,t,o)),o=[]),r-=g,f-=g;const m=h.t,y=e.slice(r-f,r);s.push(mm(m,t,y))}}return o.length>0&&s.push(mm(h2,t,o)),s}function mm(n,t,e){const i=e[0].s,r=e[e.length-1].e,s=t.slice(i,r);return new n(s,e)}const GH=typeof console<"u"&&console&&console.warn||(()=>{}),YH="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",Ht={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function JH(){Qn.groups={},Ht.scanner=null,Ht.parser=null,Ht.tokenQueue=[],Ht.pluginQueue=[],Ht.customSchemes=[],Ht.initialized=!1}function p2(n,t){if(t===void 0&&(t=!1),Ht.initialized&&GH(`linkifyjs: already initialized - will not register custom scheme "${n}" ${YH}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error(`linkifyjs: incorrect scheme format. 1. Must only contain digits, lowercase ASCII letters or "-" 2. Cannot start or end with "-" 3. "-" cannot repeat`);Ht.customSchemes.push([n,t])}function ZH(){Ht.scanner=zH(Ht.customSchemes);for(let n=0;n{const r=t.some(d=>d.docChanged)&&!e.doc.eq(i.doc),s=t.some(d=>d.getMeta("preventAutolink"));if(!r||s)return;const{tr:o}=i,a=aL(e.doc,[...t]);if(gL(a).forEach(({newRange:d})=>{const f=cL(i.doc,d,m=>m.isTextblock);let h,g;if(f.length>1?(h=f[0],g=i.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):f.length&&i.doc.textBetween(d.from,d.to," "," ").endsWith(" ")&&(h=f[0],g=i.doc.textBetween(h.pos,d.to,void 0," ")),h&&g){const m=g.split(" ").filter(C=>C!=="");if(m.length<=0)return!1;const y=m[m.length-1],k=h.pos+g.lastIndexOf(y);if(!y)return!1;Y_(y).filter(C=>C.isLink).map(C=>({...C,from:k+C.start+1,to:k+C.end+1})).filter(C=>i.schema.marks.code?!i.doc.rangeHasMark(C.from,C.to,i.schema.marks.code):!0).filter(C=>n.validate?n.validate(C.value):!0).forEach(C=>{M_(C.from,C.to,i.doc).some(T=>T.mark.type===n.type)||o.addMark(C.from,C.to,n.type.create({href:C.href}))})}}),!!o.steps.length)return o}})}function $H(n){return new kn({key:new Ci("handleClickLink"),props:{handleClick:(t,e,i)=>{var r,s;if(i.button!==0||i.target.nodeName!=="A")return!1;const a=_4(t.state,n.type.name),c=i.target,d=(r=c==null?void 0:c.href)!==null&&r!==void 0?r:a.href,f=(s=c==null?void 0:c.target)!==null&&s!==void 0?s:a.target;return c&&d?(t.editable&&window.open(d,f),!0):!1}}})}function ez(n){return new kn({key:new Ci("handlePasteLink"),props:{handlePaste:(t,e,i)=>{var r;const{state:s}=t,{selection:o}=s,{empty:a}=o;if(a)return!1;let c="";i.content.forEach(y=>{c+=y.textContent});const d=Y_(c).find(y=>y.isLink&&y.value===c);if(!c||!d)return!1;const f=(r=e.clipboardData)===null||r===void 0?void 0:r.getData("text/html"),h=/href="([^"]*)"/,g=f==null?void 0:f.match(h),m=g?g[1]:d.href;return n.editor.commands.setMark(n.type,{href:m}),!0}}})}const tz=ii.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){p2(n);return}p2(n.scheme,n.optionalSlashes)})},onDestroy(){JH()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){return["a",Vt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:t})=>t().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:t})=>t().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[Ks({find:n=>Y_(n).filter(t=>this.options.validate?this.options.validate(t.value):!0).filter(t=>t.isLink).map(t=>({text:t.value,index:t.start,data:t})),type:this.type,getAttributes:(n,t)=>{var e,i;const r=(e=t==null?void 0:t.clipboardData)===null||e===void 0?void 0:e.getData("text/html"),s=/href="([^"]*)"/,o=r==null?void 0:r.match(s);return o?{href:o[1]}:{href:(i=n.data)===null||i===void 0?void 0:i.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(QH({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push($H({type:this.type})),this.options.linkOnPaste&&n.push(ez({editor:this.editor,type:this.type})),n}});const nz={name:"Editor",props:["content"],setup(n){const e=Aq({content:n.content,isEditable:!1,extensions:[SH,EH,TH.configure({types:["heading","paragraph"],defaultAlignment:"center"}),DH.configure({multicolor:!0}),MH,PH,tz.configure({openOnClick:!1}),q4,W4,j4],editable:!1});return(i,r)=>(S(),qe(_c(Oq),{editor:_c(e),class:"main-editor"},null,8,["editor"]))}};var $e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function X4(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function iz(n){if(n.__esModule)return n;var t=n.default;if(typeof t=="function"){var e=function i(){if(this instanceof i){var r=[null];r.push.apply(r,arguments);var s=Function.bind.apply(t,r);return new s}return t.apply(this,arguments)};e.prototype=t.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(i){var r=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(e,i,r.get?r:{enumerable:!0,get:function(){return n[i]}})}),e}var kf={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */kf.exports;(function(n,t){(function(){var e,i="4.17.21",r=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",h=1,g=2,m=4,y=1,k=2,C=1,T=2,w=4,O=8,x=16,L=32,M=64,B=128,D=256,F=512,I=30,q="...",H=800,W=16,Y=1,_e=2,he=3,ye=1/0,pe=9007199254740991,Ne=17976931348623157e292,Be=0/0,Z=4294967295,te=Z-1,re=Z>>>1,se=[["ary",B],["bind",C],["bindKey",T],["curry",O],["curryRight",x],["flip",F],["partial",L],["partialRight",M],["rearg",D]],Ge="[object Arguments]",Ye="[object Array]",xt="[object AsyncFunction]",Ie="[object Boolean]",Kt="[object Date]",Bt="[object DOMException]",$t="[object Error]",en="[object Function]",U="[object GeneratorFunction]",V="[object Map]",$="[object Number]",le="[object Null]",ie="[object Object]",me="[object Promise]",ve="[object Proxy]",ue="[object RegExp]",de="[object Set]",oe="[object String]",xe="[object Symbol]",Ce="[object Undefined]",Ee="[object WeakMap]",Le="[object WeakSet]",Ve="[object ArrayBuffer]",tt="[object DataView]",ht="[object Float32Array]",_t="[object Float64Array]",Lt="[object Int8Array]",cn="[object Int16Array]",ur="[object Int32Array]",ee="[object Uint8Array]",Se="[object Uint8ClampedArray]",Ae="[object Uint16Array]",Je="[object Uint32Array]",nt=/\b__p \+= '';/g,tn=/\b(__p \+=) '' \+/g,mn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ki=/&(?:amp|lt|gt|quot|#39);/g,rs=/[&<>"']/g,Gi=RegExp(Ki.source),no=RegExp(rs.source),ss=/<%-([\s\S]+?)%>/g,Yi=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,io=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/,_h=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oa=/[\\^$.*+?()[\]{}|]/g,Ln=RegExp(oa.source),Si=/^\s+/,td=/\s/,yh=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,E3=/\{\n\/\* \[wrapped with (.+)\] \*/,O3=/,? & /,A3=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,D3=/[()=,{}\[\]\/\s]/,M3=/\\(\\)?/g,P3=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,oy=/\w*$/,N3=/^[-+]0x[0-9a-f]+$/i,I3=/^0b[01]+$/i,R3=/^\[object .+?Constructor\]$/,B3=/^0o[0-7]+$/i,L3=/^(?:0|[1-9]\d*)$/,F3=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nd=/($^)/,q3=/['\n\r\u2028\u2029\\]/g,id="\\ud800-\\udfff",H3="\\u0300-\\u036f",z3="\\ufe20-\\ufe2f",U3="\\u20d0-\\u20ff",ay=H3+z3+U3,ly="\\u2700-\\u27bf",cy="a-z\\xdf-\\xf6\\xf8-\\xff",V3="\\xac\\xb1\\xd7\\xf7",j3="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",W3="\\u2000-\\u206f",K3=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",dy="A-Z\\xc0-\\xd6\\xd8-\\xde",uy="\\ufe0e\\ufe0f",fy=V3+j3+W3+K3,bh="['’]",G3="["+id+"]",hy="["+fy+"]",rd="["+ay+"]",py="\\d+",Y3="["+ly+"]",my="["+cy+"]",gy="[^"+id+fy+py+ly+cy+dy+"]",vh="\\ud83c[\\udffb-\\udfff]",J3="(?:"+rd+"|"+vh+")",_y="[^"+id+"]",xh="(?:\\ud83c[\\udde6-\\uddff]){2}",wh="[\\ud800-\\udbff][\\udc00-\\udfff]",aa="["+dy+"]",yy="\\u200d",by="(?:"+my+"|"+gy+")",Z3="(?:"+aa+"|"+gy+")",vy="(?:"+bh+"(?:d|ll|m|re|s|t|ve))?",xy="(?:"+bh+"(?:D|LL|M|RE|S|T|VE))?",wy=J3+"?",ky="["+uy+"]?",X3="(?:"+yy+"(?:"+[_y,xh,wh].join("|")+")"+ky+wy+")*",Q3="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$3="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cy=ky+wy+X3,eT="(?:"+[Y3,xh,wh].join("|")+")"+Cy,tT="(?:"+[_y+rd+"?",rd,xh,wh,G3].join("|")+")",nT=RegExp(bh,"g"),iT=RegExp(rd,"g"),kh=RegExp(vh+"(?="+vh+")|"+tT+Cy,"g"),rT=RegExp([aa+"?"+my+"+"+vy+"(?="+[hy,aa,"$"].join("|")+")",Z3+"+"+xy+"(?="+[hy,aa+by,"$"].join("|")+")",aa+"?"+by+"+"+vy,aa+"+"+xy,$3,Q3,py,eT].join("|"),"g"),sT=RegExp("["+yy+id+ay+uy+"]"),oT=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aT=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],lT=-1,Rt={};Rt[ht]=Rt[_t]=Rt[Lt]=Rt[cn]=Rt[ur]=Rt[ee]=Rt[Se]=Rt[Ae]=Rt[Je]=!0,Rt[Ge]=Rt[Ye]=Rt[Ve]=Rt[Ie]=Rt[tt]=Rt[Kt]=Rt[$t]=Rt[en]=Rt[V]=Rt[$]=Rt[ie]=Rt[ue]=Rt[de]=Rt[oe]=Rt[Ee]=!1;var It={};It[Ge]=It[Ye]=It[Ve]=It[tt]=It[Ie]=It[Kt]=It[ht]=It[_t]=It[Lt]=It[cn]=It[ur]=It[V]=It[$]=It[ie]=It[ue]=It[de]=It[oe]=It[xe]=It[ee]=It[Se]=It[Ae]=It[Je]=!0,It[$t]=It[en]=It[Ee]=!1;var cT={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},dT={"&":"&","<":"<",">":">",'"':""","'":"'"},uT={"&":"&","<":"<",">":">",""":'"',"'":"'"},fT={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},hT=parseFloat,pT=parseInt,Sy=typeof $e=="object"&&$e&&$e.Object===Object&&$e,mT=typeof self=="object"&&self&&self.Object===Object&&self,gn=Sy||mT||Function("return this")(),Ch=t&&!t.nodeType&&t,ro=Ch&&!0&&n&&!n.nodeType&&n,Ty=ro&&ro.exports===Ch,Sh=Ty&&Sy.process,Ti=function(){try{var K=ro&&ro.require&&ro.require("util").types;return K||Sh&&Sh.binding&&Sh.binding("util")}catch{}}(),Ey=Ti&&Ti.isArrayBuffer,Oy=Ti&&Ti.isDate,Ay=Ti&&Ti.isMap,Dy=Ti&&Ti.isRegExp,My=Ti&&Ti.isSet,Py=Ti&&Ti.isTypedArray;function oi(K,ne,Q){switch(Q.length){case 0:return K.call(ne);case 1:return K.call(ne,Q[0]);case 2:return K.call(ne,Q[0],Q[1]);case 3:return K.call(ne,Q[0],Q[1],Q[2])}return K.apply(ne,Q)}function gT(K,ne,Q,Oe){for(var Xe=-1,Ct=K==null?0:K.length;++Xe-1}function Th(K,ne,Q){for(var Oe=-1,Xe=K==null?0:K.length;++Oe-1;);return Q}function Hy(K,ne){for(var Q=K.length;Q--&&la(ne,K[Q],0)>-1;);return Q}function ST(K,ne){for(var Q=K.length,Oe=0;Q--;)K[Q]===ne&&++Oe;return Oe}var TT=Dh(cT),ET=Dh(dT);function OT(K){return"\\"+fT[K]}function AT(K,ne){return K==null?e:K[ne]}function ca(K){return sT.test(K)}function DT(K){return oT.test(K)}function MT(K){for(var ne,Q=[];!(ne=K.next()).done;)Q.push(ne.value);return Q}function Ih(K){var ne=-1,Q=Array(K.size);return K.forEach(function(Oe,Xe){Q[++ne]=[Xe,Oe]}),Q}function zy(K,ne){return function(Q){return K(ne(Q))}}function cs(K,ne){for(var Q=-1,Oe=K.length,Xe=0,Ct=[];++Q-1}function y8(l,u){var p=this.__data__,v=wd(p,l);return v<0?(++this.size,p.push([l,u])):p[v][1]=u,this}Nr.prototype.clear=p8,Nr.prototype.delete=m8,Nr.prototype.get=g8,Nr.prototype.has=_8,Nr.prototype.set=y8;function Ir(l){var u=-1,p=l==null?0:l.length;for(this.clear();++u=u?l:u)),l}function Di(l,u,p,v,E,N){var z,j=u&h,G=u&g,ae=u&m;if(p&&(z=E?p(l,v,E,N):p(l)),z!==e)return z;if(!qt(l))return l;var ce=Qe(l);if(ce){if(z=w5(l),!j)return Gn(l,z)}else{var fe=Tn(l),we=fe==en||fe==U;if(ms(l))return k1(l,j);if(fe==ie||fe==Ge||we&&!E){if(z=G||we?{}:U1(l),!j)return G?u5(l,I8(z,l)):d5(l,$y(z,l))}else{if(!It[fe])return E?l:{};z=k5(l,fe,j)}}N||(N=new Zi);var Pe=N.get(l);if(Pe)return Pe;N.set(l,z),_b(l)?l.forEach(function(We){z.add(Di(We,u,p,We,l,N))}):mb(l)&&l.forEach(function(We,ft){z.set(ft,Di(We,u,p,ft,l,N))});var je=ae?G?op:sp:G?Jn:dn,st=ce?e:je(l);return Ei(st||l,function(We,ft){st&&(ft=We,We=l[ft]),Tl(z,ft,Di(We,u,p,ft,l,N))}),z}function R8(l){var u=dn(l);return function(p){return e1(p,l,u)}}function e1(l,u,p){var v=p.length;if(l==null)return!v;for(l=Pt(l);v--;){var E=p[v],N=u[E],z=l[E];if(z===e&&!(E in l)||!N(z))return!1}return!0}function t1(l,u,p){if(typeof l!="function")throw new Oi(o);return Nl(function(){l.apply(e,p)},u)}function El(l,u,p,v){var E=-1,N=sd,z=!0,j=l.length,G=[],ae=u.length;if(!j)return G;p&&(u=Ft(u,ai(p))),v?(N=Th,z=!1):u.length>=r&&(N=vl,z=!1,u=new ao(u));e:for(;++EE?0:E+p),v=v===e||v>E?E:it(v),v<0&&(v+=E),v=p>v?0:bb(v);p0&&p(j)?u>1?_n(j,u-1,p,v,E):ls(E,j):v||(E[E.length]=j)}return E}var zh=A1(),r1=A1(!0);function fr(l,u){return l&&zh(l,u,dn)}function Uh(l,u){return l&&r1(l,u,dn)}function Cd(l,u){return as(u,function(p){return qr(l[p])})}function co(l,u){u=hs(u,l);for(var p=0,v=u.length;l!=null&&pu}function F8(l,u){return l!=null&&At.call(l,u)}function q8(l,u){return l!=null&&u in Pt(l)}function H8(l,u,p){return l>=Sn(u,p)&&l=120&&ce.length>=120)?new ao(z&&ce):e}ce=l[0];var fe=-1,we=j[0];e:for(;++fe-1;)j!==l&&md.call(j,G,1),md.call(l,G,1);return l}function m1(l,u){for(var p=l?u.length:0,v=p-1;p--;){var E=u[p];if(p==v||E!==N){var N=E;Fr(E)?md.call(l,E,1):Qh(l,E)}}return l}function Jh(l,u){return l+yd(Jy()*(u-l+1))}function $8(l,u,p,v){for(var E=-1,N=rn(_d((u-l)/(p||1)),0),z=Q(N);N--;)z[v?N:++E]=l,l+=p;return z}function Zh(l,u){var p="";if(!l||u<1||u>pe)return p;do u%2&&(p+=l),u=yd(u/2),u&&(l+=l);while(u);return p}function dt(l,u){return hp(W1(l,u,Zn),l+"")}function e5(l){return Qy(va(l))}function t5(l,u){var p=va(l);return Rd(p,lo(u,0,p.length))}function Dl(l,u,p,v){if(!qt(l))return l;u=hs(u,l);for(var E=-1,N=u.length,z=N-1,j=l;j!=null&&++EE?0:E+u),p=p>E?E:p,p<0&&(p+=E),E=u>p?0:p-u>>>0,u>>>=0;for(var N=Q(E);++v>>1,z=l[N];z!==null&&!ci(z)&&(p?z<=u:z=r){var ae=u?null:m5(l);if(ae)return ad(ae);z=!1,E=vl,G=new ao}else G=u?[]:j;e:for(;++v=v?l:Mi(l,u,p)}var w1=KT||function(l){return gn.clearTimeout(l)};function k1(l,u){if(u)return l.slice();var p=l.length,v=jy?jy(p):new l.constructor(p);return l.copy(v),v}function np(l){var u=new l.constructor(l.byteLength);return new hd(u).set(new hd(l)),u}function o5(l,u){var p=u?np(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.byteLength)}function a5(l){var u=new l.constructor(l.source,oy.exec(l));return u.lastIndex=l.lastIndex,u}function l5(l){return Sl?Pt(Sl.call(l)):{}}function C1(l,u){var p=u?np(l.buffer):l.buffer;return new l.constructor(p,l.byteOffset,l.length)}function S1(l,u){if(l!==u){var p=l!==e,v=l===null,E=l===l,N=ci(l),z=u!==e,j=u===null,G=u===u,ae=ci(u);if(!j&&!ae&&!N&&l>u||N&&z&&G&&!j&&!ae||v&&z&&G||!p&&G||!E)return 1;if(!v&&!N&&!ae&&l=j)return G;var ae=p[v];return G*(ae=="desc"?-1:1)}}return l.index-u.index}function T1(l,u,p,v){for(var E=-1,N=l.length,z=p.length,j=-1,G=u.length,ae=rn(N-z,0),ce=Q(G+ae),fe=!v;++j1?p[E-1]:e,z=E>2?p[2]:e;for(N=l.length>3&&typeof N=="function"?(E--,N):e,z&&qn(p[0],p[1],z)&&(N=E<3?e:N,E=1),u=Pt(u);++v-1?E[N?u[z]:z]:e}}function P1(l){return Lr(function(u){var p=u.length,v=p,E=Ai.prototype.thru;for(l&&u.reverse();v--;){var N=u[v];if(typeof N!="function")throw new Oi(o);if(E&&!z&&Nd(N)=="wrapper")var z=new Ai([],!0)}for(v=z?v:p;++v1&&mt.reverse(),ce&&Gj))return!1;var ae=N.get(l),ce=N.get(u);if(ae&&ce)return ae==u&&ce==l;var fe=-1,we=!0,Pe=p&k?new ao:e;for(N.set(l,u),N.set(u,l);++fe1?"& ":"")+u[v],u=u.join(p>2?", ":" "),l.replace(yh,`{ /* [wrapped with `+u+`] */ `)}function S5(l){return Qe(l)||ho(l)||!!(Gy&&l&&l[Gy])}function Fr(l,u){var p=typeof l;return u=u??pe,!!u&&(p=="number"||p!="symbol"&&L3.test(l))&&l>-1&&l%1==0&&l0){if(++u>=H)return arguments[0]}else u=0;return l.apply(e,arguments)}}function Rd(l,u){var p=-1,v=l.length,E=v-1;for(u=u===e?v:u;++p1?l[u-1]:e;return p=typeof p=="function"?(l.pop(),p):e,ib(l,p)});function rb(l){var u=P(l);return u.__chain__=!0,u}function BE(l,u){return u(l),l}function Bd(l,u){return u(l)}var LE=Lr(function(l){var u=l.length,p=u?l[0]:0,v=this.__wrapped__,E=function(N){return Hh(N,l)};return u>1||this.__actions__.length||!(v instanceof pt)||!Fr(p)?this.thru(E):(v=v.slice(p,+p+(u?1:0)),v.__actions__.push({func:Bd,args:[E],thisArg:e}),new Ai(v,this.__chain__).thru(function(N){return u&&!N.length&&N.push(e),N}))});function FE(){return rb(this)}function qE(){return new Ai(this.value(),this.__chain__)}function HE(){this.__values__===e&&(this.__values__=yb(this.value()));var l=this.__index__>=this.__values__.length,u=l?e:this.__values__[this.__index__++];return{done:l,value:u}}function zE(){return this}function UE(l){for(var u,p=this;p instanceof xd;){var v=X1(p);v.__index__=0,v.__values__=e,u?E.__wrapped__=v:u=v;var E=v;p=p.__wrapped__}return E.__wrapped__=l,u}function VE(){var l=this.__wrapped__;if(l instanceof pt){var u=l;return this.__actions__.length&&(u=new pt(this)),u=u.reverse(),u.__actions__.push({func:Bd,args:[pp],thisArg:e}),new Ai(u,this.__chain__)}return this.thru(pp)}function jE(){return v1(this.__wrapped__,this.__actions__)}var WE=Od(function(l,u,p){At.call(l,p)?++l[p]:Rr(l,p,1)});function KE(l,u,p){var v=Qe(l)?Ny:B8;return p&&qn(l,u,p)&&(u=e),v(l,ze(u,3))}function GE(l,u){var p=Qe(l)?as:i1;return p(l,ze(u,3))}var YE=M1(Q1),JE=M1($1);function ZE(l,u){return _n(Ld(l,u),1)}function XE(l,u){return _n(Ld(l,u),ye)}function QE(l,u,p){return p=p===e?1:it(p),_n(Ld(l,u),p)}function sb(l,u){var p=Qe(l)?Ei:us;return p(l,ze(u,3))}function ob(l,u){var p=Qe(l)?_T:n1;return p(l,ze(u,3))}var $E=Od(function(l,u,p){At.call(l,p)?l[p].push(u):Rr(l,p,[u])});function e6(l,u,p,v){l=Yn(l)?l:va(l),p=p&&!v?it(p):0;var E=l.length;return p<0&&(p=rn(E+p,0)),Ud(l)?p<=E&&l.indexOf(u,p)>-1:!!E&&la(l,u,p)>-1}var t6=dt(function(l,u,p){var v=-1,E=typeof u=="function",N=Yn(l)?Q(l.length):[];return us(l,function(z){N[++v]=E?oi(u,z,p):Ol(z,u,p)}),N}),n6=Od(function(l,u,p){Rr(l,p,u)});function Ld(l,u){var p=Qe(l)?Ft:c1;return p(l,ze(u,3))}function i6(l,u,p,v){return l==null?[]:(Qe(u)||(u=u==null?[]:[u]),p=v?e:p,Qe(p)||(p=p==null?[]:[p]),h1(l,u,p))}var r6=Od(function(l,u,p){l[p?0:1].push(u)},function(){return[[],[]]});function s6(l,u,p){var v=Qe(l)?Eh:Ly,E=arguments.length<3;return v(l,ze(u,4),p,E,us)}function o6(l,u,p){var v=Qe(l)?yT:Ly,E=arguments.length<3;return v(l,ze(u,4),p,E,n1)}function a6(l,u){var p=Qe(l)?as:i1;return p(l,Hd(ze(u,3)))}function l6(l){var u=Qe(l)?Qy:e5;return u(l)}function c6(l,u,p){(p?qn(l,u,p):u===e)?u=1:u=it(u);var v=Qe(l)?M8:t5;return v(l,u)}function d6(l){var u=Qe(l)?P8:i5;return u(l)}function u6(l){if(l==null)return 0;if(Yn(l))return Ud(l)?da(l):l.length;var u=Tn(l);return u==V||u==de?l.size:Kh(l).length}function f6(l,u,p){var v=Qe(l)?Oh:r5;return p&&qn(l,u,p)&&(u=e),v(l,ze(u,3))}var h6=dt(function(l,u){if(l==null)return[];var p=u.length;return p>1&&qn(l,u[0],u[1])?u=[]:p>2&&qn(u[0],u[1],u[2])&&(u=[u[0]]),h1(l,_n(u,1),[])}),Fd=GT||function(){return gn.Date.now()};function p6(l,u){if(typeof u!="function")throw new Oi(o);return l=it(l),function(){if(--l<1)return u.apply(this,arguments)}}function ab(l,u,p){return u=p?e:u,u=l&&u==null?l.length:u,Br(l,B,e,e,e,e,u)}function lb(l,u){var p;if(typeof u!="function")throw new Oi(o);return l=it(l),function(){return--l>0&&(p=u.apply(this,arguments)),l<=1&&(u=e),p}}var gp=dt(function(l,u,p){var v=C;if(p.length){var E=cs(p,ya(gp));v|=L}return Br(l,v,u,p,E)}),cb=dt(function(l,u,p){var v=C|T;if(p.length){var E=cs(p,ya(cb));v|=L}return Br(u,v,l,p,E)});function db(l,u,p){u=p?e:u;var v=Br(l,O,e,e,e,e,e,u);return v.placeholder=db.placeholder,v}function ub(l,u,p){u=p?e:u;var v=Br(l,x,e,e,e,e,e,u);return v.placeholder=ub.placeholder,v}function fb(l,u,p){var v,E,N,z,j,G,ae=0,ce=!1,fe=!1,we=!0;if(typeof l!="function")throw new Oi(o);u=Ni(u)||0,qt(p)&&(ce=!!p.leading,fe="maxWait"in p,N=fe?rn(Ni(p.maxWait)||0,u):N,we="trailing"in p?!!p.trailing:we);function Pe(Yt){var Qi=v,zr=E;return v=E=e,ae=Yt,z=l.apply(zr,Qi),z}function je(Yt){return ae=Yt,j=Nl(ft,u),ce?Pe(Yt):z}function st(Yt){var Qi=Yt-G,zr=Yt-ae,Mb=u-Qi;return fe?Sn(Mb,N-zr):Mb}function We(Yt){var Qi=Yt-G,zr=Yt-ae;return G===e||Qi>=u||Qi<0||fe&&zr>=N}function ft(){var Yt=Fd();if(We(Yt))return mt(Yt);j=Nl(ft,st(Yt))}function mt(Yt){return j=e,we&&v?Pe(Yt):(v=E=e,z)}function di(){j!==e&&w1(j),ae=0,v=G=E=j=e}function Hn(){return j===e?z:mt(Fd())}function ui(){var Yt=Fd(),Qi=We(Yt);if(v=arguments,E=this,G=Yt,Qi){if(j===e)return je(G);if(fe)return w1(j),j=Nl(ft,u),Pe(G)}return j===e&&(j=Nl(ft,u)),z}return ui.cancel=di,ui.flush=Hn,ui}var m6=dt(function(l,u){return t1(l,1,u)}),g6=dt(function(l,u,p){return t1(l,Ni(u)||0,p)});function _6(l){return Br(l,F)}function qd(l,u){if(typeof l!="function"||u!=null&&typeof u!="function")throw new Oi(o);var p=function(){var v=arguments,E=u?u.apply(this,v):v[0],N=p.cache;if(N.has(E))return N.get(E);var z=l.apply(this,v);return p.cache=N.set(E,z)||N,z};return p.cache=new(qd.Cache||Ir),p}qd.Cache=Ir;function Hd(l){if(typeof l!="function")throw new Oi(o);return function(){var u=arguments;switch(u.length){case 0:return!l.call(this);case 1:return!l.call(this,u[0]);case 2:return!l.call(this,u[0],u[1]);case 3:return!l.call(this,u[0],u[1],u[2])}return!l.apply(this,u)}}function y6(l){return lb(2,l)}var b6=s5(function(l,u){u=u.length==1&&Qe(u[0])?Ft(u[0],ai(ze())):Ft(_n(u,1),ai(ze()));var p=u.length;return dt(function(v){for(var E=-1,N=Sn(v.length,p);++E=u}),ho=o1(function(){return arguments}())?o1:function(l){return jt(l)&&At.call(l,"callee")&&!Ky.call(l,"callee")},Qe=Q.isArray,I6=Ey?ai(Ey):U8;function Yn(l){return l!=null&&zd(l.length)&&!qr(l)}function Gt(l){return jt(l)&&Yn(l)}function R6(l){return l===!0||l===!1||jt(l)&&Fn(l)==Ie}var ms=JT||Op,B6=Oy?ai(Oy):V8;function L6(l){return jt(l)&&l.nodeType===1&&!Il(l)}function F6(l){if(l==null)return!0;if(Yn(l)&&(Qe(l)||typeof l=="string"||typeof l.splice=="function"||ms(l)||ba(l)||ho(l)))return!l.length;var u=Tn(l);if(u==V||u==de)return!l.size;if(Pl(l))return!Kh(l).length;for(var p in l)if(At.call(l,p))return!1;return!0}function q6(l,u){return Al(l,u)}function H6(l,u,p){p=typeof p=="function"?p:e;var v=p?p(l,u):e;return v===e?Al(l,u,e,p):!!v}function yp(l){if(!jt(l))return!1;var u=Fn(l);return u==$t||u==Bt||typeof l.message=="string"&&typeof l.name=="string"&&!Il(l)}function z6(l){return typeof l=="number"&&Yy(l)}function qr(l){if(!qt(l))return!1;var u=Fn(l);return u==en||u==U||u==xt||u==ve}function pb(l){return typeof l=="number"&&l==it(l)}function zd(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=pe}function qt(l){var u=typeof l;return l!=null&&(u=="object"||u=="function")}function jt(l){return l!=null&&typeof l=="object"}var mb=Ay?ai(Ay):W8;function U6(l,u){return l===u||Wh(l,u,lp(u))}function V6(l,u,p){return p=typeof p=="function"?p:e,Wh(l,u,lp(u),p)}function j6(l){return gb(l)&&l!=+l}function W6(l){if(O5(l))throw new Xe(s);return a1(l)}function K6(l){return l===null}function G6(l){return l==null}function gb(l){return typeof l=="number"||jt(l)&&Fn(l)==$}function Il(l){if(!jt(l)||Fn(l)!=ie)return!1;var u=pd(l);if(u===null)return!0;var p=At.call(u,"constructor")&&u.constructor;return typeof p=="function"&&p instanceof p&&dd.call(p)==VT}var bp=Dy?ai(Dy):K8;function Y6(l){return pb(l)&&l>=-pe&&l<=pe}var _b=My?ai(My):G8;function Ud(l){return typeof l=="string"||!Qe(l)&&jt(l)&&Fn(l)==oe}function ci(l){return typeof l=="symbol"||jt(l)&&Fn(l)==xe}var ba=Py?ai(Py):Y8;function J6(l){return l===e}function Z6(l){return jt(l)&&Tn(l)==Ee}function X6(l){return jt(l)&&Fn(l)==Le}var Q6=Pd(Gh),$6=Pd(function(l,u){return l<=u});function yb(l){if(!l)return[];if(Yn(l))return Ud(l)?Ji(l):Gn(l);if(xl&&l[xl])return MT(l[xl]());var u=Tn(l),p=u==V?Ih:u==de?ad:va;return p(l)}function Hr(l){if(!l)return l===0?l:0;if(l=Ni(l),l===ye||l===-ye){var u=l<0?-1:1;return u*Ne}return l===l?l:0}function it(l){var u=Hr(l),p=u%1;return u===u?p?u-p:u:0}function bb(l){return l?lo(it(l),0,Z):0}function Ni(l){if(typeof l=="number")return l;if(ci(l))return Be;if(qt(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=qt(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=Fy(l);var p=I3.test(l);return p||B3.test(l)?pT(l.slice(2),p?2:8):N3.test(l)?Be:+l}function vb(l){return hr(l,Jn(l))}function eO(l){return l?lo(it(l),-pe,pe):l===0?l:0}function Ot(l){return l==null?"":li(l)}var tO=ga(function(l,u){if(Pl(u)||Yn(u)){hr(u,dn(u),l);return}for(var p in u)At.call(u,p)&&Tl(l,p,u[p])}),xb=ga(function(l,u){hr(u,Jn(u),l)}),Vd=ga(function(l,u,p,v){hr(u,Jn(u),l,v)}),nO=ga(function(l,u,p,v){hr(u,dn(u),l,v)}),iO=Lr(Hh);function rO(l,u){var p=ma(l);return u==null?p:$y(p,u)}var sO=dt(function(l,u){l=Pt(l);var p=-1,v=u.length,E=v>2?u[2]:e;for(E&&qn(u[0],u[1],E)&&(v=1);++p1),N}),hr(l,op(l),p),v&&(p=Di(p,h|g|m,g5));for(var E=u.length;E--;)Qh(p,u[E]);return p});function kO(l,u){return kb(l,Hd(ze(u)))}var CO=Lr(function(l,u){return l==null?{}:X8(l,u)});function kb(l,u){if(l==null)return{};var p=Ft(op(l),function(v){return[v]});return u=ze(u),p1(l,p,function(v,E){return u(v,E[0])})}function SO(l,u,p){u=hs(u,l);var v=-1,E=u.length;for(E||(E=1,l=e);++vu){var v=l;l=u,u=v}if(p||l%1||u%1){var E=Jy();return Sn(l+E*(u-l+hT("1e-"+((E+"").length-1))),u)}return Jh(l,u)}var BO=_a(function(l,u,p){return u=u.toLowerCase(),l+(p?Tb(u):u)});function Tb(l){return wp(Ot(l).toLowerCase())}function Eb(l){return l=Ot(l),l&&l.replace(F3,TT).replace(iT,"")}function LO(l,u,p){l=Ot(l),u=li(u);var v=l.length;p=p===e?v:lo(it(p),0,v);var E=p;return p-=u.length,p>=0&&l.slice(p,E)==u}function FO(l){return l=Ot(l),l&&no.test(l)?l.replace(rs,ET):l}function qO(l){return l=Ot(l),l&&Ln.test(l)?l.replace(oa,"\\$&"):l}var HO=_a(function(l,u,p){return l+(p?"-":"")+u.toLowerCase()}),zO=_a(function(l,u,p){return l+(p?" ":"")+u.toLowerCase()}),UO=D1("toLowerCase");function VO(l,u,p){l=Ot(l),u=it(u);var v=u?da(l):0;if(!u||v>=u)return l;var E=(u-v)/2;return Md(yd(E),p)+l+Md(_d(E),p)}function jO(l,u,p){l=Ot(l),u=it(u);var v=u?da(l):0;return u&&v>>0,p?(l=Ot(l),l&&(typeof u=="string"||u!=null&&!bp(u))&&(u=li(u),!u&&ca(l))?ps(Ji(l),0,p):l.split(u,p)):[]}var XO=_a(function(l,u,p){return l+(p?" ":"")+wp(u)});function QO(l,u,p){return l=Ot(l),p=p==null?0:lo(it(p),0,l.length),u=li(u),l.slice(p,p+u.length)==u}function $O(l,u,p){var v=P.templateSettings;p&&qn(l,u,p)&&(u=e),l=Ot(l),u=Vd({},u,v,L1);var E=Vd({},u.imports,v.imports,L1),N=dn(E),z=Nh(E,N),j,G,ae=0,ce=u.interpolate||nd,fe="__p += '",we=Rh((u.escape||nd).source+"|"+ce.source+"|"+(ce===sa?P3:nd).source+"|"+(u.evaluate||nd).source+"|$","g"),Pe="//# sourceURL="+(At.call(u,"sourceURL")?(u.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lT+"]")+` `;l.replace(we,function(We,ft,mt,di,Hn,ui){return mt||(mt=di),fe+=l.slice(ae,ui).replace(q3,OT),ft&&(j=!0,fe+=`' + __e(`+ft+`) + '`),Hn&&(G=!0,fe+=`'; `+Hn+`; __p += '`),mt&&(fe+=`' + ((__t = (`+mt+`)) == null ? '' : __t) + '`),ae=ui+We.length,We}),fe+=`'; `;var je=At.call(u,"variable")&&u.variable;if(!je)fe=`with (obj) { `+fe+` } `;else if(D3.test(je))throw new Xe(a);fe=(G?fe.replace(nt,""):fe).replace(tn,"$1").replace(mn,"$1;"),fe="function("+(je||"obj")+`) { `+(je?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(j?", __e = _.escape":"")+(G?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+fe+`return __p }`;var st=Ab(function(){return Ct(N,Pe+"return "+fe).apply(e,z)});if(st.source=fe,yp(st))throw st;return st}function eA(l){return Ot(l).toLowerCase()}function tA(l){return Ot(l).toUpperCase()}function nA(l,u,p){if(l=Ot(l),l&&(p||u===e))return Fy(l);if(!l||!(u=li(u)))return l;var v=Ji(l),E=Ji(u),N=qy(v,E),z=Hy(v,E)+1;return ps(v,N,z).join("")}function iA(l,u,p){if(l=Ot(l),l&&(p||u===e))return l.slice(0,Uy(l)+1);if(!l||!(u=li(u)))return l;var v=Ji(l),E=Hy(v,Ji(u))+1;return ps(v,0,E).join("")}function rA(l,u,p){if(l=Ot(l),l&&(p||u===e))return l.replace(Si,"");if(!l||!(u=li(u)))return l;var v=Ji(l),E=qy(v,Ji(u));return ps(v,E).join("")}function sA(l,u){var p=I,v=q;if(qt(u)){var E="separator"in u?u.separator:E;p="length"in u?it(u.length):p,v="omission"in u?li(u.omission):v}l=Ot(l);var N=l.length;if(ca(l)){var z=Ji(l);N=z.length}if(p>=N)return l;var j=p-da(v);if(j<1)return v;var G=z?ps(z,0,j).join(""):l.slice(0,j);if(E===e)return G+v;if(z&&(j+=G.length-j),bp(E)){if(l.slice(j).search(E)){var ae,ce=G;for(E.global||(E=Rh(E.source,Ot(oy.exec(E))+"g")),E.lastIndex=0;ae=E.exec(ce);)var fe=ae.index;G=G.slice(0,fe===e?j:fe)}}else if(l.indexOf(li(E),j)!=j){var we=G.lastIndexOf(E);we>-1&&(G=G.slice(0,we))}return G+v}function oA(l){return l=Ot(l),l&&Gi.test(l)?l.replace(Ki,RT):l}var aA=_a(function(l,u,p){return l+(p?" ":"")+u.toUpperCase()}),wp=D1("toUpperCase");function Ob(l,u,p){return l=Ot(l),u=p?e:u,u===e?DT(l)?FT(l):xT(l):l.match(u)||[]}var Ab=dt(function(l,u){try{return oi(l,e,u)}catch(p){return yp(p)?p:new Xe(p)}}),lA=Lr(function(l,u){return Ei(u,function(p){p=pr(p),Rr(l,p,gp(l[p],l))}),l});function cA(l){var u=l==null?0:l.length,p=ze();return l=u?Ft(l,function(v){if(typeof v[1]!="function")throw new Oi(o);return[p(v[0]),v[1]]}):[],dt(function(v){for(var E=-1;++Epe)return[];var p=Z,v=Sn(l,Z);u=ze(u),l-=Z;for(var E=Ph(v,u);++p0||u<0)?new pt(p):(l<0?p=p.takeRight(-l):l&&(p=p.drop(l)),u!==e&&(u=it(u),p=u<0?p.dropRight(-u):p.take(u-l)),p)},pt.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},pt.prototype.toArray=function(){return this.take(Z)},fr(pt.prototype,function(l,u){var p=/^(?:filter|find|map|reject)|While$/.test(u),v=/^(?:head|last)$/.test(u),E=P[v?"take"+(u=="last"?"Right":""):u],N=v||/^find/.test(u);E&&(P.prototype[u]=function(){var z=this.__wrapped__,j=v?[1]:arguments,G=z instanceof pt,ae=j[0],ce=G||Qe(z),fe=function(ft){var mt=E.apply(P,ls([ft],j));return v&&we?mt[0]:mt};ce&&p&&typeof ae=="function"&&ae.length!=1&&(G=ce=!1);var we=this.__chain__,Pe=!!this.__actions__.length,je=N&&!we,st=G&&!Pe;if(!N&&ce){z=st?z:new pt(this);var We=l.apply(z,j);return We.__actions__.push({func:Bd,args:[fe],thisArg:e}),new Ai(We,we)}return je&&st?l.apply(this,j):(We=this.thru(fe),je?v?We.value()[0]:We.value():We)})}),Ei(["pop","push","shift","sort","splice","unshift"],function(l){var u=ld[l],p=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",v=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var E=arguments;if(v&&!this.__chain__){var N=this.value();return u.apply(Qe(N)?N:[],E)}return this[p](function(z){return u.apply(Qe(z)?z:[],E)})}}),fr(pt.prototype,function(l,u){var p=P[u];if(p){var v=p.name+"";At.call(pa,v)||(pa[v]=[]),pa[v].push({name:u,func:p})}}),pa[Ad(e,T).name]=[{name:"wrapper",func:e}],pt.prototype.clone=o8,pt.prototype.reverse=a8,pt.prototype.value=l8,P.prototype.at=LE,P.prototype.chain=FE,P.prototype.commit=qE,P.prototype.next=HE,P.prototype.plant=UE,P.prototype.reverse=VE,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=jE,P.prototype.first=P.prototype.head,xl&&(P.prototype[xl]=zE),P},ua=qT();ro?((ro.exports=ua)._=ua,Ch._=ua):gn._=ua}).call($e)})(kf,kf.exports);kf.exports;const Nt=(n,t)=>{const e=n.__vccOpts||n;for(const[i,r]of t)e[i]=r;return e},rz={name:"textelement",components:{Editor:nz},props:{element_id:{require:!0},element:{require:!0},dynamicClass:{require:!0},isElementDragging:{require:!0}},computed:{getElementContent(){if(this.element.type!="bullet")return"\\"+this.element.icon_name},font_family(){if(this.element.icon_name){let n=this.icon.find(t=>t.code==this.element.icon_name);if(n)return`'Font Awesome 5 ${n.type=="brand"?"Brands":"Free"}'`}}},data(){return{textData:null,activeColor:"red",fontSize:200,currentEditor:"h5",isChange:!1,icon:Vu}},methods:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge},getIconName(){return this.element.type!="bullet"?this.element.icon_name?this.element.icon_name:" ":null}},mounted(){this.textData=this.element.text_data}};function sz(n,t,e,i,r,s){const o=at("Editor");return S(),A("div",null,[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-editor .ProseMirror strong { color: "+_(e.element.bold_color)+";} ."+_(e.dynamicClass)+".main-editor .ProseMirror b { color: "+_(e.element.bold_color)+";} ."+_(e.dynamicClass)+".main-editor .ProseMirror em { color: "+_(e.element.italic_color)+" !important;} ."+_(e.dynamicClass)+".main-editor .ProseMirror i { color: "+_(e.element.italic_color)+" !important;} ."+_(e.dynamicClass)+".main-editor .ProseMirror u { color: "+_(e.element.underline_color)+" !important;} ."+_(e.dynamicClass)+".main-editor .ProseMirror a * { color: "+_(e.element.link_color)+" !important;text-decoration: none;} ."+_(e.dynamicClass)+".main-editor .ProseMirror a:hover{ color: "+_(e.element.link_color)+" !important;text-decoration: underline;} ."+_(e.dynamicClass)+".main-editor{ color:"+_(e.element.color)+"; line-height:"+_(e.element.line_height+"em")+"; font-size:"+_(e.element.desktop_font_size+"px")+"; font-family:"+_(e.element.font_family)+"; background-color:"+_(e.element.background_color)+"; padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; text-transform:"+_(e.element.text_transformation)+"; opacity:"+_(e.element.opacity)+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; letter-spacing:"+_(e.element.letter_spacing)+"; text-align:"+_(e.element.text_align)+" } @media screen and (min-width: 0px) and (max-width: 480px){ ."+_(e.dynamicClass)+".main-editor{ font-size: "+_(e.element.mobile_font_size)+"px!important; } } ",1)]),_:1})),e.element.icon_name?(S(),qe(In("style"),{key:0,type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-editor .ProseMirror ul li::marker ,."+_(e.dynamicClass)+".main-editor .ProseMirror ol li::marker{ font-family: "+_(s.font_family)+"; color: "+_(e.element.icon_color)+"; font-weight: 900; } ."+_(e.dynamicClass)+".main-editor .ProseMirror ul li , ."+_(e.dynamicClass)+'.main-editor .ProseMirror ol li { list-style-type: "\\'+_(e.element.icon_name)+'" !important; } ',1)]),_:1})):R("",!0),ct(o,{content:this.element.text_data,class:X([e.dynamicClass,s.shadowClass(),s.boxClasses(),s.borderClass(),e.element.type=="bullet"?"text-left":""])},null,8,["content","class"])])}const oz=Nt(rz,[["render",sz]]);const az={name:"textelement",props:{element:{require:!0},dynamicClass:{require:!0}},computed:{full_page_image_src(){return this.element.image_type=="gc"&&this.element.gc_image_url?this.element.gc_image_url?this.gc_asset_url+"/"+this.element.gc_image_url:this.asset_url+"/no-image.png":this.element.image&&this.element.image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.image:this.element.image?this.element.image:this.asset_url+"/no-image.png"},getHeight(){return this.element.height>=0?`height:${this.element.height}px`:"height:100%"},gotoUrl(){this.element.action=="url"&&this.element.redirect_url&&this.element.redirect_url!="null"&&(this.element.link_target=="new_tab"?window.open(this.element.redirect_url,"_blank"):window.location.href=this.element.redirect_url)}},data(){return{asset_url:null,gc_asset_url:"https://global-control.s3.wasabisys.com"}},created(){this.asset_url=window.location.origin}},lz=["src","width"];function cz(n,t,e,i,r,s){return S(),A("div",{class:X(["image-container",e.dynamicClass]),onClick:t[0]||(t[0]=(...o)=>s.gotoUrl&&s.gotoUrl(...o))},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".image-container{ padding-left: "+_(e.element.padding_left)+"px; padding-right: "+_(e.element.padding_right)+"px; padding-top: "+_(e.element.padding_top)+"px; padding-bottom: "+_(e.element.padding_bottom)+"px; background-color: "+_(e.element.background_color)+"; opacity: "+_(e.element.opacity)+"; text-align: "+_(e.element.text_align)+"; } ."+_(e.dynamicClass)+" .img-preview{ height:"+_(e.element.height)+"px; } ",1)]),_:1})),b("img",{src:s.full_page_image_src,alt:"broken image...",class:X([[e.element.radius,e.element.border,e.element.shadow,e.element.effect],"img-preview"]),width:e.element.width},null,10,lz)],2)}const dz=Nt(az,[["render",cz]]);const uz={props:{timerObject:{require:!0,default:{}},isEditMode:{require:!1},isPreviewTemplate:{require:!1},timerCssSetting:{require:!1}},data(){return{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null}},computed:{},watch:{timerObject(){this.setTimer()}},methods:{convertTZ(n,t){return new Date((typeof n=="string"?new Date(n):n).toLocaleString("en-US",{timeZone:t}))},setTimer(){if(this.timerObject.type=="exact"){var n=new Date;n=this.convertTZ(n,this.timerObject.time_zone),this.startDate=Date.parse(n)/1e3;var t=new Date(this.timerObject.expiration_date_time);this.endDate=Date.parse(t)/1e3}else if(this.timerObject.type=="evergreen"||this.timerObject.type=="cookie"){var n=new Date;n.setHours(0,0,0,0),this.startDate=Date.parse(n)/1e3;var t=new Date,e=this.timerObject.days?this.timerObject.days:0;let s=0,o=0;this.timerObject.hours&&this.timerObject.hours!="00"&&(s=this.timerObject.hours),this.timerObject.minutes&&this.timerObject.minutes!="00"&&(o=this.timerObject.minutes),t.setHours(s,o,0,0),t.setDate(t.getDate()+e),this.endDate=Date.parse(t)/1e3}else if(this.timerObject.type=="re_occurrence"){var n=new Date;n=this.convertTZ(n,this.timerObject.time_zone),this.startDate=Date.parse(n)/1e3;let r=0,s=0,o=0,a=this.timerObject.daily_time;(~a.indexOf("am")||~a.indexOf("pm"))&&(a=this.timerObject.db_daily_time),a.split(":")&&a.split(":").length&&(r=a.split(":")[0],s=a.split(":")[1],o=a.split(":")[2]);let c=new Date;c.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),0);let d=new Date;if(d.setHours(r,s,o,0),this.timerObject.occurrence_type=="daily")if(c>d){var t=n;t.setHours(r,s,o,0),t.setDate(t.getDate()+1),this.endDate=Date.parse(t)/1e3}else{var t=n;t.setHours(r,s,o,0),this.endDate=Date.parse(t)/1e3}else if(this.timerObject.occurrence_type=="weekly")if(n.getDay()==parseInt(this.timerObject.weekly_day)&&cthis.timerObject.monthly_date){if(n.getMonth()==11)var t=new Date(n.getFullYear()+1,0,this.timerObject.monthly_date);else var t=new Date(n.getFullYear(),n.getMonth()+1,this.timerObject.monthly_date);t.setHours(r,s,o,0),this.endDate=Date.parse(t)/1e3}else if(n.getDate(){--n<0?(n=0,this.days="00",this.hours="00",this.minutes="00",this.seconds="00",this.clearIntervalData(),this.timerObject.type=="re_occurrence"&&setTimeout(()=>{this.setTimer()},1e3)):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.days=i,this.hours=r,this.minutes=t,this.seconds=e)},1e3)},clearIntervalData(){clearInterval(this.invertvalData),this.invertvalData=null,this.$forceUpdate()},nextDay(n){var t=new Date;return t=this.convertTZ(t,this.timerObject.time_zone),t.setDate(t.getDate()+(n+(7-t.getDay()))%7),t}},mounted(){this.isEditMode?(this.days="02",this.hours="23",this.minutes="37",this.seconds="53"):this.setTimer()},beforeDestroy(){this.clearIntervalData()}},dh=n=>(lr("data-v-2efc004b"),n=n(),cr(),n),fz={class:"timer-box"},hz={class:"main-box"},pz={class:"timer-inner"},mz=dh(()=>b("span",{class:"timer-text"},"day(s)",-1)),gz={class:"main-box"},_z={class:"timer-inner"},yz=dh(()=>b("span",{class:"timer-text"},"Hour(s)",-1)),bz={class:"main-box"},vz={class:"timer-inner"},xz=dh(()=>b("span",{class:"timer-text"},"Minute(s)",-1)),wz={key:0,class:"main-box"},kz={class:"timer-inner"},Cz=dh(()=>b("span",{class:"timer-text"},"Second(s)",-1));function Sz(n,t,e,i,r,s){return S(),A("div",fz,[b("div",hz,[b("div",pz,_(r.days),1),mz]),b("div",gz,[b("div",_z,_(r.hours),1),yz]),b("div",bz,[b("div",vz,_(r.minutes),1),xz]),e.timerObject.is_include_second?(S(),A("div",wz,[b("div",kz,_(r.seconds),1),Cz])):R("",!0)])}const Tz=Nt(uz,[["render",Sz],["__scopeId","data-v-2efc004b"]]);var J_={exports:{}},Q4=function(t,e){return function(){for(var r=new Array(arguments.length),s=0;s"u"}function Oz(n){return n!==null&&!bg(n)&&n.constructor!==null&&!bg(n.constructor)&&typeof n.constructor.isBuffer=="function"&&n.constructor.isBuffer(n)}function $4(n){return to.call(n)==="[object ArrayBuffer]"}function Az(n){return to.call(n)==="[object FormData]"}function Dz(n){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(n):t=n&&n.buffer&&$4(n.buffer),t}function Mz(n){return typeof n=="string"}function Pz(n){return typeof n=="number"}function e3(n){return n!==null&&typeof n=="object"}function wu(n){if(to.call(n)!=="[object Object]")return!1;var t=Object.getPrototypeOf(n);return t===null||t===Object.prototype}function Nz(n){return to.call(n)==="[object Date]"}function Iz(n){return to.call(n)==="[object File]"}function Rz(n){return to.call(n)==="[object Blob]"}function t3(n){return to.call(n)==="[object Function]"}function Bz(n){return e3(n)&&t3(n.pipe)}function Lz(n){return to.call(n)==="[object URLSearchParams]"}function Fz(n){return n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function qz(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function X_(n,t){if(!(n===null||typeof n>"u"))if(typeof n!="object"&&(n=[n]),Z_(n))for(var e=0,i=n.length;e"u"||(Sa.isArray(c)?d=d+"[]":c=[c],Sa.forEach(c,function(h){Sa.isDate(h)?h=h.toISOString():Sa.isObject(h)&&(h=JSON.stringify(h)),s.push(m2(d)+"="+m2(h))}))}),r=s.join("&")}if(r){var o=t.indexOf("#");o!==-1&&(t=t.slice(0,o)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Uz=si;function uh(){this.handlers=[]}uh.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1};uh.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};uh.prototype.forEach=function(t){Uz.forEach(this.handlers,function(i){i!==null&&t(i)})};var Vz=uh,jz=si,Wz=function(t,e){jz.forEach(t,function(r,s){s!==e&&s.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[s])})},i3=function(t,e,i,r,s){return t.config=e,i&&(t.code=i),t.request=r,t.response=s,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},gm,g2;function r3(){if(g2)return gm;g2=1;var n=i3;return gm=function(e,i,r,s,o){var a=new Error(e);return n(a,i,r,s,o)},gm}var _m,_2;function Kz(){if(_2)return _m;_2=1;var n=r3();return _m=function(e,i,r){var s=r.config.validateStatus;!r.status||!s||s(r.status)?e(r):i(n("Request failed with status code "+r.status,r.config,null,r.request,r))},_m}var ym,y2;function Gz(){if(y2)return ym;y2=1;var n=si;return ym=n.isStandardBrowserEnv()?function(){return{write:function(i,r,s,o,a,c){var d=[];d.push(i+"="+encodeURIComponent(r)),n.isNumber(s)&&d.push("expires="+new Date(s).toGMTString()),n.isString(o)&&d.push("path="+o),n.isString(a)&&d.push("domain="+a),c===!0&&d.push("secure"),document.cookie=d.join("; ")},read:function(i){var r=document.cookie.match(new RegExp("(^|;\\s*)("+i+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(i){this.write(i,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),ym}var bm,b2;function Yz(){return b2||(b2=1,bm=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}),bm}var vm,v2;function Jz(){return v2||(v2=1,vm=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}),vm}var xm,x2;function Zz(){if(x2)return xm;x2=1;var n=Yz(),t=Jz();return xm=function(i,r){return i&&!n(r)?t(i,r):r},xm}var wm,w2;function Xz(){if(w2)return wm;w2=1;var n=si,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return wm=function(i){var r={},s,o,a;return i&&n.forEach(i.split(` `),function(d){if(a=d.indexOf(":"),s=n.trim(d.substr(0,a)).toLowerCase(),o=n.trim(d.substr(a+1)),s){if(r[s]&&t.indexOf(s)>=0)return;s==="set-cookie"?r[s]=(r[s]?r[s]:[]).concat([o]):r[s]=r[s]?r[s]+", "+o:o}}),r},wm}var km,k2;function Qz(){if(k2)return km;k2=1;var n=si;return km=n.isStandardBrowserEnv()?function(){var e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a"),r;function s(o){var a=o;return e&&(i.setAttribute("href",a),a=i.href),i.setAttribute("href",a),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:i.pathname.charAt(0)==="/"?i.pathname:"/"+i.pathname}}return r=s(window.location.href),function(a){var c=n.isString(a)?s(a):a;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}(),km}var Cm,C2;function fh(){if(C2)return Cm;C2=1;function n(t){this.message=t}return n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,Cm=n,Cm}var Sm,S2;function T2(){if(S2)return Sm;S2=1;var n=si,t=Kz(),e=Gz(),i=n3,r=Zz(),s=Xz(),o=Qz(),a=r3(),c=hh(),d=fh();return Sm=function(h){return new Promise(function(m,y){var k=h.data,C=h.headers,T=h.responseType,w;function O(){h.cancelToken&&h.cancelToken.unsubscribe(w),h.signal&&h.signal.removeEventListener("abort",w)}n.isFormData(k)&&delete C["Content-Type"];var x=new XMLHttpRequest;if(h.auth){var L=h.auth.username||"",M=h.auth.password?unescape(encodeURIComponent(h.auth.password)):"";C.Authorization="Basic "+btoa(L+":"+M)}var B=r(h.baseURL,h.url);x.open(h.method.toUpperCase(),i(B,h.params,h.paramsSerializer),!0),x.timeout=h.timeout;function D(){if(x){var I="getAllResponseHeaders"in x?s(x.getAllResponseHeaders()):null,q=!T||T==="text"||T==="json"?x.responseText:x.response,H={data:q,status:x.status,statusText:x.statusText,headers:I,config:h,request:x};t(function(Y){m(Y),O()},function(Y){y(Y),O()},H),x=null}}if("onloadend"in x?x.onloadend=D:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(D)},x.onabort=function(){x&&(y(a("Request aborted",h,"ECONNABORTED",x)),x=null)},x.onerror=function(){y(a("Network Error",h,null,x)),x=null},x.ontimeout=function(){var q=h.timeout?"timeout of "+h.timeout+"ms exceeded":"timeout exceeded",H=h.transitional||c.transitional;h.timeoutErrorMessage&&(q=h.timeoutErrorMessage),y(a(q,h,H.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",x)),x=null},n.isStandardBrowserEnv()){var F=(h.withCredentials||o(B))&&h.xsrfCookieName?e.read(h.xsrfCookieName):void 0;F&&(C[h.xsrfHeaderName]=F)}"setRequestHeader"in x&&n.forEach(C,function(q,H){typeof k>"u"&&H.toLowerCase()==="content-type"?delete C[H]:x.setRequestHeader(H,q)}),n.isUndefined(h.withCredentials)||(x.withCredentials=!!h.withCredentials),T&&T!=="json"&&(x.responseType=h.responseType),typeof h.onDownloadProgress=="function"&&x.addEventListener("progress",h.onDownloadProgress),typeof h.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",h.onUploadProgress),(h.cancelToken||h.signal)&&(w=function(I){x&&(y(!I||I&&I.type?new d("canceled"):I),x.abort(),x=null)},h.cancelToken&&h.cancelToken.subscribe(w),h.signal&&(h.signal.aborted?w():h.signal.addEventListener("abort",w))),k||(k=null),x.send(k)})},Sm}var Tm,E2;function hh(){if(E2)return Tm;E2=1;var n=si,t=Wz,e=i3,i={"Content-Type":"application/x-www-form-urlencoded"};function r(c,d){!n.isUndefined(c)&&n.isUndefined(c["Content-Type"])&&(c["Content-Type"]=d)}function s(){var c;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(c=T2()),c}function o(c,d,f){if(n.isString(c))try{return(d||JSON.parse)(c),n.trim(c)}catch(h){if(h.name!=="SyntaxError")throw h}return(f||JSON.stringify)(c)}var a={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:s(),transformRequest:[function(d,f){return t(f,"Accept"),t(f,"Content-Type"),n.isFormData(d)||n.isArrayBuffer(d)||n.isBuffer(d)||n.isStream(d)||n.isFile(d)||n.isBlob(d)?d:n.isArrayBufferView(d)?d.buffer:n.isURLSearchParams(d)?(r(f,"application/x-www-form-urlencoded;charset=utf-8"),d.toString()):n.isObject(d)||f&&f["Content-Type"]==="application/json"?(r(f,"application/json"),o(d)):d}],transformResponse:[function(d){var f=this.transitional||a.transitional,h=f&&f.silentJSONParsing,g=f&&f.forcedJSONParsing,m=!h&&this.responseType==="json";if(m||g&&n.isString(d)&&d.length)try{return JSON.parse(d)}catch(y){if(m)throw y.name==="SyntaxError"?e(y,this,"E_JSON_PARSE"):y}return d}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(d){return d>=200&&d<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};return n.forEach(["delete","get","head"],function(d){a.headers[d]={}}),n.forEach(["post","put","patch"],function(d){a.headers[d]=n.merge(i)}),Tm=a,Tm}var $z=si,eU=hh(),tU=function(t,e,i){var r=this||eU;return $z.forEach(i,function(o){t=o.call(r,t,e)}),t},Em,O2;function s3(){return O2||(O2=1,Em=function(t){return!!(t&&t.__CANCEL__)}),Em}var A2=si,Om=tU,nU=s3(),iU=hh(),rU=fh();function Am(n){if(n.cancelToken&&n.cancelToken.throwIfRequested(),n.signal&&n.signal.aborted)throw new rU("canceled")}var sU=function(t){Am(t),t.headers=t.headers||{},t.data=Om.call(t,t.data,t.headers,t.transformRequest),t.headers=A2.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),A2.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var e=t.adapter||iU.adapter;return e(t).then(function(r){return Am(t),r.data=Om.call(t,r.data,r.headers,t.transformResponse),r},function(r){return nU(r)||(Am(t),r&&r.response&&(r.response.data=Om.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},fi=si,o3=function(t,e){e=e||{};var i={};function r(f,h){return fi.isPlainObject(f)&&fi.isPlainObject(h)?fi.merge(f,h):fi.isPlainObject(h)?fi.merge({},h):fi.isArray(h)?h.slice():h}function s(f){if(fi.isUndefined(e[f])){if(!fi.isUndefined(t[f]))return r(void 0,t[f])}else return r(t[f],e[f])}function o(f){if(!fi.isUndefined(e[f]))return r(void 0,e[f])}function a(f){if(fi.isUndefined(e[f])){if(!fi.isUndefined(t[f]))return r(void 0,t[f])}else return r(void 0,e[f])}function c(f){if(f in e)return r(t[f],e[f]);if(f in t)return r(void 0,t[f])}var d={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c};return fi.forEach(Object.keys(t).concat(Object.keys(e)),function(h){var g=d[h]||s,m=g(h);fi.isUndefined(m)&&g!==c||(i[h]=m)}),i},Dm,D2;function a3(){return D2||(D2=1,Dm={version:"0.25.0"}),Dm}var oU=a3().version,Q_={};["object","boolean","number","function","string","symbol"].forEach(function(n,t){Q_[n]=function(i){return typeof i===n||"a"+(t<1?"n ":" ")+n}});var M2={};Q_.transitional=function(t,e,i){function r(s,o){return"[Axios v"+oU+"] Transitional option '"+s+"'"+o+(i?". "+i:"")}return function(s,o,a){if(t===!1)throw new Error(r(o," has been removed"+(e?" in "+e:"")));return e&&!M2[o]&&(M2[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),t?t(s,o,a):!0}};function aU(n,t,e){if(typeof n!="object")throw new TypeError("options must be an object");for(var i=Object.keys(n),r=i.length;r-- >0;){var s=i[r],o=t[s];if(o){var a=n[s],c=a===void 0||o(a,s,n);if(c!==!0)throw new TypeError("option "+s+" must be "+c);continue}if(e!==!0)throw Error("Unknown option "+s)}}var lU={assertOptions:aU,validators:Q_},l3=si,cU=n3,P2=Vz,N2=sU,ph=o3,c3=lU,Ta=c3.validators;function ed(n){this.defaults=n,this.interceptors={request:new P2,response:new P2}}ed.prototype.request=function(t,e){if(typeof t=="string"?(e=e||{},e.url=t):e=t||{},!e.url)throw new Error("Provided config url is not valid");e=ph(this.defaults,e),e.method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i=e.transitional;i!==void 0&&c3.assertOptions(i,{silentJSONParsing:Ta.transitional(Ta.boolean),forcedJSONParsing:Ta.transitional(Ta.boolean),clarifyTimeoutError:Ta.transitional(Ta.boolean)},!1);var r=[],s=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(e)===!1||(s=s&&m.synchronous,r.unshift(m.fulfilled,m.rejected))});var o=[];this.interceptors.response.forEach(function(m){o.push(m.fulfilled,m.rejected)});var a;if(!s){var c=[N2,void 0];for(Array.prototype.unshift.apply(c,r),c=c.concat(o),a=Promise.resolve(e);c.length;)a=a.then(c.shift(),c.shift());return a}for(var d=e;r.length;){var f=r.shift(),h=r.shift();try{d=f(d)}catch(g){h(g);break}}try{a=N2(d)}catch(g){return Promise.reject(g)}for(;o.length;)a=a.then(o.shift(),o.shift());return a};ed.prototype.getUri=function(t){if(!t.url)throw new Error("Provided config url is not valid");return t=ph(this.defaults,t),cU(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};l3.forEach(["delete","get","head","options"],function(t){ed.prototype[t]=function(e,i){return this.request(ph(i||{},{method:t,url:e,data:(i||{}).data}))}});l3.forEach(["post","put","patch"],function(t){ed.prototype[t]=function(e,i,r){return this.request(ph(r||{},{method:t,url:e,data:i}))}});var dU=ed,Mm,I2;function uU(){if(I2)return Mm;I2=1;var n=fh();function t(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var i;this.promise=new Promise(function(o){i=o});var r=this;this.promise.then(function(s){if(r._listeners){var o,a=r._listeners.length;for(o=0;o{this.timer=n.data.data.ut}):this.is_edit_mode=!0}};function vU(n,t,e,i,r,s){const o=at("universal-timer");return S(),A("section",{class:X(["d-flex justify-content-center py-2",e.dynamicClass])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+" .timer-box{ margin-top:0px } ."+_(e.dynamicClass)+" .timer-inner{ width:unset !important; padding:2px 9px; background-color:"+_(s.background_color)+" !important; color:"+_(s.color)+" !important; font-size:"+_(e.element.desktop_font_size)+"px !important; } ."+_(e.dynamicClass)+" .timer-text{ color:"+_(s.bold_color)+" !important; font-size:"+_(e.element.padding_top)+"px !important; } @media screen and (min-width: 0px) and (max-width: 480px){ ."+_(e.dynamicClass)+" .timer-inner{ font-size: "+_(e.element.mobile_font_size)+"px!important; } ."+_(e.dynamicClass)+" .timer-text{ color:"+_(s.bold_color)+" !important; font-size:"+_(e.element.padding_top)+"px !important; } } ",1)]),_:1})),r.timer?(S(),qe(o,{key:0,timerObject:r.timer,isEditMode:r.is_edit_mode,class:"sectionTimer"},null,8,["timerObject","isEditMode"])):R("",!0)],2)}const xU=Nt(bU,[["render",vU],["__scopeId","data-v-49c7bcbb"]]);const wU={props:{element:{type:Object},dynamicClass:{require:!0}},data(){return{video_url:null}},computed:{allowWorld(){if(this.element.video_type=="vimeo"&&this.element.is_autoplay)return"autoplay";this.element.video_type=="youtube"&&this.element.is_autoplay}},methods:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge},updateVideoUrl(){if(this.element.video_url&&this.element.video_type)if(this.element.video_type=="vimeo")this.video_url=`https:${this.getVimeoId(this.element.video_url)}?autoplay=${this.element.is_autoplay?1:0}`;else if(this.element.video_type=="youtube")console.log(this.video_url,"dd"),this.video_url=`https://www.youtube.com/embed/${this.getYoutubeId(this.element.video_url)}?autoplay=${this.element.is_autoplay?1:0}&rel=0&controls=${this.element.is_control?1:0}&mute=${this.element.is_autoplay?1:0}`;else{let n=document.getElementById(this.dynamicClass+"-video-preview");if(n){const t=document.createRange().createContextualFragment(this.element.video_url);n.append(t)}}},getYoutubeId(n){if(n){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,e=n.match(t);return e&&e[2].length===11?e[2]:null}},getVimeoId(n){if(n){var t=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(\S+)/g,e=/(?:http?s?:\/\/)?(?:www\.)?(?:player\.vimeo\.com)\/?(\S+)/g;if(e.test(n)){var n=n.replace("https:","");return n}else if(t.test(n)){var i="//player.vimeo.com/video/$1",n=n.replace(t,i);return n}}}},mounted(){this.updateVideoUrl()}},kU={key:0,class:"w-100"},CU={class:"video-box position-relative",style:{"padding-bottom":"56.25%"}},SU=["src","allow"],TU=["id"];function EU(n,t,e,i,r,s){return S(),A("div",{class:X(["video-container",[e.dynamicClass,s.shadowClass(),s.boxClasses(),s.borderClass()]]),style:ke(`width:${e.element.video_width}%`)},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".video-container{ padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; background-color:"+_(e.element.background_color)+"; } ",1)]),_:1})),(e.element.video_type=="vimeo"||e.element.video_type=="youtube")&&e.element.video_url?(S(),A("div",kU,[b("div",CU,[b("iframe",{class:"custom-iframe",src:r.video_url,frameborder:"0",allow:s.allowWorld,allowfullscreen:""},` `,8,SU)])])):R("",!0),b("div",{id:`${e.dynamicClass}-video-preview`,class:"w-100"},null,8,TU)],6)}const OU=Nt(wU,[["render",EU],["__scopeId","data-v-dc5a9cb7"]]);const AU={},DU={id:"loading"};function MU(n,t){return S(),A("div",DU)}const Gs=Nt(AU,[["render",MU]]);var u3={exports:{}};function PU(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Im={exports:{}};const NU={},IU=Object.freeze(Object.defineProperty({__proto__:null,default:NU},Symbol.toStringTag,{value:"Module"})),RU=iz(IU);var F2;function vt(){return F2||(F2=1,function(n,t){(function(e,i){n.exports=i()})($e,function(){var e=e||function(i,r){var s;if(typeof window<"u"&&window.crypto&&(s=window.crypto),typeof self<"u"&&self.crypto&&(s=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(s=globalThis.crypto),!s&&typeof window<"u"&&window.msCrypto&&(s=window.msCrypto),!s&&typeof $e<"u"&&$e.crypto&&(s=$e.crypto),!s&&typeof PU=="function")try{s=RU}catch{}var o=function(){if(s){if(typeof s.getRandomValues=="function")try{return s.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof s.randomBytes=="function")try{return s.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(O){var x;return w.prototype=O,x=new w,w.prototype=null,x}}(),c={},d=c.lib={},f=d.Base=function(){return{extend:function(w){var O=a(this);return w&&O.mixIn(w),(!O.hasOwnProperty("init")||this.init===O.init)&&(O.init=function(){O.$super.init.apply(this,arguments)}),O.init.prototype=O,O.$super=this,O},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var O in w)w.hasOwnProperty(O)&&(this[O]=w[O]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=d.WordArray=f.extend({init:function(w,O){w=this.words=w||[],O!=r?this.sigBytes=O:this.sigBytes=w.length*4},toString:function(w){return(w||m).stringify(this)},concat:function(w){var O=this.words,x=w.words,L=this.sigBytes,M=w.sigBytes;if(this.clamp(),L%4)for(var B=0;B>>2]>>>24-B%4*8&255;O[L+B>>>2]|=D<<24-(L+B)%4*8}else for(var F=0;F>>2]=x[F>>>2];return this.sigBytes+=M,this},clamp:function(){var w=this.words,O=this.sigBytes;w[O>>>2]&=4294967295<<32-O%4*8,w.length=i.ceil(O/4)},clone:function(){var w=f.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var O=[],x=0;x>>2]>>>24-M%4*8&255;L.push((B>>>4).toString(16)),L.push((B&15).toString(16))}return L.join("")},parse:function(w){for(var O=w.length,x=[],L=0;L>>3]|=parseInt(w.substr(L,2),16)<<24-L%8*4;return new h.init(x,O/2)}},y=g.Latin1={stringify:function(w){for(var O=w.words,x=w.sigBytes,L=[],M=0;M>>2]>>>24-M%4*8&255;L.push(String.fromCharCode(B))}return L.join("")},parse:function(w){for(var O=w.length,x=[],L=0;L>>2]|=(w.charCodeAt(L)&255)<<24-L%4*8;return new h.init(x,O)}},k=g.Utf8={stringify:function(w){try{return decodeURIComponent(escape(y.stringify(w)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(w){return y.parse(unescape(encodeURIComponent(w)))}},C=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=k.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var O,x=this._data,L=x.words,M=x.sigBytes,B=this.blockSize,D=B*4,F=M/D;w?F=i.ceil(F):F=i.max((F|0)-this._minBufferSize,0);var I=F*B,q=i.min(I*4,M);if(I){for(var H=0;H>>2]|=c[h]<<24-h%4*8;o.call(this,f,d)}else o.apply(this,arguments)};a.prototype=s}}(),e.lib.WordArray})}(Bm)),Bm.exports}var Lm={exports:{}},z2;function LU(){return z2||(z2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=i.enc;o.Utf16=o.Utf16BE={stringify:function(c){for(var d=c.words,f=c.sigBytes,h=[],g=0;g>>2]>>>16-g%4*8&65535;h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var d=c.length,f=[],h=0;h>>1]|=c.charCodeAt(h)<<16-h%2*16;return s.create(f,d*2)}},o.Utf16LE={stringify:function(c){for(var d=c.words,f=c.sigBytes,h=[],g=0;g>>2]>>>16-g%4*8&65535);h.push(String.fromCharCode(m))}return h.join("")},parse:function(c){for(var d=c.length,f=[],h=0;h>>1]|=a(c.charCodeAt(h)<<16-h%2*16);return s.create(f,d*2)}};function a(c){return c<<8&4278255360|c>>>8&16711935}}(),e.enc.Utf16})}(Lm)),Lm.exports}var Fm={exports:{}},U2;function yl(){return U2||(U2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=i.enc;o.Base64={stringify:function(c){var d=c.words,f=c.sigBytes,h=this._map;c.clamp();for(var g=[],m=0;m>>2]>>>24-m%4*8&255,k=d[m+1>>>2]>>>24-(m+1)%4*8&255,C=d[m+2>>>2]>>>24-(m+2)%4*8&255,T=y<<16|k<<8|C,w=0;w<4&&m+w*.75>>6*(3-w)&63));var O=h.charAt(64);if(O)for(;g.length%4;)g.push(O);return g.join("")},parse:function(c){var d=c.length,f=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var g=0;g>>6-m%4*2,C=y|k;h[g>>>2]|=C<<24-g%4*8,g++}return s.create(h,g)}}(),e.enc.Base64})}(Fm)),Fm.exports}var qm={exports:{}},V2;function FU(){return V2||(V2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=i.enc;o.Base64url={stringify:function(c,d=!0){var f=c.words,h=c.sigBytes,g=d?this._safe_map:this._map;c.clamp();for(var m=[],y=0;y>>2]>>>24-y%4*8&255,C=f[y+1>>>2]>>>24-(y+1)%4*8&255,T=f[y+2>>>2]>>>24-(y+2)%4*8&255,w=k<<16|C<<8|T,O=0;O<4&&y+O*.75>>6*(3-O)&63));var x=g.charAt(64);if(x)for(;m.length%4;)m.push(x);return m.join("")},parse:function(c,d=!0){var f=c.length,h=d?this._safe_map:this._map,g=this._reverseMap;if(!g){g=this._reverseMap=[];for(var m=0;m>>6-m%4*2,C=y|k;h[g>>>2]|=C<<24-g%4*8,g++}return s.create(h,g)}}(),e.enc.Base64url})}(qm)),qm.exports}var Hm={exports:{}},j2;function bl(){return j2||(j2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(i){var r=e,s=r.lib,o=s.WordArray,a=s.Hasher,c=r.algo,d=[];(function(){for(var k=0;k<64;k++)d[k]=i.abs(i.sin(k+1))*4294967296|0})();var f=c.MD5=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(k,C){for(var T=0;T<16;T++){var w=C+T,O=k[w];k[w]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360}var x=this._hash.words,L=k[C+0],M=k[C+1],B=k[C+2],D=k[C+3],F=k[C+4],I=k[C+5],q=k[C+6],H=k[C+7],W=k[C+8],Y=k[C+9],_e=k[C+10],he=k[C+11],ye=k[C+12],pe=k[C+13],Ne=k[C+14],Be=k[C+15],Z=x[0],te=x[1],re=x[2],se=x[3];Z=h(Z,te,re,se,L,7,d[0]),se=h(se,Z,te,re,M,12,d[1]),re=h(re,se,Z,te,B,17,d[2]),te=h(te,re,se,Z,D,22,d[3]),Z=h(Z,te,re,se,F,7,d[4]),se=h(se,Z,te,re,I,12,d[5]),re=h(re,se,Z,te,q,17,d[6]),te=h(te,re,se,Z,H,22,d[7]),Z=h(Z,te,re,se,W,7,d[8]),se=h(se,Z,te,re,Y,12,d[9]),re=h(re,se,Z,te,_e,17,d[10]),te=h(te,re,se,Z,he,22,d[11]),Z=h(Z,te,re,se,ye,7,d[12]),se=h(se,Z,te,re,pe,12,d[13]),re=h(re,se,Z,te,Ne,17,d[14]),te=h(te,re,se,Z,Be,22,d[15]),Z=g(Z,te,re,se,M,5,d[16]),se=g(se,Z,te,re,q,9,d[17]),re=g(re,se,Z,te,he,14,d[18]),te=g(te,re,se,Z,L,20,d[19]),Z=g(Z,te,re,se,I,5,d[20]),se=g(se,Z,te,re,_e,9,d[21]),re=g(re,se,Z,te,Be,14,d[22]),te=g(te,re,se,Z,F,20,d[23]),Z=g(Z,te,re,se,Y,5,d[24]),se=g(se,Z,te,re,Ne,9,d[25]),re=g(re,se,Z,te,D,14,d[26]),te=g(te,re,se,Z,W,20,d[27]),Z=g(Z,te,re,se,pe,5,d[28]),se=g(se,Z,te,re,B,9,d[29]),re=g(re,se,Z,te,H,14,d[30]),te=g(te,re,se,Z,ye,20,d[31]),Z=m(Z,te,re,se,I,4,d[32]),se=m(se,Z,te,re,W,11,d[33]),re=m(re,se,Z,te,he,16,d[34]),te=m(te,re,se,Z,Ne,23,d[35]),Z=m(Z,te,re,se,M,4,d[36]),se=m(se,Z,te,re,F,11,d[37]),re=m(re,se,Z,te,H,16,d[38]),te=m(te,re,se,Z,_e,23,d[39]),Z=m(Z,te,re,se,pe,4,d[40]),se=m(se,Z,te,re,L,11,d[41]),re=m(re,se,Z,te,D,16,d[42]),te=m(te,re,se,Z,q,23,d[43]),Z=m(Z,te,re,se,Y,4,d[44]),se=m(se,Z,te,re,ye,11,d[45]),re=m(re,se,Z,te,Be,16,d[46]),te=m(te,re,se,Z,B,23,d[47]),Z=y(Z,te,re,se,L,6,d[48]),se=y(se,Z,te,re,H,10,d[49]),re=y(re,se,Z,te,Ne,15,d[50]),te=y(te,re,se,Z,I,21,d[51]),Z=y(Z,te,re,se,ye,6,d[52]),se=y(se,Z,te,re,D,10,d[53]),re=y(re,se,Z,te,_e,15,d[54]),te=y(te,re,se,Z,M,21,d[55]),Z=y(Z,te,re,se,W,6,d[56]),se=y(se,Z,te,re,Be,10,d[57]),re=y(re,se,Z,te,q,15,d[58]),te=y(te,re,se,Z,pe,21,d[59]),Z=y(Z,te,re,se,F,6,d[60]),se=y(se,Z,te,re,he,10,d[61]),re=y(re,se,Z,te,B,15,d[62]),te=y(te,re,se,Z,Y,21,d[63]),x[0]=x[0]+Z|0,x[1]=x[1]+te|0,x[2]=x[2]+re|0,x[3]=x[3]+se|0},_doFinalize:function(){var k=this._data,C=k.words,T=this._nDataBytes*8,w=k.sigBytes*8;C[w>>>5]|=128<<24-w%32;var O=i.floor(T/4294967296),x=T;C[(w+64>>>9<<4)+15]=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,C[(w+64>>>9<<4)+14]=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,k.sigBytes=(C.length+1)*4,this._process();for(var L=this._hash,M=L.words,B=0;B<4;B++){var D=M[B];M[B]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return L},clone:function(){var k=a.clone.call(this);return k._hash=this._hash.clone(),k}});function h(k,C,T,w,O,x,L){var M=k+(C&T|~C&w)+O+L;return(M<>>32-x)+C}function g(k,C,T,w,O,x,L){var M=k+(C&w|T&~w)+O+L;return(M<>>32-x)+C}function m(k,C,T,w,O,x,L){var M=k+(C^T^w)+O+L;return(M<>>32-x)+C}function y(k,C,T,w,O,x,L){var M=k+(T^(C|~w))+O+L;return(M<>>32-x)+C}r.MD5=a._createHelper(f),r.HmacMD5=a._createHmacHelper(f)}(Math),e.MD5})}(Hm)),Hm.exports}var zm={exports:{}},W2;function $_(){return W2||(W2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=r.Hasher,a=i.algo,c=[],d=a.SHA1=o.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,h){for(var g=this._hash.words,m=g[0],y=g[1],k=g[2],C=g[3],T=g[4],w=0;w<80;w++){if(w<16)c[w]=f[h+w]|0;else{var O=c[w-3]^c[w-8]^c[w-14]^c[w-16];c[w]=O<<1|O>>>31}var x=(m<<5|m>>>27)+T+c[w];w<20?x+=(y&k|~y&C)+1518500249:w<40?x+=(y^k^C)+1859775393:w<60?x+=(y&k|y&C|k&C)-1894007588:x+=(y^k^C)-899497514,T=C,C=k,k=y<<30|y>>>2,y=m,m=x}g[0]=g[0]+m|0,g[1]=g[1]+y|0,g[2]=g[2]+k|0,g[3]=g[3]+C|0,g[4]=g[4]+T|0},_doFinalize:function(){var f=this._data,h=f.words,g=this._nDataBytes*8,m=f.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=Math.floor(g/4294967296),h[(m+64>>>9<<4)+15]=g,f.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});i.SHA1=o._createHelper(d),i.HmacSHA1=o._createHmacHelper(d)}(),e.SHA1})}(zm)),zm.exports}var Um={exports:{}},K2;function f3(){return K2||(K2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){return function(i){var r=e,s=r.lib,o=s.WordArray,a=s.Hasher,c=r.algo,d=[],f=[];(function(){function m(T){for(var w=i.sqrt(T),O=2;O<=w;O++)if(!(T%O))return!1;return!0}function y(T){return(T-(T|0))*4294967296|0}for(var k=2,C=0;C<64;)m(k)&&(C<8&&(d[C]=y(i.pow(k,1/2))),f[C]=y(i.pow(k,1/3)),C++),k++})();var h=[],g=c.SHA256=a.extend({_doReset:function(){this._hash=new o.init(d.slice(0))},_doProcessBlock:function(m,y){for(var k=this._hash.words,C=k[0],T=k[1],w=k[2],O=k[3],x=k[4],L=k[5],M=k[6],B=k[7],D=0;D<64;D++){if(D<16)h[D]=m[y+D]|0;else{var F=h[D-15],I=(F<<25|F>>>7)^(F<<14|F>>>18)^F>>>3,q=h[D-2],H=(q<<15|q>>>17)^(q<<13|q>>>19)^q>>>10;h[D]=I+h[D-7]+H+h[D-16]}var W=x&L^~x&M,Y=C&T^C&w^T&w,_e=(C<<30|C>>>2)^(C<<19|C>>>13)^(C<<10|C>>>22),he=(x<<26|x>>>6)^(x<<21|x>>>11)^(x<<7|x>>>25),ye=B+he+W+f[D]+h[D],pe=_e+Y;B=M,M=L,L=x,x=O+ye|0,O=w,w=T,T=C,C=ye+pe|0}k[0]=k[0]+C|0,k[1]=k[1]+T|0,k[2]=k[2]+w|0,k[3]=k[3]+O|0,k[4]=k[4]+x|0,k[5]=k[5]+L|0,k[6]=k[6]+M|0,k[7]=k[7]+B|0},_doFinalize:function(){var m=this._data,y=m.words,k=this._nDataBytes*8,C=m.sigBytes*8;return y[C>>>5]|=128<<24-C%32,y[(C+64>>>9<<4)+14]=i.floor(k/4294967296),y[(C+64>>>9<<4)+15]=k,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});r.SHA256=a._createHelper(g),r.HmacSHA256=a._createHmacHelper(g)}(Math),e.SHA256})}(Um)),Um.exports}var Vm={exports:{}},G2;function qU(){return G2||(G2=1,function(n,t){(function(e,i,r){n.exports=i(vt(),f3())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=i.algo,a=o.SHA256,c=o.SHA224=a.extend({_doReset:function(){this._hash=new s.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=a._doFinalize.call(this);return d.sigBytes-=4,d}});i.SHA224=a._createHelper(c),i.HmacSHA224=a._createHmacHelper(c)}(),e.SHA224})}(Vm)),Vm.exports}var jm={exports:{}},Y2;function h3(){return Y2||(Y2=1,function(n,t){(function(e,i,r){n.exports=i(vt(),mh())})($e,function(e){return function(){var i=e,r=i.lib,s=r.Hasher,o=i.x64,a=o.Word,c=o.WordArray,d=i.algo;function f(){return a.create.apply(a,arguments)}var h=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],g=[];(function(){for(var y=0;y<80;y++)g[y]=f()})();var m=d.SHA512=s.extend({_doReset:function(){this._hash=new c.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(y,k){for(var C=this._hash.words,T=C[0],w=C[1],O=C[2],x=C[3],L=C[4],M=C[5],B=C[6],D=C[7],F=T.high,I=T.low,q=w.high,H=w.low,W=O.high,Y=O.low,_e=x.high,he=x.low,ye=L.high,pe=L.low,Ne=M.high,Be=M.low,Z=B.high,te=B.low,re=D.high,se=D.low,Ge=F,Ye=I,xt=q,Ie=H,Kt=W,Bt=Y,$t=_e,en=he,U=ye,V=pe,$=Ne,le=Be,ie=Z,me=te,ve=re,ue=se,de=0;de<80;de++){var oe,xe,Ce=g[de];if(de<16)xe=Ce.high=y[k+de*2]|0,oe=Ce.low=y[k+de*2+1]|0;else{var Ee=g[de-15],Le=Ee.high,Ve=Ee.low,tt=(Le>>>1|Ve<<31)^(Le>>>8|Ve<<24)^Le>>>7,ht=(Ve>>>1|Le<<31)^(Ve>>>8|Le<<24)^(Ve>>>7|Le<<25),_t=g[de-2],Lt=_t.high,cn=_t.low,ur=(Lt>>>19|cn<<13)^(Lt<<3|cn>>>29)^Lt>>>6,ee=(cn>>>19|Lt<<13)^(cn<<3|Lt>>>29)^(cn>>>6|Lt<<26),Se=g[de-7],Ae=Se.high,Je=Se.low,nt=g[de-16],tn=nt.high,mn=nt.low;oe=ht+Je,xe=tt+Ae+(oe>>>0>>0?1:0),oe=oe+ee,xe=xe+ur+(oe>>>0>>0?1:0),oe=oe+mn,xe=xe+tn+(oe>>>0>>0?1:0),Ce.high=xe,Ce.low=oe}var Ki=U&$^~U&ie,rs=V&le^~V&me,Gi=Ge&xt^Ge&Kt^xt&Kt,no=Ye&Ie^Ye&Bt^Ie&Bt,ss=(Ge>>>28|Ye<<4)^(Ge<<30|Ye>>>2)^(Ge<<25|Ye>>>7),Yi=(Ye>>>28|Ge<<4)^(Ye<<30|Ge>>>2)^(Ye<<25|Ge>>>7),sa=(U>>>14|V<<18)^(U>>>18|V<<14)^(U<<23|V>>>9),io=(V>>>14|U<<18)^(V>>>18|U<<14)^(V<<23|U>>>9),Pr=h[de],_h=Pr.high,oa=Pr.low,Ln=ue+io,Si=ve+sa+(Ln>>>0>>0?1:0),Ln=Ln+rs,Si=Si+Ki+(Ln>>>0>>0?1:0),Ln=Ln+oa,Si=Si+_h+(Ln>>>0>>0?1:0),Ln=Ln+oe,Si=Si+xe+(Ln>>>0>>0?1:0),td=Yi+no,yh=ss+Gi+(td>>>0>>0?1:0);ve=ie,ue=me,ie=$,me=le,$=U,le=V,V=en+Ln|0,U=$t+Si+(V>>>0>>0?1:0)|0,$t=Kt,en=Bt,Kt=xt,Bt=Ie,xt=Ge,Ie=Ye,Ye=Ln+td|0,Ge=Si+yh+(Ye>>>0>>0?1:0)|0}I=T.low=I+Ye,T.high=F+Ge+(I>>>0>>0?1:0),H=w.low=H+Ie,w.high=q+xt+(H>>>0>>0?1:0),Y=O.low=Y+Bt,O.high=W+Kt+(Y>>>0>>0?1:0),he=x.low=he+en,x.high=_e+$t+(he>>>0>>0?1:0),pe=L.low=pe+V,L.high=ye+U+(pe>>>0>>0?1:0),Be=M.low=Be+le,M.high=Ne+$+(Be>>>0>>0?1:0),te=B.low=te+me,B.high=Z+ie+(te>>>0>>0?1:0),se=D.low=se+ue,D.high=re+ve+(se>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,k=y.words,C=this._nDataBytes*8,T=y.sigBytes*8;k[T>>>5]|=128<<24-T%32,k[(T+128>>>10<<5)+30]=Math.floor(C/4294967296),k[(T+128>>>10<<5)+31]=C,y.sigBytes=k.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var y=s.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});i.SHA512=s._createHelper(m),i.HmacSHA512=s._createHmacHelper(m)}(),e.SHA512})}(jm)),jm.exports}var Wm={exports:{}},J2;function HU(){return J2||(J2=1,function(n,t){(function(e,i,r){n.exports=i(vt(),mh(),h3())})($e,function(e){return function(){var i=e,r=i.x64,s=r.Word,o=r.WordArray,a=i.algo,c=a.SHA512,d=a.SHA384=c.extend({_doReset:function(){this._hash=new o.init([new s.init(3418070365,3238371032),new s.init(1654270250,914150663),new s.init(2438529370,812702999),new s.init(355462360,4144912697),new s.init(1731405415,4290775857),new s.init(2394180231,1750603025),new s.init(3675008525,1694076839),new s.init(1203062813,3204075428)])},_doFinalize:function(){var f=c._doFinalize.call(this);return f.sigBytes-=16,f}});i.SHA384=c._createHelper(d),i.HmacSHA384=c._createHmacHelper(d)}(),e.SHA384})}(Wm)),Wm.exports}var Km={exports:{}},Z2;function zU(){return Z2||(Z2=1,function(n,t){(function(e,i,r){n.exports=i(vt(),mh())})($e,function(e){return function(i){var r=e,s=r.lib,o=s.WordArray,a=s.Hasher,c=r.x64,d=c.Word,f=r.algo,h=[],g=[],m=[];(function(){for(var C=1,T=0,w=0;w<24;w++){h[C+5*T]=(w+1)*(w+2)/2%64;var O=T%5,x=(2*C+3*T)%5;C=O,T=x}for(var C=0;C<5;C++)for(var T=0;T<5;T++)g[C+5*T]=T+(2*C+3*T)%5*5;for(var L=1,M=0;M<24;M++){for(var B=0,D=0,F=0;F<7;F++){if(L&1){var I=(1<>>24)&16711935|(L<<24|L>>>8)&4278255360,M=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360;var B=w[x];B.high^=M,B.low^=L}for(var D=0;D<24;D++){for(var F=0;F<5;F++){for(var I=0,q=0,H=0;H<5;H++){var B=w[F+5*H];I^=B.high,q^=B.low}var W=y[F];W.high=I,W.low=q}for(var F=0;F<5;F++)for(var Y=y[(F+4)%5],_e=y[(F+1)%5],he=_e.high,ye=_e.low,I=Y.high^(he<<1|ye>>>31),q=Y.low^(ye<<1|he>>>31),H=0;H<5;H++){var B=w[F+5*H];B.high^=I,B.low^=q}for(var pe=1;pe<25;pe++){var I,q,B=w[pe],Ne=B.high,Be=B.low,Z=h[pe];Z<32?(I=Ne<>>32-Z,q=Be<>>32-Z):(I=Be<>>64-Z,q=Ne<>>64-Z);var te=y[g[pe]];te.high=I,te.low=q}var re=y[0],se=w[0];re.high=se.high,re.low=se.low;for(var F=0;F<5;F++)for(var H=0;H<5;H++){var pe=F+5*H,B=w[pe],Ge=y[pe],Ye=y[(F+1)%5+5*H],xt=y[(F+2)%5+5*H];B.high=Ge.high^~Ye.high&xt.high,B.low=Ge.low^~Ye.low&xt.low}var B=w[0],Ie=m[D];B.high^=Ie.high,B.low^=Ie.low}},_doFinalize:function(){var C=this._data,T=C.words;this._nDataBytes*8;var w=C.sigBytes*8,O=this.blockSize*32;T[w>>>5]|=1<<24-w%32,T[(i.ceil((w+1)/O)*O>>>5)-1]|=128,C.sigBytes=T.length*4,this._process();for(var x=this._state,L=this.cfg.outputLength/8,M=L/8,B=[],D=0;D>>24)&16711935|(I<<24|I>>>8)&4278255360,q=(q<<8|q>>>24)&16711935|(q<<24|q>>>8)&4278255360,B.push(q),B.push(I)}return new o.init(B,L)},clone:function(){for(var C=a.clone.call(this),T=C._state=this._state.slice(0),w=0;w<25;w++)T[w]=T[w].clone();return C}});r.SHA3=a._createHelper(k),r.HmacSHA3=a._createHmacHelper(k)}(Math),e.SHA3})}(Km)),Km.exports}var Gm={exports:{}},X2;function UU(){return X2||(X2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */return function(i){var r=e,s=r.lib,o=s.WordArray,a=s.Hasher,c=r.algo,d=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),f=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),g=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),m=o.create([0,1518500249,1859775393,2400959708,2840853838]),y=o.create([1352829926,1548603684,1836072691,2053994217,0]),k=c.RIPEMD160=a.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(M,B){for(var D=0;D<16;D++){var F=B+D,I=M[F];M[F]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var q=this._hash.words,H=m.words,W=y.words,Y=d.words,_e=f.words,he=h.words,ye=g.words,pe,Ne,Be,Z,te,re,se,Ge,Ye,xt;re=pe=q[0],se=Ne=q[1],Ge=Be=q[2],Ye=Z=q[3],xt=te=q[4];for(var Ie,D=0;D<80;D+=1)Ie=pe+M[B+Y[D]]|0,D<16?Ie+=C(Ne,Be,Z)+H[0]:D<32?Ie+=T(Ne,Be,Z)+H[1]:D<48?Ie+=w(Ne,Be,Z)+H[2]:D<64?Ie+=O(Ne,Be,Z)+H[3]:Ie+=x(Ne,Be,Z)+H[4],Ie=Ie|0,Ie=L(Ie,he[D]),Ie=Ie+te|0,pe=te,te=Z,Z=L(Be,10),Be=Ne,Ne=Ie,Ie=re+M[B+_e[D]]|0,D<16?Ie+=x(se,Ge,Ye)+W[0]:D<32?Ie+=O(se,Ge,Ye)+W[1]:D<48?Ie+=w(se,Ge,Ye)+W[2]:D<64?Ie+=T(se,Ge,Ye)+W[3]:Ie+=C(se,Ge,Ye)+W[4],Ie=Ie|0,Ie=L(Ie,ye[D]),Ie=Ie+xt|0,re=xt,xt=Ye,Ye=L(Ge,10),Ge=se,se=Ie;Ie=q[1]+Be+Ye|0,q[1]=q[2]+Z+xt|0,q[2]=q[3]+te+re|0,q[3]=q[4]+pe+se|0,q[4]=q[0]+Ne+Ge|0,q[0]=Ie},_doFinalize:function(){var M=this._data,B=M.words,D=this._nDataBytes*8,F=M.sigBytes*8;B[F>>>5]|=128<<24-F%32,B[(F+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,M.sigBytes=(B.length+1)*4,this._process();for(var I=this._hash,q=I.words,H=0;H<5;H++){var W=q[H];q[H]=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360}return I},clone:function(){var M=a.clone.call(this);return M._hash=this._hash.clone(),M}});function C(M,B,D){return M^B^D}function T(M,B,D){return M&B|~M&D}function w(M,B,D){return(M|~B)^D}function O(M,B,D){return M&D|B&~D}function x(M,B,D){return M^(B|~D)}function L(M,B){return M<>>32-B}r.RIPEMD160=a._createHelper(k),r.HmacRIPEMD160=a._createHmacHelper(k)}(),e.RIPEMD160})}(Gm)),Gm.exports}var Ym={exports:{}},Q2;function ey(){return Q2||(Q2=1,function(n,t){(function(e,i){n.exports=i(vt())})($e,function(e){(function(){var i=e,r=i.lib,s=r.Base,o=i.enc,a=o.Utf8,c=i.algo;c.HMAC=s.extend({init:function(d,f){d=this._hasher=new d.init,typeof f=="string"&&(f=a.parse(f));var h=d.blockSize,g=h*4;f.sigBytes>g&&(f=d.finalize(f)),f.clamp();for(var m=this._oKey=f.clone(),y=this._iKey=f.clone(),k=m.words,C=y.words,T=0;T>>2]&255;I.sigBytes-=q}};s.BlockCipher=m.extend({cfg:m.cfg.extend({mode:C,padding:w}),reset:function(){var I;m.reset.call(this);var q=this.cfg,H=q.iv,W=q.mode;this._xformMode==this._ENC_XFORM_MODE?I=W.createEncryptor:(I=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,H&&H.words):(this._mode=I.call(W,this,H&&H.words),this._mode.__creator=I)},_doProcessBlock:function(I,q){this._mode.processBlock(I,q)},_doFinalize:function(){var I,q=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(q.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),q.unpad(I)),I},blockSize:128/32});var O=s.CipherParams=o.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),x=r.format={},L=x.OpenSSL={stringify:function(I){var q,H=I.ciphertext,W=I.salt;return W?q=a.create([1398893684,1701076831]).concat(W).concat(H):q=H,q.toString(f)},parse:function(I){var q,H=f.parse(I),W=H.words;return W[0]==1398893684&&W[1]==1701076831&&(q=a.create(W.slice(2,4)),W.splice(0,4),H.sigBytes-=16),O.create({ciphertext:H,salt:q})}},M=s.SerializableCipher=o.extend({cfg:o.extend({format:L}),encrypt:function(I,q,H,W){W=this.cfg.extend(W);var Y=I.createEncryptor(H,W),_e=Y.finalize(q),he=Y.cfg;return O.create({ciphertext:_e,key:H,iv:he.iv,algorithm:I,mode:he.mode,padding:he.padding,blockSize:I.blockSize,formatter:W.format})},decrypt:function(I,q,H,W){W=this.cfg.extend(W),q=this._parse(q,W.format);var Y=I.createDecryptor(H,W).finalize(q.ciphertext);return Y},_parse:function(I,q){return typeof I=="string"?q.parse(I,this):I}}),B=r.kdf={},D=B.OpenSSL={execute:function(I,q,H,W){W||(W=a.random(64/8));var Y=g.create({keySize:q+H}).compute(I,W),_e=a.create(Y.words.slice(q),H*4);return Y.sigBytes=q*4,O.create({key:Y,iv:_e,salt:W})}},F=s.PasswordBasedCipher=M.extend({cfg:M.cfg.extend({kdf:D}),encrypt:function(I,q,H,W){W=this.cfg.extend(W);var Y=W.kdf.execute(H,I.keySize,I.ivSize);W.iv=Y.iv;var _e=M.encrypt.call(this,I,q,Y.key,W);return _e.mixIn(Y),_e},decrypt:function(I,q,H,W){W=this.cfg.extend(W),q=this._parse(q,W.format);var Y=W.kdf.execute(H,I.keySize,I.ivSize,q.salt);W.iv=Y.iv;var _e=M.decrypt.call(this,I,q,Y.key,W);return _e}})}()})}(Xm)),Xm.exports}var Qm={exports:{}},nw;function jU(){return nw||(nw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return e.mode.CFB=function(){var i=e.lib.BlockCipherMode.extend();i.Encryptor=i.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize;r.call(this,s,o,c,a),this._prevBlock=s.slice(o,o+c)}}),i.Decryptor=i.extend({processBlock:function(s,o){var a=this._cipher,c=a.blockSize,d=s.slice(o,o+c);r.call(this,s,o,c,a),this._prevBlock=d}});function r(s,o,a,c){var d,f=this._iv;f?(d=f.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var h=0;h>24&255)===255){var c=a>>16&255,d=a>>8&255,f=a&255;c===255?(c=0,d===255?(d=0,f===255?f=0:++f):++d):++c,a=0,a+=c<<16,a+=d<<8,a+=f}else a+=1<<24;return a}function s(a){return(a[0]=r(a[0]))===0&&(a[1]=r(a[1])),a}var o=i.Encryptor=i.extend({processBlock:function(a,c){var d=this._cipher,f=d.blockSize,h=this._iv,g=this._counter;h&&(g=this._counter=h.slice(0),this._iv=void 0),s(g);var m=g.slice(0);d.encryptBlock(m,0);for(var y=0;y>>2]|=a<<24-c%4*8,i.sigBytes+=a},unpad:function(i){var r=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=r}},e.pad.Ansix923})}(i0)),i0.exports}var r0={exports:{}},lw;function ZU(){return lw||(lw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return e.pad.Iso10126={pad:function(i,r){var s=r*4,o=s-i.sigBytes%s;i.concat(e.lib.WordArray.random(o-1)).concat(e.lib.WordArray.create([o<<24],1))},unpad:function(i){var r=i.words[i.sigBytes-1>>>2]&255;i.sigBytes-=r}},e.pad.Iso10126})}(r0)),r0.exports}var s0={exports:{}},cw;function XU(){return cw||(cw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return e.pad.Iso97971={pad:function(i,r){i.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(i,r)},unpad:function(i){e.pad.ZeroPadding.unpad(i),i.sigBytes--}},e.pad.Iso97971})}(s0)),s0.exports}var o0={exports:{}},dw;function QU(){return dw||(dw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return e.pad.ZeroPadding={pad:function(i,r){var s=r*4;i.clamp(),i.sigBytes+=s-(i.sigBytes%s||s)},unpad:function(i){for(var r=i.words,s=i.sigBytes-1,s=i.sigBytes-1;s>=0;s--)if(r[s>>>2]>>>24-s%4*8&255){i.sigBytes=s+1;break}}},e.pad.ZeroPadding})}(o0)),o0.exports}var a0={exports:{}},uw;function $U(){return uw||(uw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding})}(a0)),a0.exports}var l0={exports:{}},fw;function eV(){return fw||(fw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),Cn())})($e,function(e){return function(i){var r=e,s=r.lib,o=s.CipherParams,a=r.enc,c=a.Hex,d=r.format;d.Hex={stringify:function(f){return f.ciphertext.toString(c)},parse:function(f){var h=c.parse(f);return o.create({ciphertext:h})}}}(),e.format.Hex})}(l0)),l0.exports}var c0={exports:{}},hw;function tV(){return hw||(hw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),yl(),bl(),ia(),Cn())})($e,function(e){return function(){var i=e,r=i.lib,s=r.BlockCipher,o=i.algo,a=[],c=[],d=[],f=[],h=[],g=[],m=[],y=[],k=[],C=[];(function(){for(var O=[],x=0;x<256;x++)x<128?O[x]=x<<1:O[x]=x<<1^283;for(var L=0,M=0,x=0;x<256;x++){var B=M^M<<1^M<<2^M<<3^M<<4;B=B>>>8^B&255^99,a[L]=B,c[B]=L;var D=O[L],F=O[D],I=O[F],q=O[B]*257^B*16843008;d[L]=q<<24|q>>>8,f[L]=q<<16|q>>>16,h[L]=q<<8|q>>>24,g[L]=q;var q=I*16843009^F*65537^D*257^L*16843008;m[B]=q<<24|q>>>8,y[B]=q<<16|q>>>16,k[B]=q<<8|q>>>24,C[B]=q,L?(L=D^O[O[O[I^D]]],M^=O[O[M]]):L=M=1}})();var T=[0,1,2,4,8,16,32,64,128,27,54],w=o.AES=s.extend({_doReset:function(){var O;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var x=this._keyPriorReset=this._key,L=x.words,M=x.sigBytes/4,B=this._nRounds=M+6,D=(B+1)*4,F=this._keySchedule=[],I=0;I6&&I%M==4&&(O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255]):(O=O<<8|O>>>24,O=a[O>>>24]<<24|a[O>>>16&255]<<16|a[O>>>8&255]<<8|a[O&255],O^=T[I/M|0]<<24),F[I]=F[I-M]^O);for(var q=this._invKeySchedule=[],H=0;H>>24]]^y[a[O>>>16&255]]^k[a[O>>>8&255]]^C[a[O&255]]}}},encryptBlock:function(O,x){this._doCryptBlock(O,x,this._keySchedule,d,f,h,g,a)},decryptBlock:function(O,x){var L=O[x+1];O[x+1]=O[x+3],O[x+3]=L,this._doCryptBlock(O,x,this._invKeySchedule,m,y,k,C,c);var L=O[x+1];O[x+1]=O[x+3],O[x+3]=L},_doCryptBlock:function(O,x,L,M,B,D,F,I){for(var q=this._nRounds,H=O[x]^L[0],W=O[x+1]^L[1],Y=O[x+2]^L[2],_e=O[x+3]^L[3],he=4,ye=1;ye>>24]^B[W>>>16&255]^D[Y>>>8&255]^F[_e&255]^L[he++],Ne=M[W>>>24]^B[Y>>>16&255]^D[_e>>>8&255]^F[H&255]^L[he++],Be=M[Y>>>24]^B[_e>>>16&255]^D[H>>>8&255]^F[W&255]^L[he++],Z=M[_e>>>24]^B[H>>>16&255]^D[W>>>8&255]^F[Y&255]^L[he++];H=pe,W=Ne,Y=Be,_e=Z}var pe=(I[H>>>24]<<24|I[W>>>16&255]<<16|I[Y>>>8&255]<<8|I[_e&255])^L[he++],Ne=(I[W>>>24]<<24|I[Y>>>16&255]<<16|I[_e>>>8&255]<<8|I[H&255])^L[he++],Be=(I[Y>>>24]<<24|I[_e>>>16&255]<<16|I[H>>>8&255]<<8|I[W&255])^L[he++],Z=(I[_e>>>24]<<24|I[H>>>16&255]<<16|I[W>>>8&255]<<8|I[Y&255])^L[he++];O[x]=pe,O[x+1]=Ne,O[x+2]=Be,O[x+3]=Z},keySize:256/32});i.AES=s._createHelper(w)}(),e.AES})}(c0)),c0.exports}var d0={exports:{}},pw;function nV(){return pw||(pw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),yl(),bl(),ia(),Cn())})($e,function(e){return function(){var i=e,r=i.lib,s=r.WordArray,o=r.BlockCipher,a=i.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],g=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=a.DES=o.extend({_doReset:function(){for(var T=this._key,w=T.words,O=[],x=0;x<56;x++){var L=c[x]-1;O[x]=w[L>>>5]>>>31-L%32&1}for(var M=this._subKeys=[],B=0;B<16;B++){for(var D=M[B]=[],F=f[B],x=0;x<24;x++)D[x/6|0]|=O[(d[x]-1+F)%28]<<31-x%6,D[4+(x/6|0)]|=O[28+(d[x+24]-1+F)%28]<<31-x%6;D[0]=D[0]<<1|D[0]>>>31;for(var x=1;x<7;x++)D[x]=D[x]>>>(x-1)*4+3;D[7]=D[7]<<5|D[7]>>>27}for(var I=this._invSubKeys=[],x=0;x<16;x++)I[x]=M[15-x]},encryptBlock:function(T,w){this._doCryptBlock(T,w,this._subKeys)},decryptBlock:function(T,w){this._doCryptBlock(T,w,this._invSubKeys)},_doCryptBlock:function(T,w,O){this._lBlock=T[w],this._rBlock=T[w+1],y.call(this,4,252645135),y.call(this,16,65535),k.call(this,2,858993459),k.call(this,8,16711935),y.call(this,1,1431655765);for(var x=0;x<16;x++){for(var L=O[x],M=this._lBlock,B=this._rBlock,D=0,F=0;F<8;F++)D|=h[F][((B^L[F])&g[F])>>>0];this._lBlock=B,this._rBlock=M^D}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),k.call(this,8,16711935),k.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),T[w]=this._lBlock,T[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(T,w){var O=(this._lBlock>>>T^this._rBlock)&w;this._rBlock^=O,this._lBlock^=O<>>T^this._lBlock)&w;this._lBlock^=O,this._rBlock^=O<192.");var O=w.slice(0,2),x=w.length<4?w.slice(0,2):w.slice(2,4),L=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=m.createEncryptor(s.create(O)),this._des2=m.createEncryptor(s.create(x)),this._des3=m.createEncryptor(s.create(L))},encryptBlock:function(T,w){this._des1.encryptBlock(T,w),this._des2.decryptBlock(T,w),this._des3.encryptBlock(T,w)},decryptBlock:function(T,w){this._des3.decryptBlock(T,w),this._des2.encryptBlock(T,w),this._des1.decryptBlock(T,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});i.TripleDES=o._createHelper(C)}(),e.TripleDES})}(d0)),d0.exports}var u0={exports:{}},mw;function iV(){return mw||(mw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),yl(),bl(),ia(),Cn())})($e,function(e){return function(){var i=e,r=i.lib,s=r.StreamCipher,o=i.algo,a=o.RC4=s.extend({_doReset:function(){for(var f=this._key,h=f.words,g=f.sigBytes,m=this._S=[],y=0;y<256;y++)m[y]=y;for(var y=0,k=0;y<256;y++){var C=y%g,T=h[C>>>2]>>>24-C%4*8&255;k=(k+m[y]+T)%256;var w=m[y];m[y]=m[k],m[k]=w}this._i=this._j=0},_doProcessBlock:function(f,h){f[h]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var f=this._S,h=this._i,g=this._j,m=0,y=0;y<4;y++){h=(h+1)%256,g=(g+f[h])%256;var k=f[h];f[h]=f[g],f[g]=k,m|=f[(f[h]+f[g])%256]<<24-y*8}return this._i=h,this._j=g,m}i.RC4=s._createHelper(a);var d=o.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)c.call(this)}});i.RC4Drop=s._createHelper(d)}(),e.RC4})}(u0)),u0.exports}var f0={exports:{}},gw;function rV(){return gw||(gw=1,function(n,t){(function(e,i,r){n.exports=i(vt(),yl(),bl(),ia(),Cn())})($e,function(e){return function(){var i=e,r=i.lib,s=r.StreamCipher,o=i.algo,a=[],c=[],d=[],f=o.Rabbit=s.extend({_doReset:function(){for(var g=this._key.words,m=this.cfg.iv,y=0;y<4;y++)g[y]=(g[y]<<8|g[y]>>>24)&16711935|(g[y]<<24|g[y]>>>8)&4278255360;var k=this._X=[g[0],g[3]<<16|g[2]>>>16,g[1],g[0]<<16|g[3]>>>16,g[2],g[1]<<16|g[0]>>>16,g[3],g[2]<<16|g[1]>>>16],C=this._C=[g[2]<<16|g[2]>>>16,g[0]&4294901760|g[1]&65535,g[3]<<16|g[3]>>>16,g[1]&4294901760|g[2]&65535,g[0]<<16|g[0]>>>16,g[2]&4294901760|g[3]&65535,g[1]<<16|g[1]>>>16,g[3]&4294901760|g[0]&65535];this._b=0;for(var y=0;y<4;y++)h.call(this);for(var y=0;y<8;y++)C[y]^=k[y+4&7];if(m){var T=m.words,w=T[0],O=T[1],x=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,L=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=x>>>16|L&4294901760,B=L<<16|x&65535;C[0]^=x,C[1]^=M,C[2]^=L,C[3]^=B,C[4]^=x,C[5]^=M,C[6]^=L,C[7]^=B;for(var y=0;y<4;y++)h.call(this)}},_doProcessBlock:function(g,m){var y=this._X;h.call(this),a[0]=y[0]^y[5]>>>16^y[3]<<16,a[1]=y[2]^y[7]>>>16^y[5]<<16,a[2]=y[4]^y[1]>>>16^y[7]<<16,a[3]=y[6]^y[3]>>>16^y[1]<<16;for(var k=0;k<4;k++)a[k]=(a[k]<<8|a[k]>>>24)&16711935|(a[k]<<24|a[k]>>>8)&4278255360,g[m+k]^=a[k]},blockSize:128/32,ivSize:64/32});function h(){for(var g=this._X,m=this._C,y=0;y<8;y++)c[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0>>0?1:0)|0,this._b=m[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var k=g[y]+m[y],C=k&65535,T=k>>>16,w=((C*C>>>17)+C*T>>>15)+T*T,O=((k&4294901760)*k|0)+((k&65535)*k|0);d[y]=w^O}g[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,g[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,g[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,g[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,g[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,g[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,g[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,g[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.Rabbit=s._createHelper(f)}(),e.Rabbit})}(f0)),f0.exports}var h0={exports:{}},_w;function sV(){return _w||(_w=1,function(n,t){(function(e,i,r){n.exports=i(vt(),yl(),bl(),ia(),Cn())})($e,function(e){return function(){var i=e,r=i.lib,s=r.StreamCipher,o=i.algo,a=[],c=[],d=[],f=o.RabbitLegacy=s.extend({_doReset:function(){var g=this._key.words,m=this.cfg.iv,y=this._X=[g[0],g[3]<<16|g[2]>>>16,g[1],g[0]<<16|g[3]>>>16,g[2],g[1]<<16|g[0]>>>16,g[3],g[2]<<16|g[1]>>>16],k=this._C=[g[2]<<16|g[2]>>>16,g[0]&4294901760|g[1]&65535,g[3]<<16|g[3]>>>16,g[1]&4294901760|g[2]&65535,g[0]<<16|g[0]>>>16,g[2]&4294901760|g[3]&65535,g[1]<<16|g[1]>>>16,g[3]&4294901760|g[0]&65535];this._b=0;for(var C=0;C<4;C++)h.call(this);for(var C=0;C<8;C++)k[C]^=y[C+4&7];if(m){var T=m.words,w=T[0],O=T[1],x=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,L=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,M=x>>>16|L&4294901760,B=L<<16|x&65535;k[0]^=x,k[1]^=M,k[2]^=L,k[3]^=B,k[4]^=x,k[5]^=M,k[6]^=L,k[7]^=B;for(var C=0;C<4;C++)h.call(this)}},_doProcessBlock:function(g,m){var y=this._X;h.call(this),a[0]=y[0]^y[5]>>>16^y[3]<<16,a[1]=y[2]^y[7]>>>16^y[5]<<16,a[2]=y[4]^y[1]>>>16^y[7]<<16,a[3]=y[6]^y[3]>>>16^y[1]<<16;for(var k=0;k<4;k++)a[k]=(a[k]<<8|a[k]>>>24)&16711935|(a[k]<<24|a[k]>>>8)&4278255360,g[m+k]^=a[k]},blockSize:128/32,ivSize:64/32});function h(){for(var g=this._X,m=this._C,y=0;y<8;y++)c[y]=m[y];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0>>0?1:0)|0,this._b=m[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var k=g[y]+m[y],C=k&65535,T=k>>>16,w=((C*C>>>17)+C*T>>>15)+T*T,O=((k&4294901760)*k|0)+((k&65535)*k|0);d[y]=w^O}g[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,g[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,g[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,g[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,g[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,g[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,g[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,g[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}i.RabbitLegacy=s._createHelper(f)}(),e.RabbitLegacy})}(h0)),h0.exports}(function(n,t){(function(e,i,r){n.exports=i(vt(),mh(),BU(),LU(),yl(),FU(),bl(),$_(),f3(),qU(),h3(),HU(),zU(),UU(),ey(),VU(),ia(),Cn(),jU(),WU(),KU(),GU(),YU(),JU(),ZU(),XU(),QU(),$U(),eV(),tV(),nV(),iV(),rV(),sV())})($e,function(e){return e})})(u3);var oV=u3.exports;const hc=X4(oV);const aV={props:{element:{require:!0},dynamicClass:{require:!0},product:{require:!1},stepData:{require:!1},nextPageUrl:{require:!1},salesFunnel:{require:!0},salesPage:{require:!1},type:{require:!1},orderFormCheck:{require:!1},nextSuccessUrl:{require:!1},nextNoThankYouUrl:{require:!1},tid:{require:!1},payment_plan:{require:!1},payment_option:{require:!1}},emits:["scrollToOrderForm","openPoup"],components:{loader:Gs},computed:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},getActiveVarient(){if(this.element&&this.element.varients&&this.element.varients[this.activeVarient])return this.element.varients[this.activeVarient]}},data(){return{icon:Vu,loader:!1,payment_mode:"stripe",isPopupisOpenVarient:!1,modelShowVarient:!1,selectedVarients:[],isAllSelected:!1,addtionalPrice:0,combination:{},activeVarient:0,isLoaded:!0}},methods:{font_family(n){if(n){let t=this.icon.find(e=>e.code==n);if(t)return`'Font Awesome 5 ${t.type=="brand"?"Brands":"Free"}'`}},getProductAttributeName(){if(this.getActiveVarient&&this.product&&this.product.attributes){let n=this.product.attributes.find(t=>t.id==this.getActiveVarient.attribute_id);return n?n.name:void 0}},getProductAttributeVarients(n){if(this.getActiveVarient&&this.product&&this.product.attributes){let t=this.product.attributes.find(e=>e.id==this.getActiveVarient.attribute_id);return t?t.variants:[]}},getAttibuteSubHedline(){let n=this.element.varients;if(console.log(n,"sdsdsd"),n&&n[this.activeVarient])return n[this.activeVarient].sub_headline},async manageClick(){if(this.stepData&&this.element.is_activate_attribute&&this.element.varients&&this.element.varients.length&&!this.isAllSelected){this.modelShowVarient=!0,setTimeout(()=>{this.isPopupisOpenVarient=!0},100);return}if(this.element.action_type=="open_popup"&&this.$emit("openPoup"),this.loader=!0,this.type=="salesPage"){let n={type:"salesPage",sales_page_id:this.salesPage.id,tid:this.tid};await Ke.post("/api/sale-page/add-click",n),await Ke.post("/api/sale-page/add-click-all",n)}else if(this.stepData){let n={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,sales_page_id:this.stepData.sales_page_id,tid:this.tid};await Ke.post("/api/sale-page/add-click",n),await Ke.post("/api/sale-page/add-click-all",n)}this.loader=!1,this.element.action_type=="purchase_product"||this.element.action_type=="next_step"?this.product&&this.product.id&&this.stepData&&(this.stepData.type=="upsale"||this.stepData.type=="downsale")?(this.salesFunnel&&this.salesFunnel.payment_type&&(this.payment_mode=this.salesFunnel.payment_type),window.localStorage.getItem("customer")&&(this.payment_mode=="stripe"?this.makeStripePayment():(this.payment_mode=="epd"||this.payment_mode=="nmi")&&this.makeEPDPayment())):this.product&&this.product.id&&this.stepData&&this.stepData.type==="sales_page"&&this.stepData.sales_funnel_id&&this.orderFormCheck?window.location.href=`${window.location.origin}/checkout/orderForm/${this.product.id}/${this.stepData.sales_funnel_id}/${this.stepData.id}`:this.gotonext():this.element.action_type=="redirect_url"?this.element.redirect_url!="null"&&this.element.redirect_url&&(this.element.redirect_type=="new_tab"?window.open(this.element.redirect_url,"_blank"):window.location.href=this.element.redirect_url):this.element.action_type=="scroll_top"?window.scrollTo({top:0,behavior:"smooth"}):this.element.action_type=="scroll_to_orderForm"&&this.$emit("scrollToOrderForm")},async gotonext(){if(this.type=="salesPage"){let n={type:"salesPage",sales_page_id:this.salesPage.id};await Ke.post("/api/sale-page/add-click",n),await Ke.post("/api/sale-page/add-click-all",n)}else if(this.stepData){let n={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,sales_page_id:this.stepData.sales_page_id};await Ke.post("/api/sale-page/add-click",n),await Ke.post("/api/sale-page/add-click-all",n)}this.nextNoThankYouUrl&&this.stepData?window.location.href=this.nextNoThankYouUrl:window.location.href=this.nextPageUrl},verifyOrder(n,t){let e={payment_int_id:n,order_id:t,type:this.stepData&&this.stepData.id?"funnelStep":"salesPage",currentStep:this.stepData&&this.stepData.id?this.stepData.id:null,sales_funnel_id:this.stepData&&this.stepData.sales_funnel_id?this.stepData.sales_funnel_id:null};this.stepData&&this.stepData.id&&(e.type="salesFunnel",e.sales_funnel_id=this.stepData.sales_funnel_id),this.loader=!0,Ke.post("/api/payment/verify-order",e).then(i=>{this.loader=!1,this.nextSuccessUrl?window.location.href=this.nextSuccessUrl:window.location.href=this.nextPageUrl}).catch(i=>{this.loader=!1})},createOrder(n=null){let t={user_id:this.product.user_id,customer_id:window.localStorage.getItem("customer"),product_id:this.product.id,sales_funnel_id:this.stepData?this.stepData.sales_funnel_id:null,type:"salesFunnel",sub_type:this.stepData.type,funnel_step_id:this.stepData?this.stepData.id:null,sales_page_id:this.stepData?this.stepData.sales_page_id:null,amount:this.addtionalPrice?this.addtionalPrice:this.product.price,description:this.product.name,sku:this.combination&&this.combination.code?this.combination.code:this.product.product_slug,product_combination_id:this.combination&&this.combination.id?this.combination.id:null,product_varinent_name:this.combination&&this.combination.features?this.combination.features:null,payment_type:this.payment_mode,tid:this.tid,...n};return this.payment_option&&this.payment_plan&&this.payment_mode=="epd"&&(t.payment_mode="subscription",t.billing_type=this.payment_option.billing_period,t.sub_id=this.payment_option.id,t.sub_price=this.payment_option.amount,t.amount=this.addtionalPrice?this.addtionalPrice:this.payment_option.amount),Ke.post("/api/payment/create-order",t)},makeSubcrptionStripe(){let n={user_id:this.product.user_id,customer_id:window.localStorage.getItem("customer"),product_id:this.product.id,sales_funnel_id:this.stepData?this.stepData.sales_funnel_id:null,type:"salesFunnel",sub_type:this.stepData.type,funnel_step_id:this.stepData?this.stepData.id:null,sales_page_id:this.stepData?this.stepData.sales_page_id:null,amount:this.addtionalPrice?this.addtionalPrice:this.product.price,description:this.product.name,sku:this.combination&&this.combination.code?this.combination.code:this.product.product_slug,payment_type:this.payment_mode,product_name:this.product.name,tid:this.tid};this.payment_option&&this.payment_plan&&(n.payment_mode="subscription",n.billing_type=this.payment_option.billing_period,n.sub_id=this.payment_option.id,n.sub_price=this.payment_option.amount,n.amount=this.addtionalPrice?this.addtionalPrice:this.payment_option.amount),this.stepData&&this.stepData.sales_page_id==662&&(n.is_split_payment=!0,n.splits_count=3),this.loader=!0,Ke.post("/api/payment/create-subscrition-order",n).then(t=>{t.data.status?(this.loader=!1,this.nextSuccessUrl?window.location.href=this.nextSuccessUrl:window.location.href=this.nextPageUrl):(this.loader=!1,alert("payment failed"))})},makeStripePayment(){if(this.payment_option&&this.payment_plan){this.makeSubcrptionStripe();return}this.loader=!0;let n=this;this.createOrder().then(t=>{let e=t.data.data.order,i={customer_id:window.localStorage.getItem("customer"),order_id:e.unique_id,amount:this.addtionalPrice?this.addtionalPrice:this.product.price,product_amout:this.addtionalPrice?this.addtionalPrice:this.product.price,user_id:this.product.user_id,sales_funnel_id:this.stepData.sales_funnel_id,sales_page_id:this.stepData.sales_page_id,description:this.product.name,type:"salesFunnel"};Ke.post("/api/payment/get-payment-intenent",i).then(r=>{if(this.loader=!1,r.data.status){let s=r.data.data.data,o=s.setupIntents.client_secret,a=s.token,c=s.pubKey,d=Stripe(c);n.loader=!0,d.confirmPayment({clientSecret:o,confirmParams:{payment_method:a},redirect:"if_required"}).then(function(f){console.log(f),f.error?n.loader=!1:f.paymentIntent&&f.paymentIntent.status=="succeeded"?n.verifyOrder(s.setupIntents.id,e.unique_id):n.loader=!1})}}).catch(r=>{this.loader=!1})}).catch(t=>{this.loader=!1})},checkJson(n){try{JSON.parse(n.toString(hc.enc.Utf8))}catch{return!1}return!0},getCookie(n){let t=n+"=",i=decodeURIComponent(document.cookie).split(";");for(let r=0;r{if(this.loader=!1,r.data.status){this.nextSuccessUrl?window.location.href=this.nextSuccessUrl:window.location.href=this.nextPageUrl;return}else alert("payment failed")}).catch(r=>{this.loader=!1,console.log(r,"error")})}}}},selectVarients(n){if(this.element.varients.length!=this.selectedVarients.length&&this.selectedVarients.push(n),this.element.varients.length-1!=this.activeVarient)this.isLoaded=!1,setTimeout(()=>{this.isLoaded=!0},50),this.activeVarient++;else{this.isAllSelected=!0,this.selectedVarients.sort((r,s)=>r.attribute_id-s.attribute_id);let t=this.product.product_combinations,e=this.selectedVarients.map(r=>r.name?r.name.toLowerCase().replace(/\s/g,""):null),i=t.find(r=>r.slug==this.product.id+"~"+e.join("~"));i&&(this.addtionalPrice=i.price+i.shipping_cost,this.combination=i),this.manageClick()}}},mounted(){}},lV=n=>(lr("data-v-dfa1474f"),n=n(),cr(),n),cV=["disabled"],dV={key:0,class:"button-icon-start"},uV={class:"main-heading-button"},fV={key:1,class:"button-icon-end"},hV={class:"sub-heading-button"},pV={class:"top-headline-popup"},mV={key:0,class:"middle-headline-popup"},gV=lV(()=>b("hr",{class:"mb-2"},null,-1)),_V={class:"ml-3"},yV={class:"attribute-name"},bV={key:0,class:"button-box mt-2"},vV=["onClick","disabled"];function xV(n,t,e,i,r,s){const o=at("loader");return S(),A(He,null,[b("button",{class:X(["button-element position-relative",[e.dynamicClass,e.element.button_shadow,e.element.bg_style,e.element.vertical_space,e.element.horizontal_space,s.shadowClass,e.element.border_type,e.element.border_radius,e.element.radius_edge,e.element.button_effect]]),onClick:t[0]||(t[0]=(...a)=>s.manageClick&&s.manageClick(...a)),disabled:r.loader},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".button-element{ font-family: "+_(e.element.font_family)+"; background-color: "+_(e.element.background_color)+"; color: "+_(e.element.color)+"; text-decoration: none; text-transform:"+_(e.element.text_transformation)+"; padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; text-transform:"+_(e.element.text_transformation)+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; letter-spacing:"+_(e.element.letter_spacing)+"; font-weight: bold; width:"+_(e.element.width)+"%; } ."+_(e.dynamicClass)+".button-element .main-heading-button ,."+_(e.dynamicClass)+".button-element .button-icon-start,."+_(e.dynamicClass)+".button-element .button-icon-end{ font-size: "+_(e.element.desktop_font_size)+"px; } ."+_(e.dynamicClass)+".button-element .sub-heading-button{ font-size: "+_(e.element.sub_desktop_font_size)+"px; color: "+_(e.element.sub_text_color)+"; } ."+_(e.dynamicClass)+".button-element .button-icon-start:before { font-family: "+_(s.font_family(e.element.icon_name))+"; font-weight: bold; content: '\\"+_(e.element.icon_name?e.element.icon_name:" ")+"'; } ."+_(e.dynamicClass)+".button-element .button-icon-end:before { font-family: "+_(s.font_family(e.element.icon_after_name))+"; font-weight: bold; content: '\\"+_(e.element.icon_after_name?e.element.icon_after_name:" ")+"'; } @media screen and (min-width: 0px) and (max-width: 480px){ ."+_(e.dynamicClass)+".button-element .main-heading-button ,."+_(e.dynamicClass)+".button-element .button-icon-start,."+_(e.dynamicClass)+".button-element .button-icon-end{ font-size: "+_(e.element.mobile_font_size)+"px!important; } ."+_(e.dynamicClass)+".button-element .sub-heading-button{ font-size: "+_(e.element.sub_mobile_font_size)+"px; } } .button-element{ cursor:pointer } ."+_(e.dynamicClass)+"-no-thank-you{ margin-top:16px; font-size: "+_(e.element.link_text_size)+"px; color: "+_(e.element.link_color)+"; font-family:"+_(e.element.font_family)+"; } ",1)]),_:1})),b("div",{class:"main-heading-group",style:ke({opacity:r.loader?0:1})},[e.element.icon_name?(S(),A("div",dV)):R("",!0),b("div",uV,_(e.element.text_data),1),e.element.icon_after_name?(S(),A("div",fV)):R("",!0)],4),b("div",{class:"text-xs font-sans",style:ke({opacity:r.loader?0:1})},[b("div",hV,_(e.element.sub_text),1)],4),r.loader?(S(),qe(o,{key:0,class:"button-loader"})):R("",!0)],10,cV),e.element.is_nothankyou?(S(),A("div",{key:0,class:X(["no-thankyou-box",[`${e.dynamicClass}-no-thank-you`]]),onClick:t[1]||(t[1]=a=>s.gotonext())},[b("p",null,_(e.element.link_text),1)],2)):R("",!0),r.modelShowVarient?(S(),A("div",{key:1,id:"overlay",class:X(["--desktop",r.isPopupisOpenVarient?"show z-index-3":""]),style:ke([{display:"block"},"background-color:rgba(0,0,0,0.5)"])},[b("div",{class:X(["popup-body hl_main_popup none noBorder radius2 none page-wrapper p-0",r.isPopupisOpenVarient?"show":""]),style:{width:"500px","border-radius":"6px"}},[b("div",{class:"p-2",style:ke(r.loader?"opacity:0.2":"")},[b("h1",pV,_(e.element.attribute_headline),1),r.isLoaded?(S(),A("h3",mV,_(s.getAttibuteSubHedline()),1)):R("",!0),gV,b("div",null,[b("div",_V,[b("div",yV,_(s.getProductAttributeName()),1),r.isLoaded?(S(),A("div",bV,[(S(!0),A(He,null,bt(s.getProductAttributeVarients(),(a,c)=>(S(),A("button",{key:c,onClick:d=>s.selectVarients(a),disabled:r.loader},_(a.name),9,vV))),128))])):R("",!0)])])],4),r.loader?(S(),qe(o,{key:0,class:"button-loader model-loader"})):R("",!0)],2)],6)):R("",!0)],64)}const wV=Nt(aV,[["render",xV],["__scopeId","data-v-dfa1474f"]]);const kV={props:{element:{type:Object},loader:{type:Boolean},customer:{type:Object},countries:{type:Array},states:{type:Array},salesFunnel:{type:Object}},components:{Spinnerloader:Gs},data(){return{validation:{first_name:{is_required_error:!1},last_name:{is_required_error:!1},email:{is_required_error:!1,is_email_error:!1},phone:{is_required_error:!1},terms_and_condition:{is_required_error:!1}},flagCount:0,errorFlags:[],phoneInput:null,phoneError:null,terms_and_conditions:!1}},methods:{updatePrice(n){this.$emit("updatePrice",n)},isEmail(n){var t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;return t.test(n)},isValidate(){if(this.flagCount=0,this.element.first_name&&this.element.first_name.is_show&&this.element.first_name.is_required&&!this.customer.first_name.trim()?(this.validation.first_name.is_required_error=!0,this.flagCount++):this.validation.first_name.is_required_error=!1,this.element.last_name&&this.element.last_name.is_show&&this.element.last_name.is_required&&!this.customer.last_name.trim()?(this.validation.last_name.is_required_error=!0,this.flagCount++):this.validation.last_name.is_required_error=!1,this.element.email&&this.element.email.is_show&&this.element.email.is_required&&!this.customer.email.trim()?(this.validation.email.is_required_error=!0,this.flagCount++):(this.validation.email.is_required_error=!1,this.isEmail(this.customer.email)?this.validation.email.is_email_error=!1:(this.validation.email.is_email_error=!0,this.flagCount++)),this.element.phone&&this.element.phone.is_show&&this.element.phone.is_required&&!this.customer.phone.trim())this.phoneError=null,this.validation.phone.is_required_error=!0,this.flagCount++;else if(this.phoneInput){const n=["Invalid number","Invalid country code","Number too short","Number too long","Invalid number"];if(this.customer.phone.trim(),this.phoneInput.isValidNumber())this.customer.phone=this.phoneInput.getNumber(intlTelInputUtils.numberFormat.NATIONAL),this.phoneError=null,this.validation.phone.is_required_error=!1;else{const e=this.phoneInput.getValidationError();e&&(this.validation.phone.is_required_error=!1,this.phoneError=n[e]??"Unexpected Format",this.flagCount++)}}else this.phoneError=null,this.validation.phone.is_required_error=!1;return this.element.is_terms_and_condition&&!this.terms_and_conditions?(this.validation.terms_and_condition.is_required_error=!0,this.flagCount++):this.validation.terms_and_condition.is_required_error=!1,this.flagCount==0},addCustomer(){if(this.phoneInput){const n=this.phoneInput.getSelectedCountryData();n&&(this.customer.country_code=n.dialCode)}console.log(this.isValidate()),this.isValidate()&&this.$emit("customerAdded",this.customer)},setupPhoneInput(){if(this.$refs&&this.$refs.phoneNumber){const n=this.$refs.phoneNumber;if(n){if(this.phoneInput=window.intlTelInput(n,{autoPlaceholder:"aggressive",utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",preferredCountries:["us","ca","gb","ie","ai","nz"]}),this.customer.country_code){const e=window.intlTelInputGlobals.getCountryData().find(i=>i.dialCode==this.customer.country_code);e&&this.phoneInput.setCountry(e.iso2)}this.phoneInput&&document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`)&&(document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`).tabIndex=-1)}}}},mounted(){setTimeout(()=>{this.setupPhoneInput()},100)}},CV={key:0,class:"order-form-input mb-0"},SV={id:"shipping"},TV={key:0,class:"tw-space-y-2 input-mb"},EV={class:"tw-flex tw-flex-col tw-justify-between"},OV=["placeholder"],AV={key:0,class:"shake invalid-field-text"},DV={key:1,class:"tw-space-y-2 input-mb"},MV={class:"tw-flex tw-flex-col tw-justify-between"},PV=["placeholder"],NV={key:0,class:"shake invalid-field-text"},IV={key:2,class:"tw-space-y-2 input-mb"},RV={class:"tw-flex tw-flex-col"},BV=["placeholder"],LV={key:0,class:"shake invalid-field-text"},FV={key:1,class:"shake invalid-field-text"},qV=["id"],HV={class:"tw-flex tw-flex-col"},zV=["placeholder"],UV={key:0,class:"shake invalid-field-text"},VV={key:1,class:"shake invalid-field-text"},jV={key:0,class:"col-12 hl-app"},WV={class:"f-even form-field-container"},KV={class:"form-builder--item"},GV={class:"terms-and-conditions"},YV={style:{"margin-left":"10px"},for:"terms_and_conditions_b3mpb7w3as"},JV={style:{color:"#000000"}},ZV={class:"mb-0"},XV={key:0,class:"shake invalid-field-text"},QV=["disabled"],$V={key:0},ej={class:"end-btn-top mb-0"},tj={key:1,class:"order-form-input mb-0"},nj={id:"shipping"},ij={key:0,class:"tw-space-y-2 input-mb"},rj={class:"tw-flex mb-2"},sj=["placeholder"],oj=["disabled"],aj={key:0},lj=["innerHTML"],cj={key:0,class:"shake invalid-field-text"},dj={key:1,class:"shake invalid-field-text"},uj={key:0,class:"col-12 hl-app"},fj={class:"f-even form-field-container"},hj={class:"form-builder--item"},pj={class:"terms-and-conditions"},mj={style:{"margin-left":"10px"},for:"terms_and_conditions_b3mpb7w3as"},gj={style:{color:"#000000"}},_j={class:"mb-0"},yj={key:0,class:"shake invalid-field-text"};function bj(n,t,e,i,r,s){const o=at("Spinnerloader");return e.element.form_type=="full"?(S(),A("div",CV,[b("section",SV,[b("section",null,[e.element.first_name&&e.element.first_name.is_show?(S(),A("div",TV,[b("section",EV,[Re(b("input",{placeholder:e.element.first_name.placeholder,type:"text","onUpdate:modelValue":t[0]||(t[0]=a=>e.customer.first_name=a),class:X(["input-field tw-text-[#666666] tw-bg-white tw-rounded-[5px] tw-text-sm tw-py-[12px] tw-px-[18px] tw-w-full tw-m-0",{"invalid-field-border":r.validation.first_name.is_required_error}])},null,10,OV),[[wt,e.customer.first_name]]),r.validation.first_name.is_required_error?(S(),A("span",AV,"This field is required")):R("",!0)])])):R("",!0),e.element.last_name&&e.element.last_name.is_show?(S(),A("div",DV,[b("section",MV,[Re(b("input",{placeholder:e.element.last_name.placeholder,type:"text","onUpdate:modelValue":t[1]||(t[1]=a=>e.customer.last_name=a),class:X(["input-field tw-text-[#666666] tw-bg-white tw-rounded-[5px] tw-text-sm tw-border-[#CACACA] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.last_name.is_required_error}])},null,10,PV),[[wt,e.customer.last_name]]),r.validation.last_name.is_required_error?(S(),A("span",NV,"This field is required")):R("",!0)])])):R("",!0),e.element.email&&e.element.email.is_show?(S(),A("div",IV,[b("div",RV,[Re(b("input",{placeholder:e.element.email.placeholder,type:"email","onUpdate:modelValue":t[2]||(t[2]=a=>e.customer.email=a),class:X(["input-field tw-text-[#666666] tw-bg-white tw-rounded-[5px] tw-text-sm tw-border-[#CACACA] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.email.is_required_error}])},null,10,BV),[[wt,e.customer.email]]),r.validation.email.is_required_error?(S(),A("span",LV,"This field is required")):R("",!0),r.validation.email.is_email_error?(S(),A("span",FV,"Please enter valid email")):R("",!0)])])):R("",!0),e.element.phone&&e.element.phone.is_show?(S(),A("div",{key:3,class:"tw-space-y-2 input-mb",id:`phone-number-${e.element.id}`},[b("div",HV,[Re(b("input",{ref:"phoneNumber",placeholder:e.element.phone.placeholder,type:"text","onUpdate:modelValue":t[3]||(t[3]=a=>e.customer.phone=a),class:X(["input-field tw-text-[#666666] tw-bg-white tw-rounded-[5px] tw-text-sm tw-border-[#CACACA] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.phone.is_required_error||r.phoneError}])},null,10,zV),[[wt,e.customer.phone]]),r.validation.phone.is_required_error?(S(),A("span",UV,"This field is required")):R("",!0),r.phoneError?(S(),A("span",VV,_(r.phoneError),1)):R("",!0)])],8,qV)):R("",!0)])]),e.element.is_terms_and_condition?(S(),A("div",jV,[b("div",WV,[b("div",KV,[b("div",GV,[Re(b("input",{id:"terms_and_conditions_b3mpb7w3as","onUpdate:modelValue":t[4]||(t[4]=a=>r.terms_and_conditions=a),value:"terms_and_conditions",name:"terms_and_conditions form-check-input",type:"checkbox","data-q":"terms_and_conditions","data-required":"true"},null,512),[[rr,r.terms_and_conditions]]),b("span",YV,[b("span",JV,[b("p",ZV,_(e.element.terms_and_condition),1)])])])]),r.validation.terms_and_condition.is_required_error?(S(),A("span",XV,"Please accept the terms and conditions")):R("",!0)])])):R("",!0),b("button",{class:X(["end-btn contact-button w-100",[e.loader?"opacity-7":"",e.element.button_type=="square"?"button-squre":e.element.button_type=="round"?"button-round":""]]),onClick:t[5]||(t[5]=a=>s.addCustomer()),disabled:e.loader},[e.loader?R("",!0):(S(),A("div",$V,[b("p",ej,_(e.element.button_text),1)])),e.loader?(S(),qe(o,{key:1})):R("",!0)],10,QV)])):(S(),A("div",tj,[b("section",nj,[e.element.email&&e.element.email.is_show?(S(),A("div",ij,[b("div",rj,[Re(b("input",{placeholder:e.element.email.placeholder,type:"email","onUpdate:modelValue":t[6]||(t[6]=a=>e.customer.email=a),class:X(["input-field tw-text-[#666666] tw-bg-white tw-rounded-[5px] tw-text-sm tw-border-[#CACACA] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.email.is_required_error}])},null,10,sj),[[wt,e.customer.email]]),b("button",{class:X(["end-btn contact-button min-width-167 ml-3 mt-0",[e.loader?"opacity-7":"",e.element.button_type=="square"?"button-squre":e.element.button_type=="round"?"button-round":""]]),onClick:t[7]||(t[7]=a=>s.addCustomer()),disabled:e.loader},[e.loader?R("",!0):(S(),A("div",aj,[b("p",{class:"end-btn-top mb-0",innerHTML:e.element.button_text},null,8,lj)])),e.loader?(S(),qe(o,{key:1})):R("",!0)],10,oj)]),r.validation.email.is_required_error?(S(),A("span",cj,"This field is required")):R("",!0),r.validation.email.is_email_error?(S(),A("span",dj,"Please enter valid email")):R("",!0)])):R("",!0)]),e.element.is_terms_and_condition?(S(),A("div",uj,[b("div",fj,[b("div",hj,[b("div",pj,[Re(b("input",{id:"terms_and_conditions_b3mpb7w3as","onUpdate:modelValue":t[8]||(t[8]=a=>r.terms_and_conditions=a),value:"terms_and_conditions",name:"terms_and_conditions form-check-input",type:"checkbox","data-q":"terms_and_conditions","data-required":"true"},null,512),[[rr,r.terms_and_conditions]]),b("span",mj,[b("span",gj,[b("p",_j,_(e.element.terms_and_condition),1)])])])]),r.validation.terms_and_condition.is_required_error?(S(),A("span",yj,"Please accept the terms and conditions")):R("",!0)])])):R("",!0)]))}const vj=Nt(kV,[["render",bj],["__scopeId","data-v-cf39a0f2"]]);const xj={data(){return{loader:!1,customer:{first_name:"",last_name:"",email:"",phone:"",country:""},countries:["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, the Democratic Republic of the","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia (Hrvatska)","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","France Metropolitan","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Heard and Mc Donald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran (Islamic Republic of)","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait","Kyrgyzstan","Lao, People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia, The Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Moldova, Republic of","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia (Slovak Republic)","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","Spain","Sri Lanka","St. Helena","St. Pierre and Miquelon","Sudan","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan, Province of China","Tajikistan","Tanzania, United Republic of","Thailand","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands (British)","Virgin Islands (U.S.)","Wallis and Futuna Islands","Western Sahara","Yemen","Yugoslavia","Zambia","Zimbabwe"],states:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"]}},components:{formContact:vj},props:{element:{type:Object},stepData:{type:Object,require:!1},dynamicClass:{type:String},nextPageUrl:{require:!1},salesFunnel:{type:Object},type:{type:String},elementData:{require:!0}},computed:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge}},watch:{activate_tab(){setTimeout(()=>{this.setupAutocomplete()},100)}},methods:{customerAdded(n){this.loader=!0;let t={...n,user_id:this.elementData.user_id};this.type=="salesFunnel"?this.stepData&&(t.type="salesFunnel",t.sales_funnel_id=this.stepData.sales_funnel_id,t.funnel_step_id=this.stepData.id,t.sales_page_id=this.stepData.sales_page_id):(t.type="salesPage",t.sales_page_id=this.elementData.id),this.customer.last_name||(this.customer.last_name=""),Ke.post("/api/payment/create-lead",t).then(e=>{this.loader=!1,this.customer=e.data.data.customer,this.element.redirect_type=="redirect_to_url"&&this.element.redirect_url?window.location.href=this.element.redirect_url:this.element.redirect_type=="redirect_newsletter"&&this.element.redirect_url?window.location.href=`${this.element.redirect_url}?email=${this.customer.email}`:this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload()})}},mounted(){}},wj={class:"tw-w-full md:tw-rounded-b-lg tw-px-6 tw-py-5 tw-pb-5 lg:tw-px-5 order-form"};function kj(n,t,e,i,r,s){const o=at("formContact");return S(),A("aside",{class:X(["md:tw-basis-[50%] lg:tw-basis-[50%] text-left main-order-form radius-bottom",[e.dynamicClass,s.shadowClass,s.boxClasses,s.borderClass]])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-order-form{ padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; } ."+_(e.dynamicClass)+" .order-form{ background-color:"+_(e.element.background_color)+"; } ."+_(e.dynamicClass)+" .title-text-color{ color:"+_(e.element.title_color)+"; } ."+_(e.dynamicClass)+" .contact-button{ color:"+_(e.element.button_font_color)+"; background-color:"+_(e.element.button_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input label ,."+_(e.dynamicClass)+" .label-color{ color:"+_(e.element.form_label_color)+"; } ."+_(e.dynamicClass)+" .order-form-input input:focus ,."+_(e.dynamicClass)+" .order-form-input select:focus { outline:none; border-color:"+_(e.element.form_highlight_color)+"; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } ."+_(e.dynamicClass)+" .order-form-input input::placeholder,."+_(e.dynamicClass)+" .order-form-input select::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ color:"+_(e.element.form_placeholder_color)+"; } ."+_(e.dynamicClass)+" .order-form-input input{ color:"+_(e.element.form_text_color)+"; background-color: "+_(e.element.form_input_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input select{ color:"+_(e.element.form_placeholder_color)+"; background-color: "+_(e.element.form_input_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input select:has(option:checked:not([value])), ."+_(e.dynamicClass)+' .order-form-input select:has(option:checked:not([value=""])) { color:'+_(e.element.form_text_color)+"; } ."+_(e.dynamicClass)+"-background{ background-color: "+_(e.element.step_background_color)+" !important; } ."+_(e.dynamicClass)+"-active-background{ background-color: "+_(e.element.active_step_background_color)+" !important; } ."+_(e.dynamicClass)+"-font{ color: "+_(e.element.step_font_color)+" !important; } ."+_(e.dynamicClass)+"-active-font{ color: "+_(e.element.step_font_active_color)+" !important; } ."+_(e.dynamicClass)+"-accent-color{ accent-color: "+_(e.element.primary_color)+" !important; } ."+_(e.dynamicClass)+"-primary-color{ color: "+_(e.element.primary_color)+" !important; } ."+_(e.dynamicClass)+"-active-background-font{ color: "+_(e.element.active_step_background_color)+" !important; } ."+_(e.dynamicClass)+" .privacy_statement_box{ margin-top: 10px; text-align: center; font-weight: 500; color:grey; font-size: 12px; } ."+_(e.dynamicClass)+" .template_4.activeTabBox::after{ position: absolute; content: ''; bottom: 0; left: 12px; width: 15px; transform: rotate(45deg) translate(60% , 0%); aspect-ratio: 1; background-color: "+_(e.element.active_step_background_color)+"; } ."+_(e.dynamicClass)+" .template_3.activeTabBox{ overflow:hidden; } ."+_(e.dynamicClass)+" .template_3.activeTabBox::after{ position: absolute; content: ''; bottom: -1px; left: 12px; z-index: 10; width: 15px; transform: rotate(45deg) translate(60% , 0%); aspect-ratio: 1; background-color: "+_(e.element.active_step_background_color)+"; } ."+_(e.dynamicClass)+" .template_form_tab_3{ border-bottom: 7px solid "+_(e.element.active_step_background_color)+"; } ",1)]),_:1})),b("div",wj,[ct(o,{element:e.element,dynamicClass:e.dynamicClass,onCustomerAdded:s.customerAdded,customer:r.customer,stepData:e.stepData,nextPageUrl:e.nextPageUrl,countries:r.countries,states:r.states,salesFunnel:e.salesFunnel,type:e.type,salesPage:e.elementData},null,8,["element","dynamicClass","onCustomerAdded","customer","stepData","nextPageUrl","countries","states","salesFunnel","type","salesPage"])])],2)}const Cj=Nt(xj,[["render",kj]]);const Sj={props:{product:{type:Object},selectedProduct:{type:Array},isProductLoading:{type:Boolean}},components:{loader:Gs},data(){return{selected_varient:[]}},computed:{loader(){return this.isProductLoading}},methods:{check(){let n=this.product.product_combinations,t=this.selected_varient.map(i=>i?i.toLowerCase().replace(/\s/g,""):null),e=n.find(i=>i.slug==this.product.id+"~"+t.join("~"));e?this.$emit("updatePrice",{price:e,type:"variant",selectedProduct:this.selected_varient}):this.$emit("updatePrice",{price:{},type:"variant",selectedProduct:this.selected_varient})}},mounted(){if(this.selectedProduct.length)this.selected_varient=this.selectedProduct;else{let n=[];console.log("pro",this.product),this.product&&this.product.attributes.length&&this.product.attributes.map(t=>{n.push(null)}),this.selected_varient=n}},watch:{product(n){let t=[];n&&n.attributes.length&&n.attributes.map(e=>{t.push(null)}),this.selected_varient=t,this.check()}}},Tj={class:"mb-0 order-form-input"},Ej={key:1},Oj={class:"tw-flex tw-flex-col tw-gap-4"},Aj=["placeholder","onUpdate:modelValue","onChange"],Dj={value:null,disabled:""},Mj=["value"];function Pj(n,t,e,i,r,s){const o=at("loader");return S(),A("div",Tj,[s.loader?(S(),qe(o,{key:0})):R("",!0),e.product&&e.product.attributes&&e.product.attributes.length>0?(S(),A("section",Ej,[(S(!0),A(He,null,bt(e.product.attributes,(a,c)=>(S(),A("div",{class:"tw-space-y-2 input-mb",key:c},[b("div",Oj,[Re(b("select",{name:"",id:"",placeholder:`Select-${a.name}`,"onUpdate:modelValue":d=>r.selected_varient[c]=d,onChange:d=>s.check(a),class:X(`input-field tw-outline-none tw-rounded-[5px] tw-text-sm tw-py-[12px] tw-px-[18px] tw-border-none tw-w-full custom-select ${r.selected_varient[c]?"filled-select":"null-select"}`)},[b("option",Dj,"Select "+_(a.name),1),(S(!0),A(He,null,bt(a.variants,(d,f)=>(S(),A("option",{value:d.name,key:f},_(d.name),9,Mj))),128))],42,Aj),[[Ui,r.selected_varient[c]]])])]))),128))])):R("",!0)])}const ty=Nt(Sj,[["render",Pj],["__scopeId","data-v-0f725605"]]);const Nj={props:{product:{type:Object},selected_option_combination:{require:!1}},data(){return{selectedProductOption:null,selectedChildProductOption:null,isSelected:!1}},computed:{optionArrayChild(){return this.product&&this.product.product_options?this.product.product_options.filter(n=>n.child_atrributes.length>0):[]},optionArrayParent(){return this.product&&this.product.product_options?this.product.product_options.filter(n=>n.child_atrributes.length==0):[]},getChildOptions(){if(this.product&&this.product.product_options){let n=this.product.product_options.find(t=>t.id==this.selectedProductOption);if(n&&n.child_atrributes.length>0)return n.child_atrributes}return[]},isShowSelect(){return!(this.product&&this.product.product_options&&this.product.product_options.length==1)},showNameSelection(){if(this.selectedProductOption&&this.product&&this.product.product_options){let n=this.product.product_options.find(t=>t.id==this.selectedProductOption);if(n)return n.name}}},methods:{removeChild(){this.selectedChildProductOption=null,this.makeSelection()},makeSelection(){if(this.selectedChildProductOption){let n=this.product.product_options_combination.find(t=>t.option_id==this.selectedChildProductOption);n?this.$emit("updatePrice",{price:n,type:"product_option",selectedProduct:this.selectedProductOption}):this.$emit("updatePrice",{price:{},type:"product_option",selectedProduct:this.selectedProductOption})}else if(this.selectedProductOption){let n=this.product.product_options_combination.find(t=>t.option_id==this.selectedProductOption);n?this.$emit("updatePrice",{price:n,type:"product_option",selectedProduct:this.selectedProductOption}):this.$emit("updatePrice",{price:{},type:"product_option",selectedProduct:this.selectedProductOption})}},selectVarients(n){this.selectedChildProductOption=n.id,this.makeSelection()},removeSelection(){this.selectedChildProductOption=null,this.makeSelection()}},watch:{product(){this.product&&this.product.default_payment_option&&this.makeSelection()}},mounted(){this.product&&this.product.product_options&&this.product.product_options.length==1&&(this.selectedProductOption=this.product.product_options[0].id)}},p3=n=>(lr("data-v-c716d8a1"),n=n(),cr(),n),Ij={class:"order-form-input mb-3"},Rj={class:"tw-flex tw-flex-col tw-gap-4 position-relative"},Bj=["value"],Lj=["value"],Fj={key:2,class:"product-option-text"},qj={key:0,class:"margin-top-10"},Hj=p3(()=>b("div",{class:"addition-options-text"},"Addtional Options:",-1)),zj={class:"button-box mt-2"},Uj=["onClick"],Vj=p3(()=>b("i",{class:"fa-solid fa-xmark"},null,-1)),jj=[Vj];function Wj(n,t,e,i,r,s){return S(),A("div",Ij,[b("section",null,[b("div",Rj,[s.isShowSelect?Re((S(),A("select",{key:0,name:"",id:"","onUpdate:modelValue":t[0]||(t[0]=o=>r.selectedProductOption=o),onChange:t[1]||(t[1]=(...o)=>s.removeChild&&s.removeChild(...o)),class:"input-field tw-outline-none tw-rounded-[5px] tw-text-sm tw-py-[12px] tw-px-[18px] tw-w-full custom-select"},[(S(!0),A(He,null,bt(e.product&&e.product.product_options&&e.product.product_options.length?e.product.product_options:[],(o,a)=>(S(),A("option",{value:o.id,key:`${a}-parent`},_(o.name),9,Bj))),128))],544)),[[Ui,r.selectedProductOption]]):(S(),A("input",{key:1,class:"form-control input-box-product",value:s.showNameSelection},null,8,Lj)),r.selectedProductOption?R("",!0):(S(),A("span",Fj,_(e.product.option_name),1))]),b("div",null,[s.getChildOptions.length?(S(),A("div",qj,[Hj,b("div",zj,[(S(!0),A(He,null,bt(s.getChildOptions,(o,a)=>(S(),A("button",{key:a,class:X(["position-relative",r.selectedChildProductOption==o.id?"active":""]),onClick:c=>s.selectVarients(o)},[J(_(o.name),1),r.selectedChildProductOption==o.id?(S(),A("span",{key:0,class:"close-mark",onClick:t[2]||(t[2]=Wa((...c)=>s.removeSelection&&s.removeSelection(...c),["stop"]))},jj)):R("",!0)],10,Uj))),128))])])):R("",!0)])])])}const ny=Nt(Nj,[["render",Wj],["__scopeId","data-v-c716d8a1"]]);const Kj={data(){return{currentCardBackground:Math.floor(Math.random()*25+1),cardName:"",cardNumber:"",cardMonth:"",cardYear:"",cardCvv:"",minCardYear:new Date().getFullYear(),amexCardMask:"#### ###### #####",otherCardMask:"#### #### #### ####",cardNumberTemp:"",isCardFlipped:!1,focusElementStyle:null,isInputFocused:!1,isSubmited:!1,isFlag:0}},mounted(){this.cardNumberTemp=this.otherCardMask},computed:{getCardType(){let n=this.cardNumber,t=new RegExp("^4");return n.match(t)!=null?"visa":(t=new RegExp("^(34|37)"),n.match(t)!=null?"amex":(t=new RegExp("^5[1-5]"),n.match(t)!=null?"mastercard":(t=new RegExp("^6011"),n.match(t)!=null?"discover":(t=new RegExp("^9792"),n.match(t)!=null?"troy":"visa"))))},generateCardNumberMask(){return this.getCardType==="amex"?this.amexCardMask:this.otherCardMask},minCardMonth(){return this.cardYear===this.minCardYear?new Date().getMonth()+1:1},cardError(){const n=[];return this.isSubmited&&(!this.cardNumber&&n.push("Enter card Number."),this.getCardType==="amex"&&this.cardNumber.length!=17&&n.push("Please Enter valid card number"),this.getCardType!="amex"&&this.cardNumber.length!=19&&n.push("Please Enter valid card number")),n},monthError(){const n=[];return this.isSubmited&&!this.cardMonth&&n.push("Enter Month."),n},yearError(){const n=[];return this.isSubmited&&!this.cardYear&&n.push("Enter Year."),n},cvvError(){const n=[];return this.isSubmited&&!this.cardCvv&&n.push("Enter Cvv."),n}},watch:{cardYear(){this.cardMonth{n.isInputFocused||(n.focusElementStyle=null)},300),n.isInputFocused=!1}}},Gj={class:"card-form__inner"},Yj={class:"card-input"},Jj=b("label",{for:"cardNumber",class:"card-input__label"},"Card Number",-1),Zj={key:0,class:"invalid-field-text"},Xj={class:"card-form__row"},Qj={class:"card-form__col"},$j={class:"card-form__group"},eW=b("label",{for:"cardMonth",class:"card-input__label"},"Expiration Date",-1),tW=b("option",{value:"",disabled:"",selected:""},"Month",-1),nW=["value","disabled"],iW=b("option",{value:"",disabled:"",selected:""},"Year",-1),rW=["value"],sW={key:0,class:"invalid-field-text"},oW={class:"card-form__col -cvv"},aW={class:""},lW=b("label",{for:"cardCvv",class:"card-input__label"},"CVV",-1),cW={key:0,class:"invalid-field-text"};function dW(n,t,e,i,r,s){const o=yk("mask");return S(),A("div",Gj,[b("div",Yj,[Jj,Re(b("input",{type:"text",id:"cardNumber",class:X(["card-input__input",{"invalid-field-border":s.cardError.length}]),"onUpdate:modelValue":t[0]||(t[0]=a=>r.cardNumber=a),onFocus:t[1]||(t[1]=(...a)=>s.focusInput&&s.focusInput(...a)),onBlur:t[2]||(t[2]=(...a)=>s.blurInput&&s.blurInput(...a)),"data-ref":"cardNumber",autocomplete:"off"},null,34),[[o,s.generateCardNumberMask],[wt,r.cardNumber]]),s.cardError.length?(S(),A("span",Zj,_(s.cardError[0]),1)):R("",!0)]),b("div",Xj,[b("div",Qj,[b("div",$j,[eW,Re(b("select",{class:X(["card-input__input -select",{"invalid-field-border":s.monthError.length}]),id:"cardMonth","onUpdate:modelValue":t[3]||(t[3]=a=>r.cardMonth=a),onFocus:t[4]||(t[4]=(...a)=>s.focusInput&&s.focusInput(...a)),onBlur:t[5]||(t[5]=(...a)=>s.blurInput&&s.blurInput(...a)),"data-ref":"cardDate"},[tW,(S(),A(He,null,bt(12,a=>b("option",{value:a<10?"0"+a:a,disabled:ar.cardYear=a),onFocus:t[7]||(t[7]=(...a)=>s.focusInput&&s.focusInput(...a)),onBlur:t[8]||(t[8]=(...a)=>s.blurInput&&s.blurInput(...a)),"data-ref":"cardDate"},[iW,(S(),A(He,null,bt(12,(a,c)=>b("option",{value:c+r.minCardYear,key:a},_(c+r.minCardYear),9,rW)),64))],34),[[Ui,r.cardYear]])]),s.monthError.length||s.yearError.length?(S(),A("span",sW,"Select Year and month")):R("",!0)]),b("div",oW,[b("div",aW,[lW,Re(b("input",{type:"text",class:X(["card-input__input",{"invalid-field-border":s.cvvError.length}]),id:"cardCvv",maxlength:"4","onUpdate:modelValue":t[9]||(t[9]=a=>r.cardCvv=a),autocomplete:"off"},null,2),[[o,"####"],[wt,r.cardCvv]]),s.cvvError.length?(S(),A("span",cW,_(s.cvvError[0]),1)):R("",!0)])])])])}const m3=Nt(Kj,[["render",dW]]);const uW={props:{scarcitySetting:{type:Object},orderStepSetting:{type:Object},timesale:{type:Object},dimesale:{type:Object},coupon:{type:Object},shipping_timer:{type:Object},scarcity_coupon_timer:{type:Object},free_shipping_timer:{type:Object},discount:{type:Object},discount_timer:{type:Object},discountedPrice:{type:Number},timesale_timer:{type:Object},dimesale_timer:{type:Object},order_diversion:{type:Object},diversion_timer:{type:Object}},computed:{discountHeadline(){return this.scarcitySetting?this.scarcitySetting.special_discount_headline.replace("[discount]",this.discountedPrice.toFixed(2)):null},discountTimerExpired(){return!!(this.discount_timer&&this.discount_timer.hours=="00"&&this.discount_timer.minutes=="00"&&this.discount_timer.seconds=="00")},shippingTimerExpired(){return!!(this.free_shipping_timer&&this.free_shipping_timer.hours=="00"&&this.free_shipping_timer.minutes=="00"&&this.free_shipping_timer.seconds=="00")}},mounted(){console.log("alert loaded")}},dr=n=>(lr("data-v-49b9ebbc"),n=n(),cr(),n),fW={key:0},hW={key:0,class:"scarcity-alert mb-4"},pW={class:"alert-deal mb-3"},mW=J("Special Deal | Ends in "),gW={key:0},_W={class:"alert-title mb-2"},yW={class:"alert-description"},bW=dr(()=>b("i",{class:"fa-solid fa-lock lock-icon"},null,-1)),vW=J(" Hurry! The "),xW=J(" price will automatically increase when the timer expires! "),wW=dr(()=>b("hr",{class:"hr-line"},null,-1)),kW={key:1,class:"scarcity-alert mb-4"},CW={class:"alert-deal mb-3"},SW=J("Special Deal | Ends in "),TW={key:0},EW={class:"alert-title mb-2"},OW={class:"alert-description"},AW=dr(()=>b("i",{class:"fa-solid fa-lock lock-icon"},null,-1)),DW=J(" Hurry! The "),MW=J(" price will automatically increase with the next "),PW=J(" customers! "),NW=dr(()=>b("hr",{class:"hr-line"},null,-1)),IW={key:2,class:"scarcity-alert mb-4"},RW={class:"alert-deal mb-3"},BW=J("Special Deal | Ends in "),LW={key:0},FW={class:"alert-title mb-2"},qW={class:"alert-description"},HW=dr(()=>b("i",{class:"fa-solid fa-lock lock-icon"},null,-1)),zW=J(" Hurry! There are only "),UW=J(" promo codes left! The promotion will not be valid once timer expires! "),VW=dr(()=>b("hr",{class:"hr-line"},null,-1)),jW={key:3,class:"scarcity-alert mb-4"},WW={class:"alert-deal mb-3"},KW=J("Special Deal | Ends in "),GW={key:0},YW={class:"alert-title mb-2"},JW=dr(()=>b("p",{class:"alert-description"},[b("i",{class:"fa-solid fa-lock lock-icon"}),J(" Hurry! Make sure you lock in your FREE shipping! The promotion will not be valid once timer expires ")],-1)),ZW=dr(()=>b("hr",{class:"hr-line"},null,-1)),XW={key:4,class:"scarcity-alert mb-4"},QW={class:"alert-deal mb-3"},$W=J("Lightning deal | Ends in "),eK={key:0},tK={class:"alert-title mb-2"},nK={class:"alert-description"},iK=dr(()=>b("i",{class:"fa-solid fa-lock lock-icon"},null,-1)),rK=dr(()=>b("hr",{class:"hr-line"},null,-1)),sK={key:5,class:"scarcity-alert mb-4"},oK={class:"alert-deal mb-3"},aK=J("Lightning deal | Ends in "),lK={key:0},cK={class:"alert-title"},dK=["href"],uK=dr(()=>b("hr",{class:"hr-line"},null,-1)),fK={key:1},hK=Bk('

Special Deal | Ends in 00 : 00 : 00

Conversion Booster Headline

This is your headline for your conversion booster which needs to be set in the side menu


',1),pK=[hK];function mK(n,t,e,i,r,s){return e.scarcitySetting&&(e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale.id||e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale.id||e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.coupon.id&&e.coupon.unit>0||e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.shipping_timer.id&&!s.shippingTimerExpired||e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer||e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.order_diversion.id&&e.diversion_timer)?(S(),A("section",fW,[e.scarcitySetting&&e.scarcitySetting.scarcity_type=="timesale"&&e.timesale?(S(),A("div",hW,[b("div",pW,[b("p",null,[mW,e.timesale_timer&&e.timesale_timer.days&&e.timesale_timer.days>0?(S(),A("span",gW,_(e.timesale_timer.days)+" : ",1)):R("",!0),J(_(e.timesale_timer.hours)+" : "+_(e.timesale_timer.minutes)+" : "+_(e.timesale_timer.seconds),1)])]),b("h4",_W,_(e.scarcitySetting.timesale_headline),1),b("p",yW,[bW,vW,b("b",null,"$"+_(e.timesale.increase_price),1),xW]),wW])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale?(S(),A("div",kW,[b("div",CW,[b("p",null,[SW,e.dimesale_timer&&e.dimesale_timer.days&&e.dimesale_timer.days>0?(S(),A("span",TW,_(e.dimesale_timer.days)+" : ",1)):R("",!0),J(_(e.dimesale_timer.hours)+" : "+_(e.dimesale_timer.minutes)+" : "+_(e.dimesale_timer.seconds),1)])]),b("h4",EW,_(e.scarcitySetting.dimesale_headline),1),b("p",OW,[AW,DW,b("b",null,"$"+_(e.dimesale.increase_price),1),MW,b("b",null,_(e.dimesale.sales),1),PW]),NW])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.coupon.unit>0&&e.scarcity_coupon_timer?(S(),A("div",IW,[b("div",RW,[b("p",null,[BW,e.scarcity_coupon_timer&&e.scarcity_coupon_timer.days&&e.scarcity_coupon_timer.days>0?(S(),A("span",LW,_(e.scarcity_coupon_timer.days)+" : ",1)):R("",!0),J(_(e.scarcity_coupon_timer.hours)+" : "+_(e.scarcity_coupon_timer.minutes)+" : "+_(e.scarcity_coupon_timer.seconds),1)])]),b("h4",FW,_(e.scarcitySetting.coupon_headline),1),b("p",qW,[HW,zW,b("b",null,_(e.coupon.unit),1),UW]),VW])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer&&!s.shippingTimerExpired?(S(),A("div",jW,[b("div",WW,[b("p",null,[KW,e.free_shipping_timer&&e.free_shipping_timer.days&&e.free_shipping_timer.days>0?(S(),A("span",GW,_(e.free_shipping_timer.days)+" : ",1)):R("",!0),J(_(e.free_shipping_timer.hours)+" : "+_(e.free_shipping_timer.minutes)+" : "+_(e.free_shipping_timer.seconds),1)])]),b("h4",YW,_(e.scarcitySetting.free_shipping_headline),1),JW,ZW])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer&&!s.discountTimerExpired?(S(),A("div",XW,[b("div",QW,[b("p",null,[$W,e.discount_timer&&e.discount_timer.days&&e.discount_timer.days>0?(S(),A("span",eK,_(e.discount_timer.days)+" : ",1)):R("",!0),J(_(e.discount_timer.hours)+" : "+_(e.discount_timer.minutes)+" : "+_(e.discount_timer.seconds),1)])]),b("h4",tK,_(s.discountHeadline),1),b("p",nK,[iK,J(" You can save an extra $"+_(e.discountedPrice.toFixed(2))+" right now if you checkout before the timer expires! ",1)]),rK])):R("",!0),e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer&&e.order_diversion.id?(S(),A("div",sK,[b("div",oK,[b("p",null,[aK,e.diversion_timer.days&&e.diversion_timer.days>0?(S(),A("span",lK,_(e.diversion_timer.days)+" : ",1)):R("",!0),J(_(e.diversion_timer.hours)+" : "+_(e.diversion_timer.minutes)+" : "+_(e.diversion_timer.seconds),1)])]),b("h4",cK,[J(_(e.scarcitySetting.order_diversion_headline)+" ",1),b("a",{href:e.order_diversion.cta_link,target:"_blank",style:{"text-decoration":"underline"}},_(e.order_diversion.cta_text),9,dK)]),uK])):R("",!0)])):(S(),A("section",fK,pK))}const iy=Nt(uW,[["render",mK],["__scopeId","data-v-49b9ebbc"]]);const gK={props:{element:{type:Object}},data(){return{video_url:null}},computed:{allowWorld(){if(this.element.media_video.video_type=="vimeo"&&this.element.media_video.is_autoplay)return"autoplay";this.element.media_video.video_type=="youtube"&&this.element.media_video.is_autoplay},visibleClass(){if(!this.element.media_video.desktop_visibility||!this.element.media_video.mobile_visibility)if(this.element.media_video.desktop_visibility){if(!this.element.media_video.mobile_visibility)return"desktop-only"}else return"mobile-only"}},methods:{shadowClass(){if(this.element.media_video.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.media_video.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.media_video.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.media_video.box_shadow},borderClass(){return""+this.element.media_video.border_type+" "+this.element.media_video.border_radius+" "+this.element.media_video.radius_edge},updateVideoUrl(){if(this.element.media_video.video_url&&this.element.media_video.video_type)if(this.element.media_video.video_type=="vimeo")this.video_url=`https:${this.getVimeoId(this.element.media_video.video_url)}?autoplay=${this.element.media_video.is_autoplay?1:0}`;else if(this.element.media_video.video_type=="youtube")console.log(this.video_url,"dd"),this.video_url=`https://www.youtube.com/embed/${this.getYoutubeId(this.element.media_video.video_url)}?autoplay=${this.element.media_video.is_autoplay?1:0}&rel=0&controls=${this.element.media_video.is_control?1:0}&mute=${this.element.media_video.is_autoplay?1:0}`;else{let n=document.getElementById(this.element.id+"-media-video-preview");if(n){const t=document.createRange().createContextualFragment(this.element.media_video.video_url);n.append(t)}}},getYoutubeId(n){if(n){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,e=n.match(t);return e&&e[2].length===11?e[2]:null}},getVimeoId(n){if(n){var t=/(?:http?s?:\/\/)?(?:www\.)?(?:vimeo\.com)\/?(\S+)/g,e=/(?:http?s?:\/\/)?(?:www\.)?(?:player\.vimeo\.com)\/?(\S+)/g;if(e.test(n)){var n=n.replace("https:","");return n}else if(t.test(n)){var i="//player.vimeo.com/video/$1",n=n.replace(t,i);return n}}}},mounted(){this.updateVideoUrl()}},_K={key:0,class:"w-100"},yK={class:"video-box position-relative",style:{"padding-bottom":"56.25%"}},bK=["src","allow"],vK=["id"];function xK(n,t,e,i,r,s){return S(),A("div",{class:"media-video-container",style:ke(`width:${e.element.media_video.video_width}%`)},[(e.element.media_video.video_type=="vimeo"||e.element.media_video.video_type=="youtube")&&e.element.media_video.video_url?(S(),A("div",_K,[b("div",yK,[b("iframe",{class:"custom-iframe",src:r.video_url,frameborder:"0",allow:s.allowWorld,allowfullscreen:""},` `,8,bK)])])):R("",!0),b("div",{id:`${e.element.id}-media-video-preview`,class:"w-100"},null,8,vK)],4)}const g3=Nt(gK,[["render",xK],["__scopeId","data-v-5ae89117"]]);const wK={name:"textelement",props:{element:{require:!0}},computed:{full_page_image_src(){return this.element.media_image.image&&this.element.media_image.image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.media_image.image:this.element.media_image.image?this.element.media_image.image:this.asset_url+"/no-image.png"},getHeight(){return this.element.media_image.height>=0?`height:${this.element.media_image.height}px`:"height:100%"}},data(){return{asset_url:null}},created(){this.asset_url=window.location.origin}},kK=["src"];function CK(n,t,e,i,r,s){return S(),A("div",{class:X(["media-image-container",`media-${this.element.id}`])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_("media-"+e.element.id)+".media-image-container{ opacity: "+_(e.element.media_image.opacity)+"; text-align: "+_(e.element.media_image.text_align)+"; } ."+_("media-"+e.element.id)+" .media-img-preview{ height:"+_(e.element.media_image.height&&e.element.media_image.height>0?e.element.media_image.height+"px":"")+"; width:"+_(e.element.media_image.width&&e.element.media_image.width>0?e.element.media_image.width+"px":"100%")+"; } ",1)]),_:1})),b("img",{src:s.full_page_image_src,alt:"broken image...",class:X([[e.element.media_image.radius,e.element.media_image.border,e.element.media_image.shadow,e.element.media_image.effect],"media-img-preview"])},null,10,kK)],2)}const _3=Nt(wK,[["render",CK]]);const SK={props:{element:{type:Object},dynamicClass:{type:String},product:{type:Object},selectedProduct:{type:Array},selected_option_combination:{require:!1},activate_tab:{require:!1},price:{require:!1},isProductLoading:{type:Boolean},customer:{require:!1},nextPageUrl:{require:!1},stepData:{type:Object},scarcitySetting:{type:Object},orderStepSetting:{type:Object},timesale:{type:Object},dimesale:{type:Object},coupon:{type:Object},shipping_timer:{type:Object},scarcity_coupon_timer:{type:Object},free_shipping_timer:{type:Object},discount:{type:Object},discount_timer:{type:Object},countries:{type:Array},states:{type:Array},salesFunnel:{require:!1},applyCoupon:{type:Object},timesale_timer:{type:Object},dimesale_timer:{type:Object},type:{type:String},salesPage:{type:Object},order_diversion:{type:Object},diversion_timer:{type:Object},tid:{type:String},payment_option:{require:!1,default:[]},salesProduct:{require:!1},pcode:{type:String}},components:{productList:ty,productOption:ny,loader:Gs,Alert:iy,cardElement:m3,VideoElement:g3,ImageElement:_3},methods:{updatePrice(n){this.selectedCombination=n.price,this.$emit("updatePrice",n)},async makeStripePayment(){let n=this;this.element.show_shipping_on=="tab2"&&this.isValidate(),this.elements.submit().then(t=>{!this.isValidate()&&this.element.show_shipping_on=="tab2"||t.error||(n.is_loader=!0,n.isButtonDisable=!0,n.createOrder().then(e=>{let i=e.data.data.order,r={customer_id:this.customer.unique_id,order_id:i.unique_id,amount:this.finalPrice,user_id:this.product.user_id,description:this.productName,type:this.type};this.type=="salesFunnel"?r.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:r.product_id=this.product?this.product.id:null,this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&!this.selected_payment_option.is_trial_checked&&(r.payment_mode="subscription",r.billing_type=this.selected_payment_option.billing_period,r.sub_id=this.selected_payment_option.id,r.sub_price=this.selected_payment_option.amount,r.amount=this.selected_payment_option.amount,r.product_name=this.product?this.product.name:"",this.elements.update({mode:"subscription"})),Ke.post("/api/payment/create-payment-intent",r).then(s=>{if(s.data.status){var o=null;if(r.payment_mode=="subscription"){let c=s.data.data.setupIntents;c&&(o=c.latest_invoice.payment_intent.client_secret,this.subscription_id=c.id)}else o=s.data.data.setupIntents.client_secret;let a=n.elements;this.stripeData.confirmPayment({elements:a,clientSecret:o,confirmParams:{return_url:"http://127.0.0.1:8000/salespage/check/1"},redirect:"if_required"}).then(function(c){console.log(c),c.error?(n.is_loader=!1,n.isButtonDisable=!1,alert("payment failed")):c.paymentIntent&&c.paymentIntent.status=="succeeded"?(window.localStorage.setItem("customer",n.customer.unique_id),n.verifyOrder(s.data.data.setupIntents.id,i.unique_id)):(n.is_loader=!1,n.isButtonDisable=!1)})}})}))})},createOrder(n=null){let t={user_id:this.product.user_id,customer_id:this.customer.unique_id,product_id:this.product.id,product_combination_id:this.price&&this.price.id?this.price.id:null,product_varinent_name:this.price&&this.price.features?this.price.features:null,amount:this.finalPrice,description:this.productName,type:this.type,sub_type:this.type=="salesFunnel"?"sales_page":null,shipping_id:this.selectedShippingId,bumps:this.selectedBumpData,shipping_cost:this.shippingCharge,product_amout:this.productAmount,sku:this.price&&this.price.code?this.price.code:this.product.product_slug,coupon_id:this.coupon&&this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0?this.coupon.id:null,show_shipping_on:this.element.show_shipping_on,customer:this.customer,payment_type:this.payment_mode,tid:this.tid,pcode:this.pcode,total_discount:this.savedAmount,...n};if(this.price&&this.price.type=="product_option"&&(t.product_combination_id=null,t.product_option_combination_id=this.price&&this.price.id?this.price.id:null),this.type=="salesFunnel"?(t.sales_funnel_id=this.stepData.sales_funnel_id,t.sales_page_id=this.stepData.sales_page_id,t.funnel_step_id=this.stepData.id):t.sales_page_id=this.salesPage.id,this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&(this.selected_payment_option.is_trial_checked&&this.payment_mode=="stripe"?t.payment_mode="one-time":(t.payment_mode="subscription",t.billing_type=this.selected_payment_option.billing_period,t.sub_id=this.selected_payment_option.id,t.sub_price=this.selected_payment_option.amount,this.selected_payment_option.is_trial_checked&&(t.is_trial=!0,t.trial_period_days=this.selected_payment_option.trial_period))),t.sales_page_id&&t.customer&&t.customer.unique_id&&t.customer.program_id&&t.customer.program_user_id){t.is_program_cookie_valid=!1;let e=t.sales_page_id+"~"+t.customer.unique_id+"~"+t.customer.program_id+"~"+t.customer.program_user_id,i=this.getCookie(e);i&&new Date().getTime(){if(this.is_loader=!1,t.data.status){var e=hc.AES.encrypt(JSON.stringify(n),`${this.customer.unique_id}-poplink-credit-card-details`).toString();this.setCookie("ppi",e),window.localStorage.setItem("customer",this.customer.unique_id),this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload();return}else t.data&&t.data.message&&alert(t.data.message),this.isButtonDisable=!1}))},async makePayment(){this.isCombinationValidate()||(this.payment_mode=="stripe"?this.makeStripePayment():(this.payment_mode=="epd"||this.payment_mode=="nmi")&&(this.$refs.customCard.submitCard(),this.element.show_shipping_on=="tab2"&&this.isValidate()))},verifyOrder(n,t){let e={payment_int_id:n,order_id:t,type:this.type};this.type=="salesFunnel"?e.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:e.product_id=this.product?this.product.id:null,this.type=="salesFunnel"&&(e.currentStep=this.stepData&&this.stepData.id?this.stepData.id:null,e.sales_funnel_id=this.stepData&&this.stepData.sales_funnel_id?this.stepData.sales_funnel_id:null),this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&!this.selected_payment_option.is_trial_checked&&(e.payment_mode="subscription",e.billing_type=this.selected_payment_option.billing_period,e.sub_id=this.selected_payment_option.id,e.sub_price=this.selected_payment_option.amount,e.amount=this.selected_payment_option.amount,e.subscription_id=this.subscription_id),e.payment_mode=="subscription"?Ke.post("/api/payment/verify-order-sub",e).then(i=>{this.isButtonDisable=!0,this.is_loader=!1,this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload()}).catch(i=>{this.is_loader=!1,this.isButtonDisable=!1}):(this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&this.selected_payment_option.is_trial_checked&&(e.is_trial=!0,e.billing_type=this.selected_payment_option.billing_period,e.sub_id=this.selected_payment_option.id,e.sub_price=this.selected_payment_option.amount,e.amount=this.selected_payment_option.amount,e.product_name=this.product?this.product.name:"",e.trial_period_days=this.selected_payment_option.trial_period),Ke.post("/api/payment/verify-order",e).then(i=>{this.isButtonDisable=!0,this.is_loader=!1,this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload()}).catch(i=>{this.is_loader=!1,this.isButtonDisable=!1}))},async addBumpView(){if(this.orderStepSetting&&this.orderStepSetting.bump_on_step2&&this.product&&this.product.product_bump_offer){let n=this.product.product_bump_offer.map(t=>t.bump_offer_id);if(n&&n.length){let t=null;this.type=="salesFunnel"?t={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,bump_ids:n,tid:this.tid,pcode:this.pcode}:t={type:"salesPage",sales_page_id:this.salesPage.id,bump_ids:n,tid:this.tid,pcode:this.pcode},await Ke.post("/api/sale-page/add-view-bump",t),await Ke.post("/api/sale-page/add-view-all-bump",t)}}},isValidate(){return this.flagCount=0,this.element.show_shipping_on=="tab1"||!this.showAddress?this.flagCount==0:(this.element.country&&this.element.country.is_show&&this.element.country.is_required&&!this.customer.country?(this.validation.country.is_required_error=!0,this.flagCount++):this.validation.country.is_required_error=!1,this.element.shipping_address&&this.element.shipping_address.is_show&&this.element.shipping_address.is_required&&!this.customer.address?(this.validation.shipping_address.is_required_error=!0,this.flagCount++):this.validation.shipping_address.is_required_error=!1,this.element.city&&this.element.city.is_show&&this.element.city.is_required&&!this.customer.city?(this.validation.city.is_required_error=!0,this.flagCount++):this.validation.city.is_required_error=!1,this.element.postal_code&&this.element.postal_code.is_show&&this.element.postal_code.is_required&&!this.customer.postal_code?(this.validation.postal_code.is_required_error=!0,this.flagCount++):this.validation.postal_code.is_required_error=!1,this.element.state&&this.element.state.is_show&&this.element.state.is_required&&!this.customer.state?(this.validation.state.is_required_error=!0,this.flagCount++):this.validation.state.is_required_error=!1,this.flagCount==0)},isCombinationValidate(){return this.element.step=="two"&&this.element.show_variant_on=="tab2"&&this.activate_tab==2&&this.product&&this.product.attributes&&this.product.is_variants&&this.product.product_combinations&&this.selectedProduct&&this.selectedProduct.filter(n=>n!=null).length!=this.product.attributes.length?(this.product_combination_required_error=!0,!0):(this.product_combination_required_error=!1,!1)},setDefaultShipping(){this.selectedShippingId||this.product&&this.productShipping&&this.productShipping.length>0&&(this.selectedShippingId=this.productShipping[0]?this.productShipping[0].id:null)},checkCouponCode(){if(this.applyCoupon.couponCode&&this.coupon)if(this.applyCoupon.couponChecked=!0,this.coupon.code==this.applyCoupon.couponCode){this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=Math.round(t)}else this.applyCoupon.isCouponInvalid=!0,this.applyCoupon.couponDiscount=0},recheckCouponCode(){if(this.applyCoupon.couponChecked)if(this.coupon.code==this.applyCoupon.couponCode){this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=Math.round(t)}else this.applyCoupon.isCouponInvalid=!0,this.applyCoupon.couponDiscount=0},removeLeftOfString(n,t){var e=n.indexOf(t);if(e!==-1){var i=n.substring(e+1);return i}else return n},autoApplyCouponCode(){if(this.scarcitySetting&&this.scarcitySetting.is_auto_apply_coupon&&this.coupon&&this.orderStepSetting&&this.orderStepSetting.coupons_on_step2&&!this.couponTimerExpired){this.applyCoupon.couponChecked=!0,this.applyCoupon.couponCode=this.coupon.code,this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=t}},updateAddressStatus(){setTimeout(()=>{this.showAdditionalAddress=!0},50)}},data(){return{payment_mode:"stripe",stripeData:null,paymentElement:null,elements:null,isPaymentProcessor:!1,is_loader:!1,assetUrl:"https://api.poplinks.io",selectedShippingId:null,usedBumpOffersIds:[],validation:{country:{is_required_error:!1},shipping_address:{is_required_error:!1},city:{is_required_error:!1},postal_code:{is_required_error:!1},state:{is_required_error:!1}},flagCount:0,isButtonDisable:!1,selectedCombination:{},product_combination_required_error:!1,payment_option_id:"one-time",showOneTime:!0,showPaymentOption:!0,subscription_id:null,showAdditionalAddress:!1}},computed:{productPrice(){if(this.product&&this.payment_option_id=="one-time")return this.price&&this.price.price&&this.price.type=="product_option"?this.price.price:this.price&&this.price.price?this.product.price+this.price.price:this.product.price;if(this.payment_option_id){let n=this.payment_option.find(t=>t.id==this.payment_option_id);if(n&&this.price&&this.price.price)return n.is_trial_checked?n.trial_amount+this.price.price:n.amount+this.price.price;if(n)return n.is_trial_checked?n.trial_amount:n.amount}return 0},productPriceOption(){return this.product?this.price&&this.price.price&&this.price.type=="product_option"?this.price.price:this.price&&this.price.price?this.product.price+this.price.price:this.product.price:0},discountedPrice(){return this.discount_timer&&this.discount_timer.hours=="00"&&this.discount_timer.minutes=="00"&&this.discount_timer.seconds=="00"?0:this.productPrice&&this.discount&&this.discount.type=="fixed"&&this.productPrice>0?this.discount.price?parseFloat(this.discount.price):0:this.productPrice&&this.discount&&this.discount.type=="percentage"&&this.productPrice>0&&this.productPrice&&this.discount.percentage?this.productPrice*(this.discount.percentage/100):0},usedBumpDetails(){return this.usedBumpOffersIds&&this.usedBumpOffersIds.length>0&&this.product?this.product.product_bump_offer.filter(({id:n})=>this.usedBumpOffersIds.includes(n)):[]},selectedBumpData(){var n=[];return this.usedBumpDetails.map(t=>{var e={bump_offer_id:t.bump_offer_id,name:t.name,price:t.product&&t.product.price?t.product.price:0,bump_product_id:t.product&&t.product.id?t.product.id:null};n.push(e)}),n},bumpTotalValue(){if(this.usedBumpDetails&&this.usedBumpDetails.length>0){var n=0;return this.usedBumpDetails.map(t=>{t.product&&t.product.price&&t.product.price>0&&(n+=t.product.price)}),n}return 0},subTotal(){var n=this.productPrice+this.bumpTotalValue-this.discountedPrice;return this.recheckCouponCode(),this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0&&(n=n-this.applyCoupon.couponDiscount),n>0?n:0},productAmount(){var n=this.productPrice-this.discountedPrice;return this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0&&(n=n-this.applyCoupon.couponDiscount),n>0?n.toFixed(2):0},selectedShipping(){return this.selectedShippingId&&this.product&&this.product.product_shipping?this.product.product_shipping.find(n=>n.id==this.selectedShippingId):null},shippingCharge(){var n=0;return this.selectedShipping&&this.selectedShipping&&this.selectedShipping.price&&(n+=this.selectedShipping.price),this.price&&this.price.shipping_cost&&(n+=this.price.shipping_cost),n},productShippingPrice(){var n=0;return this.price&&this.price.shipping_cost&&(n=this.price.shipping_cost),n},totalCartValue(){var n=this.subTotal+this.shippingCharge;return n},bumpCssVars:function(){return function(n=null){return{"--description-bold-color":n&&n.bold_color?n.bold_color:"","--description-underline-color":n&&n.underline_color?n.underline_color:"","border-style":n&&n.underline_color?n.border_frame:"dashed","border-color":n&&n.border_color?n.border_color:"#d49087","background-color":n&&n.bg_color?n.bg_color:"#F9F6E9"}}},finalPrice(){return this.totalCartValue},productShipping(){if(this.shippingTimerExpired){if(this.shippingTimerExpired)return this.product&&this.product.product_shipping?this.product.product_shipping.filter(n=>n.is_show==1&&n.price>0):[]}else return this.product&&this.product.product_shipping?this.product.product_shipping.filter(n=>n.is_show==1):[];return[]},couponTimerExpired(){return!!(this.scarcity_coupon_timer&&this.scarcity_coupon_timer.hours=="00"&&this.scarcity_coupon_timer.minutes=="00"&&this.scarcity_coupon_timer.seconds=="00")},productName(){return this.price&&this.price.features?this.product.name+" "+this.price.features:this.product.name},shippingTimerExpired(){return!!(this.scarcitySetting&&this.scarcitySetting.scarcity_type=="free_shipping"&&this.shipping_timer&&this.free_shipping_timer&&this.free_shipping_timer.hours=="00"&&this.free_shipping_timer.minutes=="00"&&this.free_shipping_timer.seconds=="00")},selected_payment_option(){if(this.payment_option_id&&this.payment_option_id!="one-time"){let n=this.payment_option.find(t=>t.id==this.payment_option_id);if(n)return n}},showPaymentLabel(){return!(this.element.step=="two"&&(this.element.show_variant_on=="tab1"&&this.activate_tab==1||this.element.show_variant_on=="tab2"&&this.activate_tab==2)&&this.product&&this.product.product_options&&this.product.add_product_option)},getPrductName(){if(this.price&&this.price.features)return this.removeLeftOfString(this.price.features,"+")},savedAmount(){return this.discountedPrice+this.applyCoupon.couponDiscount},showAddress(){return!(this.product&&this.product.type=="digital"&&this.orderStepSetting&&!this.orderStepSetting.is_physical_address)}},watch:{finalPrice(n){if(this.elements){let t=n.toFixed(2)*100;const e=Math.round(t*100)/100,i=Math.max(0,e);this.elements.update({amount:i})}},shippingTimerExpired(){this.shippingTimerExpired&&(this.selectedShippingId=this.scarcitySetting&&this.scarcitySetting.default_product_shipping_id?this.scarcitySetting.default_product_shipping_id:null)}},created(){},mounted(){if(this.salesFunnel&&this.salesFunnel.payment_type&&this.type=="salesFunnel"?this.payment_mode=this.salesFunnel.payment_type:this.type=="salesPage"&&this.product&&this.product.payment_provider&&(this.payment_mode=this.product.payment_provider),this.payment_mode=="stripe"){this.isPaymentProcessor=!0;let n={user_id:this.product.user_id,type:this.type};this.type=="salesFunnel"?n.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:n.product_id=this.product?this.product.id:null,Ke.post("/api/payment/initialize-stripe",n).then(t=>{if(this.isPaymentProcessor=!1,t.data.status&&t.data.data&&t.data.data.key){this.stripeData=Stripe(t.data.data.key);let e=this.finalPrice.toFixed(2)*100;const i=Math.round(e*100)/100,s={mode:"payment",amount:Math.max(0,i),currency:"usd",automatic_payment_methods:!0,setup_future_usage:"off_session",capture_method:"automatic",appearance:{}};this.elements=this.stripeData.elements(s),this.product.type=="digital"&&this.type=="salesPage"&&this.salesPage.id==1920?this.paymentElement=this.elements.create("payment",{paymentMethodOrder:["card","apple_pay"]}):this.paymentElement=this.elements.create("payment"),this.paymentElement.mount(this.$refs.card)}})}this.type=="salesFunnel"?this.stepData&&!this.stepData.is_one_time_payment&&this.payment_option&&this.payment_option.length&&(this.showOneTime=!1,this.payment_option_id=this.payment_option[0].id):this.type=="salesPage"&&this.salesProduct&&!this.salesProduct.is_one_time_payment&&this.payment_option&&this.payment_option.length&&(this.showOneTime=!1,this.payment_option_id=this.payment_option[0].id),this.addBumpView(),this.setDefaultShipping(),this.autoApplyCouponCode()}},Et=n=>(lr("data-v-012d55bd"),n=n(),cr(),n),TK={action:"",class:"mb-0"},EK=Et(()=>b("div",{class:"spinner-border",role:"status"},[b("span",{class:"sr-only"},"Loading...")],-1)),OK={key:1,class:"pe-cus-20"},AK=["innerHTML"],DK=J(" ⓘ "),MK={key:0},PK=J("There are only "),NK=J(" promo codes left."),IK={key:1},RK=J("There are only "),BK={class:"tw-font-semibold"},LK={key:0},FK=J(" left to claim this promo code."),qK={key:2},HK=J("There are only "),zK=J(" promo codes left and "),UK={class:"tw-font-semibold"},VK={key:0},jK=J(" left to claim this promo code."),WK=J(" please submit order as soon as possible."),KK={class:"tw-flex tw-gap-4"},GK={class:"tw-flex tw-relative tw-w-full submit-code"},YK={key:1,class:"font-weight-normal fonts-popins tw-text-[13px]",style:{"font-size":"13px",color:"#2FC79C"}},JK={key:2,class:"font-weight-normal fonts-popins tw-text-[13px]",style:{"font-size":"13px",color:"red"}},ZK={key:2,class:"hr-line mb-3"},XK={key:3,class:"mb-4"},QK=Et(()=>b("hr",{class:"hr-line mb-3"},null,-1)),$K={key:4,class:"mb-4"},eG=Et(()=>b("hr",{class:"hr-line mb-3"},null,-1)),tG={key:5},nG=Et(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),iG={key:0,class:"shake invalid-field-text"},rG=Et(()=>b("hr",{class:"hr-line mb-3"},null,-1)),sG={key:6},oG=Et(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),aG={key:0,class:"hr-line mb-3"},lG={key:7,class:"headline-text title-text-color tw-outline-none mb-3"},cG={class:"tw-flex tw-items-center tw-justify-between tw-w-full lato-fonts"},dG={key:0},uG={class:"cursor-pointer mb-0",for:"payment_options-1"},fG={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},hG={style:{opacity:".7","font-size":"14px","font-weight":"400","letter-spacing":"0.4px"}},pG=J("Original Price: "),mG={key:1},gG={class:"cursor-pointer mb-0",for:"payment_options-1"},_G={class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},yG={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px","font-size":"12px"}},bG={key:2},vG={class:"cursor-pointer mb-0"},xG={class:"product-discount-title tw-font-bold text-right",style:{"letter-spacing":"0.3px"}},wG={class:"font-weight-normal"},kG={class:"product-discount-title tw-font-semibold text-right desktop-only",style:{"letter-spacing":"0.3px","font-size":"12px"}},CG={class:"product-discount-title tw-font-semibold text-right mobile-only",style:{"letter-spacing":"0.3px","font-size":"12px"}},SG={key:3},TG={class:"cursor-pointer mb-0"},EG={class:"product-discount-title tw-font-bold",style:{"letter-spacing":"0.3px"}},OG=["id","value"],AG={class:"tw-flex tw-items-center tw-justify-between tw-w-full lato-fonts"},DG=["for"],MG={class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},PG={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px","font-size":"12px"}},NG={class:"tw-font-bold tw-m-0 text-capitalize",style:{"font-size":"18px"}},IG={class:"trial-box-payment mb-3"},RG=["id","onUpdate:modelValue"],BG=["for"],LG={key:9},FG=Et(()=>b("hr",{class:"hr-line"},null,-1)),qG=["innerHTML"],HG={key:0,class:"tw-flex tw-flex-col input-mb"},zG=["placeholder","id"],UG={key:0,class:"shake invalid-field-text"},VG={key:2,class:"tw-flex tw-flex-col input-mb"},jG=["id"],WG={class:"tw-flex tw-gap-4 input-mb"},KG={key:0,class:"tw-flex tw-flex-col tw-w-full"},GG=["placeholder"],YG={key:0,class:"shake invalid-field-text"},JG={key:1,class:"tw-flex tw-flex-col tw-w-full"},ZG=["placeholder"],XG=Et(()=>b("option",{value:"",disabled:""},"State",-1)),QG=["value"],$G={key:0,class:"shake invalid-field-text"},eY={class:"tw-flex tw-gap-4 input-mb"},tY={key:0,class:"tw-flex tw-flex-col tw-w-full"},nY=["placeholder"],iY={key:0,class:"shake invalid-field-text"},rY={key:1,class:"tw-flex tw-flex-col tw-w-full"},sY=["placeholder"],oY=Et(()=>b("option",{value:"",disabled:""},"Country",-1)),aY=["value"],lY={key:0,class:"shake invalid-field-text"},cY=Et(()=>b("hr",{class:"hr-line mb-3"},null,-1)),dY=Et(()=>b("h6",{class:"headline-text title-text-color tw-outline-none mb-3"},"Payment Information",-1)),uY={class:"order-form-input"},fY={key:1,ref:"card"},hY={key:10,class:""},pY=Et(()=>b("hr",{class:"hr-line"},null,-1)),mY=Et(()=>b("h6",{class:"headline-text title-text-color tw-outline-none"},"Shipping Options",-1)),gY={style:{padding:"15px 0","margin-top":"15px","background-color":"white",color:"#888888","border-radius":"5px",border:"1px solid #f3f3f3"}},_Y={class:"shipping-radio-parent"},yY=["value","id"],bY=["for"],vY={style:{display:"flex","flex-wrap":"wrap"}},xY=J("Courier company: "),wY={style:{display:"flex","align-items":"center"}},kY=["src"],CY=J(" USPS"),SY=["src"],TY=J(" DHL"),EY=["src"],OY=J(" FedEx"),AY=["src"],DY=J(" UPS"),MY={key:4,class:"tw-flex"},PY=["src"],NY=J(" DTDC "),IY={key:0},RY={key:11},BY=Et(()=>b("hr",{class:"hr-line mb-0"},null,-1)),LY={class:"d-flex align-items-center"},FY=Et(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg","enable-background":"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor"},[b("rect",{fill:"none",height:"24",width:"24"}),b("path",{d:"M15,5l-1.41,1.41L18.17,11H2V13h16.17l-4.59,4.59L15,19l7-7L15,5z"})],-1)),qY=[FY],HY=["value"],zY=["innerHTML"],UY={key:0,class:"timer-section"},VY={key:0,style:{color:"#000000"},class:"bump-timer"},jY=J("Lightning deal | Ends in "),WY={key:0},KY={key:1,style:{color:"#000000"},class:"bump-timer"},GY=J("Lightning deal | Ends in "),YY={key:0},JY={key:2,style:{color:"#000000"},class:"bump-timer"},ZY=J("Lightning deal | Ends in "),XY={key:0},QY={key:3,style:{color:"#000000"},class:"bump-timer"},$Y=J("Lightning deal | Ends in "),eJ={key:0},tJ={key:4,style:{color:"#000000"},class:"bump-timer"},nJ=J("Lightning deal | Ends in "),iJ={key:0},rJ={key:5,style:{color:"#000000"},class:"bump-timer"},sJ=J("Lightning deal | Ends in "),oJ={key:0},aJ=["innerHTML"],lJ={key:1,class:"mt-4 d-flex justify-content-center"},cJ=["src"],dJ=Et(()=>b("hr",{class:"hr-line"},null,-1)),uJ=Et(()=>b("div",{class:""},[b("h6",{class:"headline-text title-text-color tw-outline-none"},"Order Summary")],-1)),fJ={key:12,class:"mt-cus",style:{color:"#000000","font-weight":"500","font-family":"'Helvetica'","letter-spacing":"0.45px"}},hJ={key:0,class:"flex-box-div"},pJ={class:"fonts-popins"},mJ=Et(()=>b("br",null,null,-1)),gJ={key:0,style:{"letter-spacing":"0.3px","font-size":"14px","margin-left":"2px"}},_J={key:0},yJ={key:1},bJ={key:1,class:"flex-box-div flex-box-mt-5"},vJ=Et(()=>b("p",{class:"fonts-popins"},"Special Discount:",-1)),xJ={key:2,class:"info mt-2"},wJ=J(" ⓘ Time Left "),kJ={key:0},CJ=J(" today, please submit order as soon as possible. "),SJ={key:3,class:"flex-box-div flex-box-mt-5"},TJ=Et(()=>b("p",{class:"fonts-popins"},"Coupon Discount:",-1)),EJ={class:"fonts-popins"},OJ={style:{opacity:".7"}},AJ=Et(()=>b("hr",{class:"hr-line"},null,-1)),DJ={class:"flex-box-div"},MJ=Et(()=>b("p",{class:"fonts-popins"},"Subtotal:",-1)),PJ={style:{opacity:".7"}},NJ={key:4,class:"flex-box-div flex-box-mt-5"},IJ=Et(()=>b("p",{class:"fonts-popins"},"Shipping:",-1)),RJ={key:5},BJ={class:"info mt-1"},LJ=Et(()=>b("div",{class:"flex-box-div flex-box-mt-10"},[b("p",{class:"fonts-popins"},"Sales tax:"),b("p",{style:{opacity:".7"}},"$0.00")],-1)),FJ=Et(()=>b("hr",{class:"hr-line"},null,-1)),qJ={key:6,class:"flex-box-div"},HJ=Et(()=>b("p",{style:{"font-size":"18px","font-weight":"700"}},"Order total:",-1)),zJ={style:{"font-size":"18px","font-weight":"700"}},UJ={key:7,class:"flex-box-div mt-1"},VJ=Et(()=>b("hr",{class:"hr-line mb-1"},null,-1)),jJ=["disabled"],WJ={key:0},KJ=["innerHTML"],GJ={key:0},YJ={key:0,class:"end-btn-bottom"},JJ={class:"text-nowrap"},ZJ={key:0},XJ={key:1,class:"end-btn-bottom"},QJ={class:"text-nowrap"},$J={key:0},eZ={key:2,class:"end-btn-bottom"},tZ={class:"text-nowrap"},nZ={key:0},iZ={key:3,class:"end-btn-bottom"},rZ={class:"text-nowrap"},sZ={key:0},oZ={key:4,class:"end-btn-bottom"},aZ={class:"text-nowrap"},lZ={key:0},cZ={key:5,class:"end-btn-bottom"},dZ={class:"text-nowrap"},uZ={key:0},fZ={class:"flex-end-shield-div"},hZ=Et(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 448 512"},[b("path",{d:"M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"})],-1)),pZ=J("   "),mZ=J(" for the past 7 days "),gZ={class:"flex-end-shield-div"},_Z=["fill"],yZ=Et(()=>b("path",{d:"M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8V444.8C394 378 431.1 230.1 432 141.4L256 66.8l0 0z"},null,-1)),bZ=[yZ],vZ=J("   "),xZ=Et(()=>b("p",null," Security certification ",-1)),wZ=Et(()=>b("p",{style:{"font-size":"14px"},class:"end-text"},"Your payment information is safe with us. We do not share",-1));function kZ(n,t,e,i,r,s){const o=at("Alert"),a=at("VideoElement"),c=at("ImageElement"),d=at("productList"),f=at("productOption"),h=at("loader"),g=at("cardElement");return S(),A("section",{class:X(e.element.step=="one"?"tw-mt-5":"")},[b("div",TK,[EK,e.element.step!="one"&&e.scarcitySetting&&e.scarcitySetting.alert_on_page&&e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger?(S(),qe(o,{key:0,scarcitySetting:e.scarcitySetting,orderStepSetting:e.orderStepSetting,timesale:e.timesale,dimesale:e.dimesale,coupon:e.coupon,shipping_timer:e.shipping_timer,scarcity_coupon_timer:e.scarcity_coupon_timer,free_shipping_timer:e.free_shipping_timer,discount:e.discount,discount_timer:e.discount_timer,discountedPrice:s.discountedPrice,timesale_timer:e.timesale_timer,dimesale_timer:e.dimesale_timer,order_diversion:e.order_diversion,diversion_timer:e.diversion_timer},null,8,["scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","discountedPrice","timesale_timer","dimesale_timer","order_diversion","diversion_timer"])):R("",!0),e.orderStepSetting&&e.orderStepSetting.coupons_on_step2&&(!s.couponTimerExpired||e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0)?(S(),A("div",OK,[b("h6",{class:"form-title title-text-color tw-outline-none",innerHTML:e.element.promo_code_title},null,8,AK),e.coupon?(S(),A("p",{key:0,class:"font-weight-normal fonts-popins tw-text-[13px] mb-2",style:ke([{"font-size":"13px"},{color:e.element?e.element.form_label_color:"#000000"}])},[b("span",null,[DK,e.coupon.include_limited_units&&!e.coupon.include_time_limitation?(S(),A("span",MK,[PK,b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"}),class:X("tw-font-semibold")},_(e.coupon.unit),5),NK])):R("",!0),!e.coupon.include_limited_units&&e.coupon.include_time_limitation?(S(),A("span",IK,[RK,b("span",BK,[e.scarcity_coupon_timer.days>0?(S(),A("span",LK,_(e.scarcity_coupon_timer.days)+"d: ",1)):R("",!0),b("span",null,_(e.scarcity_coupon_timer.hours)+"h: ",1),J(_(e.scarcity_coupon_timer.minutes)+"m: "+_(e.scarcity_coupon_timer.seconds)+"s",1)]),FK])):R("",!0),e.coupon.include_limited_units&&e.coupon.include_time_limitation?(S(),A("span",qK,[HK,b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"}),class:X("tw-font-semibold")},_(e.coupon.unit),5),zK,b("span",UK,[e.scarcity_coupon_timer.days>0?(S(),A("span",VK,_(e.scarcity_coupon_timer.days)+"d: ",1)):R("",!0),b("span",null,_(e.scarcity_coupon_timer.hours)+"h: ",1),J(_(e.scarcity_coupon_timer.minutes)+"m: "+_(e.scarcity_coupon_timer.seconds)+"s",1)]),jK])):R("",!0),WK])],4)):R("",!0),b("div",KK,[b("div",GK,[Re(b("input",{type:"text",placeholder:"Promo Code","onUpdate:modelValue":t[0]||(t[0]=m=>e.applyCoupon.couponCode=m),onKeyup:t[1]||(t[1]=Kg((...m)=>s.checkCouponCode&&s.checkCouponCode(...m),["enter"])),class:"input-field promo-input"},null,544),[[wt,e.applyCoupon.couponCode]]),b("div",{class:X(["apply-btn tw-flex tw-items-center tw-justify-center",e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?"opacity-20":""]),style:{color:"rgb(0, 0, 0)"},onClick:t[2]||(t[2]=(...m)=>s.checkCouponCode&&s.checkCouponCode(...m))},"Apply",2)])]),e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?(S(),A("span",YK,"Coupon applied successfully, you saved $"+_(e.applyCoupon.couponDiscount.toFixed(2)),1)):R("",!0),e.applyCoupon.couponChecked&&e.applyCoupon.isCouponInvalid?(S(),A("span",JK,"Invalid coupon")):R("",!0)])):R("",!0),e.orderStepSetting&&e.orderStepSetting.coupons_on_step2&&(!s.couponTimerExpired||e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0)?(S(),A("hr",ZK)):R("",!0),e.element.is_media_block&&e.element.media_type=="video"&&e.element.media_video?(S(),A("section",XK,[ct(a,{element:e.element},null,8,["element"]),QK])):R("",!0),e.element.is_media_block&&e.element.media_type=="image"&&e.element.media_image?(S(),A("section",$K,[ct(c,{element:e.element},null,8,["element"]),eG])):R("",!0),e.element.show_variant_on=="tab2"&&e.product&&e.product.attributes&&e.product.attributes.length>0&&e.product.is_variants?(S(),A("section",tG,[nG,ct(d,{product:e.product,isProductLoading:e.isProductLoading,selectedProduct:e.selectedProduct,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selectedProduct","onUpdatePrice"]),r.product_combination_required_error?(S(),A("span",iG,"Please select variant")):R("",!0),rG])):R("",!0),e.element.show_variant_on=="tab2"&&e.product&&e.product.product_options&&e.product.product_options.length>0&&e.product.add_product_option?(S(),A("section",sG,[oG,ct(f,{product:e.product,isProductLoading:e.isProductLoading,selected_option_combination:e.selected_option_combination,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selected_option_combination","onUpdatePrice"]),s.showPaymentLabel?(S(),A("hr",aG)):R("",!0)])):R("",!0),s.showPaymentLabel?(S(),A("h6",lG,"Payment Option")):R("",!0),s.productPrice&&r.showOneTime?(S(),A("div",{key:8,class:X(["",e.payment_option&&e.payment_option.length?"mb-2":"mb-4"])},[b("div",{style:{color:"#000000","min-height":"68px","background-color":"#ffffff"},class:X(["tw-p-3 billing-option tw-items-center tw-flex tw-border-transparent tw-cursor-pointer tw-space-x-2 tw-text-[#666666] tw-rounded-sm tw-transition-colors tw-ease-in-out tw-mb-4 payment-box",r.payment_option_id=="one-time"?"active":""])},[Re(b("input",{type:"radio",class:X(["tw-accent-["+e.element.primary_color+"]","radio-input"]),checked:"","onUpdate:modelValue":t[3]||(t[3]=m=>r.payment_option_id=m),value:"one-time",name:"payment_options",id:"payment_options-1"},null,2),[[Zr,r.payment_option_id]]),b("div",cG,[s.productPriceOption&&s.discountedPrice?(S(),A("div",dG,[b("label",uG,[s.productPriceOption&&s.discountedPrice?(S(),A("p",fG,_(e.product.name)+": ",1)):R("",!0),b("p",hG,[pG,b("del",null,"$"+_(s.productPriceOption?s.productPriceOption.toFixed(2):""),1)])])])):(S(),A("div",mG,[b("label",gG,[b("p",_G,_(e.product.name),1),e.price&&e.price.type=="product_option"?(S(),A("p",yG,_(s.getPrductName?"+ "+s.getPrductName:""),1)):R("",!0)])])),e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?(S(),A("div",bG,[b("label",vG,[b("p",xG,[b("del",wG,"$"+_(s.productPriceOption.toFixed(2)),1),J("   $"+_((s.productPriceOption-e.applyCoupon.couponDiscount).toFixed(2)),1)]),b("p",kG,"You saved $"+_(e.applyCoupon.couponDiscount.toFixed(2))+" with discount code ",1),b("p",CG,"You save $"+_(e.applyCoupon.couponDiscount.toFixed(2)),1)])])):(S(),A("div",SG,[b("label",TG,[b("p",EG,_(s.productPriceOption-s.discountedPrice>0?"$"+(s.productPriceOption-s.discountedPrice).toFixed(2):"FREE"),1)])]))])],2)],2)):R("",!0),(S(!0),A(He,null,bt(r.showPaymentOption?e.payment_option:[],(m,y)=>(S(),A("div",{key:y,class:X({"mb-4":e.payment_option&&e.payment_option.length-1==y})},[b("div",{style:{color:"#000000","min-height":"68px","background-color":"#ffffff"},class:X(["tw-p-3 billing-option tw-items-center tw-flex tw-border-transparent tw-cursor-pointer tw-space-x-2 tw-text-[#666666] tw-rounded-sm tw-transition-colors tw-ease-in-out tw-mb-4 payment-box",r.payment_option_id==m.id?"active":""])},[Re(b("input",{id:`payment_options-sub-${y}`,type:"radio",class:X(["tw-accent-["+e.element.primary_color+"]","radio-input"]),name:"payment_options",value:m.id,"onUpdate:modelValue":t[4]||(t[4]=k=>r.payment_option_id=k)},null,10,OG),[[Zr,r.payment_option_id]]),b("div",AG,[b("div",null,[b("label",{class:"cursor-pointer mb-0",for:`payment_options-sub-${y}`},[b("p",MG,_(e.product.name),1),e.price&&e.price.type=="product_option"?(S(),A("p",PG,_(s.getPrductName?"+ "+s.getPrductName:""),1)):R("",!0)],8,DG)]),b("span",NG,"$"+_(m.amount?m.amount.toFixed(2):"")+" / "+_(m.billing_period),1)])],2),Re(b("div",IG,[Re(b("input",{id:`payment_options-trail-${y}`,type:"checkbox",class:"mr-2 cursor-pointer","onUpdate:modelValue":k=>m.is_trial_checked=k},null,8,RG),[[rr,m.is_trial_checked]]),b("label",{for:`payment_options-trail-${y}`,class:"mb-0"},"Get started with only $"+_(m.trial_amount)+" for the initial "+_(m.trial_period)+" days, and then just $"+_(m.amount.toFixed(2))+"/"+_(m.billing_period)+". You can cancel it anytime.",9,BG)],512),[[jo,m.is_trial&&m.id==r.payment_option_id]])],2))),128)),s.showAddress&&e.element.show_shipping_on=="tab2"&&(e.element.shipping_address&&e.element.shipping_address.is_show||e.element.city&&e.element.city.is_show||e.element.state&&e.element.state.is_show||e.element.postal_code&&e.element.postal_code.is_show||e.element.country&&e.element.country.is_show)?(S(),A("section",LG,[FG,b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text",innerHTML:e.element.shipping_title},null,8,qG),e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",HG,[Re(b("input",{placeholder:e.element.shipping_address.placeholder,type:"text",id:`shipping-address-${e.element.id}`,"onUpdate:modelValue":t[5]||(t[5]=m=>e.customer.address=m),name:"address",class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete",{"invalid-field-border":r.validation.shipping_address.is_required_error}])},null,10,zG),[[wt,e.customer.address]]),r.validation.shipping_address.is_required_error?(S(),A("span",UG,"This field is required")):R("",!0)])):R("",!0),e.element.is_additional_address_show&&!r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",{key:1,class:"add-text",onClick:t[6]||(t[6]=(...m)=>s.updateAddressStatus&&s.updateAddressStatus(...m))},"+ Add apartment, suite, etc.")):R("",!0),r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",VG,[Re(b("input",{placeholder:"Apartment, suite, etc. (optional)",type:"text",id:`shipping-address-two-${e.element.id}`,"onUpdate:modelValue":t[7]||(t[7]=m=>e.customer.address2=m),name:"address2",class:"input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete"},null,8,jG),[[wt,e.customer.address2]])])):R("",!0),b("div",WG,[e.element.city&&e.element.city.is_show?(S(),A("div",KG,[Re(b("input",{placeholder:e.element.city.placeholder,type:"text","onUpdate:modelValue":t[8]||(t[8]=m=>e.customer.city=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.city.is_required_error}])},null,10,GG),[[wt,e.customer.city]]),r.validation.city.is_required_error?(S(),A("span",YG,"This field is required")):R("",!0)])):R("",!0),e.element.state&&e.element.state.is_show?(S(),A("div",JG,[Re(b("select",{name:"",id:"",placeholder:e.element.state.placeholder,"onUpdate:modelValue":t[9]||(t[9]=m=>e.customer.state=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.state.is_required_error}])},[XG,(S(!0),A(He,null,bt(e.states,(m,y)=>(S(),A("option",{key:y,value:m},_(m),9,QG))),128))],10,ZG),[[Ui,e.customer.state]]),r.validation.state.is_required_error?(S(),A("span",$G,"This field is required")):R("",!0)])):R("",!0)]),b("div",eY,[e.element.postal_code&&e.element.postal_code.is_show?(S(),A("div",tY,[Re(b("input",{placeholder:e.element.postal_code.placeholder,type:"text","onUpdate:modelValue":t[10]||(t[10]=m=>e.customer.postal_code=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.postal_code.is_required_error}])},null,10,nY),[[wt,e.customer.postal_code]]),r.validation.postal_code.is_required_error?(S(),A("span",iY,"This field is required")):R("",!0)])):R("",!0),e.element.country&&e.element.country.is_show?(S(),A("div",rY,[Re(b("select",{name:"",id:"",placeholder:e.element.country.placeholder,"onUpdate:modelValue":t[11]||(t[11]=m=>e.customer.country=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.country.is_required_error}])},[oY,(S(!0),A(He,null,bt(e.countries,(m,y)=>(S(),A("option",{key:y,value:m},_(m),9,aY))),128))],10,sY),[[Ui,e.customer.country]]),r.validation.country.is_required_error?(S(),A("span",lY,"This field is required")):R("",!0)])):R("",!0)])])):R("",!0),cY,dY,b("div",uY,[r.isPaymentProcessor?(S(),qe(h,{key:0})):R("",!0),r.payment_mode=="stripe"?(S(),A("div",fY,null,512)):r.payment_mode=="epd"||r.payment_mode=="nmi"?(S(),qe(g,{key:2,ref:"customCard",onMakeEpdPayment:s.makeEpdPayment},null,8,["onMakeEpdPayment"])):R("",!0)]),e.orderStepSetting&&e.orderStepSetting.shipping_on_step2&&s.productShipping&&s.productShipping.length>1?(S(),A("div",hY,[pY,mY,b("div",gY,[(S(!0),A(He,null,bt(s.productShipping,(m,y)=>(S(),A("div",{key:y},[b("span",_Y,[Re(b("input",{type:"radio",name:"shipping-option",value:m.id,"onUpdate:modelValue":t[12]||(t[12]=k=>r.selectedShippingId=k),id:`soption_${y}`},null,8,yY),[[Zr,r.selectedShippingId]]),b("label",{for:`soption_${y}`},[b("p",{class:"shipping-radio-parent-head",style:ke({color:r.selectedShippingId==m.id?e.element.primary_color:""})},[J(_(m.shipping_name)+" ",1),b("span",null,"  "+_(m.price+s.productShippingPrice>0?"$"+(m.price+s.productShippingPrice).toFixed(2):"FREE"),1)],4),b("p",vY,[xY,b("span",wY,[m.is_usps?(S(),A("span",{key:0,class:X(["tw-flex",m.is_dhl||m.is_fedex||m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/usps.png`,class:"delivery-brand",alt:"usps"},null,8,kY),CY],2)):R("",!0),m.is_dhl?(S(),A("span",{key:1,class:X(["tw-flex",m.is_fedex||m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/dhl.png`,class:"delivery-brand",alt:"dhl"},null,8,SY),TY],2)):R("",!0),m.is_fedex?(S(),A("span",{key:2,class:X(["tw-flex",m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/fedex.png`,class:"delivery-brand",alt:"fedex"},null,8,EY),OY],2)):R("",!0),m.is_ups?(S(),A("span",{key:3,class:X(["tw-flex",m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/ups.png`,class:"delivery-brand",alt:"ups"},null,8,AY),DY],2)):R("",!0),m.is_dtdc?(S(),A("span",MY,[b("img",{src:`${r.assetUrl}/images/dtdc.png`,class:"delivery-brand",alt:"dtdc"},null,8,PY),NY])):R("",!0)])]),m.deliver_start_day&&m.deliver_end_day?(S(),A("p",IY,"Delivery: "+_(m.deliver_start_day)+" - "+_(m.deliver_end_day)+" Days",1)):R("",!0)],8,bY)])]))),128))])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.bump_on_step2&&e.product&&e.product.product_bump_offer&&e.product.product_bump_offer.length>0?(S(),A("div",RY,[BY,(S(!0),A(He,null,bt(e.product.product_bump_offer,(m,y)=>(S(),A("div",{class:"bump-root",key:y},[m?(S(),A("div",{key:0,style:ke(s.bumpCssVars(m)),class:"bump-main"},[b("div",{style:ke({"background-color":m?m.highlight_color:"#F4D657"}),class:"bump-inside"},[b("div",LY,[b("i",{style:ke({color:m?m.icon_color:"#6F161A"}),class:"bump-arrow-icon"},qY,4),Re(b("input",{type:"checkbox","onUpdate:modelValue":t[13]||(t[13]=k=>r.usedBumpOffersIds=k),value:m.id,class:"tw-mr-3"},null,8,HY),[[rr,r.usedBumpOffersIds]]),b("label",{for:"",style:ke({color:m?m.headline_color:"#6F161A"}),class:"bump-headline",innerHTML:m.headline},null,12,zY)])],4),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting&&e.scarcitySetting.countdown_on_bump?(S(),A("section",UY,[e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.scarcity_coupon_timer?(S(),A("span",VY,[jY,e.scarcity_coupon_timer.days&&e.scarcity_coupon_timer.days>0?(S(),A("span",WY,_(e.scarcity_coupon_timer.days)+" : ",1)):R("",!0),J(_(e.scarcity_coupon_timer.hours)+" : "+_(e.scarcity_coupon_timer.minutes)+" : "+_(e.scarcity_coupon_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer&&!s.shippingTimerExpired?(S(),A("span",KY,[GY,e.free_shipping_timer.days&&e.free_shipping_timer.days>0?(S(),A("span",YY,_(e.free_shipping_timer.days)+" : ",1)):R("",!0),J(_(e.free_shipping_timer.hours)+" : "+_(e.free_shipping_timer.minutes)+" : "+_(e.free_shipping_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer?(S(),A("span",JY,[ZY,e.discount_timer.days&&e.discount_timer.days>0?(S(),A("span",XY,_(e.discount_timer.days)+" : ",1)):R("",!0),J(_(e.discount_timer.hours)+" : "+_(e.discount_timer.minutes)+" : "+_(e.discount_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale_timer?(S(),A("span",QY,[$Y,e.timesale_timer.days&&e.timesale_timer.days>0?(S(),A("span",eJ,_(e.timesale_timer.days)+" : ",1)):R("",!0),J(_(e.timesale_timer.hours)+" : "+_(e.timesale_timer.minutes)+" : "+_(e.timesale_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale_timer?(S(),A("span",tJ,[nJ,e.dimesale_timer.days&&e.dimesale_timer.days>0?(S(),A("span",iJ,_(e.dimesale_timer.days)+" : ",1)):R("",!0),J(_(e.dimesale_timer.hours)+" : "+_(e.dimesale_timer.minutes)+" : "+_(e.dimesale_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer?(S(),A("span",rJ,[sJ,e.diversion_timer.days&&e.diversion_timer.days>0?(S(),A("span",oJ,_(e.diversion_timer.days)+" : ",1)):R("",!0),J(_(e.diversion_timer.hours)+" : "+_(e.diversion_timer.minutes)+" : "+_(e.diversion_timer.seconds),1)])):R("",!0)])):R("",!0),b("p",{style:ke({color:m?m.text_color:"#3E3D37"}),class:"bump-description",innerHTML:m.description},null,12,aJ),m.is_image_show&&m.image?(S(),A("section",lJ,[b("img",{class:"bump-image",src:`${r.assetUrl}/storage/${m.image}`},null,8,cJ)])):R("",!0)],4)):R("",!0)]))),128))])):R("",!0),dJ,uJ,e.product?(S(),A("div",fJ,[s.productPrice?(S(),A("div",hJ,[b("p",pJ,[J(_(e.product.name)+" ",1),mJ,e.price&&e.price.type=="product_option"&&s.getPrductName?(S(),A("span",gJ," + "+_(s.getPrductName),1)):R("",!0)]),s.subTotal0?(S(),A("span",kJ,_(e.discount_timer.days)+":",1)):R("",!0),b("span",null,_(e.discount_timer.hours)+":",1),J(_(e.discount_timer.minutes)+":"+_(e.discount_timer.seconds),1)],4),CJ])):R("",!0),e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0?(S(),A("div",SJ,[TJ,b("p",{style:ke({color:e.element?e.element.primary_color:"#30C79E"})},"-$"+_(e.applyCoupon.couponDiscount.toFixed(2)),5)])):R("",!0),(S(!0),A(He,null,bt(s.usedBumpDetails,(m,y)=>(S(),A("div",{class:"flex-box-div flex-box-mt-5",key:y},[b("p",EJ,_(m.name),1),b("p",OJ,_(m.product&&m.product.price&&m.product.price>0?"$"+m.product.price.toFixed(2):"FREE"),1)]))),128)),AJ,b("div",DJ,[MJ,b("p",PJ,"$"+_(s.subTotal.toFixed(2)),1)]),s.productShipping&&s.productShipping.length>0?(S(),A("div",NJ,[IJ,b("p",{class:X(s.shippingCharge>0?"":"text-success")},_(s.shippingCharge>0?"$"+s.shippingCharge.toFixed(2):"FREE"),3)])):R("",!0),s.selectedShipping?(S(),A("div",RJ,[b("p",BJ,"Delivery: "+_(s.selectedShipping.deliver_start_day)+" - "+_(s.selectedShipping.deliver_end_day)+" Days",1)])):R("",!0),LJ,FJ,s.totalCartValue?(S(),A("div",qJ,[HJ,b("p",zJ,"$"+_(s.totalCartValue.toFixed(2)),1)])):R("",!0),e.element.is_you_saved_title_show&&s.savedAmount&&s.savedAmount>0?(S(),A("div",UJ,[b("p",{style:ke([{color:e.element?e.element.primary_color:"#30C79E"},{"font-size":"18px","font-weight":"700"}])},"You saved:",4),b("p",{style:ke([{color:e.element?e.element.primary_color:"#30C79E"},{"font-size":"18px","font-weight":"700"}])},"$"+_(s.savedAmount.toFixed(2)),5)])):R("",!0),VJ,b("button",{class:X(["end-btn billing-button",[r.isButtonDisable?"opacity-7":"",e.element.button_type=="square"?"button-squre":e.element.button_type=="round"?"button-round":""]]),onClick:t[14]||(t[14]=(...m)=>s.makePayment&&s.makePayment(...m)),disabled:r.isButtonDisable},[r.is_loader?R("",!0):(S(),A("div",WJ,[b("p",{class:"end-btn-top",innerHTML:e.element.step_2_button_text},null,8,KJ),e.scarcitySetting&&e.scarcitySetting.countdown_on_button?(S(),A("section",GJ,[e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale_timer?(S(),A("p",YJ,[b("b",JJ,[e.timesale_timer.days&&e.timesale_timer.days>0?(S(),A("span",ZJ,_(e.timesale_timer.days)+":",1)):R("",!0),J(_(e.timesale_timer.hours)+":"+_(e.timesale_timer.minutes)+":"+_(e.timesale_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale_timer?(S(),A("p",XJ,[b("b",QJ,[e.dimesale_timer.days&&e.dimesale_timer.days>0?(S(),A("span",$J,_(e.dimesale_timer.days)+":",1)):R("",!0),J(_(e.dimesale_timer.hours)+":"+_(e.dimesale_timer.minutes)+":"+_(e.dimesale_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.scarcity_coupon_timer?(S(),A("p",eZ,[b("b",tZ,[e.scarcity_coupon_timer.days&&e.scarcity_coupon_timer.days>0?(S(),A("span",nZ,_(e.scarcity_coupon_timer.days)+":",1)):R("",!0),J(_(e.scarcity_coupon_timer.hours)+":"+_(e.scarcity_coupon_timer.minutes)+":"+_(e.scarcity_coupon_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer&&!s.shippingTimerExpired?(S(),A("p",iZ,[b("b",rZ,[e.free_shipping_timer.days&&e.free_shipping_timer.days>0?(S(),A("span",sZ,_(e.free_shipping_timer.days)+":",1)):R("",!0),J(_(e.free_shipping_timer.hours)+":"+_(e.free_shipping_timer.minutes)+":"+_(e.free_shipping_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer?(S(),A("p",oZ,[b("b",aZ,[e.discount_timer.days&&e.discount_timer.days>0?(S(),A("span",lZ,_(e.discount_timer.days)+":",1)):R("",!0),J(_(e.discount_timer.hours)+":"+_(e.discount_timer.minutes)+":"+_(e.discount_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer?(S(),A("p",cZ,[b("b",dZ,[e.diversion_timer.days&&e.diversion_timer.days>0?(S(),A("span",uZ,_(e.diversion_timer.days)+":",1)):R("",!0),J(_(e.diversion_timer.hours)+":"+_(e.diversion_timer.minutes)+":"+_(e.diversion_timer.seconds),1)])])):R("",!0)])):R("",!0)])),r.is_loader?(S(),qe(h,{key:1})):R("",!0)],10,jJ),b("div",fZ,[hZ,pZ,b("p",null,[b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"})}," Best Seller ",4),mZ])]),b("div",gZ,[(S(),A("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 512 512",fill:e.element?e.element.primary_color:"#30C79E"},bZ,8,_Z)),vZ,xZ]),wZ])):R("",!0)])],2)}const CZ=Nt(SK,[["render",kZ],["__scopeId","data-v-012d55bd"]]);const SZ={props:{element:{type:Object},product:{type:Object},price:{type:Object},activate_tab:{require:!1},selected_option_combination:{require:!1},selectedProduct:{type:Array},isProductLoading:{type:Boolean},loader:{type:Boolean},customer:{type:Object},countries:{type:Array},states:{type:Array},salesFunnel:{type:Object},orderStepSetting:{type:Object}},components:{productList:ty,productOption:ny,Spinnerloader:Gs},data(){return{validation:{first_name:{is_required_error:!1},last_name:{is_required_error:!1},email:{is_required_error:!1,is_email_error:!1},phone:{is_required_error:!1},country:{is_required_error:!1},shipping_address:{is_required_error:!1},city:{is_required_error:!1},postal_code:{is_required_error:!1},state:{is_required_error:!1},product_combination:{is_required_error:!1}},flagCount:0,errorFlags:[],phoneInput:null,phoneError:null,selectedCombination:{},showAdditionalAddress:!1}},computed:{showAddress(){return!(this.product&&this.product.type=="digital"&&this.orderStepSetting&&!this.orderStepSetting.is_physical_address)}},methods:{updatePrice(n){this.selectedCombination=n.price,this.$emit("updatePrice",n)},isEmail(n){if(n){var t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;return t.test(n)}return!0},isValidate(){if(this.flagCount=0,this.element.first_name&&this.element.first_name.is_show&&this.element.first_name.is_required&&!this.customer.first_name.trim()?(this.validation.first_name.is_required_error=!0,this.flagCount++):this.validation.first_name.is_required_error=!1,this.element.last_name&&this.element.last_name.is_show&&this.element.last_name.is_required&&!this.customer.last_name.trim()?(this.validation.last_name.is_required_error=!0,this.flagCount++):this.validation.last_name.is_required_error=!1,this.element.email&&this.element.email.is_show&&this.element.email.is_required&&!this.customer.email.trim()?(this.validation.email.is_required_error=!0,this.flagCount++):(this.validation.email.is_required_error=!1,this.isEmail(this.customer.email)?this.validation.email.is_email_error=!1:(this.validation.email.is_email_error=!0,this.flagCount++)),this.element.phone&&this.element.phone.is_show&&this.element.phone.is_required&&!this.customer.phone.trim())this.phoneError=null,this.validation.phone.is_required_error=!0,this.flagCount++;else if(this.phoneInput){const n=["Invalid number","Invalid country code","Number too short","Number too long","Invalid number"];if(this.customer.phone.trim(),this.phoneInput.isValidNumber())this.customer.phone=this.phoneInput.getNumber(intlTelInputUtils.numberFormat.NATIONAL),this.phoneError=null,this.validation.phone.is_required_error=!1;else{const e=this.phoneInput.getValidationError();e&&(this.validation.phone.is_required_error=!1,this.phoneError=n[e]??"Unexpected Format",this.flagCount++)}}else this.phoneError=null,this.validation.phone.is_required_error=!1;return this.element.show_variant_on=="tab1"&&this.activate_tab==1&&this.product&&this.product.attributes&&this.product.is_variants&&this.selectedProduct&&this.selectedProduct.filter(n=>n!=null).length!=this.product.attributes.length?(this.validation.product_combination.is_required_error=!0,this.flagCount++):this.validation.product_combination.is_required_error=!1,this.element.show_shipping_on=="tab2"||!this.showAddress?this.flagCount==0:(this.element.country&&this.element.country.is_show&&this.element.country.is_required&&!this.customer.country.trim()?(this.validation.country.is_required_error=!0,this.flagCount++):this.validation.country.is_required_error=!1,this.element.shipping_address&&this.element.shipping_address.is_show&&this.element.shipping_address.is_required&&!this.customer.address.trim()?(this.validation.shipping_address.is_required_error=!0,this.flagCount++):this.validation.shipping_address.is_required_error=!1,this.element.city&&this.element.city.is_show&&this.element.city.is_required&&!this.customer.city.trim()?(this.validation.city.is_required_error=!0,this.flagCount++):this.validation.city.is_required_error=!1,this.element.postal_code&&this.element.postal_code.is_show&&this.element.postal_code.is_required&&!this.customer.postal_code.trim()?(this.validation.postal_code.is_required_error=!0,this.flagCount++):this.validation.postal_code.is_required_error=!1,this.element.state&&this.element.state.is_show&&this.element.state.is_required&&!this.customer.state.trim()?(this.validation.state.is_required_error=!0,this.flagCount++):this.validation.state.is_required_error=!1,this.flagCount==0)},addCustomer(){if(this.phoneInput){const n=this.phoneInput.getSelectedCountryData();n&&(this.customer.country_code=n.dialCode)}this.isValidate()&&this.$emit("customerAdded",this.customer)},setupPhoneInput(){if(this.$refs&&this.$refs.phoneNumber){const n=this.$refs.phoneNumber;if(n){if(this.phoneInput=window.intlTelInput(n,{autoPlaceholder:"aggressive",utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",preferredCountries:["us","ca","gb","ie","ai","nz"]}),this.customer.country_code){const e=window.intlTelInputGlobals.getCountryData().find(i=>i.dialCode==this.customer.country_code);e&&this.phoneInput.setCountry(e.iso2)}this.phoneInput&&document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`)&&(document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`).tabIndex=-1)}}},updateAddressStatus(){setTimeout(()=>{this.showAdditionalAddress=!0},50)}},mounted(){let n=localStorage.getItem("set-default-data");if(n&&JSON.parse(n)){let t=JSON.parse(n);this.element.first_name.is_show&&t.first_name&&(this.customer.first_name=t.first_name),this.element.last_name.is_show&&t.last_name&&(this.customer.last_name=t.last_name),this.element.email.is_show&&t.email&&(this.customer.email=t.email),this.element.country.is_show&&t.country&&(this.customer.country=t.country),this.element.shipping_address.is_show&&t.address&&(this.customer.address=t.address),this.element.city.is_show&&t.city&&(this.customer.city=t.city),this.element.postal_code.is_show&&t.postal_code&&(this.customer.postal_code=t.postal_code),this.element.state.is_show&&t.state&&(this.customer.state=t.state),setTimeout(()=>{this.element.phone.is_show&&t.phone&&(this.customer.phone=t.phone)},200)}setTimeout(()=>{this.setupPhoneInput()},100)}},ra=n=>(lr("data-v-098c42fd"),n=n(),cr(),n),TZ={class:"order-form-input mb-0"},EZ={id:"shipping"},OZ={key:0,class:"tw-space-y-2 input-mb"},AZ={class:"tw-flex tw-flex-col tw-justify-between"},DZ=["placeholder"],MZ={key:0,class:"shake invalid-field-text"},PZ={key:1,class:"tw-space-y-2 input-mb"},NZ={class:"tw-flex tw-flex-col tw-justify-between"},IZ=["placeholder"],RZ={key:0,class:"shake invalid-field-text"},BZ={key:2,class:"tw-space-y-2 input-mb"},LZ={class:"tw-flex tw-flex-col"},FZ=["placeholder"],qZ={key:0,class:"shake invalid-field-text"},HZ={key:1,class:"shake invalid-field-text"},zZ={key:3,class:"email-offer-div"},UZ=ra(()=>b("div",{for:"email-me"},"Email me with news & offers",-1)),VZ=["id"],jZ={class:"tw-flex tw-flex-col"},WZ=["placeholder"],KZ={key:0,class:"shake invalid-field-text"},GZ={key:1,class:"shake invalid-field-text"},YZ={key:0},JZ=ra(()=>b("hr",{class:"hr-line"},null,-1)),ZZ=ra(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),XZ={key:0,class:"shake invalid-field-text"},QZ={key:1},$Z=ra(()=>b("hr",{class:"hr-line"},null,-1)),eX=ra(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),tX={key:2,class:"hr-line"},nX={key:3},iX=["innerHTML"],rX={key:0,class:"tw-flex tw-flex-col input-mb"},sX=["placeholder","id"],oX={key:0,class:"shake invalid-field-text"},aX={key:2,class:"tw-flex tw-flex-col input-mb"},lX=["id"],cX={class:"tw-flex tw-gap-4 input-mb"},dX={key:0,class:"tw-flex tw-flex-col tw-w-full"},uX=["placeholder"],fX={key:0,class:"shake invalid-field-text"},hX={key:1,class:"tw-flex tw-flex-col tw-w-full"},pX=["placeholder"],mX=ra(()=>b("option",{value:"",disabled:""},"State",-1)),gX=["value"],_X={key:0,class:"shake invalid-field-text"},yX={class:"tw-flex tw-gap-4 input-mb"},bX={key:0,class:"tw-flex tw-flex-col tw-w-full"},vX=["placeholder"],xX={key:0,class:"shake invalid-field-text"},wX={key:1,class:"tw-flex tw-flex-col tw-w-full"},kX=["placeholder"],CX=ra(()=>b("option",{value:"",disabled:""},"Country",-1)),SX=["value"],TX={key:0,class:"shake invalid-field-text"},EX=["disabled"],OX={key:0},AX=["innerHTML"],DX={key:1,class:"privacy_statement_box"};function MX(n,t,e,i,r,s){const o=at("productList"),a=at("productOption"),c=at("Spinnerloader");return S(),A("div",TZ,[b("section",EZ,[b("section",null,[e.element.first_name&&e.element.first_name.is_show?(S(),A("div",OZ,[b("section",AZ,[Re(b("input",{placeholder:e.element.first_name.placeholder,type:"text","onUpdate:modelValue":t[0]||(t[0]=d=>e.customer.first_name=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-w-full tw-m-0",{"invalid-field-border":r.validation.first_name.is_required_error}])},null,10,DZ),[[wt,e.customer.first_name]]),r.validation.first_name.is_required_error?(S(),A("span",MZ,"This field is required")):R("",!0)])])):R("",!0),e.element.last_name&&e.element.last_name.is_show?(S(),A("div",PZ,[b("section",NZ,[Re(b("input",{placeholder:e.element.last_name.placeholder,type:"text","onUpdate:modelValue":t[1]||(t[1]=d=>e.customer.last_name=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.last_name.is_required_error}])},null,10,IZ),[[wt,e.customer.last_name]]),r.validation.last_name.is_required_error?(S(),A("span",RZ,"This field is required")):R("",!0)])])):R("",!0),e.element.email&&e.element.email.is_show?(S(),A("div",BZ,[b("div",LZ,[Re(b("input",{placeholder:e.element.email.placeholder,type:"email","onUpdate:modelValue":t[2]||(t[2]=d=>e.customer.email=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.email.is_required_error}])},null,10,FZ),[[wt,e.customer.email]]),r.validation.email.is_required_error?(S(),A("span",qZ,"This field is required")):R("",!0),r.validation.email.is_email_error?(S(),A("span",HZ,"Please enter valid email")):R("",!0)])])):R("",!0),e.element.email&&e.element.email.is_show&&e.element.is_email_me_title_show?(S(),A("div",zZ,[Re(b("input",{type:"checkbox",id:"email-me","onUpdate:modelValue":t[3]||(t[3]=d=>e.customer.is_send_email=d)},null,512),[[rr,e.customer.is_send_email]]),UZ])):R("",!0),e.element.phone&&e.element.phone.is_show?(S(),A("div",{key:4,class:"tw-space-y-2 input-mb",id:`phone-number-${e.element.id}`},[b("div",jZ,[Re(b("input",{ref:"phoneNumber",placeholder:e.element.phone.placeholder,type:"text","onUpdate:modelValue":t[4]||(t[4]=d=>e.customer.phone=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.phone.is_required_error||r.phoneError}])},null,10,WZ),[[wt,e.customer.phone]]),r.validation.phone.is_required_error?(S(),A("span",KZ,"This field is required")):R("",!0),r.phoneError?(S(),A("span",GZ,_(r.phoneError),1)):R("",!0)])],8,VZ)):R("",!0)]),e.element.show_variant_on=="tab1"&&e.product&&e.product.attributes&&e.product.attributes.length>0&&e.product.is_variants?(S(),A("section",YZ,[JZ,ZZ,ct(o,{product:e.product,isProductLoading:e.isProductLoading,selectedProduct:e.selectedProduct,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selectedProduct","onUpdatePrice"]),r.validation.product_combination.is_required_error?(S(),A("span",XZ,"Please select variant")):R("",!0)])):R("",!0),e.element.show_variant_on=="tab1"&&e.product&&e.product.product_options&&e.product.product_options.length>0&&e.product.add_product_option?(S(),A("section",QZ,[$Z,eX,ct(a,{product:e.product,isProductLoading:e.isProductLoading,selected_option_combination:e.selected_option_combination,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selected_option_combination","onUpdatePrice"])])):R("",!0),e.element.show_shipping_on=="tab1"?(S(),A("hr",tX)):R("",!0),s.showAddress&&e.element.show_shipping_on=="tab1"&&(e.element.shipping_address&&e.element.shipping_address.is_show||e.element.city&&e.element.city.is_show||e.element.state&&e.element.state.is_show||e.element.postal_code&&e.element.postal_code.is_show||e.element.country&&e.element.country.is_show)?(S(),A("section",nX,[b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text",innerHTML:e.element.shipping_title},null,8,iX),e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",rX,[Re(b("input",{placeholder:e.element.shipping_address.placeholder,type:"text",name:"address",id:`shipping-address-${e.element.id}`,"onUpdate:modelValue":t[5]||(t[5]=d=>e.customer.address=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete",{"invalid-field-border":r.validation.shipping_address.is_required_error}])},null,10,sX),[[wt,e.customer.address]]),r.validation.shipping_address.is_required_error?(S(),A("span",oX,"This field is required")):R("",!0)])):R("",!0),e.element.is_additional_address_show&&!r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",{key:1,class:"add-text",onClick:t[6]||(t[6]=(...d)=>s.updateAddressStatus&&s.updateAddressStatus(...d))},"+ Add apartment, suite, etc.")):R("",!0),r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",aX,[Re(b("input",{placeholder:"Apartment, suite, etc. (optional)",type:"text",name:"address2",id:`shipping-address-two-${e.element.id}`,"onUpdate:modelValue":t[7]||(t[7]=d=>e.customer.address2=d),class:"input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete"},null,8,lX),[[wt,e.customer.address2]])])):R("",!0),b("div",cX,[e.element.city&&e.element.city.is_show?(S(),A("div",dX,[Re(b("input",{placeholder:e.element.city.placeholder,type:"text","onUpdate:modelValue":t[8]||(t[8]=d=>e.customer.city=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.city.is_required_error}])},null,10,uX),[[wt,e.customer.city]]),r.validation.city.is_required_error?(S(),A("span",fX,"This field is required")):R("",!0)])):R("",!0),e.element.state&&e.element.state.is_show?(S(),A("div",hX,[Re(b("select",{name:"",id:"",placeholder:e.element.state.placeholder,"onUpdate:modelValue":t[9]||(t[9]=d=>e.customer.state=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.state.is_required_error}])},[mX,(S(!0),A(He,null,bt(e.states,(d,f)=>(S(),A("option",{key:f,value:d},_(d),9,gX))),128))],10,pX),[[Ui,e.customer.state]]),r.validation.state.is_required_error?(S(),A("span",_X,"This field is required")):R("",!0)])):R("",!0)]),b("div",yX,[e.element.postal_code&&e.element.postal_code.is_show?(S(),A("div",bX,[Re(b("input",{placeholder:e.element.postal_code.placeholder,type:"text","onUpdate:modelValue":t[10]||(t[10]=d=>e.customer.postal_code=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.postal_code.is_required_error}])},null,10,vX),[[wt,e.customer.postal_code]]),r.validation.postal_code.is_required_error?(S(),A("span",xX,"This field is required")):R("",!0)])):R("",!0),e.element.country&&e.element.country.is_show?(S(),A("div",wX,[Re(b("select",{name:"",id:"",placeholder:e.element.country.placeholder,"onUpdate:modelValue":t[11]||(t[11]=d=>e.customer.country=d),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.country.is_required_error}])},[CX,(S(!0),A(He,null,bt(e.countries,(d,f)=>(S(),A("option",{key:f,value:d},_(d),9,SX))),128))],10,kX),[[Ui,e.customer.country]]),r.validation.country.is_required_error?(S(),A("span",TX,"This field is required")):R("",!0)])):R("",!0)])])):R("",!0)]),e.element.step=="two"?(S(),A("button",{key:0,class:X(["end-btn contact-button",[e.loader?"opacity-7":"",e.element.button_type=="square"?"button-squre":e.element.button_type=="round"?"button-round":""]]),onClick:t[12]||(t[12]=d=>s.addCustomer()),disabled:e.loader},[e.loader?R("",!0):(S(),A("div",OX,[b("p",{class:"end-btn-top mb-0",innerHTML:e.element.step_1_button_text},null,8,AX)])),e.loader?(S(),qe(c,{key:1})):R("",!0)],10,EX)):R("",!0),e.element.is_privacy_statement?(S(),A("div",DX,_(e.element.privacy_statement),1)):R("",!0)])}const PX=Nt(SZ,[["render",MX],["__scopeId","data-v-098c42fd"]]);const NX={props:{element:{type:Object},product:{type:Object},price:{type:Object},activate_tab:{require:!1},selected_option_combination:{require:!1},selectedProduct:{type:Array},isProductLoading:{type:Boolean},loader:{type:Boolean},countries:{type:Array},states:{type:Array},salesFunnel:{type:Object},dynamicClass:{type:String},nextPageUrl:{require:!1},stepData:{type:Object},scarcitySetting:{type:Object},orderStepSetting:{type:Object},timesale:{type:Object},dimesale:{type:Object},coupon:{type:Object},shipping_timer:{type:Object},scarcity_coupon_timer:{type:Object},free_shipping_timer:{type:Object},discount:{type:Object},discount_timer:{type:Object},applyCoupon:{type:Object},timesale_timer:{type:Object},dimesale_timer:{type:Object},type:{type:String},salesPage:{type:Object},order_diversion:{type:Object},diversion_timer:{type:Object},tid:{type:String},payment_option:{require:!1,default:[]},salesProduct:{require:!1},pcode:{type:String}},components:{productList:ty,productOption:ny,Spinnerloader:Gs,Alert:iy,loader:Gs,cardElement:m3,VideoElement:g3,ImageElement:_3},emits:["updatePrice","customerAdded"],data(){return{validation:{first_name:{is_required_error:!1},last_name:{is_required_error:!1},email:{is_required_error:!1,is_email_error:!1},phone:{is_required_error:!1},country:{is_required_error:!1},shipping_address:{is_required_error:!1},city:{is_required_error:!1},postal_code:{is_required_error:!1},state:{is_required_error:!1},product_combination:{is_required_error:!1}},flagCount:0,errorFlags:[],phoneInput:null,phoneError:null,selectedCombination:{},payment_mode:"stripe",stripeData:null,paymentElement:null,elements:null,isPaymentProcessor:!1,is_loader:!1,assetUrl:"https://api.poplinks.io",selectedShippingId:null,usedBumpOffersIds:[],flagCount:0,isButtonDisable:!1,selectedCombination:{},product_combination_required_error:!1,payment_option_id:"one-time",showOneTime:!0,showPaymentOption:!0,subscription_id:null,customer:{first_name:"",last_name:"",email:"",phone:"",country:"",address:"",address2:"",city:"",postal_code:"",state:"",country_code:"",is_send_email:!1},showAdditionalAddress:!1,program:null}},computed:{productPrice(){if(this.product&&this.payment_option_id=="one-time")return this.price&&this.price.price&&this.price.type=="product_option"?this.price.price:this.price&&this.price.price?this.product.price+this.price.price:this.product.price;if(this.payment_option_id){let n=this.payment_option.find(t=>t.id==this.payment_option_id);if(n&&this.price&&this.price.price)return n.is_trial_checked?n.trial_amount+this.price.price:n.amount+this.price.price;if(n)return n.is_trial_checked?n.trial_amount:n.amount}return 0},productPriceOption(){return this.product?this.price&&this.price.price&&this.price.type=="product_option"?this.price.price:this.price&&this.price.price?this.product.price+this.price.price:this.product.price:0},discountedPrice(){return this.discount_timer&&this.discount_timer.hours=="00"&&this.discount_timer.minutes=="00"&&this.discount_timer.seconds=="00"?0:this.productPrice&&this.discount&&this.discount.type=="fixed"&&this.productPrice>0?this.discount.price?parseFloat(this.discount.price):0:this.productPrice&&this.discount&&this.discount.type=="percentage"&&this.productPrice>0&&this.productPrice&&this.discount.percentage?this.productPrice*(this.discount.percentage/100):0},usedBumpDetails(){return this.usedBumpOffersIds&&this.usedBumpOffersIds.length>0&&this.product?this.product.product_bump_offer.filter(({id:n})=>this.usedBumpOffersIds.includes(n)):[]},selectedBumpData(){var n=[];return this.usedBumpDetails.map(t=>{var e={bump_offer_id:t.bump_offer_id,name:t.name,price:t.product&&t.product.price?t.product.price:0,bump_product_id:t.product&&t.product.id?t.product.id:null};n.push(e)}),n},bumpTotalValue(){if(this.usedBumpDetails&&this.usedBumpDetails.length>0){var n=0;return this.usedBumpDetails.map(t=>{t.product&&t.product.price&&t.product.price>0&&(n+=t.product.price)}),n}return 0},subTotal(){var n=this.productPrice+this.bumpTotalValue-this.discountedPrice;return this.recheckCouponCode(),this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0&&(n=n-this.applyCoupon.couponDiscount),n>0?n:0},productAmount(){var n=this.productPrice-this.discountedPrice;return this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0&&(n=n-this.applyCoupon.couponDiscount),n>0?n.toFixed(2):0},selectedShipping(){return this.selectedShippingId&&this.product&&this.product.product_shipping?this.product.product_shipping.find(n=>n.id==this.selectedShippingId):null},shippingCharge(){var n=0;return this.selectedShipping&&this.selectedShipping&&this.selectedShipping.price&&(n+=this.selectedShipping.price),this.price&&this.price.shipping_cost&&(n+=this.price.shipping_cost),n},productShippingPrice(){var n=0;return this.price&&this.price.shipping_cost&&(n=this.price.shipping_cost),n},totalCartValue(){var n=this.subTotal+this.shippingCharge;return n},bumpCssVars:function(){return function(n=null){return{"--description-bold-color":n&&n.bold_color?n.bold_color:"","--description-underline-color":n&&n.underline_color?n.underline_color:"","border-style":n&&n.underline_color?n.border_frame:"dashed","border-color":n&&n.border_color?n.border_color:"#d49087","background-color":n&&n.bg_color?n.bg_color:"#F9F6E9"}}},finalPrice(){return this.totalCartValue},productShipping(){if(this.shippingTimerExpired){if(this.shippingTimerExpired)return this.product&&this.product.product_shipping?this.product.product_shipping.filter(n=>n.is_show==1&&n.price>0):[]}else return this.product&&this.product.product_shipping?this.product.product_shipping.filter(n=>n.is_show==1):[];return[]},couponTimerExpired(){return!!(this.scarcity_coupon_timer&&this.scarcity_coupon_timer.hours=="00"&&this.scarcity_coupon_timer.minutes=="00"&&this.scarcity_coupon_timer.seconds=="00")},productName(){return this.price&&this.price.features?this.product.name+" "+this.price.features:this.product.name},shippingTimerExpired(){return!!(this.scarcitySetting&&this.scarcitySetting.scarcity_type=="free_shipping"&&this.shipping_timer&&this.free_shipping_timer&&this.free_shipping_timer.hours=="00"&&this.free_shipping_timer.minutes=="00"&&this.free_shipping_timer.seconds=="00")},selected_payment_option(){if(this.payment_option_id&&this.payment_option_id!="one-time"){let n=this.payment_option.find(t=>t.id==this.payment_option_id);if(n)return n}},showPaymentLabel(){return!(this.element.step=="two"&&(this.element.show_variant_on=="tab1"&&this.activate_tab==1||this.element.show_variant_on=="tab2"&&this.activate_tab==2)&&this.product&&this.product.product_options&&this.product.add_product_option)},getPrductName(){if(this.price&&this.price.features)return this.removeLeftOfString(this.price.features,"+")},savedAmount(){return this.discountedPrice+this.applyCoupon.couponDiscount},showAddress(){return!(this.product&&this.product.type=="digital"&&this.orderStepSetting&&!this.orderStepSetting.is_physical_address)}},watch:{finalPrice(n){if(this.elements){let t=n.toFixed(2)*100;const e=Math.round(t*100)/100,i=Math.max(0,e);this.elements.update({amount:i})}},shippingTimerExpired(){this.shippingTimerExpired&&(this.selectedShippingId=this.scarcitySetting&&this.scarcitySetting.default_product_shipping_id?this.scarcitySetting.default_product_shipping_id:null)}},methods:{updatePrice(n){this.selectedCombination=n.price,this.$emit("updatePrice",n)},isEmail(n){if(n){var t=/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;return t.test(n)}return!0},isValidate(){if(this.flagCount=0,this.element.first_name&&this.element.first_name.is_show&&this.element.first_name.is_required&&!this.customer.first_name.trim()?(this.validation.first_name.is_required_error=!0,this.flagCount++):this.validation.first_name.is_required_error=!1,this.element.last_name&&this.element.last_name.is_show&&this.element.last_name.is_required&&!this.customer.last_name.trim()?(this.validation.last_name.is_required_error=!0,this.flagCount++):this.validation.last_name.is_required_error=!1,this.element.email&&this.element.email.is_show&&this.element.email.is_required&&!this.customer.email.trim()?(this.validation.email.is_required_error=!0,this.flagCount++):(this.validation.email.is_required_error=!1,this.isEmail(this.customer.email)?this.validation.email.is_email_error=!1:(this.validation.email.is_email_error=!0,this.flagCount++)),this.element.phone&&this.element.phone.is_show&&this.element.phone.is_required&&!this.customer.phone.trim())this.phoneError=null,this.validation.phone.is_required_error=!0,this.flagCount++;else if(this.phoneInput){const n=["Invalid number","Invalid country code","Number too short","Number too long","Invalid number"];if(this.customer.phone.trim(),this.phoneInput.isValidNumber())this.customer.phone=this.phoneInput.getNumber(intlTelInputUtils.numberFormat.NATIONAL),this.phoneError=null,this.validation.phone.is_required_error=!1;else{const e=this.phoneInput.getValidationError();e&&(this.validation.phone.is_required_error=!1,this.phoneError=n[e]??"Unexpected Format",this.flagCount++)}}else this.phoneError=null,this.validation.phone.is_required_error=!1;return this.product&&this.product.attributes&&this.product.is_variants&&this.selectedProduct&&this.selectedProduct.filter(n=>n!=null).length!=this.product.attributes.length?(this.validation.product_combination.is_required_error=!0,this.flagCount++):this.validation.product_combination.is_required_error=!1,this.showAddress?(this.element.country&&this.element.country.is_show&&this.element.country.is_required&&!this.customer.country.trim()?(this.validation.country.is_required_error=!0,this.flagCount++):this.validation.country.is_required_error=!1,this.element.shipping_address&&this.element.shipping_address.is_show&&this.element.shipping_address.is_required&&!this.customer.address.trim()?(this.validation.shipping_address.is_required_error=!0,this.flagCount++):this.validation.shipping_address.is_required_error=!1,this.element.city&&this.element.city.is_show&&this.element.city.is_required&&!this.customer.city.trim()?(this.validation.city.is_required_error=!0,this.flagCount++):this.validation.city.is_required_error=!1,this.element.postal_code&&this.element.postal_code.is_show&&this.element.postal_code.is_required&&!this.customer.postal_code.trim()?(this.validation.postal_code.is_required_error=!0,this.flagCount++):this.validation.postal_code.is_required_error=!1,this.element.state&&this.element.state.is_show&&this.element.state.is_required&&!this.customer.state.trim()?(this.validation.state.is_required_error=!0,this.flagCount++):this.validation.state.is_required_error=!1,this.flagCount==0):this.flagCount==0},setupPhoneInput(){if(this.$refs&&this.$refs.phoneNumber){const n=this.$refs.phoneNumber;if(n){if(this.phoneInput=window.intlTelInput(n,{autoPlaceholder:"aggressive",utilsScript:"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.8/js/utils.js",preferredCountries:["us","ca","gb","ie","ai","nz"]}),this.customer.country_code){const e=window.intlTelInputGlobals.getCountryData().find(i=>i.dialCode==this.customer.country_code);e&&this.phoneInput.setCountry(e.iso2)}this.phoneInput&&document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`)&&(document.querySelector(`#phone-number-${this.element.id} .iti__selected-flag`).tabIndex=-1)}}},async makeStripePayment(){let n=this;this.isValidate(),this.elements.submit().then(t=>{this.isValidate()&&(t.error||(n.is_loader=!0,n.isButtonDisable=!0,n.addCustomer().then(e=>{n.createOrder().then(i=>{let r=i.data.data.order,s={customer_id:this.customer.unique_id,order_id:r.unique_id,amount:this.finalPrice,user_id:this.product.user_id,description:this.productName,type:this.type};this.type=="salesFunnel"?s.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:s.product_id=this.product?this.product.id:null,this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&!this.selected_payment_option.is_trial_checked&&(s.payment_mode="subscription",s.billing_type=this.selected_payment_option.billing_period,s.sub_id=this.selected_payment_option.id,s.sub_price=this.selected_payment_option.amount,s.amount=this.selected_payment_option.amount,s.product_name=this.product?this.product.name:"",this.elements.update({mode:"subscription"})),Ke.post("/api/payment/create-payment-intent",s).then(o=>{if(o.data.status){var a=null;if(s.payment_mode=="subscription"){let d=o.data.data.setupIntents;d&&(a=d.latest_invoice.payment_intent.client_secret,this.subscription_id=d.id)}else a=o.data.data.setupIntents.client_secret;let c=n.elements;this.stripeData.confirmPayment({elements:c,clientSecret:a,confirmParams:{return_url:"http://127.0.0.1:8000/salespage/check/1"},redirect:"if_required"}).then(function(d){console.log(d),d.error?(n.is_loader=!1,n.isButtonDisable=!1,alert("payment failed")):d.paymentIntent&&d.paymentIntent.status=="succeeded"?(window.localStorage.setItem("customer",n.customer.unique_id),n.verifyOrder(o.data.data.setupIntents.id,r.unique_id)):(n.is_loader=!1,n.isButtonDisable=!1)})}})})})))})},createOrder(n=null){let t={user_id:this.product.user_id,customer_id:this.customer.unique_id,product_id:this.product.id,product_combination_id:this.price&&this.price.id?this.price.id:null,product_varinent_name:this.price&&this.price.features?this.price.features:null,amount:this.finalPrice,description:this.productName,type:this.type,sub_type:this.type=="salesFunnel"?"sales_page":null,shipping_id:this.selectedShippingId,bumps:this.selectedBumpData,shipping_cost:this.shippingCharge,product_amout:this.productAmount,sku:this.price&&this.price.code?this.price.code:this.product.product_slug,coupon_id:this.coupon&&this.applyCoupon.couponDiscount&&this.applyCoupon.couponDiscount>0?this.coupon.id:null,show_shipping_on:this.element.show_shipping_on,customer:this.customer,payment_type:this.payment_mode,tid:this.tid,pcode:this.pcode,total_discount:this.savedAmount,...n};if(this.price&&this.price.type=="product_option"&&(t.product_combination_id=null,t.product_option_combination_id=this.price&&this.price.id?this.price.id:null),this.type=="salesFunnel"?(t.sales_funnel_id=this.stepData.sales_funnel_id,t.sales_page_id=this.stepData.sales_page_id,t.funnel_step_id=this.stepData.id):t.sales_page_id=this.salesPage.id,this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&(this.selected_payment_option.is_trial_checked&&this.payment_mode=="stripe"?t.payment_mode="one-time":(t.payment_mode="subscription",t.billing_type=this.selected_payment_option.billing_period,t.sub_id=this.selected_payment_option.id,t.sub_price=this.selected_payment_option.amount,this.selected_payment_option.is_trial_checked&&(t.is_trial=!0,t.trial_period_days=this.selected_payment_option.trial_period))),t.sales_page_id&&t.customer&&t.customer.unique_id&&t.customer.program_id&&t.customer.program_user_id){t.is_program_cookie_valid=!1;let e=t.sales_page_id+"~"+t.customer.unique_id+"~"+t.customer.program_id+"~"+t.customer.program_user_id,i=this.getCookie(e);console.log("cookliename",e),console.log("programCookieTime",i),i&&new Date().getTime(){this.createOrder(n).then(e=>{if(this.is_loader=!1,e.data.status){var i=hc.AES.encrypt(JSON.stringify(n),`${this.customer.unique_id}-poplink-credit-card-details`).toString();this.setCookie("ppi",i),window.localStorage.setItem("customer",this.customer.unique_id),this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload();return}else e.data&&e.data.message&&alert(e.data.message),this.isButtonDisable=!1})}))},async makePayment(){this.payment_mode=="stripe"?this.makeStripePayment():(this.payment_mode=="epd"||this.payment_mode=="nmi")&&(this.$refs.customCard.submitCard(),this.isValidate())},verifyOrder(n,t){let e={payment_int_id:n,order_id:t,type:this.type};this.type=="salesFunnel"?e.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:e.product_id=this.product?this.product.id:null,this.type=="salesFunnel"&&(e.currentStep=this.stepData&&this.stepData.id?this.stepData.id:null,e.sales_funnel_id=this.stepData&&this.stepData.sales_funnel_id?this.stepData.sales_funnel_id:null),this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&!this.selected_payment_option.is_trial_checked&&(e.payment_mode="subscription",e.billing_type=this.selected_payment_option.billing_period,e.sub_id=this.selected_payment_option.id,e.sub_price=this.selected_payment_option.amount,e.amount=this.selected_payment_option.amount,e.subscription_id=this.subscription_id),e.payment_mode=="subscription"?Ke.post("/api/payment/verify-order-sub",e).then(i=>{this.isButtonDisable=!0,this.is_loader=!1,this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload()}).catch(i=>{this.is_loader=!1,this.isButtonDisable=!1}):(this.payment_option_id&&this.payment_option_id!="one-time"&&this.selected_payment_option&&this.selected_payment_option.is_trial_checked&&(e.is_trial=!0,e.billing_type=this.selected_payment_option.billing_period,e.sub_id=this.selected_payment_option.id,e.sub_price=this.selected_payment_option.amount,e.amount=this.selected_payment_option.amount,e.product_name=this.product?this.product.name:"",e.trial_period_days=this.selected_payment_option.trial_period),Ke.post("/api/payment/verify-order",e).then(i=>{this.isButtonDisable=!0,this.is_loader=!1,this.nextPageUrl?window.location.href=this.nextPageUrl:window.location.reload()}).catch(i=>{this.is_loader=!1,this.isButtonDisable=!1}))},async addBumpView(){if(this.orderStepSetting&&this.orderStepSetting.bump_on_step2&&this.product&&this.product.product_bump_offer){let n=this.product.product_bump_offer.map(t=>t.bump_offer_id);if(n&&n.length){let t=null;this.type=="salesFunnel"?t={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,bump_ids:n,tid:this.tid,pcode:this.pcode}:t={type:"salesPage",sales_page_id:this.salesPage.id,bump_ids:n,tid:this.tid,pcode:this.pcode},await Ke.post("/api/sale-page/add-view-bump",t),await Ke.post("/api/sale-page/add-view-all-bump",t)}}},isCombinationValidate(){return this.product&&this.product.attributes&&this.product.is_variants&&this.product.product_combinations&&this.selectedProduct&&this.selectedProduct.filter(n=>n!=null).length!=this.product.attributes.length?(this.product_combination_required_error=!0,!0):(this.product_combination_required_error=!1,!1)},setDefaultShipping(){this.selectedShippingId||this.product&&this.productShipping&&this.productShipping.length>0&&(this.selectedShippingId=this.productShipping[0]?this.productShipping[0].id:null)},checkCouponCode(){if(this.applyCoupon.couponCode&&this.coupon)if(this.applyCoupon.couponChecked=!0,this.coupon.code==this.applyCoupon.couponCode){this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=Math.round(t)}else this.applyCoupon.isCouponInvalid=!0,this.applyCoupon.couponDiscount=0},recheckCouponCode(){if(this.applyCoupon.couponChecked)if(this.coupon.code==this.applyCoupon.couponCode){this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=Math.round(t)}else this.applyCoupon.isCouponInvalid=!0,this.applyCoupon.couponDiscount=0},removeLeftOfString(n,t){var e=n.indexOf(t);if(e!==-1){var i=n.substring(e+1);return i}else return n},autoApplyCouponCode(){if(this.scarcitySetting&&this.scarcitySetting.is_auto_apply_coupon&&this.coupon&&this.orderStepSetting&&this.orderStepSetting.coupons_on_step2&&!this.couponTimerExpired){this.applyCoupon.couponChecked=!0,this.applyCoupon.couponCode=this.coupon.code,this.applyCoupon.isCouponInvalid=!1;var n=this.productPrice,t=this.coupon.type=="percentage"?n*(this.coupon.percentage/100):this.coupon.price;this.applyCoupon.couponDiscount=t}},async addCustomer(){if(this.phoneInput){const e=this.phoneInput.getSelectedCountryData();e&&(this.customer.country_code=e.dialCode)}let n={...this.customer,user_id:this.product.user_id,tid:this.tid,pcode:this.pcode};this.type=="salesFunnel"?this.stepData&&(n.type="salesFunnel",n.sales_funnel_id=this.stepData.sales_funnel_id,n.funnel_step_id=this.stepData.id,n.sales_page_id=this.stepData.sales_page_id):(n.type="salesPage",n.sales_page_id=this.salesPage.id),this.customer.last_name||(this.customer.last_name=""),localStorage.setItem("set-default-data",JSON.stringify(this.customer));let t=await Ke.post("/api/payment/create-customer",n);return t.data.status&&(this.customer=t.data.data.customer,this.setProgramCookie(this.customer)),t},setupAutocomplete(){var e,i;if(!((i=(e=window.google)==null?void 0:e.maps)!=null&&i.places))return;const n=document.getElementById("shipping-address-one-step"+this.element.id);if(!n)return;const t=new window.google.maps.places.Autocomplete(n,{fields:["address_components","name"],types:["address"]});t.addListener("place_changed",()=>{const r=t.getPlace(),s=r.address_components.reduce((o,a)=>{const c=a.types;return c.includes("locality")?o.locality=a.long_name:c.includes("administrative_area_level_2")?o.administrative_area_level_2=a.long_name:c.includes("administrative_area_level_1")?o.administrative_area_level_1=a.long_name:c.includes("country")?o.country=a.long_name:c.includes("postal_code")&&(o.postal_code=a.long_name),o},{});this.customer.address=r.name,this.customer.city=s.locality||s.administrative_area_level_2,this.customer.country=s.country,this.customer.postal_code=s.postal_code?s.postal_code:"",this.states.find(o=>o==s.administrative_area_level_1)||this.states.push(s.administrative_area_level_1),this.customer.state=s.administrative_area_level_1})},initStripe(){this.isPaymentProcessor=!0;let n={user_id:this.product.user_id,type:this.type};this.type=="salesFunnel"?n.sales_funnel_id=this.salesFunnel?this.salesFunnel.id:null:n.product_id=this.product?this.product.id:null,Ke.post("/api/payment/initialize-stripe",n).then(t=>{if(this.isPaymentProcessor=!1,t.data.status&&t.data.data&&t.data.data.key){this.stripeData=Stripe(t.data.data.key);let e=this.finalPrice.toFixed(2)*100;const i=Math.round(e*100)/100,s={mode:"payment",amount:Math.max(0,i),currency:"usd",automatic_payment_methods:!0,setup_future_usage:"off_session",capture_method:"automatic",appearance:{}};this.product.type=="digital"&&this.type=="salesPage"&&this.salesPage.id==1920&&(s.paymentMethodOrder=["apple_pay"]),this.elements=this.stripeData.elements(s),this.paymentElement=this.elements.create("payment"),this.paymentElement.mount(this.$refs.card)}})},updateFunnelPaymentGateway(){this.salesFunnel&&this.salesFunnel.payment_type&&this.type=="salesFunnel"&&(this.payment_mode=this.salesFunnel.payment_type),this.payment_mode=="stripe"&&this.type=="salesFunnel"&&this.initStripe()},updateAddressStatus(){setTimeout(()=>{this.showAdditionalAddress=!0},50)},async setProgramCookie(n){if(n&&this.program&&this.program.cookie_valid_days){let t=this.program.cookie_valid_days,e=new Date,i=e.setTime(e.getTime()+t*24*60*60*1e3),r=n.sales_page_id+"~"+n.unique_id+"~"+n.program_id+"~"+n.program_user_id,s=i;const o="expires="+e.toUTCString();document.cookie=r+"="+s+"; "+o+"; path=/"}},async fetchProgramData(){if(this.pcode){let t=this.pcode.split(":");if(t&&t.length>0){let e=t[0];if(e){var n=await Ke.get(window.location.origin+"/api/partner-program/detail/"+e).then(i=>{if(i.data.status){let r=i.data.data&&i.data.data.program?i.data.data.program:null;this.program=r}});return n}}}}},mounted(){let n=localStorage.getItem("set-default-data");if(n&&JSON.parse(n)){let t=JSON.parse(n);this.element.first_name.is_show&&t.first_name&&(this.customer.first_name=t.first_name),this.element.last_name.is_show&&t.last_name&&(this.customer.last_name=t.last_name),this.element.email.is_show&&t.email&&(this.customer.email=t.email),this.element.country.is_show&&t.country&&(this.customer.country=t.country),this.element.shipping_address.is_show&&t.address&&(this.customer.address=t.address),this.element.city.is_show&&t.city&&(this.customer.city=t.city),this.element.postal_code.is_show&&t.postal_code&&(this.customer.postal_code=t.postal_code),this.element.state.is_show&&t.state&&(this.customer.state=t.state),setTimeout(()=>{this.element.phone.is_show&&t.phone&&(this.customer.phone=t.phone)},200)}setTimeout(()=>{this.setupPhoneInput()},100),this.type=="salesPage"&&this.product&&this.product.payment_provider&&(this.payment_mode=this.product.payment_provider),this.payment_mode=="stripe"&&this.type=="salesPage"&&this.initStripe(),this.type=="salesFunnel"?this.stepData&&!this.stepData.is_one_time_payment&&this.payment_option&&this.payment_option.length&&(this.showOneTime=!1,this.payment_option_id=this.payment_option[0].id):this.type=="salesPage"&&this.salesProduct&&!this.salesProduct.is_one_time_payment&&this.payment_option&&this.payment_option.length&&(this.showOneTime=!1,this.payment_option_id=this.payment_option[0].id),this.addBumpView(),this.setDefaultShipping(),this.fetchProgramData()}},kt=n=>(lr("data-v-48536e25"),n=n(),cr(),n),IX={class:"tw-px-6 tw-py-5 lg:tw-px-5"},RX={key:1,class:"pe-cus-20"},BX=["innerHTML"],LX=J(" ⓘ "),FX={key:0},qX=J("There are only "),HX=J(" promo codes left."),zX={key:1},UX=J("There are only "),VX={class:"tw-font-semibold"},jX={key:0},WX=J(" left to claim this promo code."),KX={key:2},GX=J("There are only "),YX=J(" promo codes left and "),JX={class:"tw-font-semibold"},ZX={key:0},XX=J(" left to claim this promo code."),QX=J(" please submit order as soon as possible."),$X={class:"tw-flex tw-gap-4"},eQ={class:"tw-flex tw-relative tw-w-full submit-code"},tQ={key:1,class:"font-weight-normal fonts-popins tw-text-[13px]",style:{"font-size":"13px",color:"#2FC79C"}},nQ={key:2,class:"font-weight-normal fonts-popins tw-text-[13px]",style:{"font-size":"13px",color:"red"}},iQ={key:2,class:"hr-line"},rQ={key:3},sQ=kt(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),oQ={key:0,class:"shake invalid-field-text"},aQ=kt(()=>b("hr",{class:"hr-line"},null,-1)),lQ={key:4},cQ=kt(()=>b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text"}," Make your selection: ",-1)),dQ={key:0,class:"hr-line"},uQ={key:5,class:"headline-text title-text-color tw-outline-none mb-3"},fQ={class:"tw-flex tw-items-center tw-justify-between tw-w-full lato-fonts"},hQ={key:0},pQ={class:"cursor-pointer mb-0",for:"payment_options-1"},mQ={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},gQ={style:{opacity:".7","font-size":"14px","font-weight":"400","letter-spacing":"0.4px"}},_Q=J("Original Price: "),yQ={key:1},bQ={class:"cursor-pointer mb-0",for:"payment_options-1"},vQ={class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},xQ={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px","font-size":"12px"}},wQ={key:2},kQ={class:"cursor-pointer mb-0"},CQ={class:"product-discount-title tw-font-bold text-right",style:{"letter-spacing":"0.3px"}},SQ={class:"font-weight-normal"},TQ={class:"product-discount-title tw-font-semibold text-right desktop-only",style:{"letter-spacing":"0.3px","font-size":"12px"}},EQ={class:"product-discount-title tw-font-semibold text-right mobile-only",style:{"letter-spacing":"0.3px","font-size":"12px"}},OQ={key:3},AQ={class:"cursor-pointer mb-0"},DQ={class:"product-discount-title tw-font-bold",style:{"letter-spacing":"0.3px"}},MQ=["id","value"],PQ={class:"tw-flex tw-items-center tw-justify-between tw-w-full lato-fonts"},NQ=["for"],IQ={class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px"}},RQ={key:0,class:"product-discount-title tw-font-semibold",style:{"letter-spacing":"0.3px","font-size":"12px"}},BQ={class:"tw-font-bold tw-m-0 text-capitalize",style:{"font-size":"18px"}},LQ={class:"trial-box-payment mb-3"},FQ=["id","onUpdate:modelValue"],qQ=["for"],HQ={class:"order-form-input mb-0"},zQ={id:"shipping"},UQ={key:0,class:"tw-space-y-2 input-mb"},VQ={class:"tw-flex tw-flex-col tw-justify-between"},jQ=["placeholder"],WQ={key:0,class:"shake invalid-field-text"},KQ={key:1,class:"tw-space-y-2 input-mb"},GQ={class:"tw-flex tw-flex-col tw-justify-between"},YQ=["placeholder"],JQ={key:0,class:"shake invalid-field-text"},ZQ={key:2,class:"tw-space-y-2 input-mb"},XQ={class:"tw-flex tw-flex-col"},QQ=["placeholder"],$Q={key:0,class:"shake invalid-field-text"},e$={key:1,class:"shake invalid-field-text"},t$={key:3,class:"email-offer-div"},n$=kt(()=>b("div",{for:"email-me"},"Email me with news & offers",-1)),i$=["id"],r$={class:"tw-flex tw-flex-col"},s$=["placeholder"],o$={key:0,class:"shake invalid-field-text"},a$={key:1,class:"shake invalid-field-text"},l$=kt(()=>b("hr",{class:"contact-hr-line"},null,-1)),c$={key:0},d$=["innerHTML"],u$={key:0,class:"tw-flex tw-flex-col input-mb"},f$=["placeholder","id"],h$={key:0,class:"shake invalid-field-text"},p$={key:2,class:"tw-flex tw-flex-col input-mb"},m$=["id"],g$={key:0,class:"shake invalid-field-text"},_$={class:"tw-flex tw-gap-4 input-mb"},y$={key:0,class:"tw-flex tw-flex-col tw-w-full"},b$=["placeholder"],v$={key:0,class:"shake invalid-field-text"},x$={key:1,class:"tw-flex tw-flex-col tw-w-full"},w$=["placeholder"],k$=kt(()=>b("option",{value:"",disabled:""},"State",-1)),C$=["value"],S$={key:0,class:"shake invalid-field-text"},T$={class:"tw-flex tw-gap-4 input-mb"},E$={key:0,class:"tw-flex tw-flex-col tw-w-full"},O$=["placeholder"],A$={key:0,class:"shake invalid-field-text"},D$={key:1,class:"tw-flex tw-flex-col tw-w-full"},M$=["placeholder"],P$=kt(()=>b("option",{value:"",disabled:""},"Country",-1)),N$=["value"],I$={key:0,class:"shake invalid-field-text"},R$={key:0,class:"privacy_statement_box"},B$=kt(()=>b("hr",{class:"contact-hr-line"},null,-1)),L$={action:"",class:"mb-0"},F$=kt(()=>b("div",{class:"spinner-border",role:"status"},[b("span",{class:"sr-only"},"Loading...")],-1)),q$={key:0,class:"mb-4"},H$=kt(()=>b("hr",{class:"hr-line"},null,-1)),z$={key:1,class:"mb-4"},U$=kt(()=>b("hr",{class:"hr-line"},null,-1)),V$=kt(()=>b("h6",{class:"headline-text title-text-color tw-outline-none mb-3"},"Payment Information",-1)),j$={class:"order-form-input"},W$={key:1,ref:"card"},K$={key:2,class:""},G$=kt(()=>b("hr",{class:"hr-line"},null,-1)),Y$=kt(()=>b("h6",{class:"headline-text title-text-color tw-outline-none"},"Shipping Options",-1)),J$={style:{padding:"15px 0","margin-top":"15px","background-color":"white",color:"#888888","border-radius":"5px",border:"1px solid #f3f3f3"}},Z$={class:"shipping-radio-parent"},X$=["value","id"],Q$=["for"],$$={style:{display:"flex","flex-wrap":"wrap"}},eee=J("Courier company: "),tee={style:{display:"flex","align-items":"center"}},nee=["src"],iee=J(" USPS"),ree=["src"],see=J(" DHL"),oee=["src"],aee=J(" FedEx"),lee=["src"],cee=J(" UPS"),dee={key:4,class:"tw-flex"},uee=["src"],fee=J(" DTDC "),hee={key:0},pee={key:3},mee=kt(()=>b("hr",{class:"hr-line mb-0"},null,-1)),gee={class:"d-flex align-items-center"},_ee=kt(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg","enable-background":"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"currentColor"},[b("rect",{fill:"none",height:"24",width:"24"}),b("path",{d:"M15,5l-1.41,1.41L18.17,11H2V13h16.17l-4.59,4.59L15,19l7-7L15,5z"})],-1)),yee=[_ee],bee=["value"],vee=["innerHTML"],xee={key:0,class:"timer-section"},wee={key:0,style:{color:"#000000"},class:"bump-timer"},kee=J("Lightning deal | Ends in "),Cee={key:0},See={key:1,style:{color:"#000000"},class:"bump-timer"},Tee=J("Lightning deal | Ends in "),Eee={key:0},Oee={key:2,style:{color:"#000000"},class:"bump-timer"},Aee=J("Lightning deal | Ends in "),Dee={key:0},Mee={key:3,style:{color:"#000000"},class:"bump-timer"},Pee=J("Lightning deal | Ends in "),Nee={key:0},Iee={key:4,style:{color:"#000000"},class:"bump-timer"},Ree=J("Lightning deal | Ends in "),Bee={key:0},Lee={key:5,style:{color:"#000000"},class:"bump-timer"},Fee=J("Lightning deal | Ends in "),qee={key:0},Hee=["innerHTML"],zee={key:1,class:"mt-4 d-flex justify-content-center"},Uee=["src"],Vee=kt(()=>b("hr",{class:"hr-line"},null,-1)),jee=kt(()=>b("div",{class:""},[b("h6",{class:"headline-text title-text-color tw-outline-none"},"Order Summary")],-1)),Wee={key:4,class:"mt-cus",style:{color:"#000000","font-weight":"500","font-family":"'Helvetica'","letter-spacing":"0.45px"}},Kee={key:0,class:"flex-box-div"},Gee={class:"fonts-popins"},Yee=kt(()=>b("br",null,null,-1)),Jee={key:0,style:{"letter-spacing":"0.3px","font-size":"14px","margin-left":"2px"}},Zee={key:0},Xee={key:1},Qee={key:1,class:"flex-box-div flex-box-mt-5"},$ee=kt(()=>b("p",{class:"fonts-popins"},"Special Discount:",-1)),ete={key:2,class:"info mt-2"},tte=J(" ⓘ Time Left "),nte={key:0},ite=J(" today, please submit order as soon as possible. "),rte={key:3,class:"flex-box-div flex-box-mt-5"},ste=kt(()=>b("p",{class:"fonts-popins"},"Coupon Discount:",-1)),ote={class:"fonts-popins"},ate={style:{opacity:".7"}},lte=kt(()=>b("hr",{class:"hr-line"},null,-1)),cte={class:"flex-box-div"},dte=kt(()=>b("p",{class:"fonts-popins"},"Subtotal:",-1)),ute={style:{opacity:".7"}},fte={key:4,class:"flex-box-div flex-box-mt-5"},hte=kt(()=>b("p",{class:"fonts-popins"},"Shipping:",-1)),pte={key:5},mte={class:"info mt-1"},gte=kt(()=>b("div",{class:"flex-box-div flex-box-mt-10"},[b("p",{class:"fonts-popins"},"Sales tax:"),b("p",{style:{opacity:".7"}},"$0.00")],-1)),_te=kt(()=>b("hr",{class:"hr-line"},null,-1)),yte={key:6,class:"flex-box-div"},bte=kt(()=>b("p",{style:{"font-size":"18px","font-weight":"700"}},"Order total:",-1)),vte={style:{"font-size":"18px","font-weight":"700"}},xte={key:7,class:"flex-box-div mt-1"},wte=kt(()=>b("hr",{class:"hr-line mb-1"},null,-1)),kte=["disabled"],Cte={key:0},Ste=["innerHTML"],Tte={key:0},Ete={key:0,class:"end-btn-bottom"},Ote={class:"text-nowrap"},Ate={key:0},Dte={key:1,class:"end-btn-bottom"},Mte={class:"text-nowrap"},Pte={key:0},Nte={key:2,class:"end-btn-bottom"},Ite={class:"text-nowrap"},Rte={key:0},Bte={key:3,class:"end-btn-bottom"},Lte={class:"text-nowrap"},Fte={key:0},qte={key:4,class:"end-btn-bottom"},Hte={class:"text-nowrap"},zte={key:0},Ute={key:5,class:"end-btn-bottom"},Vte={class:"text-nowrap"},jte={key:0},Wte={class:"flex-end-shield-div"},Kte=kt(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 448 512"},[b("path",{d:"M159.3 5.4c7.8-7.3 19.9-7.2 27.7 .1c27.6 25.9 53.5 53.8 77.7 84c11-14.4 23.5-30.1 37-42.9c7.9-7.4 20.1-7.4 28 .1c34.6 33 63.9 76.6 84.5 118c20.3 40.8 33.8 82.5 33.8 111.9C448 404.2 348.2 512 224 512C98.4 512 0 404.1 0 276.5c0-38.4 17.8-85.3 45.4-131.7C73.3 97.7 112.7 48.6 159.3 5.4zM225.7 416c25.3 0 47.7-7 68.8-21c42.1-29.4 53.4-88.2 28.1-134.4c-4.5-9-16-9.6-22.5-2l-25.2 29.3c-6.6 7.6-18.5 7.4-24.7-.5c-16.5-21-46-58.5-62.8-79.8c-6.3-8-18.3-8.1-24.7-.1c-33.8 42.5-50.8 69.3-50.8 99.4C112 375.4 162.6 416 225.7 416z"})],-1)),Gte=J("   "),Yte=J(" for the past 7 days "),Jte={class:"flex-end-shield-div"},Zte=["fill"],Xte=kt(()=>b("path",{d:"M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8V444.8C394 378 431.1 230.1 432 141.4L256 66.8l0 0z"},null,-1)),Qte=[Xte],$te=J("   "),ene=kt(()=>b("p",null," Security certification ",-1)),tne=kt(()=>b("p",{style:{"font-size":"14px"},class:"end-text"},"Your payment information is safe with us. We do not share",-1));function nne(n,t,e,i,r,s){const o=at("Alert"),a=at("productList"),c=at("productOption"),d=at("VideoElement"),f=at("ImageElement"),h=at("loader"),g=at("cardElement");return S(),A(He,null,[e.scarcitySetting&&!e.scarcitySetting.alert_on_page||e.orderStepSetting&&!e.orderStepSetting.is_scarcity_trigger?(S(),A("div",{key:0,class:"orderform-headline",style:ke({backgroundColor:e.element?e.element.step_background_color:"#F0F3F7"})},[b("p",{class:"of-title",style:ke({color:e.element?e.element.title_color:"#000000"})},_(e.element.orderform_title),5),e.element.is_orderform_sub_title_show?(S(),A("p",{key:0,class:"of-description",style:ke({color:e.element?e.element.title_color:"#000000"})},_(e.element.orderform_sub_title),5)):R("",!0)],4)):R("",!0),b("section",IX,[e.scarcitySetting&&e.scarcitySetting.alert_on_page&&e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger?(S(),qe(o,{key:0,scarcitySetting:e.scarcitySetting,orderStepSetting:e.orderStepSetting,timesale:e.timesale,dimesale:e.dimesale,coupon:e.coupon,shipping_timer:e.shipping_timer,scarcity_coupon_timer:e.scarcity_coupon_timer,free_shipping_timer:e.free_shipping_timer,discount:e.discount,discount_timer:e.discount_timer,discountedPrice:s.discountedPrice,timesale_timer:e.timesale_timer,dimesale_timer:e.dimesale_timer,order_diversion:e.order_diversion,diversion_timer:e.diversion_timer},null,8,["scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","discountedPrice","timesale_timer","dimesale_timer","order_diversion","diversion_timer"])):R("",!0),e.orderStepSetting&&e.orderStepSetting.coupons_on_step2&&(!s.couponTimerExpired||e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0)?(S(),A("div",RX,[b("h6",{class:"form-title title-text-color tw-outline-none",innerHTML:e.element.promo_code_title},null,8,BX),e.coupon?(S(),A("p",{key:0,class:"font-weight-normal fonts-popins tw-text-[13px] mb-2",style:ke([{"font-size":"13px"},{color:e.element?e.element.form_label_color:"#000000"}])},[b("span",null,[LX,e.coupon.include_limited_units&&!e.coupon.include_time_limitation?(S(),A("span",FX,[qX,b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"}),class:X("tw-font-semibold")},_(e.coupon.unit),5),HX])):R("",!0),!e.coupon.include_limited_units&&e.coupon.include_time_limitation?(S(),A("span",zX,[UX,b("span",VX,[e.scarcity_coupon_timer.days>0?(S(),A("span",jX,_(e.scarcity_coupon_timer.days)+"d: ",1)):R("",!0),b("span",null,_(e.scarcity_coupon_timer.hours)+"h: ",1),J(_(e.scarcity_coupon_timer.minutes)+"m: "+_(e.scarcity_coupon_timer.seconds)+"s",1)]),WX])):R("",!0),e.coupon.include_limited_units&&e.coupon.include_time_limitation?(S(),A("span",KX,[GX,b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"}),class:X("tw-font-semibold")},_(e.coupon.unit),5),YX,b("span",JX,[e.scarcity_coupon_timer.days>0?(S(),A("span",ZX,_(e.scarcity_coupon_timer.days)+"d: ",1)):R("",!0),b("span",null,_(e.scarcity_coupon_timer.hours)+"h: ",1),J(_(e.scarcity_coupon_timer.minutes)+"m: "+_(e.scarcity_coupon_timer.seconds)+"s",1)]),XX])):R("",!0),QX])],4)):R("",!0),b("div",$X,[b("div",eQ,[Re(b("input",{type:"text",placeholder:"Promo Code","onUpdate:modelValue":t[0]||(t[0]=m=>e.applyCoupon.couponCode=m),onKeyup:t[1]||(t[1]=Kg((...m)=>s.checkCouponCode&&s.checkCouponCode(...m),["enter"])),class:"input-field promo-input"},null,544),[[wt,e.applyCoupon.couponCode]]),b("div",{class:X(["apply-btn tw-flex tw-items-center tw-justify-center",e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?"opacity-20":""]),style:{color:"rgb(0, 0, 0)"},onClick:t[2]||(t[2]=(...m)=>s.checkCouponCode&&s.checkCouponCode(...m))},"Apply",2)])]),e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?(S(),A("span",tQ,"Coupon applied successfully, you saved $"+_(e.applyCoupon.couponDiscount.toFixed(2)),1)):R("",!0),e.applyCoupon.couponChecked&&e.applyCoupon.isCouponInvalid?(S(),A("span",nQ,"Invalid coupon")):R("",!0)])):R("",!0),e.orderStepSetting&&e.orderStepSetting.coupons_on_step2&&(!s.couponTimerExpired||e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0)?(S(),A("hr",iQ)):R("",!0),e.element.show_variant_on=="tab2"&&e.product&&e.product.attributes&&e.product.attributes.length>0&&e.product.is_variants?(S(),A("section",rQ,[sQ,ct(a,{product:e.product,isProductLoading:e.isProductLoading,selectedProduct:e.selectedProduct,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selectedProduct","onUpdatePrice"]),r.product_combination_required_error?(S(),A("span",oQ,"Please select variant")):R("",!0),aQ])):R("",!0),e.element.show_variant_on=="tab2"&&e.product&&e.product.product_options&&e.product.product_options.length>0&&e.product.add_product_option?(S(),A("section",lQ,[cQ,ct(c,{product:e.product,isProductLoading:e.isProductLoading,selected_option_combination:e.selected_option_combination,onUpdatePrice:s.updatePrice},null,8,["product","isProductLoading","selected_option_combination","onUpdatePrice"]),s.showPaymentLabel?(S(),A("hr",dQ)):R("",!0)])):R("",!0),s.showPaymentLabel?(S(),A("h6",uQ,"Payment Option")):R("",!0),s.productPrice&&r.showOneTime?(S(),A("div",{key:6,class:X(["",e.payment_option&&e.payment_option.length?"mb-2":"mb-4"])},[b("div",{style:{color:"#000000","min-height":"68px","background-color":"#ffffff"},class:X(["tw-p-3 billing-option tw-items-center tw-flex tw-border-transparent tw-cursor-pointer tw-space-x-2 tw-text-[#666666] tw-rounded-sm tw-transition-colors tw-ease-in-out tw-mb-4 payment-box",r.payment_option_id=="one-time"?"active":""])},[Re(b("input",{type:"radio",class:X(["tw-accent-["+e.element.primary_color+"]","radio-input"]),checked:"","onUpdate:modelValue":t[3]||(t[3]=m=>r.payment_option_id=m),value:"one-time",name:"payment_options",id:"payment_options-1"},null,2),[[Zr,r.payment_option_id]]),b("div",fQ,[s.productPriceOption&&s.discountedPrice?(S(),A("div",hQ,[b("label",pQ,[s.productPriceOption&&s.discountedPrice?(S(),A("p",mQ,_(e.product.name)+": ",1)):R("",!0),b("p",gQ,[_Q,b("del",null,"$"+_(s.productPriceOption?s.productPriceOption.toFixed(2):""),1)])])])):(S(),A("div",yQ,[b("label",bQ,[b("p",vQ,_(e.product.name),1),e.price&&e.price.type=="product_option"?(S(),A("p",xQ,_(s.getPrductName?"+ "+s.getPrductName:""),1)):R("",!0)])])),e.applyCoupon.couponChecked&&!e.applyCoupon.isCouponInvalid?(S(),A("div",wQ,[b("label",kQ,[b("p",CQ,[b("del",SQ,"$"+_(s.productPriceOption.toFixed(2)),1),J("   $"+_((s.productPriceOption-e.applyCoupon.couponDiscount).toFixed(2)),1)]),b("p",TQ,"You saved $"+_(e.applyCoupon.couponDiscount.toFixed(2))+" with discount code ",1),b("p",EQ,"You save $"+_(e.applyCoupon.couponDiscount.toFixed(2)),1)])])):(S(),A("div",OQ,[b("label",AQ,[b("p",DQ,_(s.productPriceOption-s.discountedPrice>0?"$"+(s.productPriceOption-s.discountedPrice).toFixed(2):"FREE"),1)])]))])],2)],2)):R("",!0),(S(!0),A(He,null,bt(r.showPaymentOption?e.payment_option:[],(m,y)=>(S(),A("div",{key:y,class:X({"mb-4":e.payment_option&&e.payment_option.length-1==y})},[b("div",{style:{color:"#000000","min-height":"68px","background-color":"#ffffff"},class:X(["tw-p-3 billing-option tw-items-center tw-flex tw-border-transparent tw-cursor-pointer tw-space-x-2 tw-text-[#666666] tw-rounded-sm tw-transition-colors tw-ease-in-out tw-mb-4 payment-box",r.payment_option_id==m.id?"active":""])},[Re(b("input",{id:`payment_options-sub-${y}`,type:"radio",class:X(["tw-accent-["+e.element.primary_color+"]","radio-input"]),name:"payment_options",value:m.id,"onUpdate:modelValue":t[4]||(t[4]=k=>r.payment_option_id=k)},null,10,MQ),[[Zr,r.payment_option_id]]),b("div",PQ,[b("div",null,[b("label",{class:"cursor-pointer mb-0",for:`payment_options-sub-${y}`},[b("p",IQ,_(e.product.name),1),e.price&&e.price.type=="product_option"?(S(),A("p",RQ,_(s.getPrductName?"+ "+s.getPrductName:""),1)):R("",!0)],8,NQ)]),b("span",BQ,"$"+_(m.amount?m.amount.toFixed(2):"")+" / "+_(m.billing_period),1)])],2),Re(b("div",LQ,[Re(b("input",{id:`payment_options-trail-${y}`,type:"checkbox",class:"mr-2 cursor-pointer","onUpdate:modelValue":k=>m.is_trial_checked=k},null,8,FQ),[[rr,m.is_trial_checked]]),b("label",{for:`payment_options-trail-${y}`,class:"mb-0"},"Get started with only $"+_(m.trial_amount)+" for the initial "+_(m.trial_period)+" days, and then just $"+_(m.amount.toFixed(2))+"/"+_(m.billing_period)+". You can cancel it anytime.",9,qQ)],512),[[jo,m.is_trial&&m.id==r.payment_option_id]])],2))),128)),b("div",HQ,[b("section",zQ,[b("section",null,[e.element.first_name&&e.element.first_name.is_show?(S(),A("div",UQ,[b("section",VQ,[Re(b("input",{placeholder:e.element.first_name.placeholder,type:"text","onUpdate:modelValue":t[5]||(t[5]=m=>r.customer.first_name=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-w-full tw-m-0",{"invalid-field-border":r.validation.first_name.is_required_error}])},null,10,jQ),[[wt,r.customer.first_name]]),r.validation.first_name.is_required_error?(S(),A("span",WQ,"This field is required")):R("",!0)])])):R("",!0),e.element.last_name&&e.element.last_name.is_show?(S(),A("div",KQ,[b("section",GQ,[Re(b("input",{placeholder:e.element.last_name.placeholder,type:"text","onUpdate:modelValue":t[6]||(t[6]=m=>r.customer.last_name=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.last_name.is_required_error}])},null,10,YQ),[[wt,r.customer.last_name]]),r.validation.last_name.is_required_error?(S(),A("span",JQ,"This field is required")):R("",!0)])])):R("",!0),e.element.email&&e.element.email.is_show?(S(),A("div",ZQ,[b("div",XQ,[Re(b("input",{placeholder:e.element.email.placeholder,type:"email","onUpdate:modelValue":t[7]||(t[7]=m=>r.customer.email=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.email.is_required_error}])},null,10,QQ),[[wt,r.customer.email]]),r.validation.email.is_required_error?(S(),A("span",$Q,"This field is required")):R("",!0),r.validation.email.is_email_error?(S(),A("span",e$,"Please enter valid email")):R("",!0)])])):R("",!0),e.element.email&&e.element.email.is_show&&e.element.is_email_me_title_show?(S(),A("div",t$,[Re(b("input",{type:"checkbox",id:"email-me","onUpdate:modelValue":t[8]||(t[8]=m=>r.customer.is_send_email=m)},null,512),[[rr,r.customer.is_send_email]]),n$])):R("",!0),e.element.phone&&e.element.phone.is_show?(S(),A("div",{key:4,class:"tw-space-y-2 input-mb",id:`phone-number-${e.element.id}`},[b("div",r$,[Re(b("input",{ref:"phoneNumber",placeholder:e.element.phone.placeholder,type:"text","onUpdate:modelValue":t[9]||(t[9]=m=>r.customer.phone=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0",{"invalid-field-border":r.validation.phone.is_required_error||r.phoneError}])},null,10,s$),[[wt,r.customer.phone]]),r.validation.phone.is_required_error?(S(),A("span",o$,"This field is required")):R("",!0),r.phoneError?(S(),A("span",a$,_(r.phoneError),1)):R("",!0)])],8,i$)):R("",!0)]),l$,s.showAddress&&(e.element.shipping_address&&e.element.shipping_address.is_show||e.element.city&&e.element.city.is_show||e.element.state&&e.element.state.is_show||e.element.postal_code&&e.element.postal_code.is_show||e.element.country&&e.element.country.is_show)?(S(),A("section",c$,[b("h6",{class:"form-title shopping-title title-text-color tw-outline-none cursor-text",innerHTML:e.element.shipping_title},null,8,d$),e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",u$,[Re(b("input",{placeholder:e.element.shipping_address.placeholder,type:"text",name:"address",id:`shipping-address-one-step${e.element.id}`,"onUpdate:modelValue":t[10]||(t[10]=m=>r.customer.address=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete",{"invalid-field-border":r.validation.shipping_address.is_required_error}])},null,10,f$),[[wt,r.customer.address]]),r.validation.shipping_address.is_required_error?(S(),A("span",h$,"This field is required")):R("",!0)])):R("",!0),e.element.is_additional_address_show&&!r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",{key:1,class:"add-text",onClick:t[11]||(t[11]=(...m)=>s.updateAddressStatus&&s.updateAddressStatus(...m))},"+ Add apartment, suite, etc.")):R("",!0),r.showAdditionalAddress&&e.element.shipping_address&&e.element.shipping_address.is_show?(S(),A("div",p$,[Re(b("input",{placeholder:"Apartment, suite, etc. (optional)",type:"text",name:"address2",id:`shipping-address-two-step${e.element.id}`,"onUpdate:modelValue":t[12]||(t[12]=m=>r.customer.address2=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full tw-m-0 shipping_autocomplete",{"invalid-field-border":r.validation.shipping_address.is_required_error}])},null,10,m$),[[wt,r.customer.address2]]),r.validation.shipping_address.is_required_error?(S(),A("span",g$,"This field is required")):R("",!0)])):R("",!0),b("div",_$,[e.element.city&&e.element.city.is_show?(S(),A("div",y$,[Re(b("input",{placeholder:e.element.city.placeholder,type:"text","onUpdate:modelValue":t[13]||(t[13]=m=>r.customer.city=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.city.is_required_error}])},null,10,b$),[[wt,r.customer.city]]),r.validation.city.is_required_error?(S(),A("span",v$,"This field is required")):R("",!0)])):R("",!0),e.element.state&&e.element.state.is_show?(S(),A("div",x$,[Re(b("select",{name:"",id:"",placeholder:e.element.state.placeholder,"onUpdate:modelValue":t[14]||(t[14]=m=>r.customer.state=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.state.is_required_error}])},[k$,(S(!0),A(He,null,bt(e.states,(m,y)=>(S(),A("option",{key:y,value:m},_(m),9,C$))),128))],10,w$),[[Ui,r.customer.state]]),r.validation.state.is_required_error?(S(),A("span",S$,"This field is required")):R("",!0)])):R("",!0)]),b("div",T$,[e.element.postal_code&&e.element.postal_code.is_show?(S(),A("div",E$,[Re(b("input",{placeholder:e.element.postal_code.placeholder,type:"text","onUpdate:modelValue":t[15]||(t[15]=m=>r.customer.postal_code=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full",{"invalid-field-border":r.validation.postal_code.is_required_error}])},null,10,O$),[[wt,r.customer.postal_code]]),r.validation.postal_code.is_required_error?(S(),A("span",A$,"This field is required")):R("",!0)])):R("",!0),e.element.country&&e.element.country.is_show?(S(),A("div",D$,[Re(b("select",{name:"",id:"",placeholder:e.element.country.placeholder,"onUpdate:modelValue":t[16]||(t[16]=m=>r.customer.country=m),class:X(["input-field tw-rounded-[5px] tw-py-[12px] tw-px-[18px] tw-border tw-w-full custom-select",{"invalid-field-border":r.validation.country.is_required_error}])},[P$,(S(!0),A(He,null,bt(e.countries,(m,y)=>(S(),A("option",{key:y,value:m},_(m),9,N$))),128))],10,M$),[[Ui,r.customer.country]]),r.validation.country.is_required_error?(S(),A("span",I$,"This field is required")):R("",!0)])):R("",!0)])])):R("",!0)]),e.element.is_privacy_statement?(S(),A("div",R$,_(e.element.privacy_statement),1)):R("",!0),B$]),b("div",L$,[F$,e.element.is_media_block&&e.element.media_type=="video"&&e.element.media_video?(S(),A("section",q$,[ct(d,{element:e.element},null,8,["element"]),H$])):R("",!0),e.element.is_media_block&&e.element.media_type=="image"&&e.element.media_image?(S(),A("section",z$,[ct(f,{element:e.element},null,8,["element"]),U$])):R("",!0),V$,b("div",j$,[r.isPaymentProcessor?(S(),qe(h,{key:0})):R("",!0),r.payment_mode=="stripe"?(S(),A("div",W$,null,512)):r.payment_mode=="epd"||r.payment_mode=="nmi"?(S(),qe(g,{key:2,ref:"customCard",onMakeEpdPayment:s.makeEpdPayment},null,8,["onMakeEpdPayment"])):R("",!0)]),e.orderStepSetting&&e.orderStepSetting.shipping_on_step2&&s.productShipping&&s.productShipping.length>1?(S(),A("div",K$,[G$,Y$,b("div",J$,[(S(!0),A(He,null,bt(s.productShipping,(m,y)=>(S(),A("div",{key:y},[b("span",Z$,[Re(b("input",{type:"radio",name:"shipping-option",value:m.id,"onUpdate:modelValue":t[17]||(t[17]=k=>r.selectedShippingId=k),id:`soption_${y}`},null,8,X$),[[Zr,r.selectedShippingId]]),b("label",{for:`soption_${y}`},[b("p",{class:"shipping-radio-parent-head",style:ke({color:r.selectedShippingId==m.id?e.element.primary_color:""})},[J(_(m.shipping_name)+" ",1),b("span",null,"  "+_(m.price+s.productShippingPrice>0?"$"+(m.price+s.productShippingPrice).toFixed(2):"FREE"),1)],4),b("p",$$,[eee,b("span",tee,[m.is_usps?(S(),A("span",{key:0,class:X(["tw-flex",m.is_dhl||m.is_fedex||m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/usps.png`,class:"delivery-brand",alt:"usps"},null,8,nee),iee],2)):R("",!0),m.is_dhl?(S(),A("span",{key:1,class:X(["tw-flex",m.is_fedex||m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/dhl.png`,class:"delivery-brand",alt:"dhl"},null,8,ree),see],2)):R("",!0),m.is_fedex?(S(),A("span",{key:2,class:X(["tw-flex",m.is_ups||m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/fedex.png`,class:"delivery-brand",alt:"fedex"},null,8,oee),aee],2)):R("",!0),m.is_ups?(S(),A("span",{key:3,class:X(["tw-flex",m.is_dtdc?"carrier":""])},[b("img",{src:`${r.assetUrl}/images/ups.png`,class:"delivery-brand",alt:"ups"},null,8,lee),cee],2)):R("",!0),m.is_dtdc?(S(),A("span",dee,[b("img",{src:`${r.assetUrl}/images/dtdc.png`,class:"delivery-brand",alt:"dtdc"},null,8,uee),fee])):R("",!0)])]),m.deliver_start_day&&m.deliver_end_day?(S(),A("p",hee,"Delivery: "+_(m.deliver_start_day)+" - "+_(m.deliver_end_day)+" Days",1)):R("",!0)],8,Q$)])]))),128))])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.bump_on_step2&&e.product&&e.product.product_bump_offer&&e.product.product_bump_offer.length>0?(S(),A("div",pee,[mee,(S(!0),A(He,null,bt(e.product.product_bump_offer,(m,y)=>(S(),A("div",{class:"bump-root",key:y},[m?(S(),A("div",{key:0,style:ke(s.bumpCssVars(m)),class:"bump-main"},[b("div",{style:ke({"background-color":m?m.highlight_color:"#F4D657"}),class:"bump-inside"},[b("div",gee,[b("i",{style:ke({color:m?m.icon_color:"#6F161A"}),class:"bump-arrow-icon"},yee,4),Re(b("input",{type:"checkbox","onUpdate:modelValue":t[18]||(t[18]=k=>r.usedBumpOffersIds=k),value:m.id,class:"tw-mr-3"},null,8,bee),[[rr,r.usedBumpOffersIds]]),b("label",{for:"",style:ke({color:m?m.headline_color:"#6F161A"}),class:"bump-headline",innerHTML:m.headline},null,12,vee)])],4),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting&&e.scarcitySetting.countdown_on_bump?(S(),A("section",xee,[e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.scarcity_coupon_timer?(S(),A("span",wee,[kee,e.scarcity_coupon_timer.days&&e.scarcity_coupon_timer.days>0?(S(),A("span",Cee,_(e.scarcity_coupon_timer.days)+" : ",1)):R("",!0),J(_(e.scarcity_coupon_timer.hours)+" : "+_(e.scarcity_coupon_timer.minutes)+" : "+_(e.scarcity_coupon_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer&&!s.shippingTimerExpired?(S(),A("span",See,[Tee,e.free_shipping_timer.days&&e.free_shipping_timer.days>0?(S(),A("span",Eee,_(e.free_shipping_timer.days)+" : ",1)):R("",!0),J(_(e.free_shipping_timer.hours)+" : "+_(e.free_shipping_timer.minutes)+" : "+_(e.free_shipping_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer?(S(),A("span",Oee,[Aee,e.discount_timer.days&&e.discount_timer.days>0?(S(),A("span",Dee,_(e.discount_timer.days)+" : ",1)):R("",!0),J(_(e.discount_timer.hours)+" : "+_(e.discount_timer.minutes)+" : "+_(e.discount_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale_timer?(S(),A("span",Mee,[Pee,e.timesale_timer.days&&e.timesale_timer.days>0?(S(),A("span",Nee,_(e.timesale_timer.days)+" : ",1)):R("",!0),J(_(e.timesale_timer.hours)+" : "+_(e.timesale_timer.minutes)+" : "+_(e.timesale_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale_timer?(S(),A("span",Iee,[Ree,e.dimesale_timer.days&&e.dimesale_timer.days>0?(S(),A("span",Bee,_(e.dimesale_timer.days)+" : ",1)):R("",!0),J(_(e.dimesale_timer.hours)+" : "+_(e.dimesale_timer.minutes)+" : "+_(e.dimesale_timer.seconds),1)])):R("",!0),e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer?(S(),A("span",Lee,[Fee,e.diversion_timer.days&&e.diversion_timer.days>0?(S(),A("span",qee,_(e.diversion_timer.days)+" : ",1)):R("",!0),J(_(e.diversion_timer.hours)+" : "+_(e.diversion_timer.minutes)+" : "+_(e.diversion_timer.seconds),1)])):R("",!0)])):R("",!0),b("p",{style:ke({color:m?m.text_color:"#3E3D37"}),class:"bump-description",innerHTML:m.description},null,12,Hee),m.is_image_show&&m.image?(S(),A("section",zee,[b("img",{class:"bump-image",src:`${r.assetUrl}/storage/${m.image}`},null,8,Uee)])):R("",!0)],4)):R("",!0)]))),128))])):R("",!0),Vee,jee,e.product?(S(),A("div",Wee,[s.productPrice?(S(),A("div",Kee,[b("p",Gee,[J(_(e.product.name)+" ",1),Yee,e.price&&e.price.type=="product_option"&&s.getPrductName?(S(),A("span",Jee," + "+_(s.getPrductName),1)):R("",!0)]),s.subTotal0?(S(),A("span",nte,_(e.discount_timer.days)+":",1)):R("",!0),b("span",null,_(e.discount_timer.hours)+":",1),J(_(e.discount_timer.minutes)+":"+_(e.discount_timer.seconds),1)],4),ite])):R("",!0),e.applyCoupon.couponDiscount&&e.applyCoupon.couponDiscount>0?(S(),A("div",rte,[ste,b("p",{style:ke({color:e.element?e.element.primary_color:"#30C79E"})},"-$"+_(e.applyCoupon.couponDiscount.toFixed(2)),5)])):R("",!0),(S(!0),A(He,null,bt(s.usedBumpDetails,(m,y)=>(S(),A("div",{class:"flex-box-div flex-box-mt-5",key:y},[b("p",ote,_(m.name),1),b("p",ate,_(m.product&&m.product.price&&m.product.price>0?"$"+m.product.price.toFixed(2):"FREE"),1)]))),128)),lte,b("div",cte,[dte,b("p",ute,"$"+_(s.subTotal.toFixed(2)),1)]),s.productShipping&&s.productShipping.length>0?(S(),A("div",fte,[hte,b("p",{class:X(s.shippingCharge>0?"":"text-success")},_(s.shippingCharge>0?"$"+s.shippingCharge.toFixed(2):"FREE"),3)])):R("",!0),s.selectedShipping?(S(),A("div",pte,[b("p",mte,"Delivery: "+_(s.selectedShipping.deliver_start_day)+" - "+_(s.selectedShipping.deliver_end_day)+" Days",1)])):R("",!0),gte,_te,s.totalCartValue?(S(),A("div",yte,[bte,b("p",vte,"$"+_(s.totalCartValue.toFixed(2)),1)])):R("",!0),e.element.is_you_saved_title_show&&s.savedAmount&&s.savedAmount>0?(S(),A("div",xte,[b("p",{style:ke([{color:e.element?e.element.primary_color:"#30C79E"},{"font-size":"18px","font-weight":"700"}])},"You saved:",4),b("p",{style:ke([{color:e.element?e.element.primary_color:"#30C79E"},{"font-size":"18px","font-weight":"700"}])},"$"+_(s.savedAmount.toFixed(2)),5)])):R("",!0),wte,b("button",{class:X(["end-btn billing-button",[r.isButtonDisable?"opacity-7":"",e.element.button_type=="square"?"button-squre":e.element.button_type=="round"?"button-round":""]]),onClick:t[19]||(t[19]=(...m)=>s.makePayment&&s.makePayment(...m)),disabled:r.isButtonDisable},[r.is_loader?R("",!0):(S(),A("div",Cte,[b("p",{class:"end-btn-top",innerHTML:e.element.step_2_button_text},null,8,Ste),e.scarcitySetting&&e.scarcitySetting.countdown_on_button?(S(),A("section",Tte,[e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale_timer?(S(),A("p",Ete,[b("b",Ote,[e.timesale_timer.days&&e.timesale_timer.days>0?(S(),A("span",Ate,_(e.timesale_timer.days)+":",1)):R("",!0),J(_(e.timesale_timer.hours)+":"+_(e.timesale_timer.minutes)+":"+_(e.timesale_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale_timer?(S(),A("p",Dte,[b("b",Mte,[e.dimesale_timer.days&&e.dimesale_timer.days>0?(S(),A("span",Pte,_(e.dimesale_timer.days)+":",1)):R("",!0),J(_(e.dimesale_timer.hours)+":"+_(e.dimesale_timer.minutes)+":"+_(e.dimesale_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.scarcity_coupon_timer?(S(),A("p",Nte,[b("b",Ite,[e.scarcity_coupon_timer.days&&e.scarcity_coupon_timer.days>0?(S(),A("span",Rte,_(e.scarcity_coupon_timer.days)+":",1)):R("",!0),J(_(e.scarcity_coupon_timer.hours)+":"+_(e.scarcity_coupon_timer.minutes)+":"+_(e.scarcity_coupon_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer&&!s.shippingTimerExpired?(S(),A("p",Bte,[b("b",Lte,[e.free_shipping_timer.days&&e.free_shipping_timer.days>0?(S(),A("span",Fte,_(e.free_shipping_timer.days)+":",1)):R("",!0),J(_(e.free_shipping_timer.hours)+":"+_(e.free_shipping_timer.minutes)+":"+_(e.free_shipping_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer?(S(),A("p",qte,[b("b",Hte,[e.discount_timer.days&&e.discount_timer.days>0?(S(),A("span",zte,_(e.discount_timer.days)+":",1)):R("",!0),J(_(e.discount_timer.hours)+":"+_(e.discount_timer.minutes)+":"+_(e.discount_timer.seconds),1)])])):R("",!0),e.orderStepSetting&&e.orderStepSetting.is_scarcity_trigger&&e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer?(S(),A("p",Ute,[b("b",Vte,[e.diversion_timer.days&&e.diversion_timer.days>0?(S(),A("span",jte,_(e.diversion_timer.days)+":",1)):R("",!0),J(_(e.diversion_timer.hours)+":"+_(e.diversion_timer.minutes)+":"+_(e.diversion_timer.seconds),1)])])):R("",!0)])):R("",!0)])),r.is_loader?(S(),qe(h,{key:1})):R("",!0)],10,kte),b("div",Wte,[Kte,Gte,b("p",null,[b("span",{style:ke({color:e.element?e.element.primary_color:"#30C79E"})}," Best Seller ",4),Yte])]),b("div",Jte,[(S(),A("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 512 512",fill:e.element?e.element.primary_color:"#30C79E"},Qte,8,Zte)),$te,ene]),tne])):R("",!0)])])],64)}const ine=Nt(NX,[["render",nne],["__scopeId","data-v-48536e25"]]);const rne={data(){return{activate_tab:1,price:{},selectedProduct:[],selected_option_combination:null,billforwardCustomer:{id:"ACC-D1C078E4-BA63-F9E4-FCAE-D33BD810"},invoiceData:{},shuttleData:{},loader:!1,customer:{first_name:"",last_name:"",email:"",phone:"",country:"",address:"",address2:"",city:"",postal_code:"",state:"",country_code:"",is_send_email:!1},countries:["Afghanistan","Albania","Algeria","American Samoa","Andorra","Angola","Anguilla","Antarctica","Antigua and Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bosnia and Herzegovina","Botswana","Bouvet Island","Brazil","British Indian Ocean Territory","Brunei Darussalam","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Christmas Island","Cocos (Keeling) Islands","Colombia","Comoros","Congo","Congo, the Democratic Republic of the","Cook Islands","Costa Rica","Cote d'Ivoire","Croatia (Hrvatska)","Cuba","Cyprus","Czech Republic","Denmark","Djibouti","Dominica","Dominican Republic","East Timor","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Ethiopia","Falkland Islands (Malvinas)","Faroe Islands","Fiji","Finland","France","France Metropolitan","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guinea","Guinea-Bissau","Guyana","Haiti","Heard and Mc Donald Islands","Holy See (Vatican City State)","Honduras","Hong Kong","Hungary","Iceland","India","Indonesia","Iran (Islamic Republic of)","Iraq","Ireland","Israel","Italy","Jamaica","Japan","Jordan","Kazakhstan","Kenya","Kiribati","Korea, Democratic People's Republic of","Korea, Republic of","Kuwait","Kyrgyzstan","Lao, People's Democratic Republic","Latvia","Lebanon","Lesotho","Liberia","Libyan Arab Jamahiriya","Liechtenstein","Lithuania","Luxembourg","Macau","Macedonia, The Former Yugoslav Republic of","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mayotte","Mexico","Micronesia, Federated States of","Moldova, Republic of","Monaco","Mongolia","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","Netherlands Antilles","New Caledonia","New Zealand","Nicaragua","Niger","Nigeria","Niue","Norfolk Island","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Pitcairn","Poland","Portugal","Puerto Rico","Qatar","Reunion","Romania","Russian Federation","Rwanda","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Samoa","San Marino","Sao Tome and Principe","Saudi Arabia","Senegal","Seychelles","Sierra Leone","Singapore","Slovakia (Slovak Republic)","Slovenia","Solomon Islands","Somalia","South Africa","South Georgia and the South Sandwich Islands","Spain","Sri Lanka","St. Helena","St. Pierre and Miquelon","Sudan","Suriname","Svalbard and Jan Mayen Islands","Swaziland","Sweden","Switzerland","Syrian Arab Republic","Taiwan, Province of China","Tajikistan","Tanzania, United Republic of","Thailand","Togo","Tokelau","Tonga","Trinidad and Tobago","Tunisia","Turkey","Turkmenistan","Turks and Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","United States Minor Outlying Islands","Uruguay","Uzbekistan","Vanuatu","Venezuela","Vietnam","Virgin Islands (British)","Virgin Islands (U.S.)","Wallis and Futuna Islands","Western Sahara","Yemen","Yugoslavia","Zambia","Zimbabwe"],states:["Alabama","Alaska","Arizona","Arkansas","California","Colorado","Connecticut","Delaware","Florida","Georgia","Hawaii","Idaho","Illinois","Indiana","Iowa","Kansas","Kentucky","Louisiana","Maine","Maryland","Massachusetts","Michigan","Minnesota","Mississippi","Missouri","Montana","Nebraska","Nevada","New Hampshire","New Jersey","New Mexico","New York","North Carolina","North Dakota","Ohio","Oklahoma","Oregon","Pennsylvania","Rhode Island","South Carolina","South Dakota","Tennessee","Texas","Utah","Vermont","Virginia","Washington","West Virginia","Wisconsin","Wyoming"],couponDiscount:0,applyCoupon:{couponCode:null,couponChecked:!1,isCouponInvalid:!1,couponDiscount:0}}},components:{billingInformation:CZ,contactInformation:PX,Alert:iy,SingleStepOrderForm:ine},props:{element:{type:Object},stepData:{type:Object,require:!1},dynamicClass:{type:String},product:{require:!0},nextPageUrl:{require:!1},isProductLoading:{type:Boolean},scarcitySetting:{type:Object},orderStepSetting:{type:Object},timesale:{type:Object},dimesale:{type:Object},coupon:{type:Object},shipping_timer:{type:Object},scarcity_coupon_timer:{type:Object},free_shipping_timer:{type:Object},discount:{type:Object},discount_timer:{type:Object},salesFunnel:{type:Object},timesale_timer:{type:Object},dimesale_timer:{type:Object},type:{type:String},elementData:{require:!0},order_diversion:{type:Object},diversion_timer:{type:Object},tid:{type:String},payment_option:{require:!1},salesProduct:{require:!1},pcode:{type:String}},computed:{getActiveComponent(){return this.activate_tab==1?this.element.step_1_content=="shipping"?"contactInformation":"billingInformation":this.element.step_2_content=="shipping"?"contactInformation":"billingInformation"},shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge},visibleClass(){if(!this.element.desktop_visibility||!this.element.mobile_visibility)if(this.element.desktop_visibility){if(!this.element.mobile_visibility)return"desktop-only"}else return"mobile-only"},productPrice(){if(this.product&&this.payment_option_id=="one-time")return this.price&&this.price.price&&this.price.type=="product_option"?this.price.price:this.price&&this.price.price?this.product.price+this.price.price:this.product.price;if(this.payment_option_id){let n=this.payment_option.find(t=>t.id==this.payment_option_id);if(n&&this.price&&this.price.price)return n.amount+this.price.price;if(n)return n.amount}return 0},discountedPrice(){return this.discount_timer&&this.discount_timer.hours=="00"&&this.discount_timer.minutes=="00"&&this.discount_timer.seconds=="00"?0:this.productPrice&&this.discount&&this.discount.type=="fixed"&&this.productPrice>0?this.discount.price?parseFloat(this.discount.price):0:this.productPrice&&this.discount&&this.discount.type=="percentage"&&this.productPrice>0&&this.productPrice&&this.discount.percentage?this.productPrice*(this.discount.percentage/100):0}},watch:{activate_tab(){setTimeout(()=>{},100)},orderStepSetting(n,t){n&&setTimeout(()=>{this.$refs.singleStepOrderForm&&this.$refs.singleStepOrderForm.autoApplyCouponCode()},1e3)},salesFunnel(n,t){n&&setTimeout(()=>{this.$refs.singleStepOrderForm&&this.$refs.singleStepOrderForm.updateFunnelPaymentGateway()},50)}},methods:{updatePrice({price:n,type:t,selectedProduct:e}){this.price=n,n.type=t,t=="product_option"?this.selected_option_combination=e:this.selectedProduct=e},customerAdded(n){this.loader=!0;let t={...n,user_id:this.product.user_id,tid:this.tid,pcode:this.pcode};this.type=="salesFunnel"?this.stepData&&(t.type="salesFunnel",t.sales_funnel_id=this.stepData.sales_funnel_id,t.funnel_step_id=this.stepData.id,t.sales_page_id=this.stepData.sales_page_id):(t.type="salesPage",t.sales_page_id=this.elementData.id),this.customer.last_name||(this.customer.last_name=""),localStorage.setItem("set-default-data",JSON.stringify(this.customer)),Ke.post("/api/payment/create-customer",t).then(e=>{this.loader=!1,this.activate_tab++,this.customer=e.data.data.customer,this.addStep2View(),this.setProgramCookie(this.customer)})},makePayment(){if(this.billforwardCustomer&&this.billforwardCustomer.id){let n=0,t=0;this.product&&this.product.price&&(n=this.product.price),this.price&&this.price.price&&(t=this.price.price);let e={invoice_name:`${this.product.name}'s invoice`,account_id:this.billforwardCustomer.id,invoice_description:this.product.description,amount:n+t};this.loader=!0,Ke.post("/api/payment/create-invoice",e).then(i=>{this.invoiceData=i.data.data.data.invoice,Ke.post("/api/payment/create-payment-ui",{invoice_id:this.invoiceData.id,amount:n+t,description:this.product.description}).then(r=>{this.loader=!1,this.shuttleData=r.data.data.data;var s=JSON.parse(this.shuttleData.hydratedOptions);Shuttle.doPayment(s,this.shuttleData.signature)})})}},async addStep2View(){if(this.stepData&&this.type=="salesFunnel"){let n={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,sales_page_id:this.stepData.sales_page_id,tid:this.tid,pcode:this.pcode};this.stepData.type=="sales_page"&&(n.is_two_step=!0,n.step=2),this.makeApiCall(n)}else{let n={type:"salesPage",sales_page_id:this.elementData.id,is_two_step:!0,step:2,tid:this.tid,pcode:this.pcode};this.makeApiCall(n)}},async makeApiCall(n){await Ke.post("/api/sale-page/add-view",n),await Ke.post("/api/sale-page/add-view-all",n)},goNext(){this.customer.id&&this.activate_tab++},setupAutocomplete(){var e,i;if(!((i=(e=window.google)==null?void 0:e.maps)!=null&&i.places))return;const n=document.getElementById("shipping-address-"+this.element.id);if(!n)return;const t=new window.google.maps.places.Autocomplete(n,{fields:["address_components","name"],types:["address"]});t.addListener("place_changed",()=>{const r=t.getPlace(),s=r.address_components.reduce((o,a)=>{const c=a.types;return c.includes("locality")?o.locality=a.long_name:c.includes("administrative_area_level_2")?o.administrative_area_level_2=a.long_name:c.includes("administrative_area_level_1")?o.administrative_area_level_1=a.long_name:c.includes("country")?o.country=a.long_name:c.includes("postal_code")&&(o.postal_code=a.long_name),o},{});this.customer.address=r.name,this.customer.city=s.locality||s.administrative_area_level_2,this.customer.country=s.country,this.customer.postal_code=s.postal_code?s.postal_code:"",this.states.find(o=>o==s.administrative_area_level_1)||this.states.push(s.administrative_area_level_1),this.customer.state=s.administrative_area_level_1})},setProgramCookie(n){if(n&&this.pcode){let t=this.pcode.split(":");if(t&&t.length>0){let e=t[0];e&&Ke.get(window.location.origin+"/api/partner-program/detail/"+e).then(i=>{if(i.data.status){let r=i.data.data&&i.data.data.program?i.data.data.program:null;if(r&&r.cookie_valid_days){let s=r.cookie_valid_days,o=new Date,a=o.setTime(o.getTime()+s*24*60*60*1e3),c=n.sales_page_id+"~"+n.unique_id+"~"+n.program_id+"~"+n.program_user_id,d=a;const f="expires="+o.toUTCString();document.cookie=c+"="+d+"; "+f+"; path=/"}}})}}}},mounted(){this.$refs.singleStepOrderForm&&this.$refs.singleStepOrderForm.autoApplyCouponCode()}},sne={class:"formTabText"},one={class:"tw-flex-1 tw-flex tw-items-center tw-space-x-2",style:{padding:"17px 12px 20px 15px"}},ane={class:"formTabText"},lne={key:1,class:"formTab"},cne={class:"formTabText"},dne={class:"formTabText"},une={class:"formTabText"},fne={class:"formTabText"},hne={key:1},pne=b("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABkCAYAAADdY439AAAABHNCSVQICAgIfAhkiAAADylJREFUeF7tnQt0FNUZxydAIBGwIAIhPKyQVoJWgvISUKE+QCUo0AJaRDw9FC0VhdNTkXd4mZRqBWs1HquIVgUEDgIKYgVsAUGsIi1gBTQ8AwF8Ia8A6e8/7uzZ3czu7OzObsCTe849s3Pn3u9+9z/f9937fXNnNsVIUtq9e3cWXV2ZkpLSjGNTsnksKytrRlkjjp9zvpvfu3Qk76KsqFq1ahsbNWpUkgw2UxLVycGDB2uVlpZ2Y0A9yN0ZZIsY+yqj3cfkZVWqVFkGMGuhdTpGWhGbeQ7G3r17h509e7Y/DF+bCIah+S3gvgv9l5s0afK6l314AgbMVQGEu2Esj3yJlwxGokW/GwFlFKD8w4s+4wYDEHohCVNh6govGIqRxjuo0KjMzMwPY2xvNosZDAxiBwB4Ahod42HAw7ayLfPI45CU/8VC1zUYiGYK0jCJzsbG0mGi28DfSW7SwFjsiSsw6Ch1z549r9FZn0QPKk76sFo2omnTpjPc0IkajMOHD194/PjxpRDv4qaDCq77BBIyIloeogKjpKQk88SJEyuQiFbREj6H6s1r3LjxQHg/5cSTIxiIWxo2Yh2EcpyIncPXC5GQ+5z4cwQDGzEXIr90InQeXB8BIJr9wqaIYDB9TkS8JiR6oCdPnjS7qFGjRiK7Osta5DbWIsvCdRIWDCTiFzTSvO15Onr0qLF161ajuLjY+PLLL4PoN2zY0MjKyjK4i56Dg8p/zc1tH24dYgsGQLSm4ToapnuNxIYNG4xt27aZZOvWrWs0aybn9fskkJBG49SpU0atWrWMtm3bBl33iJdP09PT29erV++bUHq2YMDQJwDxM486N8lIFd5++21TEpj/jXbt2pkDtkvbt283Nm3aZHz33XdG69atzexxmoF0POQIBjPHAKTiVS87DwSiU6dOphpY6ciRI6ZEVK9e3QTHAkhtVq9ebaqSgMvOzvaMJcZ3IjU1tVVGRoZiKP4UJBnyPlGR7UjFpZ71DCFLNQKBkM3Q3ZdKBCbZjJycHENHpcWLF5vS1L17d3+ZR7y9iHQMDgsGQGguftqjzkwyuusLFiwwVaNbt25m2Zo1a4wdO3YYNWvWNFq1amVcdNFFZnlRUZGxc+dOEyALOEnIwoULTfsiQDxMZ7j5V8HXJxZNv2RwoQYqUsSF72+JR8mSij59+pgqYJ23aNHC6Ny5c7leAlXKkgZJkHLPnj39wHnBHmNeBBh3lAMDozkK9XjUi04CacyfP9+0B7m5ubZSYtefJQ1qJxAt6UqEMWXtcR1rj3+KD79koCLvc97BazBmz57tnxFkJz744IOo7nCoNAjU2rVrGzfffLOnLCIABfguo/xgELzNQE/3BYLjRY+aKZYsWeIHw7IVgwYNciR/4MABY/ny5UbXrl3NtYamZSWvwYDkpxjSln4wkIrBnLzgyKHLCtaALPHWgDRVugEjlrYu2TRQlWxUZZupJgrYcOjvlohT/fMFDAzpIxjS/BRf9OoQunOh0+DcXg8Fw/JHrCk2Er14gHTLJ/XXoyodU/bt29eD6PZbMRBwbKJZYc6cOUbLli2N9u3bO9YPrJBkMMrwV+qkJGpKtQYmOyFDqnWFpkqWwFGtJJMMhoGGdEvBXijg8aCr2+aicqCPoWZaSWrN4ZSSDQZm4k6BkRDjGTpYgfLVV18ZderUiSpOYa1EpV7yU9zMRE5Ah7k+QmqyClSuj5FA0polGgwtviQZirRc5uWoZCMUpPEyybHTslzrDjl9lnPnYR+FAqMYgp45Z9aS20MmbUklIMaxSGpyAhHxJBJrTaUyklpLhItkxQOUpGPlypVmjKN///5R2Z8o+1vvqWSE+hNRMuG62q5du4xVq1Z5GvCROy8wtCvGkyCjBUZoVEoOmsJ2sei57I9ULzD2Ea4f16gGNyiUmixDTTwJIYVjMtCND+xfA5VLr3ZakAmw0OCv5coHApwIMJCMPEnGLBi8J05UzeZuwJB9Wbp0qRnia968ubkGkUcbunRPFhiwf6/2WuSDysPJBkOPA9auXeuPV6h/GUZNyYEufrLAwI2/RZKh5wd/TjYY1iCt2Kj6t8oqAgy6byMwtA1JT9njTm7UxIqCWYFhTZmKivE8w+jbt6+fl2RIBprxDS78xWZwB9HcixHNjBcNN2AEqoWi3lIPDTx0JkoGGPAyBzAGWJGuZygYmmwwAgcq46nz0JBgksC4FzBmmWAQ4LmDAM/CZINhSZK8Uutp/IABA4LYSAIYZUzrmQ0aNCg2wdB+rWPHjpWgKtXjAcStmlhGU4sq2Qot4UMXZkkAwwz5iRf/cxMvFl/hwNBTND1GjMVXkWHdsmVLUNjQy0WXFQwOAsOL56zno29iPSYIAkMnAKLHbDFvbbQeC+qBslzsRCUt4bV3o3fv3vF6rUH7NIK2JKAqXbEbK+MZhLWyjIdGNG1D93lE0yawjtYWvMuSFfguS7mdO17YjsDtSG6ZdKovh06RrljsTwgYedCZGFhWDgzm+ytOnz692Ymp8/z6QXYWZtWvX//biGD4bEdSIuYVCOj9TKdaaAYl2w1uLMIuZhH2b2rqXbIfWlrBFoRb7V7tirQPNGHbHysQ3c9Qj6tD1cPiJ+IOYd/G2DlUrlKBA/Cka80eELoao7k9HEHHveOJfhbryUgdiABEKYurW1GPdyJVdQTDZ1DP9830tgYzKgMaWkl7OAgPzqTc8TWFZNzpaPuA71MYyuHMHIXRtIlKMixC2BDFPJ4iV42GeAXXOUz/uQARdRTPFRg+lbmBo4xqvQoebKTuP8JG9Gaflva1Rp1cgyHKrEMuYR2i9zbMXXLnUtKTMfi5k1njuFu+YgJDnTDLpKOPv6XzMRzruu04AfW/gJexqMUr8KN3XF2nmMGweuLhT10cs3EwMizeSJlr7r9voAjdJFTi2WheyovUR9xgWMT379//4zNnzuRz3o/sGd1wzAP+cb1xzYry0XArSrfges406qOXdvSRgD4wG+tnIiKN432AWJiWlvYSIOx3O+CkSIZdJwBzpQ+U3hz1O5Z0hkarAXYhsYwFAKBt3QlJnktGOC6JjzYnTnI51y8ma1qWZ2z+ZqC1OR4ha21wSEfu/qGqVaseRPU2MjPoWsJT0sBI+Eg86KASjAAQK8GoBMNepyolo1IyKiXDcb6pVJNKNfmBqEl+fv6PWJafGjlypD9eUVhYmKo9JqNHj9YKNubkqCYTJ07U+1SKf2aQd5AfpOw/MfcYZ0P61pOwDRyft0hNmjTpGpb2BZRdFw/5aMD4nBDaXePHj183YcKELvgRR+h0SzydxtO2wsCYO3duVXbNfMuj+5+MHTt2b+AgJK7sxxiOQ6VPWL4BUIt1ffLkyZfhXA3hZxr5ZfJG8jQG8Qdd90lac46v5eXl3U/71RQP4Tifl+Y229Hkzrfmzv+GenoQ1Jy83E4yKH+cfAt5HddnkYfj7K0YN27cVl/fPeC1FF5tvwUYjWQoYPNr8mwIPyfCdKInbOvJfwOot/BGtan2GfZlbeazl4pG65HCHnIOe7TmsefzEG3kmRoAcA8D78L5EPJyis7C4PMMdj3H+WFofsi1R2i3yQfw4zZg6BtiI6lXBK2nkOYJ1K9PWUfqmq9YS70ZQy5jCPpuhq4pOYLhI6JYxK/IQ+hMeScdvsn5OB8dXRetz8hZuiNWBzNnzqwRCQxo/ZU7tYi738aOJte3MaifQ9PcKRuNmkBPHzn4KTuIHmCHjx4ntub8cujI3vm/imDx6AoMqzKEBvO7J1niOAP0f2dd43cxEqIIVyr1/F9w8oFRQpn5ErGNZMjwvUvuFIFmOtfHRAsGfQxj4B0kEeQCgPiGc31n7Gn1FQpCVGBMnTq1EWJ/C0i/oIgzhKbTUN+R+iN5M2rRccyYMfspv4AwXCr63p5OJ7Gzr0u/fv3OUJ5BLiZry1C27A6/82ibGaAmFhgCqxxNvhyn5zTDqH8DuRq/9YWAl23URLNMG/pOwc69Ab9L4PvpKVOmNOUmaa+aDP9V4YBQeUQ1mTZtWj1egfgL9dqSFX7Xy30DNTjQv42BT+P8IFn2YCTla8mP8VsD0Jz/X6kMdR+WiHIundfnKS8IBUPM2NGkeANZtkSfbfpCgyKvsQFD0qqYqGKwH2OrBg4fPtz8ABh1ZU8WcXw2ZjCshppV2N5UzSIeSJAOapGPBpZpEUS0PIVy/wd1+J3GndLnKR2fadjRpKx6IL1wgwqtJ6kVOOQcfh+LG4xIBM71awBwFzfgUm7EVCdeo5pNnIj8UK5XghFwJ89JMDDc9fmw2RHNSMmUOtdgYPEfZGbQoqpU+6RYXyzlrcMpbhmHzk20n4VONw4dMGWatW71zR6PUe92PUclv4ru53FdK2C7cjmVk7jeIxYQXYNBR+PpqB5Hrea0JUF7Rp/jt6bgqJNmDAbXwc5PsMDg+rUAoZWnvkBZnfNc6r/qW7iVK6edvNYnOcb0nm5cYGjkdKyvTDfQeoIldTuW1Fq2p+rOUbbTJwFfc64V5hVI0kt4wKu5lsFAB3FdCzitMW7nvBc/tRZ5gKx3be8iN6Fu0PYpX5925RUCht5nG83ALmPwz3G8j6MctD/x++8MSivRwTDdjkHKwdLHjX6vNQZJH1HMoV5d2mgl2YY6uZTnc11esN7L184g6+7+i9/yOl+UFGqtQZbnaldeIWDcCzNa7bVkUDdxp4O+BA+zeoa6SwseHxjyLaRekqRXOLxJu48sMCibBxDvoQJP+uqYNkOSNX369Jo4W3pwLRc+nbcAOg0dOrTUrpyF3jXUqRg1gVltGfqQo4yWXumS79KArI9nPKQyGzB011cAxroAMN4BjALAWBEKhs59ZVWQGn2Rshd0/ZE2fvvLqacvJlYMGD7fRXvM74bJ+jCbC3ODCwoKavONcnmqaT4w5Jg9QJYzJt/kRsAoCwBjJu1LAGMyzmFDnEMNVp//70z84T0cvCLaSjU34hBm4xD2sivHqZNqVQwYvjvWlaP2WcouaGbRNwL16sKNDCDbB4ZmgwPkHAY4g0EXYGwvt8DgXNEyOVNywj4l6/vmgyhrA8BT+K3/M5GP8TA0X4dmX7tyrslmKIol59FKt1OuaJtjcj2bRKLoCxPKPvgdN0tNcK3zcK3lvIX9oxaplQxkaB+yPeRyTla4csdRh6ngKRh2fSjQQrk8Vrn253T6P2y3HL8GqdRfAAAAAElFTkSuQmCC",alt:"",class:"tw-object-cover"},null,-1),mne=J(),gne=b("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABkCAYAAADdY439AAAABHNCSVQICAgIfAhkiAAADxBJREFUeF7tnQl0FdUZx1+IgaQgLWsgCgrECkQFF6IFVNAKgsUFLEpdim01WigVCqeBsFM0HBSFVmu0VaRqERVaxSMgBa0sClQQjxgRasMukUWBkLClv/+cNzkvjzdv1myae849M+/Od7/73f9833e/e+fOvIRQJaXt27en09RFCQkJrTm2IhvH0tLS1pS15PgFv7dzvk1H8jbKCs4444x1LVu2LKwMMRMqqpG9e/c2OH78eE86dD25N51s57GtUuptIC+qU6fOIoBZBa8THnnFrRY4GDt37hxy6tSp2xD4yooQGJ6HAHcZ/F84++yzXw2yjUDAQLg6gHAXgk0inxOkgPF40e46QMkGlH8F0aZvMADhRjRhKkJdEIRAHnksxYSy09LS/uOxvlHNMxg4xMsB4HF4XOFHgADryre8Qh6Hpmz2wtc1GKhmAtowmcbGemmwousgXwk36U4v/sQVGDSUtGPHjrk01r+iO+WTP6KWDm/VqtVMN3wcg7Fv376GR48efRPm3d00UMW0j6Mhw53K4AiMwsLCtOLi4rfRiI5OGVcjulfOOuusO5H9mJ1MtmCgbsn4iNUw6mzHrBpfz0ND7reTzxYMfMQ8mPzUjlENuD4cQDT6Waa4YDB8TkS9JtSAjjoR8RSxyA3EIousiC3BQCNuDY/bThqqETSY/Nfc3EyrOCQmGADRiYqrqZhSI3rpTsjPUlJSMps0afJNdLWYYGAeGwHiQndt1CjqmWjHg7ZgMHLcjlb83U3XSkpKQvn5+ZZV2rdvH6pXr54blqfRfvrpp6Fjx2KPju3atQs1aNDAMX/6V5yUlNSxRYsWWkMpS+U0Q7NPTGQLWtHGMWcIJejatWstq/Tu3TuUmprqhmU52sOHD4fmz59vWb9Tp04hZZfpebRjsCUYAKGx+M8umYY++ugjI999991uq/qmnzNnjgGEBzBOcvMvIWTfaApRphlcqIeJFHDB9S2soWCE6PM/AePm08DAaWZjHg97uVU1FQz1ldjjKmKP93RephmYyPv8vvy7BgYKMI25S3YZGCzetsBT74oExw0oXjXjyy+/NJrR0XSwjRo1CtWtW9dx8z58htnGZzjS9mVgoBXyqs85liCK0BxN7BzokSNHQtu2bQtt2bIldODAAcvmNExiyyENmY0bN44r1ty5c0MdOnTw4kDL+GIqHTCVfMNMtGDD4TavYCjOOHjwoOXwKRBWrFhhaICS7n56enpZR/XbBGf//v2h3bt3SyaDVhrTuXNnS96ir1+/vq84Bkc6GvBzE8KrV19hOw29gmFVT0GS4o+tW7eGCHKMO9ixY0dHZqC6mzZtMmIYnr8YYHTv3t3oeAWkDzCVKxJ27dp1PavbbwXdgLRg5cqVIQVMikB1d934gkh5NmzYENq4caMBaGZmpmE+AadS5is/SPAzpFoJJE0QELqLuptW0adUnPYNwOQnCI/jmtqyZcsMcxIY3bp1CxQPLKRnArapBY/fBsVZIAgM1M4AwkobTLrodgVcjx49LH2AWU8OVoB41bbodnETgwSGL+cZydQU1O7OrVmzxpjYyXwURmsSZ072NEwLEM1n7DRPjld0AQEyXGbyDqhc7VcznAIh01i4cKEBhOw/OpkxS9euXY0Rxw4QaUjPnj39ih9S8CXN0Nz7fD/cTB9hpxFqw+xs//79LafdCqSc8HLTroP+5QmMPRrOHRBbkkh4OUB10C45iVaXLFlisOnVq5cdu9DixYuN+GXAgAG+hl1N2mQmxaiIr5UXMwJ1cjedaoYT9Q9YMz4IRDN0+0yf0aVLFyO4skp2PsME1qnPkBPt16+frQbZERiagZloV4zrZaJYzJ06UZMuelFGQEhzFJ/E66CpEQGPJnkyk0WYifU4Zgdp1PVIQKQlsYY9DaOrVq0yAi6lyLmJzuUrrNZMFYkqIg0YCC30TJJmzEaen7vsc1xyM46QwAqMrGaecnwFBQXGJE/aoPjCajiNnOw58U0e+nOP9lrkgsrvPVSOW0V3XTNVTbI0L1Fc4TU4kvlIG5TEK55P8toPpvF9pBl6fvCYVybx6mnmuXz5cmPo0yQrIyPDFSjyDfIhmrtIa2R2dusbPvpxscDQNiQ9ZfeVNErEMwfdWXM9Q8OmJmWiV3wiE5EZqNPKWgDas2ePoVW6pkhVdWIl0QtoP89lsIxvmEs1NRZ3UOmdONE0r2g4XekSYFrlkgmp81ZJnWvdurWRrUAw6wax0gWvlwHjdnOl6ykKsryC4SSqjOYtYHTndWcPHTpk3FlpioBwYwoBrIFKtHsAY7YBBgs8N7PAs6AywfDaVnS9AMAoxbGnNW/efI8BhvZrFRUVFWIqzpelI6TyohnVCAxjyU/ylD038RN81WQwzMXgcmB4fc4qJjUZDPMxQTkw9ANA9JjN9dZGEwwr1Q/iKbwWhKy2JHh88Cxxy+3TKLclAVPpgd9Y7taeK2N/hgC3Shp+3YxA4qPYgndZ0iPfZTlt544f3+EWxKqk18QMECdGynAaGER+F5w4ceLjqhS0EtreS1yT3qxZs0NxwQj7jsBWzCuhY16aeIDhVIFmuRRzgxtBWFOCsA+hjD0h8NJ89anzNlsQ+sZ6tSvePtBv4/bHzzGPS6PNw7xPcXcIhzfGvgxxnepzY71JotGDmpfiNLdYcbDdO14Rz2K9dcd7LYA4TnDVF/NYGo+LLRhhh1rTN9PHdJiOHGg0kfZwsDw4i3Lb1xS837/gayL3MRzlMEaOPCfcHWmGyQgfojWPJ8iJTphXMc0+2u8HEI5X8VyBETaZaznKqTap4s7Ga349PuIW9mlpX6vj5BoMcSYOOYc4RO9tGLvkqlPSkzHkGcSocdStXJ7AUCOMMinY469pPIdjI7cNVwD9/5BlLGbxEvLoHVfXyTMYZks8AGrEOuY4BBnidaXMtdTlK2iFbjIm8bSTl/LiteUbDJM52xXPPXnyZC6/B5ID42slPOAf1RvXRJQPW0WUbkEOXGjMRy/t6CMB/RE28G158H0fIBYkJyf/DRB2u+1wpWhGrEYA5qIwKLdw1LmXdJJK7wLsAlax5wOAtnVXSApcM6yk5GlaW9ZJMrjelKxhWTNj45yOnslxP1mxwVc6cve/SkxM3IvprWNk0LUKT5UGRoX3JIAGasGIALEWjFowYttUrWbUakatZtiON7VmUmsmtWZSsWYyceJEvSOhVa9ist7aX0ceR3m5+UNubu73+XhRAeF1t/Hjx39iK1UVEfjyGXT6KuT+I8dOU6dOTWWP1nh+Z/C7R3R/KOvLE++3s7KyjldRX22bDQwMtTRhwgR9znIzHU+eNGnSaM6XMhm7j0ujySPI+tjZfWjIm+PGjduqOtDdAN1hyjYD5hCKtOvwBXgs0/UpU6acz2TtXk6TVU5uDH0ibb2h69Cl8/tafjtaAY+HSKBgINh9zDZ/RQczEe4gQsqEFrN34k129+1gDSKdvRyDoWkLrfFeHHSb2OHXByAGQb+BXMJ1PfjOoDyJcq1u6xGFXnTtzELvesB5A7p0eJwi66sOqznOsb31NgRBgKGF4U/oQH0E1EdMsxAsn1zCeSrHg+E7WCgw9I0OANGWB71zpY1lI6H5iSnn9OnT67NHdDF0+lDBJaLj+rDIfvBbb+f8ifwO+UPAzhg2bJja85WCAOMJ3gnt2qZNm6KBAwdqIcZIYTBSdPciwcjOzv6asudkQnT4Bq69xO+FaNMD/L6O33rVoA9Z5qUtVUlcL/dFKGj7QDsCHv/gKMDlq3ynIMAwHGi0JDZgaBR6hKzXwTqwgtUIbVlLnXZa2ea4gvKxnCfR2cm8Jd1dQFPegryHsgQA2QRNIpZ0dU5OTiDLf1UCRlhTPqSzr+EzptJBPeXX5jr5Be2jbkZ+lPJ3yI9yrgdXWgX7xDQZwBgFKBfz+2e+VSLMwBcYQQlh8qFjDcmnfTIqLy8vidX3BK6VfYGI87dwphOJWz4ISo5qBYbTTgFEW2hncvT/clpEozUSDKeguaWrBeO7qBlhJ92U414rjYmpGeGKQ6l0B7kNWU5tXsOGDaeMGDHC9dNtt+oaSY8sXWl3vd92NSzDdw1HfQk/ZrIC4y9Qn8t84Tdjx47NZxhLZRjMYnvx00GN6U4B0qgB7T2KL5zWiUXnCYzJkydfyORqmUJnRYvRjGGqPRlXcXxa1wDqDsb7z/i9jrpdqCttSiIrTvhvOLJ8l9/3QvcaAdbW6AkZdOdyXYGYJmM9ycspm0Pdm6ijucdfNW8hJnktPHFTdFqPoTWPodXYzQy9XpzXY8x9tPHYmDFj9s2bNy+RV8aGwkOPNjXHGe9KMyD+BZVu4nhTLIQRsDfMh5rDGkcztNak7BEEfJHrmeTBXOtCXkz5KTrzLJr2PkDcET0ho855gPg6dAqk9G3BFyjTB5GKKF/K7/sp/xzNPMAjyn9T/gDXd3JtNuea9f6I66M4H8p5KuejabcHWVHueYpHoFXgNswVGHQ2C2a9qDRAYIRD39WaYNFQLvlILDC4ay+a4FFXz1C3cfyewKDOk1zXjpqyFDkhA6STCDsNWq2P6C4/RZ31mpZzrn+1yJSZINtw2tZN0lRe6VbonqFMHxXUp57WhMtz0I7LeCUjHyCukfZ4MhMqXQbDBcwE082ZYDgCnE55Po1/YaEZ+hq8aJqTNdl6EF51w5qhjhrrE7EmZAhcEgWGvhcu03syEgzAGUP750D/rIkqc5PNzGukla9SXvYeBi8Vr+NrTlqBqw+PY57ACN8Z7fs8wjulQ0eNGiVN0MRIAij01dKeZpo/lE3S4BKZAGXF0PWjfPC0adPOZJmvkPPkSDAeeuihJrEmZDZgbMU8rsGRF+CTrhRotCWfdSK8uqadOzm0rVBepiLNSiPvIm+E9xA04z3Or+HSbFdmImazZs2qx2JMDqeyWw2l2jLwMer8O4SSU5TKn0f+XNcR5nWEWcm51jb0jUC9uvBjGu4QCQbnMSdkNmD8AV43khdSfwxZfwug7xtr4qY3DwdhDprcPU/WKpn2c0mrfomc1yHXM/zejIzvcn4X5Zab8mwjUNn2yJEjizS1FlBmmjFjRkr02B/WFK1hHI6kjT7neswJmVWdsIZJ5Y0UBlVaVxRZh991WWctjVxnDdPWkSbFk0nXbMGwY/Btuv5/xXD2oaaTg8wAAAAASUVORK5CYII=",alt:"",class:"tw-object-cover"},null,-1),_ne=J(),yne=b("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEMAAABkCAYAAADdY439AAAABHNCSVQICAgIfAhkiAAADwBJREFUeF7tnQmQFdUVhnuAYYY1AgLDIFEBw6ICCjVaiAtYihsqYBCVoCRFjJJgIAtD2LGAUdQI2ZzEuCBlAKOUwSi4gQsgOEaWhCUsKus4bCL7Ovn+zuvxzZvu1+ubYazpqlu3X/e955779znnnnvu7X5pRjkdW7dubU1THdLS0r5L3oJk5sXFxd/lWjPyz/i9lfMtyklbuPZFjRo1Cpo1a7arPNhMS1UjRUVFdU+cONGdDt1A6kknWwVsq5h6K0jzq1WrNh9glkDrZEBaSatFDsb27duHnD59+k4YvjIVDEPzAOC+C/2Z55xzzt+jbCMSMGCuGiD8AMYmkM6NksFktGi3AFByAeWdKNoMDQYg3IokTIKpi6JgKCCNt1Gh3Ozs7E8C1jerBQYDg3gZADwJjcvDMBBhXdmWl0hjkJT/BqHrGwxEMw1pmEhjo4M0mOo68HeMhzQgiD3xBQYNpW/btm0WjfVJdadC0ofV4mEtWrSY5oeOZzD27NlT/8iRI/+EeDc/DVRw2SeRkGFeefAExq5du7KPHj36FhLR3ivhM6jcS82bNx8A78fdeHIFA3HLxEYshVAnN2Jn8P18JOQnbvy5goGNmAOR77sRqgT3hwGIRj/HIykYDJ/jEa9xlaCjXlg8jS9yM77IfKfCjmAgEXfExm0vDVWKMqj8fh5ujpMfYgsGQHSk4lIq1qoUvfTH5PpatWrlNGrU6OvEarZgoB6rAOJif238v/Tx48eNL7/80ti3b1+Q6p7qNGjQwGjatKlRs2ZNT+VtCk1DOn7uCgYjR3+k4m9BWtm7d6+xYMECg6l7kOq+6qSnpxs9evQwQfF70L+j1G+flZWlGErJUUoyNPtERTYiFef7bUAS8dprrxnHjh0zcnJyjLp16/ol4bm82vrwww/N8n379g0qIc8jHfc5ggEQGov/5JmruIJSDUnFFVdcYbRqFTSO473lTZs2GYsXLza6d+9u4HZ7r/hNyVM8/Eupu8q6VCIZ3MhARb7ghn+5o9KKFSuMVatWGT179gwkun57Y4HfoUMHo1OnYP4gfX4VMG4vAwZGMxf1mOKXKau8FzBkUyTifg6pm53KRQGG+MD3uArf4wOdl0gGKvIRvy/zw2h8WTcwtmzZYixatCgQ+T59+pQBJCowEIBHmLvkloBB8DaLJ7YjHhy/XLuBIcO6efNm35Kh4bNdu3Zl2IkKDAivx5C2LQEDqZBVfdYvAH4kIwxtu7oRgiFVaYeqrDPVRAEbsjvDMOwmGWFopxoMDOlIDGleWix6tRvdqR+GYT9gzJo1y1Vd5ExpZHI6opQM2liGqlyetmPHjhuIbr8RBgjV9QPG2rVrXcGoU6eO0bq1FuHsj4jBKGa+clZa2CHVYtUPGGGBV/2IwTDQkO5p2AsFPB4Ky2BlBwMzcZfACG08k6mJnuDChQtd1cLpYcjhkoufOCGLWjJof5jUZBGoXJ0qyTh48KCxZMmSUOS7du2aMqfLYkzOlyRjHRfahOLWpwEN0pYkQdP2hg0bmtVTIBn5AqMQ2oEmZ/GditJmSJo0j1GHrTy+LalMvXr1jA0bNpjeqUIGYQ9N2qQmRxGRjLDEnMBQxzTVdjs0gTt8+LDBMF8qOCR3XJ23JMICJ37CJ7ui+5rBWuXc2rO5vyzlkuHXgKozTZo0MYhCmR1zChIJ5MLCwhLJUZhRda6//voAOBgaWl8VGNoV0zEQhbhKYdXkzTffNKkF7cyMGTNCgUHT+VKT+aiJs9/rEaXKDgaSMUGS8Rz9vddjnx2LJbMZCtG5HWvWrDGN4i233OJW1Pb+vHnzjIyMjMCSBdFB2muRByojAnHgQU2sIdAL/dq1axt33KG1K/fDio+0bNnSBCGsmjGNv1GSofWD37o3n7xEWDXxq/PyalHxkphrWDDo3SUCQ9uQtMoe6ogaDD35pUuX2g6XGqqleorCy1XXITA0ugwcONB3P9CMr5nCn20Gd0B4O0Y02zcVD2qiTq1bJyfX/tBwKD9CkhHfOQ2dWofRoRHG8h+WL19u0osvGxYM6s8GjP5WpOspLtyfCjDcAsFa89Dah8Do2LGjmaxDDla8+Ou35jlaXuzVq1cpdsNIBoQGAcZzJhgEeG7H85ubCjBEU51wWnK0ZqN2YFh1LUDkdQoISYqMZvwRAoxivNxsHL1CEwzt18IV3oWqBF7JjcJmJEpGooQo+mUHhMpZdiSAzTBDfqJRsm4S1vlyAkM2I9mKvLVIJMmwVMZOQmVDNGtNlAirrCRDEti/f39fAm4Fg0uBEWadVYScwHCzGdZ8Qk7ToUOHjN69ezt22KmXAnz27NlJwXSqay0TlAJDPwBEy2yBtjZaC8F2a61yvJwOib6kY+PGjaZxbNu2re8puaUiAdZ5S+3TKLUlAVW5Brux0JecxQpLRDUUJhN1N7qWEXSyHYn1JREFBQVlfA63dnRfvgXvsrSOf5elzM6dMLbD8gH0pPXE/R6KZezfv9+Ml8Ko0blzZ6NNG/sgnCRJq/6yJXoACg062RM7PjQxo974+HtlwMCLu+jkyZOr/XbEKq81EdmJZKrhh7aGUkWyrCE4HgQFfrp06ZJ0fcWhrSKAa924ceMDScGI2Y5IIuZ+Om2nAvI0rQUnCwyBbC1Gy774kYa4Nh5gOJWjWeqw3eCGE3Y2IvsvSgbaEhMGBDtQVq5cabrgEYAg8m+xBeEmu1e7ku0DPaO2P7r5GR4fwAYkqXOielh1k+4Qjm2MnU3hah4bO2OLafSAuc4YzY1OTLruHY9qLbYiUQKIEzhXN6EebyfjwxWMmEGt7JvpbQ2mJwOaWEh7OAgPTue662sKFSkBNnwfx1AOZeTI98KXJ8mwCGFDFPP4A6m6F+IVXGYP7fcCCM9RPF9gxFTmWnIZ1UYV3NlkzX+KjejNPi3ta/V8+AZDlPFDzsUP0Xsb5i65M+nQyhj83MWoccQvX4HAUCOMMrXQxwdpfBR5A78Np6D85/AyGrV4EX70jqvvIzAYVktfffVVAxyiMTAyJEykzDfn31RQhG4iKvFnLy/lJWsnNBgW8Z07d5536tSpPH73I0VG14l5wD+iN67xKKc4eZR+AY6cadRHL+3oIwF9YDYVrxd8BBBzMzMzXwCEnX47XC6SYdcIwHSIgdKbXOdBjlNUeg9g5zJRewUAtK07JUfkkuHEJVPvlsRJLuT+2SQNy5oZm+d0tB75XpJ8g93Kefq7q1evXoTqFTAy6F7Kj3IDI+U9iaCBKjDiQKwCowoMe52qkowqyaiSDNfxpkpNqtTkW6gm48ePr0GK7NN2tmoyYcKEh3CHG9KQ44dE5syZU529m1p5y8Jtvm/MmDHumz1dtTZ5Afi6dty4cebX2ji/B3d+FHlk3wGyBQMQxmruQD7UiT3uaZP2z8hLb64K2WGn6jycNDr+Ce1dqjLk9QntXTB27NhQX22Lb88VDBpVRFxvz/yQlMbq+KNMuFRvKuk8TaeZTT7P9cN8sWkov89n4rUYJp9TxIkOPMC19yg7mPxlrumzdwUkTfOXUe8D6P2a82OkPNrbPWnSpGbsARvCb+1AnIk0LJw4ceIvqf8r0mNWB6C1kfKvxIAaxPWunG9mc+3vRowYcYC2r0N6jgDa1Vw/j/vPUt7xTSAvYCyAyH4IToVwX861He820ihSDtfzuK6no09XzaTRjzkfQ1pNw78hqf5p7j2DOn1Ex5/m9zbqPUU9fVRMXx2ROgrsupQfSOf1Xv4K0jHoSRU12+1Beox6AtFgNqvP6XWj/K2kR7ikGbDo3U26EhrdADCX+trX9AvSWSQtGTSn/FEL0PjcKxiPQOBdUhaVPyVvRhrA+bXkg2j0Yjo2k3Nz3yK5nv475E0FBkz/EeYUqNU9gWPS48mNhNnGnA8nKd7xgkVDZadOnVqHrU0LKCNwFMd4nftmEJr8BrIHY2Ds0RaDkSNH7otJSRHAXwVPt/O7FmWk9qqzjuu3Yd/WhwZjypQpDdgtsx6iTeLB0FOA2Wlc66xGJk+e3IgNJ9u4XpsOK4pudj4RDIHANQE2gvQ9zueSXxhTrev4rS/G3kj6MUlfkC0DBtf0yYfDRL6a5ubm7o+1sQoJuh8grkkAYyX376KNNSkDA+ISQX2y5RLOP6czg2BiIOfd4yXBCxjYn6sA/GPqtZLNIdcnVEZjWzahYu/z+3wbyXifsn8B/BcefvjhVgoIUeZcrg0pdzDEHADcRsPSWUWrihHHeySOfsGgrmKo2mi3jXSI1Jj0OHQWkWSIM+jkVNrSPUtNpDovql1SQy0pAsy8mBrGq4l/ybATIa/XYDiTZGugvNKIPfn60Cnz+ahk9MO2XTU3iXtCVWBUgWGvsN8aycjLy/sOI9Hx4cOH+15wtqAJDAbGSq8ZawOLHDFN0h7i2r/9GMkoy9K2tjIuJ38mKN0wYHyGY3M3c5ClMadrr5MzE5Q5P/UqDIzY9P0AjtAFo0eP3h7PtMQVp0kTNv0HwT803us+zlAbnKHBnGaSZpLkGE2mE5qkGTFJa0k+K3Fyx1dPVtvRZBrQEZdb3qmG4JakBRUlGVpx/xFpBg7W0zhYa2FEWySXkf4KUG/gMeqtyKd4T2Q1s1BtJ9IMWM5UJ945e4nN97upo6VFOW33AqAmXoNjjpo5uaOzy8hfdqD5Cfc0v5EzJYCfqBAwYk9Tk6t7SINhSmkzzL/Ob81adei+VHEDqTWMlsRHpk+fnpEMDGtyx9O/xI4m99cBQg9oaiYtyao4mxHrrJnByH1kelX5CdI0bMlPrfucFyIhmnanU64kchYDYxfXzK9A2UiGNVPumoSmXG2FEioOjFjw5UbswbOxyZQCPQrOPEpajVpcPmrUqJ0wWpvZZDr6nsNTnNi+fftu/fr1O8X1LFKh3G3UqZ3sDucTqJsdpyYWGAKrDE0CSdpoN4TyCiPU4FxfFlAYoXxHk9gU/fc03oWkyZFeXB2gzvGEb6bjk/ldRJI9UKxiCelxztUBTeT+I5Wh7AjK6uNH0nn9v0DtRDBiUlOGJteXk2RL9Kcxn5O0bWFxuYMhBnVoVOH9lBpDhw6VVJQ6YEpRq4PxF/Pz89PZ7pTG9ZJPP3KeiYTp/wVcN6XZ0eRazXh6iXz4+R3Yz/DTSGUp+z8ZqbewPjil9gAAAABJRU5ErkJggg==",alt:"",class:"tw-object-cover"},null,-1),bne=[pne,mne,gne,_ne,yne];function vne(n,t,e,i,r,s){const o=at("SingleStepOrderForm");return S(),A("aside",{class:X(["md:tw-basis-[50%] lg:tw-basis-[50%] text-left main-order-form radius-bottom",[e.dynamicClass,s.shadowClass,s.boxClasses,s.borderClass,s.visibleClass]])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-order-form{ padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; } ."+_(e.dynamicClass)+" .order-form{ background-color:"+_(e.element.background_color)+"; } ."+_(e.dynamicClass)+" .title-text-color{ color:"+_(e.element.title_color)+"; } ."+_(e.dynamicClass)+" .contact-button{ color:"+_(e.element.step_1_button_font_color)+"; background-color:"+_(e.element.step_1_button_bg_color)+"; } ."+_(e.dynamicClass)+" .billing-button{ color:"+_(e.element.step_2_button_font_color)+"; background-color:"+_(e.element.step_2_button_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input label ,."+_(e.dynamicClass)+" .label-color{ color:"+_(e.element.form_label_color)+"; } ."+_(e.dynamicClass)+" .order-form-input input:focus ,."+_(e.dynamicClass)+" .order-form-input select:focus { outline:none; border-color:"+_(e.element.form_highlight_color)+"; -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, 0.6); } ."+_(e.dynamicClass)+" .order-form-input input::placeholder,."+_(e.dynamicClass)+" .order-form-input select::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ color:"+_(e.element.form_placeholder_color)+"; } ."+_(e.dynamicClass)+" .order-form-input input{ color:"+_(e.element.form_text_color)+"; background-color: "+_(e.element.form_input_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input select{ color:"+_(e.element.form_placeholder_color)+"; background-color: "+_(e.element.form_input_bg_color)+"; } ."+_(e.dynamicClass)+" .order-form-input select:has(option:checked:not([value])), ."+_(e.dynamicClass)+' .order-form-input select:has(option:checked:not([value=""])) { color:'+_(e.element.form_text_color)+"; } ."+_(e.dynamicClass)+" .order-form-input .filled-select { color:"+_(e.element.form_text_color)+" !important; } ."+_(e.dynamicClass)+" .order-form-input .null-select { color:"+_(e.element.form_placeholder_color)+" !important; } ."+_(e.dynamicClass)+" .payment-box{ border: 1px solid #c8c8c8; } ."+_(e.dynamicClass)+" .payment-box.active{ border: 1px solid; border-color: "+_(e.element.primary_color)+" !important; } ."+_(e.dynamicClass)+"-background{ background-color: "+_(e.element.step_background_color)+" !important; } ."+_(e.dynamicClass)+"-active-background{ background-color: "+_(e.element.active_step_background_color)+" !important; } ."+_(e.dynamicClass)+"-font{ color: "+_(e.element.step_font_color)+" !important; } ."+_(e.dynamicClass)+"-active-font{ color: "+_(e.element.step_font_active_color)+" !important; } ."+_(e.dynamicClass)+"-accent-color{ accent-color: "+_(e.element.primary_color)+" !important; } ."+_(e.dynamicClass)+"-primary-color{ color: "+_(e.element.primary_color)+" !important; } ."+_(e.dynamicClass)+"-active-background-font{ color: "+_(e.element.active_step_background_color)+" !important; } ."+_(e.dynamicClass)+" .privacy_statement_box{ margin-top: 10px; text-align: center; font-weight: 500; color:grey; font-size: 12px; } ."+_(e.dynamicClass)+" .template_4.activeTabBox::after{ position: absolute; content: ''; bottom: 0; left: 12px; width: 15px; transform: rotate(45deg) translate(60% , 0%); aspect-ratio: 1; background-color: "+_(e.element.active_step_background_color)+"; } ."+_(e.dynamicClass)+" .template_3.activeTabBox{ overflow:hidden; } ."+_(e.dynamicClass)+" .template_3.activeTabBox::after{ position: absolute; content: ''; bottom: -1px; left: 12px; z-index: 10; width: 15px; transform: rotate(45deg) translate(60% , 0%); aspect-ratio: 1; background-color: "+_(e.element.active_step_background_color)+"; } ."+_(e.dynamicClass)+" .template_form_tab_3{ border-bottom: 7px solid "+_(e.element.active_step_background_color)+"; } ",1)]),_:1})),e.element.step=="two"&&e.element.template_id==1?(S(),A("div",{key:0,class:X(["tw-relative tw-flex",r.activate_tab==1?e.dynamicClass+"-background":e.dynamicClass+"-active-background"])},[b("div",{class:X(["tw-flex-1 tw-flex tw-items-center tw-space-x-2 tw-rounded-r-full",r.activate_tab==1?e.dynamicClass+"-active-background":e.dynamicClass+"-background"]),style:{padding:"17px 12px 20px 20px"},onClick:t[0]||(t[0]=Wa(a=>r.activate_tab=1,["stop"]))},[b("div",{class:X(["innerBox",e.element.is_step_1_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},"1",2),b("div",sne,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},_(e.element.step_1_text),3),e.element.is_step_1_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},_(e.element.step_1_sub_title),3)):R("",!0)])],2)],2),b("div",one,[b("div",{class:X(["innerBox",e.element.is_step_2_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},"2",2),b("div",ane,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},_(e.element.step_2_text),3),e.element.is_step_2_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},_(e.element.step_2_sub_title),3)):R("",!0)])],2)])],2)):e.element.step=="two"&&(e.element.template_id==2||e.element.template_id==4)?(S(),A("div",lne,[b("div",{class:X(["formTabLeft",[r.activate_tab==1?e.dynamicClass+"-active-background activeTabBox":e.dynamicClass+"-background",`template_${e.element.template_id}`]]),onClick:t[1]||(t[1]=Wa(a=>r.activate_tab=1,["stop"]))},[b("div",{class:X(["innerBox",e.element.is_step_1_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},"1",2),b("div",cne,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},_(e.element.step_1_text),3),e.element.is_step_1_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",r.activate_tab==1?e.dynamicClass+"-active-font":e.dynamicClass+"-font"])},_(e.element.step_1_sub_title),3)):R("",!0)])],2)],2),b("div",{class:X(["formTabLeft",[r.activate_tab==1?e.dynamicClass+"-background":e.dynamicClass+"-active-background activeTabBox",`template_${e.element.template_id}`]])},[b("div",{class:X(["innerBox",e.element.is_step_2_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},"2",2),b("div",dne,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},_(e.element.step_2_text),3),e.element.is_step_2_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-font"])},_(e.element.step_2_sub_title),3)):R("",!0)])],2)],2)])):e.element.step=="two"&&e.element.template_id==3?(S(),A("div",{key:2,class:X(["formTab",`template_form_tab_${e.element.template_id}`])},[b("div",{class:X(["formTabLeft",[r.activate_tab==1?" activeTabBox":"",`template_${e.element.template_id}`,e.dynamicClass+"-background"]]),onClick:t[2]||(t[2]=Wa(a=>r.activate_tab=1,["stop"]))},[b("div",{class:X(["innerBox",e.element.is_step_1_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-active-background-font":e.dynamicClass+"-font"])},"1",2),b("div",une,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-active-background-font":e.dynamicClass+"-font"])},_(e.element.step_1_text),3),e.element.is_step_1_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",e.dynamicClass+"-font"])},_(e.element.step_1_sub_title),3)):R("",!0)])],2)],2),b("div",{class:X(["formTabLeft",[r.activate_tab==2?" activeTabBox":"",`template_${e.element.template_id}`,e.dynamicClass+"-background"]])},[b("div",{class:X(["innerBox",e.element.is_step_2_sub_title_show?"":"align-items-center"])},[b("p",{class:X(["formTabNumber",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-background-font"])},"2",2),b("div",fne,[b("p",{class:X(["formTabTitle",r.activate_tab==1?e.dynamicClass+"-font":e.dynamicClass+"-active-background-font"])},_(e.element.step_2_text),3),e.element.is_step_2_sub_title_show?(S(),A("p",{key:0,class:X(["formTabCaption",e.dynamicClass+"-font"])},_(e.element.step_2_sub_title),3)):R("",!0)])],2)],2)],2)):R("",!0),b("div",{class:X(["tw-w-full md:tw-rounded-b-lg md:tw-shadow-[3px_4px_7px_#8080CC1F] tw-pb-5 order-form",[r.activate_tab==1?"":"tw-py-7 pb-45",e.element.step=="two"?"tw-px-6 tw-py-5 lg:tw-px-5":"",e.element.step=="one"?"pb-45":""]])},[e.element.step=="two"?(S(),qe(In(s.getActiveComponent),{key:0,element:e.element,activate_tab:r.activate_tab,price:r.price,isProductLoading:e.isProductLoading,selected_option_combination:r.selected_option_combination,selectedProduct:r.selectedProduct,product:e.product,dynamicClass:e.dynamicClass,onUpdatePrice:s.updatePrice,onCustomerAdded:s.customerAdded,onMakePayment:s.makePayment,customer:r.customer,stepData:e.stepData,loader:r.loader,nextPageUrl:e.nextPageUrl,scarcitySetting:e.scarcitySetting,orderStepSetting:e.orderStepSetting,timesale:e.timesale,dimesale:e.dimesale,coupon:e.coupon,shipping_timer:e.shipping_timer,scarcity_coupon_timer:e.scarcity_coupon_timer,free_shipping_timer:e.free_shipping_timer,discount:e.discount,discount_timer:e.discount_timer,countries:r.countries,states:r.states,salesFunnel:e.salesFunnel,applyCoupon:r.applyCoupon,timesale_timer:e.timesale_timer,dimesale_timer:e.dimesale_timer,type:e.type,salesPage:e.elementData,order_diversion:e.order_diversion,diversion_timer:e.diversion_timer,tid:e.tid,payment_option:e.payment_option,salesProduct:e.salesProduct,pcode:e.pcode},null,40,["element","activate_tab","price","isProductLoading","selected_option_combination","selectedProduct","product","dynamicClass","onUpdatePrice","onCustomerAdded","onMakePayment","customer","stepData","loader","nextPageUrl","scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","countries","states","salesFunnel","applyCoupon","timesale_timer","dimesale_timer","type","salesPage","order_diversion","diversion_timer","tid","payment_option","salesProduct","pcode"])):(S(),A("div",hne,[e.product?(S(),qe(o,{key:0,element:e.element,activate_tab:r.activate_tab,selectedProduct:r.selectedProduct,selected_option_combination:r.selected_option_combination,product:e.product,isProductLoading:e.isProductLoading,dynamicClass:e.dynamicClass,onUpdatePrice:s.updatePrice,loader:r.loader,nextPageUrl:e.nextPageUrl,countries:r.countries,states:r.states,type:e.type,salesPage:e.elementData,payment_option:e.payment_option,onCustomerAdded:s.customerAdded,price:r.price,stepData:e.stepData,scarcitySetting:e.scarcitySetting,orderStepSetting:e.orderStepSetting,timesale:e.timesale,dimesale:e.dimesale,coupon:e.coupon,shipping_timer:e.shipping_timer,scarcity_coupon_timer:e.scarcity_coupon_timer,free_shipping_timer:e.free_shipping_timer,discount:e.discount,discount_timer:e.discount_timer,salesFunnel:e.salesFunnel,applyCoupon:r.applyCoupon,timesale_timer:e.timesale_timer,dimesale_timer:e.dimesale_timer,order_diversion:e.order_diversion,diversion_timer:e.diversion_timer,tid:e.tid,salesProduct:e.salesProduct,ref:"singleStepOrderForm",pcode:e.pcode},null,8,["element","activate_tab","selectedProduct","selected_option_combination","product","isProductLoading","dynamicClass","onUpdatePrice","loader","nextPageUrl","countries","states","type","salesPage","payment_option","onCustomerAdded","price","stepData","scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","salesFunnel","applyCoupon","timesale_timer","dimesale_timer","order_diversion","diversion_timer","tid","salesProduct","pcode"])):R("",!0)])),r.activate_tab!=1&&e.element.is_badge_show||e.element.step=="one"&&e.element.is_badge_show?(S(),A("div",{key:2,class:X(["tw-flex tw-space-x-3 tw-items-center tw-justify-around",[e.element.step!="one"?"tw-mt-10":"tw-mt-5",e.element.step=="one"&&!e.product?"d-none":""]])},bne,2)):R("",!0)],2)],2)}const xne=Nt(rne,[["render",vne]]);const wne={props:{item_data:{type:Object},scarcitySetting:{type:Object},orderStepSetting:{type:Object},timesale:{type:Object},dimesale:{type:Object},coupon:{type:Object},shipping_timer:{type:Object},scarcity_coupon_timer:{type:Object},free_shipping_timer:{type:Object},topbarSetting:{type:Object},discount:{type:Object},discount_timer:{type:Object},product:{type:Object},timesale_timer:{type:Object},dimesale_timer:{type:Object},order_diversion:{type:Object},diversion_timer:{type:Object}},data(){return{icon:Vu,asset_url:window.location.origin}},computed:{cssVars(){return{"--topbar-headline-bold-color":this.topbarSetting&&this.topbarSetting.headline_bold_color?this.topbarSetting.headline_bold_color:""}},headlineStyle(){return{color:this.topbarSetting&&this.topbarSetting.headline_text_color?this.topbarSetting.headline_text_color:""}},backgroundCss(){var n="",t="";return this.topbarSetting&&this.topbarSetting.bg_type=="gradient"?t=this.getGradientBackgroundCss():t=`background-color: ${this.topbarSetting&&this.topbarSetting.bg_color?this.topbarSetting.bg_color:""}; `,`${n} ${t}`},font_family(){let n=this.icon?this.icon.find(t=>t.code==this.topbarSetting.icon_name):null;if(n)return`'Font Awesome 5 ${n.type=="brand"?"Brands":"Free"}'`},image_scr(){return this.topbarSetting&&this.topbarSetting.image_url&&this.topbarSetting.image_url.search("blob:")==-1?this.asset_url+"/storage/"+this.topbarSetting.image_url:this.topbarSetting&&this.topbarSetting.image_url?this.topbarSetting.image_url:this.asset_url+"/images/no-image.png"},productPrice(){return this.product.price},discountedPrice(){return this.productPrice&&this.discount&&this.discount.type=="fixed"&&this.productPrice>0?this.discount.price?parseFloat(this.discount.price):0:this.productPrice&&this.discount&&this.discount.type=="percentage"&&this.productPrice>0&&this.productPrice&&this.discount.percentage?this.productPrice*(this.discount.percentage/100):0},discountHeadline(){return this.scarcitySetting.special_discount_headline.replace("[discount]",this.discountedPrice.toFixed(2))},shippingTimerExpired(){return!!(this.free_shipping_timer&&this.free_shipping_timer.hours=="00"&&this.free_shipping_timer.minutes=="00"&&this.free_shipping_timer.seconds=="00")}},methods:{getGradientBackgroundCss(){let n="";this.topbarSetting&&this.topbarSetting.gradient_angle&&(n=this.topbarSetting.gradient_angle+"deg");let t="";this.topbarSetting&&this.topbarSetting.gradient_color_stop_1&&(t=this.topbarSetting.gradient_color_stop_1+"%");let e="";this.topbarSetting&&this.topbarSetting.gradient_color_stop_2&&(e=this.topbarSetting.gradient_color_stop_2+"%");let i="";return n?i=`linear-gradient(${n},${this.topbarSetting.gradient_color_1} ${t}, ${this.topbarSetting.gradient_color_2} ${e});`:i=`linear-gradient(${this.topbarSetting.gradient_color_1} ${t}, ${this.topbarSetting.gradient_color_2} ${e});`,`background: ${i}`}},mounted(){this.icon=Vu}},kne={class:"header-left"},Cne=["src"],Sne={key:1,class:"fonts-lato header-left-top"},Tne={key:2,class:"fonts-lato header-left-top"},Ene=J(" Hurry! The "),One={key:3,class:"fonts-lato header-left-top"},Ane=J(" There are only "),Dne=J(" promo codes left, use "),Mne=J(" and get "),Pne={key:0},Nne={key:1},Ine=J(" off "),Rne={key:4,class:"fonts-lato header-left-top"},Bne={key:5,class:"fonts-lato header-left-top"},Lne={key:6,class:"fonts-lato header-left-top"},Fne=["href"],qne={key:0,class:"header-center"},Hne={class:"popins timer-root"},zne=J(" Min : "),Une=J(" Sec "),Vne={key:1,class:"header-center"},jne={class:"popins timer-root"},Wne=J(" Min : "),Kne=J(" Sec "),Gne={key:2,class:"header-center"},Yne={class:"popins timer-root"},Jne=J(" Min : "),Zne=J(" Sec "),Xne={key:3,class:"header-center"},Qne={class:"popins timer-root"},$ne=J(" Min : "),eie=J(" Sec "),tie={key:4,class:"header-center"},nie={class:"popins timer-root"},iie=J(" Min : "),rie=J(" Sec "),sie={key:5,class:"header-center"},oie={class:"popins timer-root"},aie=J(" Min : "),lie=J(" Sec ");function cie(n,t,e,i,r,s){return S(),A("section",null,[e.scarcitySetting&&(e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale.id||e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale.id||e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.coupon.id&&e.coupon.unit>0||e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.shipping_timer.id&&!s.shippingTimerExpired||e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer||e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.order_diversion.id&&e.diversion_timer)?(S(),A("section",{key:0,class:"w-full border-0 position-relative topbar",style:ke(s.backgroundCss)},[b("div",{class:"headerbar",style:ke([s.cssVars,{"min-height":"50px"}])},[b("div",kne,[e.topbarSetting&&e.topbarSetting.is_graphic_on&&e.topbarSetting.graphic_type=="image"?(S(),A("img",{key:0,src:s.image_scr,alt:"",class:"topbar-image"},null,8,Cne)):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="timesale"&&e.timesale?(S(),A("p",Sne,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},_(e.scarcitySetting.timesale_headline),5)])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale?(S(),A("p",Tne,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},[Ene,b("b",null,"$"+_(e.dimesale.increase_price),1),J(" price will increase in next "+_(e.dimesale.sales)+" sales! ",1)],4)])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.coupon.unit>0?(S(),A("p",One,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},[Ane,b("b",null,_(e.coupon.unit),1),Dne,b("b",null,_(e.coupon.code),1),Mne,e.coupon.type=="percentage"?(S(),A("b",Pne,_(e.coupon.percentage)+"%",1)):R("",!0),e.coupon.type=="fixed"?(S(),A("b",Nne,"$"+_(e.coupon.price),1)):R("",!0),Ine],4)])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer?(S(),A("p",Rne,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},_(e.scarcitySetting.free_shipping_headline),5)])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="special_discount"&&e.discount?(S(),A("p",Bne,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},_(s.discountHeadline),5)])):R("",!0),e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion?(S(),A("p",Lne,[b("span",{class:"header-left-title",style:ke(s.headlineStyle)},[J(_(e.scarcitySetting.order_diversion_headline)+" ",1),b("a",{href:e.order_diversion.cta_link,target:"_blank",class:"cta-link"},_(e.order_diversion.cta_text),9,Fne)],4)])):R("",!0)]),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="coupon"&&e.coupon&&e.scarcity_coupon_timer?(S(),A("div",qne,[b("div",Hne,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.scarcity_coupon_timer.minutes),1),zne,b("b",null,_(e.scarcity_coupon_timer.seconds),1),Une],4)])])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="free_shipping"&&e.shipping_timer&&e.free_shipping_timer?(S(),A("div",Vne,[b("div",jne,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.free_shipping_timer.minutes),1),Wne,b("b",null,_(e.free_shipping_timer.seconds),1),Kne],4)])])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="special_discount"&&e.discount&&e.discount_timer?(S(),A("div",Gne,[b("div",Yne,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.discount_timer.minutes),1),Jne,b("b",null,_(e.discount_timer.seconds),1),Zne],4)])])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="timesale"&&e.timesale&&e.timesale_timer?(S(),A("div",Xne,[b("div",Qne,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.timesale_timer.minutes),1),$ne,b("b",null,_(e.timesale_timer.seconds),1),eie],4)])])):R("",!0),e.scarcitySetting&&e.scarcitySetting.scarcity_type=="dimesale"&&e.dimesale&&e.dimesale_timer?(S(),A("div",tie,[b("div",nie,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.dimesale_timer.minutes),1),iie,b("b",null,_(e.dimesale_timer.seconds),1),rie],4)])])):R("",!0),e.scarcitySetting.scarcity_type=="order_diversion"&&e.order_diversion&&e.diversion_timer?(S(),A("div",sie,[b("div",oie,[b("p",{class:"timer-text",style:ke(s.headlineStyle)},[b("b",null,_(e.diversion_timer.minutes),1),aie,b("b",null,_(e.diversion_timer.seconds),1),lie],4)])])):R("",!0)],4)],4)):R("",!0),e.topbarSetting&&e.topbarSetting.is_graphic_on&&e.topbarSetting.graphic_type=="icon"?(S(),qe(In("style"),{key:1,type:"text/css"},{default:ln(()=>[J(" .topbar .header-left-top:before { content: '\\"+_(e.topbarSetting.icon_name)+"'; font-family: "+_(s.font_family)+"; color: "+_(e.topbarSetting.icon_color)+"; font-weight: bold; font-size: 25px; margin-right: 10px; } ",1)]),_:1})):R("",!0)])}const die=Nt(wne,[["render",cie],["__scopeId","data-v-f43f6e72"]]),uie={props:["item","multiple","groupId","content"],methods:{toggle(n){this.multiple?this.item.active=!this.item.active:this.content.forEach((t,e)=>{t.id==this.item.id?t.active=!this.item.active:t.active=!1})},startTransition(n){n.style.height=n.scrollHeight+"px"},endTransition(n){n.style.height=""}}},fie=["id"],hie={class:"accordion-item-title"},pie={class:"accordion-item-title-text"},mie=b("span",{class:"accordion-item-trigger-icon"},null,-1),gie={key:0,class:"accordion-item-details"},_ie=["innerHTML"];function yie(n,t,e,i,r,s){return S(),A("div",{id:e.groupId+"-"+e.item.id,class:X(["accordion-item",{"is-active":e.item.active}])},[b("dt",hie,[b("button",{onClick:t[0]||(t[0]=(...o)=>s.toggle&&s.toggle(...o)),class:"accordion-item-trigger"},[b("h4",pie,_(e.item.title),1),mie])]),ct(jc,{name:"accordion-item",onEnter:s.startTransition,onAfterEnter:s.endTransition,onBeforeLeave:s.startTransition,onAfterLeave:s.endTransition},{default:ln(()=>[e.item.active?(S(),A("dd",gie,[b("div",{innerHTML:e.item.details,class:"accordion-item-details-inner"},null,8,_ie)])):R("",!0)]),_:1},8,["onEnter","onAfterEnter","onBeforeLeave","onAfterLeave"])],10,fie)}const bie=Nt(uie,[["render",yie]]);const vie={props:["id","content","element"],components:{accordionItem:bie},data(){return{groupId:null}},mounted(){this.groupId=this.id}};function xie(n,t,e,i,r,s){const o=at("accordion-item");return S(),A("dl",{class:X(["accordion box",e.element.is_show_category?"":"mb-0"]),role:"presentation"},[(S(!0),A(He,null,bt(e.content,a=>(S(),qe(o,{multiple:!1,item:a,groupId:r.groupId,key:a.id,content:e.content},null,8,["item","groupId","content"]))),128))],2)}const wie=Nt(vie,[["render",xie]]);const kie={props:{element:{require:!0},dynamicClass:{require:!0}},components:{accordion:wie},data(){return{}}},Cie={key:0};function Sie(n,t,e,i,r,s){const o=at("accordion");return S(),A("div",{onClick:t[0]||(t[0]=Wa(()=>{},["stop"])),class:X(["main-div-accordian",[e.element.is_show_category?"pt-4":"",e.dynamicClass]])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-div-accordian{ padding-left: "+_(e.element.padding_left)+"px; padding-right: "+_(e.element.padding_right)+"px; padding-top: "+_(e.element.padding_top)+"px; padding-bottom: "+_(e.element.padding_bottom)+"px; } ",1)]),_:1})),(S(!0),A(He,null,bt(e.element&&e.element.q_a_data?e.element.q_a_data:[],(a,c)=>(S(),A("div",{class:"accordian-div",key:c},[e.element.is_show_category?(S(),A("h3",Cie,_(a.category_name),1)):R("",!0),ct(o,{id:`accordion-${c}`,content:a.data,element:e.element},null,8,["id","content","element"])]))),128))],2)}const Tie=Nt(kie,[["render",Sie],["__scopeId","data-v-bcb7b4e6"]]);const Eie={props:{element:{require:!0},dynamicClass:{require:!0},product:{require:!0},stepData:{require:!1},salesFunnel:{require:!0},salesPage:{require:!1},type:{require:!1},tid:{require:!1}},components:{loader:Gs},data(){return{orderList:[{saveValue:"Save $5",img:"trump.png",bobbleHead:"(1) Bobbleheads",addText:"Add To Your Collection",delPrice:200,price:125,buyText:"Buy This Today FREE US Shipping"},{saveValue:"Save $30.00",img:"trumps.png",addText:"Our BEST Offer!",bobbleHead:"(5) Bobbleheads",delPrice:200,price:125,buyText:"Buy 3 Get 2 free FREE US Shipping"},{saveValue:"Save $75.00",addText:"Our BEST Offer!",img:"trumps.png",bobbleHead:"(10) Bobbleheads",delPrice:200,price:125,buyText:"Buy 3 Get 2 free FREE US Shipping"}],selectedBox:null,asset_url:null,loader:null,showNow:!1}},methods:{async addButtonRedirect(n){if(this.loader=n,this.type=="salesPage"){let e={type:"salesPage",sales_page_id:this.salesPage.id,tid:this.tid};await Ke.post("/api/sale-page/add-click",e),await Ke.post("/api/sale-page/add-click-all",e)}else if(this.stepData){let e={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,sales_page_id:this.stepData.sales_page_id,tid:this.tid};await Ke.post("/api/sale-page/add-click",e),await Ke.post("/api/sale-page/add-click-all",e)}this.loader=null;let t=null;n==0?t=this.getProductBulkOptions.find(e=>e.id==this.element.first_box_bulk_pricing_id):n==1?t=this.getProductBulkOptions.find(e=>e.id==this.element.second_box_bulk_pricing_id):n==2&&(t=this.getProductBulkOptions.find(e=>e.id==this.element.third_box_bulk_pricing_id)),this.tid?window.location.href=`${this.asset_url}/checkout/order-form/${this.product.id}/${t.id}?tid=${this.tid}`:window.location.href=`${this.asset_url}/checkout/order-form/${this.product.id}/${t.id}`}},computed:{getProductBulkOptions(){return this.product&&this.product.bulk_pricing&&this.product.bulk_pricing.length?this.product.bulk_pricing:[]},firstBoxHeadlineOne(){if(this.element&&this.element.first_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.first_box_bulk_pricing_id);if(n){let t=this.element.first_box_headline_1,e=0;if(t)return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(e=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(e=n.savings_price),t.replace("[savings]",e.toFixed(2))}}},secondBoxHeadlineOne(){if(this.element&&this.element.second_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.second_box_bulk_pricing_id);if(n){let t=this.element.second_box_headline_1,e=0;if(t)return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(e=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(e=n.savings_price),t.replace("[savings]",e.toFixed(2))}}},thirdBoxHeadlineOne(){if(this.element&&this.element.third_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.third_box_bulk_pricing_id);if(n){let t=this.element.third_box_headline_1,e=0;if(t)return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(e=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(e=n.savings_price),t.replace("[savings]",e.toFixed(2))}}},firstBoxHeadlineTwo(){if(this.element&&this.element.first_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.first_box_bulk_pricing_id);if(n)return this.element.first_box_headline_2.replace("[qty#]",n.quantity).replace("[productname]",this.product.name)}},secondBoxHeadlineTwo(){if(this.element&&this.element.second_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.second_box_bulk_pricing_id);if(n){let t=this.element.second_box_headline_2;if(t)return t.replace("[qty#]",n.quantity).replace("[productname]",this.product.name)}}},thirdBoxHeadlineTwo(){if(this.element&&this.element.third_box_bulk_pricing_id){let n=this.getProductBulkOptions.find(t=>t.id==this.element.third_box_bulk_pricing_id);if(n){let t=this.element.third_box_headline_2;if(t)return t.replace("[qty#]",n.quantity).replace("[productname]",this.product.name)}}},aboveImageTextFirst(){return this.element.first_box_headline_3},aboveImageTextSecond(){return this.element.second_box_headline_3},aboveImageTextThird(){return this.element.third_box_headline_3},buttonAboveTextFirst(){return this.element.first_box_text},buttonAboveTextSecond(){return this.element.second_box_text},buttonAboveTextThird(){return this.element.third_box_text},buttonTextFirst(){return this.element.first_box_button_text},buttonTextSecond(){return this.element.second_box_button_text},buttonTextThird(){return this.element.third_box_button_text},getSlashPriceFirst(){let n=null;return n=this.getProductBulkOptions.find(t=>t.id==this.element.first_box_bulk_pricing_id),n&&this.product?(n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&n.quantity*this.product.price*n.saving_percentage/100:n.saving_type=="price"&&n.savings_price&&n.savings_price,this.product.price*n.quantity):0},getSlashPriceSecond(){let n=null;return n=this.getProductBulkOptions.find(t=>t.id==this.element.second_box_bulk_pricing_id),n&&this.product?(n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&n.quantity*this.product.price*n.saving_percentage/100:n.saving_type=="price"&&n.savings_price&&n.savings_price,this.product.price*n.quantity):0},getSlashPriceThird(){let n=null;return n=this.getProductBulkOptions.find(t=>t.id==this.element.third_box_bulk_pricing_id),n&&this.product?(n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&n.quantity*this.product.price*n.saving_percentage/100:n.saving_type=="price"&&n.savings_price&&n.savings_price,this.product.price*n.quantity):0},getPriceFirst(){let n=null;if(n=this.getProductBulkOptions.find(t=>t.id==this.element.first_box_bulk_pricing_id),n&&this.product){let t=0;return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(t=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(t=n.savings_price),this.product.price*n.quantity-t}return 0},getPriceSecond(){let n=null;if(n=this.getProductBulkOptions.find(t=>t.id==this.element.second_box_bulk_pricing_id),n&&this.product){let t=0;return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(t=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(t=n.savings_price),this.product.price*n.quantity-t}return 0},getPriceThird(){let n=null;if(n=this.getProductBulkOptions.find(t=>t.id==this.element.third_box_bulk_pricing_id),n&&this.product){let t=0;return n.saving_type=="percentage"?this.product&&this.product.price&&n.saving_percentage&&n.quantity&&(t=n.quantity*this.product.price*n.saving_percentage/100):n.saving_type=="price"&&n.savings_price&&(t=n.savings_price),this.product.price*n.quantity-t}return 0},getImagesBulkFirst:function(){let n=this.getProductBulkOptions.find(t=>t.id==this.element.first_box_bulk_pricing_id);if(n&&n.image)return this.asset_url+"/storage/"+n.image},getImagesBulkSecond:function(){let n=this.getProductBulkOptions.find(t=>t.id==this.element.second_box_bulk_pricing_id);if(n&&n.image)return this.asset_url+"/storage/"+n.image},getImagesBulkThird:function(){let n=this.getProductBulkOptions.find(t=>t.id==this.element.third_box_bulk_pricing_id);if(n&&n.image)return this.asset_url+"/storage/"+n.image},features_text(){let n=this.element.features_text;const t=n.split(" ");return t.length>1?(t[0]=t[0]+"
",t.join(" ")):n}},created(){this.asset_url=window.location.origin},mounted(){setTimeout(()=>{this.showNow=!0},2e3),this.popular_div_height=this.$refs.populer_div[0].clientHeight,this.transform=`translate(${45-(this.popular_div_height/15-3)}%, -${25-(this.popular_div_height/15-3)}%) rotate(45deg)`}},Oie=n=>(lr("data-v-f7723493"),n=n(),cr(),n),Aie={key:0},Die=["innerHTML"],Mie={class:"save-value"},Pie={class:"bobble-head"},Nie={class:"add-text"},Iie={class:"image-box-bulk"},Rie=["src"],Bie={class:"pricing-div"},Lie={class:"buy-text"},Fie=["onClick"],qie={key:1,class:"blank-box-bluk"},Hie=Oie(()=>b("h4",{class:"buy-text text-danger mb-0"},"Error - No Pricing Selected",-1)),zie=[Hie];function Uie(n,t,e,i,r,s){const o=at("loader");return S(),A("div",{class:X(["grid-div",e.dynamicClass])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+" .save-value{ color:"+_(e.element.headline_1_color)+"; } ."+_(e.dynamicClass)+" .bobble-head{ color:"+_(e.element.headline_2_color)+"; } ."+_(e.dynamicClass)+" .add-text{ color:"+_(e.element.headline_3_color)+"; } ."+_(e.dynamicClass)+" .pricing-div del{ color:"+_(e.element.slashed_price_color)+"; } ."+_(e.dynamicClass)+" .pricing-div span{ color:"+_(e.element.main_price_color)+"; } ."+_(e.dynamicClass)+" .buy-text{ color:"+_(e.element.bottom_headline_color)+"; } ."+_(e.dynamicClass)+" .buy-text{ color:"+_(e.element.bottom_headline_color)+"; } ."+_(e.dynamicClass)+" .order-btn { background-color: "+_(e.element.button_bg_color)+"; } ."+_(e.dynamicClass)+" .order-btn a{ color: "+_(e.element.button_text_color)+"; } ."+_(e.dynamicClass)+" .middel-div { border: 2px solid "+_(e.element.features_border_color)+" !important; } ."+_(e.dynamicClass)+" .popular-tag { background-color: "+_(e.element.features_border_color)+" ; color: "+_(e.element.features_text_color)+"; } ",1)]),_:1})),(S(!0),A(He,null,bt(r.orderList,(a,c)=>(S(),A("div",{class:X(["order-list-div",[c+1==e.element.features_box?"middel-div":"",r.selectedBox==c?"active-box":""]]),key:c},[(c==0?e.element&&e.element.first_box_bulk_pricing_id:c==1?e.element&&e.element.second_box_bulk_pricing_id:e.element&&e.element.third_box_bulk_pricing_id)?(S(),A("div",Aie,[c+1==e.element.features_box?(S(),A("p",{key:0,class:"popular-tag",ref_for:!0,ref:"populer_div",innerHTML:s.features_text},null,8,Die)):R("",!0),b("h5",Mie,_(c==0?s.firstBoxHeadlineOne:c==1?s.secondBoxHeadlineOne:c==2?s.thirdBoxHeadlineOne:""),1),b("h6",Pie,_(c==0?s.firstBoxHeadlineTwo:c==1?s.secondBoxHeadlineTwo:c==2?s.thirdBoxHeadlineTwo:""),1),b("p",Nie,_(c==0?s.aboveImageTextFirst:c==1?s.aboveImageTextSecond:c==2?s.aboveImageTextThird:""),1),b("div",Iie,[(c==0?s.getImagesBulkFirst:c==1?s.getImagesBulkSecond:c==2&&s.getImagesBulkThird)?(S(),A("img",{key:0,src:c==0?s.getImagesBulkFirst:c==1?s.getImagesBulkSecond:c==2?s.getImagesBulkThird:"",class:"trump-img",alt:"Trump"},null,8,Rie)):R("",!0)]),b("div",Bie,[b("del",null,"$"+_(c==0?s.getSlashPriceFirst.toFixed(2):c==1?s.getSlashPriceSecond.toFixed(2):c==2?s.getSlashPriceThird.toFixed(2):""),1),b("span",null,"$"+_(c==0?s.getPriceFirst.toFixed(2):c==1?s.getPriceSecond.toFixed(2):c==2?s.getPriceThird.toFixed(2):""),1)]),b("h2",Lie,_(c==0?s.buttonAboveTextFirst:c==1?s.buttonAboveTextSecond:c==2?s.buttonAboveTextThird:""),1),b("a",{href:"javascript:void(0);",class:"order-btn position-relative",onClick:d=>s.addButtonRedirect(c)},[b("span",{style:ke({opacity:r.loader==c?0:1})},_(c==0?s.buttonTextFirst:c==1?s.buttonTextSecond:c==2?s.buttonTextThird:""),5),r.loader==c?(S(),qe(o,{key:0,class:"button-loader"})):R("",!0)],8,Fie)])):(S(),A("div",qie,zie))],2))),128))],2)}const Vie=Nt(Eie,[["render",Uie],["__scopeId","data-v-f7723493"]]);const jie={name:"textelement",props:{element:{require:!0},dynamicClass:{require:!0}},computed:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge},visibleClass(){if(!this.element.desktop_visibility||!this.element.mobile_visibility)if(this.element.desktop_visibility){if(!this.element.mobile_visibility)return"desktop-only"}else return"mobile-only"},full_page_image_src(){return this.element.image_data.image_url&&this.element.image_data.image_url.search("blob:")==-1?this.asset_url+"/storage/"+this.element.image_data.image_url:this.element.image_data.image_url?this.element.image_data.image_url:require("@/assets/no-image.png")}},data(){return{asset_url:null}},mounted(){this.textData=this.element.text_data},created(){this.asset_url=window.location.origin},methods:{makeAction(n){n.action=="redirect_url"&&n.redirect_url?window.open(n.redirect_url,"_blank"):n.action=="scroll_to_section"?this.$emit("scrollToBlock",n):n.action=="open_popup"&&this.$emit("openPoup")}}},ry=n=>(lr("data-v-e6faeb7f"),n=n(),cr(),n),Wie=["id"],Kie={key:0,class:"nav-bar-header text-left"},Gie={"data-v-7df7a494":"",class:"branding"},Yie={"data-v-7df7a494":"",class:"logo"},Jie={"data-v-21a2eb52":"","data-v-7df7a494":"",class:"image-container"},Zie=["src","width"],Xie={class:"nav-bar-btn"},Qie=["for"],$ie=ry(()=>b("span",null,null,-1)),ere=ry(()=>b("span",null,null,-1)),tre=ry(()=>b("span",{style:{height:"0px"}},null,-1)),nre=[$ie,ere,tre],ire={class:"nav-bar-list"},rre=["onClick"],sre={href:"#"};function ore(n,t,e,i,r,s){return S(),A("nav",{class:X(["nav-bar",[e.dynamicClass,s.shadowClass,s.boxClasses,s.borderClass,e.element&&e.element.image_data&&!e.element.image_data.is_show_image?"justify-content-end":""]])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".nav-bar{ color:"+_(e.element.color)+"; background-color:"+_(e.element.background_color)+"; padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; text-transform:"+_(e.element.text_transformation)+"; opacity:"+_(e.element.opacity)+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; letter-spacing:"+_(e.element.letter_spacing)+"; } ."+_(e.dynamicClass)+".nav-bar .nav-bar-list li a{ font-family:"+_(e.element.font_family)+"; font-size:"+_(e.element.desktop_font_size+"px")+"; color:"+_(e.element.color)+"; } @media screen and (min-width: 0px) and (max-width: 480px){ .nav-bar > #nav-bar-check-"+_(e.dynamicClass)+":checked ~ .nav-bar-list { height: "+_(e.element.nav_items&&e.element.nav_items.length?e.element.nav_items.length*45:0)+"px; } ."+_(e.dynamicClass)+".nav-bar > .nav-bar-btn > label > span { border-top: 2px solid "+_(e.element.bold_color)+"; } ."+_(e.dynamicClass)+" .top_bar_image{ } ."+_(e.dynamicClass)+".nav-bar > .nav-bar-list{ background-color:"+_(e.element.background_color)+"; } ."+_(e.dynamicClass)+" .image-container img{ width:180px !important; height: 51px; object-fit: contain; } } ",1)]),_:1})),b("input",{type:"checkbox",class:"nav-bar-check",id:`nav-bar-check-${e.dynamicClass}`},null,8,Wie),e.element&&e.element.image_data&&e.element.image_data.is_show_image?(S(),A("div",Kie,[b("div",Gie,[b("div",Yie,[b("div",Jie,[b("img",{src:s.full_page_image_src,alt:"Brand Logo",class:"noBorder radius0 none top_bar_image",width:e.element.image_data.width?e.element.image_data.width:""},null,8,Zie)])])])])):R("",!0),b("div",Xie,[b("label",{for:`nav-bar-check-${e.dynamicClass}`,class:"mb-0 cursor-pointer"},nre,8,Qie)]),b("ul",ire,[(S(!0),A(He,null,bt(e.element.nav_items,(o,a)=>(S(),A("li",{key:a,onClick:c=>s.makeAction(o)},[b("a",sre,_(o.title),1)],8,rre))),128))])],2)}const are=Nt(jie,[["render",ore],["__scopeId","data-v-e6faeb7f"]]);const lre={emits:["updateContentsVote"],name:"textelement",props:{element:{require:!0},dynamicClass:{require:!0},contest:{require:!1}},computed:{shadowClass(){if(this.element.text_shadow=="Subtle Shadow")return"hsTextShadow1";if(this.element.text_shadow=="Mid Shadow")return"hsTextShadow2";if(this.element.text_shadow=="Strong Shadow")return"hsTextShadow3"},boxClasses(){return this.element.box_shadow},borderClass(){return""+this.element.border_type+" "+this.element.border_radius+" "+this.element.radius_edge},visibleClass(){if(!this.element.desktop_visibility||!this.element.mobile_visibility)if(this.element.desktop_visibility){if(!this.element.mobile_visibility)return"desktop-only"}else return"mobile-only"},left_top_image_scr(){return this.element.left_side_top_image&&this.element.left_side_top_image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.left_side_top_image:this.left_side_top_image?this.left_side_top_image:this.asset_url+"/images/noimage1.png"},left_bottom_image_scr(){return this.element.left_side_bottom_image&&this.element.left_side_bottom_image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.left_side_bottom_image:this.left_side_bottom_image?this.left_side_bottom_image:this.asset_url+"/images/noimage1.png"},right_top_image_scr(){return this.element.right_side_top_image&&this.element.right_side_top_image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.right_side_top_image:this.right_side_top_image?this.right_side_top_image:this.asset_url+"/images/noimage1.png"},right_bottom_image_scr(){return this.element.right_side_bottom_image&&this.element.right_side_bottom_image.search("blob:")==-1?this.asset_url+"/storage/"+this.element.right_side_bottom_image:this.right_side_bottom_image?this.right_side_bottom_image:this.asset_url+"/images/noimage1.png"},left_vote_per(){let n=this.element.left_side_vote+this.element.right_side_vote;return n>0&&this.element.left_side_vote>0?(this.element.left_side_vote/n*100).toFixed(2):0 .toFixed(2)},right_vote_per(){let n=this.element.left_side_vote+this.element.right_side_vote;return n>0&&this.element.right_side_vote>0?(this.element.right_side_vote/n*100).toFixed(2):0 .toFixed(2)},left_main_headline(){return this.element.left_headline_text?this.element.left_headline_text.replace("[Vote]",this.element.left_addition_pointes?this.element.left_addition_pointes:""):this.element.left_headline_text},right_main_headline(){return this.element.right_headline_text?this.element.right_headline_text.replace("[Vote]",this.element.right_addition_pointes?this.element.right_addition_pointes:""):this.element.right_headline_text},left_subheadline(){return this.element.left_subheadline?this.element.left_subheadline.replace("[Vote]",this.element.left_addition_pointes?this.element.left_addition_pointes:""):this.element.left_subheadline},right_subheadline(){return this.element.right_subheadline?this.element.right_subheadline.replace("[Vote]",this.element.right_addition_pointes?this.element.right_addition_pointes:""):this.element.right_subheadline},left_side_question(){return this.element.left_side_question?this.element.left_side_question.replace("[Vote]",this.element.left_addition_pointes?this.element.left_addition_pointes:""):this.element.left_side_question},right_side_question(){return this.element.right_side_question?this.element.right_side_question.replace("[Vote]",this.element.right_addition_pointes?this.element.right_addition_pointes:""):this.element.right_side_question},left_side_question_text(){return this.element.left_side_question_text?this.element.left_side_question_text.replace("[Vote]",this.element.left_addition_pointes?this.element.left_addition_pointes:""):this.element.left_side_question_text},right_side_question_text(){return this.element.right_side_question_text?this.element.right_side_question_text.replace("[Vote]",this.element.right_addition_pointes?this.element.right_addition_pointes:""):this.element.right_side_question_text},left_button_text(){return this.element.left_button_text?this.element.left_button_text.replace("[Vote]",this.element.left_addition_pointes?this.element.left_addition_pointes:""):this.element.left_button_text},right_button_text(){return this.element.right_button_text?this.element.right_button_text.replace("[Vote]",this.element.right_addition_pointes?this.element.right_addition_pointes:""):this.element.right_button_text}},data(){return{asset_url:null,is_left_button_clicked:!1,is_left_right_clicked:!1,activeClick:0,activeBottomSection:null,is_voted:!1,isVisible:!1}},methods:{manageClick(n){if(this.is_voted=!0,n=="left"){this.is_left_button_clicked=!0,this.activeClick=1,this.activeBottomSection="left";let t={type:n,contest_id:this.contest?this.contest.id:null};Ke.post("/api/sale-page/update-votes",t).then(e=>{if(e.data.data&&e.data.data.wid){let i=e.data.data.wid;this.$emit("updateContentsVote",i)}})}else if(n=="right"){this.is_left_right_clicked=!0,this.activeClick=2,this.activeBottomSection="right";let t={type:n,contest_id:this.contest?this.contest.id:null};Ke.post("/api/sale-page/update-votes",t).then(e=>{if(e.data.data&&e.data.data.wid){let i=e.data.data.wid;this.$emit("updateContentsVote",i)}})}},manageRedirect(n){n=="left"?this.element.left_redirect_url&&(this.element.left_link_target=="new_tab"?window.open(this.element.left_redirect_url,"_blank"):window.location.href=this.element.left_redirect_url):n=="right"?this.element.right_redirect_url&&(this.element.right_link_target=="new_tab"?window.open(this.element.right_redirect_url,"_blank"):window.location.href=this.element.right_redirect_url):this.element.no_thank_you_link&&(window.location.href=this.element.no_thank_you_link)},checkVisibility(){let n=null;if(this.is_voted){if(this.activeBottomSection=="left"?n=this.$refs.elementRefLeft:n=this.$refs.elementRefRight,!n)return;const t=n.getBoundingClientRect(),e=window.innerHeight||document.documentElement.clientHeight,i=t.bottom-t.top;t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth);let r=t.tope/2||t.bottom>0&&t.tope/2;console.log(r,"halfvisiblehalfvisiblehalfvisible"),t.top<=0?this.isVisible=!1:r&&(this.isVisible=!0)}}},created(){this.asset_url=window.location.origin},mounted(){window.addEventListener("scroll",this.checkVisibility),window.addEventListener("resize",this.checkVisibility)},beforeUnmount(){window.removeEventListener("scroll",this.checkVisibility),window.removeEventListener("resize",this.checkVisibility)}},is=n=>(lr("data-v-f9de7f0c"),n=n(),cr(),n),cre={key:0,class:"products-div"},dre={class:"product-card product-card-left"},ure=["src"],fre={class:"product-action"},hre=is(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"30",viewBox:"0 0 33 30",fill:"none"},[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31.2526 15.2223C31.1942 15.1884 31.1571 15.0472 31.1796 14.971C31.3909 14.2529 31.3994 13.5352 31.1368 12.8317C30.7674 11.8435 30.0884 11.1 28.8653 10.931C28.2879 10.851 27.687 10.9004 27.0968 10.8976C26.6747 10.8957 26.2521 10.8957 25.8187 10.8957C25.8187 10.9023 25.8183 10.9089 25.8183 10.9155C25.0639 10.9113 24.2263 10.907 23.9543 10.9018C22.1933 10.8698 24.207 8.66561 23.878 3.12398C23.6893 -0.0491838 20.7754 -1.04447 19.8324 1.25858C19.5674 1.90563 19.3839 2.59034 19.2103 3.27034C18.4672 6.17809 16.9966 9.27361 14.4875 10.9616C13.4606 11.6524 12.3656 11.9945 11.2032 12.0694H11.0898C10.7576 12.0694 10.4856 12.3414 10.4856 12.6736V26.4623C10.4856 26.7945 10.7576 27.0665 11.0898 27.0665H11.2047C15.3524 27.4985 15.3082 29.0674 19.9091 29.1056C21.3472 29.1173 22.7853 29.1187 24.2239 29.1131C25.0338 29.1117 25.8432 29.1074 26.6526 29.1164C27.7411 29.1286 28.5434 28.7013 29.0926 27.8938C29.6813 27.0289 29.7886 26.0943 29.5199 25.1225C29.4827 24.9879 29.4752 24.9065 29.6375 24.8293C30.4898 24.4232 30.9627 23.7606 31.2004 22.9526C31.4004 22.2726 31.3669 21.5917 31.1538 20.9578C33.4648 19.1861 31.9749 15.6435 31.2521 15.2223H31.2526Z",fill:"#2477FF"}),b("path",{d:"M1.1327 11.6021H8.31009C8.9355 11.6021 9.44279 12.1098 9.44279 12.7348V26.4006C9.44279 27.026 8.93503 27.5333 8.31009 27.5333H1.1327C0.507293 27.5333 0 27.0256 0 26.4006V12.7348C0 12.1094 0.507763 11.6021 1.1327 11.6021Z",fill:"#2477FF"})],-1)),pre=[hre],mre={class:"product-card product-card-right"},gre=["src"],_re={class:"product-action"},yre=is(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"33",height:"30",viewBox:"0 0 33 30",fill:"none"},[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M31.2526 15.2223C31.1942 15.1884 31.1571 15.0472 31.1796 14.971C31.3909 14.2529 31.3994 13.5352 31.1368 12.8317C30.7674 11.8435 30.0884 11.1 28.8653 10.931C28.2879 10.851 27.687 10.9004 27.0968 10.8976C26.6747 10.8957 26.2521 10.8957 25.8187 10.8957C25.8187 10.9023 25.8183 10.9089 25.8183 10.9155C25.0639 10.9113 24.2263 10.907 23.9543 10.9018C22.1933 10.8698 24.207 8.66561 23.878 3.12398C23.6893 -0.0491838 20.7754 -1.04447 19.8324 1.25858C19.5674 1.90563 19.3839 2.59034 19.2103 3.27034C18.4672 6.17809 16.9966 9.27361 14.4875 10.9616C13.4606 11.6524 12.3656 11.9945 11.2032 12.0694H11.0898C10.7576 12.0694 10.4856 12.3414 10.4856 12.6736V26.4623C10.4856 26.7945 10.7576 27.0665 11.0898 27.0665H11.2047C15.3524 27.4985 15.3082 29.0674 19.9091 29.1056C21.3472 29.1173 22.7853 29.1187 24.2239 29.1131C25.0338 29.1117 25.8432 29.1074 26.6526 29.1164C27.7411 29.1286 28.5434 28.7013 29.0926 27.8938C29.6813 27.0289 29.7886 26.0943 29.5199 25.1225C29.4827 24.9879 29.4752 24.9065 29.6375 24.8293C30.4898 24.4232 30.9627 23.7606 31.2004 22.9526C31.4004 22.2726 31.3669 21.5917 31.1538 20.9578C33.4648 19.1861 31.9749 15.6435 31.2521 15.2223H31.2526Z",fill:"#2477FF"}),b("path",{d:"M1.1327 11.6021H8.31009C8.9355 11.6021 9.44279 12.1098 9.44279 12.7348V26.4006C9.44279 27.026 8.93503 27.5333 8.31009 27.5333H1.1327C0.507293 27.5333 0 27.0256 0 26.4006V12.7348C0 12.1094 0.507763 11.6021 1.1327 11.6021Z",fill:"#2477FF"})],-1)),bre=[yre],vre=is(()=>b("p",{class:"vs-text"},"VS",-1)),xre={class:"product-name-div"},wre={class:"left-product-name-div"},kre={class:"product-name"},Cre={class:"right-product-name-div"},Sre={class:"product-name"},Tre={class:"vote-section"},Ere={class:"vote-product-1"},Ore=is(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},[b("path",{d:"M31.8307 13.08C31.9453 12.7453 32 12.4027 32 12.0627C32 11.036 31.4947 10.044 30.5933 9.42C27.724 7.43067 28.1027 7.93067 27.02 4.69467C26.568 3.34267 25.2587 2.428 23.7813 2.43333C20.2427 2.444 20.8573 2.63733 18.0013 0.628C17.4067 0.209333 16.7027 0 16 0C15.2973 0 14.5933 0.209333 13.9973 0.628C11.1253 2.648 11.748 2.444 8.21733 2.43333C6.74133 2.42933 5.43067 3.344 4.97867 4.69467C3.896 7.93867 4.268 7.43467 1.40533 9.42C0.505333 10.0453 0 11.036 0 12.0627C0 12.4027 0.0546667 12.7453 0.169333 13.08C1.276 16.3173 1.272 15.6973 0.169333 18.92C0.0546667 19.2547 0 19.5987 0 19.9373C0 20.964 0.505333 21.956 1.40667 22.58C4.26933 24.5653 3.89867 24.0653 4.98 27.3053C5.432 28.6573 6.74133 29.572 8.21867 29.5667C11.7573 29.5547 11.1427 29.364 13.9987 31.372C14.5933 31.7907 15.2973 32 16 32C16.7027 32 17.4067 31.7907 18.0027 31.372C20.8573 29.364 20.244 29.556 23.7827 29.5667C25.2587 29.5707 26.5693 28.656 27.0213 27.3053C28.104 24.068 27.7253 24.568 30.5947 22.58C31.4947 21.956 32 20.964 32 19.9373C32 19.5987 31.9453 19.2547 31.8307 18.92C30.7227 15.684 30.728 16.3027 31.8307 13.08ZM21.744 15.7253C22.3013 15.8 22.584 16.1627 22.584 16.5387C22.584 16.9693 22.2147 17.4187 21.4587 17.4787C20.9947 17.5147 20.88 17.8947 21.4373 18.02C21.9053 18.1267 22.1693 18.4547 22.1693 18.808C22.1693 19.2267 21.7973 19.68 20.952 19.836C20.4413 19.9293 20.3907 20.4293 20.9307 20.472C21.3893 20.5067 21.5693 20.6667 21.5693 20.888C21.5693 21.5093 20.468 22.6653 18.3347 22.6653C15 22.6667 13.792 20.6667 9.33333 20.6667V14.048C11.688 13.6867 13.9787 12.9587 15.1253 8.97867C15.444 7.87067 15.6453 6.66667 16.708 6.66667C18.292 6.66667 18.4373 10.0827 17.8333 12.5213C18.708 12.98 20.3333 13.1453 21.152 13.1107C22.3333 13.0627 22.6667 13.656 22.6667 14.104C22.6667 14.7773 22.112 15.004 21.764 15.1107C21.3587 15.236 21.172 15.6493 21.744 15.7253Z",fill:"white"})],-1)),Are={class:"vote-product-1"},Dre=is(()=>b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},[b("path",{d:"M31.8307 13.08C31.9453 12.7453 32 12.4027 32 12.0627C32 11.036 31.4947 10.044 30.5933 9.42C27.724 7.43067 28.1027 7.93067 27.02 4.69467C26.568 3.34267 25.2587 2.428 23.7813 2.43333C20.2427 2.444 20.8573 2.63733 18.0013 0.628C17.4067 0.209333 16.7027 0 16 0C15.2973 0 14.5933 0.209333 13.9973 0.628C11.1253 2.648 11.748 2.444 8.21733 2.43333C6.74133 2.42933 5.43067 3.344 4.97867 4.69467C3.896 7.93867 4.268 7.43467 1.40533 9.42C0.505333 10.0453 0 11.036 0 12.0627C0 12.4027 0.0546667 12.7453 0.169333 13.08C1.276 16.3173 1.272 15.6973 0.169333 18.92C0.0546667 19.2547 0 19.5987 0 19.9373C0 20.964 0.505333 21.956 1.40667 22.58C4.26933 24.5653 3.89867 24.0653 4.98 27.3053C5.432 28.6573 6.74133 29.572 8.21867 29.5667C11.7573 29.5547 11.1427 29.364 13.9987 31.372C14.5933 31.7907 15.2973 32 16 32C16.7027 32 17.4067 31.7907 18.0027 31.372C20.8573 29.364 20.244 29.556 23.7827 29.5667C25.2587 29.5707 26.5693 28.656 27.0213 27.3053C28.104 24.068 27.7253 24.568 30.5947 22.58C31.4947 21.956 32 20.964 32 19.9373C32 19.5987 31.9453 19.2547 31.8307 18.92C30.7227 15.684 30.728 16.3027 31.8307 13.08ZM21.744 15.7253C22.3013 15.8 22.584 16.1627 22.584 16.5387C22.584 16.9693 22.2147 17.4187 21.4587 17.4787C20.9947 17.5147 20.88 17.8947 21.4373 18.02C21.9053 18.1267 22.1693 18.4547 22.1693 18.808C22.1693 19.2267 21.7973 19.68 20.952 19.836C20.4413 19.9293 20.3907 20.4293 20.9307 20.472C21.3893 20.5067 21.5693 20.6667 21.5693 20.888C21.5693 21.5093 20.468 22.6653 18.3347 22.6653C15 22.6667 13.792 20.6667 9.33333 20.6667V14.048C11.688 13.6867 13.9787 12.9587 15.1253 8.97867C15.444 7.87067 15.6453 6.66667 16.708 6.66667C18.292 6.66667 18.4373 10.0827 17.8333 12.5213C18.708 12.98 20.3333 13.1453 21.152 13.1107C22.3333 13.0627 22.6667 13.656 22.6667 14.104C22.6667 14.7773 22.112 15.004 21.764 15.1107C21.3587 15.236 21.172 15.6493 21.744 15.7253Z",fill:"white"})],-1)),Mre={class:"vote-count-div",ref:"elementRefLeft"},Pre={class:"vote-count-text"},Nre={class:"product-name-left"},Ire={class:"vote-count-collect size-card-left"},Rre={class:"vote-count-claim mt-2 left-question"},Bre={class:"vote-count-product-card"},Lre={class:"text-div text-div-desktop"},Fre={class:"earn-points-text left-text"},qre={class:"price-text product-price-left"},Hre=J(),zre={class:"text-div text-div-mobile"},Ure={class:"price-text product-price-left"},Vre=J(),jre={class:"earn-points-text left-text"},Wre={class:"img-div"},Kre=["src"],Gre={class:"mb-2 d-flex"},Yre=is(()=>b("i",{class:"fa fa-thumbs-up","aria-hidden":"true"},null,-1)),Jre={class:"vote-count-btn-text-big"},Zre=is(()=>b("i",{class:"fa fa-thumbs-down","aria-hidden":"true"},null,-1)),Xre={class:"vote-count-btn-text-big"},Qre={class:"vote-count-div",ref:"elementRefRight"},$re={class:"vote-count-text"},ese={class:"product-name-right"},tse={class:"vote-count-collect size-card-right"},nse={class:"vote-count-claim mt-2 right-question"},ise={class:"vote-count-product-card"},rse={class:"text-div text-div-desktop"},sse={class:"earn-points-text right-text"},ose={class:"price-text product-price-right"},ase=J(),lse={class:"text-div text-div-mobile"},cse={class:"price-text product-price-right"},dse=J(),use={class:"earn-points-text right-text"},fse={class:"img-div"},hse=["src"],pse={class:"mb-2 d-flex"},mse=is(()=>b("i",{class:"fa fa-thumbs-up","aria-hidden":"true"},null,-1)),gse={class:"vote-count-btn-text-big"},_se=is(()=>b("i",{class:"fa fa-thumbs-down","aria-hidden":"true"},null,-1)),yse={class:"vote-count-btn-text-big"};function bse(n,t,e,i,r,s){return S(),A("div",{class:X(["main-contest-widget",[e.dynamicClass,s.shadowClass,s.boxClasses,s.borderClass]])},[(S(),qe(In("style"),{type:"text/css"},{default:ln(()=>[J(" ."+_(e.dynamicClass)+".main-contest-widget{ padding-left:"+_(e.element.padding_left+"px")+"; padding-right:"+_(e.element.padding_right+"px")+"; padding-top:"+_(e.element.padding_top+"px")+"; padding-bottom:"+_(e.element.padding_bottom+"px")+"; border-color:"+_(e.element.border_color)+"; border-style:"+_(e.element.border_style)+"; border-width:"+_(e.element.border_width+"px")+"; } ."+_(e.dynamicClass)+" .vs-text{ background: "+_(e.element.background_color)+"; color: "+_(e.element.color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-leftside { background-color: "+_(e.element.left_side_text_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-leftside svg path { fill: "+_(e.element.left_side_theme_color)+" !important; } ."+_(e.dynamicClass)+" .product-action-svg-leftside:hover { background-color: "+_(e.element.left_side_theme_color)+"; } ."+_(e.dynamicClass)+" .product-name-div{ background-color: "+_(e.element.italic_color)+"; } ."+_(e.dynamicClass)+" .left-product-name-div { padding: 10px 24px; border-radius: 94px; } ."+_(e.dynamicClass)+" .left-product-name-div p{ color: "+_(e.element.bold_color)+"; } ."+_(e.dynamicClass)+" .right-product-name-div { padding: 10px 24px; border-radius: 94px; } ."+_(e.dynamicClass)+" .right-product-name-div p{ color: "+_(e.element.bold_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-leftside:hover svg path { fill: "+_(e.element.left_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .product-action-svg-rightside { background-color: "+_(e.element.right_side_text_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-rightside svg path { fill: "+_(e.element.right_side_theme_color)+" !important; } ."+_(e.dynamicClass)+" .product-action-svg-rightside:hover { background-color: "+_(e.element.right_side_theme_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-rightside:hover svg path { fill: "+_(e.element.right_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .vote-product-progress-left { background:"+_(e.element.left_side_theme_color)+"; } ."+_(e.dynamicClass)+" .vote-product-progress-left svg path{ fill:"+_(e.element.left_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .vote-product-progress-left p{ color: "+_(e.element.left_side_text_color)+"; } ."+_(e.dynamicClass)+" .vote-product-progress-right { background: "+_(e.element.right_side_theme_color)+"; } ."+_(e.dynamicClass)+" .vote-product-progress-right p{ color: "+_(e.element.right_side_text_color)+"; } ."+_(e.dynamicClass)+" .vote-product-progress-right svg path{ fill:"+_(e.element.right_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .product-name-left{ color:"+_(e.element.left_headline_color)+"; } ."+_(e.dynamicClass)+" .product-name-right{ color:"+_(e.element.right_headline_color)+"; } ."+_(e.dynamicClass)+" .left-question{ color:"+_(e.element.left_side_question_color)+"; } ."+_(e.dynamicClass)+" .right-question{ color:"+_(e.element.right_side_question_color)+"; } ."+_(e.dynamicClass)+" .left-text{ color:"+_(e.element.left_side_question_text_color)+"; } ."+_(e.dynamicClass)+" .right-text{ color:"+_(e.element.right_side_question_text_color)+"; } ."+_(e.dynamicClass)+" .product-price-left{ color:"+_(e.element.left_current_price_color)+" !important; } ."+_(e.dynamicClass)+" .product-price-left del{ color:"+_(e.element.left_slashed_price_color)+" !important; } ."+_(e.dynamicClass)+" .product-price-right{ color:"+_(e.element.right_current_price_color)+" !important; } ."+_(e.dynamicClass)+" .product-price-right del{ color:"+_(e.element.right_slashed_price_color)+" !important; } ."+_(e.dynamicClass)+" .size-card-left{ color:"+_(e.element.left_subheadline_color)+" } ."+_(e.dynamicClass)+" .size-card-left svg path{ fill:"+_(e.element.left_subheadline_color)+" } ."+_(e.dynamicClass)+" .size-card-right{ color:"+_(e.element.right_subheadline_color)+" } ."+_(e.dynamicClass)+" .size-card-right svg path{ fill:"+_(e.element.right_subheadline_color)+" } ."+_(e.dynamicClass)+" .select-btn-left{ background : "+_(e.element.left_button_background_color)+"; color:"+_(e.element.left_button_text_color)+" } ."+_(e.dynamicClass)+" .select-btn-right{ background : "+_(e.element.right_button_background_color)+"; color:"+_(e.element.right_button_text_color)+" } ."+_(e.dynamicClass)+" .no-thank-you-color{ color:"+_(e.element.no_thank_you_link_color)+" } ."+_(e.dynamicClass)+" .product-action-svg-leftside.active { background-color: "+_(e.element.left_side_theme_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-leftside.active svg path { fill: "+_(e.element.left_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .product-action-svg-rightside.active { background-color: "+_(e.element.right_side_theme_color)+"; } ."+_(e.dynamicClass)+" .product-action-svg-rightside.active svg path { fill: "+_(e.element.right_side_text_color)+" !important; } ."+_(e.dynamicClass)+" .select-no-btn-left{ background : "+_(e.element.left_label_background_color)+"; color:"+_(e.element.left_label_text_color)+" } ."+_(e.dynamicClass)+" .select-no-btn-right{ background : "+_(e.element.right_label_background_color)+"; color:"+_(e.element.right_label_text_color)+" } @media screen and (min-width: 0px) and (max-width: 768px){ ."+_(e.dynamicClass)+" .vote-count-btn.active-div{ padding: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 52; margin-bottom: 16px; margin-left: 10px; margin-right: 10px; } } ",1)]),_:1})),r.is_voted?R("",!0):(S(),A("div",cre,[b("div",{class:X(["product-child",r.is_voted?"pointer-event-none":""])},[b("div",dre,[b("img",{src:s.left_top_image_scr,alt:"product"},null,8,ure),b("div",fre,[b("div",{class:X(["product-action-svg product-action-svg-leftside",{active:r.activeClick==1}]),onClick:t[0]||(t[0]=o=>s.manageClick("left"))},pre,2)])]),b("div",mre,[b("img",{src:s.right_top_image_scr,alt:"product"},null,8,gre),b("div",_re,[b("div",{class:X(["product-action-svg product-action-svg-rightside",{active:r.activeClick==2}]),onClick:t[1]||(t[1]=o=>s.manageClick("right"))},bre,2)])]),vre,b("div",xre,[b("div",wre,[b("p",kre,_(e.element.name),1)]),b("div",Cre,[b("p",Sre,_(e.element.text_data),1)])])],2),b("div",Tre,[b("div",Ere,[b("div",{class:"vote-product-progress vote-product-progress-left",style:ke(`width: ${s.left_vote_per}%;`)},[Ore,b("p",null,_(e.element.left_side_vote),1)],4)]),b("div",Are,[b("div",{class:"vote-product-progress vote-product-progress-right",style:ke(`width: ${s.right_vote_per}%;`)},[Dre,b("p",null,_(e.element.right_side_vote),1)],4)])])])),Re(b("div",Mre,[b("p",Pre,[b("strong",Nre,_(s.left_main_headline),1)]),b("h2",Ire,_(s.left_subheadline),1),b("h2",Rre,_(s.left_side_question),1),b("div",Bre,[b("div",Lre,[b("p",Fre,_(s.left_side_question_text),1),b("p",qre,[b("del",null,_(e.element.left_slashed_price),1),Hre,b("span",null,_(e.element.left_current_price),1)])]),b("div",zre,[b("p",Ure,[b("del",null,_(e.element.left_slashed_price),1),Vre,b("span",null,_(e.element.left_current_price),1)]),b("p",jre,_(s.left_side_question_text),1)]),b("div",Wre,[b("img",{src:s.left_bottom_image_scr,alt:"product1"},null,8,Kre)])]),b("div",Gre,[b("button",{class:"vote-count-btn select-btn-left",onClick:t[2]||(t[2]=o=>s.manageRedirect("left"))},[Yre,b("p",Jre,_(s.left_button_text),1)]),b("button",{class:"vote-count-btn select-no-btn-left ml-3",onClick:t[3]||(t[3]=o=>s.manageRedirect("thank_you"))},[Zre,b("p",Xre,_(e.element.left_label_text),1)])])],512),[[jo,r.activeBottomSection=="left"&&e.element.include_bottom_section]]),Re(b("div",Qre,[b("p",$re,[b("strong",ese,_(s.right_main_headline),1)]),b("h2",tse,_(s.right_subheadline),1),b("h2",nse,_(s.right_side_question),1),b("div",ise,[b("div",rse,[b("p",sse,_(s.right_side_question_text),1),b("p",ose,[b("del",null,_(e.element.right_slashed_price),1),ase,b("span",null,_(e.element.right_current_price),1)])]),b("div",lse,[b("p",cse,[b("del",null,_(e.element.right_slashed_price),1),dse,b("span",null,_(e.element.right_current_price),1)]),b("p",use,_(s.right_side_question_text),1)]),b("div",fse,[b("img",{src:s.right_bottom_image_scr,alt:"product1"},null,8,hse)])]),b("div",pse,[b("button",{class:"vote-count-btn select-btn-right",onClick:t[4]||(t[4]=o=>s.manageRedirect("right"))},[mse,b("p",gse,_(s.right_button_text),1)]),b("button",{class:"vote-count-btn select-no-btn-right ml-3",onClick:t[5]||(t[5]=o=>s.manageRedirect("thank_you"))},[_se,b("p",yse,_(e.element.right_label_text),1)])])],512),[[jo,r.activeBottomSection=="right"&&e.element.include_bottom_section]])],2)}const vse=Nt(lre,[["render",bse],["__scopeId","data-v-f9de7f0c"]]);const yw='"',bw="'",xse={props:{data:{type:String},type:{type:String},step_data:{type:String},is_split_test:{type:String}},components:{TextElement:oz,ImageBox:dz,VideoBlock:OU,TimerView:xU,ButtonElement:wV,OrderForm:xne,Topbar:die,FormElement:Cj,BulkPricing:Vie,QABox:Tie,NavBar:are,ProductCompare:vse},data(){return{externalQuotesValue:"double",quotes:{level1:this.externalQuotesValue==="double"?yw:bw,level2:this.externalQuotesValue==="double"?bw:yw},asset_url:null,svgArray:[],elementData:{},product:null,isProductLoading:!1,stepData:null,nextPageUrl:null,scarcitySetting:null,orderStepSetting:null,timesale:null,dimesale:null,coupon:null,shippingTimer:null,discount:null,topbarSetting:null,couponTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},freeShippingTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},discountTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},timesaleTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},dimesaleTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},scTimer:0,scY:0,salesFunnel:null,diversionTimer:{hours:"00",days:"00",minutes:"00",seconds:"00",endDate:null,startDate:null,invertvalData:null},orderDiversion:null,nextSuccessUrl:null,nextNoThankYouUrl:null,isPopupisOpen:!1,modelShow:!1,popupSections:[],openOpenCount:0,tid:null,payment_plan:null,payment_option:null,salesProduct:null,timesaleIncreasePrice:0,pcode:null}},computed:{salesSetion(){return this.elementData.section},getMargins:function(){return function(n,t){return t=="element"&&n.type=="button"?{"margin-top":n.margin_top+"px","margin-bottom":n.margin_bottom+"px","text-align":n.text_align}:{"margin-top":n.margin_top+"px","margin-bottom":n.margin_bottom+"px"}}},orderFormCheck(){return this.elementData&&this.elementData.order_forms&&this.elementData.order_forms.length==0}},methods:{backgroundPageCss(){let n=this.elementData,t="";if(n.background_type=="image"&&n.background_image)t=this.getImageBackgroundCss(n);else if(n.background_type=="gradient"&&n.gradient_color_1&&n.gradient_color_2)t=this.getGradientBackgroundCss(n);else{var e=n.background_color;if(n.page_pattern_type&&n.page_pattern_type!="none"){let s=6;n.background_size&&n.background_size>1&&(s=(n.background_size*5.12).toFixed(0)),t=this.addBackgroundPatternCss("color",n.page_pattern_type,n.page_pattern_color,n.background_thickness,n.background_size,s,e)}else t=`background:${e} !important;`}let i=document.createElement("style"),r="body {"+t+"}";i.type="text/css",i.innerText=r,document.getElementsByTagName("body")[0].appendChild(i)},getImageSettingCss(n){let t=n.image_position?n.image_position:"bgCover",e=t=="bgCover"?"cover":t=="bgCover101"?"100% 100%":"100% auto",i=t=="bgCover"?"repeat repeat":(t=="bgCover101","no-repeat"),r=t=="bgCover"?"center center":"0% 0%";return` background-size: ${e}; -webkit-background-size${e}; background-repeat: ${i}; background-position:${r}; ${t=="bgCover"?"background-attachment:fixed;":""} `},getImageBackgroundCss(n){var t="";if(n.background_image&&n.page_pattern_type&&n.page_pattern_type!="none"){var e=n.background_image.search("blob:")==-1?"url("+this.asset_url+"/storage/"+n.background_image+")":"url("+n.background_image+")",i=6;n.background_size&&n.background_size>1&&(i=(n.background_size*5.12).toFixed(0));let d=this.svgArray.find(h=>h.value===n.page_pattern_type);var r="";d&&d.svg_data&&(r=this.getSvgUrl(d,n.page_pattern_color,n.background_thickness,n.background_size));var s=`url("${r}")`,o="",a="",c="";d&&(d.is_size_change==!1||d.is_transform==!0)?(o=d.is_custom_bg?d.background_size:"cover",a=d.background_position,c="no-repeat"):(o=i+"px",a="center center",c="repeat"),t=`background-image:${s},${e}; ${this.getImageSettingMultiple(n,o,a,c)}`;let f="";return n.overlay_color&&(f=`background-blend-mode: normal,multiply; background-color: ${n.overlay_color};`),`${t} ${f}`}else if(n.background_image){var e=n.background_image.search("blob:")==-1?"url("+this.asset_url+"/storage/"+n.background_image+")":"url("+n.background_image+")";t=`background-image:${e}; ${this.getImageSettingCss(n)} `;let f="";return n.overlay_color&&(f=`background-blend-mode: multiply; background-color: ${n.overlay_color};`),`${t} ${f}`}},getGradientBackgroundCss(n){let t="";n.gradient_angle&&(t=n.gradient_angle+"deg");let e="";n.gradient_color_stop_1&&(e=n.gradient_color_stop_1+"%");let i="";n.gradient_color_stop_2&&(i=n.gradient_color_stop_2+"%");let r="";if(t?r=`linear-gradient(${t},${n.gradient_color_1} ${e}, ${n.gradient_color_2} ${i});`:r=`linear-gradient(${n.gradient_color_1} ${e}, ${n.gradient_color_2} ${i});`,n.page_pattern_type&&n.page_pattern_type!="none"){let s=6;return n.background_size&&n.background_size>1&&(s=(n.background_size*5.12).toFixed(0)),this.addBackgroundPatternCss("gradient",n.page_pattern_type,n.page_pattern_color,n.background_thickness,n.background_size,s,r)}else return`background: ${r}`},addBackgroundPatternCss(n,t,e,i,r,s,o){let a=this.svgArray.find(g=>g.value===t);var c="";a&&a.svg_data&&(c=this.getSvgUrl(a,e,i,r));let d="",f=`url("${c}")`,h="";return n=="gradient"?(a&&(a.is_size_change==!1||a.is_transform==!0?h=` background-size: ${a.is_custom_bg?a.background_size:"cover"}, auto; background-position: ${a.background_position}, 0% 0%; background-repeat: no-repeat, repeat;`:h=` background-size: ${s}px, auto; background-position: center center, 0% 0%; background-repeat: repeat, repeat;`),d=` background-image:${f},${o}; ${h}`):(a&&(a.is_size_change==!1||a.is_transform==!0?h=` background-size: ${a.is_custom_bg?a.background_size:"cover"}; background-position: ${a.background_position}; background-repeat: no-repeat; background-color:${o} !important; `:h=` background-size: ${s}px; background-position: center center; background-repeat: repeat; background-color:${o} !important; `),d=` background-image:${f}; ${h}`),d},getSvgUrl(n,t,e,i){if(!t)var t="#FFFFFF0A";if(!e)var e=1;if(!i)var i=1;let r=n.svg_data.replaceAll("$$$$$$$",t);if(n.is_transform){let h=i+100;r=r.replaceAll("#######",h)}let o=e+.1,a=r.replaceAll("******",o);const c=this.addNameSpace(a);return`data:image/svg+xml;base64,${btoa(c)}`},getImageSettingMultiple(n,t=null,e=null,i=null){let r=n.image_position?n.image_position:"bgCover",s=r=="bgCover"?"cover":r=="bgCover101"?"100% 100%":"100% auto",o=r=="bgCover"?"repeat repeat":(r=="bgCover101","no-repeat"),a=r=="bgCover"?"center center":"0% 0%";return` background-size:${t},${s}; -webkit-background-size:${t},${s}; background-repeat: ${i},${o}; background-position:${e},${a}; ${r=="bgCover"?"background-attachment: fixed,fixed;":""} `},addNameSpace(n){return n.indexOf("http://www.w3.org/2000/svg")<0&&(n=n.replace(/ .sectionCss${n.id}.sectionArea{ padding-left:${n.padding_left}px !important; padding-right:${n.padding_right}px !important; padding-top:${n.padding_top}px !important; padding-bottom:${n.padding_bottom}px !important; border-color:${n.border_color}; border-style:${n.border_style}; border-width:${n.border_width}px; ${t} }`},getrowCss(n){let t="";if(n.background_type=="color")t=`background-color:${n.background_color};`;else if(n.background_type=="image"&&n.background_image){var e=n.background_image.search("blob:")==-1?"url("+this.asset_url+"/storage/"+n.background_image+")":"url("+n.background_image+")";let i=`background-image:${e}; ${this.getImageSettingCss(n)} `,r="";n.overlay_color&&(r=`background-blend-mode: multiply; background-color: ${n.overlay_color};`),t=`${i} ${r}`}else if(n.background_type=="gradient"&&n.gradient_color_1&&n.gradient_color_2){let i="";n.gradient_angle&&(i=n.gradient_angle+"deg");let r="";n.gradient_color_stop_1&&(r=n.gradient_color_stop_1+"%");let s="";n.gradient_color_stop_2&&(s=n.gradient_color_stop_2+"%"),i?t=`background: linear-gradient(${i},${n.gradient_color_1} ${r}, ${n.gradient_color_2} ${s});`:t=`background: linear-gradient(${n.gradient_color_1} ${r}, ${n.gradient_color_2} ${s});`}return``},getColumnsCss(n){let t="";if(n.background_type=="color")t=`background-color:${n.background_color};`;else if(n.background_type=="image"&&n.background_image){var e=n.background_image.search("blob:")==-1?"url("+this.asset_url+"/storage/"+n.background_image+")":"url("+n.background_image+")";let i=`background-image:${e}; ${this.getImageSettingCss(n)} `,r="";n.overlay_color&&(r=`background-blend-mode: multiply; background-color: ${n.overlay_color};`),t=`${i} ${r}`}else if(n.background_type=="gradient"&&n.gradient_color_1&&n.gradient_color_2){let i="";n.gradient_angle&&(i=n.gradient_angle+"deg");let r="";n.gradient_color_stop_1&&(r=n.gradient_color_stop_1+"%");let s="";n.gradient_color_stop_2&&(s=n.gradient_color_stop_2+"%"),i?t=`background: linear-gradient(${i},${n.gradient_color_1} ${r}, ${n.gradient_color_2} ${s});`:t=`background: linear-gradient(${n.gradient_color_1} ${r}, ${n.gradient_color_2} ${s});`}return``},getColumnsLayout(n){return{"flex-flow":n.content_alignment+" nowrap","justify-content":n.content_spacing,"align-items":n.content_position}},getOrderFormCssData(n){if(n){var t=this.elementData.order_forms.find(e=>e.item_id==n);if(t)return t}},getSalesFormData(n){if(n){var t=this.elementData.sales_forms.find(e=>e.item_id==n);if(t)return t}},getImageCssData(n){if(n){var t=this.elementData.image_blocks.find(e=>e.item_id==n);if(t)return t}},getVideoCssData(n){if(n){var t=this.elementData.video_elements.find(e=>e.item_id==n);if(t)return t}},getButtonCssData(n){if(n){var t=this.elementData.button_elements.find(e=>e.item_id==n);if(t)return t}},getBulkPricingElements(n){if(n){var t=this.elementData.bulk_pricing_elements.find(e=>e.item_id==n);if(t)return t}return null},getQAElements(n){if(n){var t=this.elementData.qa_box.find(e=>e.item_id==n);if(t)return t}},visibleClass(n){if(!n.desktop_visibility||!n.mobile_visibility)if(n.desktop_visibility){if(!n.mobile_visibility)return"desktop-only"}else return"mobile-only"},getcontestWidget(n){if(n){var t=this.elementData.contest_widget.find(e=>e.item_id==n);if(t)return t}},checkProduct(){this.isProductLoading=!0;let n={id:this.elementData.id};this.type=="salesFunnel"&&this.stepData?(n.type="salesFunnel",n.sales_funnel_id=this.stepData.sales_funnel_id,n.step_id=this.stepData.id,n.sales_page_id=this.stepData.sales_page_id,n.step_type=this.stepData.type):this.type=="salesPage"&&(n.type="salesPage"),Ke.post(this.asset_url+"/api/sales-page/check-product",n).then(t=>{this.isProductLoading=!1,t.data.data&&t.data.data.product_plan&&(this.payment_plan=t.data.data.product_plan),t.data.data&&t.data.data.payment_option&&(this.payment_option=t.data.data.payment_option),t.data.data&&t.data.data.product&&(this.product=t.data.data.product),t.data.data&&t.data.data.salesProduct&&(this.salesProduct=t.data.data.salesProduct)})},getOrderSettingData(){Ke.get(this.asset_url+"/api/sales-page/orderstep-setting/get/"+this.elementData.id).then(n=>{if(n.data.status){var t=n.data.data.setting;t&&(this.scarcitySetting=t.scarcity_setting,this.orderStepSetting=t.order_step_setting,this.timesale=t.timesale,this.dimesale=t.dimesale,this.coupon=t.coupon,this.shippingTimer=t.free_shipping,this.discount=t.special_discount,this.topbarSetting=t.topbar_setting,this.orderDiversion=t.order_diversion),this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.scarcitySetting.scarcity_type=="special_discount"?this.setDiscountTimer():this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.scarcitySetting.scarcity_type=="free_shipping"?this.setFreeShippingTimer():this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.scarcitySetting.scarcity_type=="timesale"?this.setTimesaleTimer():this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.scarcitySetting.scarcity_type=="dimesale"?this.setDimesaleTimer():this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.scarcitySetting.scarcity_type=="order_diversion"&&this.setOrderDiversionTimer(),this.scarcitySetting&&this.scarcitySetting.coupon_id&&this.setCouponTimer()}})},convertTZ(n,t){return new Date((typeof n=="string"?new Date(n):n).toLocaleString("en-US",{timeZone:t}))},setCouponTimer(){if(this.scarcitySetting&&this.coupon){if(this.coupon.timer_type=="exact"){var n=new Date;n=this.convertTZ(n,this.coupon.time_zone),this.couponTimer.startDate=Date.parse(n)/1e3;var t=new Date(this.coupon.expiration_date_time);this.couponTimer.endDate=Date.parse(t)/1e3}else if(this.coupon.timer_type=="evergreen"){var n=new Date;n.setHours(0,0,0,0),this.couponTimer.startDate=Date.parse(n)/1e3;var t=new Date,e=this.coupon.days?this.coupon.days:0;let a=0,c=0;this.coupon.hours&&this.coupon.hours!="00"&&(a=this.coupon.hours),this.coupon.minutes&&this.coupon.minutes!="00"&&(c=this.coupon.minutes),t.setHours(a,c,0,0),t.setDate(t.getDate()+e),this.couponTimer.endDate=Date.parse(t)/1e3}else if(this.coupon.timer_type=="cookie"){var n=new Date;n=Date.parse(n)/1e3,this.couponTimer.startDate=n;var i=localStorage.getItem("scarcity-coupon-time-"+this.orderStepSetting.id+"-"+this.coupon.id),t=new Date;if(i)t=i;else{var r=new Date;this.coupon.minutes&&r.setMinutes(r.getMinutes()+this.coupon.minutes),this.coupon.hours&&r.setHours(r.getHours()+this.coupon.hours),this.coupon.days&&r.setDate(r.getDate()+this.coupon.days),localStorage.setItem("scarcity-coupon-time-"+this.orderStepSetting.id+"-"+this.coupon.id,r),t=r}this.couponTimer.endDate=Date.parse(t)/1e3}this.setupcouponTimer()}},setupcouponTimer(){this.clearcouponTimer();let n=this.couponTimer.endDate-this.couponTimer.startDate,t,e,i,r;this.couponTimer.invertvalData=setInterval(()=>{--n<0?(n=0,this.couponTimer.days="00",this.couponTimer.hours="00",this.couponTimer.minutes="00",this.couponTimer.seconds="00",this.clearcouponTimer()):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.couponTimer.days=i,this.couponTimer.hours=r,this.couponTimer.minutes=t,this.couponTimer.seconds=e)},1e3)},clearcouponTimer(){clearInterval(this.couponTimer.invertvalData),this.couponTimer.invertvalData=null,this.$forceUpdate()},setDiscountTimer(){if(this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.discount){if(this.discount.timer_type=="exact"){var n=new Date;n=this.convertTZ(n,this.discount.time_zone),this.discountTimer.startDate=Date.parse(n)/1e3;var t=new Date(this.discount.expiration_date_time);this.discountTimer.endDate=Date.parse(t)/1e3}else if(this.discount.timer_type=="evergreen"){var n=new Date;n.setHours(0,0,0,0),this.discountTimer.startDate=Date.parse(n)/1e3;var t=new Date,e=this.discount.days?this.discount.days:0;let a=0,c=0;this.discount.hours&&this.discount.hours!="00"&&(a=this.discount.hours),this.discount.minutes&&this.discount.minutes!="00"&&(c=this.discount.minutes),t.setHours(a,c,0,0),t.setDate(t.getDate()+e),this.discountTimer.endDate=Date.parse(t)/1e3}else if(this.discount.timer_type=="cookie"){var n=new Date;n=Date.parse(n)/1e3,this.discountTimer.startDate=n;var i=localStorage.getItem("scarcity-discount-time-"+this.orderStepSetting.id+"-"+this.discount.id),t=new Date;if(i)t=i;else{var r=new Date;this.discount.minutes&&r.setMinutes(r.getMinutes()+this.discount.minutes),this.discount.hours&&r.setHours(r.getHours()+this.discount.hours),this.discount.days&&r.setDate(r.getDate()+this.discount.days),localStorage.setItem("scarcity-discount-time-"+this.orderStepSetting.id+"-"+this.discount.id,r),t=r}this.discountTimer.endDate=Date.parse(t)/1e3}this.setupDiscountTimer()}},setupDiscountTimer(){this.clearDiscountTimer();let n=this.discountTimer.endDate-this.discountTimer.startDate,t,e,i,r;this.discountTimer.invertvalData=setInterval(()=>{if(--n<0){if(n=0,this.discountTimer.days="00",this.discountTimer.hours="00",this.discountTimer.minutes="00",this.discountTimer.seconds="00",this.clearDiscountTimer(),this.discount.expiration_action=="reset_timer")this.setDiscountTimer();else if(this.discount.expiration_action=="hide_timer"){let s=document.getElementsByClassName("timer-root");s&&(s[0].remove(),localStorage.removeItem("scarcity-discount-time-"+this.orderStepSetting.id+"-"+this.discount.id))}}else i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.discountTimer.days=i,this.discountTimer.hours=r,this.discountTimer.minutes=t,this.discountTimer.seconds=e},1e3)},clearDiscountTimer(){clearInterval(this.discountTimer.invertvalData),this.discountTimer.invertvalData=null,this.$forceUpdate()},setFreeShippingTimer(){if(this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.shippingTimer){if(this.shippingTimer.type=="exact"){var n=new Date;n=this.convertTZ(n,this.shippingTimer.time_zone),this.freeShippingTimer.startDate=Date.parse(n)/1e3;var t=new Date(this.shippingTimer.expiration_date_time);this.freeShippingTimer.endDate=Date.parse(t)/1e3}else if(this.shippingTimer.type=="evergreen"){var n=new Date;n.setHours(0,0,0,0),this.freeShippingTimer.startDate=Date.parse(n)/1e3;var t=new Date,e=this.shippingTimer.days?this.shippingTimer.days:0;let a=0,c=0;this.shippingTimer.hours&&this.shippingTimer.hours!="00"&&(a=this.shippingTimer.hours),this.shippingTimer.minutes&&this.shippingTimer.minutes!="00"&&(c=this.shippingTimer.minutes),t.setHours(a,c,0,0),t.setDate(t.getDate()+e),this.freeShippingTimer.endDate=Date.parse(t)/1e3}else if(this.shippingTimer.type=="cookie"){var n=new Date;n=Date.parse(n)/1e3,this.freeShippingTimer.startDate=n;var i=localStorage.getItem("scarcity-shipping-time-"+this.orderStepSetting.id+"-"+this.shippingTimer.id),t=new Date;if(i)t=i;else{var r=new Date;this.shippingTimer.minutes&&r.setMinutes(r.getMinutes()+this.shippingTimer.minutes),this.shippingTimer.hours&&r.setHours(r.getHours()+this.shippingTimer.hours),this.shippingTimer.days&&r.setDate(r.getDate()+this.shippingTimer.days),localStorage.setItem("scarcity-shipping-time-"+this.orderStepSetting.id+"-"+this.shippingTimer.id,r),t=r}this.freeShippingTimer.endDate=Date.parse(t)/1e3}this.setupFreeShippingTimer()}},setupFreeShippingTimer(){this.clearFreeShippingTimer();let n=this.freeShippingTimer.endDate-this.freeShippingTimer.startDate,t,e,i,r;this.freeShippingTimer.invertvalData=setInterval(()=>{--n<0?(n=0,this.freeShippingTimer.days="00",this.freeShippingTimer.hours="00",this.freeShippingTimer.minutes="00",this.freeShippingTimer.seconds="00",this.clearFreeShippingTimer()):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.freeShippingTimer.days=i,this.freeShippingTimer.hours=r,this.freeShippingTimer.minutes=t,this.freeShippingTimer.seconds=e)},1e3)},clearFreeShippingTimer(){clearInterval(this.freeShippingTimer.invertvalData),this.freeShippingTimer.invertvalData=null,this.$forceUpdate()},setTimesaleTimer(){this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.timesale&&this.setupTimesaleTimer()},setupTimesaleTimer(){this.clearTimesaleTimer();let n=this.timesaleTimer.endDate-this.timesaleTimer.startDate,t,e,i,r;this.timesaleTimer.invertvalData=setInterval(()=>{--n<0?(n=0,this.timesaleTimer.days="00",this.timesaleTimer.hours="00",this.timesaleTimer.minutes="00",this.timesaleTimer.seconds="00",this.clearTimesaleTimer()):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.timesaleTimer.days=i,this.timesaleTimer.hours=r,this.timesaleTimer.minutes=t,this.timesaleTimer.seconds=e)},1e3)},clearTimesaleTimer(){clearInterval(this.timesaleTimer.invertvalData),this.timesaleTimer.invertvalData=null,this.$forceUpdate()},setDimesaleTimer(){if(this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.dimesale){if(this.dimesale.timer_type=="exact"){var n=new Date;n=this.convertTZ(n,this.dimesale.time_zone),this.dimesaleTimer.startDate=Date.parse(n)/1e3;var t=new Date(this.dimesale.expiration_date_time);this.dimesaleTimer.endDate=Date.parse(t)/1e3}else if(this.dimesale.timer_type=="evergreen"||this.dimesale.timer_type=="cookie"){var n=new Date;n.setHours(0,0,0,0),this.dimesaleTimer.startDate=Date.parse(n)/1e3;var t=new Date,e=this.dimesale.days?this.dimesale.days:0;let s=0,o=0;this.dimesale.hours&&this.dimesale.hours!="00"&&(s=this.dimesale.hours),this.dimesale.minutes&&this.dimesale.minutes!="00"&&(o=this.dimesale.minutes),t.setHours(s,o,0,0),t.setDate(t.getDate()+e),this.dimesaleTimer.endDate=Date.parse(t)/1e3}this.setupDimesaleTimer()}},setupDimesaleTimer(){this.clearDimesaleTimer();let n=this.dimesaleTimer.endDate-this.dimesaleTimer.startDate,t,e,i,r;this.dimesaleTimer.invertvalData=setInterval(()=>{--n<0?(n=0,this.dimesaleTimer.days="00",this.dimesaleTimer.hours="00",this.dimesaleTimer.minutes="00",this.dimesaleTimer.seconds="00",this.clearDimesaleTimer()):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.dimesaleTimer.days=i,this.dimesaleTimer.hours=r,this.dimesaleTimer.minutes=t,this.dimesaleTimer.seconds=e)},1e3)},clearDimesaleTimer(){clearInterval(this.dimesaleTimer.invertvalData),this.dimesaleTimer.invertvalData=null,this.$forceUpdate()},handleScroll(){this.scTimer||(this.scTimer=setTimeout(()=>{this.scY=window.scrollY,clearTimeout(this.scTimer),this.scTimer=0},100))},toTop(){window.scrollTo({top:0,behavior:"smooth"})},async addViews(n){await Ke.post(this.asset_url+"/api/sale-page/add-view",n).then(t=>{t.data.status&&(t.data.data.funnel&&(this.salesFunnel=t.data.data.funnel),t.data.data.url&&(this.nextPageUrl=t.data.data.url,this.tid&&this.nextPageUrl&&(this.nextPageUrl=this.nextPageUrl+"?tid="+this.tid)))}),await Ke.post(this.asset_url+"/api/sale-page/add-view-all",n)},scrollToOrderForm(){this.$refs&&this.$refs.orderForm&&this.$refs.orderForm[0]&&this.$refs.orderForm[0].$el.scrollIntoView({behavior:"smooth"})},setOrderDiversionTimer(){if(this.orderStepSetting.is_scarcity_trigger&&this.scarcitySetting&&this.orderDiversion){if(this.orderDiversion.timer_type=="exact"){var n=new Date;n=this.convertTZ(n,this.orderDiversion.time_zone),this.diversionTimer.startDate=Date.parse(n)/1e3;var t=new Date(this.orderDiversion.expiration_date_time);this.diversionTimer.endDate=Date.parse(t)/1e3}else if(this.orderDiversion.timer_type=="evergreen"||this.orderDiversion.timer_type=="cookie"){var n=new Date;n.setHours(0,0,0,0),this.diversionTimer.startDate=Date.parse(n)/1e3;var t=new Date,e=this.orderDiversion.days?this.orderDiversion.days:0;let s=0,o=0;this.orderDiversion.hours&&this.orderDiversion.hours!="00"&&(s=this.orderDiversion.hours),this.orderDiversion.minutes&&this.orderDiversion.minutes!="00"&&(o=this.orderDiversion.minutes),t.setHours(s,o,0,0),t.setDate(t.getDate()+e),this.diversionTimer.endDate=Date.parse(t)/1e3}this.setupOrderDiversionTimer()}},setupOrderDiversionTimer(){this.clearOrderDiversionTimer();let n=this.diversionTimer.endDate-this.diversionTimer.startDate,t,e,i,r;this.diversionTimer.invertvalData=setInterval(()=>{--n<0?(n=0,this.diversionTimer.days="00",this.diversionTimer.hours="00",this.diversionTimer.minutes="00",this.diversionTimer.seconds="00",this.clearOrderDiversionTimer()):(i=parseInt(n/60/60/24,10),r=parseInt(n/60/60%24,10),t=parseInt(n/60%60,10),e=parseInt(n%60,10),i=i<10?"0"+i:i,r=r<10?"0"+r:r,t=t<10?"0"+t:t,e=e<10?"0"+e:e,this.diversionTimer.days=i,this.diversionTimer.hours=r,this.diversionTimer.minutes=t,this.diversionTimer.seconds=e)},1e3)},clearOrderDiversionTimer(){clearInterval(this.diversionTimer.invertvalData),this.diversionTimer.invertvalData=null,this.$forceUpdate()},async getUrlNext(n){let t=await Ke.post(this.asset_url+"/api/sale-page/get-next-page-success-no-url",n);return t.data.status&&(this.nextSuccessUrl=t.data.data.next_success_url,this.nextNoThankYouUrl=t.data.data.next_no_thank_you_url,this.tid&&this.nextSuccessUrl&&(this.nextSuccessUrl=this.nextSuccessUrl+"?tid="+this.tid),this.tid&&this.nextNoThankYouUrl&&(this.nextNoThankYouUrl=this.nextNoThankYouUrl+"?tid="+this.tid)),t},closeModal(){this.isPopupisOpen=!1,setTimeout(()=>{this.modelShow=!1},100)},openPoup(){this.elementData&&this.elementData.is_popup&&(this.modelShow=!0,setTimeout(()=>{this.isPopupisOpen=!0,this.openOpenCount++},100))},setTid(){let n=new URL(document.location).searchParams;n&&(this.tid=n.get("tid"))},async getFooterData(){var n=window.matchMedia("(max-width: 480px)");if(this.type=="salesFunnel"&&this.stepData){let s={stepData:this.stepData,type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,screen:n.matches?"mobile":"desktop"},o=await Ke.post(this.asset_url+"/api/sales-footer/footer/get-sales-footer-data",s);if(o.data.status==!0){var t=o.data.data.footer_html;let a=document.createElement("section");a.innerHTML=t,document.body.appendChild(a);var e=document.getElementById("sales_app"),i=document.getElementById("footer"),r=e.clientHeight;r+i.clientHeight-50?this.timesale.time_count*60*60*24:0:this.timesale.time_type=="hours"?i=this.timesale.time_count>0?this.timesale.time_count*60*60:0:this.timesale.time_type=="minutes"&&(i=this.timesale.time_count>0?this.timesale.time_count*60:0);var t=new Date(this.scarcitySetting.timesale_start_time),e=Date.parse(t)/1e3;const r=0,s=5;var n=new Date;n=this.convertTZ(n,"America/Los_Angeles");var t=new Date(this.scarcitySetting.timesale_start_time),e=Date.parse(t)/1e3;const a=Date.parse(n)/1e3-e,c=Math.floor(a/i);let d=r+c*s;this.timesaleIncreasePrice=d.toFixed(2)}},setPartnerProgramCode(){let n=new URL(document.location).searchParams;n&&(this.pcode=n.get("pcode"))},updateContentsVote(n){var t=this.elementData.contest_widget.find(e=>e.id==n.id);t&&(t.left_side_vote=n.left_side_vote,t.right_side_vote=n.right_side_vote)}},created(){this.setTid(),this.asset_url=window.location.origin,this.setPartnerProgramCode()},async mounted(){if(this.elementData=JSON.parse(this.data),this.step_data&&(this.stepData=JSON.parse(this.step_data)),this.type=="salesPage"&&this.elementData.pixel_type=="hotjar"&&this.elementData.header_pixel){let n=document.createRange().createContextualFragment(this.elementData.header_pixel);document.getElementsByTagName("head")[0].appendChild(n)}else if(this.type=="salesFunnel"&&this.stepData&&this.stepData.pixel_type=="hotjar"&&this.stepData.header_pixel){let n=document.createRange().createContextualFragment(this.stepData.header_pixel);document.getElementsByTagName("head")[0].appendChild(n)}if(await this.backgroundPageCss(),this.getFooterData(),this.svgArray=window.svgArray,this.elementData.used_font_family)for(let n of this.elementData.used_font_family.split(",")){let t=document.createElement("link");t.rel="stylesheet";let e=n+"%7C"+n+":bold";t.href="https://fonts.googleapis.com/css?family="+e,document.head.appendChild(t)}if(await this.checkProduct(),this.type=="salesFunnel"&&this.stepData){let n={type:"salesFunnel",sales_funnel_id:this.stepData.sales_funnel_id,step_id:this.stepData.id,sales_page_id:this.stepData.sales_page_id,tid:this.tid,is_split_test:this.is_split_test,pcode:this.pcode};this.stepData.type=="sales_page"&&(n.is_two_step=!0,n.step=1,this.elementData&&this.elementData.order_forms&&this.elementData.order_forms.length==0&&(n.is_redirect_checkout=1)),await this.getUrlNext(n),await this.addViews(n)}else if(this.type=="salesPage"){let n={type:"salesPage",sales_page_id:this.elementData.id,tid:this.tid,pcode:this.pcode};this.elementData.sub_type=="salespage"?(n.is_two_step=!0,n.step=1,this.elementData&&this.elementData.order_forms&&this.elementData.order_forms.length==0&&(n.is_redirect_checkout=1)):this.orderFormCheck&&(this.elementData.sub_type=="upsale"||this.elementData.sub_type=="downsale")&&(n.is_redirect_checkout=1),await this.addViews(n)}await this.getOrderSettingData(),this.elementData&&this.elementData.is_popup&&Ke.get(this.asset_url+"/api/sales-page/sales-page-model-section/"+this.elementData.id).then(n=>{n.data.status&&(this.popupSections=n.data.data.popup,this.openOpenCount=0)}),window.addEventListener("scroll",this.handleScroll),document.documentElement.addEventListener("mouseleave",()=>{this.openOpenCount==0&&this.elementData&&this.elementData.show_on_exit&&this.openPoup()})}},wse=b("div",{class:"back-to-top-icon"},[b("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"1","stroke-linecap":"square","stroke-linejoin":"arcs"},[b("path",{d:"M18 15l-6-6-6 6"})])],-1),kse=[wse],Cse={class:"tw-relative tw-mx-auto tw-items-center template-main-div tw-overflow-x-hidden tw-rounded border-radius-0"},Sse={class:"md:tw-p-0 tw-w-full tw-relative tw-z-[3] md:tw-top-auto tw-mx-0 tw-text-center page-wrapper overflow-hidden"},Tse={class:"dragArea list-group overflow-hidden w-100"},Ese=["id"],Ose=["innerHTML"],Ase=["id"],Dse=["innerHTML"],Mse=["id"],Pse=["innerHTML"],Nse=["id"],Ise=b("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAlCAQAAABrYji1AAAC20lEQVRIx5WWr2/bUBDH7+VJTUkKzCqtZAYjMQwJiSoZFIVEhcZppO0PSGALqgDTIivSuDWwSgUBbQMDWkXqyAZaqdJYeJxo1k13zz/jl9p5R+wk/uR73zu/dwBlS0RRspCjHCNAgszc7Y1LIEeHR4fQUMHXKbgyjlGMOZbWw2h5s7oPXoKX1X3w/e+3pxOGaoA6XIIS5uXgzytq1ur+7UyHLOJi2HHnfDGnR9ebKY7QwS520cERTnEZKOTTyTZwG6f8Yl300DJwsYmft6KJLiP/vb+d5YFFHMP64/UGcYqtAiqOFk5ZeQTU4jhNYXbO6b/9nag4fAb+/pICszgBgjwDm+yflcIopuzh0WGccB4nwai3+2PyrFUJ18TXEDFNOMWxNmEKh7S5lWAULiIGL7G+LC7R9lxwyN9xR/GMqb4Mjnyr9X78QvRyP1dLIbzoLvs9fba8YX15nLSA3wKnkA4tL4HlrXDSdBMcZd6ot2FILdLS+JMut9CB1C7QoHRTHDsHQ2rfptZwPSy2A4wCDuyD6zDU4bwE52lw9MwOnC5ZL5esV+g9TlaHgyGVoquFeZmr7PddLkURx6WgRnE1jeLtbJQRIi7m+VIkjdK/225jL6fHK6ibIeLDCBrUHTkcvWLKvYvKL5nDzgmz0Maxe1ePVfeTWNv8p3KusAVQukqfXwlGb/AykJZKVbNBkb6OT808KoVREcLwchBr02yfwqz1Dq6pIGUKfa7x5DbyTWg3d2hIiwpy9UgKZzuKcsGeheHklhPVbu7xOWYoYMdXB+AMXTxNQKfoMoo864+lFSUqPjoYDWnVejCMNaq13mSvJ7e13jZs57FNhyPYMCBk/24xVzqVpsX86vHTV7CFGaUpqg0VhrTAFo6CqoAhDIQDNumqNlRkp6cGGMKUVr0Ntop6W1rCBCPRJfYcyKJhzIiCh7L9B7L8sCgz8eHAWDZ95ifQ0oG2Cm7v2fg/Yh8jlKSDXZEAAAAASUVORK5CYII=",alt:"close"},null,-1),Rse=[Ise],Bse={class:"dragArea list-group overflow-hidden w-100"},Lse=["id"],Fse=["innerHTML"],qse=["id"],Hse=["innerHTML"],zse=["id"],Use=["innerHTML"],Vse=["id"];function jse(n,t,e,i,r,s){const o=at("Topbar"),a=at("TextElement"),c=at("ImageBox"),d=at("VideoBlock"),f=at("TimerView"),h=at("FormElement"),g=at("ButtonElement"),m=at("OrderForm"),y=at("BulkPricing"),k=at("QABox"),C=at("NavBar"),T=at("ProductCompare");return S(),A(He,null,[ct(jc,{name:"fade"},{default:ln(()=>[Re(b("div",{id:"pagetop",onClick:t[0]||(t[0]=w=>s.toTop()),class:"back-to-top"},kse,512),[[jo,r.scY>300]])]),_:1}),r.scarcitySetting&&r.scarcitySetting.include_topbar&&r.orderStepSetting&&r.orderStepSetting.is_scarcity_trigger?(S(),qe(o,{key:0,scarcitySetting:r.scarcitySetting,orderStepSetting:r.orderStepSetting,timesale:r.timesale,dimesale:r.dimesale,coupon:r.coupon,shipping_timer:r.shippingTimer,scarcity_coupon_timer:r.couponTimer,free_shipping_timer:r.freeShippingTimer,discount:r.discount,discount_timer:r.discountTimer,topbarSetting:r.topbarSetting,product:r.product,timesale_timer:r.timesaleTimer,dimesale_timer:r.dimesaleTimer,order_diversion:r.orderDiversion,diversion_timer:r.diversionTimer},null,8,["scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","topbarSetting","product","timesale_timer","dimesale_timer","order_diversion","diversion_timer"])):R("",!0),b("div",Cse,[b("div",Sse,[b("div",Tse,[(S(!0),A(He,null,bt(s.salesSetion,(w,O)=>(S(),A("div",{key:O,class:X(["w-100 sectionArea section-center position-relative",[s.getSectionClass(w),w.is_active?"":"d-none","sectionCss"+w.id,s.boxClasses(w),s.borderClass(w),s.visibleClass(w),w.sticky]]),id:"sectionCss"+w.id,style:ke(s.getMargins(w))},[b("div",{innerHTML:s.getSectionCss(w)},null,8,Ose),b("div",{class:"rows-group",style:ke(w.is_full_row?"max-width:100%":"max-width:1170px")},[(S(!0),A(He,null,bt(w.items,(x,L)=>(S(),A("div",{key:L,class:X(["row-box position-relative",[x.cols.length==0?"blank-row":"","rowCss"+x.id,s.boxClasses(x),s.borderClass(x),x.align,s.visibleClass(x)]]),id:"rowCss"+x.id,style:ke(s.getMargins(x))},[b("div",{innerHTML:s.getrowCss(x)},null,8,Dse),(S(!0),A(He,null,bt(x.cols,(M,B)=>(S(),A("div",{key:B,id:"colCss"+M.id,class:X([["colCss"+M.id,"resizeCol"+x.id,s.visibleClass(M)],"rowArea position-relative col"]),style:ke(s.getMargins(M))},[b("div",{innerHTML:s.getColumnsCss(M)},null,8,Pse),b("div",{class:X(["element-main",[s.boxClasses(M),s.borderClass(M)]]),style:ke(s.getColumnsLayout(M))},[(S(!0),A(He,null,bt(M.items,(D,F)=>(S(),A("div",{key:F,class:X(["element-box position-relative",s.visibleClass(D)]),id:M.id+"-element_box-"+F,style:ke(s.getMargins(D,"element"))},[D.type=="headline"||D.type=="sub-headline"||D.type=="paragraph"||D.type=="bullet"?(S(),qe(a,{key:0,element_id:M.id+"-element_box-"+F,element:D,dynamicClass:"elementCss"+D.id},null,8,["element_id","element","dynamicClass"])):D.type=="imageElement"?(S(),qe(c,{key:1,element:{...D,...s.getImageCssData(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="videoElement"?(S(),qe(d,{key:2,element:{...D,...s.getVideoCssData(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="countDownTimer"?(S(),qe(f,{key:3,element:D,dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="formElement"?(S(),qe(h,{key:4,element:{...D,...s.getSalesFormData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,nextPageUrl:r.nextPageUrl,salesFunnel:r.salesFunnel,type:e.type,elementData:r.elementData},null,8,["element","dynamicClass","stepData","nextPageUrl","salesFunnel","type","elementData"])):D.type=="button"?(S(),qe(g,{key:5,element:{...D,...s.getButtonCssData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,product:r.product,nextPageUrl:r.nextPageUrl,salesFunnel:r.salesFunnel,type:e.type,onScrollToOrderForm:s.scrollToOrderForm,orderFormCheck:s.orderFormCheck,nextSuccessUrl:r.nextSuccessUrl,nextNoThankYouUrl:r.nextNoThankYouUrl,salesPage:r.elementData,onOpenPoup:s.openPoup,tid:r.tid,payment_plan:r.payment_plan,payment_option:r.payment_option},null,8,["element","dynamicClass","stepData","product","nextPageUrl","salesFunnel","type","onScrollToOrderForm","orderFormCheck","nextSuccessUrl","nextNoThankYouUrl","salesPage","onOpenPoup","tid","payment_plan","payment_option"])):D.type=="orderform"?(S(),qe(m,{key:6,isProductLoading:r.isProductLoading,product:r.product,element:{...D,...s.getOrderFormCssData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,nextPageUrl:r.nextPageUrl,scarcitySetting:r.scarcitySetting,orderStepSetting:r.orderStepSetting,timesale:r.timesale,dimesale:r.dimesale,coupon:r.coupon,shipping_timer:r.shippingTimer,scarcity_coupon_timer:r.couponTimer,free_shipping_timer:r.freeShippingTimer,discount:r.discount,discount_timer:r.discountTimer,salesFunnel:r.salesFunnel,timesale_timer:r.timesaleTimer,dimesale_timer:r.dimesaleTimer,type:e.type,elementData:r.elementData,ref_for:!0,ref:"orderForm",order_diversion:r.orderDiversion,diversion_timer:r.diversionTimer,tid:r.tid,payment_option:r.payment_option,salesProduct:r.salesProduct,pcode:r.pcode},null,8,["isProductLoading","product","element","dynamicClass","stepData","nextPageUrl","scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","salesFunnel","timesale_timer","dimesale_timer","type","elementData","order_diversion","diversion_timer","tid","payment_option","salesProduct","pcode"])):D.type=="bulkPricing"&&s.getBulkPricingElements(D.db_id)?(S(),qe(y,{key:7,element:{...D,...s.getBulkPricingElements(D.db_id)},product:r.product,dynamicClass:"elementCss"+D.id,stepData:r.stepData,salesFunnel:r.salesFunnel,type:e.type,salesPage:r.elementData,tid:r.tid},null,8,["element","product","dynamicClass","stepData","salesFunnel","type","salesPage","tid"])):D.type=="qaBox"?(S(),qe(k,{key:8,element:{...D,...s.getQAElements(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):R("",!0),D.type=="navBar"?(S(),qe(C,{key:9,element:D,dynamicClass:"elementCss"+D.id,onOpenPoup:s.openPoup,onScrollToBlock:s.scrollToBlock},null,8,["element","dynamicClass","onOpenPoup","onScrollToBlock"])):D.type=="contestWidget"?(S(),qe(T,{key:10,element:{...D,...s.getcontestWidget(D.db_id)},contest:s.getcontestWidget(D.db_id),dynamicClass:"elementCss"+D.id,onUpdateContentsVote:s.updateContentsVote},null,8,["element","contest","dynamicClass","onUpdateContentsVote"])):R("",!0)],14,Nse))),128))],6)],14,Mse))),128))],14,Ase))),128))],4)],14,Ese))),128))])])]),r.modelShow?(S(),A("div",{key:1,id:"overlay",class:X(["--desktop",r.isPopupisOpen?"show z-index-3":""]),style:ke([{display:"block"},r.elementData.backdrop_color?`background-color: ${r.elementData.backdrop_color}`:"background-color: rgb(0 0 0 / 33%)"])},[b("div",{class:X(["popup-body hl_main_popup none noBorder radius2 none page-wrapper",r.isPopupisOpen?"show":""]),style:ke(r.elementData.popup_size=="full"?"width: 960px;":r.elementData.popup_size=="medium"?"width:720px;":r.elementData.popup_size=="small"?"width:550px;":"width:720px;")},[b("div",{class:"closeLPModal",onClick:t[1]||(t[1]=(...w)=>s.closeModal&&s.closeModal(...w))},Rse),b("div",Bse,[(S(!0),A(He,null,bt(r.popupSections,(w,O)=>(S(),A("div",{key:O,class:X(["w-100 sectionArea section-center position-relative",[s.getSectionClass(w),w.is_active?"":"d-none","sectionCss"+w.id,s.boxClasses(w),s.borderClass(w),s.visibleClass(w),w.sticky]]),id:"sectionCss"+w.id,style:ke(s.getMargins(w))},[b("div",{innerHTML:s.getSectionCss(w)},null,8,Fse),b("div",{class:"rows-group",style:ke(w.is_full_row?"max-width:100%":"max-width:1170px")},[(S(!0),A(He,null,bt(w.items,(x,L)=>(S(),A("div",{key:L,class:X(["row-box position-relative",[x.cols.length==0?"blank-row":"","rowCss"+x.id,s.boxClasses(x),s.borderClass(x),x.align,s.visibleClass(x)]]),id:"rowCss"+x.id,style:ke(s.getMargins(x))},[b("div",{innerHTML:s.getrowCss(x)},null,8,Hse),(S(!0),A(He,null,bt(x.cols,(M,B)=>(S(),A("div",{key:B,id:"colCss"+M.id,class:X([["colCss"+M.id,"resizeCol"+x.id,s.visibleClass(M)],"rowArea position-relative col"]),style:ke(s.getMargins(M))},[b("div",{innerHTML:s.getColumnsCss(M)},null,8,Use),b("div",{class:X(["element-main",[s.boxClasses(M),s.borderClass(M)]]),style:ke(s.getColumnsLayout(M))},[(S(!0),A(He,null,bt(M.items,(D,F)=>(S(),A("div",{key:F,class:X(["element-box position-relative",s.visibleClass(D)]),id:M.id+"-element_box-"+F,style:ke(s.getMargins(D,"element"))},[D.type=="headline"||D.type=="sub-headline"||D.type=="paragraph"||D.type=="bullet"?(S(),qe(a,{key:0,element_id:M.id+"-element_box-"+F,element:D,dynamicClass:"elementCss"+D.id},null,8,["element_id","element","dynamicClass"])):D.type=="imageElement"?(S(),qe(c,{key:1,element:{...D,...s.getImageCssData(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="videoElement"?(S(),qe(d,{key:2,element:{...D,...s.getVideoCssData(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="countDownTimer"?(S(),qe(f,{key:3,element:D,dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):D.type=="button"?(S(),qe(g,{key:4,element:{...D,...s.getButtonCssData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,product:r.product,nextPageUrl:r.nextPageUrl,salesFunnel:r.salesFunnel,type:e.type,onScrollToOrderForm:s.scrollToOrderForm,orderFormCheck:s.orderFormCheck,nextSuccessUrl:r.nextSuccessUrl,nextNoThankYouUrl:r.nextNoThankYouUrl,salesPage:r.elementData},null,8,["element","dynamicClass","stepData","product","nextPageUrl","salesFunnel","type","onScrollToOrderForm","orderFormCheck","nextSuccessUrl","nextNoThankYouUrl","salesPage"])):D.type=="formElement"?(S(),qe(h,{key:5,element:{...D,...s.getSalesFormData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,nextPageUrl:r.nextPageUrl,salesFunnel:r.salesFunnel,type:e.type,elementData:r.elementData},null,8,["element","dynamicClass","stepData","nextPageUrl","salesFunnel","type","elementData"])):D.type=="orderform"?(S(),qe(m,{key:6,isProductLoading:r.isProductLoading,product:r.product,element:{...D,...s.getOrderFormCssData(D.db_id)},dynamicClass:"elementCss"+D.id,stepData:r.stepData,nextPageUrl:r.nextPageUrl,scarcitySetting:r.scarcitySetting,orderStepSetting:r.orderStepSetting,timesale:r.timesale,dimesale:r.dimesale,coupon:r.coupon,shipping_timer:r.shippingTimer,scarcity_coupon_timer:r.couponTimer,free_shipping_timer:r.freeShippingTimer,discount:r.discount,discount_timer:r.discountTimer,salesFunnel:r.salesFunnel,timesale_timer:r.timesaleTimer,dimesale_timer:r.dimesaleTimer,type:e.type,elementData:r.elementData,ref_for:!0,ref:"orderForm",order_diversion:r.orderDiversion,diversion_timer:r.diversionTimer,tid:r.tid,payment_option:r.payment_option,salesProduct:r.salesProduct,pcode:r.pcode},null,8,["isProductLoading","product","element","dynamicClass","stepData","nextPageUrl","scarcitySetting","orderStepSetting","timesale","dimesale","coupon","shipping_timer","scarcity_coupon_timer","free_shipping_timer","discount","discount_timer","salesFunnel","timesale_timer","dimesale_timer","type","elementData","order_diversion","diversion_timer","tid","payment_option","salesProduct","pcode"])):D.type=="qaBox"?(S(),qe(k,{key:7,element:{...D,...s.getQAElements(D.db_id)},dynamicClass:"elementCss"+D.id},null,8,["element","dynamicClass"])):R("",!0)],14,Vse))),128))],6)],14,zse))),128))],14,qse))),128))],4)],14,Lse))),128))])],6)],6)):R("",!0)],64)}const Wse=Nt(xse,[["render",jse]]);function vw(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function pc(n){for(var t=1;t0&&arguments[0]!==void 0?arguments[0]:Gse,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b3;if(!v3(n))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(n.indexOf(t)!==-1)throw new Error(`Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character. `+"The placeholder character that was received is: ".concat(JSON.stringify(t),` `)+"The mask that was received is: ".concat(JSON.stringify(n)));return n.map(function(e){return e instanceof RegExp?t:e}).join("")}function v3(n){return Array.isArray&&Array.isArray(n)||n instanceof Array}var Jse="[]";function Zse(n){for(var t=[],e;e=n.indexOf(Jse),e!==-1;)t.push(e),n.splice(e,1);return{maskWithoutCaretTraps:n,indexes:t}}var Xse=[],_o="";function x3(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_o,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Xse,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!v3(t))if(mc(t)===Kse)t=t(n,e),t=Zse(t).maskWithoutCaretTraps;else throw new Error("Text-mask:conformToMask; The mask property must be an array.");var i=e.guide,r=i===void 0?!0:i,s=e.previousConformedValue,o=s===void 0?_o:s,a=e.placeholderChar,c=a===void 0?b3:a,d=e.placeholder,f=d===void 0?Yse(t,c):d,h=e.currentCaretPosition,g=e.keepCharPositions,m=r===!1&&o!==void 0,y=n.length,k=o.length,C=f.length,T=t.length,w=y-k,O=w>0,x=h+(O?-w:0),L=x+Math.abs(w);if(g===!0&&!O){for(var M=_o,B=x;B=x&&Ye=0;F--){var I=D[F].char;if(I!==c){var q=F>=x&&k===T;I===f[q?F-w:F]&&D.splice(F,1)}}var H=_o,W=!1;e:for(var Y=0;Y0)for(;D.length>0;){var he=D.shift(),ye=he.char,pe=he.isNew;if(ye===c&&m!==!0){H+=c;continue e}else if(t[Y].test(ye)){if(g!==!0||pe===!1||o===_o||r===!1||!O)H+=ye;else{for(var Ne=D.length,Be=null,Z=0;Z-1?"\\".concat(t):t},toe=function(t){return new RegExp("/[".concat(eoe(t),"]/"))},noe=function(t){return t instanceof RegExp},ioe=function(t){return noe(t)?t:toe(t)};function w3(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh;return n.map(function(e,i,r){var s=t[e]||e,o=r[i-1],a=t[o]||o;return s===xg?null:a===xg?$se(ioe(s)):s}).filter(Boolean)}function roe(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh;return w3(n.split(""),t)}function soe(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh,e=n.map(function(i){return i instanceof RegExp?i:typeof i=="string"?i.split(""):null}).filter(Boolean).reduce(function(i,r){return i.concat(r)},[]);return w3(e,t)}var ooe=function(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)},p0=function(t){return t instanceof HTMLInputElement?t:t.querySelector("input")||t},k3=function(t){return typeof t=="function"},sy=function(t){return typeof t=="string"},aoe=function(t){return t instanceof RegExp};function C3(n,t){return Array.isArray(n)?soe(n,t):k3(n)?n:sy(n)&&n.length>0?roe(n,t):n}function loe(){var n=new Map,t={previousValue:"",mask:[]};function e(s){return n.get(s)||pc({},t)}function i(s,o){n.set(s,pc(pc({},e(s)),o))}function r(s){n.delete(s)}return{partiallyUpdate:i,remove:r,get:e}}function S3(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gh;return n===null||Array.isArray(n)||mc(n)!=="object"?t:Object.keys(n).reduce(function(e,i){var r=n[i];return r!==null&&!(r instanceof RegExp)?e:pc(pc({},e),{},y3({},i,r))},t)}var Cf=loe();function coe(n){ooe(n,"input")}function xw(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,e=n.value,i=Cf.get(n),r=i.previousValue,s=i.mask,o=e!==r,a=e.length>r.length,c=e&&o&&a;if((t||c)&&s){var d=x3(e,s,{guide:!1}),f=d.conformedValue;n.value=f,coe(n)}Cf.partiallyUpdate(n,{previousValue:e})}function ww(n,t,e){var i=C3(t,e);Cf.partiallyUpdate(n,{mask:i})}function kw(n){var t=Array.isArray(n)?n:[n],e=t.filter(function(i){return sy(i)||aoe(i)});return e.toString()}function doe(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=S3(n&&n.placeholders);return{bind:function(i,r){var s=r.value;i=p0(i),ww(i,s,t),xw(i)},componentUpdated:function(i,r){var s=r.value,o=r.oldValue;i=p0(i);var a=k3(s)||kw(o)!==kw(s);a&&ww(i,s,t),xw(i,a)},unbind:function(i){i=p0(i),Cf.remove(i)}}}var uoe=doe();function foe(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=S3(n&&n.placeholders);return function(e,i){if(!sy(e)&&!Number.isFinite(e))return e;var r=C3(i,t),s=x3("".concat(e),r,{guide:!1}),o=s.conformedValue;return o}}foe();const T3=uC({components:{"sale-page":Wse}}),m0=uoe,hoe={beforeMount:m0.bind,updated:m0.componentUpdated,unmounted:m0.unbind};T3.directive("mask",hoe);T3.mount("#sales_app");